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

"a and b leave the same remainder when divided by 3" is an equivalence relation on the natural numbers.

relations

B · Mathematics

a∼b  ⟺  a mod 3=b mod 3 is an equivalence relationa \sim b \iff a \bmod 3 = b \bmod 3 \text{ is an equivalence relation}

Lean statement checked by the verifier:

Equivalence (fun a b : Nat => a % 3 = b % 3)

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.