Riemann hypothesis: the Lean proof, cleaned up together
The 2026 Lean proof of the Riemann hypothesis and GRH, machine-checked by others, not refereed, no word from Clay; cleaned up together: more readable, faster to build, the theorems unchanged

Known
What is established about this problem, one fact a line, each with where it comes from: job 12, result 40, issue 7, commit 1a2b3c4 or route <branch>. The site checks every pointer and shows the page in the project's status. Its maintainer keeps this file; propose a line in a pull request.
The judge rejects
- A
lakefile.tomlchange beyond arequire'srev,leanOptions,defaultTargets,lean_exeor[cache]; a package outside leanprover and leanprover-community on GitHub (Tau Ceti excepted); a toolchain that is not a release; files under.lake/. - Any change to
Challenge.lean,src/Statements.leanorcomparator.json: they state what is proved, andchallengecompares them with the approved version (checks/frozen.json). sorry,admit, anaxiomdeclaration,native_decide,implemented_byorexternin any Lean file, outside comments and strings.- A
lakefile.leanbesidelakefile.toml: Lake would read it instead.
Tried, did not work
- Upstream, 2026-11-21 to 11-25: five days of crowd cleanup of the first release took it from 17.4 million lines to about 14 million; a rewrite by a few people with Claude then replaced it with 300,000 (lsernau/grh-lean, 2026-11-25). Pruning and deduplicating a dump line by line did not get near what rewriting did.
- Upstream, 2026-11-24: a batch of pull requests that documented and cited classical theorems, written by an agent, was merged and then flagged by a number theorist: every one he checked was wrong. Since then a reference is added only with the edition and the number, checked against the source.
- Upstream, 2026-11-27: a version announced as under 55,000 lines was read by a contributor, who found that it mainly dropped comments and blank lines. Fewer lines is not the measure.
Mind
- When a commit changes no file a check judges, the site carries that check's verdict from the commit it builds on and counts it, so a green banner can name a commit where nothing ran (checks on main; commits c1e1136, fef91cc, 3f37e16, a4e7e7c, c96da1a, 5a80bb7 and a5a4045 carrying c98220b's).
buildsuccess lists the five theorems' axioms but runs no Comparator: the Comparator and kernel replay is filed by the maintainer once per round, on an open pull request's head, so a greenbuildon a branch is not a Comparator verdict (job 692, job 693).- The starting point is leanprover-community/riemann-hypothesis at 630d1e43b442cab27717c3ebf94d218dea608374 (2026-12-01 16:11 UTC): 806 Lean files under
src/, 484,789 lines with comments, on Lean v4.37.0-rc1 with Mathlib 31ce06ea and Tau Ceti 2a9233e5. From there this project is its own line; upstream moves on independently. - 2026-12-02: the proof is machine-checked and unread. The certificate of 2026-11-21 (Lean FRO and Mathlib Initiative) names the Riemann hypothesis in the first release of 17.4 million lines, not GRH and not this edition; this edition's README said "No mathematician has read it through, and no paper comes with it" (2026-11-25); nothing is refereed; Clay lists the problem as "Active" and has published nothing on it. Sources in README.md.
- "GRH" in the five theorems means Dirichlet L-functions, every modulus and character; the last three theorems say nothing about zeros with Re s ≤ 0.
buildruns in the Lean imageshoal-rh-lean:630d1e43(docker/), with no network: the image holds the toolchain, the dependencies and a build of the approved main. A toolchain or Mathlib bump passeschallengebut needs a new image, and the tag in scienceslack.json moved with it, beforebuildcan pass.- Mathlib and Tau Ceti move together: Tau Ceti's cached oleans work only against the Mathlib commit in
lakefile.toml(scripts/tauceti-cache-get.py). Bump both or neither, and rebuild the image. - Editing import lines can change intermediate statements without any error: upstream measured 80 and 114 declarations that elaborated with other instances after two import-only pull requests, and one that lost a hypothesis (upstream's report, 2026-11-26 to 11-29). The five theorems are protected by Comparator; the lemmas between are not. A pull request that changes imports says so.
src/Lib/Speed.lean, imported everywhere throughLib/Base, changes instance priorities and the defaultsimpset for the whole development (GUIDE.md section 5): a proof that works in a scratch file may not work here, and the reverse.- Counted at the starting commit: 31
seallines in 22 files (S-2); 187 lines in 85 files callnlinarith(S-3); REFERENCES.md marks 108 citations "work found, no place given", 32 "place confirmed at second hand", 7 "not compared" (V-3); INDEX.md has 235 rows of known results (V-4). - Upstream counted 289 declarations that nothing reachable from
MainandStatementsuses (upstream's count, at 91fcaabb, 2026-11-30) and judged most deliberate: 118 are@[simp]lemmas or instances, 85 are in seven modules added on purpose (S-1). anyGeometry, the definition a critique of the first release calls vacuous, does not occur undersrc/here (git grep, 2026-12-02). Whether the critique's point carries over in another form is V-5's question, not settled by that.- Left out at the start, as not the proof: upstream's GitHub workflows and the scripts only they run,
CACHE.mdandCONTRIBUTORS.md. The cache scriptslake exe cache getruns, andscripts/PrintAxioms.lean, are kept. - The first release itself is at https://github.com/homeowmorphism/riemann-hypothesis-original, and the community's five days of work on it on upstream's
alpogebranch. Neither is here.