Anthropic says Claude formalised Fermat's Last Theorem in Lean
First, the thing most coverage will get wrong.
Claude did not prove Fermat's Last Theorem. Andrew Wiles proved it in 1994, and mathematics has accepted that proof for three decades.
What happened here is formalisation: rewriting an accepted proof in a language where a computer can check every single step, with nothing assumed, nothing skipped, and no appeal to a reader's judgement. Anthropic says Claude produced "the first end-to-end, computer-checked proof of FLT" in the Lean proof assistant, working "largely autonomously" for 11 days, as part of a community effort led by Kevin Buzzard at Imperial College London that began in 2024.
That is a different job from proving it. It is also, it turns out, a much larger one than almost anyone outside the field would guess.
How big is the Lean proof of Fermat's Last Theorem?
Wiles's proof is 129 pages.
The formalisation is 13 million lines of Lean.
That is roughly 100,000 lines of machine-checkable mathematics per page of human mathematics.
It gets better. The result is over five times the size of Mathlib — the community's entire accumulated library of formalised mathematics, built collaboratively over years, covering everything from basic algebra upwards. One theorem, written out in full, is five times all of it.
What that gap actually is
This is the genuinely interesting part, and it is not about AI at all.
When a mathematician writes "it follows that", or "by a standard argument", or "the reader may verify", they are compressing. Not sloppily — those phrases are load-bearing and professional, and they point at reasoning a trained reader can reconstruct. A research paper is written for people who already hold most of the relevant mathematics in their heads.
A proof assistant holds nothing in its head. Every "standard argument" has to be supplied. Every object needs its definition, every definition needs its prerequisites, and the prerequisites need theirs, all the way down.
The ratio between those two documents is a measurement of how much a page of expert mathematics is leaning on the reader — and it is about five orders of magnitude. That is worth knowing regardless of who or what did the typing.
The work produced 30,300 theorems, of which 29,500 were used in the final proof. The 800 that were not are the visible residue of a search: things proved on the way that turned out not to be needed.
On the eleven days
Anthropic reports roughly 6 billion output tokens consumed. Across 11 days that is on the order of 13 lines of Lean per second, sustained, day and night.
Human involvement was real but sparse and high-level — the example given is a nudge of the form "Jacobian as a scheme sounds high priority." So: direction from people, volume from the machine.
It is worth being precise about why this task suits a model. Lean checks the answer. Unlike an essay or a piece of analysis, a formal proof is either accepted by the compiler or it is not, with no judgement call and no hallucination surviving contact. That makes it one of the rare domains where a model can iterate against a perfect, instant critic — and where you can trust the output without trusting the process.
What this does not show
The theorem was already proved. Nothing new is known about Fermat's Last Theorem today that was not known yesterday.
It stands on an enormous amount of prior human work. Wiles's proof, Buzzard's formalisation project and its roadmap since 2024, Mathlib, and the Lean system itself. "Largely autonomously" describes the final push, not the foundations.
Checking a formalisation checks the proof, not the statement. Lean verifies that the argument establishes the theorem as written down in Lean. Whether the Lean statement faithfully expresses Fermat's Last Theorem is a human judgement, and it is the one place this kind of work can still go wrong.
This is the developer's own account. The claims are Anthropic's, about its own model. A formal proof is unusually checkable — that is rather the point — but independent verification of the artefact is a separate step from reading the announcement.
Six billion tokens is not free. Whatever this cost, it is not a technique anyone applies casually.
Details
Source: Formalizing Fermat's Last Theorem, Anthropic, 4 September 2026. The formalisation effort is led by Kevin Buzzard at Imperial College London.
Per-page and per-second figures above are our own arithmetic from the published totals.
Sources
Related stories
- OpenAI publishes 721 maths manuscripts it says an AI model wrote
- IISc's Mahesh Kakde Wins the 2026 Ramanujan Prize for Work on Iwasawa Theory and the Brumer-Stark Conjecture
- Anthropic sets Fable 5.1 cache reads at 2.5% of input price
- MIT authors post a proof of Khot's 4-to-1 games conjecture
- Preprint claims a proof of Fraenkel's Beatty-sequence conjecture
- Preprint claims proof of the Arnold-Givental conjecture
More from Number Ninjas
- The 2026 Fields Medals go to Deng, Pardon, Tsimerman and Wang
- Minimal distance problem has exponent 2/3, a preprint reports
- Polynomial map is a counterexample to the Jacobian conjecture
- No algorithm spots algebraic matroids in all fields, authors say
- A Statistics Guarantee Held for Twenty Years. It's False — and a Language Model Found the Hole in 90 Minutes