50 lessons · 10 checkpoints

Your learning path

Begin at base camp with simple calculations. Follow your guides through five lessons at each checkpoint.

Your progressView your progress and guide rewards
The Proof Hike trail Checkpoint 1: Lean as a calculator, steps 1–5 1 Checkpoint 2: Your first proofs, steps 6–10 2 Checkpoint 3: Logic, part one, steps 11–15 3 Checkpoint 4: Logic, part two, steps 16–20 4 Checkpoint 5: Numbers & induction, steps 21–25 5 Checkpoint 6: Algebra with Mathlib, steps 26–30 6 Checkpoint 7: Data & functions, steps 31–35 7 Checkpoint 8: Real mathematics, steps 36–40 8 Checkpoint 9: Logic puzzles, steps 41–45 9 Checkpoint 10: Prove your programs work, steps 46–50 10
Your trail map10 checkpoints · 5 lessons each

Step 0 · Before the hike

Base Camp Gym

New to proofs or to Lean? Warm up first: what a proof is, a short history, where Lean came from, and how to read a Lean proof.

Enter the gym →
  1. Where math came from
  2. What a proof really is
  3. Why we want a checker
  4. Where Lean came from
  5. How to read Lean 4
  6. Warm-up check

Checkpoint 1 · Steps 1–5

Lean as a calculator

Make things. Try things. See what happens.

Lemmi
Core Lean5 lessons
  1. Step 01Meet your new calculator5 min · Core Lean
  2. Step 02Everything has a type5 min · Core Lean
  3. Step 03Make a function5 min · Core Lean
  4. Step 04Words and collections5 min · Core Lean
  5. Step 05Make a decision5 min · Core Lean

Checkpoint 2 · Steps 6–10

Your first proofs

Turn “I think so” into “I can prove it.”

Tacto
Core Lean5 lessons
  1. Step 06Your first proof5 min · Core Lean
  2. Step 07Prove a difference5 min · Core Lean
  3. Step 08Give a proof a name5 min · Core Lean
  4. Step 09Swap equal things5 min · Core Lean
  5. Step 10Use what you know5 min · Core Lean

Checkpoint 3 · Steps 11–15

Logic, part one

Learn the building blocks of a good argument.

Goalie
Core Lean5 lessons
  1. Step 11If this, then that8 min · Core Lean
  2. Step 12Prove both halves8 min · Core Lean
  3. Step 13Unpack an and8 min · Core Lean
  4. Step 14Choose a side8 min · Core Lean
  5. Step 15Follow both possibilities8 min · Core Lean

Checkpoint 4 · Steps 16–20

Logic, part two

Say exactly what you mean. Then prove it.

Typo
Core Lean5 lessons
  1. Step 16What not means8 min · Core Lean
  2. Step 17Proof by contradiction8 min · Core Lean
  3. Step 18A two-way promise8 min · Core Lean
  4. Step 19For every input8 min · Core Lean
  5. Step 20Find one witness8 min · Core Lean

Checkpoint 5 · Steps 21–25

Numbers & induction

One small step. A proof for every number.

Indy
Core Lean5 lessons
  1. Step 21Numbers from zero and steps8 min · Core Lean
  2. Step 22Your first induction8 min · Core Lean
  3. Step 23Addition in either order8 min · Core Lean
  4. Step 24Add a whole staircase8 min · Core Lean
  5. Step 25Let omega handle the arithmetic8 min · Core Lean

Checkpoint 6 · Steps 26–30

Algebra with Mathlib

Meet a toolbox built by mathematicians.

Tacto
Mathlib5 lessons
  1. Step 26A library of mathematics12 min · Mathlib
  2. Step 27Numbers, checked12 min · Mathlib
  3. Step 28Follow the inequalities12 min · Mathlib
  4. Step 29Write a chain of reasons12 min · Mathlib
  5. Step 30A square is never negative12 min · Mathlib

Checkpoint 7 · Steps 31–35

Data & functions

Build your own mathematical objects.

Lemmi
Core Lean5 lessons
  1. Step 31Functions that call themselves12 min · Core Lean
  2. Step 32Induction on a list12 min · Core Lean
  3. Step 33Keep related data together12 min · Core Lean
  4. Step 34Make your own type12 min · Core Lean
  5. Step 35Different inputs stay different12 min · Core Lean

Checkpoint 8 · Steps 36–40

Real mathematics

Even numbers, endless primes, and a capstone.

Indy
Core Lean and Mathlib5 lessons
  1. Step 36Even plus even12 min · Mathlib
  2. Step 37Odd squared stays odd12 min · Mathlib
  3. Step 38Neighbors make an even product12 min · Mathlib
  4. Step 39Primes never run out12 min · Mathlib
  5. Step 40Capstone: reverse, then reverse again12 min · Core Lean

Checkpoint 9 · Steps 41–45

Logic puzzles

Follow clues, rule out alternatives, and test a claim with one counterexample.

Goalie
Core Lean5 lessons
  1. Step 41Reason from a missing badge8 min · Core Lean
  2. Step 42Rule out one possibility10 min · Core Lean
  3. Step 43Keep a clue in both cases12 min · Core Lean
  4. Step 44Connect two two-way rules12 min · Core Lean
  5. Step 45Test a claim with one witness14 min · Core Lean

Checkpoint 10 · Steps 46–50

Prove your programs work

Follow data through switches, pairs, and lists. Finish by checking a scoreboard.

Typo
Core Lean5 lessons
  1. Step 46Flip a switch twice6 min · Core Lean
  2. Step 47Swap a pair and swap back8 min · Core Lean
  3. Step 48Change the values, keep the count12 min · Core Lean
  4. Step 49Combine two passes through a list14 min · Core Lean
  5. Step 50Capstone: combine two scoreboards15 min · Core Lean