Skip to content
LeanLearn

Proof Lab

Problem, mathematics, Lean editor, live goals, proof tree and hints side by side. Goal states and the final verdict come from the real Lean 4 kernel.

A · Problem

For every n, 2 × (0 + 1 + … + n) = n × (n + 1).

induction

B · Mathematics

∀n,  2∑i=0ni=n(n+1)\forall n,\; 2\sum_{i=0}^{n} i = n(n+1)

Lean statement checked by the verifier:

∀ (n : Nat), 2 * sumTo n = n * (n + 1)

E · Proof tree

Place the cursor inside a tactic proof to see its goal.

C · Lean editor · D · Goals · F · Feedback

Goals (line 1)

Place the cursor inside a tactic proof to see its goal.

Lean messages

No messages. Lean accepted everything.