Claude formalized Fermat's Last Theorem in 11 days Anthropic's AI model Claude produced the first complete computer-checked proof of Fermat's Last Theorem in 11 days, writing 13 million lines of Lean code and proving 29,500 intermediate theorems. The proof, shared with mathematician Kevin Buzzard, formalizes Andrew Wiles's 1994 proof and represents a milestone in AI-assisted mathematical verification. Subscribe to Anthropic Science Features on AI-assisted discoveries, practical workflows, and field notes across the sciences. We are sharing the first complete computer-checked proof of Fermat’s Last Theorem. Claude worked largely autonomously over 11 days to write the proof in the Lean programming language. Below, we describe how the formalization was done and share some thoughts about what this work could mean for research mathematics. Around 1637, Pierre de Fermat jotted down a claim in the margin of his copy of Diophantus’s Arithmetica A decade later, Dutch computer scientist Jan Bergstra proposed “formalizing” Wiles’s proof: converting the mathematical reasoning into a form computers can check automatically. Since then, mathematicians have been developing the methods needed to encode such a complex proof, including a multi-year community effort kicked off in 2024 by Kevin Buzzard at Imperial College London to complete the formalization https://lean-lang.org/use-cases/flt/ using the Lean proof assistant