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

S-5: notes — pull request #39, challenge and build passed
Browse files+33 −22 routes/s5-drop-hdvd-fieldsandplaces/README.md View file
| @@ -1,31 +1,41 @@ | ||
| 1 | 1 | --- |
| 2 | 2 | issue: 13 |
| 3 | -status: working | |
| 3 | +status: done | |
| 4 | 4 | --- |
| 5 | 5 | # s5-drop-hdvd-fieldsandplaces |
| 6 | 6 | |
| 7 | +**Pull request #39**, into `main`, at `3da49be`. | |
| 8 | + | |
| 7 | 9 | Unit: `src/New/Reduction/Data` (with its caller in `src/New/Reduction/PrimeSums.lean`). |
| 8 | 10 | |
| 9 | -Two lemmas there carry `(h_dvd : P.q₀ ∣ P.q₁ s)`, a hypothesis about the parameters that is true for | |
| 10 | -every `P` and `s` by definition: `P.q₁ s` is the abbreviation `P.q₀ * towerDeg s`, and | |
| 11 | -`New.Parameters.q₀_dvd_q₁` is exactly `P.q₀.dvd_mul_right (towerDeg s)`. Neither proof uses the | |
| 12 | -hypothesis except to feed it to `New.Parameters.placeClass`, which takes a divisor of `q₁` as an | |
| 13 | -argument. So both are stated at one generality less than they hold: | |
| 11 | +## What was wrong | |
| 12 | + | |
| 13 | +Two lemmas there carried `(h_dvd : P.q₀ ∣ P.q₁ s)`, a hypothesis about the parameters that is true | |
| 14 | +for every `P` and `s` by definition: `New.Parameters.q₁ s` is the abbreviation `P.q₀ * towerDeg s`, | |
| 15 | +and `New.Parameters.q₀_dvd_q₁` is exactly `P.q₀.dvd_mul_right (towerDeg s)`. Neither proof used the | |
| 16 | +hypothesis except to hand it to `New.Parameters.placeClass`, which takes a divisor of `q₁` as an | |
| 17 | +argument. So both were stated one step less generally than they hold: | |
| 14 | 18 | |
| 15 | 19 | - `New.Parameters.card_placeClass_eq_one_eq_towerDeg` |
| 16 | 20 | - `New.Parameters.placeClass_placeOfInt_eq_neg_one_iff` (`@[simp]`) |
| 17 | 21 | |
| 18 | -Change: drop the binder in both, write `P.q₀_dvd_q₁ s` where `placeClass` needs the divisor, keep | |
| 19 | -the docstrings in step, and pass no hypothesis at the caller `New.Data.card_aPlaces`. The proof of | |
| 20 | -the `@[simp]` lemma is untouched; the caller that uses it, `New.Data.mem_aPlaces_iff_of_mul_mem_bPlaces`, | |
| 21 | -needs no change either, since the two proofs of `P.q₀ ∣ P.q₁ D.towerExp` are the same proposition. | |
| 22 | +## What changed | |
| 23 | + | |
| 24 | +The binder is dropped in both, `P.q₀_dvd_q₁ s` is what `placeClass` is fed, the docstrings lose their | |
| 25 | +"suppose `q₀ ∣ q₁`", and the caller `New.Data.card_aPlaces` passes no hypothesis. The proof of the | |
| 26 | +`@[simp]` lemma is untouched; the caller that uses it, `New.Data.mem_aPlaces_iff_of_mul_mem_bPlaces`, | |
| 27 | +needs no change, since two proofs of `P.q₀ ∣ P.q₁ D.towerExp` are the same proposition. | |
| 22 | 28 | |
| 23 | -## How to check | |
| 29 | +## Verdicts, on `3da49be` | |
| 24 | 30 | |
| 25 | - python3 checks/challenge.py . # ok | |
| 26 | - git diff origin/main -- src/New/Reduction | |
| 31 | +- `challenge`: success — "ok: 3 challenge files and the build configuration as approved; 809 Lean | |
| 32 | + files, 484842 lines, toolchain leanprover/lean4:v4.37.0-rc1". | |
| 33 | +- `build`: success — "ok: lake build passes with no sorry; 5 theorem(s) report propext, | |
| 34 | + Classical.choice, Quot.sound only". | |
| 35 | +- `replay`: pending, as it is for every pull request until the maintainer's round. | |
| 27 | 36 | |
| 28 | -No Lean on this machine, so nothing was compiled here: `build` judges it. | |
| 37 | +No Lean on this machine, so nothing was compiled locally: `build` was the first compile of this | |
| 38 | +change, and it is what says the changed modules compile and that no `sorry` came in. | |
| 29 | 39 | |
| 30 | 40 | ## What I looked for, and threw away |
| 31 | 41 | |
| @@ -33,14 +43,15 @@ A scan of every `theorem`/`lemma` in `src/Lib` and `src/New` for an explicit hyp | ||
| 33 | 43 | occurs nowhere after its binder gave candidates, but most were not hypotheses at all (`∃` witnesses, |
| 34 | 44 | set-builder subtypes) or were used without being named: `grind`, `simpa` (= `simp` then |
| 35 | 45 | `assumption`), `simp [*]`, `lia`, `gcongr`, `fun_prop` and `simp`'s own discharger all read the local |
| 36 | -context, so "the name does not appear" is not enough. `src/New/Congruences/Lifting/LongGap.lean:86` | |
| 37 | -(`h_le`, used by `by grind`) and `src/Lib/Analytic/EntireLFunction.lean:110` (`hE`, used by | |
| 38 | -`by fun_prop`) are two examples of that trap. What is left of a scan without a compiler is a | |
| 39 | -hypothesis that follows from the definitions, which is what this route does. | |
| 46 | +context, so "the name does not appear" is not enough. | |
| 47 | +`src/New/Congruences/Lifting/LongGap.lean:86` (`h_le`, used by `by grind`) and | |
| 48 | +`src/Lib/Analytic/EntireLFunction.lean:110` (`hE`, used by `by fun_prop`) are two examples of that | |
| 49 | +trap. What survives a scan without a compiler is a hypothesis that follows from the definitions, | |
| 50 | +which is what this route does. | |
| 40 | 51 | |
| 41 | 52 | ## Next |
| 42 | 53 | |
| 43 | -Run `build` on this branch, and if it is green, the maintainer's replay and merge. The same scan is | |
| 44 | -worth doing in `src/New/Reduction/Data`'s sibling folders — the other three candidates found there | |
| 45 | -(`Lifting/SafeMoves.lean`, `Lifting/LongGap.lean`, `Lifting/CupProductBound.lean`) need a compiler | |
| 46 | -to settle, since their bodies contain a context-reading tactic. | |
| 54 | +Nothing here: the merge waits for the maintainer's replay of #39. Other folders of `src/New/Reduction` | |
| 55 | +are still free under #13 — the three candidates the same scan left in `src/New/Congruences/Lifting` | |
| 56 | +(`SafeMoves.lean`, `LongGap.lean`, `CupProductBound.lean`) need a machine with Lean to settle, since | |
| 57 | +their proofs contain a context-reading tactic. | |