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 n is even, so is n + 2.

tactic-strategyquantifier-proofs

B · Mathematics

(∃k,  n=2k)→∃m,  n+2=2m(\exists k,\; n = 2k) \to \exists m,\; n + 2 = 2m

Lean statement checked by the verifier:

∀ n : Nat, (∃ k, n = 2 * k) → ∃ m, n + 2 = 2 * m

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.