TechnologyEditorially reviewed
Anthropic Claude Completes First Machine-Checked Proof of Fermat's Last Theorem in Lean
Buzz Insights Desk5 min read
Reviewed by Moksha

Anthropic announced the first end-to-end computer-checked formalization of Fermat's Last Theorem in Lean, an achievement independently downloaded, compiled, and confirmed sorry-free by mathematician Kevin Buzzard.
Milestone Formalization of a 350-Year-Old Problem
Anthropic researchers announced on September 4, 2026, the completion of the first end-to-end, computer-checked formal proof of Fermat's Last Theorem (FLT). The formalization translates the human mathematical reasoning behind the historic conjecture into machine-verifiable code using the Lean programming language. Pierre de Fermat originally jotted down the conjecture around 1637, positing that no three positive integers $a, b, c$ satisfy $a^n + b^n = c^n$ for any integer $n > 2$. Sir Andrew Wiles published the first recognized mathematical proof in 1995 across 129 pages, an achievement that took human experts months of intense scrutiny to evaluate and accept [2][8].
Converting Wiles's proof into formal logic—where every deduction is step-by-step verifiable by software—has stood as one of the most formidable targets in computational mathematics since Dutch computer scientist Jan Bergstra proposed formalizing it a decade after Wiles's publication. The AI system Claude carried out the extensive formalization work over an 11-day period under the direction of Tianyi Peng, an Anthropic researcher whose research group at Columbia University creates tools for automated formalization. Anthropic published the resulting proof files in an open public repository under the identifier `anthropics/fermats-last-theorem` [2][8].
Independent Compilation and Verification by Kevin Buzzard
Crucially for the broader scientific community, the validity of the codebase does not rely on Anthropic's self-reporting. Kevin Buzzard, a professor of pure mathematics at Imperial College London who has led an ongoing multi-year community effort to formalize Fermat's Last Theorem in Lean, independently audited the released codebase. Buzzard downloaded the public repository, compiled the proof directly on his own hardware, ran the Lean kernel checker, and confirmed that the mathematical argument holds completely [2][3][8].
Buzzard verified that the proof is entirely "sorry-free"—meaning it contains zero unproven placeholders, gaps, or conjectures—and matches Mathlib's formal definition of Fermat's Last Theorem while resting exclusively on Lean's three standard mathematical axioms (`propext`, `Classical.choice`, and `Quot.sound`). Conceding the formalization race in a post titled "FLT: Anthropic has beaten me to it," Buzzard affirmed that the work formalizes complex components spanning algebra, harmonic analysis, geometry, and number theory. He noted that the artifacts produced by automated formalization have proven sufficiently robust and multi-layered to support intricate subsequent deductions [2][3].
Architecture, Scale, and Foundational Dependencies
The formalization of Fermat's Last Theorem represents a massive engineering and logical undertaking. According to Anthropic and tracking analyses, the completed proof chain required Claude to generate approximately 13 million lines of Lean code, establishing more than 29,500 intermediate theorems and 1,450 formal definitions, all checked through the Lean kernel. The work follows the modern Frey-curve and modularity-lifting architecture established by Wiles and Richard Taylor, rather than classical approaches like Ernst Kummer's regular-prime technique, which cannot address the complete theorem [2][8].
Anthropic built this formalization on top of foundational open infrastructure developed over years by the interactive theorem-proving community. This foundation includes Lean's standard library Mathlib, the Imperial College FLT-in-Lean project, and existing formalizations such as `flt-regular`. Specifically, the proof addresses the small prime cases ($p < 17$) by linking to `flt-regular`, which fully covers all cases below 37 (the smallest irregular prime). Anthropic disclosed this dependency openly. In doing so, the completed proof also marks the formal conclusion of Freek Wiedijk's 20-year "100 theorems" challenge list, completing a long-standing historical benchmark in formal logic [3][8].
Distinguishing Mathematical Output From Process Claims
In analyzing this development, observers have emphasized the importance of distinguishing between the verified mathematical artifact and Anthropic's process descriptions. The existence of a verified, sorry-free Lean proof resting on standard axioms is externally and adversarially confirmed by the leader of the competing academic project. Anyone with access to the public Lean repository can independently run the Lean kernel to check every step [3].
In contrast, Anthropic's account of how the artifact was generated—specifically the claims of completing the project in roughly 11 days, consuming approximately six billion output tokens, orchestrating dozens of agents through a proprietary "Prove2Me" layer, and operating largely autonomously with limited human steering—remains self-reported by the company. The verified code repository confirms that the output is syntactically sound and logically complete Lean, but it does not independently document the exact degree of human intervention or compute resources deployed behind the scenes [3].
Implications for Mathematics and Automated Verification
Unlike experimental AI research that attempts to generate novel mathematical conjectures, this accomplishment centers entirely on formal verification. Translating an informal 129-page human proof into machine-verifiable logic eliminates human ambiguity and guarantees that no subtle oversights remain hidden in the reasoning chain. Because human peer review of complex proofs routinely requires months or years, the ability to automate rigorous formalization offers a scalable safeguard as mathematical research expands [2][8].
While human mathematicians laid years of groundwork to establish the required libraries and frameworks, this project demonstrates that AI systems can navigate dense logical dependencies without losing coherence across thousands of nested theorems. For computer science and pure mathematics, the transition from multi-year manual formalization projects toward automated, machine-checked verification signals a major shift in how the global academic community may validate future knowledge [2][3][8].
Sources
Sources and evidence
- 1.Formalizing Fermat's Last Theorem \ Anthropic
www.anthropic.com · Primary source
- 2.
- 3.Claude helps complete first formalized proof of Fermat's Last Theorem
cryptobriefing.com
Related articles

technology
G. Kishan Reddy Launches Commercialisation Catalogue of Technologies on Oct 12, 2026
Union Minister Shri G. Kishan Reddy launched the Commercialisation Catalogue of Technologies on October 12, 2026, to bridge the gap between research institutions and industries.
Buzz Insights Desk
2 min read

technology
MeitY Showcases DPI and AI at IMC 2026 on October 9
Discover the digital public infrastructure, AI language tools, and semiconductor capabilities showcased by MeitY at the India Mobile Congress 2026.
Buzz Insights Desk
2 min read

technology
Anthropic Launches Free OSS Scanner for Open-Source Security on October 8, 2026
Anthropic launched OSS Scanner on October 8, 2026, providing free, model-generated vulnerability scans and direct reports to eligible open-source projects.
Buzz Insights Desk
2 min read

technology
Python.org Releases Python 3.15 on October 9, 2026 With Lazy Imports and UTF-8 Default
Python.org officially released Python 3.15 on October 9, 2026, introducing explicit lazy imports, a default UTF-8 encoding, frozendict, and JIT performance gains.
Buzz Insights Desk
2 min read

technology
Cloudflare Launches Web Search API in Open Beta via AI Gateway on October 2, 2026
On October 2, 2026, Cloudflare launched its Web Search API in open beta via AI Gateway, partnering with Ceramic.ai, Exa, and Linkup to ground AI agents with live web data.
Buzz Insights Desk
2 min read

technology
Google Launches Gemini 4 Argon AI Model on September 30, 2026
On September 30, 2026, Google officially announced Gemini 4 Argon, its new frontier AI model featuring deep reasoning, a 1M token context window, and cybersecurity defense capabilities.
Buzz Insights Desk
2 min read