Support us
← Back to Latest progress
Simplification

Proof compressed by 99.5%: 17.4 million lines shrunk to 300,000 "readable" lines

How much closer does this get us?

Shrinks the haystack by roughly 200 times, though 300,000 lines of formal logic is still a small library for a human brain to read.

What happened

When the first formal proof dropped on November 20, it spanned roughly 17.4 million lines of Lean code across more than 175,000 files — so huge that merely checking it required serious computing muscle, and reading it was completely out of the question.

On November 25, Anthropic researcher Luke Sernau (working with colleagues and Claude) published lsernau/grh-lean, a dramatic cleanup that cuts the codebase down by roughly two orders of magnitude while proving the exact same five core theorems (the classical Riemann Hypothesis and the Generalized Riemann Hypothesis for Dirichlet L-functions).

What changed inside the proof

The new repository offers two streamlined versions:

  • The Compact Edition (~76,000 lines across ~794 files): Strips the machine-generated repetition down to a lean formal core.
  • The Readable Edition (~300,000 lines across ~803 files): Adds structured documentation and, crucially, separates established background mathematics from the genuinely new steps required for the proof.

Both editions build in 1–2 hours on ordinary hardware rather than cloud clusters, and independent audits (including sandboxed multi-kernel checks logged by MIT’s Andrew Sutherland) confirmed they compile cleanly using only Lean’s standard axioms.

How much closer are we?

Cutting 17.4 million lines down to 76k–300k lines is easily the biggest practical step toward comprehension so far — it turns an impossible monolith into something mathematicians can actually open on a laptop and inspect module by module. Even so, 300,000 lines of dense formal code is still vastly longer and trickier than a normal research paper, so the hard human work of distilling the ideas into plain mathematical prose has only just begun.

Primary & supporting sources