Anthropic says its Claude AI produced a formal, computer-checkable proof of Fermat's Last Theorem in 11 days, working mostly without human help. The result is about 13 million lines of Lean code, which Anthropic describes as the longest math proof ever written.
What was built
Fermat's Last Theorem states that no three positive whole numbers can satisfy a^n + b^n = c^n when n is greater than 2. Pierre de Fermat wrote the claim in a book margin in 1637. Andrew Wiles published an accepted proof in 1995, after a flaw in his 1993 version had to be repaired with Richard Taylor.
Claude did not discover new mathematics. It translated the existing proof into Lean, a language that lets a computer check every logical step. Details reported:
- Dozens of Claude agents worked in parallel, defining concepts and proving small results that were assembled into larger ones.
- Tianyi Peng and a team at Columbia, who build AI formalization tools, ran the effort with only occasional human nudges.
- Early agents lost track of proven results and stopped collaborating; those false starts make up about 7% of the final lines.
- A tool called Prove2Me gave agents a shared live to-do list, organized files for faster checking and kept plain-English notes on each result.
- Claude proved more than 30,000 supporting theorems and used billions of tokens.
The proof is more than five times the size of Mathlib, the shared library mathematicians use for formal work. It is posted publicly on GitHub.
Context and review
Kevin Buzzard of Imperial College London began a human-led project in 2024 to formalize Wiles's proof in Lean. Its outline runs 86 pages and its funding runs through 2029. Buzzard reviewed Claude's proof and said it proves the theorem "with no assumptions other than the axioms of mathematics."
Checking proofs by hand can take years. A computer-assisted proof of the Kepler conjecture took four years of review before a panel would say only that it was "99% certain."
Why it matters
A proof is only useful if it is correct, and verifying long arguments is slow. Formal verification replaces trust in a person's reading with a machine check of each step. For someone learning about crypto, this is relevant because cryptography rests on mathematical claims, and the same approach could help confirm that such claims hold. The story also shows both the potential and the limits of AI: Claude produced a verifiable record of a known result, not a new discovery, and the claims come from Anthropic, though the proof is open for anyone to inspect.




