All Exercises
#16 Gauss's Triangular Sum Formula
live.lean-lang.org
Pure Lean 4 · No Mathlib
HardInduction

16. Gauss's Triangular Sum Formula

Prove Gauss’s classic closed form `2 * (0 + 1 + 2 + … + n) = n * (n + 1)` using induction and core `Nat` arithmetic (no `ring` tactic or Mathlib required!). Keep the definition of `sumTo` unchanged.

Target Theorem
theorem gauss_sum (n : Nat) : 2 * sumTo n = n * (n + 1)
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).