RH Lean Explorer Lean proof · certified 21 NovCertified
Readable and compact editions

Luke Sernau’s shorter Lean proof of the Riemann hypothesis

On 25 November 2026, Luke Sernau published two shorter Lean reworkings of the proof Levent Alpöge developed with Claude. Both establish the same five theorems as the original, covering classical RH and GRH for Dirichlet L-functions. Andrew Sutherland independently verified both shorter editions at commit 72fead10. Pinned release · MIT verification

Which edition should I open?

How much shorter is it?

Edition and source scope Lean files Physical lines including blanks Nonblank lines including comments Code lines reported by the rewrite
Alpöge–Claude original archive, 40e56bab/src 175,187 17,374,215 15,531,759 —
Sernau readable, 72fead10/grh/src 803 ≈477,000 ≈433,000 ≈300,000
Sernau compact, 72fead10/grh-compact/src 794 ≈113,000 ≈95,000 ≈76,000

Using physical lines across editions, the compact source is about 0.65% of the original, roughly 150 times fewer lines (about 113,000 against 17.4 million). These totals exclude the Mathlib dependency. The familiar 17.4 million figure counts physical lines, while 76,000 counts code lines. RH Shrink tracks a separate community branch with its own code-line rule. Shorter source is not a smaller kernel proof: MIT’s export sizes are 5.17 GB for the compact edition against 4.49 GB for the readable edition. An export records fully elaborated proof terms, not source text. (MIT export sizes) Original archive figures · Readable README · Compact README · RH Shrink method

Further shortening claims have appeared since. On the Lean Zulip, Kim Morrison wrote on 27 Nov that claims “not backed up by public code are usually a sign that the claims are nonsense”. Snir Broshi looked at one public repository, MoteMath’s grh-ultra-compact-lean, and wrote that it “just removes comments and empty lines”; the person who posted it agreed that this is what the repository does. A DeepSeek-driven project page reports 52,347 lines and its own kernel check; we have not examined its code or reproduced that check. None of these has been through the checks reported on status. (Zulip thread, DeepSeek project page)

The five statements side by side

Each source link opens the final declaration in that edition’s Main.lean. In the shorter projects, Statements.lean contains the four explicit proposition definitions and imports only Mathlib. The three Dirichlet statements use positive integer moduli. The half-plane and full critical-strip results cover every Dirichlet character, including imprimitive ones. Pinned proposition definitions · MIT’s fully elaborated statements

Lean theorem What it says Original Readable Compact
riemannHypothesis Mathlib’s classical RH. Every nontrivial zero of ζ has real part ½. L4 L5 L4
riemannZeta_eq_zero_re If ζ(s) = 0, s differs from 1 and s is outside the negative even integers, then Re s = ½. L6 L8 L6
LFunction_ne_zero_of_half_lt_re L(s, χ) is nonzero for Re s > ½, with an exception at s = 1 for the principal character. L8 L13 L8
LFunction_eq_zero_re If L(s, χ) = 0 and 0 < Re s < 1, then Re s = ½. L10 L17 L10
LFunction_eq_zero_re_of_isPrimitive The same critical-strip statement restricted to primitive χ. L12 L21 L12

What changed in the proof files?

The rewrite follows Alpöge’s method, uses different arguments in some steps and reworks some ported background code. Sernau credits colleagues at Anthropic and Claude for the rewrite. The edition READMEs credit Claude with writing the Lean code and documentation. The release describes machine checks, with a full human read-through and accompanying paper still outstanding at release. Pinned release README · Readable acknowledgements

At the classical RH declaration, the original uses rhOfAll. Both shorter editions apply New.zeta_zeros_on_line to New.grh. The first name is the implication from Dirichlet nonvanishing to RH, using the functional equation for ζ. The second supplies the nonvanishing input. Follow the two names in the readable source and see the imports that connect their files. Original declaration · Readable implication · Readable nonvanishing · Explorer source route

For a reading order that continues from these declarations into the main estimate, see the readable edition section of Guides.

What did independent checks confirm?

Waterloo reports a paranoid Comparator pass for the compact edition with the sandbox disabled. Sho Sonoda reports standard Comparator passes for both editions. Both reports use the pinned revision 72fead10. Run details by edition and verifier

On Lean v4.35.0, Sutherland’s sandboxed checks built both shorter projects, matched all five statements against the challenge, found only Lean’s three standard axioms and replayed the checked proofs with several kernels. The full paranoid Comparator run passed for the compact edition on two machines and for the readable edition on the larger machine. The other readable run was stopped at a memory threshold and has no verdict. The original archive has its own independent verification record and a 21 November joint certification covering classical RH. MIT shorter-edition results · MIT original results · Joint statement · Dated results

X Reddit Email LinkedIn