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
  • 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)

Systems

Lean
Rocq (formerly Coq)
Isabelle
Agda
HOL family
Metamath
Mizar
  • Mizar - one of the oldest systems (1973), with a large Mizar Mathematical Library, proofs written in a readable, mathematical style
Others
  • F*, Idris - dependently typed languages focused on verified programs

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

  1. 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
  2. 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
  3. 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

The LCF tradition

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

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.

People

Other