Seventeen Million Lines of Proof. One Statement Nobody Reviewed.

On November 20, two proofs of the Riemann Hypothesis appeared on the same day. One is a 940-page human manuscript by Alessandro Masullo, which Ravi Vakil posted on his blog. The other is an attempt by Levent Alpöge working with Claude that exists mainly as 17 million lines of Lean, a proof assistant. The internet spent the week arguing about which one counted. Almost nobody asked the question that actually transfers to your job: who read the statement?
Because that's the part a machine cannot check for you. Not in mathematics, and definitely not in your repository.
What a proof assistant actually checks
Lean is a proof assistant. You write down a statement, you write down a proof, and a small program called the kernel checks that the proof really does establish the statement. If it does, the file compiles. No reviewer has to nod along, no committee has to agree. That's the whole appeal: the checking is mechanical, so it is cheap and it does not get tired.
Notice the direction of the arrow, though. The kernel verifies proof implies statement. It never verifies statement implies what I actually wanted. That second arrow is a human obligation, and it is the one that got skipped in every excited headline.
Here's how completely the statement carries the weight. In logic, "if A then B" is true whenever A is false. So a file containing a theorem whose hypothesis is 1 = 2 and whose conclusion is the Riemann Hypothesis compiles in about one line. There is no case where 1 = 2, so there is nothing to check. The kernel is satisfied. The proof is valid. The statement is worthless.
That's not a loophole in Lean. It's a description of every verification system you already use.
Seventeen million is a measure of throughput, not of difficulty
A writer who goes by micjm did the useful thing and asked whether 17 million lines is actually a lot, by comparing it against every Lean package on Reservoir and the formalized-theorem collection in Mathlib. The numbers are clarifying:
- Mathlib tracks over 1,000 famous theorems; only 259 have Lean proofs attached, and they are nowhere near 17 million lines.
- Anthropic's formalization of Fermat's Last Theorem runs about 27 million lines, against roughly 60,000 lines in the human-led project it builds on. That's a factor of about 450.
- LeanBridge, at 36 million lines, is roughly 98% script-generated checks of individual database entries. The hand-written part is closer to 500,000 lines.
- One project, CFSG, is at 88 million lines and is still a work in progress.
Read those together and the interpretation is hard to avoid: line count is mostly a measure of how cheap generation has become. It tells you almost nothing about how much was established, and even less about whether the thing being established was the right thing.
For a backgrounder on the mathematics side, John Baez's write-up of the Masullo strategy at Azimuth is the clearest plain-language account I've found, and it's a good reminder that a human-readable proof and a machine-checkable one are different artifacts serving different readers.
You already have this artifact in your repo
Swap the vocabulary and the pattern is everywhere in ordinary software:
- 8,000 tests, 92% coverage, and nobody can tell you what behavior the suite promises.
- 40,000 lines of generated Terraform that plan cleanly because the plan was generated from the same source as the code.
- A 12,000-line API client that typechecks against a schema nobody re-read after the third vendor upgrade.
- A migration written in an afternoon that passes every test the migration author also wrote.
In each case, the number measures how expensive the artifact was to produce. It does not measure how much it establishes. When production cost falls by 450x, the number inflates by 450x and tells you proportionally less. That's not a failure of AI tooling. It's what happens when you keep using a production metric as an assurance metric.
Three questions before you accept a large artifact
Whether it's a proof, a test suite, or a generated module, the audit is the same. Ask these in order, and stop at the first one you can't answer.
- Where is the statement? Point to one paragraph, in English, that says what this thing is supposed to establish. If the only description of the goal is the artifact itself, you have production without verification. A test file is not a statement. A statement is "refunds over $500 require a second approver, and a failed approval leaves the ledger untouched."
- Who wrote the statement, and were they rewarded for making it easy? A prover that gets to phrase the claim will phrase it to be provable. A developer who writes both the code and the assertion will write the assertion the code already satisfies. Independence doesn't need to be absolute, but it needs to exist somewhere in the loop.
- What would a wrong answer look like? If you can't describe the shape of a failure, you can't recognize one. This single question catches more bad generated work than any amount of reading.
Negative controls are the cheapest audit you're not running
You don't need a proof assistant to check whether your checker works. You need to break things on purpose and confirm that something notices.
In testing, this is mutation testing: a tool makes small deliberate changes to your source — flip a comparison, delete a branch — and re-runs the suite. If the tests still pass, they weren't testing that line. The result is a mutation score, which is a far more honest number than coverage, because it measures detection rather than execution. A team I know moved from 94% coverage to a 71% mutation score on the same codebase and discovered three "tested" payment paths that had never asserted anything at all.
The formal-methods equivalent is the same instinct: try to prove a nearby false statement and confirm the kernel rejects it. The infrastructure equivalent is to break one thing in staging and watch the alert fire. Pick one critical path per quarter and run the negative control. It takes an afternoon and it tells you whether your 17 million lines mean anything.
The bottleneck moved to reading, and reading didn't get faster
Here's the arithmetic that decides this argument. A careful reviewer working through unfamiliar logic can handle a few hundred lines an hour, and that number has not changed since the 1970s. At 300 lines an hour, 17 million lines is roughly 57,000 reviewer-hours — about 28 person-years of full-time reading.
Masullo's 940 pages aren't free either, but they're at least one human's attempt to make the argument legible to other humans. And a formalization's advantage is real: you know every step is valid relative to the statement. But you still need a person on the statement, and there is exactly one of those per artifact.
So the ratio that matters in your team is not generated lines per engineer. It's reviewed claims per engineer. If generation throughput doubled last year and your review capacity didn't, you didn't get faster. You got a longer queue of things nobody has read, and you relabeled the queue "done."
What to change on Monday
- Make the claim a required field. Every non-trivial PR gets one sentence: "This makes X true." If the author can't write it, the work isn't ready for review.
- Decouple claim from proof. Whoever writes the acceptance criteria is not the only person who writes the implementation. This is the whole job of a good QA engineer, restated for the generated-code era.
- Cap generated diffs. If a generated PR is too big to read, it is too big to merge. Split it until a human can hold it in their head, or accept that you're shipping unreviewed code with a green checkmark on it.
- Track mutation score on critical paths, not coverage across the repo. One number that measures detection beats one that measures execution.
- Staff for specification. The scarce skill in 2027 is not producing artifacts. It's writing down what correct means precisely enough that a machine — or a new hire — can be checked against it.
The trade-off, stated plainly
None of this means formal verification is overrated. Seventeen million kernel-checked lines are still far more trustworthy than seventeen million lines of untested code, because every step was mechanically validated. If your domain has a proof assistant that fits — crypto, compilers, distributed protocols — use it.
But most teams won't build Lean proofs, and shouldn't. What you can steal is the discipline that makes formal work meaningful in the first place: write the claim first, keep it short enough that a human reads it, and make failure visible before you celebrate production. The proof got cheap. The statement is still yours, and it always was.
Key Takeaways
- A proof assistant verifies that a proof establishes a statement. It never verifies that the statement is the one you wanted — that arrow is human, and it's the one being skipped.
- Line count tracks generation cost, not assurance. When production gets 450x cheaper, the number tells you 450x less.
- Your 8,000 tests and 40,000 lines of generated infrastructure have the same problem as a 17-million-line proof: nobody has read the claim.
- Ask three questions before accepting any large artifact: where is the statement, who wrote it, and what would a wrong answer look like?
- Run negative controls — mutation testing, deliberately broken staging, an intentionally false theorem. They measure detection instead of activity.
- Review capacity hasn't improved since the 1970s. If generation doubled and review didn't, you built a queue, not a capability.