News Research

Claude AI Produces First Full Proof of Fermat’s Last Theorem

Anthropic says Claude formalized a complete, computer-checked proof of Fermat's Last Theorem in Lean over 11 days.

Anthropic announced that its Claude model produced the first complete, computer-checked proof of Fermat's Last Theorem, working largely autonomously over 11 days to translate the reasoning into the Lean programming language. According to Anthropic's announcement, the effort was led by Tianyi Peng, a researcher whose group at Columbia University builds AI formalization tools, who set out to test whether Claude could make progress on formalizing the theorem and found the model went far beyond initial expectations.

Anthropic's announcement states that Claude wrote 13 million lines of Lean code and proved 29,500 intermediate theorems to complete the formalization, a scale that reflects the difficulty of encoding Andrew Wiles's original 1995 proof, which ran 129 pages and took months for mathematicians to verify by hand. The project builds on a multi-year community effort to formalize Wiles's work in Lean that Kevin Buzzard of Imperial College London began in 2024.

Buzzard reviewed the resulting proof and, per Anthropic's announcement, called it an extraordinary autoformalization achievement that proves the theorem from the axioms of mathematics alone, spanning autoformalized algebra, harmonic analysis, geometry, and number theory. Anthropic frames the work not as new mathematics but as a step toward faster, more reliable verification of existing results, potentially easing a review process that has historically taken years for complex proofs.

Source: Formalizing Fermat’s Last Theorem \ Anthropic.