Learn
You can start anyway. Nothing is locked.
Thinking and reasoning
Statements, evidence, examples and counterexamples, mathematical notation and what a proof is. No prior knowledge assumed.
Claims, truth and evidence
· Learning to reason- 1.What is a statement?Some sentences can be true or false; others cannot. Learn to tell them apart: it is the first step of all logic.Level 0
- 2.Examples are not proofsA claim can survive forty tests and still be false. Discover why one counterexample beats a thousand examples.Level 0Recommended first: 1
- 30.Necessary and sufficientA ticket is necessary to board a plane, but not sufficient. Being a square is sufficient to be a rectangle, but not necessary. Learn to tell the two apart and to see both inside every 'if … then'.Level 1Recommended first: 1
- 31.Fallacies: reasoning that only looks rightSome arguments sound convincing but do not follow. Test famous patterns with truth tables, learn their names, and spot them in everyday claims.Level 1Recommended first: 2
Reading mathematical language
· Mathematical literacyWhat makes a proof
· Introduction to proofs- 19.Writing proofs: direct proof and proof by casesPut the lines of real proofs in order, spot the lines that only look right, and then write the same proofs in Lean.Level 2Recommended first: 2
- 20.Proof by contradictionAssume the opposite and show it leads somewhere impossible. Discover which contradiction proofs are constructive, and see Lean report the axiom that the others rely on.Level 2Recommended first: 2
Formal logic from scratch
Connectives, truth tables, equivalence, quantifiers, natural deduction and proof systems, each with a simulator and its Lean form.
Connectives and truth tables
· Propositional logic- 3.NOT and ANDBuild bigger statements from smaller ones. Flip switches and discover exactly when 'not' and 'and' are true.Level 1Recommended first: 1
- 4.OR: at least oneIn everyday speech 'or' is ambiguous. In logic it is not. Discover inclusive or, and how to say 'exactly one'.Level 1Recommended first: 1
- 5.IF … THEN: implicationWhen is a promise broken? Discover the meaning of 'if P then Q', the most important connective for proofs.Level 1Recommended first: 1
- 6.Truth tables, tautologies and equivalenceWhen there are finitely many situations, checking all of them is a proof. Use this to discover laws of logic.Level 1Recommended first: 1
Natural deduction
· Propositional logicAll and some
· Predicate logicProof systems and metatheory
· Beyond first-order logicPlannedclassical vs constructive · higher-order logic · modal and temporal logic · sequent calculus · soundness completeness consistency · proof theory · model theory
Discrete mathematics and foundations
Core + MathlibSets, relations, functions, induction, recursion, combinatorics, graphs, number theory and algebraic foundations, linked to Lean proofs.
Sets
· Sets, relations and functionsRelations and functions
· Sets, relations and functions- 15.Functions: one-to-one, onto, and bothDraw arrows from inputs to outputs and discover what makes a mapping a function, and when it is injective, surjective or bijective.Level 1Recommended first: 1
- 18.Relations: equivalence and orderToggle pairs in a grid and discover the four properties that turn a relation into an equivalence (like 'same remainder') or an order (like 'divides'). Then prove an equivalence in Lean.Level 2Recommended first: 1
Induction and recursion
· Numbers and inductionCombinatorics, graphs and algebra
· Numbers and inductionPlannedcombinatorics · graph theory · trees · number theory · linear algebra · real analysis · abstract algebra · topology foundations
Programming for non-programmers
Algorithms, values, functions, data, recursion, types and correctness, before any Lean syntax.
Lean 4 language fundamentals
Lean as a programming language and proof assistant: syntax, definitions, types, commands, structures and the toolchain.
Evaluate, check, define
· First steps in LeanData and structure
· First steps in Lean- 23.Your own data typesDefine structures and inductive types, compute on them by pattern matching, and prove facts about every value by cases and structural induction.Level 3Recommended first: 2
- 25.Recursion and terminationLean accepts a recursive function only if it can see that the function always stops. Meet structural recursion, well-founded recursion with termination_by, and what to do when termination is unknown.Level 3Recommended first: 1
Theorem proving in Lean 4
Propositions as types, goals and hypotheses, tactic and term proofs, introduction and elimination for every connective.
Implication, and, or
· First proofs- 10.Your first proof: P → Q → PFrom a lamp and a door to a proof checked by Lean's kernel. Learn intro and exact, step through real goal states, and prove it yourself.Level 2Recommended first: 2
- 11.Proving and using ANDTo prove 'P and Q' you prove both. To use it, you take it apart. Learn constructor, anonymous constructors and obtain.Level 2Recommended first: 2
- 12.Proving and using ORTo prove 'P or Q' you choose a side. To use it, you must handle both possibilities. Learn left, right and proof by cases.Level 2Recommended first: 2
Quantifiers and equality
· First proofs- 21.Proving with ∀ and ∃Play the quantifier game to feel what nested ∀ and ∃ mean, then prove such statements in Lean: take an arbitrary object, name a witness, and use what you know.Level 3Recommended first: 2
- 22.Equality and rewritingSome equalities hold by computation, others need reasons. Learn rfl, rewriting with rw, and step-by-step chains with calc.Level 3Recommended first: 1
Tactics and proof engineering
A version-aware catalogue of tactics, organised by purpose, with live before-and-after goal states.
Type theory
From the simply typed lambda calculus to dependent types, universes and the Calculus of Inductive Constructions.
Functional programming in Lean
Higher-order functions, data types, type classes, monads, IO and verified programs.
Formalising mathematics with Mathlib
Requires Mathlib (Phase 5)Finding lemmas, reading signatures and formalising algebra, analysis, topology and more. Requires the Mathlib runtime (Phase 5).
Using the library
· Working with MathlibPlannedlemma search · namespaces · imports · signatures · number theory · algebraic structures · linear algebra · analysis · topology · category theory · order theory · combinatorics · probability
Metaprogramming and language engineering
Parser, syntax, macros, elaboration, the kernel; custom tactics and DSLs.
Specification and software verification
From informal requirement to specification, implementation and machine-checked proof.
Specifications and correctness
· Verified softwareCube Quest: a 3×3×3 cube in Lean
· Cube Quest- 32.Cube Quest 1 · Specify: what is a cube?Before any Lean, say precisely what the puzzle is: its pieces, its moves, and what 'solved' means. A weak specification lets a wrong cube pass.Level 3Recommended first: 2
- 33.Cube Quest 2 · Formalize: the cube as a Lean structureTurn the specification into Lean: a structure with five lists, a solved state, and invariants you can compute. Then prove your first facts about cubes.Level 3Recommended first: 1
- 34.Cube Quest 3 · Mechanize: moves as dataA move is itself a cube state, and doing one move after another is a multiplication. Write the move R in Lean and watch your own definition turn the 3D cube.Level 3Recommended first: 1
- 35.Cube Quest 4 · Compute: run moves, count casesLean is also a programming language. Predict, then compute: how often must a sequence repeat before the cube comes back? What are the chances of a lucky skip on the last layer?Level 3Recommended first: 1
Advanced logic, mathematics and research
ResearchResearch-oriented topics, clearly marked as mature Lean support, third-party, experimental or open research.
Pathways
· Research pathwaysPlannedmodel theory · proof theory · category theory · HoTT · topos and sheaf theory · universal algebra · constructive mathematics · verified compilation · distributed systems · cryptographic protocols · automated reasoning