Anthropic Says Claude Produced a 13-Million-Line Formal Proof of Fermat’s Last Theorem
Anthropic says Claude has completed what it describes as the first formalized proof of Fermat’s Last Theorem, turning Andrew Wiles’ 1995 result into a machine-checkable proof written in Lean. The company said the system worked for 11 days, largely on its own, and generated 13 million lines of code that a computer can verify line by line. According to Anthropic, the effort involved dozens of Claude agents operating in parallel, proving small results, writing definitions, and combining them into larger components with limited human prompting. The claim matters because formal verification addresses a long-standing bottleneck in mathematics: checking that a proof is actually correct. Major proofs can take years for humans to review, and some remain difficult to fully validate. Anthropic said Claude proved more than 30,000 supporting theorems and used billions of tokens in the process. Imperial College London mathematician Kevin Buzzard, who has been leading a separate Lean formalization project on the same theorem since 2024, reviewed the output and said it proves the theorem 「with no assumptions other than the axioms of mathematics」. Anthropic added that the full proof is available on GitHub for line-by-line inspection.








