Proof assistants

Hand-drawn three inverted stepped stacks of hatched terracotta courses, each narrowing onto a small terracotta square, over faceted sand, umber, linen and moss hatching.

A proof assistant, also called an interactive theorem prover, is a program for writing a proof of a mathematical or program-correctness statement. A small checker then verifies the proof step by step. The main systems are Lean, Rocq (formerly Coq), Isabelle/HOL, Agda, HOL4 and ACL2. They have checked large mathematical proofs, a compiler and an operating-system kernel. Their main limits lie at the edges of each proof: what the statement assumes, whether the definitions mean what was intended, and what lies outside the verified part.

AI models now write some of these proofs, but the published scores come from different theorem sets, models and attempt budgets, which makes them hard to compare across assistants.

What a proof assistant is

A proof assistant checks a proof that a person writes with the tool’s help. Other tools ask for the argument in another form. Auto-active program verifiers such as Dafny take a program with inline contracts or assertions, and the user adds hints as annotations (Beyer et al., 2022). Formal verification tools covers these and the model checkers and solvers around them.

The main systems rest on different logics. Lean is based on dependent type theory, in which the type of a value can depend on other values (Lean, n.d.a). Rocq works in an extension of the Calculus of Inductive Constructions, the logic that its automation tool CoqHammer translates for proof search (Czajka & Kaliszyk, 2018). Agda is a dependently typed language whose constructive proofs can also be run as programs (Agda developers, n.d.). HOL4 is built for higher-order logic (HOL, n.d.), while ACL2 uses a first-order logic based on a subset of Common Lisp (Hunt Jr et al., 2017).

Three of these systems, Lean, Rocq and Agda, use dependent types; the type theory article explains them.

How the trusted part stays small

Proof assistants keep the trusted part small: any tool may build a proof, but a minimal kernel checks it. In Lean, tactics (commands that build proofs step by step) produce terms in the core type theory, and a minimal kernel checks those terms (Lean, n.d.a).

Automation from outside the assistant follows the same rule. Isabelle/HOL’s Sledgehammer asks external provers, including SMT solvers, to prove a goal. Isabelle can then replay the certificates that proof-producing SMT solvers emit, so the answer is rechecked inside the assistant (Lachnitt et al., 2025). For Rocq, CoqHammer translates the assistant’s logic into untyped first-order logic for proof search (Czajka & Kaliszyk, 2018).

A passing check is only as good as what the file declares. In Lean, a successful check establishes the theorem relative to the definitions, theorems and axioms in the file and its imports. An axiom report lists a theorem’s dependencies, and sorryAx among them flags an admitted or incomplete proof (Lean, n.d.b). The formal verification article covers what a proof depends on in general.

Formal mathematics

Proof assistants have checked large, hard proofs in mathematics. A team formalized a constructive proof of the Feit–Thompson Odd Order Theorem in Coq during a six-year collaboration (Gonthier et al., 2013).

Lean’s community maintains Mathlib, a unified library of formalized mathematics (The mathlib Community, 2020). The Liquid Tensor Experiment relied heavily on it and verified the main theorem of liquid vector spaces about a year and a half after Peter Scholze posed the challenge (Mathlib community, 2022).

Verified software

Proof assistants have checked compilers, an operating-system kernel and hardware, each within a defined scope. The C compiler CompCert has Coq proofs that compiled code keeps the meaning of the source, from the Clight language to PowerPC assembly (Leroy, 2009). The seL4 microkernel has a functional-correctness proof of its C code, and security proofs, in Isabelle/HOL (Klein et al., 2014a).

Other assistants have verified other systems. CakeML’s verified compiler backend was developed in HOL4 (Tan et al., 2019). In ACL2, a case study proves that the AMD Athlon floating-point adder complies with the IEEE standard (Russinoff, 2000).

Where the proofs stop

A proof covers a stated property of a stated artifact, and large projects document what lies outside it. Four boundaries recur.

