Six days after Levent Alpöge and Claude released a 17.4-million-line Lean proof of the Riemann Hypothesis, Cinna Davis published OneLineRH.lean: a single file one line tall and 7,279,198 characters wide.

That headline conflates two feats. One is a clever self-extracting wrapper. The real leap landed a day earlier: Luke Sernau and colleagues at Anthropic with Claude (lsernau/grh-lean) rewrote the proof from scratch into a readable 299,902-line library (grh/) and a 76,149-line compact edition (grh-compact/)—a 228× reduction.

I unpacked all 807 files from OneLineRH.lean, verified every byte against grh-compact/, audited both Anthropic editions, and tested the proof’s inequalities numerically. Six interactive figures below show how it shrank and how the proof locks every nontrivial zero onto \(\operatorname{Re} s = \tfrac{1}{2}\).

Two compressions, not one

Rewriting the November 20 archive into grh/ cut 58× by replacing 175,187 comment-free files with 803 clean modules. Shrinking grh/ to grh-compact/ cut another 3.94× without dropping a theorem.

Compare the four editions and tactic jumps below, or open the Line-1 X-Ray to scrub the physical line and inspect escaped tuples beside their decoded Lean 4 source.

Four editions and the Line-1 microscope. Tab 1: code lines across all four releases (left) and Lean 4.35 tactic density per 1,000 lines from grh/ to grh-compact/ (right). Tab 2: all 7,279,198 characters of OneLineRH.lean with live raw-versus-decoded inspection.

grh-compact/ packs more total grind calls (2,713 vs. 1,779) into a quarter as many lines, alongside 13× denser aesop, 14× denser bound, and 11,141 merged helper lemmas. OneLineRH.lean then stores all 807 files as escaped string pairs (2.17% overhead, 807/807 SHA-256 identical) in alphabetical order, placing src/Lib/ across the first 67%, src/Main.lean at the hinge (column 4,967,428), and src/New/ across the final third.

Counting non-split primes to trap zeros

The proof never hunts for zeros directly. It picks an imaginary quadratic field \(K = \mathbb{Q}(\sqrt{-d})\) with prime \(d \equiv 7 \pmod 8\) and tracks a weighted error over prime powers \(\nu \equiv 1 \pmod M\) that do not split in \(K\):

\[R_M(x) \;=\; \sum_{\substack{\nu \le x \\ \nu \equiv 1 \pmod M}} \Lambda(\nu)\bigl(1 - \chi_K(\nu)\bigr)\!\left(\frac{1}{\nu} - \frac{1}{x}\right) - \frac{\log x}{\varphi(M)} - c_M.\]

Here \(\Lambda(\nu)\) is \(\log p\) on prime powers \(p^k\) (zero elsewhere), \(\chi_K(\nu) = (\nu/d)\) is the Legendre symbol, and \(c_M\) is the exact constant offset so \(R_M(x)\) oscillates around zero.

Try injecting an off-line zero at Re ρ = 0.72 to watch its growing wave break through the one-sided ceiling \(x^{8\varepsilon - 1/2}\), then toggle Simulate bad d to see a bad quadratic twist erase the spike.

Prime detector and Landau's one-sided trap. Left: real sieved $$\sqrt{x}\,R_M(x)$$ up to 500,000 against the ceiling $$x^{8\varepsilon}$$. Right: critical strip showing real zeta zeros, movable $$\rho$$ and $$1-\rho$$, and the zero-free zone $$\operatorname{Re} s > \tfrac{1}{2} + 8\varepsilon$$.

Any zero \(\rho = \beta + i\gamma\) right of \(\tfrac{1}{2}\) drives a wave growing like \(x^{\beta - 1/2}\). Setting \(\varepsilon = (\min(\beta, 1) - \tfrac{1}{2})/51\) puts \(8\varepsilon < \beta - \tfrac{1}{2}\), letting the wave outrun the ceiling unless the twisted \(L\)-function also vanishes at \(\rho\) and cancels the pole residue. A zero-density lemma (exists_entireL_quadTwist_ne_zero) picks a prime \(d\) where \(\tilde L(\chi\chi_K, \rho) \neq 0\), and Landau’s lemma finishes the contradiction.

The covolume vise: Theorems A, B, and C

