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

Merge pull request #36 from maintainer-statement
Browse filesdocs(statement): progress table, build time, replay wording
+51 −5 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-02) | |
| 14 | +## Where it stands (as of 2026-12-04) | |
| 15 | 15 | |
| 16 | 16 | | Step | State | Who, when, where it is written | |
| 17 | 17 | |---|---|---| |
| @@ -37,6 +37,50 @@ What to keep in mind when you read that table: | ||
| 37 | 37 | - **Nothing here is progress on the Riemann hypothesis.** The theorems are fixed and only the proof's text and what |
| 38 | 38 | is written about it change. Whether the proof is accepted is for its readers, its referees and Clay. |
| 39 | 39 | |
| 40 | +### Progress | |
| 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`. `build` is read from jobs on `main` at `520a333` and `c98220b`: | |
| 46 | + | |
| 47 | +| Measure | First commit `d63b3b1` | `main` `f08753c` | Change | | |
| 48 | +|---|---:|---:|---:| | |
| 49 | +| Lean files (whole tree) | 809 | 809 | 0 | | |
| 50 | +| Lines, comments included | 484,825 | 484,842 | +17 | | |
| 51 | +| 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 | | |
| 55 | +| `sorry` (challenge files included) | 6 | 6 | 0 | | |
| 56 | +| `erw` | 23 | 23 | 0 | | |
| 57 | +| `maxHeartbeats` raised | 0 | 0 | 0 | | |
| 58 | +| `attribute [-instance]` | 0 | 0 | 0 | | |
| 59 | +| `run_tac` | 0 | 0 | 0 | | |
| 60 | +| `set_option backward.*` | 1 | 1 | 0 | | |
| 61 | +| Linters switched off | 0 | 0 | 0 | | |
| 62 | + | |
| 63 | +Re-run it with `python3 /work/tools/measure.py . origin/main d63b3b1` from a clone; the script is the maintainer's | |
| 64 | +and is not in this tree. | |
| 65 | + | |
| 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)). | |
| 70 | + | |
| 71 | +Merged since the first commit: [#32](https://shoal.club/shoal/riemann-hypothesis/pull/32), eight docstrings in | |
| 72 | +`ChosenPlaces.lean` (+17 lines, comments only; 2026-12-02); [#37](https://shoal.club/shoal/riemann-hypothesis/pull/37), | |
| 73 | +the Chinese reading path (`docs/zh/`); [#40](https://shoal.club/shoal/riemann-hypothesis/pull/40), the T-6 chapter | |
| 74 | +`docs/exposition/zeros.md`; [#39](https://shoal.club/shoal/riemann-hypothesis/pull/39), two `placeClass` lemmas in | |
| 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`); [#46](https://shoal.club/shoal/riemann-hypothesis/pull/46), INDEX.md's row 58 | |
| 79 | +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 | +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 | +the glossary rows 1–20 checked against the declarations they name (`routes/p6-glossary-rows-1-20/`) — #32–#43 | |
| 82 | +on 2026-12-02, #46, #49 and #47 on 2026-12-03. | |
| 83 | + | |
| 40 | 84 | ## Where this comes from |
| 41 | 85 | |
| 42 | 86 | This project starts from [leanprover-community/riemann-hypothesis](https://github.com/leanprover-community/riemann-hypothesis) |
| @@ -154,16 +198,18 @@ whether it restores in this project's tree, and still as a baseline once `main` | ||
| 154 | 198 | It saves the build, and it proves nothing: upstream's own note says the cached files "were built from an unverified |
| 155 | 199 | third-party proof, and the cache does not verify anything". A build from source is hours: the edition's authors give |
| 156 | 200 | one to two hours on 12 cores with 24 GB of memory, and upstream's runners spend about four CPU-hours on a full rebuild |
| 157 | -(read from its CI on 2026-12-01). The `build` check's own time on this project is not measured yet (2026-12-02: its | |
| 158 | -image is still being made). Mathlib and Tau Ceti move together: Tau Ceti's cached files work only against the Mathlib | |
| 201 | +(read from its CI on 2026-12-01). The `build` check's own time on `main` is 7 min 50 s at `520a333` (job 1359, | |
| 202 | +2026-12-02; #39 changed two Lean files) and 26 s at `c98220b` (job 836), where nothing Lean had changed: the image | |
| 203 | +holds a build of the approved main, so only what a commit changes is rebuilt. Mathlib and Tau Ceti move together: Tau Ceti's cached files work only against the Mathlib | |
| 159 | 204 | commit in `lakefile.toml`. |
| 160 | 205 | |
| 161 | 206 | Comparator ships with the toolchain (Lean v4.35.0 and later): with `bwrap` and the toolchain's `nanoda_bin` on |
| 162 | -`PATH`, `lake comparator --config comparator.json` from the repository's root. The `build` check runs the same. | |
| 207 | +`PATH`, `lake comparator --config comparator.json` from the repository's root. The `replay` check runs this once | |
| 208 | +`challenge` and `build` have passed on a head. | |
| 163 | 209 | |
| 164 | 210 | ## Layout |
| 165 | 211 | |
| 166 | -806 Lean files under `src/`, 484,789 lines with comments, about 300,000 of them code. | |
| 212 | +806 Lean files under `src/`, 484,806 lines with comments, about 300,000 of them code. | |
| 167 | 213 | |
| 168 | 214 | - `src/Lib` (501 files in 16 folders): background results, known in the literature, that Mathlib lacks. It imports |
| 169 | 215 | nothing from `src/New`. |
+32 −5 README.zh.md View file
| @@ -8,7 +8,7 @@ problems”下,2026-12-02 读)。 | ||
| 8 | 8 | |
| 9 | 9 | 本项目把这份证明改得更小、编译更快、更好读,并把它说了什么写下来。 |
| 10 | 10 | |
| 11 | -## 现状(截至 2026-12-02) | |
| 11 | +## 现状(截至 2026-12-04) | |
| 12 | 12 | |
| 13 | 13 | | 步骤 | 状态 | 谁、何时、写在哪 | |
| 14 | 14 | |---|---|---| |
| @@ -31,6 +31,34 @@ problems”下,2026-12-02 读)。 | ||
| 31 | 31 | - **这里做的事都不是黎曼猜想本身的进展。** 定理固定不动,变的只是证明的写法和关于它的文字。证明是否被接受,由读它的人、 |
| 32 | 32 | 审稿人和克雷来说。 |
| 33 | 33 | |
| 34 | +### 进度 | |
| 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` 上也一样。`build` 的时间读自 `main` 上 `520a333` 与 `c98220b` 的作业: | |
| 39 | + | |
| 40 | +| 量 | 第一个提交 `d63b3b1` | `main` `f08753c` | 变化 | | |
| 41 | +|---|---:|---:|---:| | |
| 42 | +| Lean 文件(整棵树) | 809 | 809 | 0 | | |
| 43 | +| 行数(含注释) | 484,825 | 484,842 | +17 | | |
| 44 | +| 超过 1,000 行的文件 | 90 | 90 | 0 | | |
| 45 | +| 最长文件(行) | 1,511 | 1,511 | 0 | | |
| 46 | +| 声明 | 24,008 | 24,008 | 0 | | |
| 47 | +| 文档字符串 | 24,567 | 24,575 | +8 | | |
| 48 | +| `sorry`(含 challenge 文件) | 6 | 6 | 0 | | |
| 49 | +| `erw` | 23 | 23 | 0 | | |
| 50 | +| 调高 `maxHeartbeats` | 0 | 0 | 0 | | |
| 51 | +| `attribute [-instance]` | 0 | 0 | 0 | | |
| 52 | +| `run_tac` | 0 | 0 | 0 | | |
| 53 | +| `set_option backward.*` | 1 | 1 | 0 | | |
| 54 | +| 关掉的 linter | 0 | 0 | 0 | | |
| 55 | + | |
| 56 | +重跑:在克隆里运行 `python3 /work/tools/measure.py . origin/main d63b3b1`(脚本在维护者那里,不在本代码树里)。 | |
| 57 | + | |
| 58 | +`main` 的 `520a333` 上 `build` 用时 7 分 50 秒(作业 1359,2026-12-02):#39 改动了两个 Lean 文件。在 `c98220b` 上(镜像的编译之后没有 Lean 文件改动)用时 26 秒(作业 836):镜像里已有批准版 main 的编译结果,不改 Lean 的提交几秒就验完。最新的 `f08753c` 不改任何 `build` 检查的文件,它的 `build` 结论沿用 `520a333` 的。从源码编译要几小时(见“自己编译”)。 | |
| 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/`)——#32–#43 于 2026-12-02,#46、#49 与 #47 于 2026-12-03。 | |
| 61 | + | |
| 34 | 62 | ## 从哪来 |
| 35 | 63 | |
| 36 | 64 | 本项目从 [leanprover-community/riemann-hypothesis](https://github.com/leanprover-community/riemann-hypothesis) 的 |
| @@ -135,15 +163,14 @@ lake env lean scripts/PrintAxioms.lean # 五条定理用到的公理 | ||
| 135 | 163 | 提交的编译输入对应的记录(2026-12-02 查);它在本项目的代码树里能不能恢复,本项目的 `main` 往前走之后还能不能作为基线 |
| 136 | 164 | 恢复,都还没有试过。缓存省掉编译,但不证明任何事:上游自己的说明写着,缓存里的文件“were built from an unverified |
| 137 | 165 | third-party proof, and the cache does not verify anything”。从源码编译要几个小时:这一版的作者给的数字是 12 核、24 GB |
| 138 | -内存一到两小时,上游的运行器完整重编约四个 CPU 小时(2026-12-01 从它的 CI 读出)。`build` 检验在本项目上要多久,还没有测 | |
| 139 | -(2026-12-02:它的镜像还在做)。Mathlib 和 Tau Ceti 要一起动:Tau Ceti 的缓存只对 `lakefile.toml` 里那个 Mathlib 提交有效。 | |
| 166 | +内存一到两小时,上游的运行器完整重编约四个 CPU 小时(2026-12-01 从它的 CI 读出)。`build` 检验在 `main` 上用时 7 分 50 秒(`520a333`,作业 1359,2026-12-02;#39 改动了两个 Lean 文件)与 26 秒(`c98220b`,作业 836;此前没有 Lean 文件改动):镜像里已有批准版 main 的编译结果,只重编一个提交改动的部分。Mathlib 和 Tau Ceti 要一起动:Tau Ceti 的缓存只对 `lakefile.toml` 里那个 Mathlib 提交有效。 | |
| 140 | 167 | |
| 141 | 168 | Comparator 随工具链提供(Lean v4.35.0 起):`PATH` 上有 `bwrap` 和工具链自带的 `nanoda_bin` 时,在仓库根目录运行 |
| 142 | -`lake comparator --config comparator.json`。`build` 检验跑的是同一条。 | |
| 169 | +`lake comparator --config comparator.json`。`replay` 检验在 `challenge` 和 `build` 通过之后跑同一条。 | |
| 143 | 170 | |
| 144 | 171 | ## 目录 |
| 145 | 172 | |
| 146 | -`src/` 下 806 个 Lean 文件,连注释 484,789 行,其中代码约 30 万行。 | |
| 173 | +`src/` 下 806 个 Lean 文件,连注释 484,806 行,其中代码约 30 万行。 | |
| 147 | 174 | |
| 148 | 175 | - `src/Lib`(16 个文件夹,501 个文件):文献里已有、Mathlib 还没有的背景结果。它不引入 `src/New` 的任何东西。 |
| 149 | 176 | - `src/New`(8 个文件夹,303 个文件):论证的铺垫和各步,文件夹的顺序就是论证的顺序。主不等式在 |
+24 −0 routes/maintainer-statement/README.md added View file
| @@ -0,0 +1,24 @@ | ||
| 1 | +--- | |
| 2 | +issue: 34 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# maintainer-statement | |
| 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. | |
| 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. | |