Proof Assistants
Overview
- A proof checker verifies that a complete formal proof is correct, step by step, against the rules of a logic. A proof assistant (interactive theorem prover) helps you build that proof, usually through tactics, automation and an editor that shows the current goals.
- De Bruijn criterion: the proof is ultimately checked by a small, trusted kernel. Tactics and automation can be large and buggy, since everything they produce is re-checked by the kernel.
- Main foundations
- Dependent type theory (Curry–Howard: propositions are types, proofs are programs): Lean, Rocq (Coq), Agda
- Higher-order logic: Isabelle/HOL, HOL Light, HOL4
- Set theory on first-order logic: Metamath (set.mm), Mizar
- Synthetic mathematics: developing a theory from axioms about its objects, rather than building them from sets
- Denis-Charles Cisinski: Synthetic Category Theory, Volume I: Foundations (book in progress), see Abstract Nonsense
- Freek Wiedijk: The Seventeen Provers of the World (2006) - the same proof ($\sqrt{2}$ is irrational) in seventeen systems
- Notices of the AMS special issue on formal proof (2008)
- Thomas Hales: Formal Proof
- Georges Gonthier: Formal Proof - The Four-Color Theorem
- John Harrison: Formal Proof - Theory and Practice
Systems
Lean
- Lean, Wikipedia, Lean FRO, Community, Zulip
- Mathlib - the unified library of formalized mathematics, stats
- Tutorials
- Natural Number Game - the best first contact
- Theorem Proving in Lean 4
- Mathematics in Lean
- Functional Programming in Lean
- Leonardo de Moura & Sebastian Ullrich: The Lean 4 Theorem Prover and Programming Language (2021), Springer - see How They Are Built
- Sebastian Ullrich: An Extensible Theorem Proving Frontend (2023), PhD thesis
- Videos
- Kevin Buzzard: Xena Project blog
Rocq (formerly Coq)
- Rocq - Coq was renamed Rocq in 2025, Coq (old site)
- Libraries: Mathematical Components, UniMath
- Books and tutorials
- Software Foundations, B. Pierce et al
- Mathematical Components book, A. Mahboubi & E. Tassi
- Coq in a hurry, Yves Bertot (2017)
- Spartan Martin-Löf Type Theory, Andrej Bauer (2019)
- Video
- How to use Coq with Proof General, Andrej Bauer (2011). I installed UniMath Coq on MacBook, had to create
pierce_lem.vin a subfolder underUniMath/UniMath, and had toRequire Export UniMath.Foundations.Propositions.at the top. Also, I had to placeetagsin thePATH.
- How to use Coq with Proof General, Andrej Bauer (2011). I installed UniMath Coq on MacBook, had to create
Isabelle
- Isabelle, Archive of Formal Proofs
- Sledgehammer: calls external automated provers and SMT solvers, then reconstructs their proofs in Isabelle
- T. Nipkow & G. Klein: Concrete Semantics
- Comparison of Two Theorem Provers: Isabelle/HOL and Coq
- Isabelle Theorem Prover tutorial
Agda
- Agda documentation, Wikipedia
- Cubical Agda: computational univalence, for Homotopy Type Theory (Coq-HoTT library)
- P. Wadler et al: Programming Language Foundations in Agda
- Ulf Norell: Towards a Practical Programming Language Based on Dependent Type Theory (2007), PhD thesis - the design of Agda 2
HOL family
Metamath
- Metamath - a minimal verifier; set.mm builds mathematics on ZFC
- Metamath book, by Norman Megill, revised by David A. Wheeler (2019)
- Metamath Zero, Mario Carneiro
Mizar
- Mizar - one of the oldest systems (1973), with a large Mizar Mathematical Library, proofs written in a readable, mathematical style
Others
Comparison
| System | Foundation | Kernel | Automation | Main library | Typical use |
|---|---|---|---|---|---|
| Lean 4 | Dependent type theory (CIC) | Small | Tactics, simp, omega, aesop |
Mathlib | Research mathematics, programming |
| Rocq | Dependent type theory (CIC) | Small | Tactics, SSReflect | MathComp, UniMath | Mathematics, verified software (CompCert) |
| Isabelle/HOL | Higher-order logic | Small (LCF) | Strong: Sledgehammer | AFP | Verified software (seL4), mathematics |
| Agda | Dependent type theory (MLTT) | Type checker | Weak, interactive holes | agda-stdlib, cubical | Type theory, HoTT, PL research |
| HOL Light | Higher-order logic | Tiny | Moderate | Multivariate analysis | Flyspeck, floating point verification |
| Metamath | Set theory (ZFC) | Tiny verifier | Minimal | set.mm | Foundations, fully explicit proofs |
| Mizar | Set theory (Tarski–Grothendieck) | Checker | Moderate | MML | Classical mathematics |
How They Are Built
How does each system turn a partially written proof into something it can trust? A user writes convenient syntax with details left out. The elaborator fills them in, using metavariables (placeholders for terms the system must infer), and produces a fully explicit term. The small kernel then checks that term.
Suggested reading order
- Leonardo de Moura & Sebastian Ullrich: The Lean 4 Theorem Prover and Programming Language (2021), 11 pages - why Lean was redesigned, and how its parser, elaborator, macros, tactics and compiler fit together
- Ulf Norell: Towards a Practical Programming Language Based on Dependent Type Theory (2007), PhD thesis, Chalmers - the foundations of Agda 2. Read Ch. 1 (Introduction), then Ch. 2 (Pattern Matching) and Ch. 3 (Metavariables). A historical foundation, not a description of every feature in present-day Agda
- Sebastian Ullrich: An Extensible Theorem Proving Frontend (2023), PhD thesis, KIT - the deeper Lean counterpart to Norell. Read Ch. 3 (An Overview of Lean 4: kernel, parser, elaborator, compiler), then Ch. 4 (A Macro System for Theorem Provers)
Kernels and type theory
- Mario Carneiro: The Type Theory of Lean (2019), MSc thesis - the formal logic checked by Lean’s kernel
- Type Checking in Lean 4 - a short book on how Lean’s kernel works, for people writing their own checkers
- T. Coquand & G. Huet: The Calculus of Constructions (1988) - the type theory underneath Rocq and Lean
- Andrej Bauer: How to implement dependent type theory (2012) - blog series building a small checker step by step
The LCF tradition
- Mike Gordon: From LCF to HOL: a short history - Robin Milner’s LCF (1972) introduced the small trusted kernel: theorems form an abstract type that only the inference rules can construct
- Larry Paulson: Isabelle: The Next 700 Theorem Provers (1989) - Isabelle as a generic framework for many logics
- John Harrison: HOL Light: an overview (2009) - a kernel of a few hundred lines of OCaml
Landmark Formalizations
- Four Color Theorem, Coq, G. Gonthier (2005) - see the Notices article above
- Feit–Thompson (Odd Order) Theorem, Coq, G. Gonthier et al: A Machine-Checked Proof of the Odd Order Theorem (2013)
- Kepler Conjecture (Flyspeck), HOL Light + Isabelle, T. Hales et al: A formal proof of the Kepler conjecture (2015)
- Liquid Tensor Experiment, Lean: Scholze’s challenge (2020), completion (2022)
- Polynomial Freiman–Ruzsa conjecture, Lean, T. Tao et al: PFR project (2023), formalized within weeks of the paper
- Fermat’s Last Theorem, Lean, K. Buzzard et al: FLT project (ongoing)
- Equational Theories Project, Lean, T. Tao et al: project (2024) - large scale collaboration, humans and computers, on 22 million implications between magma laws
- Software: CompCert verified C compiler (Coq), seL4 verified microkernel (Isabelle)
Tracking Progress
- Freek Wiedijk: Formalizing 100 Theorems
- 100 theorems in Lean
AI and Proof Checkers
The checker makes AI output trustworthy: an LLM can propose a proof, and the kernel accepts or rejects it. For the research literature, see Automated Theorem Proving.
- Google DeepMind: AlphaProof - AI achieves silver-medal standard solving IMO problems (2024), Lean
- DeepSeek-Prover-V2 (2025), Lean
- LeanDojo - tools and datasets for machine learning on Lean, Lean Copilot
- K. Zheng et al: MiniF2F: A Cross-System Benchmark for Formal Olympiad-Level Mathematics (2022)
People
- Kevin Buzzard - Lean, FLT project
- Leonardo de Moura - creator of Lean
- Patrick Massot - Mathematics in Lean
- Terence Tao - PFR, Equational Theories Project
- Georges Gonthier - Four Color Theorem, Feit–Thompson
- Thomas Hales - Flyspeck
- John Harrison - HOL Light
- Larry Paulson - Isabelle
- Thierry Coquand - Calculus of Constructions
- Vladimir Voevodsky (1966-2017) - univalent foundations