What a Lean proof certifies, and what it doesn't.
In 2026, 'there is a Lean proof' stopped being the end of an argument and became the start of five specific questions. Here is how to read a verification receipt.
A few years ago, telling a mathematician "there is a Lean proof" ended the conversation. Formalization was slow, artisanal human labor; if someone spent two years translating a theorem into Lean, you could reasonably assume experts had vetted both the theorem statement and the mathematics behind it.
In late 2026, that world is gone. AI systems now produce 70,000-line and 17-million-line Lean repositories faster than humans can read the table of contents. On isitsolved.com, hundreds of tracked claims now carry a checkbox saying "Lean proof by the claimant." Some of them—like Levent Alpöge's proof of the Riemann hypothesis—have survived the most thorough machine audit in mathematical history. Others hide extra assumptions in plain sight, rest on hundreds of lines of unaudited custom definitions, or prove a theorem subtly different from the one announced in the paper.
A Lean proof is still one of the strongest pieces of evidence mathematics has ever had. You just have to know exactly what the machine checked, and where the machine stops.
What a clean Lean check actually certifies
Lean is built on dependent type theory: every mathematical statement is a type, and a proof is a term of that type. When you build a Lean project, an army of tactics, macros, and automation helps search for that term—but at the very end, the finished proof term is handed to a relatively small, strict program called the kernel. The kernel cares nothing for how clever the tactics were or whether a human or an AI wrote the file. It checks, step by mechanical step, that the term genuinely has the claimed type under a handful of foundational rules.
When a Lean receipt on isitsolved.com/lean/receipts or leanverified.com reports ACCEPTED, five concrete things have been certified:
- It builds from source at a pinned version. The project was compiled from its exact commit (or content-addressed zip) against a pinned Lean toolchain and Mathlib commit, inside a sandbox with no network access—so the build cannot quietly fetch tampered dependencies or rely on untracked local files.
- No
sorry. Lean has a built-in escape hatch,sorry(internally the axiomsorryAx), that lets an author skip an unfinished lemma so the rest of a file compiles. Walking the entire dependency cone of the main theorem confirms thatsorryAxnever appears anywhere underneath it. - Only the three standard axioms. Every theorem in Mathlib rests on at most three foundational axioms beyond Lean's core logic: propositional extensionality (
propext), the axiom of choice (Classical.choice), and quotient soundness (Quot.sound). Checking#print axioms—or walking every constant used in the proof graph—guarantees that no customaxiomwas declared to smuggle in an unproved conjecture. (By contrast, OpenAI'sPrimeGaps186Lean repository explicitly takes two deep exponential-sum estimates as axioms, which makes it a conditional check, not an unconditional proof.) - No
native_decide. Lean'snative_decidetactic evaluates a finite computation using compiled native code and injects the result via the internal axiomsLean.ofReduceBoolorLean.ofReduceNat. That skips the kernel and forces you to trust the entire compiler, runtime, and code generator. A strict receipt rejectsnative_decide. - No hidden skips during elaboration. Replaying every declaration from the compiled
.oleanfiles through the kernel withtrustLevel := 0(asleancheckerand our ownIISCheck.leando) ensures no compiler flag or metaprogram bypassed kernel checking while building.
That is already extraordinary. No overlooked boundary case, no forgotten sign flip on page 84, no unproved claim tucked into a computer-assisted appendix can get past a clean kernel replay. Earlier in 2026, when EPFL and Math, Inc. formalized 24-dimensional sphere packing in Lean (IIS-P-0018), the kernel caught and forced the repair of an incomplete step in a published computer-assisted appendix.
Now here are the five things that none of the above certifies.
1. That the formal statement says what mathematicians think it says
This is the single largest gap in formal verification, and it has nothing to do with bugs. Lean's kernel checks that the proof matches the Lean type. It has no concept of English, arXiv titles, or mathematical history. If the Lean type has a bug, an unintended extra assumption, or a vacuous definition, Lean will stamp a bogus theorem ACCEPTED with complete mathematical integrity.
Look at three real examples on our site right now:
- Extra hypotheses baked into the statement. On 26 November 2026, our node built OpenAI's Lean formalization of "The Partition Principle does not imply Choice" from source and issued receipt
82c4f865c974:ACCEPTED, 8,523 declarations, zerosorry, standard axioms only. Yet reading the exact Lean type printed on that receipt shows what the theorem actually assumes: a countable transitive ground modelMof \(\mathsf{ZFC}\) containing a strongly inaccessible cardinal (GroundStandardInaccessible M K). That proves relative consistency from \(\mathsf{ZFC}\) plus a large cardinal, not from \(\mathsf{ZF}\) alone. Furthermore, because Mathlib does not have a standard syntactic encoding of first-order \(\mathsf{ZF}\) forcing, the challenge file definesSetFormula,BoundedFormula,Realize,partitionPrinciple, andchoiceacross 277 lines of raw de Bruijn indices (Fin n). A single off-by-one index in any of those definitions could alter the meaning of the theorem without Lean ever complaining. - Total functions and "junk values." Because Lean functions must return a value on every input, division by zero returns
0, and Mathlib'sriemannZeta 1returns whatever value the Hurwitz continuation happens to produce at its pole. That is why Mathlib's three-lineRiemannHypothesisexplicitly adds the hypothesiss ≠ 1: to keep the statement independent of a convention. In a three-line Mathlib definition reviewed by hundreds of people, that subtlety is easy to spot. In a newly written 300-line definition, similar edge cases are easy to miss. - Formalizing only half of the chain. Mathlib's Archive contains a celebrated Lean proof for the sensitivity conjecture—but it proves Hao Huang's hypercube degree theorem, not Craig Gotsman and Nathan Linial's 1992 reduction from Boolean sensitivity to the hypercube. That link stays on paper. Likewise, on our own receipt for a Fourier witness bounding the least quadratic nonresidue constant
c1-witness-tail, Lean certifies the analytic tail bound and exact rational arithmetic, while external 128-bit Arb ball arithmetic supplies the numerical enclosures and Carneiro et al.'s published theorem supplies the link to \(\mathcal{C}(1)\) on paper. Every honest receipt has to say where Lean ends and paper (or external computation) begins.
2. That the solution did not tamper with its own definitions
Suppose a repository defines its own theorem MainTheorem inside its own source tree and proves it with zero sorry and standard axioms. Building that repository proves internal consistency—but it does not prove that MainTheorem matches an independent specification, nor that the project didn't modify a Mathlib dependency along the way.
That is why high-confidence verification requires statement matching (using tools like Comparator, con-leche --compare, con-ron --compare, or our IISCheck.lean for the 5,094 conjectures in formal-conjectures):
- Start from a short, independently audited challenge file that imports only official, hash-verified Mathlib.
- Compile the solution separately.
- Verify mechanically that the proved theorem's type is definitionally equal to the challenge statement, and that the
.oleanfiles for Mathlib are byte-for-byte identical to the official cache.
Our automated project receipts (/lean/receipts) print the exact theorem statements as Lean sees them and record the pinned Mathlib commit, but they do not yet run Comparator automatically against an external challenge file—which is why our receipt pages display the paper's claim right above Lean's printed statement and explicitly note: "Not checked by a machine: that these statements say what the paper claims."
3. That the Lean proof matches the prose paper
A human or AI author can release a 150-page PDF alongside a Lean repository, and both can exist without being the same proof. In September 2026, OpenAI announced a forced finite-time blowup for 3D Navier–Stokes (IIS-P-0006), and independent auditors confirmed that the Lean theorem passed both Lean's kernel and nanoda against an independent statement of Clay's option (C). Yet shortly afterward, Alexander Bastounis, Fabian Circelli, and Anders C. Hansen (arXiv:2610.08144) argued that OpenAI's Lean proof does not correspond to its natural-language paper.
If the Lean statement faithfully captures the theorem, a correct Lean proof establishes truth regardless of what the PDF says. But in science, the paper is how ideas enter the literature, get credited, and get generalized. A Lean kernel cannot check whether an English manuscript accurately explains what the code proved.
4. That the proof assistant's kernel has no bugs
A kernel is small—far smaller than a 17-million-line proof—but it is still code written by humans. On 25 July 2026, Ramana Kumar posted a Lean "disproof" of the Collatz conjecture that was accepted by two kernels. Nobody had disproved Collatz; the proof exploited a subtle soundness bug in Lean's kernel, which the Lean FRO patched in Lean 4.32.2 three days later.
The remedy is defense in depth: replaying an exported proof through independently written kernels in different languages—such as nanoda (written in Rust), con-leche, con-ron, lean4lean (a Lean kernel formalized in Lean), and Lean's own stricter "paranoid" mode. A bug in one codebase is plausible; the same accidental soundness bug appearing independently in four separate implementations is vanishingly unlikely. That is why Andrew Sutherland ran every one of them on the Riemann hypothesis proof.
5. That anyone understands the proof
A 17-million-line proof—or even a 76,000-line compressed rewriting—can pass five kernels and still be opaque to every human mathematician alive. Formal verification gives us certainty. It does not automatically give us insight.
Understanding is what tells mathematicians which lemmas are load-bearing, which assumptions can be weakened, and how an idea from number theory might crack a problem in geometry or combinatorics. That is why isitsolved.com draws a hard line between our fifth rung (Verified) and our sixth (Understood).
How to read our evidence matrix
Because "Lean-verified" now covers everything from a claimant's unchecked GitHub folder to a five-kernel, byte-for-byte audited classic, leanverified.com breaks every major formal proof into six separate columns instead of a single green badge:
| Column | What it asks |
|---|---|
| Kernel | Did the proof assistant's kernel accept the full proof with no sorry? |
| Std axioms | Is it documented that only the standard axioms (propext, Classical.choice, Quot.sound) were used, with no native_decide? |
| Statement | Was the proved theorem matched against an independent, trusted statement (Comparator, Mathlib, or formal-conjectures)? |
| 2nd kernel | Did an independently implemented kernel (nanoda, con-leche, lean4lean, or another proof assistant) accept it too? |
| Replayed | Did someone other than the authors rebuild or re-check it from source? |
| Peer review | Has a human-readable proof been refereed or broadly accepted by experts? |
An empty cell in that matrix does not mean a proof is wrong; it tells you what nobody has checked yet.
When you open an automated receipt on isitsolved.com/lean/receipts, you see our node's exact record: the pinned commit, toolchain, Mathlib hash, declaration and module counts, build time, zero sorry / extra-axiom / native_decide checks, the exact theorem types as Lean prints them, an interactive proof map, and a Bitcoin OpenTimestamps proof anchoring the map's SHA-256 hash. Read that receipt as a solid floor, not a ceiling. It proves the code really compiles and the logic inside it is airtight—so human reviewers can stop hunting for arithmetic slips and spend their time on the two questions only mathematicians can answer: is this the theorem we meant to prove, and why is it true?