Every big AI math claim this year ends with the same reassurance: "and it was checked in Lean." The Riemann hypothesis, then an exotic 4-sphere. If you are not a mathematician, that line reads like a seal of approval. So what did Lean check?
Lean's kernel checked that the proof proves the formal statement, exactly as written. It did not check that the formal statement says what the paper claims, or that the definitions in it are the ones mathematicians use. A proof of the wrong statement passes as cleanly as a proof of the right one. Below is a one-line "proof" of Goldbach's conjecture that Lean accepted.
| Level | What it rules out | What it can't tell you |
|---|---|---|
| 1. It compiles | Broken proof steps | sorry, extra axioms, a rigged build |
| 2. Kernel replay | Tricks in the author's build | Whether the statement is right |
| 3. Independent kernels | A bug in Lean's own kernel | Same |
| 4. Statement match | A proof of a weaker statement | Whether the reference is right |
| 5. Axiom policy | Smuggled-in assumptions | Same |
| 6. A human reads it | A statement that means something else | Slow, and experts are scarce |
sorry is Lean's placeholder for a step nobody has proved yet. Write it anywhere in a proof and Lean accepts the rest, with only a warning.
What Lean checks
Lean is a proof assistant. You write a theorem and its proof in Lean's language, and a small program at its center, the kernel, checks every step against the rules of its logic. Nature's guide to Lean has the background: Mathlib, the shared library of formalized math, now has more than two million lines.
The kernel sees a formal statement and a proof. It never sees the paper or the press release.
A one-line proof of Goldbach's conjecture
Goldbach's conjecture says every even number greater than 2 is the sum of two primes. Goldbach put it in a letter to Euler in 1742, and it is still open: computers have checked every even number up to 4 × 10^18, but nobody has proved it. Here is a Lean statement that looks a lot like it:
∀ n : ℕ, 2 < n → Even n → ∃ p q : ℕ, p.Prime ∧ q.Prime → p + q = n
In plain words: for every whole number n that is even and bigger than 2, there are two numbers p and q such that, if both are prime, they add up to n.
And a proof:
fun n _ _ => ⟨0, 0, fun h => absurd h.1 Nat.not_prime_zero⟩
In plain words: whatever n you give me, I pick p = 0 and q = 0. If you then claim 0 is prime, that is absurd, because Mathlib already proves 0 is not prime. Done.
I sent both to Delegate's free "Check a Lean Proof" service, which runs Lean 4.35.0 with Mathlib. It came back after 29 seconds:
Lean verified the submitted proof.
Verdict verified, reason proof_verified, no diagnostics. Somebody tell Euler.
Verified. But is it really?
No. The bug is one arrow. p.Prime ∧ q.Prime → p + q = n reads "if p and q are prime, they add up to n". Pick p = 0. Zero isn't prime, so the "if" is false and the whole sentence is true for free. The statement asks for nothing, and the proof delivers nothing, correctly.
Then I replaced the arrow with ∧, which is what Goldbach meant, and sent the same proof. Rejected, with a compile error:
Application type mismatch ... but is expected to have type Nat.Prime 0 ∧ Nat.Prime 0 ∧ 0 + 0 = n
The kernel wasn't fooled. It checked exactly what I wrote, and what I wrote first was nonsense.
For a control I also sent Euclid's theorem that there is a prime above every number, ∀ n : ℕ, ∃ p, n ≤ p ∧ p.Prime, with Mathlib's proof Nat.exists_infinite_primes. Verified, as it should be.
Real mistakes are rarely this silly: a definition that differs slightly from the textbook one, or a hypothesis that can never hold. ETH Zurich's HumanLean team audited Lean code from OpenAI, Axiom Math and 29 other AI-assisted proofs and found cases where the code did not correctly state or prove the paper's main theorem, according to a report first published by Wired. Kevin Buzzard separately found 38 such cases in OpenAI's October release.
The six levels
1. It compiles
The author ran Lean and saw no errors. This is the weakest level. sorry, Lean's placeholder for "trust me", only produces a warning, and a file can declare new axioms of its own.
2. Kernel replay
The finished proof is exported and replayed by Lean's kernel, separate from the author's build. For the Riemann hypothesis, the Lean FRO and Mathlib Initiative wrote that the checks "ran on an inert export of the proof, out of reach of hypothetical malicious code in the Lean proof sources."
3. Independent kernels
Lean's kernel is software, and Buzzard told Nature it is still vulnerable to bugs and glitches. So careful projects replay the proof in checkers written by other people: nanoda, con-ron, con-leche. The RH proof went through Lean's kernel, con-leche, con-ron and several more. The Lean FRO notes that con-leche and con-ron come with a formal proof that they cannot accept a false proof.
4. Statement match
Someone writes the statement in a short separate file, ideally before the proof exists. A tool called Comparator then checks that the proof proves "the same statement as provided in Challenge", the reference file, and not a weaker one. My Goldbach trick dies here, as long as the reference has the right arrow.
Comparator moves the question, it doesn't answer it. Its own README lists, among its assumptions, that the reference file and its imports are "controlled by you or trustworthy". For RH the reference was Mathlib's own RiemannHypothesis, which the Lean FRO says was "carefully vetted by experts in Lean and number theory."
5. Axiom policy
The proof may use only Lean's three standard axioms: propext, Quot.sound and Classical.choice. An extra axiom can say anything, including the theorem you were trying to prove.
6. A human reads the statement
Does this Lean statement say what the paper says, with the standard definitions? No program answers that. Palomar, a public registry of Lean-verified results, runs levels 2 to 5 and then asks a language model whether the formal statement matches the claim. Its pages say that review is "not human peer review or a novelty certificate".
That AI review is still useful. Palomar's entry for part (i) of Erdős problem #643 passed Lean's kernel, nanoda and con-ron, and the review still flagged an unsupported claim in the write-up that the proof was original. DeepMind's formal-conjectures repo then marked part (i) solved and linked the entry. No kernel reads the prose around a proof.
DeliveredPartial or doubtfulWrong or missingNot offered
What this means for OpenAI's 4D Poincaré proof
OpenAI's December 4 update claims an exotic 4-sphere with a Lean proof. The Comparator config it posted allows only the three standard axioms and sets "enable_nanoda": false, so the published check runs Lean's own kernel only. That isn't special treatment: 422 of the 427 Comparator configs in the repo do the same. Anyone can rerun it with nanoda switched on.
The reference statement is in decent shape. It is adapted from DeepMind's formal-conjectures project, based on Junyan Xu's formalization in Mathlib, so the target wasn't written from scratch by the people who then hit it. Level 6 hasn't happened yet. And OpenAI's own scope note says "the formalized proof differs from the arguments in the accompanying papers." The Lean proof vouches for the theorem, not for the six papers.
The Riemann hypothesis proof got more: Mathlib's statement, several kernels and a public sign-off from the people who maintain Lean. Both claims are "checked in Lean".
What a Lean mark means on Delegate
Delegate runs Rooms, shared workspaces where people and their agents work on open math problems, and the Lean checker I used above. It takes a statement and a proof separately and checks the proof against the statement you give it, with Lean's own kernel. It refuses sorry: a proof that was only by sorry came back rejected with "Illegal axiom detected: 'sorryAx'". It does not run nanoda or con-ron, and it does not compare your statement to a reference.
So a green Lean mark in a room means the kernel accepted the file. It is not a statement review. My fake Goldbach proof would get one.
The statement is usually a few lines. The proof can be 17 million. Read the few lines.
How I checked this
On December 5, 2026 I ran four checks on Delegate's free Lean checker (Lean 4.35.0, Mathlib 4.35.0). The misplaced-arrow Goldbach statement with the proof above was verified. The corrected statement with the same proof was rejected with a compile error. The corrected statement with by sorry was rejected for an illegal axiom. Euclid's theorem with Nat.exists_infinite_primes was verified. Each took about half a minute. The exact statements and proofs are the ones printed in this post.
I read Comparator's README and OpenAI's math repo at commit 14ea6ca and at its latest commit of December 4, where I counted the configs that set enable_nanoda to false. I also read the other sources linked above.
Delegate runs Rooms and the Lean checker. The checks cost nothing.
Questions people ask
Does "verified in Lean" mean a proof is correct?
It means the proof is a correct proof of the Lean statement. Whether that statement is the theorem in the paper is a separate question.
Can a Lean proof be wrong?
The proof itself almost never is, once a kernel has replayed it. The usual failures are a statement that says something weaker or different, an extra axiom, or a sorry nobody noticed.
What is Comparator in Lean?
A tool that checks a proof against a separately written reference statement, with a fixed list of allowed axioms. It catches a proof of a weaker statement. It trusts the reference.
What are nanoda and con-ron?
Independent proof checkers for Lean, written separately from Lean's own kernel. If they all accept a proof, a bug in one kernel is unlikely to be the reason.
Who checks that the Lean statement matches the paper?
People. Palomar adds an AI review and Mathlib vets reference statements, but the final call is a mathematician reading it.
Lean answers "is this proof right?" very well. It has no opinion on whether you asked the right question.