What matters in AI.

Subscribe

Learn / AI basics

Definition · AI basics

Proof assistants

A proof assistant is a program to write and check mathematical proofs in a formal language. A person or an AI system writes the proof. The program checks each step against the rules of a logic. Lean, Rocq and Isabelle are examples. A proof assistant can also check that software agrees with its specification.

Last reviewed

Key points

  • A proof assistant checks a formal proof by machine. In many designs, a small part called the kernel does the last check.
  • The check covers the statement as written. It does not show that the statement says what you intended.
  • AI systems such as AlphaProof write proofs in Lean, and Lean checks them.
  • A kernel is software and can have bugs. In 2026, an AI-assisted false proof passed the Lean kernel.

How it works

A proof assistant turns a proof into steps that a machine can check. In Lean, the work goes like this:

  1. The user writes the theorem in the formal language.
  2. The user, or an AI system, writes the proof, frequently with tactics. A tactic is a program that changes the current goal.
  3. The tactics build a detailed proof object, called a proof term.
  4. The kernel checks the proof term.
In Lean, tactics build a proof term, and the kernel accepts or rejects it.
In Lean, tactics build a proof term, and the kernel accepts or rejects it.

The kernel is small, which helps people to trust it. A bug in a tactic then usually gives an error, not a false theorem.

Not all proof assistants use the same design. Lawrence Paulson compares two:

Design How it keeps proofs honest Trade off
de Bruijn criterion (for example Rocq) Keeps the full proof, so a different checker can examine it Proof objects use memory
LCF architecture Lets only the logic rules make theorems No certificate for an independent check

Why it matters

A language model can write an argument that looks correct and is not, a type of AI hallucination. A proof assistant gives a check that ignores how sure the text sounds. Here it does the work of a verifier.

AlphaProof, from Google DeepMind, learns to write Lean proofs with reinforcement learning.

AlphaProof and AlphaGeometry 2 on the 2024 Mathematical Olympiad problems
28 of 42 | points, as Google DeepMind reported in July 2024
3 of 5 | non-geometry problems that AlphaProof solved
3 days | the longest time that some solutions took

People translated those problems into the formal language first. Automatic translation is called autoformalization. In 2022, Wu and colleagues reported that language models translated 25.3% of competition problems perfectly into Isabelle.

What a passed check does not show

A passed check shows less than many readers think. The Lean reference says that Lean can show a statement is proven, “but not whether it is the intended statement”.

Check these before you trust a proof:

  • The statement. Read the theorem and the definitions it uses.
  • Missing parts. The marker sorry stands for a missing proof.
  • Added axioms. A custom axiom is an assumption. The result is only as good as that assumption.
  • The checker. A kernel can have bugs.

In practice

Proof assistants check both mathematics and software:

  • Kepler conjecture. The referees of the first proof did not fully approve it. The Flyspeck project then made a formal proof in HOL Light and Isabelle.
  • CompCert. This C compiler has a correctness proof in Rocq. Some parts, such as assembling and linking, are not verified.
  • seL4. This operating system kernel has machine-checked proofs down to binary code. But the proofs rely on assumptions, for example that the hardware is correct.

Can an attacker fool a proof assistant?

Yes, through bugs. In 2026, the Lean project reported two such events:

  • 25 July. An AI-assisted “disproof” of the Collatz conjecture used a Lean kernel bug. It also passed a week-old version of nanoda, an external checker, through a second bug.
  • 30 July to 20 August. OpenAI internal models helped to find more errors. These included four kernel issues that let the model prove False. Lean v4.33.1 fixed them.

The Lean postmortem also says that lake build, the usual build command, does not keep users safe from hostile proofs.

Questions and answers

Is a proof assistant the same as a theorem prover?

A proof assistant is also called an interactive theorem prover. The word interactive is important. The user guides the proof, and the program checks it and can do some steps automatically.

Can a proof assistant stop AI hallucinations?

Only for claims that are written as formal statements and proofs. The program can reject a false proof step. It cannot check ordinary prose, and it cannot tell if the formal statement matches the question.

Which proof assistants do people use?

Examples are Lean, Rocq (formerly Coq), Isabelle and HOL Light. AlphaProof uses Lean. The CompCert compiler proof uses Rocq. The proof of the Kepler conjecture used HOL Light and Isabelle.

Sources

  1. About the Rocq ProverRocq Prover
  2. QED at Large: A Survey of Engineering of Formally Verified SoftwarearXiv (Ringer et al.), Mar 2020
  3. The Lean Language Reference: Tactic ProofsLean
  4. The Lean Language Reference: Elaboration and CompilationLean
  5. The de Bruijn criterion vs the LCF architectureLawrence Paulson, 5 Jan 2022
  6. The Lean Language Reference: Validating a Lean ProofLean
  7. Postmortem for Kernel Soundness Bug 14576Leonardo de Moura, 1 Aug 2026
  8. Postmortem for the Kernel Soundness Bug HuntLeonardo de Moura, 24 Aug 2026
  9. Olympiad-level formal mathematical reasoning with reinforcement learningGoogle Research (Nature), Nov 2025
  10. AI achieves silver-medal standard solving International Mathematical Olympiad problemsGoogle DeepMind, 25 Jul 2024
  11. Autoformalization with Large Language ModelsarXiv (Wu et al.), 25 May 2022
  12. A formal proof of the Kepler conjecturearXiv (Hales et al.), 9 Jan 2015
  13. CompCert C manual: introductionCompCert
  14. seL4 VerificationseL4 Foundation

In the news