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

The sum of xs ++ ys is the sum of xs plus the sum of ys.

list-recursion

B · Mathematics

sum(xs+ ⁣ ⁣+ys)=sum(xs)+sum(ys)\mathrm{sum}(xs \mathbin{+\!\!+} ys) = \mathrm{sum}(xs) + \mathrm{sum}(ys)

Lean statement checked by the verifier:

∀ (xs ys : List Nat), sumList (xs ++ ys) = sumList xs + sumList ys

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.