The top-level proof fits in 204 lines of src/New/Main.lean. It squeezes one quantity—the normalized log-covolume \((V + 2\delta)/D\) of \(D\) automorphic target forms (“rows”) sent through \(m\) iterated theta lifts, where \(V\) bounds Euclidean volume and \(\delta\) bounds prime denominators—between three theorems:

  • Theorem A (short_forms): An \(m\)-step seesaw identity and \(p\)-adic jet divisibility shrink the lifts, pushing the upper bound down by \(-m\cdot\mathrm{rem}\).
  • Theorem B (enough_forms): Translates of those short forms spread across the target space, spanning at least \((1 - 4/b^2)D\) independent rows at modest denominator cost.
  • Theorem C (integral_forms_long): Fit \(m\)-fold twists at every prime \(\ell\) tie the lifts to Galois representations and Selmer bounds. The product formula on \(\mathbb{Q}\) (\(\log\lvert q\rvert_\infty + \sum_p \log\lvert q\rvert_p = 0\)) stops total height from dropping below zero, locking the lower bound at \(h_{\mathrm{main}} - 3L\).

Press ▶ Cancel 4 main terms to watch all four shared giants peel away to \((\star)\), drag the chain exponent \(a\) off \(0.50\) to see where \(\tfrac{1}{2}\) enters, or open Product Formula to inspect the exact Archimedean-versus-\(p\)-adic balance.

Inside star_inequality. Tab 1: 3D covolume vise clamping $$(V + 2\delta)/D$$ between Theorems A+B and C, alongside the $$m = x^a$$ tug-of-war and 4-step cancellation ledger. Tab 2: exact product-formula balance powering HeightLe.nonneg.

Cancelling the main term \(h_{\mathrm{main}} = m k \mathfrak{U}\) between the two jaws leaves one line:

\[m \cdot \mathrm{rem} \;\le\; f\, a\, (\log b)^5. \tag{$\star$}\]

Dividing by \(m\) yields the square-root saving \(x^{-1/2}\): shorter chains leave too much truncation error (\(x/m\)), longer chains pay too much lift cost (\(m\)), and balancing them locks \(m \in [\sqrt{x}, 2\sqrt{x}]\).

Behrend’s sphere and greedy covering

Two elementary constructions do heavy structural work inside the rewrite. First, contrary to my November guess, Behrend’s 1946 digit sphere survived. To pick thick infinite places free of short multiplicative relations \(\varphi(\tau/\sigma)^j = \varphi(\rho/\sigma)^i\), exists_three_term_free places lattice points on a sphere inside a cube and encodes them in a wide base \(B\). A line meets a sphere at most twice, so no three vectors are collinear, and wide digits prevent carries.

Orbit the 3D sphere below, then try adding the midpoint (1,1,1) or shrinking the base to 3 to trigger 48 forbidden collisions. Switch to Wolsey Greedy Covering to watch Theorem B’s 15-line logarithmic potential prove coverage.

Combinatorics inside the proof. Tab 1: drag-to-orbit 3D Behrend sphere (0/1,440 collisions at base 24; 48 collisions if you break the sphere or shrink to base 3). Tab 2: Theorem B's greedy covering (exists_few_translates), tracking span and the non-increasing Lyapunov sum $$\#t\cdot k + \psi(F_t)$$.

For Theorem B, exists_few_translates tracks a single potential, \(\psi(F) = 5D\log\bigl(1 + (1 - \varphi)/\eta\bigr)\). Because translates are spread, each greedy pick drops \(\psi\) by at least the source dimension \(k\), guaranteeing \((1 - 4\eta)D\) rows inside \(5D\log(1 + 1/\eta)\) dimensions. At \(D = 120, k = 12, \eta = 0.04\), worst-case spread finishes in 48 steps against a 163-step budget; random \(\mathbb{F}_2\) translates reach 100% in 14 steps.

How grh-compact deleted the Prime Number Theorem

Inequality \((\star)\) mixes the prime error at \(x\) with a much larger scale \(x_1\):

