All Exercises
#32 Right Cancellation of Addition
live.lean-lang.org
Pure Lean 4 · No Mathlib
EasyNatural Numbers

32. Right Cancellation of Addition

Prove the right-cancellation law for natural number addition: if `a + c = b + c`, then `a = b`. Use induction on `c` and the injectivity of `Nat.succ`.

Target Theorem
theorem nat_add_right_cancel (a b c : Nat) (h : a + c = b + c) : a = b
Hints (0/3)

Stuck? Reveal hints one step at a time without spoiling the full proof.

Symbols:
Initializing Lean 4 editor…
Infoview & Diagnosticsline 1idle
Write your proof above and click Submit Proof (or open in live.lean-lang.org).