Lecture 11 ended with a consequence of the kernel’s design: since every term is checked from scratch, nobody needs to trust whoever wrote the tactics. This lecture takes that literally. Language models now write Lean proofs of competition problems, and in 2026 they wrote large parts of research formalizations. They are also often wrong, in ways that look convincing. Lean’s checker is their opposite. It cannot propose anything, but when it says yes, the yes is reliable. Combined, the two give a system whose output can be trusted more than either part.
The lecture has four parts. First, the loop that connects a model to Lean, and which parts of that loop are trusted. Second, what AI provers have done from 2024 to 2026. Third, the benchmarks behind the headline numbers, and why some of them have stopped measuring much. Fourth, the problem that no checker solves: whether the Lean statement says what the English one says.
Every claim about recent work carries one of the three tags of Lecture 13: VERIFIED (sorry-free Lean is public and someone outside the team checked it), SELF-REPORTED (the authors say so, and no independent check was found), or DISPUTED (an independent party has published a substantive objection). A tag applies to the claim on its line, not to a whole project.
Notebook and cheatsheet
Notebook 12: Proof search runs a small best-first search over tactics from Python, with Lean as the judge, and plots how often it succeeds as the budget grows. Cheatsheet: AI provers and benchmarks, exact?, apply?, aesop, grind, Does the statement say what you mean?.
Lean as a verifier
Definition 12.1 (Verifier and reward).A verifier is a program that takes a candidate proof and answers yes or no. For Lean, the verifier is the elaborator followed by the kernel. A reward is a number computed from the verifier’s answer and used to train a model by reinforcement learning: typically 1 when the proof is accepted and 0 when it is not.
Grading proofs written in English is slow, and a grader can be talked into accepting a confident wrong argument. A model trained against such a grader may learn to be persuasive rather than correct. A Lean verifier (Definition 12.1) is fast, automatic and cannot be persuaded. Each prover in this lecture produces proofs that Lean then checks; the figure shows the loop in its general form.
There are two common ways to drive the loop. In whole-proof generation the model writes a
complete proof, Lean checks it, and the model tries again with a fresh sample if it fails. In
step-by-step search the model proposes one tactic at a time, Lean runs it and returns the
new goals, and a search procedure decides which goal state to work on next. The second is
what aesop does with hand-written rules (Lecture 11), and what Notebook 12 does with a fixed
list of tactics. Either way, a failure is information. Here is a typical first attempt by a
model, which invents a plausible lemma name:
example (a b : Nat) (h : a < b) : a + 1 ≤ b := by
exact Nat.add_one_le_of_lt_strict hLean answers “Unknown constant Nat.add_one_le_of_lt_strict”. Fed back to the model, that
message leads to a second attempt with a lemma that exists:
example (a b : Nat) (h : a < b) : a + 1 ≤ b := by
exact Nat.succ_le_of_lt hThis one is accepted: Nat.succ_le_of_lt turns n < m into n.succ ≤ m, and n.succ is
n + 1 by definition. Goedel-Prover-V2 makes this step part of the prover. Its paper describes
“verifier-guided self-correction”, in which the model revises its proofs using feedback from
the Lean compiler (arXiv 2508.03613).
Definition 12.2 (Success at k attempts).A prover solves a problem at k attempts (written pass@k) if at least one of k independent attempts produces a proof that Lean accepts. Its score on a benchmark is the fraction of problems it solves this way.
The score at k attempts (Definition 12.2) can only grow as k grows, since more attempts cannot unsolve a problem. So “88.9% at 8,192 attempts” and “90.4% at 32 attempts” describe very different amounts of computation, and a number without its k says little.
What the reward must check
A model trained to maximise a reward learns whatever the reward actually pays for, which is not always what its designers meant. This is called reward hacking. A reward that pays for “Lean reported no errors” pays for this:
theorem looks_done (n : Nat) : n ≤ n * n := by
sorry
#print axioms looks_doneLean accepts the file with the warning “declaration uses sorry” and reports
'looks_done' depends on axioms: [sorryAx]. (Finishing the proof is an exercise; exact?
finds a one-line answer.) The other loopholes are the ones Lecture 11 listed: an extra axiom,
trusted code such as native_decide, or a proof of a different statement, for instance one
with an added hypothesis. So a sound reward, or a sound competition score, checks three
things: the file builds; #print axioms lists at most propext, Classical.choice and
Quot.sound; and the proved statement is exactly the one that was set. The third check is
what lake comparator in Lean 4.35 does: it takes a challenge file with the statements and a
solution file, and confirms that each theorem proves the same statement using only
permitted axioms (lake help comparator; Lecture 13 describes the standalone
Comparator it grew out of).
What AI provers have done, 2024 to 2026
The best-known results are on competition mathematics. All numbers below are as reported in the linked source.
| system | claim | tag |
|---|---|---|
| AlphaProof (DeepMind) | IMO 2024: 3 of the 5 non-geometry problems; with AlphaGeometry 2, 28 of 42 points, a silver medal. Humans translated the problems into Lean. Nature, 2025 | VERIFIED |
| Aristotle (Harmonic) | IMO 2025: 5 of 6 problems, four as Lean proofs and the geometry problem by a separate solver outside Lean; humans formalized the statements. arXiv 2510.01346 | SELF-REPORTED |
| Seed-Prover 1.0 (ByteDance) | IMO 2025: 5 of 6 (4 within contest time; the geometry problem by a separate solver, Seed-Geometry); PutnamBench 331 of 657. arXiv 2507.23726 | SELF-REPORTED |
| Seed-Prover 1.5 | PutnamBench 88%; Putnam 2025: 11 of 12 in 9 hours. arXiv 2512.17260 | SELF-REPORTED |
| AxiomProver | Putnam 2025: 12 of 12 in Lean, 8 of them within exam time (Axiom); claims all 6 problems of IMO 2026, with the Lean statements also written by AxiomProver (repo). | SELF-REPORTED |
| Open models | miniF2F: DeepSeek-Prover-V2 88.9% and Kimina-Prover Preview 80.7%, both at 8,192 attempts; Goedel-Prover-V2 (32B) 90.4% at 32 attempts with self-correction. 2504.21801, 2504.11354, 2508.03613 | SELF-REPORTED |
In 2026 the same methods reached research mathematics and real software:
- Fermat’s Last Theorem (Anthropic): VERIFIED. Claude agents produced a complete Lean proof in 11 days, about 13 million lines (Buzzard counts over 13.4 million), with occasional high-level human instructions. It follows the 1995 Darmon–Diamond–Taylor exposition and uses only the three standard axioms. Kevin Buzzard compiled it and ran Comparator himself; his view is that it adds “essentially nothing” new mathematically but is a big step for autoformalization. Anthropic, repo.
- Sphere packing (Math Inc’s Gauss): VERIFIED in dimension 8, SELF-REPORTED in dimension 24. Dimension 8 in about 5 days and dimension 24 in about 2 weeks, on top of a blueprint written by the human project at EPFL. The human project, a team separate from Math Inc, checked the dimension-8 code, including a lean4checker run by David Renshaw. arXiv 2604.23468, EPFL. Gauss also finished the strong Prime Number Theorem project in about 3 weeks, with “targeted human scaffolding” (SELF-REPORTED, repo).
- Erdős problems: SELF-REPORTED per problem. Tao’s wiki (frozen on 2026-06-30) lists about 24 problems with Lean proofs of AI solutions, by our count of its tables, most often formalized by Aristotle. Several of the “new” solutions were already in the literature, and Tao calls these the easy cases. wiki. A 2026 DeepMind paper reports proof search solving 9 of 353 Erdős problems stated in Formal Conjectures. arXiv 2605.22763
- Software: SELF-REPORTED. In Microsoft’s SymCrypt work, AI agents write the Lean proofs for 16.7k lines of Rust cryptography (237k lines of Lean in all, 30k of them generated by Aeneas) (arXiv 2609.15648). In LARK, language-model agents prove 9 of 10 production GPU kernels equivalent to PyTorch references and found a new data race in the tenth (arXiv 2611.02028).
Not every large project used language models. The Equational Theories Project settled all 22,028,942 implications between 4,694 laws for magmas (sets with one binary operation), using human proofs, classical automated provers (Vampire, Mace4) and SAT solvers; the paper reports that language models played only a limited role (arXiv 2512.07087). Three patterns stand out. In most of the competitions, humans wrote the Lean statements and the AI wrote the proofs. The big 2026 formalizations started from a human blueprint or a published exposition. And most claims are SELF-REPORTED: the FLT proof and the dimension-8 sphere packing are VERIFIED because someone outside each team checked them.
Benchmarks and saturation
Definition 12.3 (Benchmark and saturation).A benchmark is a fixed set of formal statements, here Lean theorems whose proofs are
sorry, on which provers are scored. A benchmark is saturated when the best scores are close to 100%: it no longer separates good systems from better ones, and the problems left unsolved may be errors in the benchmark itself.
miniF2F is a set of competition-style problems stated in Lean. Reported scores are above 90%, and the benchmark has known statement errors: a 2025 review found discrepancies between its Lean statements and the English problems and published a corrected version (arXiv 2511.03108). By the definition (Definition 12.3), miniF2F is saturated.
PutnamBench formalizes problems from the Putnam competition and keeps an official leaderboard. It is now saturated. Since August 2026 four entries have proved all 672 problems with answers given (Aleph by Logical Intelligence, Humanfia, NEAR AI and Forall), and a fifth (Midas) did so with answers withheld. Some proved corrected statements: Aleph reports fixing formalization errors in 28 problems, and NEAR AI ran two problems against fixed formalizations. The totals also differ between reports (657 problems for Seed-Prover 1.0, 672 here), so check which version of a benchmark a number refers to.
Software verification is a different story. Provers that are strong on Mathlib-style mathematics do much worse on these benchmarks (all numbers SELF-REPORTED):
- VeriSoftBench: 500 tasks from 23 real repositories; the best result is 41% with curated context and 35% with the raw repository. arXiv 2602.18307
- Verina: 189 tasks; o3 scores 72.6% on writing the code but 4.9% on proving it correct. arXiv 2505.23135
- CLEVER: 161 tasks; at most 1 of 161 solved end to end. arXiv 2505.13938
A plausible reason for the gap is that a competition problem is short and self-contained, with all of Mathlib behind it, while a proof about a real repository needs that project’s own definitions and lemmas, which no training set has seen. Lectures 8 to 10 showed how much of program verification is setting up those definitions.
Autoformalization and misformalization
Definition 12.4 (Autoformalization and misformalization).Autoformalization is machine translation of mathematics from natural language into Lean. A misformalization is a Lean statement, written by a human or a machine, that compiles but does not say what the English says.
The kernel cannot detect a misformalization (Definition 12.4). It checks a proof
against a statement, and says nothing about where the statement came from. This is step 4 of
the recipe in Lecture 5, and AI makes it more pressing: a
prover rewarded for proofs will happily prove a broken statement, and a broken statement is
often easier to prove. Here is a small example. The English problem: natural numbers x and
y satisfy x + y = 10 and x = y + 2; show that x = 6. A faithful version:
theorem pair_ok (x y : Nat) (h₁ : x + y = 10) (h₂ : x = y + 2) :
x = 6 := by
omegaNow a version with a one-symbol typo in the second hypothesis, the kind of slip a human or a model makes:
theorem pair_typo (x y : Nat) (h₁ : x + y = 10) (h₂ : x + y = 2) :
x = 6 := by
omega
theorem pair_typo_wild (x y : Nat) (h₁ : x + y = 10) (h₂ : x + y = 2) :
x = 1000 := by
omegaLean accepts both, with only standard axioms. The typo made the hypotheses contradict each
other, and from contradictory hypotheses everything follows, including x = 1000. A prover
scored on pair_typo gets full credit for saying nothing about the problem. Two cheap
sanity checks would have caught it:
example (x y : Nat) (h₁ : x + y = 10) (h₂ : x + y = 2) : False := by
omega
example : ∃ x y : Nat, x + y = 10 ∧ x = y + 2 := ⟨6, 4, rfl, rfl⟩The first proves False from the typo’s hypotheses, so they can never hold together. The
second exhibits numbers that satisfy the faithful hypotheses, so those are consistent. Such
checks help but are not a guarantee. A statement with consistent hypotheses can still have a
weaker conclusion, the wrong order of quantifiers, or a definition that does not mean what
its name suggests. No program can settle whether a formal statement matches an English one,
because the English one is not formal. That comparison stays with people.
The largest recent case is Navier–Stokes. In September 2026 OpenAI claimed finite-time blow-up for the 3D equations with a smooth external force, with a paper and a Lean 4 repository; the unforced problem remains open. In October, Bastounis, Circelli and Hansen showed that the Lean code does not faithfully match the written proof, with the English claims stronger than the Lean ones; they do not claim the result is false (DISPUTED, arXiv 2610.08144). Lecture 13 goes through the events one by one.
How to read an AI-proof claim
Remark 12.1 (Five questions for an AI-proof claim).
- Who wrote the statement? A human, the same system, or a benchmark? If a benchmark, which version, and is it known to contain errors?
- Does it check? Is the Lean public, does it build, what does
#print axiomsreport, and doesleanchecker(or Comparator) accept the compiled files?- What was the budget? How many attempts, how much time, and was it within the contest’s time limit?
- Who confirmed it? Is it on an official leaderboard, or checked by someone outside the team? That decides the tag.
- What kind of problem? A self-contained competition problem, a research formalization on a human blueprint, or proofs about real software?
Apply the questions (Remark 12.1) to three of the claims above. AxiomProver’s 12 of 12 on Putnam 2025 answers question 3 itself: only 8 were within exam time. Aleph’s 672 of 672 passes question 4, since it is on the official leaderboard, but fails question 2: the leaderboard lists its open data as NONE, so nobody outside can rebuild the Lean. AlphaProof’s IMO 2024 result does best on question 4, since it is VERIFIED and appeared in Nature; and on question 1, humans wrote its statements, so the system did not have to formalize anything. For claims that are not about AI, use the general audit checklist of Lecture 13, which these questions extend.
Try this
- In Notebook 12, add a tactic to the list or remove one, and see how the success curve changes.
- Change the conclusion of
pair_oktox ≤ 10. The hypotheses are still consistent, and the theorem still compiles. Which of the two sanity checks catches the change? What does? - Pick one row of the table, open its source, and answer the five questions.
- Finish
looks_donewithoutexact?, then compare with whatexact?finds.
Readings
- Thomas Hubert et al., Olympiad-level formal mathematical reasoning with reinforcement learning, Nature, 2025. The AlphaProof paper.
- Yong Lin et al., Goedel-Prover-V2: Scaling Formal Theorem Proving with Scaffolded Data Synthesis and Self-Correction, 2025. A readable account of an open prover’s training loop.
- Azim Ospanov et al., miniF2F-Lean Revisited: Reviewing Limitations and Charting a Path Forward, 2025. What goes wrong in a benchmark’s statements.
- Stanislas Polu and Ilya Sutskever, Generative Language Modeling for Automated Theorem Proving, 2020. GPT-f, an early language-model prover (for Metamath), and the shape of the loop used since.
- Avigad, Buzzard, Commelin, Degenne, Morrison, Nash and Topaz, How to Formalize All of Mathematics, Xena blog, 2026. Why experts should still write the blueprints when AI writes the proofs.
- Did you really prove it?, the Lean community’s guide to checking a claimed proof.