Riemann hypothesis: the Lean proof, cleaned up together
The 2026 Lean proof of the Riemann hypothesis and GRH, machine-checked by others, not refereed, no word from Clay; cleaned up together: more readable, faster to build, the theorems unchanged

docs(Reduction/Lattices): put the docstring of ColengthDvd.of_le above @[simp]
Browse filesThe first build (job 6822) failed on 367e349: a docstring between an attribute and its declaration is not a comment to Lean (Colength.lean:44:7: unexpected token '/--'). The docstring now stands above the attribute, as the repository's other simp lemmas do. Part of #4
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
ci/docs
Details
+16 −4 routes/p3-reduction-lattices/README.md View file
| @@ -29,12 +29,16 @@ corrected one, what was wrong. | ||
| 29 | 29 | |
| 30 | 30 | - Code untouched: with the block and line comments removed, each of the three files is as on |
| 31 | 31 | `main`, line for line. |
| 32 | +- Placement: each new docstring stands directly above its declaration, and above any attribute | |
| 33 | + (`of_le` carries `@[simp]`). A docstring between an attribute and its declaration is not a | |
| 34 | + comment to Lean: see the first build below. | |
| 32 | 35 | - Names: every declaration a docstring of the three files names in backticks exists. Those of this |
| 33 | 36 | repository by `git grep`; those of Tau Ceti by reading its source at the revision |
| 34 | 37 | `lake-manifest.json` pins (`2a9233e5`). |
| 35 | 38 | - `python3 checks/challenge.py .` ends with `ok`. |
| 36 | -- Not done: nothing was elaborated. There is no Lean on this machine, and none was installed, so | |
| 37 | - each docstring was read against the statement, not checked by Lean. | |
| 39 | +- Not done: nothing was elaborated here. There is no Lean on this machine, and none was installed, | |
| 40 | + so each docstring was read against the statement, and `build` is what says the files still | |
| 41 | + parse. | |
| 38 | 42 | |
| 39 | 43 | ## Seen and left |
| 40 | 44 | |
| @@ -47,8 +51,16 @@ corrected one, what was wrong. | ||
| 47 | 51 | |
| 48 | 52 | ## What happened |
| 49 | 53 | |
| 50 | -The change is pushed; `challenge` and `build` have not answered yet. | |
| 54 | +- `challenge` passed on the first push (job 6821, on `367e349`). | |
| 55 | +- `build` failed on it (job 6822, 328 s): `src/New/Reduction/Lattices/Colength.lean:44:7: | |
| 56 | + unexpected token '/--'; expected 'lemma'`. The new docstring of `ColengthDvd.of_le` stood between | |
| 57 | + `@[simp]` and `lemma`, where Lean expects the declaration. That was this route's error: the | |
| 58 | + comments-only check above cannot see where a comment stands. The docstring now stands above | |
| 59 | + `@[simp]`, as the repository's other simp lemmas do. | |
| 60 | +- The push after that moves one docstring and changes these notes; `build` on it is what says the | |
| 61 | + three files parse. | |
| 51 | 62 | |
| 52 | 63 | ## Next |
| 53 | 64 | |
| 54 | -Read `challenge` and `build` on the head, then open the pull request (Part of #4). | |
| 65 | +The pull request is open (#60, Part of #4). Read `challenge` and `build` on its head: the push | |
| 66 | +that moves the docstring of `of_le` above `@[simp]`. | |
+1 −1 src/New/Reduction/Lattices/Colength.lean View file
| @@ -41,9 +41,9 @@ def ColengthDvd : Prop := | ||
| 41 | 41 | ∀ (n : ℕ) (Φ : Fin n → V), (∀ k : Fin n, Φ k ∈ M) → ∃ m : Matrix (Fin n) (Fin n) O, |
| 42 | 42 | det m ∣ z ∧ ∀ i : Fin n, ∑ k : Fin n, m i k • Φ k ∈ N |
| 43 | 43 | |
| 44 | -@[simp] | |
| 45 | 44 | /-- If `M ≤ N`, then `ColengthDvd M N z` for every `z`: every vector of `M` lies in `N` already, |
| 46 | 45 | so the identity matrix, whose determinant is `1`, carries any family. -/ |
| 46 | +@[simp] | |
| 47 | 47 | lemma ColengthDvd.of_le (hMN : M ≤ N) : ColengthDvd M N z := fun _ _ hΦ ↦ |
| 48 | 48 | ⟨1, by simp, fun i ↦ by simpa [Matrix.one_apply] using hMN (hΦ i)⟩ |
| 49 | 49 | |