Kevin Buzzard was at a music festival in Wales, with terrible phone reception, when the email landed. The subject line read: End-to-end Lean formalization of Fermat’s Last Theorem. He glanced at it during a brief flicker of 4G, decided the sender was a crank, and went back to the music. It took him a week and roughly a thousand unread emails to discover that the biggest formalization result in the history of the field had been sitting in his inbox.

Buzzard is the Imperial College London mathematician who holds a five-year, one-million-pound EPSRC grant to formalize Fermat’s Last Theorem in the Lean proof assistant. On September 4, Anthropic announced that dozens of Claude agents had done a version of it in eleven days.

Eleven days, 13 million lines

Working largely autonomously over eleven days of wall-clock time, a swarm of Claude agents wrote roughly 13 million lines of Lean and proved 30,300 intermediate theorems, 29,500 of which appear in the final proof. That codebase is more than five times the size of Mathlib, the community mathematics library the whole edifice rests on. Buzzard compiled it himself, measured 13.4 million lines, and reports it takes nearly twenty times as long to compile as Mathlib does on a 96-core machine.

The run consumed about six billion output tokens from what Anthropic describes as a general-purpose internal research model roughly comparable to Claude Fable 5.1. At that model’s list price of $50 per million output tokens, six billion tokens works out to about $300,000. No invoice was raised, and a lab’s own inference costs less than list, but it is the only public arithmetic available. Buzzard did the comparison himself: he was given one million pounds over five years, and, as he put it, Anthropic took only eleven days but he does wonder if they spent more money.

The project was run by Tianyi Peng, an Anthropic researcher whose Columbia University group builds AI formalization tooling. Anthropic is unusually candid that the first attempts failed outright. Early agents made progress, then lost track of the project state and stopped collaborating; those dead runs still contributed about 7% of the non-boilerplate lines in the finished proof. What rescued the effort was not a better model but scaffolding: Prove2Me, an open platform Peng built with Columbia collaborators, which maintains a graph of theorem statements so agents can see what to attempt next and can search and reuse each other’s work. Human mathematical input amounted to occasional fragments from Peng, such as: Jacobian as a scheme sounds high priority.

What it is, and what it is not

Claude did not discover a proof. It translated one, following the 1995 Darmon, Diamond and Taylor exposition of the Wiles, Taylor and Wiles argument, via the Langlands-Tunnell theorem and Ribet’s level-lowering result. That is not the modern route Buzzard has been formalizing by hand. The repository develops Fontaine theory and enough of Mazur’s work on the Eisenstein ideal to rule out Frey curves with a point of order p for p at least 17; smaller exponents are covered by adapting the existing flt-regular formalization for regular primes, since the smallest irregular prime is 37. Lean verified the result using only its three standard axioms, and the leanprover comparator tool confirmed the statement proved matches Mathlib’s own statement of FLT. Buzzard ran that check independently.

He is blunt about the mathematical content. He puts the odds Wiles’s proof is correct at 99.9%, notes most of the number theory community is at 100%, and writes that the formalization just faithfully follows the early literature on the proof and adds nothing. He also went looking for cheating, since Lean has had soundness bugs surface recently and an agent could in principle exploit one to prove anything. He had an agent flag every line in the repo that was not a definition or a theorem proof, inspected the roughly 100 lines that came back, and found they defined a convenience tactic.

Why It Matters

This is a claim about verification, not discovery, and verification is the easier half. But it is the half that has been throttling mathematics for decades. Wiles’s 129-page proof took months of painstaking human review, and a referee still found a critical gap that took a year to close. If thousands of pages of literature can now be mechanically checked in under a fortnight, the economics of refereeing change.

Buzzard, who has every professional incentive to downplay this, does not. If the automatic formalization of FLT is possible now, he told Anthropic, then we have taken a big step towards automatic formalization of the modern mathematical literature. He is more interested in what happens when machines are pointed at the Langlands program and start ruthlessly flagging arguments that are incomplete or merely known to the experts.

The obvious caveat is that the bottleneck moved rather than vanished. None of these 13 million lines can enter Mathlib as things stand. Buzzard, a Mathlib maintainer, says the library will not accept AI reviews and human reviewers are reluctant to review AI-generated code because most of it is poor quality. Mathlib already carries around 3,000 open pull requests, more than 600 active in the review queue. The constraint has shifted from writing proofs to reading them, which is precisely the problem formalization was supposed to solve, arriving one layer up. And a 13-million-line artifact that Anthropic concedes is likely much longer than it needs to be is a proof no human will ever read.

Watch two things. First, whether anyone reproduces this outside a frontier lab: Anthropic reports that three researchers on personal Claude Max subscriptions formalized Vinogradov’s Three Primes Theorem in three days using the same platform, the more consequential data point if it generalizes. Second, whether Mathlib’s maintainers change their policy on AI-generated submissions. Until they do, autoformalization produces impressive standalone repositories rather than a shared foundation, and the mathematical commons stays exactly as large as human reviewers can make it.

“If the automatic formalization of FLT is possible now, then we have taken a big step towards automatic formalization of the modern mathematical literature.”
— Kevin Buzzard, Professor of Pure Mathematics, Imperial College London
11 days
Wall-clock time for the formalization
13M lines
Lean code produced, over 5x the size of Mathlib
29,500
Intermediate theorems used in the final proof
6B tokens
Output tokens consumed, roughly $300,000 at list