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.MeasureTheory.Group.Measure |
| 4 | |
| 5 | /-! |
| 6 | # Right invariance of pushforward measures |
| 7 | |
| 8 | A measurable surjective multiplicative homomorphism sends a right-invariant measure to a |
| 9 | right-invariant measure. This is used for the position group and the product of filling fibres. |
| 10 | -/ |
| 11 | |
| 12 | @[expose] public section |
| 13 | |
| 14 | open MeasureTheory Measure Function |
| 15 | |
| 16 | namespace New |
| 17 | |
| 18 | /-- The pushforward of a right-invariant measure by a measurable surjective multiplicative |
| 19 | homomorphism is right-invariant. -/ |
| 20 | lemma isMulRightInvariant_map {G H : Type*} [Mul G] [Mul H] |
| 21 | [MeasurableSpace G] [MeasurableSpace H] [MeasurableMul G] [MeasurableMul H] |
| 22 | {μ : Measure G} [IsMulRightInvariant μ] (f : G →ₙ* H) (hf : Measurable f) |
| 23 | (h_surj : Surjective f) : IsMulRightInvariant (Measure.map f μ) := by |
| 24 | refine ⟨fun h ↦ ?_⟩ |
| 25 | rw [Measure.map_map (measurable_mul_const _) hf] |
| 26 | obtain ⟨g, rfl⟩ := h_surj h |
| 27 | conv_rhs => rw [← map_mul_right_eq_self μ g] |
| 28 | rw [Measure.map_map hf (measurable_mul_const _)] |
| 29 | congr 2 |
| 30 | ext y |
| 31 | simp only [comp_apply, map_mul] |
| 32 | |
| 33 | end New |