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

P-4: fix the Reduction row of the reading-order table
Browse filesThe row said New/Reduction's five theorem files hold 'Three theorems and the main inequality', but Theorem C (integral_forms_long) is defined in New/Determinant/Twist/LongForms, not in New/Reduction. Make the row say 'Theorems A and B and the main inequality', matching the prose above it and the code.
Checks
ci/docs
Details
+1 −1 GUIDE.md View file
| @@ -18,7 +18,7 @@ The folders of `New` follow the order of the argument. The background results th | ||
| 18 | 18 | |
| 19 | 19 | | Topic | Folder | Subfolders and files, in order | |
| 20 | 20 | |---|---|---| |
| 21 | -| The theorem and its reduction | `New/Reduction` | From a one-sided bound to the zeros (`Zeros`); Lattices, colength and heights (`Lattices`); The data (`Data`); Three theorems and the main inequality (`PrimeSums`, `IntegralTargetForms`, `ShortAndEnough`, `MainInequality`, `OneSidedBound`) | | |
| 21 | +| The theorem and its reduction | `New/Reduction` | From a one-sided bound to the zeros (`Zeros`); Lattices, colength and heights (`Lattices`); The data (`Data`); Theorems A and B and the main inequality (`PrimeSums`, `IntegralTargetForms`, `ShortAndEnough`, `MainInequality`, `OneSidedBound`) | | |
| 22 | 22 | | Derivatives of theta functions | `New/Derivatives` | Derivatives that count primes (`Divisibility`); The field and its characters (`Field`); The formal group and the exponential factor (`FormalGroup`); The integral vacuum (`Vacuum`); The bound is attained (`Sharpness`) | |
| 23 | 23 | | Upper bound: a composite lift | `New/UpperBound` | Theta kernels between definite spaces (`Kernels`); Source forms, target forms and chains of lifts (`Objects`); The seesaw identity (`Seesaw`); Divisibility of the composite lift (`Divisibility`); Size of the composite lift; short source forms (`Size`); Elementary divisors of a Hecke operator (`ElementaryDivisors`) | |
| 24 | 24 | | Spanning: a second moment | `New/Spanning` | The second moment and the spanning theorem (`SecondMoment`); Equality of multiplicities (`Multiplicities`); Measures and Bessel functions (`Bessel`); Unfolding, and the proof of the moments (`Unfolding`); The remaining terms (`RemainingTerms`); The main term (`MainTerm`); Two frames at one place (`Frames`) | |
+30 −2 routes/p4-reduction-row/README.md View file
| @@ -10,7 +10,35 @@ reading order: `Zeros`, `Lattices`, `Data`, then `PrimeSums`, `IntegralTargetFor | ||
| 10 | 10 | would: each file exists, the declarations it names exist and say what the guide says. |
| 11 | 11 | Where the guide is wrong or out of date, I fix GUIDE.md. Reading only; no Lean change. |
| 12 | 12 | |
| 13 | +## Checked (2026-12-04) | |
| 14 | + | |
| 15 | +Each name the row gives, checked to exist and to say what the row says: | |
| 16 | + | |
| 17 | +- `New/Reduction/Zeros` — `Criterion.lean`, `PrimeError.lean`, `PrimeNumberTheorem.lean` | |
| 18 | + all exist; `Criterion.lean`'s head: "The one-sided criterion for a zero-free half-plane" | |
| 19 | + (`New.LFunction_ne_zero_of_primeRemainder_le`, Criterion.lean:88). Matches "From a | |
| 20 | + one-sided bound to the zeros". | |
| 21 | +- `New/Reduction/Lattices` — `Colength.lean`, `Heights.lean`, `TwistedLattice.lean` all | |
| 22 | + exist; `Colength.lean`'s head: "Colength of modules…". Matches "Lattices, colength and | |
| 23 | + heights". | |
| 24 | +- `New/Reduction/Data` — `FieldsAndPlaces.lean`, `AdmissibleData.lean`, | |
| 25 | + `LevelAndTwists.lean`, `Sizes.lean` all exist. Matches "The data". | |
| 26 | +- `PrimeSums.lean`, `IntegralTargetForms.lean`, `ShortAndEnough.lean`, | |
| 27 | + `MainInequality.lean`, `OneSidedBound.lean` — all exist. `ShortAndEnough.lean` defines | |
| 28 | + Theorem A (`span_short_integralRamified_eq_top` :209, | |
| 29 | + `indexLe_normalizedPoincare` :331) and Theorem B (`enough_forms` :405); | |
| 30 | + `MainInequality.lean` defines the main inequality (`star_inequality` :93). | |
| 31 | +- **One wrong statement, fixed:** the row said these five Reduction files hold "Three | |
| 32 | + theorems and the main inequality", but Theorem C (`integral_forms_long`) is defined in | |
| 33 | + `New/Determinant/Twist/LongForms` (LongForms.lean:277), not in `New/Reduction` — it is | |
| 34 | + only referenced from `MainInequality`. The prose above the table (GUIDE.md §1) already | |
| 35 | + places Theorem C correctly in `New/Determinant/Twist/LongForms`. Fixed the row to | |
| 36 | + "Theorems A and B and the main inequality" so the row and the prose agree. | |
| 37 | + | |
| 38 | +No Lean file, `Challenge.lean`, `src/Statements.lean`, `comparator.json`, `checks/`, | |
| 39 | +`lakefile.toml` or `lean-toolchain` touched. GUIDE.md only. | |
| 40 | + | |
| 13 | 41 | ## Next |
| 14 | 42 | |
| 15 | -Verify each file and declaration the row names, compare with the guide's wording, fix | |
| 16 | -GUIDE.md where wrong, then push and open a pull request (`Part of #5`). | |
| 43 | +Run `python3 checks/challenge.py .`, confirm the last line starts with `ok`, commit, | |
| 44 | +push, and open the pull request (`Part of #5`). Then set `status: done` in this note. | |