Claude proves Fermat's Last Theorem – generating 13 million lines of Lean code
Anthropic has announced that its AI model, Claude, has created the first machine-verified proof of Fermat's Last Theorem using 13 million lines of Lean code.

What happened?
On 4 September 2026, Anthropic announced that its AI model, Claude, has completed a fully machine-verified formalisation of Fermat's Last Theorem. Claude worked largely autonomously for 11 days, generating approximately 13 million lines of code in the proof assistant Lean 4. This is the first complete machine-verified proof of the historic theorem.
Key facts
| Offentliggjort datum | 4 september 2026 |
|---|---|
| Tidsåtgång | 11 dagar |
| Kodvolym | 13 miljoner rader Lean 4-kod |
| Utvecklare | Anthropic |
”Checking that a major mathematical proof is correct can take years. Formalization—converting the mathematical reasoning into a form computer proof assistants like Lean can verify—guarantees mathematical correctness.”
Why it matters
Verifying large mathematical proofs manually often takes several years. By converting mathematical reasoning into code in verification systems such as Lean 4, computers can automatically check for correctness. Claude demonstrates that AI models can now perform advanced logical formalisation and code generation over several consecutive days with minimal human guidance.
Who is affected?
The result is primarily of interest to mathematics researchers, AI developers, and experts in formal verification. It paves the way for AI to be used in automating the verification of extremely complex mathematical proofs that would otherwise take human experts years to validate.
Impact on the EU
The work and the code for the machine-verified proof have been published globally by Anthropic and are available to researchers and developers within the EU without restrictions.
What else you should know
The code base amounts to approximately 13 million lines of Lean 4 code. Anthropic has published the research findings and the code openly so that other mathematics researchers and developers can review and build upon the proof.
Quick answers about this story
Vad har hänt?
När hände det?
Varför spelar det roll?
Är resultaten tillgängliga för forskare?
The link opens in a new window and leads to the publisher's own site.
Källan har spårats automatiskt från utgivaren via Aheadlines signalkedja.
AI-verktyg i artikeln
Topics
Get similar news straight to your inbox
The reader's room
Send in a question or an addition. The newsroom reads everything before it's published and replies when relevant. No AI-generated text – just people.
Sign in to submit a comment or question.
Read the article through your role
- Assess technical risk: model choice, vendor lock-in, data flow and running cost.
- Update the architecture doc if new APIs or regulations touch production.
- Ensure observability + rollback plan before rolling out to production.
Generated angle — not editorial analysis of "Claude proves Fermat's Last Theorem – generating 13 million "