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 f(x) = 2x for every x, then f(3) + f(1) = 8.

equality-rewritingquantifier-proofs

B · Mathematics

(∀x,  f(x)=2x)→f(3)+f(1)=8(\forall x,\; f(x) = 2x) \to f(3) + f(1) = 8

Lean statement checked by the verifier:

∀ (f : Nat → Nat), (∀ x, f x = 2 * x) → f 3 + f 1 = 8

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.