News · 2026-11-26
A new Lean repository packages RH and Dirichlet GRH proofs in a shorter edition
The grh-lean repository states machine-checked results for the classical Riemann Hypothesis and the Generalized Riemann Hypothesis for Dirichlet L-functions, and offers a compact edition about one-quarter the code size of its readable edition. The authors say the proof passed machine checks but has not been read through by a mathematician, so formal verification and human exposition remain separate milestones.
Key facts
- Who: The authors of the public lsernau/grh-lean repository; it attributes the Lean text to Claude and collaborators.
- When: The repository’s first public commit is dated Nov. 25, 2026.
- Headline number: About 76,000 code lines in the compact edition versus about 300,000 in the readable edition.
- Primary source: Repository and README.
The theorem scope is specific. The project lists the classical Riemann Hypothesis and nonvanishing statements for Dirichlet L(s,χ) to the right of the critical line, with the expected exception at the principal-character pole. It says the result covers all moduli and characters, including imprimitive ones. It is not a claim about every generalized hypothesis for Dedekind zeta functions or automorphic forms. The formal theorem statements are the place to inspect the boundary.
The two editions illustrate a practical tension in formal mathematics. The readable tree separates background from the main argument and includes a guide. The compact tree is designed for brevity, with readability secondary. The 76,000 code-line figure is about one-quarter of the readable edition’s 300,000 lines. It does not establish a circulated 17-million-to-76-thousand compression from an earlier artifact. A linked author remark refers to “250,000+ pages,” a different unit, and discusses the need to understand and communicate the argument.
The project reports Lean 4.35.0 with pinned Mathlib, compilation without sorry, and replay through Lean’s kernel and other checkers. This is meaningful: a proof assistant rejects invalid proof terms relative to its environment. But the computer checks the encoded proposition under imported definitions and axioms. Humans still have to confirm that the statement matches the intended mathematical claim, understand dependencies, and judge whether the argument is enlightening. The compact proof spine describes its covolume, theta-lift, and weighted prime-counting argument.
The strongest case for the artifact is that its proof can be inspected and replayed, rather than accepted on authority. The strongest caution comes from the project itself: it says no mathematician has read through the proof, and there is no paper-length human exposition. Alpöge’s remark describes this work as a step in understanding and explaining a long argument, not the end of that process.
Hacker News comments debate compression and readability; they are community reaction, not independent mathematical certification. The defensible story is that a shorter formal edition exists and states broad Dirichlet-GRH results, not that the mathematical community has completed review. The useful measure is not line count alone; it is whether theorem statements, dependencies, proof scripts, and human explanations align. See the readable guide, compact guide, and discussion. The project describes a mathematical spine rather than asking readers to trust a large file count. Its compact guide says the argument bounds a weighted prime-counting error by comparing covolumes of families of automorphic forms. Short theta-lift forms, a spanning and second-moment result, and a determinant or height lower bound feed an inequality; a Landau-style criterion yields nonvanishing to the right of the critical line, and the functional equation supplies zero-on-the-line statements. This is the repository’s description, not an independent audit of the proof.
A shorter artifact can improve navigation while making some choices harder to interpret. The compact edition sometimes uses different arguments and is deliberately optimized for brevity. The readable edition separates background from the new argument and supplies a more detailed guide. Line count alone measures neither correctness nor insight: abstraction can make code shorter, while a verbose proof may expose intermediate steps. A useful comparison checks theorem scope, assumptions, dependencies, and whether readers can follow the argument.
The project reports use of propext, Classical.choice, and Quot.sound as axioms in its formal development. That describes part of the trusted foundation, but it does not eliminate dependence on Lean, Mathlib, or imported definitions. The repository documents its pinned environment, while the formal statements show what the theorems assert. The authors frame machine verification as one step in the longer work of explaining the proof to mathematicians.
Key questions
What does the repository’s GRH claim cover?
How much shorter is the compact edition?
Has a mathematician fully reviewed the proof?
Cite this
APA
Ground Truth. (2026, November 26). A new Lean repository packages RH and Dirichlet GRH proofs in a shorter edition. Ground Truth. https://groundtruth.day/news/shorter-lean-formalization-riemann-hypothesis-grh.html
BibTeX
@misc{groundtruth:shorter-lean-formalization-riemann-hypothesis-grh,
title = {A new Lean repository packages RH and Dirichlet GRH proofs in a shorter edition},
author = {{Ground Truth}},
year = {2026},
month = {nov},
url = {https://groundtruth.day/news/shorter-lean-formalization-riemann-hypothesis-grh.html}
}
Comments are replies to this story on Bluesky — reply with any Bluesky account to join in.