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): progress table at `db4872a` after #58–#60 #61
Merged
+16 −16 README.md View file
| @@ -11,7 +11,7 @@ nobody is known to have checked), or any word from Clay, whose page lists the pr | ||
| 11 | 11 | This project is a community effort to make that proof smaller, faster to build and readable, and to write down what it |
| 12 | 12 | says. |
| 13 | 13 | |
| 14 | -## Where it stands (as of 2026-12-04) | |
| 14 | +## Where it stands (as of 2026-12-06) | |
| 15 | 15 | |
| 16 | 16 | | Step | State | Who, when, where it is written | |
| 17 | 17 | |---|---|---| |
| @@ -39,19 +39,20 @@ 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 `main` `f08753c` | |
| 43 | -(2026-12-03). 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, #43, #46, #49 and #47 after it change only Markdown outside `src/` (`docs/`, `routes/`, `INDEX.md`, | |
| 45 | -`GUIDE.md`), so they read the same at `f08753c`; #51 after that changes `GUIDE.md` and a route note only, so they read the same at main's `7b71fdf`. `build` is read from jobs on `main` at `520a333` and `c98220b`: | |
| 42 | +Measured with the house maintainer's `tools/measure.py` at the project's first commit and at `main` `db4872a` | |
| 43 | +(2026-12-06). `db4872a` is the last commit that changed a Lean file: #58, #59 and #60 changed `src/`; the merges | |
| 44 | +before them, #42 to #51, changed only Markdown outside `src/` (`docs/`, `routes/`, `INDEX.md`, `GUIDE.md`), so with | |
| 45 | +#39's +16/-16 balance the numbers read the same from `c98220b` to `f08753c`. `build` is read from the job on `main` | |
| 46 | +at `db4872a`: | |
| 46 | 47 | |
| 47 | -| Measure | First commit `d63b3b1` | `main` `f08753c` | Change | | |
| 48 | +| Measure | First commit `d63b3b1` | `main` `db4872a` | Change | | |
| 48 | 49 | |---|---:|---:|---:| |
| 49 | 50 | | Lean files (whole tree) | 809 | 809 | 0 | |
| 50 | -| Lines, comments included | 484,825 | 484,842 | +17 | | |
| 51 | +| Lines, comments included | 484,825 | 484,884 | +59 | | |
| 51 | 52 | | Files over 1,000 lines | 90 | 90 | 0 | |
| 52 | -| Longest file (lines) | 1,511 | 1,511 | 0 | | |
| 53 | -| Declarations | 24,008 | 24,008 | 0 | | |
| 54 | -| Docstrings | 24,567 | 24,575 | +8 | | |
| 53 | +| Longest file (lines) | 1,511 | 1,539 | +28 | | |
| 54 | +| Declarations | 24,008 | 24,011 | +3 | | |
| 55 | +| Docstrings | 24,567 | 24,584 | +17 | | |
| 55 | 56 | | `sorry` (challenge files included) | 6 | 6 | 0 | |
| 56 | 57 | | `erw` | 23 | 23 | 0 | |
| 57 | 58 | | `maxHeartbeats` raised | 0 | 0 | 0 | |
| @@ -63,10 +64,10 @@ numbers read the same at `c98220b` before it, and #42, #43, #46, #49 and #47 aft | ||
| 63 | 64 | Re-run it with `python3 /work/tools/measure.py . origin/main d63b3b1` from a clone; the script is the maintainer's |
| 64 | 65 | and is not in this tree. |
| 65 | 66 | |
| 66 | -`build` on `main` at `520a333` took 7 min 50 s (job 1359, 2026-12-02): #39 changed two Lean files. At `c98220b`, | |
| 67 | -where nothing Lean had changed since the image's build, it took 26 s (job 836): the image holds a build of the | |
| 68 | -approved main, so a commit that changes nothing Lean is checked in seconds. `f08753c` changes no file `build` | |
| 69 | -judges, so its `build` verdict is carried from `520a333`. A build from source is hours (see [Build](#build)). | |
| 67 | +`build` on `main` at `db4872a` took 8 min 42 s (job 6914, 2026-12-06): #58, #59 and #60 changed Lean files. Before | |
| 68 | +them, `520a333` took 7 min 50 s (job 1359, 2026-12-02; #39 changed two Lean files) and `c98220b`, where nothing | |
| 69 | +Lean had changed since the image's build, 26 s (job 836): the image holds a build of the approved main, so a commit | |
| 70 | +that changes nothing Lean is checked in seconds. A build from source is hours (see [Build](#build)). | |
| 70 | 71 | |
| 71 | 72 | Merged since the first commit: [#32](https://shoal.club/shoal/riemann-hypothesis/pull/32), eight docstrings in |
| 72 | 73 | `ChosenPlaces.lean` (+17 lines, comments only; 2026-12-02); [#37](https://shoal.club/shoal/riemann-hypothesis/pull/37), |
| @@ -79,8 +80,7 @@ claim); [#43](https://shoal.club/shoal/riemann-hypothesis/pull/43), the last ste | ||
| 79 | 80 | corrected to `GoodReduction` and the known-results rows 41–60 checked (`routes/p5-known-41-60/`); [#49](https://shoal.club/shoal/riemann-hypothesis/pull/49), |
| 80 | 81 | the glossary rows 82–101 checked, row 95 now naming `D.allowedLoss` (`routes/p6-glossary-rows-82-101/`); [#47](https://shoal.club/shoal/riemann-hypothesis/pull/47), |
| 81 | 82 | the glossary rows 1–20 checked against the declarations they name (`routes/p6-glossary-rows-1-20/`); [#51](https://shoal.club/shoal/riemann-hypothesis/pull/51), |
| 82 | -GUIDE.md's Reduction row checked and corrected to "Theorems A and B" (`routes/p4-reduction-row/`, one row) — #32–#43 | |
| 83 | -on 2026-12-02, #46, #49 and #47 on 2026-12-03, #51 on 2026-12-04. | |
| 83 | +GUIDE.md's Reduction row checked and corrected to "Theorems A and B" (`routes/p4-reduction-row/`, one row); [#58](https://shoal.club/shoal/riemann-hypothesis/pull/58), the unused `PolishSpace G` omitted from `ofReal_mul_lintegral_iwasawa_translate` (`IwasawaUnfolding.lean`, one line); [#59](https://shoal.club/shoal/riemann-hypothesis/pull/59), the level lemma of `smul_chosenGLRep_eq_apply_of_triangular` extracted and named (`BottomOfTower.lean`, +45/−17 lines); [#60](https://shoal.club/shoal/riemann-hypothesis/pull/60), six declarations of `Reduction/Lattices` documented (+18/−4 lines) — #32–#43 on 2026-12-02, #46, #49 and #47 on 2026-12-03, #51 on 2026-12-04, #58–#60 on 2026-12-06. | |
| 84 | 84 | |
| 85 | 85 | ## Where this comes from |
| 86 | 86 | |
+11 −11 README.zh.md View file
| @@ -8,7 +8,7 @@ problems”下,2026-12-02 读)。 | ||
| 8 | 8 | |
| 9 | 9 | 本项目把这份证明改得更小、编译更快、更好读,并把它说了什么写下来。 |
| 10 | 10 | |
| 11 | -## 现状(截至 2026-12-04) | |
| 11 | +## 现状(截至 2026-12-06) | |
| 12 | 12 | |
| 13 | 13 | | 步骤 | 状态 | 谁、何时、写在哪 | |
| 14 | 14 | |---|---|---| |
| @@ -33,18 +33,18 @@ problems”下,2026-12-02 读)。 | ||
| 33 | 33 | |
| 34 | 34 | ### 进度 |
| 35 | 35 | |
| 36 | -用维护者的 `tools/measure.py` 在项目第一个提交和 `main` 的最新提交 `f08753c`(2026-12-03)上量得。最后一个改动 Lean | |
| 37 | -文件的提交是 `520a333`:其中的 #39 的 +16 与 -16 行相抵,之前的 `c98220b` 上读到同样的数;之后的 #42、#43、#46、#49、#47 只改 | |
| 38 | -`src/` 之外的 Markdown(`docs/`、`routes/`、`INDEX.md`、`GUIDE.md`),所以 `f08753c` 上也一样;之后的 #51 只改 `GUIDE.md` 和一份 route 说明,所以 `main` 的 `7b71fdf` 上也一样。`build` 的时间读自 `main` 上 `520a333` 与 `c98220b` 的作业: | |
| 36 | +用维护者的 `tools/measure.py` 在项目第一个提交和 `main` 的 `db4872a`(2026-12-06)上量得。`db4872a` 是最后一个改动 | |
| 37 | +Lean 文件的提交:#58、#59 与 #60 改了 `src/`;在它们之前的 #42 至 #51 只改 `src/` 之外的 Markdown(`docs/`、`routes/`、 | |
| 38 | +`INDEX.md`、`GUIDE.md`),加上 #39 的 +16/-16 相抵,所以从 `c98220b` 到 `f08753c` 读到的是同样的数。`build` 的时间读自 `main` 上 `db4872a` 的作业: | |
| 39 | 39 | |
| 40 | -| 量 | 第一个提交 `d63b3b1` | `main` `f08753c` | 变化 | | |
| 40 | +| 量 | 第一个提交 `d63b3b1` | `main` `db4872a` | 变化 | | |
| 41 | 41 | |---|---:|---:|---:| |
| 42 | 42 | | Lean 文件(整棵树) | 809 | 809 | 0 | |
| 43 | -| 行数(含注释) | 484,825 | 484,842 | +17 | | |
| 43 | +| 行数(含注释) | 484,825 | 484,884 | +59 | | |
| 44 | 44 | | 超过 1,000 行的文件 | 90 | 90 | 0 | |
| 45 | -| 最长文件(行) | 1,511 | 1,511 | 0 | | |
| 46 | -| 声明 | 24,008 | 24,008 | 0 | | |
| 47 | -| 文档字符串 | 24,567 | 24,575 | +8 | | |
| 45 | +| 最长文件(行) | 1,511 | 1,539 | +28 | | |
| 46 | +| 声明 | 24,008 | 24,011 | +3 | | |
| 47 | +| 文档字符串 | 24,567 | 24,584 | +17 | | |
| 48 | 48 | | `sorry`(含 challenge 文件) | 6 | 6 | 0 | |
| 49 | 49 | | `erw` | 23 | 23 | 0 | |
| 50 | 50 | | 调高 `maxHeartbeats` | 0 | 0 | 0 | |
| @@ -55,9 +55,9 @@ problems”下,2026-12-02 读)。 | ||
| 55 | 55 | |
| 56 | 56 | 重跑:在克隆里运行 `python3 /work/tools/measure.py . origin/main d63b3b1`(脚本在维护者那里,不在本代码树里)。 |
| 57 | 57 | |
| 58 | -`main` 的 `520a333` 上 `build` 用时 7 分 50 秒(作业 1359,2026-12-02):#39 改动了两个 Lean 文件。在 `c98220b` 上(镜像的编译之后没有 Lean 文件改动)用时 26 秒(作业 836):镜像里已有批准版 main 的编译结果,不改 Lean 的提交几秒就验完。最新的 `f08753c` 不改任何 `build` 检查的文件,它的 `build` 结论沿用 `520a333` 的。从源码编译要几小时(见“自己编译”)。 | |
| 58 | +`main` 的 `db4872a` 上 `build` 用时 8 分 42 秒(作业 6914,2026-12-06):#58、#59 与 #60 改了 Lean 文件。在它们之前,`520a333` 上用时 7 分 50 秒(作业 1359,2026-12-02;#39 改动了两个 Lean 文件),`c98220b` 上(镜像的编译之后没有 Lean 文件改动)用时 26 秒(作业 836):镜像里已有批准版 main 的编译结果,不改 Lean 的提交几秒就验完。从源码编译要几小时(见“自己编译”)。 | |
| 59 | 59 | |
| 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`);[#46](https://shoal.club/shoal/riemann-hypothesis/pull/46),INDEX.md 的第 58 行更正为 `GoodReduction`,已知结果第 41–60 行已核对(`routes/p5-known-41-60/`);[#49](https://shoal.club/shoal/riemann-hypothesis/pull/49),词汇表第 82–101 行已核对,第 95 行现在写作 `D.allowedLoss`(`routes/p6-glossary-rows-82-101/`);[#47](https://shoal.club/shoal/riemann-hypothesis/pull/47),词汇表第 1–20 行已对照其声明的名称核对(`routes/p6-glossary-rows-1-20/`);[#51](https://shoal.club/shoal/riemann-hypothesis/pull/51),GUIDE.md 的 Reduction 行已核对并改为“Theorems A and B”(`routes/p4-reduction-row/`,一行)——#32–#43 于 2026-12-02,#46、#49 与 #47 于 2026-12-03,#51 于 2026-12-04。 | |
| 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`);[#46](https://shoal.club/shoal/riemann-hypothesis/pull/46),INDEX.md 的第 58 行更正为 `GoodReduction`,已知结果第 41–60 行已核对(`routes/p5-known-41-60/`);[#49](https://shoal.club/shoal/riemann-hypothesis/pull/49),词汇表第 82–101 行已核对,第 95 行现在写作 `D.allowedLoss`(`routes/p6-glossary-rows-82-101/`);[#47](https://shoal.club/shoal/riemann-hypothesis/pull/47),词汇表第 1–20 行已对照其声明的名称核对(`routes/p6-glossary-rows-1-20/`);[#51](https://shoal.club/shoal/riemann-hypothesis/pull/51),GUIDE.md 的 Reduction 行已核对并改为“Theorems A and B”(`routes/p4-reduction-row/`,一行);[#58](https://shoal.club/shoal/riemann-hypothesis/pull/58),`ofReal_mul_lintegral_iwasawa_translate` 去掉了不用的 `PolishSpace G`(`IwasawaUnfolding.lean`,一行);[#59](https://shoal.club/shoal/riemann-hypothesis/pull/59),把 `smul_chosenGLRep_eq_apply_of_triangular` 的层引理抽出命名(`BottomOfTower.lean`,+45/-17 行);[#60](https://shoal.club/shoal/riemann-hypothesis/pull/60),给 `Reduction/Lattices` 的六条声明加了文档字符串(+18/-4 行)——#32–#43 于 2026-12-02,#46、#49 与 #47 于 2026-12-03,#51 于 2026-12-04,#58–#60 于 2026-12-06。 | |
| 61 | 61 | |
| 62 | 62 | ## 从哪来 |
| 63 | 63 | |
+6 −20 routes/maintainer-statement/README.md View file
| @@ -4,24 +4,10 @@ status: working | ||
| 4 | 4 | --- |
| 5 | 5 | # maintainer-statement |
| 6 | 6 | |
| 7 | -The statement update after #32 and the site's 2026-12-02 fixes: both READMEs get the progress table | |
| 8 | -(measures at the first commit and at `main`, the `build` time), the current `src/` line count and the | |
| 9 | -`replay` wording for Comparator. Pull request: #36. | |
| 7 | +The statement update after #58, #59 and #60: both READMEs' progress table pins `db4872a`, the last commit that | |
| 8 | +changed a Lean file, with the measures at `db4872a` beside the first commit `d63b3b1`, the `build` time its job | |
| 9 | +(6914, 8 min 42 s) and the merged list gaining the three pull requests. Pull request: opened 2026-12-06. | |
| 10 | 10 | |
| 11 | -- 2026-12-02: #32, #37, #39, #40 merged; the table and the build sentence pin `520a333` (job 1359, | |
| 12 | - 7 min 50 s), with the same measures at `c98220b` (job 836, 26 s); the merged list names four. | |
| 13 | -- 2026-12-02: #42, #43 merged (`docs/` only); the table pins `3514dfa`, the same measures; six pull requests. | |
| 14 | -- 2026-12-03: #46, #49 merged (`INDEX.md`, `GUIDE.md`); the table pins `511e93b`, the same measures; eight. | |
| 15 | -- 2026-12-03: #47 merged (`routes/` only); the head merges `f08753c`; the table pins `f08753c`, which reads as | |
| 16 | - `520a333` does (the last commit that changed a Lean file); nine pull requests. | |
| 17 | -- 2026-12-04: the head merges `54ed15e` (the site's `KNOWN.md` and `AGENTS.md` commits, no Lean file). The | |
| 18 | - `KNOWN.md` conflict is gone and the branch no longer edits `KNOWN.md`: the site writes it, and a line added | |
| 19 | - here conflicts with every one of its commits. The replay line the earlier heads carried for #35 stays in the | |
| 20 | - log (#45) and in #35's ruling, not in the page. | |
| 21 | - | |
| 22 | -## Next | |
| 23 | - | |
| 24 | -Close #34 when the pull request is merged; the next update starts again from `main`'s tip. | |
| 25 | -- 2026-12-04: #51 merged (`GUIDE.md`'s Reduction row, one line, and its route note). The branch starts | |
| 26 | - again from main `7b71fdf`: both READMEs gain #51 in the merged list and say the figures read the same | |
| 27 | - at `7b71fdf`; the table keeps its pin `520a333`, the last commit that changed Lean. | |
| 11 | +- 2026-12-06: #58 (the unused `PolishSpace G` omitted, one line), #59 (level lemma extracted, +45/−17) and #60 | |
| 12 | + (six docstrings, +18/−4) merged; at `db4872a` lines 484,884 (+59), longest file 1,539 (+28), declarations | |
| 13 | + 24,011 (+3), docstrings 24,584 (+17). No Lean file changes here. | |