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 Mathlib.CategoryTheory.Countable |
| 4 | import TauCeti.Topology.Algebra.Group.Units |
| 5 | import TauCeti.Topology.Instances.Matrix |
| 6 | public import Lib.DiscreteSeries.Bruhat.ComplexPlace |
| 7 | public import Lib.General.Measure.FibreMeasure |
| 8 | import Lib.Adelic.Adeles.AdditiveCharacter |
| 9 | import Lib.Base |
| 10 | import Lib.DiscreteSeries.Bessel.UnipotentHaarMeasure |
| 11 | import Lib.DiscreteSeries.Haar.GramPolar |
| 12 | |
| 13 | /-! |
| 14 | # Measures of a floor below fibre measures, at the place ℂ |
| 15 | |
| 16 | The group `New.Shape.G₁` is the unitary group of the complex form `h` (Gram matrix `𝔰.J₁`) with |
| 17 | basis `e_a`, `x_i` (`i : κ`), `z`, `e*_a`: `ϱ` hyperbolic pairs `e_a, e*_a`, the `x_i` orthonormal |
| 18 | and `h(z, z) = -1`. The pair of index `a` has floor `a`, `z` has floor `ϱ` and the `x_i` have floor |
| 19 | `ϱ + 1` (`New.Floors.FloorGroups.floorOf`); `V_b`, for a floor `b : Fin 𝔰.n` (so `b ≤ ϱ`), is |
| 20 | spanned by the basis vectors of floor at least `b`; `oppositeIndex` exchanges the indices of `e_a` |
| 21 | and `e*_a`. |
| 22 | |
| 23 | A vector `y` is chosen with given products with earlier basis vectors and with a given norm |
| 24 | `h(y, y)`. Here `New.LeFibreMeasure μ ν π b l` says that the measure `l` is at most the fibre |
| 25 | measure `dμ / dν` of the map `π` over the point `b`. |
| 26 | |
| 27 | ## Main definitions and results |
| 28 | |
| 29 | * `New.Floors.leFiberMeasure_frameVector`: for the frame vector of a floor, half the quadric measure |
| 30 | of the floor is at most the fibre measure. |
| 31 | * `New.Floors.leFiberMeasure_dualVector`: for the dual vector, half the measure of the Heisenberg |
| 32 | group of the floor is at most the fibre measure. |
| 33 | |
| 34 | The factor one half arises because these measures are quotients by `d(h(y, y) / 2)`. The last |
| 35 | section proves that the measures of the Heisenberg groups are invariant under inversion, as is the |
| 36 | Haar measure of the unitary group of the span of the `x_i`, carried into `G₁`. |
| 37 | |
| 38 | Notions from other files: |
| 39 | * `New.Floors.HyperbolicBasis.floorQuadricMeasure`: The measure on a quadric in V_b: the image of |
| 40 | `New.Floors.Place.quadricMeasure` with parameter β under the basis `F.floorBasis b`. |
| 41 | * `New.Floors.Place.heisenbergMeasure`: The measure on the Heisenberg group of floor `a`: the image |
| 42 | of `dv` times the skew measure under the map that sends `(v, β)` to the isometry with |
| 43 | `e*_a ↦ e*_a + v + (β - h(v, v) / 2) e_a`. For `a ≥ ϱ` it is the unit mass at `1`. |
| 44 | * `New.Shape.besselFrame`: The frame `(e_0, …, e_(ϱ-1), z)`, with one vector on each floor up to |
| 45 | `ϱ`. |
| 46 | * `New.Floors.complexPlace`: The place `ℂ`: `τ = 1/2`, `δ = i/2`, `ν` the image of Lebesgue measure |
| 47 | under `r ↦ r i`, modulus `‖x‖ ^ 2`, character `x ↦ exp (x - x̄)` and constant `c = π ^ 2`. |
| 48 | |
| 49 | ## Relation to the literature |
| 50 | |
| 51 | Known; see `Lib.DiscreteSeries.Bruhat.ComplexPlace` for sources. |
| 52 | -/ |
| 53 | |
| 54 | @[expose] public section |
| 55 | |
| 56 | namespace New.Floors |
| 57 | |
| 58 | open Matrix MeasureTheory Measure RealPlace FloorGroups |
| 59 | |
| 60 | variable {𝔰 : Shape} |
| 61 | |
| 62 | /-! ### Linear conditions and quadrics -/ |
| 63 | |
| 64 | /-- For the matrix `inclMatrix ℂ f` of the map that sends the basis vector at `a` to the one at |
| 65 | `f a`, the image of a vector `(t, v)` under the matrix of `f ⊕ g` is the sum of the images of |
| 66 | `t` and `v`. -/ |
| 67 | lemma inclMatrix_sumElim_mulVec {α β ι : Type} [Fintype α] [Fintype β] [DecidableEq ι] |
| 68 | (f : α → ι) (g : β → ι) (t : α → ℂ) (v : β → ℂ) : |
| 69 | inclMatrix ℂ (Sum.elim f g) *ᵥ Sum.elim t v = inclMatrix ℂ f *ᵥ t + inclMatrix ℂ g *ᵥ v := |
| 70 | funext fun _ ↦ Fintype.sum_sum_type _ |
| 71 | |
| 72 | /-- Let `f` and `g` together enumerate the index set `ι`. On the vectors whose coordinates along |
| 73 | `f` are `c`, Lebesgue measure in the coordinates along `g` is at most the fibre measure of |
| 74 | `y ↦ y ∘ f` over `c`. -/ |
| 75 | lemma leFiberMeasure_coords {α β ι : Type} [Fintype α] [Fintype β] [Fintype ι] [DecidableEq α] |
| 76 | [DecidableEq ι] {f : α → ι} {g : β → ι} (hf : f.Injective) |
| 77 | (hg : g.Injective) (h_compl : Set.range g = (Set.range f)ᶜ) (c : α → ℂ) : |
| 78 | LeFibreMeasure volume volume (fun y : ι → ℂ ↦ y ∘ f) c |
| 79 | (volume.map fun v : β → ℂ ↦ inclMatrix ℂ f *ᵥ c + inclMatrix ℂ g *ᵥ v) := by |
| 80 | have h_ne (a : α) (b : β) : f a ≠ g b := fun h ↦ h_compl.subset ⟨b, rfl⟩ ⟨a, h⟩ |
| 81 | have h_bij : (Sum.elim f g).Bijective := by |
| 82 | refine ⟨hf.sumElim hg h_ne, Set.range_eq_univ.1 ?_⟩ |
| 83 | rw [Set.Sum.elim_range, h_compl, Set.union_compl_self] |
| 84 | let φ (p : (α → ℂ) × (β → ℂ)) : ι → ℂ := inclMatrix ℂ f *ᵥ p.1 + inclMatrix ℂ g *ᵥ p.2 |
| 85 | have h_vol : MeasurePreserving φ := by |
| 86 | simp only [φ, ← inclMatrix_sumElim_mulVec] |
| 87 | exact (measurePreserving_inclMatrix (.ofBijective _ h_bij)).comp measurePreserving_sumElim |
| 88 | have h_fibre (t : α → ℂ) (v : β → ℂ) : φ (t, v) ∘ f = t := by |
| 89 | ext a |
| 90 | simp [φ, inclMatrix, mulVec, dotProduct, Matrix.one_apply, hf.eq_iff, h_ne a] |
| 91 | exact .of_measurePreserving h_vol (by fun_prop) h_fibre |
| 92 | fun _ ↦ Continuous.continuousAt (by fun_prop) |
| 93 | |
| 94 | lemma involutive_oppositeIndex : (oppositeIndex (𝔰 := 𝔰)).Involutive := |
| 95 | oppositeIndex_oppositeIndex |
| 96 | |
| 97 | /-- The image of the indices with property `p` under the involution `oppositeIndex`, which |
| 98 | exchanges `e_a` with `e*_a`, consists of the indices whose opposite has property `p`. -/ |
| 99 | lemma range_oppositeIndex_val (p : 𝔰.BesselIndex → Prop) : |
| 100 | (Set.range fun i : Subtype p ↦ oppositeIndex i.val) = |
| 101 | {i : 𝔰.BesselIndex | p (oppositeIndex i)} := |
| 102 | (Set.range_comp oppositeIndex Subtype.val).trans <| by |
| 103 | rw [Subtype.range_coe_subtype, involutive_oppositeIndex.image_eq_preimage_symm] |
| 104 | rfl |
| 105 | |
| 106 | /-- The skew element `i t / 2`, which indexes the quadric `h(v, v) = t` at the place `ℂ`. -/ |
| 107 | noncomputable def skewOfLevel (t : ℝ) : skewAdjoint ℂ := |
| 108 | ⟨(t / 2 : ℝ) * .I, by simp [skewAdjoint.mem_iff]⟩ |
| 109 | |
| 110 | @[fun_prop] |
| 111 | lemma continuous_skewOfLevel : Continuous skewOfLevel := by fun_prop [skewOfLevel] |
| 112 | |
| 113 | /-- The map `t ↦ i t / 2` carries `dt / 2` to the measure of the place `ℂ` on the skew elements. -/ |
| 114 | lemma measurePreserving_skewOfLevel : |
| 115 | MeasurePreserving skewOfLevel ((2 : ENNReal)⁻¹ • volume) complexPlace.skewMeasure := by |
| 116 | have h_half : MeasurePreserving (fun t : ℝ ↦ t / 2) ((2 : ENNReal)⁻¹ • volume) volume := by |
| 117 | refine ⟨by fun_prop, ?_⟩ |
| 118 | simp (disch := fun_prop) only [Measure.map_smul] |
| 119 | simp [div_eq_inv_mul, Real.map_volume_mul_left, smul_smul, ENNReal.inv_mul_cancel] |
| 120 | have h_embed : MeasurePreserving |
| 121 | (fun r : ℝ ↦ (⟨r * .I, by simp [skewAdjoint.mem_iff]⟩ : skewAdjoint ℂ)) |
| 122 | volume complexPlace.skewMeasure := |
| 123 | ⟨by fun_prop, rfl⟩ |
| 124 | exact h_embed.comp h_half |
| 125 | |
| 126 | /-- Multiplication of a real number `Γ` by the skew unit `δ = i / 2` of the place `ℂ` gives |
| 127 | `skewOfLevel Γ = i Γ / 2`. -/ |
| 128 | lemma skewUnitMul_eq_skewOfLevel (Γ : ℂ) (hΓ : star Γ = Γ) : |
| 129 | Place.skewUnitMul Γ hΓ = skewOfLevel Γ.re := by |
| 130 | have h_real : (Γ.re : ℂ) = Γ := Complex.conj_eq_iff_re.1 hΓ |
| 131 | ext |
| 132 | simp [skewOfLevel, h_real, field] |
| 133 | |
| 134 | /-- A complex number is `t / 2 + β` with `t` real and `β` skew, and Lebesgue measure is |
| 135 | `dt dν(β) / 2` for the measure `ν` on the skew elements. -/ |
| 136 | lemma measurePreserving_half_add : |
| 137 | MeasurePreserving (fun p : ℝ × skewAdjoint ℂ ↦ (p.1 / 2 + p.2 : ℂ)) |
| 138 | (((2 : ENNReal)⁻¹ • volume).prod complexPlace.skewMeasure) volume := by |
| 139 | have h_half (t : ℝ) : |
| 140 | (t / 2 : ℂ) = TraceOne.element * complexPlace.skewUnit⁻¹.val * (skewOfLevel t).val := by |
| 141 | simp [skewOfLevel, field] |
| 142 | simp only [h_half] |
| 143 | exact complexPlace.measurePreserving_split.comp (measurePreserving_skewOfLevel.prod (.id _)) |
| 144 | |
| 145 | /-- Let `h` be the orthogonal sum of a hyperbolic plane and a hermitian form `T` (its Gram matrix is |
| 146 | `planeSumGram T`). Half the measure `quadricMeasure` of the quadric `h(v, v) = t₀`, which is indexed |
| 147 | by `skewOfLevel t₀ = i t₀ / 2`, is at most the fibre measure `dv / dh(v, v)` (`LeFibreMeasure`) |
| 148 | over `t₀`. -/ |
| 149 | lemma leFiberMeasure_quadricMeasure {ι : Type} [Fintype ι] {T : Matrix ι ι ℂ} |
| 150 | (hT : Tᴴ = T) (t₀ : ℝ) : |
| 151 | LeFibreMeasure volume volume (fun v : Fin 2 ⊕ ι → ℂ ↦ (star v ⬝ᵥ planeSumGram T *ᵥ v).re) t₀ |
| 152 | ((2 : ENNReal)⁻¹ • Place.quadricMeasure T (skewOfLevel t₀)) := by |
| 153 | have h_unit : ∀ᵐ p : (ℂ × (ι → ℂ)) × skewAdjoint ℂ ∂volume.prod complexPlace.skewMeasure, |
| 154 | IsUnit p.1.1 := |
| 155 | quasiMeasurePreserving_fst.ae (quasiMeasurePreserving_fst.ae Place.ae_isUnit) |
| 156 | -- The flat charts of the quadrics `h(v, v) = t` are coordinates in which the form is `t`. |
| 157 | let ψ (t : ℝ) : (ℂ × (ι → ℂ)) × skewAdjoint ℂ → Fin 2 ⊕ ι → ℂ := |
| 158 | Place.flatChart T (skewOfLevel t) |
| 159 | have h_form (t : ℝ) (p : (ℂ × (ι → ℂ)) × skewAdjoint ℂ) (hp : IsUnit p.1.1) : |
| 160 | (star (ψ t p) ⬝ᵥ planeSumGram T *ᵥ ψ t p).re = t := by |
| 161 | rw [Place.form_flatChart hT hp] |
| 162 | simp [skewOfLevel, field] |
| 163 | have h_cont (p : (ℂ × (ι → ℂ)) × skewAdjoint ℂ) : Continuous fun t : ℝ ↦ ψ t p := by |
| 164 | simp only [ψ, Place.flatChart, continuous_pi_iff, Sum.forall, Sum.elim_inl, Sum.elim_inr] |
| 165 | exact ⟨fun _ ↦ by fun_prop, fun _ ↦ continuous_const⟩ |
| 166 | have h_integral (K : (Fin 2 ⊕ ι → ℂ) → ENNReal) (hK : Measurable K) : |
| 167 | ∫⁻ t in Set.univ, ∫⁻ p, 2⁻¹ * K (ψ t p) ∂volume.prod complexPlace.skewMeasure = |
| 168 | ∫⁻ v, K v := by |
| 169 | have h_inner : Measurable fun β ↦ ∫⁻ v, K v ∂Place.quadricMeasure T β := by |
| 170 | simp (disch := fun_prop) only [lintegral_map] |
| 171 | fun_prop |
| 172 | calc ∫⁻ t in Set.univ, ∫⁻ p, 2⁻¹ * K (ψ t p) ∂volume.prod complexPlace.skewMeasure |
| 173 | = ∫⁻ t, ∫⁻ v, K v ∂Place.quadricMeasure T (skewOfLevel t) ∂(2 : ENNReal)⁻¹ • volume := by |
| 174 | simp (disch := first | fun_prop | finiteness) only [ψ, restrict_univ, |
| 175 | lintegral_const_mul', lintegral_map, lintegral_smul_measure, smul_eq_mul] |
| 176 | _ = ∫⁻ β, ∫⁻ v, K v ∂Place.quadricMeasure T β ∂complexPlace.skewMeasure := |
| 177 | measurePreserving_skewOfLevel.lintegral_comp h_inner |
| 178 | _ = ∫⁻ v, K v := |
| 179 | ((Place.isDisintegration_quadricMeasure hT).lintegral_eq (K ·.2) (by fun_prop)).symm |
| 180 | have h_meas : Measurable ψ.uncurry := by fun_prop |
| 181 | have h_form_ae (t : ℝ) : ∀ᵐ p ∂volume.prod complexPlace.skewMeasure, |
| 182 | (2 : ENNReal)⁻¹ ≠ 0 → (star (ψ t p) ⬝ᵥ planeSumGram T *ᵥ ψ t p).re = t := |
| 183 | h_unit.mono fun p hp _ ↦ h_form t p hp |
| 184 | simp (disch := fun_prop) only [← Measure.map_smul] |
| 185 | rw [← withDensity_const] |
| 186 | exact .of_coordinates (ψ := ψ) (w := fun _ _ ↦ 2⁻¹) (by fun_prop) h_meas measurable_const |
| 187 | Filter.univ_mem (fun t _ ↦ h_form_ae t) |
| 188 | (.of_forall fun p ↦ ⟨(h_cont p).continuousAt, continuousAt_const⟩) |
| 189 | fun K hK ↦ (h_integral K hK).le |
| 190 | |
| 191 | /-- Let `h` be the form with Gram matrix `J₁` and `V_b` the span of the basis vectors of floor at |
| 192 | least `b`, with Lebesgue measure `floorVolume b`. Half the measure `floorQuadricMeasure` of the |
| 193 | quadric `h(y, y) = t₀` in `V_b`, indexed by `skewOfLevel t₀ = i t₀ / 2` and taken in the |
| 194 | hyperbolic basis `complexBasis 𝔰`, is at most the fibre measure `dy / dh(y, y)` (`LeFibreMeasure`) |
| 195 | on `V_b`. -/ |
| 196 | lemma leFiberMeasure_floorQuadric (b : Fin 𝔰.n) (t₀ : ℝ) : |
| 197 | LeFibreMeasure (floorVolume b) volume |
| 198 | (fun y : 𝔰.BesselIndex → ℂ ↦ (star y ⬝ᵥ 𝔰.J₁ *ᵥ y).re) t₀ |
| 199 | ((2 : ENNReal)⁻¹ • (complexBasis 𝔰).floorQuadricMeasure b (skewOfLevel t₀)) := by |
| 200 | have h_herm : (hyperbolicGram (FloorPairs b 0) (1 : Matrix {i // i ≠ 𝔰.k₀} {i // i ≠ 𝔰.k₀} ℂ))ᴴ = |
| 201 | hyperbolicGram (FloorPairs b 0) 1 := by |
| 202 | simp [conjTranspose_hyperbolicGram] |
| 203 | have h_smul (μ : Measure _) : ((2 : ENNReal)⁻¹ • μ).map ((complexBasis 𝔰).floorBasis b *ᵥ ·) = |
| 204 | (2 : ENNReal)⁻¹ • μ.map ((complexBasis 𝔰).floorBasis b *ᵥ ·) := by |
| 205 | simp (disch := fun_prop) only [Measure.map_smul] |
| 206 | rw [← (complexBasis 𝔰).map_floorBasis_volume b, ← h_smul] |
| 207 | -- The floor basis pulls the form of `J₁` back to a plane plus the hyperbolic form. |
| 208 | have h_form (v : Fin 2 ⊕ FloorPairs b 0 ⊕ {i // i ≠ 𝔰.k₀} ⊕ FloorPairs b 0 → ℂ) : |
| 209 | (star v ⬝ᵥ planeSumGram (hyperbolicGram (FloorPairs b 0) 1) *ᵥ v).re = |
| 210 | (star ((complexBasis 𝔰).floorBasis b *ᵥ v) ⬝ᵥ |
| 211 | 𝔰.J₁ *ᵥ (complexBasis 𝔰).floorBasis b *ᵥ v).re := by |
| 212 | simp [← (complexBasis 𝔰).gram_floorBasis b, star_mulVec_dotProduct, ← Matrix.mul_assoc] |
| 213 | exact .map ((leFiberMeasure_quadricMeasure h_herm t₀).congr (.of_forall h_form)) |
| 214 | (by fun_prop) (by fun_prop) (by fun_prop) |
| 215 | |
| 216 | /-- For a shape `𝔰` and a floor `b`, let `h` be the form with Gram matrix `𝔰.J₁` and `V_b` the |
| 217 | span of the basis vectors of floor (`floorOf`) at least `b`, with Lebesgue measure |
| 218 | `floorVolume b`. On the vectors `y` orthogonal for `h` to all basis vectors of floor less than |
| 219 | `b`, `floorVolume b` is at most the fibre measure (`LeFibreMeasure`) over `0` of the map sending |
| 220 | `y` to its products `(𝔰.J₁ *ᵥ y) i` with those basis vectors `i`. -/ |
| 221 | private lemma leFiberMeasure_floorVolume (b : Fin 𝔰.n) : |
| 222 | LeFibreMeasure volume volume |
| 223 | (fun (y : 𝔰.BesselIndex → ℂ) (i : {i : 𝔰.BesselIndex // floorOf i < b}) ↦ (𝔰.J₁ *ᵥ y) i) 0 |
| 224 | (floorVolume b) := by |
| 225 | have h_compl : Set.range (Subtype.val : {i : 𝔰.BesselIndex // b ≤ floorOf i} → 𝔰.BesselIndex) = |
| 226 | (Set.range fun i : {i : 𝔰.BesselIndex // floorOf i < b} ↦ oppositeIndex i)ᶜ := by |
| 227 | rw [range_oppositeIndex_val, Subtype.range_coe_subtype] |
| 228 | ext i |
| 229 | simp [floorOf_oppositeIndex] |
| 230 | have h_coords : LeFibreMeasure volume volume |
| 231 | (fun (y : 𝔰.BesselIndex → ℂ) (i : {i : 𝔰.BesselIndex // floorOf i < b}) ↦ |
| 232 | y (oppositeIndex i)) 0 (floorVolume b) := by |
| 233 | simpa [Function.comp_def] using leFiberMeasure_coords |
| 234 | (involutive_oppositeIndex.injective.comp Subtype.val_injective) Subtype.val_injective |
| 235 | h_compl 0 |
| 236 | -- The product of `y` with a basis vector of a lower floor is the opposite coordinate of `y`. |
| 237 | exact h_coords.congr (.of_forall fun y ↦ funext fun i ↦ |
| 238 | (splitGram_mulVec_apply (e := y) _ (i.2.trans_le b.is_le)).symm) |
| 239 | |
| 240 | /-- The frame vector `f_b` of floor `b`, the basis vector of index `besselFrame b`. The vectors |
| 241 | `y` orthogonal for the form `h` of matrix `J₁` to the basis vectors of lower floors (`floorOf`) |
| 242 | form `V_b`. Half the measure of the quadric `h(y, y) = h(f_b, f_b)` in `V_b`, which is the default |
| 243 | level of `floorQuadricMeasure b`, is at most the fibre measure (`LeFibreMeasure`) of the products of |
| 244 | `y` with these vectors and with itself. -/ |
| 245 | lemma leFiberMeasure_frameVector (b : Fin 𝔰.n) : |
| 246 | LeFibreMeasure volume volume |
| 247 | (fun y : 𝔰.BesselIndex → ℂ ↦ |
| 248 | (fun i : {i : 𝔰.BesselIndex // floorOf i < b} ↦ (𝔰.J₁ *ᵥ y) i, (star y ⬝ᵥ 𝔰.J₁ *ᵥ y).re)) |
| 249 | (fun i : {i : 𝔰.BesselIndex // floorOf i < b} ↦ 𝔰.J₁ i.val (𝔰.besselFrame b), |
| 250 | (𝔰.J₁ (𝔰.besselFrame b) (𝔰.besselFrame b)).re) |
| 251 | ((2 : ENNReal)⁻¹ • (complexBasis 𝔰).floorQuadricMeasure b) := by |
| 252 | have h_low (i : {i : 𝔰.BesselIndex // floorOf i < b}) : floorOf i.1 < 𝔰.ϱ := i.2.trans_le b.is_le |
| 253 | have h_linear : LeFibreMeasure volume volume |
| 254 | (fun (y : 𝔰.BesselIndex → ℂ) (i : {i : 𝔰.BesselIndex // floorOf i < b}) ↦ (𝔰.J₁ *ᵥ y) i) 0 |
| 255 | (floorVolume b) := |
| 256 | leFiberMeasure_floorVolume b |
| 257 | have h_orth : |
| 258 | (fun i : {i : 𝔰.BesselIndex // floorOf i < b} ↦ 𝔰.J₁ i.val (𝔰.besselFrame b)) = 0 := by |
| 259 | funext i |
| 260 | have h_floor : floorOf (oppositeIndex i.val) < b := by simp [floorOf_oppositeIndex, i.property] |
| 261 | have h_ne : oppositeIndex i.val ≠ 𝔰.besselFrame b := by grind |
| 262 | simp [h_low, h_ne] |
| 263 | have h_level : Place.skewUnitMul (𝔰.J₁ (𝔰.besselFrame b) (𝔰.besselFrame b)) = |
| 264 | skewOfLevel (𝔰.J₁ (𝔰.besselFrame b) (𝔰.besselFrame b)).re := |
| 265 | skewUnitMul_eq_skewOfLevel _ _ |
| 266 | rw [h_orth, h_level] |
| 267 | exact h_linear.trans (leFiberMeasure_floorQuadric b _) (by fun_prop) |
| 268 | |
| 269 | /-- The vector `e*_a + v + μ e_a`, for `p = (μ, v)` with `v` in the span `V_(a+1)` of the basis |
| 270 | vectors of floor greater than `a`. -/ |
| 271 | noncomputable def dualPoint (a : Fin 𝔰.ϱ) |
| 272 | (p : ℂ × ({i : 𝔰.BesselIndex // a + 1 ≤ floorOf i} → ℂ)) : 𝔰.BesselIndex → ℂ := |
| 273 | Pi.single (eStar a) 1 + inclMatrix ℂ Subtype.val *ᵥ p.2 + p.1 • Pi.single (.inl a) 1 |
| 274 | |
| 275 | @[fun_prop] |
| 276 | lemma continuous_dualPoint (a : Fin 𝔰.ϱ) : Continuous (dualPoint a) := by fun_prop [dualPoint] |
| 277 | |
| 278 | /-- The norm of `dualPoint a (μ, v) = e*_a + v + μ e_a` for the form `h` of matrix `J₁` is |
| 279 | `2 Re μ + h(v, v)`. Here `v` lives on the indices of floor (`floorOf`) greater than `a`, and |
| 280 | `inclMatrix` extends it by zero. -/ |
| 281 | lemma re_form_dualPoint (a : Fin 𝔰.ϱ) (μ : ℂ) (v : {i : 𝔰.BesselIndex // a + 1 ≤ floorOf i} → ℂ) : |
| 282 | (star (dualPoint a (μ, v)) ⬝ᵥ 𝔰.J₁ *ᵥ dualPoint a (μ, v)).re = 2 * μ.re + |
| 283 | (star (inclMatrix ℂ Subtype.val *ᵥ v) ⬝ᵥ 𝔰.J₁ *ᵥ inclMatrix ℂ Subtype.val *ᵥ v).re := by |
| 284 | -- In the expansion only the products of `e_a` with `e*_a` and of `v` with itself are nonzero. |
| 285 | have h_expand : (star (dualPoint a (μ, v)) ⬝ᵥ 𝔰.J₁ *ᵥ dualPoint a (μ, v)).re = μ.re + |
| 286 | (star (inclMatrix ℂ Subtype.val *ᵥ v) ⬝ᵥ 𝔰.J₁ *ᵥ inclMatrix ℂ Subtype.val *ᵥ v).re + |
| 287 | μ.re := by |
| 288 | simp [dualPoint, mulVec_add, mulVec_smul, inclMatrix_val_mulVec, -mulVec_mulVec] |
| 289 | linarith |
| 290 | |
| 291 | /-- For the form `h` of matrix `J₁`, consider the products of `y` with `e_a` and with the basis |
| 292 | vectors of lower floors (`floorOf`). Over their values at `e*_a` (index `eStar a`), the image of |
| 293 | `dμ dv` under `dualPoint a (μ, v) = e*_a + v + μ e_a` is at most the fibre measure |
| 294 | (`LeFibreMeasure`). -/ |
| 295 | lemma leFiberMeasure_dualPoint (a : Fin 𝔰.ϱ) : |
| 296 | LeFibreMeasure volume volume |
| 297 | (fun (y : 𝔰.BesselIndex → ℂ) (i : {i : 𝔰.BesselIndex // floorOf i < a ∨ i = .inl a}) ↦ |
| 298 | (𝔰.J₁ *ᵥ y) i) |
| 299 | (fun i : {i : 𝔰.BesselIndex // floorOf i < a ∨ i = .inl a} ↦ 𝔰.J₁ i.val (eStar a)) |
| 300 | (volume.map (dualPoint a)) := by |
| 301 | let I : Type := {i : 𝔰.BesselIndex // floorOf i < a ∨ i = .inl a} |
| 302 | let S : Type := {i : 𝔰.BesselIndex // a + 1 ≤ floorOf i} |
| 303 | let f (i : I) : 𝔰.BesselIndex := oppositeIndex i.val |
| 304 | let g : Unit ⊕ S → 𝔰.BesselIndex := Sum.elim (fun _ ↦ .inl a) Subtype.val |
| 305 | let c (i : I) : ℂ := 𝔰.J₁ i.val (eStar a) |
| 306 | have h_low (i : I) : floorOf i.val < 𝔰.ϱ := by |
| 307 | rcases i.property with h | h |
| 308 | · exact h.trans a.isLt |
| 309 | · simp [h, floorOf] |
| 310 | have hf : f.Injective := involutive_oppositeIndex.injective.comp Subtype.val_injective |
| 311 | have h_ne (i : S) : (.inl a : 𝔰.BesselIndex) ≠ i.val := fun h ↦ by simpa [← h] using i.property |
| 312 | have hg : g.Injective := |
| 313 | (Function.injective_of_subsingleton _).sumElim Subtype.val_injective fun _ ↦ h_ne |
| 314 | have h_compl : Set.range g = (Set.range f)ᶜ := by |
| 315 | rw [range_oppositeIndex_val, Set.Sum.elim_range, Subtype.range_coe_subtype] |
| 316 | -- For each of the four kinds of index both sides are the same inequality of floors. |
| 317 | ext (i | (i | i) | i) <;> simp <;> lia |
| 318 | have h_param : MeasurePreserving fun p : ℂ × (S → ℂ) ↦ Sum.elim (fun _ : Unit ↦ p.1) p.2 := |
| 319 | measurePreserving_sumElim.comp ((volume_preserving_funUnique Unit ℂ).symm.prod (.id _)) |
| 320 | have h_base : inclMatrix ℂ f *ᵥ c = Pi.single (eStar a) 1 := by |
| 321 | have hc : c = Pi.single ⟨.inl a, .inr rfl⟩ 1 := by |
| 322 | funext i |
| 323 | simp [c, I, h_low, Pi.single_apply, Subtype.ext_iff, involutive_oppositeIndex.eq_iff] |
| 324 | rw [hc, mulVec_single_one] |
| 325 | ext i |
| 326 | simp [inclMatrix, f, Matrix.one_apply, Pi.single_apply] |
| 327 | have h_point : dualPoint a = (fun v ↦ inclMatrix ℂ f *ᵥ c + inclMatrix ℂ g *ᵥ v) ∘ |
| 328 | fun p : ℂ × (S → ℂ) ↦ Sum.elim (fun _ : Unit ↦ p.1) p.2 := by |
| 329 | funext p |
| 330 | have h_single : inclMatrix ℂ (fun _ : Unit ↦ (.inl a : 𝔰.BesselIndex)) *ᵥ (fun _ ↦ p.1) = |
| 331 | p.1 • Pi.single (.inl a) 1 := by |
| 332 | ext i |
| 333 | simp [inclMatrix, mulVec, dotProduct, Matrix.one_apply, Pi.single_apply] |
| 334 | rw [Function.comp_apply, h_base, inclMatrix_sumElim_mulVec, h_single, dualPoint, add_assoc, |
| 335 | add_comm (p.1 • _)] |
| 336 | rw [h_point, ← Measure.map_map (by fun_prop) h_param.measurable, h_param.map_eq] |
| 337 | exact (leFiberMeasure_coords hf hg h_compl c).congr |
| 338 | (.of_forall fun y ↦ funext fun i ↦ (splitGram_mulVec_apply (e := y) _ (h_low i)).symm) |
| 339 | |
| 340 | /-- The real part of a skew element of `ℂ` is zero. -/ |
| 341 | lemma re_skewAdjoint_complex (β : skewAdjoint ℂ) : (β : ℂ).re = 0 := by |
| 342 | have h_neg : star (β : ℂ) = -β := skewAdjoint.mem_iff.1 β.property |
| 343 | have h_re_neg : (β : ℂ).re = -(β : ℂ).re := congrArg Complex.re h_neg |
| 344 | exact self_eq_neg.1 h_re_neg |
| 345 | |
| 346 | /-- The integral against the image of `dμ dv` under `dualPoint a`, in the coordinates `(v, t, β)` |
| 347 | with `μ = t / 2 + β - q v`, for a shift `q`, `t` real and `β` skew. -/ |
| 348 | lemma lintegral_map_dualPoint (a : Fin 𝔰.ϱ) |
| 349 | {q : ({i : 𝔰.BesselIndex // a + 1 ≤ floorOf i} → ℂ) → ℂ} |
| 350 | {K : (𝔰.BesselIndex → ℂ) → ENNReal} (hK : Measurable K) : |
| 351 | ∫⁻ y : 𝔰.BesselIndex → ℂ, K y ∂volume.map (dualPoint a) = |
| 352 | ∫⁻ v : { i : 𝔰.BesselIndex // a + 1 ≤ floorOf i } → ℂ, |
| 353 | ∫⁻ p : ℝ × skewAdjoint ℂ, K (dualPoint a (p.1 / 2 + p.2 - q v, v)) |
| 354 | ∂((2 : ENNReal)⁻¹ • volume).prod complexPlace.skewMeasure := by |
| 355 | symm |
| 356 | calc ∫⁻ v, ∫⁻ p : ℝ × skewAdjoint ℂ, K (dualPoint a (p.1 / 2 + p.2 - q v, v)) |
| 357 | ∂((2 : ENNReal)⁻¹ • volume).prod complexPlace.skewMeasure |
| 358 | = ∫⁻ v, ∫⁻ μ, K (dualPoint a (μ - q v, v)) := |
| 359 | lintegral_congr fun v ↦ measurePreserving_half_add.lintegral_comp |
| 360 | (f := fun μ ↦ K (dualPoint a (μ - q v, v))) (by fun_prop) |
| 361 | _ = ∫⁻ v, ∫⁻ μ, K (dualPoint a (μ, v)) := |
| 362 | lintegral_congr fun v ↦ lintegral_sub_right_eq_self (fun μ ↦ K (dualPoint a (μ, v))) (q v) |
| 363 | _ = ∫⁻ y, K y ∂volume.map (dualPoint a) := by |
| 364 | rw [lintegral_map hK (by fun_prop), volume_eq_prod, lintegral_prod_symm' _ (by fun_prop)] |
| 365 | |
| 366 | /-- On the image under `dualPoint a (μ, v) = e*_a + v + μ e_a` of `dμ dv`, half the image of the |
| 367 | measure of the Heisenberg group of floor `a` under `u ↦ u e*_a` is at most the fibre measure |
| 368 | `dμ dv / dh(y, y)` (`LeFibreMeasure`) over the value `0`, for the form `h` of matrix `J₁`. Here |
| 369 | `eStar a` is the index of `e*_a`. -/ |
| 370 | lemma leFiberMeasure_heisenbergMeasure (a : Fin 𝔰.ϱ) : |
| 371 | LeFibreMeasure (volume.map (dualPoint a)) volume |
| 372 | (fun y : 𝔰.BesselIndex → ℂ ↦ (star y ⬝ᵥ 𝔰.J₁ *ᵥ y).re) 0 |
| 373 | ((2 : ENNReal)⁻¹ • (complexPlace.heisenbergMeasure a).map |
| 374 | fun u : 𝔰.G₁ ↦ (u : Matrix 𝔰.BesselIndex 𝔰.BesselIndex ℂ) *ᵥ Pi.single (eStar a) 1) := by |
| 375 | -- The norm is `2 Re μ + h(v, v)`; it is `t` when `μ = t / 2 + β - h(v, v) / 2` with `β` skew. |
| 376 | let S : Type := {i : 𝔰.BesselIndex // a + 1 ≤ floorOf i} |
| 377 | let q (v : S → ℂ) : ℂ := |
| 378 | 2⁻¹ * star (inclMatrix ℂ Subtype.val *ᵥ v) ⬝ᵥ 𝔰.J₁ *ᵥ inclMatrix ℂ Subtype.val *ᵥ v |
| 379 | let ψ (t : ℝ) (p : (S → ℂ) × skewAdjoint ℂ) : 𝔰.BesselIndex → ℂ := |
| 380 | dualPoint a (t / 2 + p.2 - q p.1, p.1) |
| 381 | have hq : Continuous q := by fun_prop |
| 382 | have hψ : Continuous ψ.uncurry := by fun_prop |
| 383 | have h_zero : ψ 0 = (fun u : 𝔰.G₁ ↦ u.val.val *ᵥ Pi.single (eStar a) 1) ∘ |
| 384 | TraceOne.heisenbergElem a := by |
| 385 | funext p |
| 386 | rw [Function.comp_apply, heisenbergElem_mulVec_single_eStar] |
| 387 | simp [ψ, q, dualPoint] |
| 388 | have h_norm (t : ℝ) (p : (S → ℂ) × skewAdjoint ℂ) : (star (ψ t p) ⬝ᵥ 𝔰.J₁ *ᵥ ψ t p).re = t := by |
| 389 | have h_re : (t / 2 + p.2 - q p.1 : ℂ).re = t / 2 - |
| 390 | (star (inclMatrix ℂ Subtype.val *ᵥ p.1) ⬝ᵥ |
| 391 | 𝔰.J₁ *ᵥ inclMatrix ℂ Subtype.val *ᵥ p.1).re / 2 := by |
| 392 | simp [q, re_skewAdjoint_complex, div_eq_inv_mul, -mulVec_mulVec] |
| 393 | rw [re_form_dualPoint, h_re] |
| 394 | ring |
| 395 | rw [Place.heisenbergMeasure, dite_eq_left a.isLt, Measure.map_map (by fun_prop) (by fun_prop), |
| 396 | ← h_zero] |
| 397 | simp (disch := fun_prop) only [← Measure.map_smul] |
| 398 | rw [← withDensity_const] |
| 399 | refine .of_coordinates (w := fun _ _ ↦ 2⁻¹) (by fun_prop) hψ.measurable measurable_const |
| 400 | Filter.univ_mem (fun t _ ↦ .of_forall fun p _ ↦ h_norm t p) |
| 401 | (.of_forall fun p ↦ ⟨(hψ.uncurry_right p).continuousAt, continuousAt_const⟩) |
| 402 | fun K hK ↦ le_of_eq ?_ |
| 403 | calc ∫⁻ t : ℝ in Set.univ, ∫⁻ p, 2⁻¹ * K (ψ t p) ∂volume.prod complexPlace.skewMeasure |
| 404 | = 2⁻¹ * ∫⁻ t : ℝ, ∫⁻ v : S → ℂ, ∫⁻ β, K (ψ t (v, β)) ∂complexPlace.skewMeasure := by |
| 405 | simp (disch := first | fun_prop | finiteness) only [restrict_univ, lintegral_const_mul', |
| 406 | lintegral_prod] |
| 407 | _ = 2⁻¹ * ∫⁻ v : S → ℂ, ∫⁻ t : ℝ, ∫⁻ β, K (ψ t (v, β)) ∂complexPlace.skewMeasure := by |
| 408 | rw [lintegral_lintegral_swap (by fun_prop)] |
| 409 | _ = ∫⁻ v, ∫⁻ p : ℝ × skewAdjoint ℂ, K (ψ p.1 (v, p.2)) |
| 410 | ∂((2 : ENNReal)⁻¹ • volume).prod complexPlace.skewMeasure := by |
| 411 | simp (disch := first | fun_prop | finiteness) only [prod_smul_left, |
| 412 | lintegral_const_mul', lintegral_prod, lintegral_smul_measure, smul_eq_mul] |
| 413 | _ = ∫⁻ y, K y ∂volume.map (dualPoint a) := (lintegral_map_dualPoint a hK).symm |
| 414 | |
| 415 | /-- The dual vector `e*_a` of floor `a`, of index `eStar a`. For the form `h` of matrix `J₁`, on the |
| 416 | isotropic vectors `y` with `h(e_a, y) = 1` that are orthogonal to the basis vectors of lower floors |
| 417 | (`floorOf`), half the image of the measure of the Heisenberg group under `u ↦ u e*_a` is at most the |
| 418 | fibre measure (`LeFibreMeasure`) of the products of `y` with these vectors, with `e_a` and with |
| 419 | itself. -/ |
| 420 | lemma leFiberMeasure_dualVector (a : Fin 𝔰.ϱ) : |
| 421 | LeFibreMeasure volume volume |
| 422 | (fun y : 𝔰.BesselIndex → ℂ ↦ |
| 423 | (fun i : {i : 𝔰.BesselIndex // floorOf i < a ∨ i = .inl a} ↦ (𝔰.J₁ *ᵥ y) i, |
| 424 | (star y ⬝ᵥ 𝔰.J₁ *ᵥ y).re)) |
| 425 | (fun i : {i : 𝔰.BesselIndex // floorOf i < a ∨ i = .inl a} ↦ 𝔰.J₁ i.val (eStar a), 0) |
| 426 | ((2 : ENNReal)⁻¹ • (complexPlace.heisenbergMeasure a).map |
| 427 | fun u : 𝔰.G₁ ↦ (u : Matrix 𝔰.BesselIndex 𝔰.BesselIndex ℂ) *ᵥ Pi.single (eStar a) 1) := |
| 428 | (leFiberMeasure_dualPoint a).trans (leFiberMeasure_heisenbergMeasure a) (by fun_prop) |
| 429 | |
| 430 | /-! ### Inversion -/ |
| 431 | |
| 432 | /-- The image under inversion of the convolution `μ ∗ₘ ν` of two s-finite measures is the |
| 433 | convolution of their images in the opposite order. -/ |
| 434 | lemma inv_mconv {G : Type*} [Group G] [MeasurableSpace G] [MeasurableMul₂ G] [MeasurableInv G] |
| 435 | (μ ν : Measure G) [SFinite μ] [SFinite ν] : (μ ∗ₘ ν).inv = ν.inv ∗ₘ μ.inv := by |
| 436 | refine ext_of_lintegral _ fun f hf ↦ ?_ |
| 437 | rw [Measure.inv, lintegral_map hf measurable_inv, lintegral_mconv (by fun_prop), |
| 438 | lintegral_lintegral_swap (by fun_prop), lintegral_mconv hf] |
| 439 | -- Both sides are now double integrals; unfold the two inverted measures. |
| 440 | simp (disch := fun_prop) only [Measure.inv, lintegral_map, _root_.mul_inv_rev] |
| 441 | rw [lintegral_map (by fun_prop) measurable_inv] |
| 442 | |
| 443 | /-- The Haar measure of the unitary group of the span of the vectors `x_i`, carried into `G₁` by |
| 444 | `embedH`, is invariant under inversion. -/ |
| 445 | instance : (volume.map (embedH (𝔰 := 𝔰))).IsInvInvariant where |
| 446 | inv_eq_self := by |
| 447 | have h_comm : Inv.inv ∘ embedH (𝔰 := 𝔰) = embedH ∘ Inv.inv := |
| 448 | funext fun h ↦ (map_inv (toBesselH 𝔰 1) h).symm |
| 449 | rw [Measure.inv, Measure.map_map measurable_inv (by fun_prop), h_comm, |
| 450 | ← Measure.map_map (by fun_prop) measurable_inv, map_inv_eq_self] |
| 451 | |
| 452 | /-- The measure of the Heisenberg group of floor `l` in `G₁` (the unit mass at `1` for `l ≥ ϱ`) is |
| 453 | invariant under inversion. -/ |
| 454 | instance (l : ℕ) : (complexPlace.heisenbergMeasure l : Measure 𝔰.G₁).IsInvInvariant := by |
| 455 | refine ⟨?_⟩ |
| 456 | by_cases hl : l < 𝔰.ϱ |
| 457 | swap |
| 458 | · simp [Place.heisenbergMeasure, hl, Measure.inv] |
| 459 | · rw [Place.heisenbergMeasure, dite_eq_left hl] |
| 460 | -- Inversion sends the parameters `(v, β)` to `(-v, c - β)`, with `c` independent of `β`. |
| 461 | refine ext_of_lintegral _ fun f hf ↦ ?_ |
| 462 | have h_meas : Measurable (TraceOne.heisenbergElem (T := 𝔰.middleGram (1 : ℂ)) ⟨l, hl⟩) := |
| 463 | continuous_heisenbergElem.measurable |
| 464 | simp (disch := fun_prop) only [Measure.inv, lintegral_map] |
| 465 | rw [lintegral_prod _ (Measurable.aemeasurable (by fun_prop)), |
| 466 | lintegral_prod _ (Measurable.aemeasurable (by fun_prop)), ← lintegral_neg_eq_self] |
| 467 | refine lintegral_congr fun v ↦ ?_ |
| 468 | simp only [heisenbergElem_inv, neg_neg] |
| 469 | exact lintegral_sub_left_eq_self (fun β ↦ f (TraceOne.heisenbergElem ⟨l, hl⟩ (v, β))) _ |
| 470 | |
| 471 | end New.Floors |