<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/the-man-paid-to-prove-fermat-by-hand-says-claude-did-it-in-11-days-ugklc51cw" -->

---
title: The man paid to prove Fermat by hand says Claude did it...
description: Anthropic used dozens of Claude agents to write 13 million lines of Lean code and produce a complete, computer-checked formal proof of Fermat's Last Theorem in...
canonical: https://daily.dev/posts/the-man-paid-to-prove-fermat-by-hand-says-claude-did-it-in-11-days-ugklc51cw
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: The man paid to prove Fermat by hand says Claude did it in 11 days | daily.dev
og:description: Anthropic used dozens of Claude agents to write 13 million lines of Lean code and produce a complete, computer-checked formal proof of Fermat's Last Theorem in...
og:url: https://daily.dev/posts/the-man-paid-to-prove-fermat-by-hand-says-claude-did-it-in-11-days-ugklc51cw
og:image: https://api.daily.dev/og/posts/UGKLc51cW.png
og:image:alt: The man paid to prove Fermat by hand says Claude did it in 11 days
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# The man paid to prove Fermat by hand says Claude did it in 11 days

**[The Next Web](https://daily.dev/sources/tnw)** · 6 min read · 0 upvotes · 0 comments

## Summary

Anthropic used dozens of Claude agents to write 13 million lines of Lean code and produce a complete, computer-checked formal proof of Fermat's Last Theorem in eleven days, following the 1995 Darmon-Diamond-Taylor exposition of Wiles's argument. Kevin Buzzard of Imperial College London, who holds a five-year EPSRC grant to formalise the same theorem, verified the proof himself and confirmed no soundness exploits or shortcuts were used. He stresses the result adds no new mathematics — the community already treats Wiles's proof as essentially certain — but calls the speed of formalisation itself the real signal, since it suggests modern research could soon be formalised as it's published. The first attempt by the agents failed and lost coherence; success came only after adopting Prove2Me, an open coordination platform that tracks theorem dependencies and splits work into reusable files, alongside a multi-agent harness built on Claude Code. The proof cannot yet enter Mathlib, since maintainers currently won't accept AI-authored contributions and are wary of reviewing them, meaning the bottleneck has shifted from writing proofs to reviewing them.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://thenextweb.com/news/anthropic-claude-fermat-last-theorem-lean-buzzard>

## Questions this post answers

### Did Claude actually prove Fermat's Last Theorem or just verify an existing proof?

Claude agents formalized the existing proof of Fermat's Last Theorem in the Lean proof assistant, rather than discovering new mathematics. The formalization followed the 1995 Darmon-Diamond-Taylor exposition of Wiles's argument, producing 13 million lines of Lean code with 30,300 intermediate theorems, 29,500 of which were used in the final proof. Kevin Buzzard, who holds a grant to formalize the same theorem, confirmed the mathematics itself adds nothing new.

_daily.dev tracks developments like AI-assisted formal verification for engineers following what agentic coding can actually deliver._

### How long did it take Anthropic's Claude agents to formalize Fermat's Last Theorem in Lean, and what made the first attempt fail?

The successful run took eleven days and produced 13 million lines of Lean code, but an earlier attempt with the same models failed when agents lost track of the project's state and stopped collaborating. Success came only after adopting Prove2Me, a coordination platform maintaining a theorem-dependency graph, splitting proofs into separate files, and keeping plain-language descriptions so agents could find and reuse work.

_developers building multi-agent systems can follow daily.dev for real cases of scaffolding making or breaking agent coordination._

### Why can't Anthropic's Lean proof of Fermat's Last Theorem be added to Mathlib?

Mathlib maintainers currently do not accept AI-generated contributions and are reluctant to review AI-authored code because most such submissions are low quality. The repository already has roughly 3,000 open pull requests, over 600 active in review, so even a verified 13-million-line proof cannot be merged, shifting the practical bottleneck from writing proofs to reviewing them.

_daily.dev helps developers weighing AI-generated code contributions stay on top of how review norms are shifting._

## Similar posts on daily.dev

- [Fermat Left a Note in a Margin. Other People Spent 358 Years Finishing It.](https://daily.dev/posts/fermat-left-a-note-in-a-margin-other-people-spent-358-years-finishing-it--y4pafjmyt) · SQL Authority · 2 upvotes · 0 comments
- [Human mathematicians are being outcounterexampled](https://daily.dev/posts/human-mathematicians-are-being-outcounterexampled-ocacgpf22) · Hacker News · 2 upvotes · 0 comments
- [How I Vibed a Proof of Conway’s Conjecture — overreacted](https://daily.dev/posts/how-i-vibed-a-proof-of-conway-s-conjecture-overreacted-onrulhfhq) · Overreacted · 5 upvotes · 0 comments
- [What Anthropic's AI Proofs Mean for Formal Verification](https://daily.dev/posts/what-anthropic-s-ai-proofs-mean-for-formal-verification-o15gggmmm) · Serokell · 0 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#claude](https://daily.dev/tags/claude), [#anthropic](https://daily.dev/tags/anthropic)

[View this post on daily.dev](https://daily.dev/posts/the-man-paid-to-prove-fermat-by-hand-says-claude-did-it-in-11-days-ugklc51cw)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"The man paid to prove Fermat by hand says Claude did it in 11 days","url":"https://daily.dev/posts/the-man-paid-to-prove-fermat-by-hand-says-claude-did-it-in-11-days-ugklc51cw","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/the-man-paid-to-prove-fermat-by-hand-says-claude-did-it-in-11-days-ugklc51cw"},"datePublished":"2026-09-06T13:47:47.953Z","dateModified":"2026-09-06T17:39:24.538Z","description":"Anthropic used dozens of Claude agents to write 13 million lines of Lean code and produce a complete, computer-checked formal proof of Fermat's Last Theorem in...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e080d237dd92de0e80d5500522e10b37?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e080d237dd92de0e80d5500522e10b37?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"The Next Web","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"The Next Web","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/tnw","url":"https://daily.dev/sources/tnw"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/the-man-paid-to-prove-fermat-by-hand-says-claude-did-it-in-11-days-ugklc51cw","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,claude,anthropic","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"The Next Web","item":"https://daily.dev/sources/tnw"},{"@type":"ListItem","position":3,"name":"The man paid to prove Fermat by hand says Claude did it in 11 days"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/the-man-paid-to-prove-fermat-by-hand-says-claude-did-it-in-11-days-ugklc51cw#faq","mainEntity":[{"@type":"Question","name":"Did Claude actually prove Fermat's Last Theorem or just verify an existing proof?","acceptedAnswer":{"@type":"Answer","text":"Claude agents formalized the existing proof of Fermat's Last Theorem in the Lean proof assistant, rather than discovering new mathematics. The formalization followed the 1995 Darmon-Diamond-Taylor exposition of Wiles's argument, producing 13 million lines of Lean code with 30,300 intermediate theorems, 29,500 of which were used in the final proof. Kevin Buzzard, who holds a grant to formalize the same theorem, confirmed the mathematics itself adds nothing new. daily.dev tracks developments like AI-assisted formal verification for engineers following what agentic coding can actually deliver."}},{"@type":"Question","name":"How long did it take Anthropic's Claude agents to formalize Fermat's Last Theorem in Lean, and what made the first attempt fail?","acceptedAnswer":{"@type":"Answer","text":"The successful run took eleven days and produced 13 million lines of Lean code, but an earlier attempt with the same models failed when agents lost track of the project's state and stopped collaborating. Success came only after adopting Prove2Me, a coordination platform maintaining a theorem-dependency graph, splitting proofs into separate files, and keeping plain-language descriptions so agents could find and reuse work. developers building multi-agent systems can follow daily.dev for real cases of scaffolding making or breaking agent coordination."}},{"@type":"Question","name":"Why can't Anthropic's Lean proof of Fermat's Last Theorem be added to Mathlib?","acceptedAnswer":{"@type":"Answer","text":"Mathlib maintainers currently do not accept AI-generated contributions and are reluctant to review AI-authored code because most such submissions are low quality. The repository already has roughly 3,000 open pull requests, over 600 active in review, so even a verified 13-million-line proof cannot be merged, shifting the practical bottleneck from writing proofs to reviewing them. daily.dev helps developers weighing AI-generated code contributions stay on top of how review norms are shifting."}}]}
```

