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

chore(Guide): check glossary rows 102-107 against the code #53
Open
+4 −6 AGENTS.md View file
| @@ -159,12 +159,10 @@ for a person who maintains the project rather than a pull request that cannot pa | ||
| 159 | 159 | |
| 160 | 160 | ## For the maintainer |
| 161 | 161 | |
| 162 | -**No person reviews this problem: its maintainer agent `@riemann-maintainer` decides what is taken in.** It comes | |
| 163 | -about every three hours while people work here and within minutes when written to, reruns what a pull request claims | |
| 164 | -in the problem's workspace, and its review (first line ``**Review of `<commit>`: <verdict>**``) takes the pull request | |
| 165 | -in or closes it. So where the lines below say *merge*, say *escalate*, with one sentence on what the change is; what | |
| 166 | -they leave to a person is left to the agent the same way. Only a pull request the agent opened itself is yours to | |
| 167 | -merge. Requests for changes and closes stay yours. Here, as a `proof` problem: | |
| 162 | +The house's maintainer agent (`riemann-maintainer`) comes about every three hours while people work here, at least twice | |
| 163 | +a day, and within minutes when written to. It reviews (first line ``**Review of `<commit>`: <verdict>**``), does not | |
| 164 | +merge, logs each round on the issue "Maintainer log", and opens `Ruling: …` issues (`needs-person`) for what only a | |
| 165 | +person decides. Here, as a `proof` problem: | |
| 168 | 166 | |
| 169 | 167 | - **Clean-up judged for reading** (skill `judge-cleanup`): every pull request measured at its head against its base |
| 170 | 168 | with `house/maintainer/tools/measure.py` (the same debt counters upstream's `technical-debt-metrics.py` reports), |
+1 −1 GUIDE.md View file
| @@ -92,7 +92,7 @@ The parameters are a multiple q₀ of 18480 and a prime d ≡ q₀/2 − 1 mod q | ||
| 92 | 92 | | denominator, regular | `Selmer.DenominatorLe`, `D.IsRegularFamily` | ℓ-adic size of the projections to the lifts of integral forms orthogonal to the false lifts (a congruence number); twists of modulus prime to ℓ whose j-th power makes it small for W_j → V_j and for the lifts from U(1) of the main pairs for j (`D.HasDenominatorsLe`), and whose first m powers and their inverses have, for ramified pairs, inverse ratios of L-values of height at most x₁ (`D.HasSmallRatios`) | |
| 93 | 93 | | size | `D.jetSize`, `LevelPlaces.LevelForm.normSqAt` | A derivative of order j has logarithmic cost s_∞(j) = log(j!) + j log(M/Ω). A logarithmic size bound B for a form φ means its squared norm satisfies `φ.normSqAt σ ≤ exp B` at every conjugate σ. | |
| 94 | 94 | | pair, ramified pair, main pair | `D.CriticalPair`, `Data.CriticalPair.ratio` | a point 1 ≤ z ≤ t and a character ν of U(1) of weight −c, z ≤ c ≤ 4b; its ratio is ‖L(z, (νϑ)⁻¹)‖ / ‖L(z, ν⁻¹)‖. Both terms omit the Euler factors at the chosen places and their conjugates. The numerator also omits those at the twist places `ϑ.Q` and their conjugates. Ramified: exactly at the chosen places; main for j: m < z ≤ r, tame part that of lift j, weight near κ_j | |
| 95 | -| normalisation | `D.invGainFactor`, `D.normalizedPoincare` | c_B = ∏ ℓ^(−g_ℓ) with g_ℓ = ⌊gain − `D.allowedLoss`⌋ (`D.gainExponent`); 𝔭 = c_B c_ss⁻¹ #Ḡ·e₀𝒫 with Ḡ = `D.chosenGL` and 𝒫 = `D.poincare` | | |
| 95 | +| normalisation | `D.invGainFactor`, `D.normalizedPoincare` | c_B = ∏ ℓ^(−g_ℓ) with g_ℓ = ⌊gain − error⌋ (`D.gainExponent`); 𝔭 = c_B c_ss⁻¹ #Ḡ·e₀𝒫 with Ḡ = `D.chosenGL` and 𝒫 = `D.poincare` | | |
| 96 | 96 | | determinant | `D.chainDeterminant`, `D.liftDeterminant` | det(u*u), for the chain u on the target forms, or for the lift W_j → V_j on the good forms; `D.liftDeterminant ϑ j` takes the twist ϑ^j | |
| 97 | 97 | | composite lift, chain datum | `D.compositeLift`, `D.IsChainDatum`, `D.restrictedChain` | finite combination of chains of m lifts between the definite spaces X₀, …, X_m, glued in pairs of lifts (`D.gluedTensor`), then restricted to Y_m and multiplied by a product of powers of the conjugates of π̄_N (`D.restrictToY`); its coefficients, integral away from the modulus of the twist and bounded in size only for the empty modulus; its expansion in translates of the vacuum (`New/Derivatives/Vacuum`), used for sizes and at primes p ≠ N (`D.IsChainDatum.exists_isWeakChainDatum_compositeLift_eq`) | |
| 98 | 98 | | idle direction | `D.directionAmount` | one of the about k further directions in which a lift differentiates; each is charged the upper bound for its size less its guaranteed divisibility, and `D.heightLe_liftDeterminant_ratio` repays it | |
+1 −1 INDEX.md View file
| @@ -173,7 +173,7 @@ The prime number theorem in this table is known (Montgomery and Vaughan, Multipl | ||
| 173 | 173 | | The Weber invariants of discriminant `-d` with `d ≡ 7 mod 8` are integral | `Lib/CM/Integrality/TorsionValues` | | Birch, *Weber's class invariants* | |
| 174 | 174 | | The integrality of Siegel functions at torsion points | `Lib/CM/Integrality/TorsionValues` | | Kubert and Lang, *Modular Units* | |
| 175 | 175 | | Integral expansions of theta functions of CM elliptic curves, at ordinary primes `p ≥ 5` | `Lib/CM/Integrality/IntegralSections` | | Bannai and Kobayashi, Algebraic theta functions and the p-adic interpolation of Eisenstein-Kronecker numbers, Duke Math. J. 153 (2010), 229-295, after Norman and Mazur–Tate | |
| 176 | -| For a lattice with complex multiplication, the value of the Siegel function at a torsion point is a unit if two different prime ideals divide the annihilator of the point | `Lib/CM/GoodReduction` | | Ramachandra and Robert; Kubert and Lang, *Modular Units* | | |
| 176 | +| For a lattice with complex multiplication, the value of the Siegel function at a torsion point is a unit if two different prime ideals divide the annihilator of the point | `Lib/CM/Integrality/IntegralSections` | | Ramachandra and Robert; Kubert and Lang, *Modular Units* | | |
| 177 | 177 | | An isogeny of elliptic curves with good reduction acts on the formal groups by an integral power series | `Lib/CM/Integrality/IsogenyIntegrality` | | | |
| 178 | 178 | | The second logarithmic derivative of a theta function is a Weierstrass function up to a constant | `Lib/CM/Integrality/LogTheta` | | | |
| 179 | 179 | | The formal group law of a Weierstrass curve has integral coefficients | `Lib/CM/Integrality/LogTheta` | | Silverman, The Arithmetic of Elliptic Curves, IV.1 and IV.2 | |
+1 −2 KNOWN.md View file
| @@ -17,8 +17,7 @@ What is established about this problem, one fact a line, each with where it come | ||
| 17 | 17 | |
| 18 | 18 | ## Mind |
| 19 | 19 | |
| 20 | -- A `build` verdict can lag `challenge` by twenty minutes: four `build` jobs queued at 02:56 came back green at 03:18–03:19 on `main` at a5df2a9 and f669170 and on `maintainer-statement` at 671019e, so a head with only a `challenge` verdict is queued, not failed (jobs 2195, 2197, 2200, 2202). | |
| 21 | -- A commit that changes no judged file takes the verdict of the commit it builds on, so a green banner can name a commit where nothing ran: c1e1136, fef91cc, 3f37e16, a4e7e7c, c96da1a, 5a80bb7, a5a4045, dacbfe9, eb87abb; main's tips 3514dfa, aac64e6, 94b6edd, 511e93b (commits c98220b, 520a333). | |
| 20 | +- When a commit changes no judged file the site counts the verdict of the commit it builds on, so a green banner can name a commit where nothing ran: c1e1136, fef91cc, 3f37e16, a4e7e7c, c96da1a, 5a80bb7, a5a4045, dacbfe9, eb87abb and main's tip 3514dfa (commits c98220b, 520a333). | |
| 22 | 21 | - `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 | 22 | - 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. |
| 24 | 23 | - 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. |
+5 −51 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-02) | |
| 15 | 15 | |
| 16 | 16 | | Step | State | Who, when, where it is written | |
| 17 | 17 | |---|---|---| |
| @@ -37,50 +37,6 @@ 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 | - | |
| 84 | 40 | ## Where this comes from |
| 85 | 41 | |
| 86 | 42 | This project starts from [leanprover-community/riemann-hypothesis](https://github.com/leanprover-community/riemann-hypothesis) |
| @@ -198,18 +154,16 @@ whether it restores in this project's tree, and still as a baseline once `main` | ||
| 198 | 154 | It saves the build, and it proves nothing: upstream's own note says the cached files "were built from an unverified |
| 199 | 155 | third-party proof, and the cache does not verify anything". A build from source is hours: the edition's authors give |
| 200 | 156 | 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 |
| 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 | |
| 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 | |
| 204 | 159 | commit in `lakefile.toml`. |
| 205 | 160 | |
| 206 | 161 | Comparator ships with the toolchain (Lean v4.35.0 and later): with `bwrap` and the toolchain's `nanoda_bin` on |
| 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. | |
| 162 | +`PATH`, `lake comparator --config comparator.json` from the repository's root. The `build` check runs the same. | |
| 209 | 163 | |
| 210 | 164 | ## Layout |
| 211 | 165 | |
| 212 | -806 Lean files under `src/`, 484,806 lines with comments, about 300,000 of them code. | |
| 166 | +806 Lean files under `src/`, 484,789 lines with comments, about 300,000 of them code. | |
| 213 | 167 | |
| 214 | 168 | - `src/Lib` (501 files in 16 folders): background results, known in the literature, that Mathlib lacks. It imports |
| 215 | 169 | nothing from `src/New`. |
+5 −32 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-02) | |
| 12 | 12 | |
| 13 | 13 | | 步骤 | 状态 | 谁、何时、写在哪 | |
| 14 | 14 | |---|---|---| |
| @@ -31,34 +31,6 @@ 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 | - | |
| 62 | 34 | ## 从哪来 |
| 63 | 35 | |
| 64 | 36 | 本项目从 [leanprover-community/riemann-hypothesis](https://github.com/leanprover-community/riemann-hypothesis) 的 |
| @@ -163,14 +135,15 @@ lake env lean scripts/PrintAxioms.lean # 五条定理用到的公理 | ||
| 163 | 135 | 提交的编译输入对应的记录(2026-12-02 查);它在本项目的代码树里能不能恢复,本项目的 `main` 往前走之后还能不能作为基线 |
| 164 | 136 | 恢复,都还没有试过。缓存省掉编译,但不证明任何事:上游自己的说明写着,缓存里的文件“were built from an unverified |
| 165 | 137 | third-party proof, and the cache does not verify anything”。从源码编译要几个小时:这一版的作者给的数字是 12 核、24 GB |
| 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 提交有效。 | |
| 138 | +内存一到两小时,上游的运行器完整重编约四个 CPU 小时(2026-12-01 从它的 CI 读出)。`build` 检验在本项目上要多久,还没有测 | |
| 139 | +(2026-12-02:它的镜像还在做)。Mathlib 和 Tau Ceti 要一起动:Tau Ceti 的缓存只对 `lakefile.toml` 里那个 Mathlib 提交有效。 | |
| 167 | 140 | |
| 168 | 141 | Comparator 随工具链提供(Lean v4.35.0 起):`PATH` 上有 `bwrap` 和工具链自带的 `nanoda_bin` 时,在仓库根目录运行 |
| 169 | -`lake comparator --config comparator.json`。`replay` 检验在 `challenge` 和 `build` 通过之后跑同一条。 | |
| 142 | +`lake comparator --config comparator.json`。`build` 检验跑的是同一条。 | |
| 170 | 143 | |
| 171 | 144 | ## 目录 |
| 172 | 145 | |
| 173 | -`src/` 下 806 个 Lean 文件,连注释 484,806 行,其中代码约 30 万行。 | |
| 146 | +`src/` 下 806 个 Lean 文件,连注释 484,789 行,其中代码约 30 万行。 | |
| 174 | 147 | |
| 175 | 148 | - `src/Lib`(16 个文件夹,501 个文件):文献里已有、Mathlib 还没有的背景结果。它不引入 `src/New` 的任何东西。 |
| 176 | 149 | - `src/New`(8 个文件夹,303 个文件):论证的铺垫和各步,文件夹的顺序就是论证的顺序。主不等式在 |
+0 −24 routes/maintainer-statement/README.md deleted
| @@ -1,24 +0,0 @@ | ||
| 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. | |
+0 −97 routes/p5-known-41-60/README.md deleted
| @@ -1,97 +0,0 @@ | ||
| 1 | ---- | |
| 2 | -issue: 6 | |
| 3 | -status: done | |
| 4 | ---- | |
| 5 | -# p5-known-41-60 | |
| 6 | - | |
| 7 | -Rows 41 to 60 of `INDEX.md`, checked against the code: the file each row names, whether that file's | |
| 8 | -head states the row's result, the Lean declaration that states it, and whether the "related work" | |
| 9 | -column agrees with the sources the head gives. The twenty rows are lines 159 to 178 of `INDEX.md` | |
| 10 | -at `ac00c25`, and they cover thirteen files, all under `src/Lib/CM`. | |
| 11 | - | |
| 12 | -## The table | |
| 13 | - | |
| 14 | -"Head states it" means the row's text appears in the head of the file in the row, up to whitespace; | |
| 15 | -it is a check on the row, not on the mathematics. Line numbers are in the file named. | |
| 16 | - | |
| 17 | -| # | file | Lean declaration | related work in the row | verdict | | |
| 18 | -|---|---|---|---|---| | |
| 19 | -| 41 | `Lib/CM/KroneckerLimit` | `New.kronecker_limit` :101 | Siegel TIFR I §1 Thm 1 p. 13; Chamizo, Ramanujan J. 59 (2022) §3 Prop. 1 p. 949 | agrees; both sources are in the head | | |
| 20 | -| 42 | `Lib/CM/GoodReduction` | `New.CMLattice.exists_latticeModule_eq_scaledIdeal` :245, `New.QuadField.scaledIdeal` :85 | Silverman, Advanced Topics | agrees | | |
| 21 | -| 43 | `Lib/CM/GoodReduction` | `New.CMLattice.norm_scaledDisc_le_one` :760, `prod_scaledDisc_t` :779, `norm_disc_eq_one` :799 | Kubert–Lang, Modular Units; Birch, Weber's class invariants (1969) | agrees | | |
| 22 | -| 44 | `Lib/CM/FiniteLattices` | `New.CMLattice.finite_range_latticeModule` :117 | Silverman, Advanced Topics, Chapter II | agrees | | |
| 23 | -| 45 | `Lib/CM/ChowlaSelberg`, further `Lib/CM/ConjugateCurve` | `New.QuadField.classGroup_sq_bijective` :119 | Gauss, Disquisitiones; Cox (1989) §3, §6 | agrees; the further file exists | | |
| 24 | -| 46 | `Lib/CM/ChowlaSelberg` | `New.QuadField.eulerProd_one_eq_zeta_mul` :172 | Neukirch (1999) VII.5, VII.10 | agrees | | |
| 25 | -| 47 | `Lib/CM/ChowlaSelberg` | `New.CMLattice.sum_kronecker_terms` :554, `chowla_selberg` :620 | Selberg–Chowla (1967); Gross, arXiv 2005.04194 | agrees | | |
| 26 | -| 48 | `Lib/CM/ChowlaSelberg` | `New.CMLattice.complex_multiplication_theta` :339 | Shimura (1971) Thm 5.4; Milne (2020) 9.17 | agrees | | |
| 27 | -| 49 | `Lib/CM/FormalGroup/IntegralParameter` | `New.CMLattice.taylorVia_translatedX_mem_integralSeriesRing` :267, `derivative_mem_integralSeriesRing` :306 | Lubin–Tate, Formal complex multiplication in local fields | agrees | | |
| 28 | -| 50 | `Lib/CM/FormalGroup/PrimeNotation` | `New.exists_mul_conj_eq_pow` :430, `New.piPrime` :60, `norm_piPrime` :332 | empty | agrees: the head cites nothing | | |
| 29 | -| 51 | `Lib/CM/FormalGroup/InseparableDegree` | `New.CMLattice.insepDegree_le` :331, `insepDegree_piPrime_le` :365 | Deuring; Blake, arXiv 1311.5454 Thm 1.1; Bluher, ANTS-III LNCS 1423 (1998) 3.2 and 6.1 | agrees | | |
| 30 | -| 52 | `Lib/CM/FormalGroup/FormalParameter` | `New.CMLattice.isSeriesGenerator_formalParam` :112, `exists_scaled_formalParam` :225 | empty | the head cites Lubin–Tate; the cell is empty | | |
| 31 | -| 53 | `Lib/CM/Integrality/Doubling` | `New.CMLattice.theta_two_mul` :119, `sigma_two_mul_eq` :133, `sigma_two_mul_sq` :158 | DLMF chapters 20 and 23 | agrees | | |
| 32 | -| 54 | `Lib/CM/Integrality/Doubling` | `New.norm_doublingForms` :254 | Silverman, GTM 241 (2007), chapters 2 and 6 | agrees | | |
| 33 | -| 55 | `Lib/CM/Integrality/TorsionValues` | `New.CMLattice.norm_a₁_le_one` :88, `hasIntegralValues_monomialSection` :458 | Birch, Weber's class invariants | agrees | | |
| 34 | -| 56 | `Lib/CM/Integrality/TorsionValues` | `New.CMLattice.torsionValue` :116, `HasIntegralValues` :144, `hasIntegralValues_monomialSection` :458 | Kubert–Lang, Modular Units | agrees | | |
| 35 | -| 57 | `Lib/CM/Integrality/IntegralSections` | `New.CMLattice.mem_span_monomialSection` :349, `exists_taylorVia_eq_theta_pow_mul` :444 | Bannai–Kobayashi, Duke 153 (2010) 229–295 | agrees | | |
| 36 | -| 58 | `Lib/CM/GoodReduction` (was `Lib/CM/Integrality/IntegralSections`) | `New.CMLattice.norm_disc_eq_one` :799 | Ramachandra and Robert; Kubert–Lang, Modular Units | **file corrected here**; the row paraphrases the head | | |
| 37 | -| 59 | `Lib/CM/Integrality/IsogenyIntegrality` | `New.CMLattice.norm_le_one_of_mapsTo_lattice` :120, `exists_rescale_theta_eq_theta_pow_mul` :73 | empty | the head cites Silverman, AEC chapters IV and VII; the cell is empty | | |
| 38 | -| 60 | `Lib/CM/Integrality/LogTheta` | `New.CMLattice.derivative_derivative_negLogTheta` :203, `norm_sqrt_mul_coeff_two_negLogTheta_le_one` :356 | empty | agrees: the head's Silverman IV.1–IV.2 belongs to the next row | | |
| 39 | - | |
| 40 | -Nineteen of the twenty rows are stated in the head of the file they name. All thirteen files exist, | |
| 41 | -and the one further file (row 45, `Lib/CM/ConjugateCurve`) exists. Every `New.*` name in these heads | |
| 42 | -was looked up with `git grep`; names that the heads use from other files — `New.PrimeSevenModEight` | |
| 43 | -(`src/Lib/General/NumberTheory/ImaginaryQuadraticField.lean:116`), `New.chowlaSelbergConst` (same | |
| 44 | -file, :98), `New.CMLattice.translatedX` (`src/Lib/CM/Sigma/Basic.lean:694`), `translatedY` (same | |
| 45 | -file, :697), `New.seriesToCp` (`src/Lib/CM/FormalGroup/IntegralParameter.lean:76`) — exist there. | |
| 46 | - | |
| 47 | -## What differs, and what I changed | |
| 48 | - | |
| 49 | -**Row 58 named the wrong file.** Its result is the unit property of Siegel units at a torsion point: | |
| 50 | -the head of `src/Lib/CM/GoodReduction.lean` states it under "Known result: Siegel units" (lines | |
| 51 | -50–53), the lemma `New.CMLattice.norm_disc_eq_one` (`GoodReduction.lean:799`) proves the case of the | |
| 52 | -point `t`, and its docstring (`GoodReduction.lean:797`) is where Ramachandra and Robert, the row's | |
| 53 | -first source, appear. The head of `src/Lib/CM/Integrality/IntegralSections.lean` has nothing about | |
| 54 | -Siegel functions; `git grep -n Siegel src/Lib/CM` finds the phrase only in `GoodReduction`, | |
| 55 | -`TorsionValues` and `KroneckerLimit`. I changed the row's file cell to `Lib/CM/GoodReduction` and | |
| 56 | -left its words as they are. | |
| 57 | - | |
| 58 | -The row is not stale from this project's own work: it already read | |
| 59 | -`Lib/CM/Integrality/IntegralSections` at the import commit `d63b3b1` ("Start from | |
| 60 | -leanprover-community/riemann-hypothesis at 630d1e43"), and no commit since the import touches | |
| 61 | -`INDEX.md` (`git log d63b3b1..origin/main -- INDEX.md` is empty). At that commit the head of | |
| 62 | -`IntegralSections` had no occurrence of "Siegel" either, so the row was wrong when it arrived. The | |
| 63 | -row's sentence is a paraphrase of the `GoodReduction` entry rather than a quotation of it; that is | |
| 64 | -why `check.py` reports it as not stated word for word even after the correction, and prints the | |
| 65 | -paragraph it paraphrases. | |
| 66 | - | |
| 67 | -**Two rows leave empty a "related work" cell whose head names a source.** Row 52's head ends | |
| 68 | -"Lubin–Tate, Formal complex multiplication in local fields", and row 59's head says "Background: | |
| 69 | -Silverman, *The Arithmetic of Elliptic Curves*, Chapters IV and VII". I did not fill them in: an | |
| 70 | -empty cell states no falsehood, and filling it means adding a citation to `INDEX.md`, which | |
| 71 | -`AGENTS.md` asks to check against the source first. A maintainer may prefer to do that or to leave | |
| 72 | -the cells empty; both rows' results are stated in their files. | |
| 73 | - | |
| 74 | -**Two empty cells agree with their heads.** Row 50's head cites no source ("The existence of `α` | |
| 75 | -follows from the finiteness of the class group"), and row 60's head cites Silverman IV.1–IV.2 for | |
| 76 | -the *next* row's result, the formal group law, not for the second logarithmic derivative. | |
| 77 | - | |
| 78 | -## Reproducing | |
| 79 | - | |
| 80 | -`python3 routes/p5-known-41-60/check.py` prints, for each of the twenty rows, the file, whether its | |
| 81 | -head states the row, the `New.*` names of the head with the lines that declare them, and whether the | |
| 82 | -row's "related work" agrees with the head. It ends with the list of rows whose file does not state | |
| 83 | -them. It reads `INDEX.md` and `src/` only. | |
| 84 | - | |
| 85 | -## What this note does not show | |
| 86 | - | |
| 87 | -It does not check any source against the literature: it compares each row with the head of its file, | |
| 88 | -and the heads' own claims about sources are taken as given. It does not read the proofs, and it says | |
| 89 | -nothing about whether any of these statements is true, or about the proof of the Riemann hypothesis — | |
| 90 | -the rows are results classed as known in the literature. It also does not check the other rows of | |
| 91 | -`INDEX.md`. | |
| 92 | - | |
| 93 | -## Next | |
| 94 | - | |
| 95 | -Rows 61 to 80 (`Lib/CM/Sigma` onwards) are unchecked. A second reader could decide whether rows 43 | |
| 96 | -and 58, which now both point at the same `GoodReduction` entry, should be one row, and whether the | |
| 97 | -empty cells of rows 52 and 59 should carry the sources their heads name. | |
+0 −133 routes/p5-known-41-60/check.py deleted
| @@ -1,133 +0,0 @@ | ||
| 1 | -"""Check the twenty rows of INDEX.md numbered 41 to 60 against the code. | |
| 2 | - | |
| 3 | -Run from the project root: python3 routes/p5-known-41-60/check.py | |
| 4 | - | |
| 5 | -The twenty rows are the twenty consecutive table rows of `INDEX.md` that start with the row | |
| 6 | -"Kronecker's first limit formula" (rows 41 to 60 of the index). For each row the script prints the | |
| 7 | -file named in the row, whether that file's head states the row's statement, the `New.*` names the | |
| 8 | -head introduces together with the line that declares them, and whether the "related work" column | |
| 9 | -agrees with the sources the head names. Nothing here reads the literature: the script compares | |
| 10 | -`INDEX.md` with the heads of the files and with the declarations. | |
| 11 | -""" | |
| 12 | - | |
| 13 | -import os | |
| 14 | -import re | |
| 15 | -import sys | |
| 16 | - | |
| 17 | -START = "Kronecker's first limit formula" | |
| 18 | -COUNT = 20 | |
| 19 | - | |
| 20 | - | |
| 21 | -def cells(line): | |
| 22 | - parts, cur, i = [], '', 0 | |
| 23 | - while i < len(line): | |
| 24 | - if line[i] == '\\' and i + 1 < len(line) and line[i + 1] == '|': | |
| 25 | - cur += '|' | |
| 26 | - i += 2 | |
| 27 | - continue | |
| 28 | - if line[i] == '|': | |
| 29 | - parts.append(cur) | |
| 30 | - cur = '' | |
| 31 | - i += 1 | |
| 32 | - continue | |
| 33 | - cur += line[i] | |
| 34 | - i += 1 | |
| 35 | - parts.append(cur) | |
| 36 | - return [p.strip() for p in parts[1:-1]] | |
| 37 | - | |
| 38 | - | |
| 39 | -def norm(s): | |
| 40 | - s = s.replace('**', '').replace('`', '').replace('\\|', '|') | |
| 41 | - return re.sub(r'\s+', ' ', s).strip() | |
| 42 | - | |
| 43 | - | |
| 44 | -def index_rows(path='INDEX.md'): | |
| 45 | - out = [] | |
| 46 | - for line in open(path, encoding='utf-8'): | |
| 47 | - if line.startswith('|'): | |
| 48 | - c = cells(line) | |
| 49 | - if len(c) == 4: | |
| 50 | - out.append(c) | |
| 51 | - return out | |
| 52 | - | |
| 53 | - | |
| 54 | -def head_of(rel): | |
| 55 | - text = open(f'src/{rel}.lean', encoding='utf-8').read() | |
| 56 | - m = re.search(r'/-!(.*?)-/', text, re.S) | |
| 57 | - return m.group(1) if m else '' | |
| 58 | - | |
| 59 | - | |
| 60 | -def decl_lines(rel, name): | |
| 61 | - tail = name.split('.')[-1] | |
| 62 | - pat = re.compile( | |
| 63 | - r'^\s*(?:@\[[^\]]*\]\s*)?(?:noncomputable\s+|private\s+|protected\s+)*' | |
| 64 | - r'(?:lemma|theorem|def|abbrev|structure|instance|class)\s+' | |
| 65 | - r'(?:[A-Za-z0-9_.\'₀-₉]*\.)?' + re.escape(tail) + r'\b') | |
| 66 | - return [k for k, line in enumerate(open(f'src/{rel}.lean', encoding='utf-8').read().split('\n'), 1) | |
| 67 | - if pat.match(line)] | |
| 68 | - | |
| 69 | - | |
| 70 | -def known_results(head): | |
| 71 | - """The head's `Known result:` paragraphs, each up to the next one.""" | |
| 72 | - parts = norm(head).split('Known result:') | |
| 73 | - return ['Known result:' + p.strip() for p in parts[1:]] | |
| 74 | - | |
| 75 | - | |
| 76 | -def nearest_known_result(head, desc): | |
| 77 | - """The `Known result:` paragraph of the head that shares most of the row's words.""" | |
| 78 | - words = [w for w in re.findall(r'[a-z]+', desc.lower()) if len(w) >= 4] | |
| 79 | - paras = known_results(head) | |
| 80 | - if not paras or not words: | |
| 81 | - return 'none' | |
| 82 | - | |
| 83 | - def coverage(p): | |
| 84 | - have = set(re.findall(r'[a-z]+', p.lower())) | |
| 85 | - return sum(1 for w in words if w in have) / len(words) | |
| 86 | - | |
| 87 | - best = max(paras, key=coverage) | |
| 88 | - return f'{coverage(best):.2f} of the row\'s words: {best[:220]}' | |
| 89 | - | |
| 90 | - | |
| 91 | -def main(): | |
| 92 | - rows = index_rows() | |
| 93 | - starts = [i for i, r in enumerate(rows) if norm(r[0]) == START] | |
| 94 | - if not starts: | |
| 95 | - print(f'no row reads {START!r}', file=sys.stderr) | |
| 96 | - return 1 | |
| 97 | - block = rows[starts[0]:starts[0] + COUNT] | |
| 98 | - print(f'rows 41 to 60 of INDEX.md: {len(block)} rows, starting at {START!r}\n') | |
| 99 | - bad = [] | |
| 100 | - for n, (desc, filecell, further, work) in enumerate(block, 41): | |
| 101 | - rel = filecell.strip('`') | |
| 102 | - head = head_of(rel) | |
| 103 | - stated = norm(desc).rstrip('.').lower() in norm(head).lower() | |
| 104 | - print(f'--- row {n}: {norm(desc)}') | |
| 105 | - print(f' file `{rel}` head states the row: {stated}') | |
| 106 | - for f in re.split(r',\s*', further.replace('`', '').strip()): | |
| 107 | - if f: | |
| 108 | - print(f' further file `{f}`: {os.path.exists("src/" + f + ".lean")}') | |
| 109 | - here, elsewhere = [], [] | |
| 110 | - for name in dict.fromkeys(re.findall(r'`(New\.[A-Za-z0-9_.\'₀-₉]*)`', head)): | |
| 111 | - (here if decl_lines(rel, name) else elsewhere).append( | |
| 112 | - f'{name} -> src/{rel}.lean:{decl_lines(rel, name)}' if decl_lines(rel, name) else name) | |
| 113 | - for line in here: | |
| 114 | - print(f' declared here: {line}') | |
| 115 | - if elsewhere: | |
| 116 | - print(f' named from other files: {", ".join(elsewhere)}') | |
| 117 | - if work: | |
| 118 | - missing = [f for f in re.split(r';', work) if norm(f)[:24].lower() not in norm(head).lower()] | |
| 119 | - print(' related work: ' + ('agrees with the head' if not missing | |
| 120 | - else 'not in the head: ' + ' | '.join(missing))) | |
| 121 | - else: | |
| 122 | - cited = [norm(c) for c in re.findall(r'(?:Source:|Sources:|Background:)\s*([^\n]+)', head)] | |
| 123 | - print(f' related work: empty in INDEX; the head cites: {cited if cited else "nothing"}') | |
| 124 | - if not stated: | |
| 125 | - bad.append(n) | |
| 126 | - nearest = nearest_known_result(head, norm(desc)) | |
| 127 | - print(f' nearest "Known result" of the head: {nearest}') | |
| 128 | - print(f'\nrows whose file does not state the row: {bad if bad else "none"}') | |
| 129 | - return 0 | |
| 130 | - | |
| 131 | - | |
| 132 | -if __name__ == '__main__': | |
| 133 | - sys.exit(main()) | |
+0 −75 routes/p6-glossary-rows-1-20/README.md deleted
| @@ -1,75 +0,0 @@ | ||
| 1 | ---- | |
| 2 | -issue: 7 | |
| 3 | -status: done | |
| 4 | ---- | |
| 5 | -# p6-glossary-rows-1-20 | |
| 6 | - | |
| 7 | -Twenty rows of the glossary, `GUIDE.md` lines 62–81, from `a-place` to `seesaw`. For each row I | |
| 8 | -found the declarations it names and compared the row's words with the Lean definition and the | |
| 9 | -docstring next to it. This is one of the four units of #7: the three parts of section 2 and the | |
| 10 | -table of sizes of section 3. | |
| 11 | - | |
| 12 | -Run `python3 routes/p6-glossary-rows-1-20/check.py` from the project root to reproduce the list of | |
| 13 | -declarations: it reads the twenty rows, takes the names of the `Lean` column, and looks each one up | |
| 14 | -under `src` as a declaration, as a field of a structure, or as a name taken from a library by an | |
| 15 | -`open`/`export` line. It finds all 37 names. | |
| 16 | - | |
| 17 | -## The twenty rows | |
| 18 | - | |
| 19 | -Every name below is given with the file and line of its declaration. "Agrees" means that the words | |
| 20 | -of the row are what the declaration and its docstring say; where the row is terse I say what it | |
| 21 | -leaves out, and where a name is not in `src` I say where it comes from. | |
| 22 | - | |
| 23 | -| row | declarations checked | what the row says, and what the code says | | |
| 24 | -|---|---|---| | |
| 25 | -| a-place | `New.Data.aPlaces` `src/New/Reduction/Data/AdmissibleData.lean:256` | Agrees. `{τ : D.Φ \| placeClass … τ = 1}`; the docstring at `:255` says "the places ≡ 1 modulo q₀", and the row's "read in (ℤ/q₁)ˣ" is the `placeClass` of `:67`. | | |
| 26 | -| b-place, weight | `Data.bPlaces` `src/New/Reduction/Data/AdmissibleData.lean:137`, `New.Data.weight` `:181` | Agrees. `bPlaces` is a field of the structure `Data`, with `placeClass_of_mem_bPlaces : … = -1` at `:138`; `weight` is `natB` on `bPlaces` and `natX * natB / natX₁` off it (`weight_eq`, `:187`), which is `a/x` and `a/x₁`. | | |
| 27 | -| b-place, weight (the sparse set) | `New.Parameters.IsSparse` `src/New/Reduction/Data/AdmissibleData.lean:65`, used as `D.sparse` `:145` | Agrees, including the sizes: `D.sparse` is `P.IsSparse D.towerExp ((r + 1 - m) * (5 * r)) D.bPlaces`, and `(r + 1 - m) * 5r = k t`, which is the row's "primes ℓ ≤ kt"; the exponents are `0 < i < j < l₀` (`:66`), and the places are taken modulo the part of `q₁` prime to `ℓ` (`:67`). | | |
| 28 | -| b-place, weight (Behrend) | `src/New/Reduction/Data/Existence.lean:36`, `:50`, `:134`, `:209`, `:605` | Agrees. The row's "built after Behrend" is the construction of `Existence`: the b-places are `-g ^ e` with `g = 1 + 3 l₀ q₀` and `e` in a set of Behrend's type, from `TauCeti.exists_eq_and_eq_of_add_mul_modEq` (`:36`). The row names no declaration for this, and the set itself is not a definition of the development: it is the hypothesis `IsSparse`. | | |
| 29 | -| chosen place | `New.Data.IsChosen` `src/New/Derivatives/Field/ChosenPlaces.lean:74` | Agrees. `D.piM ∈ w.asIdeal`, with `piM` the conjugate of `D.piMBar` (`:70`), of norm `p₀p₁` (`piM_mul_star`, `:85`). "half of those above M" is `card_chosenPlace : card (D.ChosenPlace i) = D.f` (`src/New/UpperBound/Objects/LiftChains.lean:383`) for each `i`, against `2 f` places above `M`. | | |
| 30 | -| twist | `New.Data.Twist` `src/New/Reduction/Data/LevelAndTwists.lean:300`, `New.Data.MFoldTwist` `:391` | Agrees. `Twist` extends `TameChar` (`:279`) with `tamePart_ne_one` on `Q`; the fields of `TameChar` are `hasWeight : toAutChar.HasWeight 0 tamePart` (weight 0), `tamePart_eq_one` off `Q`, `star_notMem` (`Q` disjoint from its conjugate), `coprime : (D.M * D.N).Coprime (∏ w ∈ Q, w.q)` (prime to MN). `MFoldTwist.pow_ne_one` quantifies over `D.LiftIndex` (`:368`), which is `Icc 1 D.m`, so "its first m powers". The word "anticyclotomic" is the row's, not the code's: the code says weight 0 on `U(1)`. | | |
| 31 | -| height bound | `HeightLe` `src/New/Reduction/Lattices/Heights.lean:50` | Agrees, and the name is not declared under `src`: the line is `export TauCeti.PrimePadicIso (HeightLe)`, so `HeightLe` is Tau Ceti's. The row's definition is the file's head, `:18`–`:22`. `HeightLe.nonneg_of_one` is this project's, `:25` and `:60`-odd, stated in Tau Ceti's namespace for dot notation (`:54`). | | |
| 32 | -| twisted lattice | `TwistedLattice` `src/New/Reduction/Lattices/TwistedLattice.lean:123`, `New.Data.targetLattice` `src/New/Reduction/IntegralTargetForms.lean:70` | Agrees. `TwistedLattice` has `Space : T → Type`, `lift ξ : V →ₗ Space ξ`, `IsAllowed`, and `lattice ξ ι`; `targetLattice` is the target forms with `lift := D.Θ` and `IsAllowed l ϑ := l.Coprime ϑ.normQ`. | | |
| 33 | -| index, covolume | `TwistedLattice.IndexLe` `src/New/Reduction/Lattices/TwistedLattice.lean:176`, `TwistedLattice.CovolumeLe` `:278`, `TwistedLattice.integralVectors` `:163` | Agrees. `IndexLe y δ` gives `e : ℕ → ℝ` with `∑_{l ∈ U} e l * log l ≤ δ` and, for each `ι`, one matrix `u` with `ι.Carries u y (L.integralVectors ι) (e ι.prime)`; `integralVectors ι` is `∀ ξ, IsAllowed ι.prime ξ → L.lift ξ y ∈ L.lattice ξ ι` (`mem_integralVectors`, `:167`), which is the row's "the same for all twists of modulus prime to ℓ". `CovolumeLe` is the bound on `‖det (formGram … (conjCoord σ ∘ y))‖` at every `σ`. | | |
| 34 | -| main amount, remainder | `New.Data.mainAmount` `src/New/Reduction/PrimeSums.lean:68`, `New.Data.totalRemainder` `:79`, `New.Data.directionAmount` `src/New/Reduction/Data/AdmissibleData.lean:282` | Agrees. `mainAmount = D.m * D.k * D.directionAmount`; `totalRemainder = ∑ τ ∈ D.aPlaces, (D.primeSum D.a τ - D.mainPrimeSum)`. | | |
| 35 | -| prime sum, gain | `New.Data.primeSum` `src/New/Reduction/Data/AdmissibleData.lean:269`, `New.Data.localPrimeSum` `src/New/UpperBound/Size/ShortColumns.lean:89`, `New.Data.gain` `:100` | Agrees, including the factor 2: `primeSum` is `∑ ν ∈ Icc 1 D.a, Λ_K(ν) (y/ν - κ(-νσ))₊` with `Λ_K(ν) = Λ(ν)(1 - χ_K(ν))`, and the p-part of it is `2 * localPrimeSum p y σ * log p` (`primeSum_eq_sum_localPrimeSum`, used at `src/New/UpperBound/Size/Estimates.lean:157`–`:158` and `src/New/UpperBound/Size/ArchimedeanSize.lean:159`), so `localPrimeSum` is indeed "its part at p divided by 2 log p". `gain p = D.m * (∑ τ ∈ D.aPlaces, localPrimeSum p D.a τ + D.k * localPrimeSumTotal p)`. The row's third clause, "the exponent of p asked to divide the composite lift", is the real number `gain`; the integer exponent is `D.gainExponent` (`src/New/Reduction/ShortAndEnough.lean:59`, `⌊gain - allowedLoss⌋`), which row 95 names. | | |
| 36 | -| error unit, budget | `New.Data.errorUnit` `src/New/Reduction/Data/AdmissibleData.lean:273`, `New.Data.denominatorBudget` `src/New/Determinant/Twist/FitTwists.lean:162`, `Selmer.clearingBound` `src/New/Congruences/FirstOrder/TraceRelations.lean:143`, `New.Data.ClearsProjection` `src/New/Determinant/Twist/FitTwists.lean:173` | Agrees. `errorUnit = D.f * D.a * D.logB ^ 3`; `denominatorBudget = errorUnit / (D.m * D.k)`, and `sum_clearingBound_add_padicValNat_le` (`src/New/Congruences/FitTwistsExist.lean:244`) bounds `∑ l ∈ T, (clearingBound D l * log l + …)` by it; `ClearsProjection` is the determinant of ℓ-adic size `exp (-(finrank ℂ … * (D.r * β)))`. `clearingBound` is a sum of four local defects, `NNReal`. | | |
| 37 | -| source form | `New.Data.SourceForm` `src/New/UpperBound/Objects/Columns.lean:786`, `New.Data.ramifiedSourceForms` `src/New/UpperBound/Size/ShortColumns.lean:759`, `New.Data.levelX` `src/New/UpperBound/Objects/Columns.lean:655` | Agrees. `SourceForm` is `levelSpace (algFormRep D.columnCount (D.lastEntry 0)) (D.levelX 0)`, and `columnCount τ 1` is `D.a` on `D.aPlaces` and `0` elsewhere (`src/New/UpperBound/Objects/Weights.lean:58`–`:63`), with `lastEntry 0 = 0`: the weight is `(a, 0, …, 0)` at the a-places. `levelX` is the level principal at the chosen places with last row `≡ (0, …, 0, 1) mod π_N` (`:653`); `ramifiedSourceForms` is the intersection over `w : D.piNPlaces` of the kernels of `∑ i ∈ range (N - 1), centralRep (scalingGenerator w) ^ i` (`:757`). | | |
| 38 | -| target form | `New.Data.targetForms` `src/New/UpperBound/Objects/Rows.lean:292`, `New.Data.principalForms` `:277` | Agrees. `targetForms = D.goodForms (D.spaceY 0)`, and `principalForms` is `levelSpace (V.formRep (typeKernel D.paramW s)) (levelOf D.chosenPlace ⊥)`, which is principal at the chosen places and at no other place; `D.paramW` is built from `D.targetParameter` (`src/New/UpperBound/Objects/LabelsAndIndexTypes.lean:294`). | | |
| 39 | -| label | `IsLabel` `src/Lib/LocalGL/Green/TauFunctions.lean:153`, `labelIdem` `:186` | Agrees. `IsLabel : c.Monic ∧ Squarefree c ∧ c.natDegree = r ∧ c.coeff 0 ≠ 0`, over a finite field `k`; `labelIdem` is the idempotent of `MonoidAlgebra ℂ (GL n k)` that the label names. | | |
| 40 | -| good form | `New.Data.goodForms` `src/New/UpperBound/Objects/Rows.lean:288`, `New.Data.e₀` `src/New/UpperBound/Objects/LabelsAndIndexTypes.lean:373`, `New.goodTuples` `:146`, `New.Data.goodTupleFamilies` `:348`, `IsPrimitivePolynomial` `:57`, `IsAllowedPolynomial` `:125` | Agrees. `goodForms` is the range of `(D.principalRep V).asAlgebraHom D.e₀`; `e₀` sums `tupleIdem` over `goodTupleFamilies`, which by `mem_goodTupleFamilies` (`:361`) asks, for each `i : Fin 2`, that the labels above `p_i` lie in `goodTuples (P.q₂ D.towerExp) r`: every one allowed (`∀ x, x ^ M = 1 → ¬c.IsRoot x`) and **at least one primitive per `i`**, which is the row's "above each of p₀, p₁". `IsPrimitivePolynomial` is a label that is irreducible with a root of order `|k| ^ r - 1`. | | |
| 41 | -| setting of a lift | `Selmer.IsLiftSetting` `src/New/Congruences/GaloisRepresentations/SelmerHypotheses.lean:557` | Agrees as a summary. The structure's fields are `toLevelPlaces_eq`, `exists_tamePart_eq_chiMLocal_zpow_mul`, `odd`, `rank_le`, `isLabel`, `exists_primitive_or_one`, `not_isRoot_scaledTypePoly`; the row compresses them to "labels at the chosen places of a `DescentPair` to which the Selmer bounds of `New/Congruences` apply". | | |
| 42 | -| cut | `New.Floors.PlaceData.IsCut` `src/New/Spanning/Frames/Densities.lean:89` | Agrees, and is terser than the code: `IsCut` extends `P.IsBessel W F.levelUnit⁻¹` with `exists_mul_mem_box`, "zero at `x` unless `u x` lies in the box `F.boxSet` for some `u`" (`:87`–`:88`). The row's name is right; the declaration sits in `namespace New.Floors` in `Densities`, not in a file named after floors. | | |
| 43 | -| lift | `Space.lift` `src/Lib/Weil/DualPair/ThetaLiftConvergence.lean:293`, `Kernel.lift` `src/Lib/Weil/CompactLift/ThetaKernelDefs.lean:180`, `New.Data.lowerChain` `src/New/UpperBound/Objects/RowChain.lean:183`, `New.Data.goodLift` `src/New/Determinant/Twist/FitTwists.lean:117`, `Lift` `src/Lib/LocalGL/Shintani/CosetDescent.lean:118` | Agrees. `Space.lift φ y h = ∫ g, K.θ (K.ω (g, h) φ) * y g ∂S.quotMeasure` (adelic, by class sums); `Kernel.lift` is the archimedean map `AlgForm n κ e →ₗ AlgForm n' κ ea`; `lowerChain` is `Y₀ → Y_m` (`toAlgForm (D.spaceY D.m) … ∘ₗ lowerChainUpTo ϑ D.m`); `goodLift ϑ j` is `W_j → V_j`. The predicate `Lift` of `New/Congruences/Lifting` is not this row's `Lift`: the row says "the predicate `Lift` is Shintani lifting", and `Lift : Prop := ∀ m, HasCommonLift Z F F' (Fin m)` is in `Lib/LocalGL/Shintani`, which is Shintani descent; the folder `New/Congruences/Lifting` is the p-adic Hodge theory of the level primes. | | |
| 44 | -| string | `Grading` `src/Lib/Weil/Periods/Grading.lean:105`, `Selmer.HasLiftTrace` `src/New/Congruences/GaloisRepresentations/SelmerHypotheses.lean:585`, `New.Data.Y` / `spaceY_gram_eq` `src/New/UpperBound/Objects/LabelsAndIndexTypes.lean:267`, `src/New/UpperBound/Objects/Rows.lean:250` | Agrees, including the count: `Y_j` is `X_j` plus `2ϱ + 1 - j` further vectors, and `m = 2ϱ + 2` gives `m - 1 - j` (`GUIDE.md:149`, `spaceY_gram_eq`). The string's Gram is the identity on `X_j` and the antidiagonal on the string, `1` except `-N` at the middle, so "hyperbolic pairs, and a middle vector if their number is odd". `HasLiftTrace` is `∀ g, (u g).val.trace = ψ g * (R g).val.trace + ∑ e ∈ range t, cyclotomicInv … g ^ e`. | | |
| 45 | -| jet | `MvPolynomial.jetPairing` (not in `src`; opened at `src/Lib/General/Algebra/IntegralPowerSeries.lean:144` and `src/New/Derivatives/Sharpness/Couplings.lean:125`), `schurJet` `src/Lib/Weil/Construction/ThetaJets.lean:111` | Agrees on the first half: the row's `P(∂)F(0)` is the description of `MvPolynomial.jetPairing` in the head of `IntegralPowerSeries` (`:29`) and of `src/Lib/GLn/SchurModule/Basic.lean:27`. `schurJet` is `(LinearMap.mapMatrixLinear R ∘ₗ jetPairing.flip).flip (schur κ …)`. The second half, "for a monomial `P = X^α` this is `α!` times the coefficient", is a lemma of the library that declares `jetPairing` (`jetPairing_monomial`, used at `IntegralPowerSeries.lean:279` and `ThetaJets.lean:99`); I did not read it, because that library is not in the checkout. | | |
| 46 | -| seesaw | `New.Data.seesaw_identity` `src/New/UpperBound/Seesaw/SeesawIdentity.lean:655` | Agrees. `∃ c : ℂˣ, ∀ ϑ : D.Twist, ∃ Ψ : D.Translations →₀ ℂ, IsChainDatum ϑ Ψ ∧ ∀ φ : D.ramifiedSourceForms, lowerChain ϑ (D.poincareAt g t φ) = c • compositeLift ϑ Ψ φ`: one `c ≠ 0` for all twists, only on ramified source forms, and nothing about the right side being nonzero (the docstring says so at `:643`–`:654`). | | |
| 47 | - | |
| 48 | -## Where the row names no declaration | |
| 49 | - | |
| 50 | -None of the twenty rows lacks a name in its `Lean` column. Two names are not declared under `src`: | |
| 51 | -`HeightLe` (Tau Ceti's, exported at `src/New/Reduction/Lattices/Heights.lean:50`) and | |
| 52 | -`MvPolynomial.jetPairing` (declared in the `MvPolynomial` namespace of a library, and opened at the | |
| 53 | -two places above). For the second I cannot say which library: no `def jetPairing` occurs under | |
| 54 | -`src`, `ATTRIBUTION.md` does not mention it, and neither dependency is in the checkout (there is no | |
| 55 | -`.lake` here), so I did not open its statement. | |
| 56 | - | |
| 57 | -## What I changed | |
| 58 | - | |
| 59 | -Nothing in `GUIDE.md`. The twenty rows agree with the code, and I found no wording that the | |
| 60 | -declarations contradict. Where a row is terser than the code (the `cut`, `setting of a lift` and | |
| 61 | -`twist` rows, and the Behrend sentence of the `b-place` row) the words are still true of the | |
| 62 | -definition, and a longer row would be a change of style, not a correction. This note and | |
| 63 | -`check.py` are the change of this unit. | |
| 64 | - | |
| 65 | -## What this does not show | |
| 66 | - | |
| 67 | -That the rows are the ones a reader needs, or that the guide is complete: only that the twenty rows | |
| 68 | -report the code they name. The other three units of #7 — the other two parts of section 2 and the | |
| 69 | -table of sizes — are not checked here. | |
| 70 | - | |
| 71 | -## Next | |
| 72 | - | |
| 73 | -The next unit of #7 is the second part of the glossary, rows 82–101 (`filling` to `polar`), then | |
| 74 | -rows 102–107 and the table of sizes of section 3. Someone taking rows 82–101 can start from | |
| 75 | -`check.py` here by changing `FIRST` and `LAST`. | |
+0 −136 routes/p6-glossary-rows-1-20/check.py deleted
| @@ -1,136 +0,0 @@ | ||
| 1 | -#!/usr/bin/env python3 | |
| 2 | -"""Check that the names in GUIDE.md's glossary rows 62-81 exist in the Lean source. | |
| 3 | - | |
| 4 | -Run from the project root: python3 routes/p6-glossary-rows-1-20/check.py | |
| 5 | - | |
| 6 | -The script reads the twenty rows of the glossary (GUIDE.md lines 62-81), takes the names in the | |
| 7 | -`Lean` column, and looks each one up under `src`. A name is found as a declaration | |
| 8 | -(`def`, `lemma`, `theorem`, `abbrev`, `structure`, `class`, `inductive`, `instance`), as a field of | |
| 9 | -a structure (`bPlaces : Finset ...`), or as a name taken from a library by an `open`/`export` line | |
| 10 | -(for example `MvPolynomial.jetPairing`, which Mathlib declares). | |
| 11 | - | |
| 12 | -A name whose prefix is `D.` is a field of the data `D : Data P`, so its declaration is looked for | |
| 13 | -in a file that opens `namespace New.Data`; this keeps `D.gain` from matching another `gain`. | |
| 14 | - | |
| 15 | -The output is the audit table of `routes/p6-glossary-rows-1-20/README.md`. | |
| 16 | -""" | |
| 17 | - | |
| 18 | -import re | |
| 19 | -import subprocess | |
| 20 | -import sys | |
| 21 | - | |
| 22 | -sys.stdout.reconfigure(encoding="utf-8") | |
| 23 | - | |
| 24 | -GUIDE = "GUIDE.md" | |
| 25 | -FIRST, LAST = 62, 81 | |
| 26 | -SP = "[[:space:]]" | |
| 27 | -DECL = (f"({SP}*noncomputable{SP}+)?({SP}*protected{SP}+)?" | |
| 28 | - "(theorem|lemma|def|abbrev|structure|class|inductive|instance)") | |
| 29 | -SPLIT = re.compile(r"(?<!\\)\|") | |
| 30 | - | |
| 31 | -_namespace_cache = {} | |
| 32 | - | |
| 33 | - | |
| 34 | -def norm(s): | |
| 35 | - return " ".join(s.replace("`", "").split()) | |
| 36 | - | |
| 37 | - | |
| 38 | -def guide_rows(): | |
| 39 | - text = open(GUIDE, encoding="utf-8").read().split("\n") | |
| 40 | - rows = [] | |
| 41 | - for line in text[FIRST - 1:LAST]: | |
| 42 | - cells = [norm(c) for c in SPLIT.split(line)] | |
| 43 | - if len(cells) < 4: | |
| 44 | - continue | |
| 45 | - rows.append((cells[1], cells[2], cells[3])) | |
| 46 | - return rows | |
| 47 | - | |
| 48 | - | |
| 49 | -def names_in(ax): | |
| 50 | - """The names of the `Lean` column: backticked, and split on commas.""" | |
| 51 | - return [n.strip() for n in ax.replace("`", "").split(",") if n.strip()] | |
| 52 | - | |
| 53 | - | |
| 54 | -def last(name): | |
| 55 | - return name.split(".")[-1] | |
| 56 | - | |
| 57 | - | |
| 58 | -def grep(pattern, path="src"): | |
| 59 | - """`git grep -n -E` with a POSIX ERE pattern; returns matching lines.""" | |
| 60 | - r = subprocess.run(["git", "grep", "-n", "-E", "--", pattern, "--", path], | |
| 61 | - capture_output=True, text=True, encoding="utf-8") | |
| 62 | - if r.returncode not in (0, 1): | |
| 63 | - raise SystemExit(f"git grep failed on {pattern!r}: {r.stderr.strip()}") | |
| 64 | - return [l for l in r.stdout.splitlines() if l.strip()] | |
| 65 | - | |
| 66 | - | |
| 67 | -def where(line): | |
| 68 | - """`src/a/b.lean:123:...` -> `src/a/b.lean:123`.""" | |
| 69 | - return ":".join(line.split(":")[:2]) | |
| 70 | - | |
| 71 | - | |
| 72 | -def has_namespace(path, ns): | |
| 73 | - key = (path, ns) | |
| 74 | - if key not in _namespace_cache: | |
| 75 | - r = subprocess.run(["git", "grep", "-n", "-F", "--", f"namespace {ns}", "--", path], | |
| 76 | - capture_output=True, text=True, encoding="utf-8") | |
| 77 | - _namespace_cache[key] = bool(r.stdout.strip()) | |
| 78 | - return _namespace_cache[key] | |
| 79 | - | |
| 80 | - | |
| 81 | -def find(name): | |
| 82 | - """Return (kind, place) for a name, or (None, None). | |
| 83 | - | |
| 84 | - The patterns are POSIX ERE, as `git grep -E` takes them: no non-capturing groups, and | |
| 85 | - `[[:space:]]` for whitespace. | |
| 86 | - """ | |
| 87 | - leaf = last(name) | |
| 88 | - prefix = name[: -len(leaf)] # "D." / "Selmer." / "Space." / "" | |
| 89 | - tail = rf"({SP}|:|\(|\[|\{{|$)" | |
| 90 | - # 1. A declaration of the whole name, as written (`def Space.lift`). | |
| 91 | - if prefix: | |
| 92 | - hits = grep(rf"(^|[^A-Za-z0-9_.']){DECL}{SP}+{re.escape(prefix)}{re.escape(leaf)}{tail}") | |
| 93 | - if hits: | |
| 94 | - return "declaration", where(hits[0]) | |
| 95 | - # 2. A declaration of the leaf, with an optional dotted prefix (`structure PlaceData.IsCut`). | |
| 96 | - hits = grep(rf"(^|[^A-Za-z0-9_.']){DECL}{SP}+([A-Za-z0-9_']+\.)*{re.escape(leaf)}{tail}") | |
| 97 | - if prefix == "D.": | |
| 98 | - # `D` is the data, so the declaration is in a file of `namespace New.Data`. | |
| 99 | - hits = [h for h in hits if has_namespace(h.split(":")[0], "New.Data")] or hits | |
| 100 | - if hits: | |
| 101 | - return "declaration", where(hits[0]) | |
| 102 | - # 3. A field of a structure: `bPlaces : Finset (P.Φ towerExp)` on a line of its own. | |
| 103 | - hits = grep(rf"^{SP}+{re.escape(leaf)}{SP}*:") | |
| 104 | - if hits: | |
| 105 | - return "field", where(hits[0]) | |
| 106 | - # 4. A name taken from a library, by `open X (name ...)` or `export X (name ...)`. | |
| 107 | - hits = grep(rf"(open|export){SP}+[A-Za-z0-9_.']+{SP}+\([^)]*{re.escape(leaf)}") | |
| 108 | - if hits: | |
| 109 | - return "from a library (open/export)", where(hits[0]) | |
| 110 | - return None, None | |
| 111 | - | |
| 112 | - | |
| 113 | -def main(): | |
| 114 | - rows = guide_rows() | |
| 115 | - bad = [] | |
| 116 | - total = 0 | |
| 117 | - print("| row | name | found as | place |") | |
| 118 | - print("|---|---|---|---|") | |
| 119 | - for label, ax, _meaning in rows: | |
| 120 | - for n in names_in(ax): | |
| 121 | - total += 1 | |
| 122 | - kind, place = find(n) | |
| 123 | - if kind is None: | |
| 124 | - bad.append((label, n)) | |
| 125 | - print(f"| {label} | `{n}` | **not found** | |") | |
| 126 | - else: | |
| 127 | - print(f"| {label} | `{n}` | {kind} | `{place}` |") | |
| 128 | - print() | |
| 129 | - print(f"rows: {len(rows)}; names: {total}; not found: {len(bad)}") | |
| 130 | - for label, n in bad: | |
| 131 | - print(f" not found: {label}: `{n}`") | |
| 132 | - return 0 if not bad else 1 | |
| 133 | - | |
| 134 | - | |
| 135 | -if __name__ == "__main__": | |
| 136 | - sys.exit(main()) | |
+81 −0 routes/p6-glossary-rows-102-107/README.md added View file
| @@ -0,0 +1,81 @@ | ||
| 1 | +--- | |
| 2 | +issue: 7 | |
| 3 | +status: done | |
| 4 | +--- | |
| 5 | +# p6-glossary-rows-102-107 | |
| 6 | + | |
| 7 | +The third unit of #7: the last six rows of the glossary of `GUIDE.md` (lines 102–107, `rapid` … | |
| 8 | +`most Frobenii`), each read against the declaration it names. `check.py` finds every name in the | |
| 9 | +table and prints where it is declared; the reading below is mine. | |
| 10 | + | |
| 11 | +```bash | |
| 12 | +python3 routes/p6-glossary-rows-102-107/check.py | |
| 13 | +``` | |
| 14 | + | |
| 15 | +| row | name | found as | place | | |
| 16 | +|---|---|---|---| | |
| 17 | +| rapid | `Space.IsRapid` | declaration | `src/Lib/Adelic/Reduction/FirstMinimumShortBases.lean:317` | | |
| 18 | +| edge, arrow | `IsEdge` | declaration | `src/Lib/Weil/Lift.lean:418` | | |
| 19 | +| edge, arrow | `IsArrow` | declaration | `src/Lib/Weil/Lift.lean:800` | | |
| 20 | +| carrier | `Rows.carrierForm` | declaration | `src/New/OneLift/ComparisonOperator/ExchangeData.lean:129` | | |
| 21 | +| tie | `Selmer.tieRelations` | declaration | `src/New/Congruences/Selmer/AuxiliaryPrimes.lean:476` | | |
| 22 | +| even class, odd class | `Selmer.evenClasses` | declaration | `src/New/Congruences/FirstOrder/EvenClasses.lean:60` | | |
| 23 | +| even class, odd class | `Selmer.shaOdd` | declaration | `src/Lib/GaloisRep/Main/SelmerModules.lean:181` | | |
| 24 | +| most Frobenii | `mostFrobenii` | declaration | `src/Lib/GaloisRep/Main/Defs.lean:253` | | |
| 25 | + | |
| 26 | +`rows: 6; names: 8; not found: 0`. The third column names one further declaration, | |
| 27 | +`Space.height` (`src/Lib/Adelic/Reduction/FirstMinimumShortBases.lean:308`), and it exists. | |
| 28 | + | |
| 29 | +## What I read | |
| 30 | + | |
| 31 | +- **rapid** — `IsRapid F` is `∀ B : ℕ, ∃ C : ℝ, ∀ g, ‖F g‖ * V.height g ^ B ≤ C` | |
| 32 | + (`FirstMinimumShortBases.lean:317`), and `height` is `(V.move g).firstMinimum⁻¹` (`:308`), whose | |
| 33 | + docstring defines it from the first minimum `λ = min(1, inf ‖y‖)` over the nonzero vectors of the | |
| 34 | + moved lattice. Agrees. One remark: "measures the distance into the cusp" is the guide's gloss — | |
| 35 | + the code says only that the height is the reciprocal of that minimum; the identification with the | |
| 36 | + distance into the cusp is not written anywhere I found. | |
| 37 | +- **edge, arrow** — `IsEdge` (`src/Lib/Weil/Lift.lean:418`) is `IsHalfEdge Ω e e' Φ` together with | |
| 38 | + `swapped : IsHalfEdge (Ω ·.swap) (Star.star e') (Star.star e) Φ`, so "in both directions" is the | |
| 39 | + `swapped` field, and a half edge is a `Φ` whose lift sends forms of type `e` to forms of type `e'` | |
| 40 | + (`IsHalfEdge.lift_isForm_and_eq_realConv`, `:436`). `IsArrow φ` (`:800`) is `∀ y : S.Form e, | |
| 41 | + y.val ∈ S.rapidFunctions ∧ T.IsForm e' (lift K φ y)` — one direction, from rapid forms, exactly | |
| 42 | + as the row says. Agrees. | |
| 43 | +- **carrier** — `carrierForm` (`ExchangeData.lean:129`) is the theta lift of the constant function | |
| 44 | + `1` from the unitary group of `I_m⁻` to that of the space with signs `+1` on `Fin (2*m)` and `−1` | |
| 45 | + on `Fin m`, with the polynomial `∏_τ det(y⁻_τ)^{2m}`. Agrees. "The same for all twists" is | |
| 46 | + structural rather than stated: the definition takes no twist parameter, so there is one such form | |
| 47 | + for the whole argument. | |
| 48 | +- **tie** — `tieRelations` (`AuxiliaryPrimes.lean:476`) is "the ties `z(γ_w) = s • z(φ_w)` of datum | |
| 49 | + `i`, for `v ∈ J` with slope `s = (x v).2 i` and `w = v, v̄` … where `γ_v = (x v).1.tameGenerator` | |
| 50 | + and `φ_v = (x v).1.frob`". Agrees: a relation between a cocycle at a tame generator and at the | |
| 51 | + Frobenius of an auxiliary place, with the conjugate place and its inverse Frobenius included. | |
| 52 | +- **even class, odd class** — `evenClasses` (`EvenClasses.lean:60`) is the locally constant cocycles | |
| 53 | + `c : Gal(Ω/E) → O/ℓ^ν(-e)` unramified outside the places above `ℓ`, `S` and its conjugate, | |
| 54 | + satisfying `c (conjGal g) = c g`, vanishing on `shaLocalSet ℓ E 1`. `shaOdd` (`SelmerModules.lean:181`) | |
| 55 | + is `z` vanishing on `shaLocalSet ℓ E e`, odd under `conjGal` **if `e ≠ 0`**, a continuous cocycle | |
| 56 | + for `Λ(-e)` unramified outside `ℓ`; for `e = 0`, the homomorphisms unramified everywhere. Agrees, | |
| 57 | + including the row's "for the twist 0 odd classes have no parity condition" and its "even classes: | |
| 58 | + and off the added places" (`S` and its conjugate). | |
| 59 | +- **most Frobenii** — `mostFrobenii` (`Defs.lean:253`) is the filter on `FrobeniusDatum E` whose | |
| 60 | + sets `X` are those where each nonempty open `V ⊆ Gal(Ω/E)` has a nonempty open part `O` such that, | |
| 61 | + for almost all `w`, `X` contains every datum `(w, A, s)` with `s ∈ O`. Agrees; "a property that | |
| 62 | + holds for most of them holds on a dense set" is the reading of that filter, which the docstring | |
| 63 | + states in the same words ("the filter 'most Frobenii'"). | |
| 64 | + | |
| 65 | +## What I changed | |
| 66 | + | |
| 67 | +Nothing. All six rows agree with their declarations and none of them is misleading enough to be | |
| 68 | +wrong: the two glosses I would have phrased differently (the cusp in 102, the twists in 104) are | |
| 69 | +true, and the guide says of this section that it names the words the proof uses. | |
| 70 | + | |
| 71 | +## What this does not show | |
| 72 | + | |
| 73 | +That the words are the right words for the mathematics — only that each name exists where the row | |
| 74 | +says and that its statement says what the row says. Nothing here bears on whether the proof is | |
| 75 | +right. | |
| 76 | + | |
| 77 | +## Next | |
| 78 | + | |
| 79 | +The fourth unit of #7 is the table of sizes in section 3 of `GUIDE.md` (lines 130–157 at `f0cf730`), | |
| 80 | +where each size is checked against the definition and the bound that uses it. Rows 1–20 and 82–101 | |
| 81 | +of the glossary are in pull requests #47 and #49. | |
+1 −1 routes/p6-glossary-rows-82-101/check.py → routes/p6-glossary-rows-102-107/check.py renamed View file
| @@ -26,7 +26,7 @@ import sys | ||
| 26 | 26 | sys.stdout.reconfigure(encoding="utf-8") |
| 27 | 27 | |
| 28 | 28 | GUIDE = "GUIDE.md" |
| 29 | -FIRST, LAST = 82, 101 | |
| 29 | +FIRST, LAST = 102, 107 | |
| 30 | 30 | SP = "[[:space:]]" |
| 31 | 31 | DECL = (f"({SP}*noncomputable{SP}+)?({SP}*protected{SP}+)?" |
| 32 | 32 | "(theorem|lemma|def|abbrev|structure|class|inductive|instance)") |
+0 −188 routes/p6-glossary-rows-82-101/README.md deleted
| @@ -1,188 +0,0 @@ | ||
| 1 | ---- | |
| 2 | -issue: 7 | |
| 3 | -status: done | |
| 4 | ---- | |
| 5 | -# p6-glossary-rows-82-101 | |
| 6 | - | |
| 7 | -The second of the four units of #7: the glossary of GUIDE.md, rows 82–101 (`filling` to `polar`). | |
| 8 | -For each row I found the definitions and statements it names, read them, and compared their words | |
| 9 | -with the row. `check.py` reproduces the tables below from the source. | |
| 10 | - | |
| 11 | -```bash | |
| 12 | -python3 routes/p6-glossary-rows-82-101/check.py | |
| 13 | -``` | |
| 14 | - | |
| 15 | -It reads the twenty rows of `GUIDE.md`, takes the names of the `Lean` column, and looks each one up | |
| 16 | -under `src` — as a declaration, as a field of a structure, or as a name taken from a library by an | |
| 17 | -`open`/`export` line. A name written `D.…` is a field of the data `D : Data P`, so its declaration is | |
| 18 | -looked for in a file of `namespace New.Data`. The second table does the same for the names the rows | |
| 19 | -give in their third column instead, so that a name a row relies on is not left unchecked. | |
| 20 | - | |
| 21 | -## The names of the `Lean` column | |
| 22 | - | |
| 23 | -| row | name | found as | place | | |
| 24 | -|---|---|---|---| | |
| 25 | -| filling | `Filling` | declaration | `src/New/Spanning/Unfolding/Setup.lean:71` | | |
| 26 | -| filling | `D.isSpread_goodPoincare` | declaration | `src/New/Spanning/SecondMoment/SpanningTheorem.lean:340` | | |
| 27 | -| floor | `Shape.Form.floorGroup` | declaration | `src/Lib/DiscreteSeries/Bruhat/FloorGroups.lean:197` | | |
| 28 | -| exchange | `Exchange.exchange_identity` | declaration | `src/New/Determinant/Exchange/TheoremForPartners.lean:1084` | | |
| 29 | -| square | `Exchange.one_square_identity_of_isEdgeFamily` | declaration | `src/New/Determinant/Exchange/OneSquare.lean:1039` | | |
| 30 | -| grid, path, turn | `D.gridSpace` | declaration | `src/New/Determinant/AuxiliaryForms/PathData.lean:162` | | |
| 31 | -| grid, path, turn | `TwoGridPath` | declaration | `src/New/Determinant/AuxiliaryForms/GridPaths.lean:158` | | |
| 32 | -| grid, path, turn | `TwoGridPath.Turn` | declaration | `src/New/Determinant/AuxiliaryForms/GridPaths.lean:178` | | |
| 33 | -| auxiliary form | `D.IsAuxiliaryForm` | declaration | `src/New/Determinant/Twist/LongForms.lean:56` | | |
| 34 | -| descent pair | `DescentPair` | declaration | `src/New/UpperBound/Objects/AuxiliaryPair.lean:171` | | |
| 35 | -| false lift | `DescentPair.falseLiftsAt` | declaration | `src/New/OneLift/TestedForms.lean:367` | | |
| 36 | -| type | `typeKernel` | declaration | `src/Lib/Adelic/AutomorphicForms/Basic.lean:85` | | |
| 37 | -| type | `Space.IsForm` | declaration | `src/Lib/Adelic/AutomorphicForms/Basic.lean:143` | | |
| 38 | -| gauge | `weylGauge` | declaration | `src/Lib/Adelic/AutomorphicForms/SmoothAlgebraicForms.lean:134` | | |
| 39 | -| gauge | `GaugeLe` | declaration | `src/Lib/Adelic/AutomorphicForms/PAdicGauge.lean:181` | | |
| 40 | -| denominator, regular | `Selmer.DenominatorLe` | declaration | `src/New/OneLift/TestedForms.lean:407` | | |
| 41 | -| denominator, regular | `D.IsRegularFamily` | declaration | `src/New/Determinant/Twist/FitTwists.lean:237` | | |
| 42 | -| size | `D.jetSize` | declaration | `src/New/Reduction/Data/AdmissibleData.lean:277` | | |
| 43 | -| size | `LevelPlaces.LevelForm.normSqAt` | declaration | `src/Lib/Adelic/AutomorphicForms/PAdicGauge.lean:692` | | |
| 44 | -| pair, ramified pair, main pair | `D.CriticalPair` | declaration | `src/New/Derivatives/Field/ChosenPlaces.lean:282` | | |
| 45 | -| pair, ramified pair, main pair | `Data.CriticalPair.ratio` | declaration | `src/New/Determinant/Twist/FitTwists.lean:87` | | |
| 46 | -| normalisation | `D.invGainFactor` | declaration | `src/New/Reduction/ShortAndEnough.lean:63` | | |
| 47 | -| normalisation | `D.normalizedPoincare` | declaration | `src/New/Reduction/ShortAndEnough.lean:159` | | |
| 48 | -| determinant | `D.chainDeterminant` | declaration | `src/New/Determinant/Chain/NormOfChain.lean:114` | | |
| 49 | -| determinant | `D.liftDeterminant` | declaration | `src/New/Determinant/Chain/NormOfChain.lean:84` | | |
| 50 | -| composite lift, chain datum | `D.compositeLift` | declaration | `src/New/UpperBound/Objects/Columns.lean:1027` | | |
| 51 | -| composite lift, chain datum | `D.IsChainDatum` | declaration | `src/New/UpperBound/Objects/Columns.lean:995` | | |
| 52 | -| composite lift, chain datum | `D.restrictedChain` | declaration | `src/New/UpperBound/Objects/Columns.lean:918` | | |
| 53 | -| idle direction | `D.directionAmount` | declaration | `src/New/Reduction/Data/AdmissibleData.lean:282` | | |
| 54 | -| exceptional, marked | `D.IsExceptional` | declaration | `src/New/UpperBound/Size/ShortColumns.lean:135` | | |
| 55 | -| exceptional, marked | `D.IsMarked` | declaration | `src/New/UpperBound/Divisibility/MarkedPrimes.lean:63` | | |
| 56 | -| exceptional, marked | `D.IsFullMark` | declaration | `src/New/UpperBound/Divisibility/MarkedPrimes.lean:75` | | |
| 57 | -| stably unramified | `HasPrimitiveRoot5040` | declaration | `src/Lib/Adelic/Adeles/Basic.lean:461` | | |
| 58 | -| polar | `IsPolar` | declaration | `src/Lib/Analytic/EntireLFunction.lean:98` | | |
| 59 | - | |
| 60 | -## The names of the third column | |
| 61 | - | |
| 62 | -| row | name | found as | place | | |
| 63 | -|---|---|---|---| | |
| 64 | -| filling | `D.poincare` | declaration | `src/New/Spanning/Unfolding/SeriesPeriod.lean:737` | | |
| 65 | -| grid, path, turn | `D.exists_transfersPeriods_first_last` | declaration | `src/New/Determinant/AuxiliaryForms/DiagonalTurns.lean:651` | | |
| 66 | -| type | `HasParahoricType` | declaration | `src/Lib/GaloisRep/LocalGlobal/LocalFormTypes.lean:228` | | |
| 67 | -| gauge | `Floors.Gauge` | declaration | `src/New/Spanning/Frames/Correlations.lean:129` | | |
| 68 | -| gauge | `Filling.maxGauge` | declaration | `src/New/Spanning/RemainingTerms/BorderedDeterminant.lean:470` | | |
| 69 | -| denominator, regular | `D.HasDenominatorsLe` | declaration | `src/New/Determinant/Twist/FitTwists.lean:189` | | |
| 70 | -| denominator, regular | `D.HasSmallRatios` | declaration | `src/New/Determinant/Twist/FitTwists.lean:226` | | |
| 71 | -| normalisation | `D.allowedLoss` | declaration | `src/New/UpperBound/Size/Estimates.lean:289` | | |
| 72 | -| normalisation | `D.gainExponent` | declaration | `src/New/Reduction/ShortAndEnough.lean:59` | | |
| 73 | -| normalisation | `D.chosenGL` | declaration | `src/New/UpperBound/Objects/LabelsAndIndexTypes.lean:338` | | |
| 74 | -| normalisation | `D.poincare` | declaration | `src/New/Spanning/Unfolding/SeriesPeriod.lean:737` | | |
| 75 | -| composite lift, chain datum | `D.gluedTensor` | declaration | `src/New/UpperBound/Objects/Columns.lean:982` | | |
| 76 | -| composite lift, chain datum | `D.restrictToY` | declaration | `src/New/UpperBound/Objects/Columns.lean:805` | | |
| 77 | -| composite lift, chain datum | `D.IsChainDatum.exists_isWeakChainDatum_compositeLift_eq` | declaration | `src/New/UpperBound/Divisibility/ChainDatumExpansion.lean:364` | | |
| 78 | -| idle direction | `D.heightLe_liftDeterminant_ratio` | declaration | `src/New/OneLift/LiftVolumeHeight.lean:770` | | |
| 79 | - | |
| 80 | -## What I read in the words of each row | |
| 81 | - | |
| 82 | -Every one of the twenty rows is true of the code, and no row is missing the name of a declaration, | |
| 83 | -with the one exception corrected below. What follows is what each row's own words do and do not | |
| 84 | -show; the file and line of each declaration are in the tables. | |
| 85 | - | |
| 86 | -- **82 filling.** `Filling` is the data of the unfolding theorem (N = ππ̄, the primes p₀ and p₁ with | |
| 87 | - their chosen places, `deltaE`, the source level, a Bessel system at every infinite place). The row | |
| 88 | - says the Poincaré series are "translates of the Poincaré series of the Bessel functions", and | |
| 89 | - `D.poincare` is documented as exactly that: it sends a source form to the form on Y₀ representing | |
| 90 | - its Bessel period, "which for this choice is the Poincaré series of the Bessel function". | |
| 91 | -- **83 floor.** `floorGroup` is "the group `H_l` of the isometries that fix every basis vector of | |
| 92 | - floor below `l`"; the row's "the step of the tower fixing the first hyperbolic pairs" is that | |
| 93 | - group, the basis being numbered by the floor. | |
| 94 | -- **84 exchange.** The statement of `exchange_identity` fixes the words of the row one by one: `v` is | |
| 95 | - chosen first, then `x` (before 𝔪 and ν), and for every weight μ and every ν tame at (𝔪, χ) there is | |
| 96 | - c with `‖c‖² = C · lValueProd 𝔪.places ν e ≠ 0`, and the theta integral of `(x, Φ)` equals c times | |
| 97 | - the one of `(v, Ψ)` for matching forms. "Of Siegel–Weil type" is a description of the identity; the | |
| 98 | - source does not use that phrase. | |
| 99 | -- **85 square.** The statement gives C and κ, and for each i a c ≠ 0 with `‖c‖² = C · lValueProd` | |
| 100 | - and the two sums related by κ/c. So κ exists, and the code neither computes it nor shows it | |
| 101 | - nonzero — as the row says. | |
| 102 | -- **86 grid, path, turn.** The theorem `exists_transfersPeriods_first_last` moves *path data*, not | |
| 103 | - forms: for c ϑ ≠ 0 whose modulus is a constant times the product of the turn ratios and a power of | |
| 104 | - Nm Q, it carries Ψ′ on the first path to Ψ on the last, and multiplies the size bound by | |
| 105 | - `vectorCountBound ^ m^2`. The row's "the first path becomes the last by m² turns" is a compression | |
| 106 | - of that: m² is the number of turn ratios and the exponent of the bound, not a count of the steps | |
| 107 | - the proof takes. | |
| 108 | -- **87 auxiliary form.** The definition is the two conditions — `γ ϑ • Θ_ϑ y` integral away from | |
| 109 | - ℓ ∤ ϑ.normQ, and `Θ_1 y` of squared norm at every conjugate ≤ `exp (2 x₁² b²)`. "Completes a | |
| 110 | - family to a basis in the lower bound" is what the notion is for, not part of the definition; the | |
| 111 | - row is still true of the code. | |
| 112 | -- **88 descent pair.** `W` is the space that carries the signs and `FormV = I_{r+t}` is the standard | |
| 113 | - definite space (Rows.lean, the docstring of the j-th descent pair says "W = W_j of rank r, | |
| 114 | - V = I_{r+t}"), so "with V definite" is right, and `incl : r ↪ n` is the basis of W in that of V. | |
| 115 | -- **89 false lift.** The definition is `(e₀'s range) ⊓ (kernel of the Hecke polynomial of the split | |
| 116 | - place w at liftHeckeRoot) ⊓ Z`: the e₀-image killed at one root of the Hecke polynomial and inside | |
| 117 | - Z. "Orthogonal to the lifts" is how the users of it choose Z. | |
| 118 | -- **90 type.** `typeKernel` is the product of the discrete-series kernels at the finite places and | |
| 119 | - `Space.IsForm` is the space of forms whose type is the character e_λ; `HasParahoricType` is the | |
| 120 | - "local type" of the row. | |
| 121 | -- **91 gauge.** `weylGauge` and `GaugeLe` are the adelic gauge of a form, and gauge ≤ 1 is | |
| 122 | - integrality. "Unrelated" is right and worth saying: `Floors.Gauge` (a structure extending `Size` | |
| 123 | - in `namespace New.Floors`) and `Filling.maxGauge` are a different notion with the same word. | |
| 124 | -- **92 denominator, regular.** `DenominatorLe` bounds the denominators of the projections to Z "per | |
| 125 | - dimension and per row", and `IsRegularFamily` extends `HasSmallRatios`, whose docstring is almost | |
| 126 | - the row's words: the modulus of θι is prime to ℓ and, for 1 ≤ j ≤ m, the j-th powers and their | |
| 127 | - inverses have, for every ramified pair, inverse ratios of L-values of height at most x₁. | |
| 128 | -- **93 size.** `jetSize` is `log j! + j log (M/Ω)`. The row's reading of a size bound B is the | |
| 129 | - code's: the uses bound `(Θ 1 y).normSqAt σ` by `exp B` at every conjugate, or the Weyl norm of a | |
| 130 | - form at every point; the two are the same statement in the two places the code writes it. | |
| 131 | -- **94 pair.** `CriticalPair` is the integer z with 1 ≤ z ≤ t and the character ν of weight −c with | |
| 132 | - z ≤ c(v) ≤ 4b; `ratio` is the ratio of the two L-values with the Euler factors omitted exactly as | |
| 133 | - the row says; `IsRamified` is "exactly at the chosen places"; `IsMainPair` has `z ∈ Ioc D.m D.r` | |
| 134 | - ("m < z ≤ r") and a weight between `w_j + r − t` and `w_j`, "near κ_j". | |
| 135 | -- **95 normalisation.** `invGainFactor` is `∏ ℓ^(−g_ℓ)` over the small non-split primes *and* the | |
| 136 | - level N, and `normalizedPoincare` is documented as "the translate `s 𝔭` of | |
| 137 | - `𝔭 = c_B c_ss⁻¹ #Ḡ · e₀ 𝒫`", which is the row's formula word for word. This is the one row I | |
| 138 | - changed; see below. | |
| 139 | -- **96 determinant.** `liftDeterminant ϑ j` is `(u*u).det` for the lift at j taken from ϑ^j, and | |
| 140 | - `chainDeterminant ϑ` the same for the chain on the target forms — the row's two cases. | |
| 141 | -- **97 composite lift, chain datum.** `IsChainDatum` is the integrality and size of the coefficients | |
| 142 | - — zero outside ℓ ∤ Mq, inside the admissible translations, integral away from q with denominator 1, | |
| 143 | - and bounded by `M^(3 f m n_m²)` only when ϑ.Q is empty — which is the row's clause. The composite | |
| 144 | - lift glues the tensor in pairs of lifts, restricts to Y_m and multiplies by the product of powers | |
| 145 | - of the conjugates of π̄_N, as the row says, and the expansion in translates of the vacuum is the | |
| 146 | - theorem that a chain datum has a weak chain datum with the same composite lift. | |
| 147 | -- **98 idle direction.** `directionAmount` is `∑_σ (s_∞(κ(σ)) − s_fin(κ(σ), σ))`, the size of a jet | |
| 148 | - less its guaranteed divisibility, and the height theorem bounds `Z_j(1)/Z_j(ξ_ι^j)` by | |
| 149 | - `d · k · (log b · denominatorBudget − directionAmount)`. The row's "about k" is the one hedge I | |
| 150 | - left: the theorem charges exactly `D.k` directions, and `D.k = r + 1 − m`. | |
| 151 | -- **99 exceptional, marked.** `IsExceptional` is χ_K(p) = −1, p not ±1 mod the lifts, `o₀` odd and | |
| 152 | - ≤ `ceilLogLifts`, the least 𝔯 with `m ≤ p^𝔯`; so `o₀ ≤ ceilLogLifts` is "p^(e−1) < m". `IsMarked` | |
| 153 | - is the set Λ disjoint from its conjugate, each prime ideal induced from an a-place, of an | |
| 154 | - exceptional p < x₁; `IsFullMark` adds that each a-place or its conjugate is induced. | |
| 155 | -- **100 stably unramified.** The class `HasPrimitiveRoot5040` is a field containing a primitive | |
| 156 | - 5040-th root of unity, and its docstring says "In the comments such a field E is called stably | |
| 157 | - unramified" — the row's words are the code's. | |
| 158 | -- **101 polar.** `IsPolar` states the meromorphic continuation to re s > 0, the existence of the | |
| 159 | - Laplace transform for re s > 2, poles of order at most one, and the residues r ρ. The row's | |
| 160 | - "E = O(e^v)" is *not* a field of the definition: it is the hypothesis of the lemmas that integrate | |
| 161 | - `E(v) e^{(1−s)v}` (`integrableOn_laplace_of_abs_le`, `src/Lib/Analytic/EntireLFunction.lean:110`), | |
| 162 | - which the definition assumes rather than states. I left the row as it is, since it describes the | |
| 163 | - class of functions the word is used for, and noted it here. | |
| 164 | - | |
| 165 | -## What I changed | |
| 166 | - | |
| 167 | -One line of `GUIDE.md`. Row 95 said `g_ℓ = ⌊gain − error⌋`, and "error" is the guide's name for | |
| 168 | -`D.errorUnit`, the unit `f · a · (log b)³` of row 71 and of the table of sizes — while the code | |
| 169 | -subtracts `D.allowedLoss` (`src/New/UpperBound/Size/Estimates.lean:289`: twice `D.loss p` at a | |
| 170 | -non-split prime p < x₁, twice `m f b` at the level N, and 0 elsewhere). The row now writes | |
| 171 | -`g_ℓ = ⌊gain − D.allowedLoss⌋`, which is both what `D.gainExponent` does and the name the row was | |
| 172 | -missing. | |
| 173 | - | |
| 174 | -## What this does not show | |
| 175 | - | |
| 176 | -As #7 says, nothing here shows whether these sizes suit the argument. I read definitions, | |
| 177 | -statements and their docstrings, not proofs: a row can be true of a definition whose uses are not | |
| 178 | -what the row implies. Two names are not in `src` and I could not compare them beyond what the code | |
| 179 | -says: `HeightLe` is Tau Ceti's, taken by `export` (`src/New/Reduction/Lattices/Heights.lean:50`), | |
| 180 | -and `MvPolynomial.jetPairing` is in the library's `MvPolynomial` namespace, which is not in this | |
| 181 | -checkout, so its statement is unchecked; the project's uses of it are. Nothing here says the proof | |
| 182 | -is right or wrong. | |
| 183 | - | |
| 184 | -## Next | |
| 185 | - | |
| 186 | -The third unit is rows 102–107 of the glossary, then the table of sizes in section 3 (which the | |
| 187 | -issue keeps as a fourth unit); both are the same reading, and `check.py` takes the range of rows in | |
| 188 | -`FIRST` and `LAST` at the top. | |
+2 −3 scienceslack.json View file
| @@ -57,7 +57,7 @@ | ||
| 57 | 57 | "method": "reproduction", |
| 58 | 58 | "by": "maintainers", |
| 59 | 59 | "parties": 1, |
| 60 | - "gate": false | |
| 60 | + "gate": true | |
| 61 | 61 | } |
| 62 | 62 | }, |
| 63 | 63 | "approval": "first-time", |
| @@ -207,6 +207,5 @@ | ||
| 207 | 207 | "T-6": "从素数和的单侧估计到零点:写成一章", |
| 208 | 208 | "T-7": "中文阅读路径" |
| 209 | 209 | } |
| 210 | - }, | |
| 211 | - "human_review": false | |
| 210 | + } | |
| 212 | 211 | } |