\[\mathrm{rem} \;=\; a\Bigl(\#\mathrm{thick}\,\bigl(R_{N_0}(x) - R_{N_0}(x_1)\bigr) + \#\mathrm{tops}\, R_1(x_1)\Bigr).\]

To isolate \(R_{N_0}(x)\), the proof must bound \(R_{N_0}(x_1) - X\, R_1(x_1)\) where \(X = \#\mathrm{tops}/\#\mathrm{thick}\). The readable edition grh/ proves a full Prime Number Theorem in arithmetic progressions across four files (885 code lines), achieving the tightest error exponent of all three proofs: \(x^{-1/2 + 6\varepsilon}\).

grh-compact/ deletes all 885 lines of PNT and replaces them with a 25-line Gamma-kernel lemma (IsPolar.exists_window_sub_mul_le). For any large \(t\) and \(X \le e^t\), it guarantees one point \(u = \log x_1 \in [t, t^2]\) with \(E(u) - X E'(u) \le e^{-t}\). Scrub \(t\) from t = 20 to t = 500 to watch the spotlight \(v^k e^{-3v}\) lock onto \([t, t^2]\) and crush all three integral guards below \(\tfrac{1}{3}\), or open Real Sieved Dips to inspect actual sieved curves and the \(9\varepsilon \to 8\varepsilon \to 6\varepsilon\) trade.

Deleting the Prime Number Theorem. Tab 1: Gamma spotlight $$v^k e^{-3v}$$ ($$k = \lceil t^2/9\rceil$$) locking onto $$[t, t^2]$$ and closing the three-thirds contradiction past $$t \approx 467$$ at $$R = 3.5$$. Tab 2: real sieved $$E(u) - X E'(u)$$ dipping negative across 63%–77% of the range, plus the three-edition exponent ladder.

If \(E(v) - X E'(v) > e^{-t}\) held everywhere on \([t, t^2]\), two outer exponentials would keep the integrand nonnegative on \((0, \infty)\), yet integrating against \(v^k\) makes all three positive terms fall below \(\tfrac{1}{3}\) of the negative \(-e^{-t}\) term. Trading \(6\varepsilon\) for \(8\varepsilon\) costs Landau’s lemma nothing and deletes an entire analytic chapter.

All 794 modules and the trust boundary

Below is the complete compact codebase parsed from OneLineRH.lean: all 794 src/ modules, 169 directory branches, 1,398 real import edges, and 45 spine landmarks converging into the 13 lines of src/Main.lean.

Every module is reachable from Main.lean in at most 22 hops, and the dashed circle enforces a one-way wall: src/Lib/ (573 background files) imports zero files from src/New/ (219 proof files), while New/ crosses outward along 102 bridges. Press ⇄ Line 1 to collapse the graph onto physical line 1, press ▶ Cascade to replay verification inward, or click any star and open { } Code.

The 794-module proof observatory. Outer ring: 573 background modules in src/Lib/ across 12 sectors. Dashed wall: 0 imports Lib → New. Middle ring: 219 proof modules in src/New/. Center: 45 landmarks converging into src/Main.lean. Toggle Cosmos, filter to Spine, or search with /.

Auditing the trust boundary surfaced one easy false alarm. Grepping the unpacked archive for sorry returns 5 hits, all inside top-level Challenge.lean. Nothing imports Challenge.lean; it is the empty specification stub used by Comparator (comparator.json) to verify src/Main.lean against src/Statements.lean. Across all 794 files in src/, scans find 0 sorry, 0 axiom, 0 native_decide, 0 unsafe, and 0 elaborator shortcuts (kexactB/run_tac), with all five exported theorems resting strictly on [propext, Classical.choice, Quot.sound].

What happened in those six days matters far more than a golfed one-liner. November 20 showed a machine could assemble and kernel-check a 17.4-million-line monument no human could read. Five days later, the same argument compressed into 76,149 dead-code-free lines—small enough to inspect, test numerically, and read spine-first from one 204-line file. No human mathematician has yet verified every lemma in prose, yet the distance between machine-checked truth and human understanding just shrank by two orders of magnitude.

Reproducibility, audit scripts, and datasets

All tallies, offsets, and numerical checks come from four zero-dependency Python scripts in _tools/riemann-minimal/:

  • exp1_editions_audit.py: Parsed OneLineRH.lean (1337isnot1337/riemann-hypothesis-minimal@a035fea0, 7,279,198 chars, 7,663,685 UTF-8 bytes, 2.60 MB zlib-9), verified 807/807 SHA-256 identity against lsernau/grh-lean@72fead10/grh-compact/, and audited grh/ (803 src/ files, 299,902 code lines, 18,234 theorems, 885 PNT lines) vs. grh-compact/ (794 src/ files, 76,149 code lines, 7,093 theorems, 0 PNT lines, 1,398 imports, 100% reachable, max BFS depth 22, max DAG chain 54, 0 Lib → New, 102 New → Lib, 0 sorry/axiom/native_decide/unsafe in src/).
  • exp2_prime_and_window.py: Sieved \(\Lambda(n)\) up to 500,000, evaluated exact \(L'(1,\psi)/L(1,\psi)\) via Euler–Maclaurin on Hurwitz zeta for \(d \in \{7, 23, 31, 47\}\), \(M \in \{1, 4, 8\}\), cross-checked primeError_eq_sum to \(< 10^{-12}\), computed 60 zeta zeros, and verified the Gamma-kernel three-thirds inequality and sieved \(E(u) - X E'(u)\) dips.
  • exp3_squeeze_and_geometry.py: Verified rational product-formula identities, simulated exists_few_translates (worst-case IsSpread and empirical \(\mathbb{F}_2\) elimination), and exhaustively tested Behrend spheres in \(\{0,1,2\}^3\) (1,440 checks) and \(\{0..4\}^3\) (6,048 checks).
  • build_atlas.py & build_data.py: Emitted atlas.json (281 KB) and data.json (73 KB).