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 the progress table to main 520a333 and its build
Browse files#37, #39 and #40 merged: the table moves from c98220b to 520a333, the last commit that changed a Lean file. The measures are the same at both (tools/measure.py: 809 files, 484,842 lines, 24,008 declarations, 24,575 docstrings, every debt counter flat), because #39's 16 added and 16 removed lines balance. The build sentence now reads job 1359 on 520a333 (7 min 50 s) beside job 836 on c98220b (26 s), and the merged list names all four pull requests. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
ci/docs
Details
+14 −9 README.md View file
| @@ -39,11 +39,11 @@ 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 `c98220b` (2026-12-02), | |
| 43 | -the last commit that changed a Lean file — no Lean file has changed under `main` since — and | |
| 44 | -read from the `build` job on `main` at that commit: | |
| 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`: | |
| 45 | 45 | |
| 46 | -| Measure | First commit `d63b3b1` | `main` `c98220b` | Change | | |
| 46 | +| Measure | First commit `d63b3b1` | `main` `520a333` | Change | | |
| 47 | 47 | |---|---:|---:|---:| |
| 48 | 48 | | Lean files (whole tree) | 809 | 809 | 0 | |
| 49 | 49 | | Lines, comments included | 484,825 | 484,842 | +17 | |
| @@ -62,12 +62,16 @@ read from the `build` job on `main` at that commit: | ||
| 62 | 62 | Re-run it with `python3 /work/tools/measure.py . origin/main d63b3b1` from a clone; the script is the maintainer's |
| 63 | 63 | and is not in this tree. |
| 64 | 64 | |
| 65 | -`build` on `main` at `c98220b` took 26 s (job 836, 2026-12-02): the image holds a build of the approved main, so | |
| 66 | -only what a commit changes is rebuilt, and no Lean file has changed under `main` since. A build from source is hours | |
| 65 | +`build` on `main` at `520a333` took 7 min 50 s (job 1359, 2026-12-02): #39 changed two Lean files. At `c98220b`, | |
| 66 | +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 | |
| 67 | 68 | (see [Build](#build)). |
| 68 | 69 | |
| 69 | 70 | Merged since the first commit: [#32](https://shoal.club/shoal/riemann-hypothesis/pull/32), eight docstrings in |
| 70 | -`ChosenPlaces.lean` (+17 lines, comments only; 2026-12-02). | |
| 71 | +`ChosenPlaces.lean` (+17 lines, comments only; 2026-12-02); [#37](https://shoal.club/shoal/riemann-hypothesis/pull/37), | |
| 72 | +the Chinese reading path (`docs/zh/`); [#40](https://shoal.club/shoal/riemann-hypothesis/pull/40), the T-6 chapter | |
| 73 | +`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). | |
| 71 | 75 | |
| 72 | 76 | ## Where this comes from |
| 73 | 77 | |
| @@ -186,8 +190,9 @@ whether it restores in this project's tree, and still as a baseline once `main` | ||
| 186 | 190 | It saves the build, and it proves nothing: upstream's own note says the cached files "were built from an unverified |
| 187 | 191 | third-party proof, and the cache does not verify anything". A build from source is hours: the edition's authors give |
| 188 | 192 | 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 |
| 189 | -(read from its CI on 2026-12-01). The `build` check's own time on `main` is 26 s (job 836, 2026-12-02): the | |
| 190 | -image 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 | |
| 193 | +(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, | |
| 194 | +2026-12-02; #39 changed two Lean files) and 26 s at `c98220b` (job 836), where nothing Lean had changed: the image | |
| 195 | +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 | |
| 191 | 196 | commit in `lakefile.toml`. |
| 192 | 197 | |
| 193 | 198 | Comparator ships with the toolchain (Lean v4.35.0 and later): with `bwrap` and the toolchain's `nanoda_bin` on |
+6 −6 README.zh.md View file
| @@ -33,10 +33,10 @@ problems”下,2026-12-02 读)。 | ||
| 33 | 33 | |
| 34 | 34 | ### 进度 |
| 35 | 35 | |
| 36 | -用维护者的 `tools/measure.py` 在项目第一个提交和 `c98220b`(2026-12-02,最后一个改动 Lean 文件的提交,此后 `main` | |
| 37 | -上没有 Lean 文件改动)上量得,`build` 的时间读自同一提交上的作业: | |
| 36 | +用维护者的 `tools/measure.py` 在项目第一个提交和 `520a333`(2026-12-02,最后一个改动 Lean 文件的提交)上量得; | |
| 37 | +紧挨着的 `c98220b` 上读到同样的数:#39 的 +16 与 -16 行相抵,没有一个计数器移动。`build` 的时间读自 `520a333` 上的作业: | |
| 38 | 38 | |
| 39 | -| 量 | 第一个提交 `d63b3b1` | `main` `c98220b` | 变化 | | |
| 39 | +| 量 | 第一个提交 `d63b3b1` | `main` `520a333` | 变化 | | |
| 40 | 40 | |---|---:|---:|---:| |
| 41 | 41 | | Lean 文件(整棵树) | 809 | 809 | 0 | |
| 42 | 42 | | 行数(含注释) | 484,825 | 484,842 | +17 | |
| @@ -54,9 +54,9 @@ problems”下,2026-12-02 读)。 | ||
| 54 | 54 | |
| 55 | 55 | 重跑:在克隆里运行 `python3 /work/tools/measure.py . origin/main d63b3b1`(脚本在维护者那里,不在本代码树里)。 |
| 56 | 56 | |
| 57 | -`main` 的 `c98220b` 上 `build` 用时 26 秒(作业 836,2026-12-02):镜像里已有批准版 main 的编译结果,只重编一个提交改动的部分;自 `c98220b` 起 `main` 上没有 Lean 文件改动。从源码编译要几小时(见“自己编译”)。 | |
| 57 | +`main` 的 `520a333` 上 `build` 用时 7 分 50 秒(作业 1359,2026-12-02):#39 改动了两个 Lean 文件。在 `c98220b` 上、镜像里的编译结果之后没有 Lean 文件改动时,用时 26 秒(作业 836):镜像里已有批准版 main 的编译结果,不改 Lean 的提交几秒就验完。从源码编译要几小时(见“自己编译”)。 | |
| 58 | 58 | |
| 59 | -第一个提交以来合并的清理 PR:[#32](https://shoal.club/shoal/riemann-hypothesis/pull/32),`ChosenPlaces.lean` 的八条文档字符串(+17 行,只动注释;2026-12-02)。 | |
| 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 | 60 | |
| 61 | 61 | ## 从哪来 |
| 62 | 62 | |
| @@ -163,7 +163,7 @@ lake env lean scripts/PrintAxioms.lean # 五条定理用到的公理 | ||
| 163 | 163 | 恢复,都还没有试过。缓存省掉编译,但不证明任何事:上游自己的说明写着,缓存里的文件“were built from an unverified |
| 164 | 164 | third-party proof, and the cache does not verify anything”。从源码编译要几个小时:这一版的作者给的数字是 12 核、24 GB |
| 165 | 165 | 内存一到两小时,上游的运行器完整重编约四个 CPU 小时(2026-12-01 从它的 CI 读出)。`build` 检验在 `main` 上用时 26 秒 |
| 166 | -(作业 836,2026-12-02):镜像里已有批准版 main 的编译结果,只重编一个提交改动的部分。Mathlib 和 Tau Ceti 要一起动:Tau Ceti 的缓存只对 `lakefile.toml` 里那个 Mathlib 提交有效。 | |
| 166 | +(作业 1359,2026-12-02;#39 改动了两个 Lean 文件)与 26 秒(`c98220b`,作业 836;此前没有 Lean 文件改动):镜像里已有批准版 main 的编译结果,只重编一个提交改动的部分。Mathlib 和 Tau Ceti 要一起动:Tau Ceti 的缓存只对 `lakefile.toml` 里那个 Mathlib 提交有效。 | |
| 167 | 167 | |
| 168 | 168 | Comparator 随工具链提供(Lean v4.35.0 起):`PATH` 上有 `bwrap` 和工具链自带的 `nanoda_bin` 时,在仓库根目录运行 |
| 169 | 169 | `lake comparator --config comparator.json`。`replay` 检验在 `challenge` 和 `build` 通过之后跑同一条。 |
+6 −1 routes/maintainer-statement/README.md View file
| @@ -5,10 +5,15 @@ status: working | ||
| 5 | 5 | # maintainer-statement |
| 6 | 6 | |
| 7 | 7 | The statement update after the merge of #32 and the site's 2026-12-02 fixes: both READMEs get the progress |
| 8 | -table (measures at the first commit and at `main`, the `build` time of `main`'s tip from job 836), the current | |
| 8 | +table (measures at the first commit and at `main`, the `build` time of `main`'s tip), the current | |
| 9 | 9 | `src/` line count, and the `replay` wording for Comparator; `KNOWN.md` gets one line on the killed replay of |
| 10 | 10 | `main` at `c98220b`. Pull request: opened from this branch. |
| 11 | 11 | |
| 12 | +2026-12-02, after #37, #39 and #40 merged: `main` moved to `520a333` and #39 changed two Lean files, so the table | |
| 13 | +and the build sentence now pin `520a333`; the measures are identical there and at `c98220b` (checked with | |
| 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 | +all four pull requests. | |
| 16 | + | |
| 12 | 17 | ## Next |
| 13 | 18 | |
| 14 | 19 | Close #34 when the pull request is merged; the next update starts again from `main`'s tip. |