The first is the scope of the theorem. CompCert’s main theorem runs from the C abstract syntax tree to the assembly abstract syntax tree. It stops before external assembling and linking, and its parser is verified separately (CompCert, n.d.). seL4’s verified properties vary by architecture, platform and configuration. Its verified configuration excludes device address translation, debug and printing interfaces, and kernel startup at boot (seL4, n.d.).

The second is the strength of the property. A compiler from Isabelle/HOL to CakeML guarantees only partial correctness of the generated code relative to the original function definitions. Its first two preprocessing stages produce certificate theorems, and its main stage is implemented directly in HOL (Hupel & Nipkow, 2018).

The third is whether the definitions mean what was intended. A successful check holds relative to the definitions in the file, so it does not show that a definition captures the intended idea (Lean, n.d.b). The Liquid Tensor Experiment team published an examples folder to check that the definitions in the formal theorem behaved as expected (Topaz, 2022).

The fourth is the match between a model and the real code. Amazon’s Cedar team proved key correctness and security properties of an executable Lean model of their authorization language. They used differential random testing to check that the Rust production code matches the model. The proof work found and fixed four validator bugs, and testing found another 21 (Disselkoen et al., 2024).

AI models that write proofs

AI systems now write proofs in Lean, Isabelle and Rocq. The published scores differ in theorem set, model and number of attempts, so they are hard to compare across assistants.

On the miniF2F test set, Lean GPT-f found a proof for 24.6% of problems on its first attempt and 29.2% within eight (Zheng et al., 2022). On the same set’s Isabelle version, Lyra reached 47.9% and 51.2%, but with 200 attempts and informal proofs as input, written by GPT-4 or by people (Zheng et al., 2024a). ProofCoop proved 3,937 theorems (33.0%) of a different set, the CoqGym test set of about 11,900 theorems (Kaufman et al., 2026b).

How people learn and use proof assistants Weak evidence: few or small studies support this

A few small studies of experienced users describe proof development as a loop driven by the assistant’s feedback. Thirty Rocq or Lean users, each watched for an hour on their own work, iterated continually in response to that feedback (Shi et al., 2025b). A month of logs from eight intermediate to expert Coq users suggested that users most often repaired proofs by changing something earlier in the development, such as the specification (Ringer et al., 2020). Users also wanted to see the steps that automated proof search hides, which motivated a Rocq design that reconstructs them (Shi et al., 2025a).

These studies say little about beginners: the Rocq and Lean study excluded students doing homework (Shi et al., 2025b). A 2022 survey of 466 Coq users found that experience was associated with which tools, libraries and editors people used (de Almeida Borges et al., 2025).

Evidence on teaching is thin. In an exploratory study of 36 first-year students’ proofs, the authors hypothesize a link between engaging with Lean and the proof writing they saw, but the workshops were voluntary (Thoma & Iannone, 2021). In a master’s thesis with 70 students, hints in Agda error messages gave significantly more compiling submissions and were rated more helpful than the original messages. They showed no significant effect on how fast students fixed errors (Khakimova, 2025).

Further reading

Known gaps

What this article cannot tell you yet.

  1. How long a beginner takes to become productive with a proof assistant is unknown; the observational studies recruited experienced users.
  2. The Agda error-hint experiment, the Rocq and Lean observation study and the Coq log analysis have not been independently replicated.
  3. Effect sizes for the Lean teaching study and the Agda hints thesis are not given here, only their main results.
  4. No study compares Lean, Rocq and Isabelle on the same task with the same AI model; the benchmark scores cited use different systems and budgets.
  5. Proof size, proof effort and maintenance cost are not compared across assistants.

References

Solid source
Rated highly trustworthy by the research, and every passage taken from it was found in it.
Weak source
Rated low, or a passage taken from it was not found in it.
Medium trust
Rated medium by the research.
Not checked
Rated high, but its passages could not all be checked against it.
Show all 29 references