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

Mirroring a binary tree does not change how many values it holds.

inductive-types

B · Mathematics

∀t,  size(mirror(t))=size(t)\forall t,\; \mathrm{size}(\mathrm{mirror}(t)) = \mathrm{size}(t)

Lean statement checked by the verifier:

∀ t : Tree, t.mirror.size = t.size

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.