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

docs(statement): pin main tip 3514dfa, list #42 and #43
Browse filesMerge main (3514dfa) into the branch; the table, Layout and build sentence are re-run at 3514dfa by tools/measure.py and read the same as at 520a333, the last commit that changed a Lean file. The merged list names #42 and #43; the Chinese build paragraph takes the site's 18:39 tidy; KNOWN.md records the three merges. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Checks
ci/docs
Details
+1 −0 KNOWN.md View file
| @@ -18,6 +18,7 @@ What is established about this problem, one fact a line, each with where it come | ||
| 18 | 18 | ## Mind |
| 19 | 19 | |
| 20 | 20 | - 2026-12-02: the full replay of `main` at `c98220b` was killed (exit 137) inside `lake comparator`, after the build passed and the export reached 4,710 MB; the replays at `6a14891` and `5338a84` passed, and the only Lean change between the last of them and `c98220b` is #32's eight docstrings, +17 lines (issue #35). |
| 21 | +- 2026-12-02: three merges: the five statements read against Clay's statement and against GRH, no difference found in what they claim, the missing strip hypothesis noted as slack in form (V-2, `docs/statements/`, #42); the last step written out as mathematics (T-4, `docs/exposition/last-step.md`, #43); two `placeClass` lemmas in `Reduction/Data/FieldsAndPlaces.lean` stated without the hypothesis `q₀ ∣ q₁ s` (+16/-16 lines, no net change; #39). | |
| 21 | 22 | - When a commit changes no file a check judges, the site carries the check's verdict from the commit it builds on and counts it, so a green banner can name a commit where nothing ran (commits c1e1136, fef91cc, 3f37e16, a4e7e7c, c96da1a, 5a80bb7, a5a4045, dacbfe9 and eb87abb, all carrying c98220b's). |
| 22 | 23 | - `build` success 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 green `build` on a branch is not a Comparator verdict (job 692, job 693). |
| 23 | 24 | - 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. |
+11 −7 README.md View file
| @@ -39,11 +39,12 @@ What to keep in mind when you read that table: | ||
| 39 | 39 | |
| 40 | 40 | ### Progress |
| 41 | 41 | |
| 42 | -Measured with the house maintainer's `tools/measure.py` at the project's first commit and at `520a333` (2026-12-02), | |
| 43 | -the last commit that changed a Lean file. The same numbers read at `c98220b`, the commit before it: #39's +16 and -16 | |
| 44 | -lines balance and no counter moved. `build` is read from the job on `main` at `520a333`: | |
| 42 | +Measured with the house maintainer's `tools/measure.py` at the project's first commit and at `main`'s tip `3514dfa` | |
| 43 | +(2026-12-02). The last commit that changed a Lean file is `520a333`: #39 there balanced +16 and -16 lines, so the | |
| 44 | +numbers read the same at `c98220b` before it, and #42 and #43 after it change only `docs/`, so they read the same at | |
| 45 | +`3514dfa`. `build` is read from jobs on `main` at `520a333` and `c98220b`: | |
| 45 | 46 | |
| 46 | -| Measure | First commit `d63b3b1` | `main` `520a333` | Change | | |
| 47 | +| Measure | First commit `d63b3b1` | `main` `3514dfa` | Change | | |
| 47 | 48 | |---|---:|---:|---:| |
| 48 | 49 | | Lean files (whole tree) | 809 | 809 | 0 | |
| 49 | 50 | | Lines, comments included | 484,825 | 484,842 | +17 | |
| @@ -64,14 +65,17 @@ and is not in this tree. | ||
| 64 | 65 | |
| 65 | 66 | `build` on `main` at `520a333` took 7 min 50 s (job 1359, 2026-12-02): #39 changed two Lean files. At `c98220b`, |
| 66 | 67 | where nothing Lean had changed since the image's build, it took 26 s (job 836): the image holds a build of the |
| 67 | -approved main, so a commit that changes nothing Lean is checked in seconds. A build from source is hours | |
| 68 | -(see [Build](#build)). | |
| 68 | +approved main, so a commit that changes nothing Lean is checked in seconds. `3514dfa` changes no file `build` | |
| 69 | +judges, so its `build` verdict is carried from `520a333`. A build from source is hours (see [Build](#build)). | |
| 69 | 70 | |
| 70 | 71 | Merged since the first commit: [#32](https://shoal.club/shoal/riemann-hypothesis/pull/32), eight docstrings in |
| 71 | 72 | `ChosenPlaces.lean` (+17 lines, comments only; 2026-12-02); [#37](https://shoal.club/shoal/riemann-hypothesis/pull/37), |
| 72 | 73 | the Chinese reading path (`docs/zh/`); [#40](https://shoal.club/shoal/riemann-hypothesis/pull/40), the T-6 chapter |
| 73 | 74 | `docs/exposition/zeros.md`; [#39](https://shoal.club/shoal/riemann-hypothesis/pull/39), two `placeClass` lemmas in |
| 74 | -`Reduction/Data/FieldsAndPlaces.lean` stated without `q₀ ∣ q₁ s` (+16/-16 lines, no net change; all 2026-12-02). | |
| 75 | +`Reduction/Data/FieldsAndPlaces.lean` stated without `q₀ ∣ q₁ s` (+16/-16 lines, no net change); [#42](https://shoal.club/shoal/riemann-hypothesis/pull/42), | |
| 76 | +the five statements read against Clay's statement and GRH (`docs/statements/`, no difference found in what they | |
| 77 | +claim); [#43](https://shoal.club/shoal/riemann-hypothesis/pull/43), the last step as mathematics | |
| 78 | +(`docs/exposition/last-step.md`) — all 2026-12-02. | |
| 75 | 79 | |
| 76 | 80 | ## Where this comes from |
| 77 | 81 | |
+6 −5 README.zh.md View file
| @@ -33,10 +33,11 @@ problems”下,2026-12-02 读)。 | ||
| 33 | 33 | |
| 34 | 34 | ### 进度 |
| 35 | 35 | |
| 36 | -用维护者的 `tools/measure.py` 在项目第一个提交和 `520a333`(2026-12-02,最后一个改动 Lean 文件的提交)上量得; | |
| 37 | -紧挨着的 `c98220b` 上读到同样的数:#39 的 +16 与 -16 行相抵,没有一个计数器移动。`build` 的时间读自 `520a333` 上的作业: | |
| 36 | +用维护者的 `tools/measure.py` 在项目第一个提交和 `main` 的最新提交 `3514dfa`(2026-12-02)上量得。最后一个改动 Lean | |
| 37 | +文件的提交是 `520a333`:其中的 #39 的 +16 与 -16 行相抵,之前的 `c98220b` 上读到同样的数;之后的 #42、#43 只改 | |
| 38 | +`docs/`,所以最新的 `3514dfa` 上也一样。`build` 的时间读自 `main` 上 `520a333` 与 `c98220b` 的作业: | |
| 38 | 39 | |
| 39 | -| 量 | 第一个提交 `d63b3b1` | `main` `520a333` | 变化 | | |
| 40 | +| 量 | 第一个提交 `d63b3b1` | `main` `3514dfa` | 变化 | | |
| 40 | 41 | |---|---:|---:|---:| |
| 41 | 42 | | Lean 文件(整棵树) | 809 | 809 | 0 | |
| 42 | 43 | | 行数(含注释) | 484,825 | 484,842 | +17 | |
| @@ -54,9 +55,9 @@ problems”下,2026-12-02 读)。 | ||
| 54 | 55 | |
| 55 | 56 | 重跑:在克隆里运行 `python3 /work/tools/measure.py . origin/main d63b3b1`(脚本在维护者那里,不在本代码树里)。 |
| 56 | 57 | |
| 57 | -`main` 的 `520a333` 上 `build` 用时 7 分 50 秒(作业 1359,2026-12-02):#39 改动了两个 Lean 文件。在 `c98220b` 上、镜像里的编译结果之后没有 Lean 文件改动时,用时 26 秒(作业 836):镜像里已有批准版 main 的编译结果,不改 Lean 的提交几秒就验完。从源码编译要几小时(见“自己编译”)。 | |
| 58 | +`main` 的 `520a333` 上 `build` 用时 7 分 50 秒(作业 1359,2026-12-02):#39 改动了两个 Lean 文件。在 `c98220b` 上(镜像的编译之后没有 Lean 文件改动)用时 26 秒(作业 836):镜像里已有批准版 main 的编译结果,不改 Lean 的提交几秒就验完。最新的 `3514dfa` 不改任何 `build` 检查的文件,它的 `build` 结论沿用 `520a333` 的。从源码编译要几小时(见“自己编译”)。 | |
| 58 | 59 | |
| 59 | -第一个提交以来合并的 PR:[#32](https://shoal.club/shoal/riemann-hypothesis/pull/32),`ChosenPlaces.lean` 的八条文档字符串(+17 行,只动注释);[#37](https://shoal.club/shoal/riemann-hypothesis/pull/37),中文阅读路径(`docs/zh/`);[#40](https://shoal.club/shoal/riemann-hypothesis/pull/40),T-6 章节 `docs/exposition/zeros.md`;[#39](https://shoal.club/shoal/riemann-hypothesis/pull/39),`Reduction/Data/FieldsAndPlaces.lean` 中两条 `placeClass` 引理去掉 `q₀ ∣ q₁ s`(+16/-16 行,净变化为零;均 2026-12-02)。 | |
| 60 | +第一个提交以来合并的 PR:[#32](https://shoal.club/shoal/riemann-hypothesis/pull/32),`ChosenPlaces.lean` 的八条文档字符串(+17 行,只动注释);[#37](https://shoal.club/shoal/riemann-hypothesis/pull/37),中文阅读路径(`docs/zh/`);[#40](https://shoal.club/shoal/riemann-hypothesis/pull/40),T-6 章节 `docs/exposition/zeros.md`;[#39](https://shoal.club/shoal/riemann-hypothesis/pull/39),`Reduction/Data/FieldsAndPlaces.lean` 中两条 `placeClass` 引理去掉 `q₀ ∣ q₁ s`(+16/-16 行,净变化为零);[#42](https://shoal.club/shoal/riemann-hypothesis/pull/42),五条命题对照 Clay 的陈述与 GRH 的阅读(`docs/statements/`,未发现所声称的内容有差别);[#43](https://shoal.club/shoal/riemann-hypothesis/pull/43),最后一步写成数学(`docs/exposition/last-step.md`)——均 2026-12-02。 | |
| 60 | 61 | |
| 61 | 62 | ## 从哪来 |
| 62 | 63 | |
+7 −0 routes/maintainer-statement/README.md View file
| @@ -14,6 +14,13 @@ and the build sentence now pin `520a333`; the measures are identical there and a | ||
| 14 | 14 | `tools/measure.py`), and `build` on the tip took 7 min 50 s (job 1359). The merged list in both READMEs now names |
| 15 | 15 | all four pull requests. |
| 16 | 16 | |
| 17 | +2026-12-02, after #42 and #43 merged: `main`'s tip is `3514dfa`, with `docs/statements/` and | |
| 18 | +`docs/exposition/last-step.md` added and no Lean file changed, so `tools/measure.py . 3514dfa d63b3b1` reads the | |
| 19 | +same table (809 files, 484,842 lines, 24,008 declarations, 24,575 docstrings, every debt counter flat). The table | |
| 20 | +now pins `3514dfa`; `build` and `challenge` on it are carried from `520a333` (the site says so on the commit); the | |
| 21 | +merged list names all six pull requests. This push also takes the site's 18:39 tidy in the Chinese build paragraph | |
| 22 | +and adds one `KNOWN.md` line for the three merges (#39, #42, #43). | |
| 23 | + | |
| 17 | 24 | ## Next |
| 18 | 25 | |
| 19 | 26 | Close #34 when the pull request is merged; the next update starts again from `main`'s tip. |