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

If m and n are even, then m + n is even (even means: twice some number).

direct-proof

B · Mathematics

(∃a, m=2a)→(∃b, n=2b)→∃c, m+n=2c(\exists a,\, m = 2a) \to (\exists b,\, n = 2b) \to \exists c,\, m + n = 2c

Lean statement checked by the verifier:

∀ (m n : Nat), (∃ a, m = 2 * a) → (∃ b, n = 2 * b) → ∃ c, m + n = 2 * c

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.