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 Mathlib.Algebra.BigOperators.Group.Finset.Basic |
| 4 | public import Mathlib.Algebra.GroupWithZero.Defs |
| 5 | import Mathlib.Algebra.GroupWithZero.Units.Basic |
| 6 | import TauCeti.Algebra.BigOperators.ZPow |
| 7 | |
| 8 | /-! |
| 9 | # Products of integer powers |
| 10 | -/ |
| 11 | |
| 12 | @[expose] public section |
| 13 | |
| 14 | open scoped BigOperators |
| 15 | |
| 16 | /-- For a nonzero element `s` of a commutative group with zero, a power of `s` whose integer |
| 17 | exponent is a finite sum is the product of the powers of `s`. -/ |
| 18 | theorem New.DiscreteSeries.zpow_sum_of_ne_zero {ι K : Type*} [CommGroupWithZero K] {s : K} |
| 19 | (hs : s ≠ 0) (t : Finset ι) (f : ι → ℤ) : s ^ ∑ i ∈ t, f i = ∏ i ∈ t, s ^ f i := |
| 20 | (Finset.prod_zpow_eq_zpow_sum_of_isUnit t hs.isUnit f).symm |