Anthropic formalizes Fermat's Last Theorem in Lean: 13.4M lines, largest proof ever
AlexKontorovich · x · 2026-09-05
Anthropic announced that one of its internal models, using the prove2.me platform, has formalized a complete proof of Fermat's Last Theorem in Lean — the final item on Freek Wiedijk's famous list of 100 formalization challenges, closing out the 20-year-old benchmark.
Key facts:
- Over 13.4 million lines of Lean code and 29,500 intermediate theorems — called "the largest Lean proof ever constructed"
- It follows the Darmon–Diamond–Taylor (1995) exposition of the Wiles–Taylor–Wiles argument, via the Langlands–Tunnell theorem and Ribet's level-lowering theorem, not the modern proof route
- The repo develops Fontaine theory and enough of Mazur's Eisenstein ideal work; combined with prior formalization of odd regular primes, the result holds fully
- Mathematician Kevin Buzzard verified the code: it compiles and passes comparator checks, taking 20x longer to compile than mathlib on a 96-core machine
A landmark moment for AI in formal mathematics.
Related event: Claude Produces First Formalized Proof of Fermat's Last Theorem in 11 Days(52 posts)→
More from Research
- Quantum Researcher: Even a P=BQP Proof Wouldn't Mean a Usable Algorithm — MJBiercuk · 2026-12-05
- NeurIPS reviewer reveals a paper he rated accept was rejected over 'benchmaxxing' objection — lpachter · 2026-12-05
- OpenAI insiders deny rumor of BPQ=P proof, urge verification before panic — tszzl · 2026-12-05
- Fact localization in LLMs is somewhere between 1 and N neurons, not fully distributed — thebasepoint · 2026-12-05
- How facts spread across neurons: delete a set and the model flips the Hunchback's author — thebasepoint · 2026-12-05
- Robot learning researcher asks if the field's framing is a 'fake problem' — kscottz · 2026-12-05