Proof Hike · Module 2 · Lean 4.36.0
Your first proofs.
Turn “I think so” into “I can prove it.”
The five steps
- Example 6: Your first proof
- Example 7: Prove a difference
- Example 8: Give a proof a name
- Example 9: Swap equal things
- Example 10: Use what you know
New words
- Proof
- A term whose type is the proposition being established. Lean’s kernel checks that term against its type.
- Proposition
- A statement that can have a proof. Propositions have type Prop in Lean.
- Goal
- The type or proposition for which a proof still needs to supply a term.
- Tactic
- A command that constructs proof terms by transforming or solving goals. Its result is still checked by Lean.
- Definitional equality
- Equality that Lean recognizes using its computation rules, without requiring a separate equality proof.
A checked example
example : 2 + 2 = 4 := by
rfl
Before you move on
- Explain the claim in everyday words.
- Identify what Lean expects at each step.
- Complete the warm-up exercises.
- Read an error and explain its fix.
The full lesson includes the captured Lean output, hints, stretch tasks, and checked solutions.
Use your browser’s Print command. This course stores progress only in the learner’s browser.