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

Applying a function to every element does not change the length of the list.

list-recursion

B · Mathematics

∀f xs,  ∣map f xs∣=∣xs∣\forall f\, xs,\; |\mathrm{map}\,f\,xs| = |xs|

Lean statement checked by the verifier:

∀ (f : Nat → Nat) (xs : List Nat), (myMap f xs).length = xs.length

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.