What people use grh-lean for
The compact edition has published independent machine-check results, including statement comparison and acceptance by six kernels. Use grh-lean if you read Lean and want to inspect a formal research artifact or study its argument through the readable edition. Skip it if you need a maintained library or a finished mathematical explanation: the README calls it an unmaintained research artifact, and its root status notice says no mathematician has read it through. Our own lab stopped before execution.
Lean is a proof assistant: you state a theorem in a precise language and supply an argument that its kernel, the part that checks proof terms, accepts. Mathlib provides mathematical definitions and supporting results. Here the headline statements concern the Riemann Hypothesis (RH) and the Generalized Riemann Hypothesis (GRH) for Dirichlet L-functions. The readable edition identifies the final statements and their definitions, so you can inspect what the project claims before following its internal machinery.
The useful choice is between checking an artifact and understanding its mathematics. A successful checker report answers a narrower, precise question. A reading guide helps you follow the argument. Neither task becomes unnecessary because the other has been done.
Michael Rubinstein's Waterloo account reports successful independent checks of the compact edition; other readers have used the code to make explanations and dependency maps.
| Who used it | What they did | Reported outcome |
|---|---|---|
| Michael Rubinstein, University of Waterloo | Checked the compact edition, replayed modules and compared its final statements with a challenge file | The November 26 summary reports all checks passed and six-kernel acceptance. |
| Leonardo de Moura | Built the shortened proof and checked it with con-leche | He reports completing that check, then proposes reconstructing the manuscript. |
| GitHub commenter Euler2023 | Ran the Lean code on a workstation and built a Lean blueprint | The commenter reports success and shares an AI-written monograph. |
| Merve Altunsu, author of lean-proof-xray | Combined an export dependency map, model-generated explanations and structural checks | She reports the same proof skeleton across three runs, with a different result when required questions were omitted. |
These uses call for different reading habits. For a checker report, look for the edition, commit, theorem statements and axiom output. For a monograph, look for who checked the explanation. In issue #1, gmailbob shares a written account while asking for expert readers. The issue remains open in the November 27 research snapshot. Sharing an explanation and finishing expert review are different outcomes.
What happened when we ran it
Our November 27, 2026 sandbox recorded NOT RUN at commit 72fead1: the harness had no supported Lean ecosystem and found no Dockerfile. Its configured allocation was 3 CPUs and 8 GB of RAM, with image recorded as n/a. Those are configuration facts, not measured resource use or actual runtime versions.
| Lab stage | Recorded result | What you can conclude |
|---|---|---|
| Source execution | NOT RUN: unsupported ecosystem, Lean; no Dockerfile | No install, build or test result from MrKeyoor |
| Hands-on safety step | FAILED because no supported Compose filename existed | The Compose-only deployment route stopped before application execution |
| Teardown | teardown: ok | Cleanup was recorded as successful |
The first consequential event was the safety stop. The log says unsafe repo: none of compose.yaml, compose.yml, docker-compose.yaml, docker-compose.yml exists (rule: a compose file is required). Here, “unsafe repo” is the harness's label for failing its deployment rule. It is not a finding that the mathematical source is malicious or incorrect.
A run header says the project was deployed with its own Docker Compose, but the safety result contradicts that description. We treat the failed step as the outcome, rather than turn the header into a successful deployment claim. There was no task answer, proof replay or application screenshot from this attempt. The independent checking discussed elsewhere belongs to the named researchers, not our lab.
Where people get stuck
Rubinstein's compact-edition log records a Mathlib cache failure caused by the open-file limit and a separate missing checker executable; both were corrected before later checking proceeded.
| Reported obstacle | What the verifier changed | Status in the account |
|---|---|---|
| Mathlib cache unpacking failed at the default open-file limit | Raised the open-file limit to the machine's hard limit | Corrected |
Comparator could not start because nanoda_bin was absent from PATH |
Fixed PATH and relaunched | Corrected |
| The cluster blocked the bubblewrap sandbox | Ran Comparator without its sandbox | Workaround, with isolation lost for that run |
The cache problem came before the proof checker could do its job. The later missing executable prevented Comparator from starting at all. If you encounter either message, the log gives you a specific setup problem to investigate, rather than a reason to conclude that Lean rejected the argument. These were problems on Waterloo's machines, not errors reproduced in our sandbox.
The README pins Lean v4.35.0 and Mathlib commit 56a00585. Its workflow fetches the Mathlib cache, builds the project and prints theorem axioms. Follow the README for the edition you choose. Each edition is its own Lake project, so working in the wrong folder changes the artifact you are checking.
The readable edition gives you an ordered route into the argument
The guide starts with Statements.lean, the five statements in Main.lean and the printed axiom list, before directing you into the proof's internal definitions.
That order is useful even if you already know Lean. First decide whether the formal statement is the mathematical claim you care about. Then follow the construction. The pinned reading guide directs you through the data definitions, heights, lattices, short and enough forms, long forms and the main inequality. It names files rather than asking you to discover the structure by opening imports at random.
The README separates background material in src/Lib from the argument in src/New. It also says some declarations serve automation or state results for their own sake, outside the dependencies of the final five theorems. That gives you a reason to use the guide and dependency structure instead of treating every line as equally necessary to your first reading.
For studying the mathematics, choose the readable edition. For inspecting the short artifact, choose the compact edition. Their final statements agree, but the README says some proof steps use different arguments. Reading one edition's prose alongside the other's implementation therefore requires attention to which construction each explanation follows.
Security: Waterloo's completed check ran without Comparator isolation
The Waterloo summary says its cluster prevented Comparator's sandbox and that Andrew Sutherland's sandboxed runs reached the same verdict.
This distinction matters if you intend to repeat the workflow on a machine holding anything valuable. The compact-check account attributes the sandbox block to restrictions on unprivileged user namespaces. Its workaround allowed checking to continue, but removed the sandbox guarantee against the project's own build code. Treat that flag as an explicit change to isolation, not a routine speed option.
Comparator coordinates statement comparison, axiom checking and kernel runs. It is not an additional kernel to count alongside con-leche or nanoda. The November 26 summary distinguishes the Comparator command from the six accepting kernels. Those results concern the formal artifact. They are not a security audit of the build scripts or the surrounding tools.
grh-lean vs the original archive, a fresh formalization and prose handbooks
The readable and compact editions target the same five theorem statements; alternative projects mainly change the reading or checking task you undertake.
| Choice | Why you would choose it | Decision boundary |
|---|---|---|
| grh/ readable edition | A guide and a split between background material and the argument | Best starting point here for studying the Lean development |
| grh-compact/ | A shorter rewriting with the same final statements | Choose it to inspect the compact artifact, not for the easiest reading |
| Original Alpöge-Claude archive | Trace the formalization announced on November 20 | Original checks and shortened-edition checks concern different source artifacts |
| James Chang's fresh formalization | HN commenter jychang describes rebuilding from scratch | The commenter describes unfinished work, not a completed smaller replacement |
| tamnd/grh-lean-handbook | Mathematical prose for graduate number-theory readers who do not read Lean | Read chapter status and source edition before treating a chapter as checked |
The handbook has a useful review control: a model can mark a chapter drafted, while checked and reviewed require a named person. Its volume word counts are targets. A volume without a written chapter is not built. Those rules help you judge the work chapter by chapter instead of treating the size of a proposed book as evidence that someone has reviewed the mathematics.
For an AI-assisted reading, line count also makes a poor context-budget estimate. HN commenter jychang reports that the compact code did not fit a one-million-token window with the o200k tokenizer. The comment gives no exact token count. Use the guide or a dependency map to choose passages rather than assuming the whole repository fits because its headline line count sounds small.
What the other reviews get wrong
ExplainX's claim that no independent compact-edition check had been published is superseded by Waterloo's November 26 completion summary.
| Named coverage | Claim to correct | What the reader should use instead |
|---|---|---|
| ExplainX, “claimed vs verified” grh-lean article | The shorter editions lack published independent checks and a compact Comparator run | Waterloo reports successful compact checks, including Comparator. |
| Toolsnetwork, “GRH in Lean” release page | The shortened repository “proves more” than the original | The compact theorem statements are identical to the original's. |
| ExplainX, original-size discussion | The approximate original line count lacks sourced confirmation | Rubinstein's original-source audit explicitly reports a source line count. Line-count comparisons still need matching conventions. |
| DEV, “How to audit a Lean proof artifact before you trust it” | The practical workflow is an addition omitted by the README | The README already names toolchain pinning, axiom checking and statement review. The two-edition discussion is an addition. |
The compact-check detail page itself still labels Comparator running, while the later Waterloo overview reports completion. Read the dated result alongside the detailed log. A status row left behind during a run should not outweigh the later account of how it ended.
Two other shortcuts deserve rejection. A build estimate for specified hardware is not a promise for every laptop. And calling the rewrite purely engineering compression contradicts the README's statement that many steps use other arguments. In the HN discussion, a comment quoting Sernau describes simplifying across unfolded definitions and replacing some arguments, including removing Vandiver. That is a reported account of the method, not a line-by-line explanation of every change.
Questions people ask
Yes: Waterloo's November 26 summary reports successful independent compact-edition checks, including statement comparison, standard-axiom checks and six-kernel acceptance.
Has the compact grh-lean proof been independently checked, and which checks have finished?
Yes. Rubinstein's Waterloo summary reports compilation, axiom checks, module replay and Comparator completed successfully. It also reports agreeing sandboxed runs by Sutherland. Keep the edition and commit with any citation of those results: checks on the original archive and checks on the shortened artifact are separate records.
Has a mathematician fully read and reviewed the grh-lean proof?
The root README says no mathematician has read it through, as ExplainX also quotes from that status notice. De Moura's public statement reports a con-leche check and proposes reconstructing a manuscript. That is a concrete checking result and a proposed reading task, rather than a claim to have completed full mathematical review.
Does Lean accepting a proof mean that the intended mathematical claim has been proved?
Acceptance establishes a proof of the formal statement, subject to the checker's soundness and the meaning of its definitions. Rubinstein explicitly states those assumptions. Here the final statements are compared with a challenge file, and Statements.lean uses Mathlib's definitions. You still need to distinguish the checked statement from comments, names and prose descriptions of it.
What does grh-lean's GRH claim cover?
The claim covers RH and GRH for Dirichlet L-functions, not general automorphic GRH. The README covers all positive moduli and primitive or nonprimitive characters, with the stated pole exception. Its last three theorems concern the specified half-plane and critical strip, rather than asserting a location for every zero everywhere.
How much shorter is the compact edition?
The README describes roughly 76,000 lines for the compact edition and 300,000 for the readable edition. These are the project's approximate code-size descriptions, not our measurements. The same README gives several totals for the readable source depending on whether comments and blank lines count. Avoid a precise reduction percentage without aligning those conventions.
Is grh-lean a new proof or a rewriting of Alpöge's proof, and which techniques shortened it?
It is a rewriting that follows Alpöge's method while changing arguments for many steps. The README states that relationship directly. A comment in the HN discussion quotes Sernau describing unfolded definitions, simplification across boundaries and some new arguments. Calling it either an unrelated proof or only code formatting loses that distinction.
What was removed from the original proof, and why was it so much larger?
The public accounts identify changed arguments and rewritten background material, rather than an exhaustive removal list. The README describes background material ported and rewritten, while the HN quotation names removal of Vandiver. Neither account warrants assigning the entire size difference to unused code, duplication or a single mathematical trick.
Does the shorter formalization make the decisive mathematical insight easier to explain?
The readable edition supplies a route to the main inequality, but explanation quality still depends on how you read it. Altunsu reports that three guided runs recovered the same skeleton, while a run without required questions missed the mechanism. Fewer lines help you select material; they do not by themselves demonstrate that an explanation captures the argument.
How can a reader make sense of a proof rewritten this dramatically in five days?
Start with the final statements, then the guide's ordered files, rather than reading the compact edition from top to bottom. Issue #1 asks this question and contains readers' proposed explanations. Treat those comments as attributed reading aids. The guide gives you named locations where you can compare an explanation with the formal construction.
What does this development mean for mathematics, software engineering, and human reasoning?
It provides a concrete example of a much smaller formal artifact retaining the original final statements. Waterloo reports statement identity and completed compact checks. That supports studying how this rewrite works. It supplies no general result about how far other proofs can shrink, how AI changes mathematical discovery, or how much human work future reviews will require.
Does lean-proof-xray's recovered explanation match the author's understanding of the proof?
Altunsu asks the author exactly that in open issue #3, which has no reply in the November 27 snapshot. She identifies herself as an embedded-systems builder rather than a mathematician. Her structural checks and repeated generated accounts are useful observations, but author agreement is not a reported outcome of that thread.
How long does grh-lean take to build?
MrKeyoor has no build duration because our harness stopped before running Lean. The README offers an estimate tied to a particular core count, memory allowance and Mathlib-cache state. Use it as planning guidance for that setup, not a measured guarantee for your laptop. A complete Comparator run is a separate checking task.
What we have not tested yet
We did not install Lean, build either edition, print its axioms or replay a proof in our sandbox. Our lab configuration records no actual Lean runtime or operating-system version. Installation effort, memory consumption and checker execution on our hardware remain unassessed. A supported Lean run would be needed before adding MrKeyoor timings or resource measurements.
We also have not mathematically reviewed the argument, checked every translated explanation against the source, or reproduced lean-proof-xray's experiments. The handbook's drafted, checked and reviewed labels deserve inspection at chapter level. Its targets are not completed exposition, and the existence of an AI-written monograph is not a substitute for a named expert's review.
Issue #4 alleges that renamed height variables hide a tautology. It is open with no response in the November 27 snapshot. We have not traced that construction or obtained a source-level response, so the allegation is not established here. The independent statement, axiom and kernel checks are relevant formal results, but they do not provide a direct explanation of that particular complaint. Establishing what the disputed height means requires following its definitions and uses in the source.
The four linked YouTube records contain no usable transcripts, so this review attributes no demonstration to their creators. GitHub's November 27 facts show a November 25 last push, while issues #1, #3 and #4 record continuing discussion; the README nevertheless explicitly declines maintenance and contributions. Independent checking activity should not be mistaken for a support commitment. If your next step is study, open Statements.lean and the readable guide. If it is reproduction, preserve the commit, toolchain, axiom output and sandbox setting with your result.

