LeanLearn
Welcome. You do not need to know mathematics, logic, or programming. We will discover them together.
From your first question to a machine-checked proof.
Try it now: a two-switch puzzle
- FalseThe lamp is on AND the door is open
L ∧ D - TrueThe lamp is on OR the door is open
L ∨ D
Can you make the first statement false but the second true? In how many ways?
The journey
- 1
Everyday reasoning
🪔 + 🚪
- 2
Logical structure
L ∧ D
- 3
Mathematical notation
P → Q → P
- 4
A proposition in Lean
(P Q : Prop) : P → Q → P
- ✓
A proof the kernel verifies
⊢ verified
Thirteen academies, from zero to research
- AThinking and reasoning
Statements, evidence, examples and counterexamples, mathematical notation and what a proof is. No prior knowledge assumed.
7 lessonsLevel 0–1 - BFormal logic from scratch
Connectives, truth tables, equivalence, quantifiers, natural deduction and proof systems, each with a simulator and its Lean form.
6 lessonsLevel 1–6 - CDiscrete mathematics and foundations
Sets, relations, functions, induction, recursion, combinatorics, graphs, number theory and algebraic foundations, linked to Lean proofs.
4 lessonsLevel 1–4 - DProgramming for non-programmers
Algorithms, values, functions, data, recursion, types and correctness, before any Lean syntax.
1 lessonsLevel 0–2 - ELean 4 language fundamentals
Lean as a programming language and proof assistant: syntax, definitions, types, commands, structures and the toolchain.
3 lessonsLevel 2–3 - FTheorem proving in Lean 4
Propositions as types, goals and hypotheses, tactic and term proofs, introduction and elimination for every connective.
5 lessonsLevel 2–4 - GTactics and proof engineering
A version-aware catalogue of tactics, organised by purpose, with live before-and-after goal states.
1 lessonsLevel 2–5 - HType theory
From the simply typed lambda calculus to dependent types, universes and the Calculus of Inductive Constructions.
1 lessonsLevel 3–6 - IFunctional programming in Lean
Higher-order functions, data types, type classes, monads, IO and verified programs.
1 lessonsLevel 3–5 - JFormalising mathematics with Mathlib
Finding lemmas, reading signatures and formalising algebra, analysis, topology and more. Requires the Mathlib runtime (Phase 5).
PlannedLevel 3–5 - KMetaprogramming and language engineering
Parser, syntax, macros, elaboration, the kernel; custom tactics and DSLs.
1 lessonsLevel 5–6 - LSpecification and software verification
From informal requirement to specification, implementation and machine-checked proof.
5 lessonsLevel 4–6 - MAdvanced logic, mathematics and research
Research-oriented topics, clearly marked as mature Lean support, third-party, experimental or open research.
PlannedLevel 6–6
What is built today