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 | import TauCeti.MeasureTheory.Measure.FiberMeasure |
| 4 | public import Lib.Speed |
| 5 | |
| 6 | /-! |
| 7 | # Measures below a fibre measure |
| 8 | |
| 9 | Let `π : X → B` be a map, `μ` a measure on `X` and `ν` a measure on `B`. For a submersion of |
| 10 | manifolds with smooth positive measures, the fibre measures `dμ / dν` on the fibres of `π` are |
| 11 | determined by two properties: integrating over the fibres and then against `ν` is integrating |
| 12 | against `μ`, and the fibre integrals of a continuous function of compact support are continuous on |
| 13 | `B`. This file does not construct them. It defines the relation of being at most the fibre measure |
| 14 | over a point and proves that it is kept by the usual operations on measures and maps. |
| 15 | |
| 16 | * `New.LeFibreMeasure`: a measure `l` is at most the fibre measure over a point `b`. |
| 17 | * `New.LeFibreMeasure.of_coordinates`: a parametrisation `ψ t p` of a part of `X` with |
| 18 | `π (ψ t p) = t` and a weight `w t p`, both continuous at `t = b` and dominated by `μ`, give such a |
| 19 | measure. |
| 20 | * `New.LeFibreMeasure.trans`: the relation for a pair of maps follows from the relations for the two |
| 21 | steps, the second map being continuous. |
| 22 | * `New.LeFibreMeasure.map_prod`: the relation is kept by a family of maps that respect `π`. |
| 23 | |
| 24 | ## Relation to the literature |
| 25 | |
| 26 | Fibre measures: Weil, Sur la formule de Siegel dans la théorie des groupes classiques, no. 6. |
| 27 | -/ |
| 28 | |
| 29 | @[expose] public section |
| 30 | |
| 31 | namespace New |
| 32 | |
| 33 | open MeasureTheory Measure Filter Topology Set ENNReal |
| 34 | |
| 35 | variable {X X' B B' P : Type*} [TopologicalSpace X] [MeasurableSpace X] [TopologicalSpace X'] |
| 36 | [MeasurableSpace X'] [TopologicalSpace B] [MeasurableSpace B] [TopologicalSpace B'] |
| 37 | [MeasurableSpace B'] [MeasurableSpace P] |
| 38 | |
| 39 | /-- The measure `l` is at most the fibre measure `dμ / dν` of the map `π : X → B` over the point |
| 40 | `b`: for a lower semicontinuous `K ≥ 0`, a bound `∫_{π ∈ S} K dμ ≤ C ν(S)` for all open sets `S` |
| 41 | contained in some fixed neighbourhood of `b` gives `∫ K dl ≤ C`. -/ |
| 42 | def LeFibreMeasure (μ : Measure X) (ν : Measure B) (π : X → B) (b : B) (l : Measure X) : Prop := |
| 43 | ∀ K : X → ℝ≥0∞, LowerSemicontinuous K → ∀ C : ℝ≥0∞, |
| 44 | (∀ᶠ S : Set B in (𝓝 b).smallSets, IsOpen S → ∫⁻ x : X in π ⁻¹' S, K x ∂μ ≤ C * ν S) → |
| 45 | ∫⁻ x : X, K x ∂l ≤ C |
| 46 | |
| 47 | namespace LeFibreMeasure |
| 48 | |
| 49 | variable {μ μ' l l' : Measure X} {ν : Measure B} {ν' : Measure B'} {π π' : X → B} {b : B} |
| 50 | |
| 51 | /-- Let `(t, p) ↦ ψ t p`, for `t` in a neighbourhood `V` of `b`, parametrise a part of `X` so that |
| 52 | `π (ψ t p) = t` for almost every `p` with `w t p ≠ 0` and `μ` is at least `w t p dν(t) dρ(p)` there. |
| 53 | If `ψ` and `w` are continuous in `t` at `b` for almost every `p`, then the image of `w b p dρ(p)` |
| 54 | under `ψ b` is at most the fibre measure `dμ / dν` of `π` over `b`, in the sense of |
| 55 | `LeFibreMeasure`: a bound `C ν(S)` on the integrals over small `π ⁻¹' S` of a lower semicontinuous |
| 56 | `K ≥ 0` bounds its integral for this image by `C`. -/ |
| 57 | theorem of_coordinates [OpensMeasurableSpace X] [OpensMeasurableSpace B] [FirstCountableTopology B] |
| 58 | [ν.IsOpenPosMeasure] [IsLocallyFiniteMeasure ν] {ρ : Measure P} |
| 59 | {ψ : B → P → X} {w : B → P → ℝ≥0∞} {V : Set B} (hπ : Measurable π) |
| 60 | (hψ : Measurable ψ.uncurry) (hw : Measurable w.uncurry) (hV : V ∈ 𝓝 b) |
| 61 | (h_fibre : ∀ t ∈ V, ∀ᵐ p : P ∂ρ, w t p ≠ 0 → π (ψ t p) = t) |
| 62 | (h_cont : ∀ᵐ p : P ∂ρ, ContinuousAt (ψ · p) b ∧ ContinuousAt (w · p) b) |
| 63 | (h_le : ∀ K : X → ℝ≥0∞, Measurable K → |
| 64 | ∫⁻ t : B in V, ∫⁻ p : P, w t p * K (ψ t p) ∂ρ ∂ν ≤ ∫⁻ x : X, K x ∂μ) : |
| 65 | LeFibreMeasure μ ν π b ((ρ.withDensity (w b)).map (ψ b)) := |
| 66 | TauCeti.isLeFiberMeasure_iff.1 <| |
| 67 | hπ.isLeFiberMeasure_of_coordinates (ν.finiteAt_nhds b) (fun _ ↦ hψ.of_uncurry_left) |
| 68 | (fun _ ↦ hw.of_uncurry_left) hV h_fibre |
| 69 | (h_cont.mono fun _ ⟨hψ_c, hw_c⟩ ↦ ⟨hψ_c, hw_c.lowerSemicontinuousAt⟩) h_le |
| 70 | |
| 71 | /-- If `μ` is the image of `ν × ρ` under a map `φ`, continuous in the first variable at `b`, with |
| 72 | `π (φ (t, p)) = t`, then the image of `ρ` under `φ (b, ·)` is at most the fibre measure |
| 73 | `dμ / dν` of `π` over `b`, in the sense of `LeFibreMeasure`: a bound `C ν(S)` on the integrals over |
| 74 | small `π ⁻¹' S` of a lower semicontinuous `K ≥ 0` bounds its integral for this image by `C`. -/ |
| 75 | theorem of_measurePreserving [OpensMeasurableSpace X] [OpensMeasurableSpace B] |
| 76 | [FirstCountableTopology B] [ν.IsOpenPosMeasure] [IsLocallyFiniteMeasure ν] {ρ : Measure P} |
| 77 | [SFinite ρ] {φ : B × P → X} (hφ : MeasurePreserving φ (ν.prod ρ) μ) (hπ : Measurable π) |
| 78 | (h_fibre : ∀ (t : B) (p : P), π (φ (t, p)) = t) |
| 79 | (h_cont : ∀ p : P, ContinuousAt (fun t : B ↦ φ (t, p)) b) : |
| 80 | LeFibreMeasure μ ν π b (ρ.map fun p : P ↦ φ (b, p)) := |
| 81 | TauCeti.isLeFiberMeasure_iff.1 <| |
| 82 | hφ.isLeFiberMeasure hπ (ν.finiteAt_nhds b) (fun t ↦ .of_forall (h_fibre t)) (.of_forall h_cont) |
| 83 | |
| 84 | /-- The relation `LeFibreMeasure`, of being at most the fibre measure, is kept when `π` is changed |
| 85 | on a `μ`-null set. -/ |
| 86 | theorem congr (hl : LeFibreMeasure μ ν π b l) (hπ : π =ᵐ[μ] π') : LeFibreMeasure μ ν π' b l := |
| 87 | TauCeti.isLeFiberMeasure_iff.1 ((TauCeti.isLeFiberMeasure_iff.2 hl).congr hπ) |
| 88 | |
| 89 | /-- If `l` is at most the fibre measure `dμ / dν` of `π` over `b` (see `LeFibreMeasure`) and the |
| 90 | homeomorphism `e` of the base carries `ν` to `ν'`, then `l` is at most the fibre measure |
| 91 | `dμ / dν'` of `e ∘ π` over `e b`. -/ |
| 92 | theorem comp_homeomorph [BorelSpace B] [BorelSpace B'] (hl : LeFibreMeasure μ ν π b l) (e : B ≃ₜ B') |
| 93 | (he : MeasurePreserving e ν ν') : LeFibreMeasure μ ν' (e ∘ π) (e b) l := |
| 94 | TauCeti.isLeFiberMeasure_iff.1 ((TauCeti.isLeFiberMeasure_iff.2 hl).comp_homeomorph e he) |
| 95 | |
| 96 | /-- Fibre measures in two steps. If `l` is at most the fibre measure `dμ / dν` of `π` over `b`, and |
| 97 | `l'` is at most the fibre measure `dl / dν'` of a continuous map `π₂` over `b'`, then `l'` is at |
| 98 | most the fibre measure `dμ / d(ν × ν')` of `(π, π₂)` over `(b, b')` (see `LeFibreMeasure`). -/ |
| 99 | theorem trans {π₂ : X → B'} {b' : B'} [SFinite ν'] [OpensMeasurableSpace X] |
| 100 | (hl : LeFibreMeasure μ ν π b l) (hl' : LeFibreMeasure l ν' π₂ b' l') (hπ₂ : Continuous π₂) : |
| 101 | LeFibreMeasure μ (ν.prod ν') (fun x : X ↦ (π x, π₂ x)) (b, b') l' := |
| 102 | TauCeti.isLeFiberMeasure_iff.1 |
| 103 | ((TauCeti.isLeFiberMeasure_iff.2 hl).trans (TauCeti.isLeFiberMeasure_iff.2 hl') hπ₂) |
| 104 | |
| 105 | /-- Let `x ↦ φ (p, x)` be a measurable family of continuous maps `X → X'` with |
| 106 | `π₀ (φ (p, x)) = π x`. If `l` is at most the fibre measure of `π` for `μ` over `b` (see |
| 107 | `LeFibreMeasure`), then the image of `ρ × l` under `φ` is at most the fibre measure of `π₀` for the |
| 108 | image of `ρ × μ` over `b`. -/ |
| 109 | theorem map_prod [OpensMeasurableSpace X'] [OpensMeasurableSpace B] [FirstCountableTopology X] |
| 110 | [SFinite μ] [SFinite l] {ρ : Measure P} [SFinite ρ] {φ : P × X → X'} {π₀ : X' → B} |
| 111 | (hl : LeFibreMeasure μ ν π b l) (hφ : Measurable φ) |
| 112 | (h_cont : ∀ p : P, Continuous fun x : X ↦ φ (p, x)) (hπ₀ : Measurable π₀) |
| 113 | (h_comm : ∀ (p : P) (x : X), π₀ (φ (p, x)) = π x) : |
| 114 | LeFibreMeasure ((ρ.prod μ).map φ) ν π₀ b ((ρ.prod l).map φ) := |
| 115 | TauCeti.isLeFiberMeasure_iff.1 |
| 116 | ((TauCeti.isLeFiberMeasure_iff.2 hl).map_prod hφ (.of_forall h_cont) hπ₀ h_comm) |
| 117 | |
| 118 | /-- If `l` is at most the fibre measure of `π₀ ∘ φ` for `μ` over `b` (see `LeFibreMeasure`), with |
| 119 | `φ` continuous, then the image of `l` under `φ` is at most the fibre measure of `π₀` for the image |
| 120 | of `μ` over `b`. -/ |
| 121 | theorem map [OpensMeasurableSpace X'] [OpensMeasurableSpace B] {φ : X → X'} {π₀ : X' → B} |
| 122 | (hl : LeFibreMeasure μ ν (π₀ ∘ φ) b l) (hφ : Measurable φ) (h_cont : Continuous φ) |
| 123 | (hπ₀ : Measurable π₀) : LeFibreMeasure (μ.map φ) ν π₀ b (l.map φ) := |
| 124 | TauCeti.isLeFiberMeasure_iff.1 ((TauCeti.isLeFiberMeasure_iff.2 hl).map hφ h_cont hπ₀) |
| 125 | |
| 126 | end LeFibreMeasure |
| 127 | |
| 128 | end New |