AI Agents Translated a 15,000-Page Proof Into 43 Million Lines of Code in 24 Days — and Found a 40-Year-Old Error

Dozens of AI agents spent 24 days turning a roughly 15,000-page mathematical proof into more than 43 million lines of code that a computer checks step by step. Leading mathematicians had worked on the original proof for decades — it's one of the largest constructions in the history of mathematics. During the verification process, the agents stumbled onto a logical gap in the reasoning that had survived nearly 40 years and dozens of careful readers. Formalization forces every single step to be spelled out — including the ones a typical paper skips with a phrase like "it is easy to see." A verifier program takes nothing on faith: it either accepts the proof or rejects it. That's exactly why a gap invisible to humans who trusted the authors' reputation was caught by a machine that didn't care who wrote the paper. • 43 million lines of code ÷ 15,000 pages ≈ 2,900 lines per page of text • Speed of roughly 1.8 million lines per day, or 75,000 lines per hour, nonstop • Parallel work by the agents was possible thanks to the verifier: an independent judge that doesn't require trusting other agents' word

AI-processed from Jiqizhixin (机器之心); edited by Hamidun News
AI Agents Translated a 15,000-Page Proof Into 43 Million Lines of Code in 24 Days — and Found a 40-Year-Old Error
Source: Jiqizhixin (机器之心). Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceJiqizhixin (机器之心) ↗
Editor-in-Chief
Key metric #143 million lines of code ÷ 15,000 pages ≈ 2,900 lines per page of text
Key metric #2Speed of roughly 1.8 million lines per day, or 75,000 lines per hour, nonstop
Key metric #3Parallel work by the agents was possible thanks to the verifier: an independent judge that doesn't require trusting other agents' word

Translating a mountain of mathematics into something a machine can check

A team of several dozen AI agents spent 24 days rewriting one of the most unwieldy mathematical proofs in history — roughly 15,000 pages of text that leading mathematicians had spent decades building — into a format a computer can understand: more than 43 million lines of code, checked step by step by a verifier program. Along the way, the agents uncovered a logical gap in the reasoning that had gone unnoticed for nearly 40 years.

What "formalizing" a proof actually means

A typical math paper is written for humans and is full of phrases like "it is easy to see" or "it is obvious that" — the author skips intermediate steps, trusting that an expert reader will fill them in. Formalization requires spelling out every single one of those steps explicitly, as code that a dedicated verifier program then checks. If there's a gap anywhere in the chain of reasoning, the code simply fails to compile — there's no room for compromise.

The scale of the operation is clear from simple arithmetic: 43 million lines of code for a 15,000-page source document works out to about 2,900 lines per page of text. Spread over 24 days, that's roughly 1.8 million lines a day, or about 75,000 lines an hour of continuous work. For comparison, formalizing even modestly sized theorems typically takes human specialists months — a volume of work a team of mathematicians simply couldn't match by hand.

Why a machine found the gap that humans missed

The gap in the reasoning that the agents found had survived dozens of careful reviewers over nearly 40 years. That's not a sign of carelessness on the part of those reviewers — it's a consequence of how manual review works. Reading 15,000 pages start to finish and re-checking every logical transition is simply not humanly feasible. A reviewer inevitably leans on the authors' reputation and a gut sense that a given step "looks right."

A verifier has no such trust to lean on. Every transition from one statement to the next is either accepted as rigorously proven or rejected. As an AI agent tries to encode the next step of the proof, it eventually hits a point where the justification is missing — and the code just won't compile past that point. For the mathematical community, this is a serious signal, not a pedantic nitpick: it concerns the integrity of an entire construction that had been considered settled for decades.

What it costs in tokens

This is an estimate by the Hamidun News editorial team, not official project data. Assuming 10–12 tokens per line of finished code, the final 43 million lines translate to roughly half a billion tokens just for the polished output. The actual consumption is almost certainly much higher: agents write draft versions, get errors back from the verifier, rewrite fragments, and run the check again. Factoring in all those iterations, the real total is likely in the billions of tokens.

The tight 24-day timeline was possible because of parallel work. A large proof naturally breaks down into a dependency graph of lemmas, and independent branches of that graph can be handed to different agents simultaneously. The verifier acts as an impartial arbiter with a binary "accepted" or "rejected" answer — which means the agents don't need to take each other's results on faith: any piece of code either passes the check or it doesn't.

What engineering teams can take from this

The main lesson isn't limited to pure mathematics. Agentic systems scale best wherever there's an unambiguous automatic judge: a compiler, a test suite, or a proof engine. Under those conditions, hundreds of thousands of generated lines of code don't need to be reviewed by hand — the machine itself does the filtering.

The same model applies to formal verification of cryptographic libraries, compilers, consensus protocols, and hardware blocks. The requirements are the same everywhere: a detailed task specification, a strict automatic verifier, and the ability to split the work into independent chunks. Teams planning to build similar agentic pipelines should invest first and foremost in the verifier itself and in decomposing the task into independent units — the number of agents and the size of the model are secondary. One more practical takeaway concerns peer review: a formalized proof offers a reproducible guarantee of correctness that a handwritten 15,000-page text simply cannot provide.

Story

Key Questions Answered

What are the key details on Translating a mountain of mathematics into something a machine can check?

A team of several dozen AI agents spent 24 days rewriting one of the most unwieldy mathematical proofs in history — roughly 15,000 pages of text that leading mathematicians had spent decades building — into a format a computer can understand: more than 43 million lines of code, checked step by step by a verifier program. Along the way, the agents uncovered a logical gap in the reasoning that had gone unnoticed for nearly 40 years.

What "formalizing" a proof actually means?

A typical math paper is written for humans and is full of phrases like "it is easy to see" or "it is obvious that" — the author skips intermediate steps, trusting that an expert reader will fill them in. Formalization requires spelling out every single one of those steps explicitly, as code that a dedicated verifier program then checks. If there's a gap anywhere in the chain of reasoning, the code simply fails to compile — there's no room for compromise. The scale of the operation is clear from simple arithmetic: 43 million lines of code for a 15,000-page source document wo

Why a machine found the gap that humans missed?

The gap in the reasoning that the agents found had survived dozens of careful reviewers over nearly 40 years. That's not a sign of carelessness on the part of those reviewers — it's a consequence of how manual review works. Reading 15,000 pages start to finish and re-checking every logical transition is simply not humanly feasible. A reviewer inevitably leans on the authors' reputation and a gut sense that a given step "looks right." A verifier has no such trust to lean on. Every transition from one statement to the next is either accepted as rigorously proven or rejected.

ZK
Zhemal Khamidun — CPO at Alpina Digital, product manager of AlpinaGPT. Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Hands-On AI Engineering · Hamidun Academy

Build & Ship Production AI Agents Without Boilerplate Code

Start your free 72-hour trial at Hamidun Academy (academy.hamidun.com) — interactive lessons on Claude Code & Cursor, live Tech Radar, and production agent templates.

Start 72h Free Trial →Vibe-Coding Intensive
What do you think?
Loading comments…