A model formalizes Fermat's Last Theorem in Lean
On 4 September 2026 Anthropic reported a complete computer-checked formalization of Fermat's Last Theorem in the Lean proof assistant. Agents using an internal research model the lab compares roughly to Claude Fable 5.1, and a collaborative tool called Prove2Me, worked for eleven days, wrote about thirteen million lines of Lean, and used about 29,500 intermediate theorems in the final proof. The lab says human mathematical input was limited to occasional high-level steering, that Lean accepted the proof from its three standard axioms, and that the formalized statement matches a library statement of the theorem. The novelty they claim is the checking of a known proof, not a new mathematical argument.
The record ends here. Everything below this line is invented.
What if a proof counted as finished when only a machine had read it?
Part one
The Closed Margin
1,537 words in the free opening
Leila refereed for a journal that had started to accept two objects where it used to accept one: a paper a person could read, and a formal proof a kernel could. The second object for the old theorem arrived on a Tuesday, thirteen million lines, and a one-line note that the root said proved.
The journal had made the change two years earlier, after a long argument in which Leila had been one of the people arguing for it. Submissions could now come as a pair. The paper was what it had always been, an essay addressed to mathematicians, with the ideas in the order a person needed them. The formal proof was a file written for a proof assistant, a program with a small trusted core, the kernel, that checked each step against a fixed list of rules and accepted nothing it could not check. The paper said why. The file said that. Referees were asked to look at both.
She had refereed a dozen pairs since the change, most of them small: a lemma in combinatorics, a bound in analysis, a few hundred or a few thousand lines of formal text. She had read those files. Not every line, but enough to know how they were built, where the weight sat, which definitions mattered. She had come to enjoy it, the strange double reading, one eye on a human argument and the other on a machine's.
This one was not small. The theorem was the oldest famous problem she knew, the one every child who liked numbers had heard of, about whole numbers raised to powers and the equation that had no solutions beyond the square. A proof had existed for decades. What was new was the file: the whole proof, every step down to the foundations, written out for the kernel, and accepted.
She did not pretend to read it. She checked the statement against the library's own wording of the theorem, and she checked that the kernel was the ordinary one, three axioms, no extra. Both checks passed. The human essay that came with it was twelve pages and skipped, as essays do, the places the lines had swollen.
The lab's report, which came attached, said that agents had produced the file over eleven days, using an internal research model and a collaborative tool, and that the final proof used about twenty-nine and a half thousand intermediate theorems. Human mathematical input, it said, had been limited to occasional high-level steering. The kernel had accepted the proof from its three standard axioms, and the formal statement matched the library's own statement of the theorem. The report was careful, almost austere, in claiming nothing more than that. It did not say it had found a new argument. It said it had checked an old one.
She liked that about it. She had read too many reports that claimed the moon. This one claimed a check, a very large one, and gave her the means to see how far the check reached.
She made coffee and sat down to do what she could. First the statement. The file's version of the theorem had to say exactly what the theorem said, no more and no less, because a perfect proof of a slightly different statement was worth nothing. She put the file's statement beside the library's, symbol by symbol, and read them both twice. They matched. Then the kernel. She confirmed which kernel had checked it and which axioms it had been allowed, and they were the ordinary three, with nothing quietly added to make a hard step easy.
Those two checks were the ones that mattered most, and they had taken her an hour.
She then did the thing she always did with large files, which was to count. Not the lines, which the report had already counted for her, but the places where people had touched the work. The report said the human steering had been occasional and high-level. The essay named three moments of it. The file's history, which she could see, showed a few dozen commits by human accounts among a sea of commits by agents. She noted the dates, and the parts of the proof each touched, and put the list aside. It was the kind of list that might turn out to matter or might not.
The editor wanted a decision before the weekend, because a second group had a claim in the queue and would build on this root if she passed it.
His message was apologetic and firm in the way editors' messages often were. The second group's claim was a formalization of a result that rested on this theorem, and they had been waiting for months for a root they could stand on. If Leila passed this file, they could begin. If she held it, they could not. He did not want to rush her. He did want a date.
She wrote back that she would try. Then she sat for a while looking at the size of the thing. Thirteen million lines was not a file you read. It was a city you walked through, and she had walked through two streets of it. The kernel had walked every street. The question, as she had put it in the journal's guidance and now found herself putting to herself, was what a referee owed a file that she could not read and a kernel already had.
Her answer, in the guidance, had been: look where a person looked. The essay was a person's account. The places where the essay was detailed were the places where a person had thought hard. The places where the essay grew vague were the places where the file had grown large, where the agents had ground out lemma after lemma with no human looking on. Those were the places a referee should visit, not to check the logic, which the kernel had done, but to see what kind of thing was there.
She had a colleague, Anselm, who thought the whole two-object arrangement was a mistake. Not because formal proofs were bad, he said; they were wonderful. Because referees would come to treat the file as a substitute for judgment, and would stop asking the questions that only judgment could ask. Leila had argued with him in a corridor for most of an afternoon. She had said the file freed referees to ask better questions, because they no longer had to spend their attention checking every step. He had said that was true only if they actually spent the freed attention, and that he had never yet seen a committee free anybody's attention without immediately finding something else to fill it.
She thought about Anselm now, with the file open and the editor's message waiting. She did not want him to be right.
Leila opened the graph of dependencies at a node the essay never mentioned. The kernel called it proved. The comment above the node was a question a person had typed and no one had answered.
She found the node by doing something slightly perverse. Instead of following the essay, she listed the nodes in the dependency graph that the essay did not mention and sorted them by how many other nodes depended on them. The top of that list was a handful of lemmas that the essay referred to only in passing, as standard. Most of them were standard. She opened the first, and the second, and found them dull and correct in the way library lemmas usually were.
The third had a comment above it. Comments in formal files were common; people left notes for each other, or for themselves, explaining what a definition was for or why a proof was arranged a certain way. This one was not an explanation. It was four short lines in plain language, typed by someone in a hurry, asking whether a hypothesis of a borrowed lemma had really been satisfied in the form the proof needed, or only in a weaker one. It ended with a question mark. Under it there was nothing. No reply, no follow-up, no later note saying checked.
She read it three times. Then she checked what the kernel thought of the node, and the kernel thought it was proved, which it would. The kernel had no opinion about the comment. Comments were not mathematics. They were simply text the kernel skipped on its way to the next line.
She sat back. It was almost certainly fine. The kernel's acceptance meant that whatever the hypothesis was, it had been discharged in some form strong enough for every step that used it. But the question was not whether the step was valid. The question was whether anyone had looked, and the comment was a small, precise record that at least one person had meant to and perhaps had not.
Downstairs a door closed. It was past nine and the building was mostly empty, and the radiator under the window had begun its evening ticking. On the screen the comment sat above the proved node like a hand raised at the back of a lecture hall after the speaker has already left the room.
She set the decision to hold.
What’s real
- Agents formalized Fermat's Last Theorem in Lean in eleven days
- The proof is about thirteen million lines
- Lean checked it from standard axioms against a library statement
- The lab calls the novelty verification, not a new proof
What’s invented
- Leila's journal and its two-object rule
- A second group waiting to build on her pass
- An unanswered human question on a proved node
- Her hold on the decision
Part two: The Node With a Question
One payment through Stripe. No account and no subscription. You return here to read the sequel.
Part two
The Node With a Question
4,027 words in the sequel · 28 min for the complete fiction
Filed under technology, formal mathematics, proof assistants, ai agents.