Anthropic announced on September 4, 2026, that it had written out the proof of Fermat's Last Theorem in a form that a computer could verify to the end. Written in the theorem prover Lean, the scale reached 13 million lines.
What is new
The proof itself is not new. Andrew Wiles proved Fermat's Last Theorem in 1995, and later Henri Darmon, Fred Diamond, and Richard Taylor summarized it into a more concise form. The mathematical content has not changed.
What is new is that the proof has been transferred into a form where a machine can verify it line by line. A proof that humans read and find convincing is different from a proof that a computer can verify step-by-step from axioms; the work of rewriting the latter is called formalization. It is stated that they have reached a point where it can be derived from only three standard axioms of Lean.
The numbers are as follows.
| Duration | 11 days |
| Lean code | 13 million lines |
| Theorems proved | 30,300 |
| Of which, used in the final proof | 29,500 |
| Output tokens | Approximately 6 billion |
| Scale comparison | More than 5 times that of the shared library Mathlib |
How it was created
At the center was Prove2Me, a platform designed for dividing up formalization work by Anthropic researcher Tianyi Peng and other collaborators at Columbia University. It breaks down the proposition to be proven into small parts, maintains dependencies as a directed acyclic graph (DAG), and has multiple work units fill in the gaps in parallel. A comparator is also included to check if the propositions are written uniformly.
The foundation is the proof library Mathlib, built up by the community, and the formalization itself has been advanced by the FLT project led by Kevin Buzzard of Imperial College London. The results of this effort build upon that accumulation.
What did not go well is also written
The announcement does not just list successes.
- Initially, there was a stage where the status of work was lost, making it impossible to maintain the division of labor
- Initial attempts that ended in failure accounted for approximately 7% of the lines that were ultimately not used
- The resulting proof may be longer than necessary (less efficient compared to Mathlib)
- They stated that it would not have succeeded without Prove2Me
⚠️ It is also explicitly stated that this is a proceeding that uses a large amount of tokens. The figure of 6 billion output tokens serves as material for considering costs when extending this same approach to other theorems.
Experiment with speed
It is also reported that formalization of Vinogradov's theorem on the ternary problem of primes using Hardy-Littlewood's circle method was completed in 3 days within the same framework. When compared with Fermat's 11 days, this serves as an example showing that smaller-scale targets can be handled in units of days.
How to interpret it
Formalization opens a path that does not leave the correctness of mathematics solely to human peer review. Verification by hand becomes more difficult as proofs become longer, and Fermat's Last Theorem was a prime example. The fact that it has become a form verifiable by machines is the greatest achievement of this time.
On the other hand, this is not a story of "AI discovering a theorem." It is work that transferred an existing proof into a verifiable form. It is important not to misread the point that no new mathematical results were produced.