Claude Autonomously Proves Fermat's Last Theorem: A Milestone in AI Formal Verification

Claude ran autonomously for 11 days to formalize Fermat's Last Theorem in Lean, marking a leap in AI long-horizon autonomy and verifiable output.
Anthropic announced that Claude largely autonomously completed the formalization of Fermat's Last Theorem in the Lean proof assistant over 11 days — a milestone in autoformalization. The core significance isn't the mathematical discovery itself (Wiles proved it in 1994), but two key advances: AI demonstrated repo-scale, long-horizon autonomous capability far beyond typical agent tasks, and the formal output is mathematically verifiable by Lean, shifting trust from "the AI's judgment" to "the verifier's logic" — providing a reliable safety net for AI tackling high-stakes complex tasks.
An 11-Day Journey of Autonomous Proof
Anthropic recently announced that its AI model Claude operated largely autonomously for 11 days, successfully formalizing Fermat's Last Theorem in Lean. This achievement is being recognized as a significant milestone in the field of autoformalization.
Fermat's Last Theorem is one of the most famous problems in mathematical history: for any integer n > 2, the equation x^n + y^n = z^n has no positive integer solutions. The conjecture was proposed by Fermat in 1637, but a complete proof didn't arrive until 1994 when Andrew Wiles finally solved it — a span of three and a half centuries. Fully and rigorously formalizing such a proof in the Lean proof assistant is, by itself, an enormously complex undertaking.
It's worth noting a key distinction here: the headline isn't "Claude independently discovered a new mathematical theorem." Rather, it's that Claude was able to autonomously construct a machine-verifiable formal proof over an extended period of time. That capacity to work autonomously for 11 consecutive days is the core signal developers should pay attention to.

Why Formal Verification Matters
From "Looks Correct" to "Provably Correct"
Traditional mathematical proofs rely on peer review by human experts — a process that inevitably carries subjectivity and the possibility of oversight. The core value of proof assistants like Lean is that every step of reasoning is broken down into machine-checkable logical steps. Once a proof passes Lean's verification, its correctness is guaranteed with near-absolute certainty.
However, translating a proof written in natural language into Lean code — the process of "formalization" — has historically been extremely time-consuming work requiring top-tier expert involvement. A human proof that spans just a few pages often requires tens of thousands of lines of formal code to support it. This is precisely the core pain point that autoformalization technology aims to solve.
AI's Role in Formal Verification
Claude's performance here makes a compelling case that large language models are now capable of taking on a leading role in highly structured tasks that require long-horizon planning. This wasn't simply "completing one line of code" — it was maintaining a coherent understanding of the entire proof structure over 11 days, handling countless intermediate lemmas, correcting erroneous paths, and ultimately producing a complete artifact that passes Lean's verifier.
Key Takeaway for Developers: Verified Repo-Scale Research Artifacts
As Anthropic has emphasized, the significance here lies not in any single theorem, but in the realization of the concept of "verified repo-scale research artifacts."
What "Repo-Scale" Means
When we've historically evaluated AI coding capabilities, we've tended to focus on generation quality at the level of individual functions or files. But real-world software engineering and research often involves complex, interdependent relationships spanning dozens or even hundreds of files. "Repo-scale" means the AI must be capable of:
- Maintaining consistent understanding of large-scale context
- Coherent planning and execution over extended time horizons
- Managing dependency relationships and state consistency across modules
- Autonomously backtracking and correcting course when failures occur
Formalizing Fermat's Last Theorem is precisely this kind of ultimate stress test for these combined capabilities. It demonstrates one thing clearly: AI can produce research outputs that are large in scale, yet independently verifiable at every step.
How Verifiability Changes the Trust Model
For developers, there's a profound paradigm shift implied here. When AI produces ordinary code, we establish trust through testing and manual review. But when AI produces artifacts verifiable by a formal system, the source of trust shifts from "trusting the AI's judgment" to "trusting the verifier's logic."
In other words, even if the AI made mistakes or took wrong turns along the way, as long as the final output passes Lean's rigorous checks, its correctness is guaranteed at a mathematical level. This provides a reliable path for "allowing AI to take on high-risk, high-complexity tasks" — using machine verification as a safety net for AI autonomy.
A Defining Moment in AI Capability Evolution
A Substantive Breakthrough in Long-Horizon Autonomy
The figure of "11 days of autonomous operation" is striking on its own. Most current AI applications remain within the paradigm of "single conversation, task completed in minutes," so Claude's ability to maintain goal-directed, self-correcting autonomous work over multiple consecutive days represents a genuine leap in AI Agent capabilities.
Once this kind of long-horizon autonomy matures, the application scenarios will extend far beyond mathematical proofs. Large-scale software system refactoring, safety verification of complex systems, and broader automation of scientific research workflows could all stand to benefit.
From Assistant Tool to Research Partner
This achievement hints at a clear evolutionary direction for AI's role: moving from "a coding autocomplete tool" toward "a partner capable of independently taking on end-to-end research tasks." When AI can produce verifiable research artifacts, human researchers may increasingly shift toward problem definition, direction-setting, and result interpretation — delegating the heavy lifting of formalization and verification work to AI.
A Realistic Assessment of Scope and Limitations
While this is an exciting milestone, we should keep a clear-eyed perspective. First, the mathematical proof of Fermat's Last Theorem already existed — what Claude completed was a formalization translation, not an original mathematical discovery. Second, Anthropic's phrasing of "largely autonomously" suggests there was likely some degree of human guidance and intervention throughout the process.
The real value lies in validating a scalable working pattern: the combination of AI and a formal verifier can produce trustworthy outputs on long-duration, large-scale tasks. For developers working to bring AI into serious engineering and research contexts, this pattern may be worth far more thought than any single theorem.
Conclusion: The Convergence of Autonomy and Verifiability
Anthropic's formalization of Fermat's Last Theorem is less a triumph for mathematics than it is a triumph for AI engineering paradigms. It sends a clear signal to the entire industry: AI now has the capacity for long-horizon autonomous operation and for producing verifiable, large-scale artifacts.
When "autonomy" and "verifiability" — two properties that might seem in tension — are satisfied simultaneously, we are one step closer to a truly trustworthy AI research partner.
Related articles

Vercel AI SDK Releases Vue 3.0.282 Patch Update
Vercel AI SDK releases @ai-sdk/vue@3.0.282 patch update, syncing with core package ai@6.0.282. Learn about the changes, release cadence, and upgrade recommendations.

Vercel AI SDK Sandbox Component Receives Patch Update
Vercel AI SDK releases sandbox-vercel@1.0.109 patch update, syncing the harness dependency to the same version. A look at this maintenance release and what it means for AI app developers.

Vercel AI SDK Vue 4.0.99 Released: Dependency Update Overview
The @ai-sdk/vue 4.0.99 patch release syncs the underlying ai@7.0.99 dependency. Learn what this means for Vue developers building AI apps with Vercel AI SDK.