Claude proves Fermat's Last Theorem – generates 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 September 4, 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 Lean 4 proof assistant. This is the first complete machine-verified proof of the historical 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 within verification systems such as Lean 4, computers can check the accuracy of proofs automatically. 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 indicates that AI can be used to automate the verification of extremely complex mathematical proofs that would otherwise take years for human experts to review.
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 consists of approximately 13 million lines of Lean 4 code. Anthropic has published the research results and the code openly to allow other mathematicians and developers to examine 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 – generates 13 million l"