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

| 1 | module |
| 2 | |
| 3 | public import Lib.Speed |
| 4 | |
| 5 | /-! |
| 6 | # The adjoint of a matrix for the Hermitian dot product |
| 7 | |
| 8 | The other files of `Lib` and `New`, except `Lib.Speed`, import this file, directly or not, and |
| 9 | with it the speed settings of `Lib.Speed`. |
| 10 | -/ |
| 11 | |
| 12 | @[expose] public section |
| 13 | |
| 14 | variable {A : Type*} [Semiring A] |
| 15 | |
| 16 | open Matrix in |
| 17 | /-- `Bᴴ` is the adjoint of `B` for the standard Hermitian form. -/ |
| 18 | lemma star_mulVec_dotProduct {m n : Type*} [Fintype m] [Fintype n] [StarRing A] (B : Matrix m n A) |
| 19 | (x : n → A) (y : m → A) : |
| 20 | star (B *ᵥ x) ⬝ᵥ y = star x ⬝ᵥ Bᴴ *ᵥ y := by |
| 21 | rw [star_mulVec, dotProduct_mulVec] |