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.Analysis.LocallyConvex.AbsConvexOpen |
| 4 | import TauCeti.Topology.Algebra.Group.Units |
| 5 | import TauCeti.Topology.Instances.Matrix |
| 6 | public import Lib.DiscreteSeries.Bessel.FrameFibre |
| 7 | public import New.Spanning.Bessel.GramSection |
| 8 | import Lib.Adelic.Adeles.AdditiveCharacter |
| 9 | import Lib.DiscreteSeries.Bessel.UnipotentHaarMeasure |
| 10 | import Lib.DiscreteSeries.Bruhat.ComplexPlace |
| 11 | import Lib.DiscreteSeries.Haar.TotalMass |
| 12 | |
| 13 | /-! |
| 14 | # The mean value inequality over the Gram matrix of two frames |
| 15 | |
| 16 | Let `G₁` be the real unitary group `New.Shape.G₁`, `e = (e₁, …, e_ϱ, z)` its frame, `R°` the fixer |
| 17 | of the frame, the product of the unipotent group `𝖴⁰ = New.Shape.Form.besselU0` and the compact |
| 18 | group `H = U(κ)`, and `γ_Z = New.RealPlace.gramSection Z` the section of the map that sends `γ` to |
| 19 | the matrix `Z` of the products of `e` with `γ e`, over the open set `Ω = New.Shape.openCell` of the |
| 20 | invertible `Z` whose inverse has last diagonal entry of absolute value less than `1`. |
| 21 | |
| 22 | On the frames `y = γ e` the fibre measure of the Gram map is compared with Haar measure in |
| 23 | `New.LeGramFiber.mconv_fixerHaar_le`. This file bounds the same fibre measure from below, by `dZ` |
| 24 | times a measure on the frames whose products with `e` form the matrix `Z`. Such a frame is `y' Z` |
| 25 | with `y'` dual to `e`. The first `ϱ` vectors of `y'` are moved by `𝖴⁰`, and the part of the last one |
| 26 | in `X₀ = ℂ ^ κ` runs over a sphere. |
| 27 | |
| 28 | One can find the measure on the frames over `Z` by letting both frames vary and dividing two |
| 29 | equalities of fibre measures, the one on pairs of frames, which are tuples of `2 (ϱ + 1)` vectors |
| 30 | with an invertible Gram matrix, by the one on frames. Here a fibre measure enters only through the |
| 31 | relation of being at most it (`New.LeFibreMeasure`); the measure over `Z` is computed directly in |
| 32 | coordinates as a lower bound, and the fibre measure on frames is used as an upper bound. |
| 33 | |
| 34 | * `New.RealPlace.lintegral_eq_lintegral_sphereMass_mul_dualFrameOfGram`: Lebesgue measure on the |
| 35 | tuples dual to the frame, in terms of their Gram matrix and of `R°`. |
| 36 | * `New.RealPlace.leGramFibre_gramSectionMeasure`: the law of `s γ_Z e`, with a density proportional |
| 37 | to `New.RealPlace.gramDiscReal Z ^ (|κ| - 1)`, is at most the fibre measure. |
| 38 | * `New.RealPlace.lintegral_gramSection_le`: the mean value inequality for the integral of |
| 39 | `f (s' γ_Z s)` over `s, s'` in `R°` and `Z` in `Ω`. |
| 40 | |
| 41 | Notions from other files: |
| 42 | * `fixerHaar 𝔰`: the measure `du dh` on `R°`, with `u = unipotentOf q` for Lebesgue measure `dq` and |
| 43 | `embedH h` for the Haar probability measure `dh` on `U(κ)`. |
| 44 | * `frameCols`, `dualCols`, `isotropicCols`, `definiteCols`, `freeCols`: the matrices with the |
| 45 | columns `(e₁, …, e_ϱ, z)`, `e*_b`, `e_b`, `x_i`, and `(e_b, x_i)` respectively. |
| 46 | * `J₁`: the hermitian form on the space with the basis `e_b, x_i, z, e*_b`, which pairs `e_b` with |
| 47 | `e*_b`, is the identity on `X₀` and is `-1` at `z`. |
| 48 | * `top`, `k`, `k₀`: the last index of the frame, the number `|κ|` and a chosen element of `κ`. |
| 49 | * `embedH h`: the element of `G₁` that acts by `h` on `X₀` and fixes the other basis vectors. |
| 50 | * `hermOfReal t`: the hermitian matrix with the real coordinates `t`. |
| 51 | |
| 52 | ## Relation to the literature |
| 53 | |
| 54 | Part of the bound on the open cell for the Bessel integrals at a real place; see |
| 55 | `New.Spanning.Bessel.FillingData`. For fibre measures of the Gram map compare Siegel, Über die |
| 56 | analytische Theorie der quadratischen Formen, Ann. of Math. 36 (1935). |
| 57 | -/ |
| 58 | |
| 59 | @[expose] public section |
| 60 | |
| 61 | noncomputable section |
| 62 | |
| 63 | namespace New.RealPlace |
| 64 | |
| 65 | open Matrix MeasureTheory Measure Shape ENNReal Complex Fin Fintype Norms.L2Operator |
| 66 | Floors.FloorGroups |
| 67 | |
| 68 | variable {𝔰 : Shape} |
| 69 | |
| 70 | /-! ### The measure on the fixer of the frame -/ |
| 71 | |
| 72 | /-- The integral for `fixerHaar 𝔰`, the measure on the fixer of the frame, is the iterated integral |
| 73 | of the value at `u h`. Here `h` runs over `U(κ)` with Haar probability measure, and `u` runs over |
| 74 | the unipotent group `𝖴⁰` with `besselHaar₀`, the image of Lebesgue measure under `unipotentOf`. -/ |
| 75 | theorem lintegral_fixerHaar {φ : 𝔰.G₁ → ℝ≥0∞} (hφ : Measurable φ) : |
| 76 | ∫⁻ s : 𝔰.G₁, φ s ∂fixerHaar 𝔰 = |
| 77 | ∫⁻ h : U (1 : Matrix 𝔰.κ 𝔰.κ ℂ), ∫⁻ u : besselU0, φ (u.val * embedH h) ∂𝔰.besselHaar₀ := by |
| 78 | rw [fixerHaar, Floors.lintegral_mconv_symm hφ, lintegral_map (by fun_prop) (by fun_prop)] |
| 79 | exact lintegral_congr fun h ↦ lintegral_map (by fun_prop) measurable_subtypeVal |
| 80 | |
| 81 | /-- The integral for `fixerHaar 𝔰`, the measure on the fixer of the frame, in coordinates: the |
| 82 | iterated integral of the value at `unipotentOf q * embedH h`, for Lebesgue measure in the parameter |
| 83 | `q` of the unipotent group and Haar measure in `h` on `U(κ)`. -/ |
| 84 | theorem lintegral_fixerHaar_eq_unipotentOf {φ : 𝔰.G₁ → ℝ≥0∞} (hφ : Measurable φ) : |
| 85 | ∫⁻ s : 𝔰.G₁, φ s ∂fixerHaar 𝔰 = |
| 86 | ∫⁻ q : 𝔰.UnipotentParams, ∫⁻ h : U (1 : Matrix 𝔰.κ 𝔰.κ ℂ), φ (unipotentOf q * embedH h) := by |
| 87 | rw [lintegral_fixerHaar hφ, lintegral_lintegral_swap (by fun_prop)] |
| 88 | exact lintegral_map (by fun_prop) (continuous_unipotentOf.subtype_mk _).measurable |
| 89 | |
| 90 | /-- The measure `fixerHaar 𝔰`, that is `du dh` on the fixer `R° = 𝖴⁰ H` of the frame, is invariant |
| 91 | under inversion: the integral of `φ` is the iterated integral of `φ ((u h)⁻¹)`. -/ |
| 92 | theorem lintegral_fixerHaar_eq_inv {φ : 𝔰.G₁ → ℝ≥0∞} (hφ : Measurable φ) : |
| 93 | ∫⁻ s : 𝔰.G₁, φ s ∂fixerHaar 𝔰 = |
| 94 | ∫⁻ h : U (1 : Matrix 𝔰.κ 𝔰.κ ℂ), ∫⁻ u : besselU0, φ (u.val * embedH h)⁻¹ ∂𝔰.besselHaar₀ := by |
| 95 | -- We have `(u h)⁻¹ = (h⁻¹ u⁻¹ h) h⁻¹`. Inversion keeps `du` and `dh`, and conjugation by `h` |
| 96 | -- keeps `du`. |
| 97 | rw [lintegral_fixerHaar hφ, ← lintegral_inv_eq_self] |
| 98 | refine lintegral_congr fun h ↦ ?_ |
| 99 | have h_mem : embedH h⁻¹ ∈ besselS := |
| 100 | mem_besselS_of_mem_besselFixer (mem_besselFixer_of_mem_besselH (toBesselH_mem h⁻¹)) |
| 101 | rw [← ((measurePreserving_conj_bessel mem_besselU0_iff_apply besselS_le_normalizer_besselU0 |
| 102 | h_mem).comp (measurePreserving_inv 𝔰.besselHaar₀)).lintegral_comp (by fun_prop)] |
| 103 | simp |
| 104 | |
| 105 | /-! ### Tuples dual to the frame -/ |
| 106 | |
| 107 | theorem re_hermOfReal_apply_self {n : Type} [DecidableEq n] (t : Matrix n n ℝ) (a : n) : |
| 108 | (hermOfReal t a a).re = t a a := by simp [hermOfReal, skewOfReal] |
| 109 | |
| 110 | /-- Taking a principal submatrix along an injective map commutes with `hermOfReal`. -/ |
| 111 | theorem submatrix_hermOfReal {m n : Type} [DecidableEq m] [DecidableEq n] (t : Matrix n n ℝ) |
| 112 | {f : m → n} (hf : f.Injective) : |
| 113 | (hermOfReal t).submatrix f f = hermOfReal (t.submatrix f f) := by |
| 114 | simp [hermOfReal, skewOfReal, ← ext_iff, hf.eq_iff] |
| 115 | |
| 116 | /-- The equivalence of `Fin j ⊕ Unit` with `Fin (j + 1)` that sends `inl b` to `b.castSucc` and the |
| 117 | point of `Unit` to `Fin.last j`. -/ |
| 118 | def splitLast (j : ℕ) : Fin j ⊕ Unit ≃ Fin (j + 1) := |
| 119 | (Equiv.optionEquivSumPUnit _).symm.trans finSuccEquivLast.symm |
| 120 | |
| 121 | /-- The matrix `joinCol (splitLast j) p`, made of the `j` columns of `p.1` followed by the vector |
| 122 | `p.2`, agrees with `p.1` in each column before the last. -/ |
| 123 | @[simp] |
| 124 | theorem joinCol_castSucc {l : Type} {j : ℕ} |
| 125 | (p : Matrix l (Fin j) ℂ × (l → ℂ)) (i : l) (b : Fin j) : |
| 126 | joinCol (splitLast j) p i b.castSucc = p.1 i b := by |
| 127 | simpa [splitLast] using joinCol_inl (splitLast j) p i b |
| 128 | |
| 129 | /-- The matrix `joinCol (splitLast j) p`, made of the `j` columns of `p.1` followed by the vector |
| 130 | `p.2`, has the last column `p.2`. -/ |
| 131 | @[simp] |
| 132 | theorem joinCol_last {l : Type} {j : ℕ} |
| 133 | (p : Matrix l (Fin j) ℂ × (l → ℂ)) (i : l) : joinCol (splitLast j) p i (last j) = p.2 i := by |
| 134 | simpa [splitLast] using joinCol_inr (splitLast j) p i |
| 135 | |
| 136 | /-- For a hermitian matrix `T` of size `ϱ + 1` (a `FrameMatrix`), the tuple of the vectors |
| 137 | `e*_b + ½ ∑_a T_{ab} e_a`, `b < ϱ`, and `-z + ∑_a T_{a,last} e_a + √(1 + T_{last,last}) x_{k₀}`, |
| 138 | as the columns of a matrix whose rows are indexed by the basis `e_a, x_i, z, e*_a` (`BesselIndex`). |
| 139 | Here `x_{k₀}` is the chosen basis vector of `X₀`. The tuple is dual to the frame `(e₁, …, e_ϱ, z)`, |
| 140 | and it has the Gram matrix `T` if the number under the root is not negative |
| 141 | (`New.RealPlace.gram_dualFrameOfGram`). -/ |
| 142 | def dualFrameOfGram (T : 𝔰.FrameMatrix) : Matrix 𝔰.BesselIndex (Fin (𝔰.ϱ + 1)) ℂ := |
| 143 | joinCol (splitLast 𝔰.ϱ) |
| 144 | (𝔰.dualCols + 𝔰.isotropicCols * ((2⁻¹ : ℂ) • T.submatrix castSucc castSucc), |
| 145 | -Pi.single 𝔰.z 1 + 𝔰.isotropicCols *ᵥ (fun a : Fin 𝔰.ϱ ↦ T a.castSucc 𝔰.top) + |
| 146 | 𝔰.definiteCols *ᵥ √(1 + (T 𝔰.top 𝔰.top).re) • Pi.single 𝔰.k₀ 1) |
| 147 | |
| 148 | /-- The dual frame assignment map constructed from the Gram matrix is continuous. -/ |
| 149 | @[fun_prop] |
| 150 | theorem continuous_dualFrameOfGram : Continuous (dualFrameOfGram (𝔰 := 𝔰)) := by |
| 151 | unfold dualFrameOfGram |
| 152 | fun_prop |
| 153 | |
| 154 | /-- The coefficient of `e_a`, the basis vector with the index `.inl a`, in column `b` of |
| 155 | `dualFrameOfGram T` is the entry `T a.castSucc b` in row `a` of `T`, halved when `b ≠ top`, i.e. in |
| 156 | the first `ϱ` columns. -/ |
| 157 | theorem dualFrameOfGram_apply_inl (T : 𝔰.FrameMatrix) (a : Fin 𝔰.ϱ) (b : Fin (𝔰.ϱ + 1)) : |
| 158 | dualFrameOfGram T (.inl a) b = (if b = 𝔰.top then 1 else 2⁻¹) * T a.castSucc b := by |
| 159 | induction b using lastCases <;> |
| 160 | simp [dualFrameOfGram, inclMatrix, Matrix.mul_apply, mulVec, dotProduct, Matrix.one_apply] |
| 161 | |
| 162 | /-- The coefficient of `e*_a`, the basis vector with the index `eStar a`, in column `b` of |
| 163 | `dualFrameOfGram T` is `1` if `b = a` and `0` otherwise. -/ |
| 164 | theorem dualFrameOfGram_apply_eStar (T : 𝔰.FrameMatrix) (a : Fin 𝔰.ϱ) (b : Fin (𝔰.ϱ + 1)) : |
| 165 | dualFrameOfGram T (eStar a) b = if b = a.castSucc then 1 else 0 := by |
| 166 | induction b using lastCases <;> simp [dualFrameOfGram, inclMatrix, Matrix.mul_apply, mulVec, |
| 167 | dotProduct, Matrix.one_apply, (castSucc_lt_last a).ne, eq_comm] |
| 168 | |
| 169 | /-- The coefficient of `z` in `dualFrameOfGram T` is `-1` in the last column and `0` in the |
| 170 | others. -/ |
| 171 | theorem dualFrameOfGram_apply_z (T : 𝔰.FrameMatrix) (b : Fin (𝔰.ϱ + 1)) : |
| 172 | dualFrameOfGram T 𝔰.z b = if b = 𝔰.top then -1 else 0 := by |
| 173 | induction b using lastCases <;> |
| 174 | simp [dualFrameOfGram, inclMatrix, Matrix.mul_apply, mulVec, dotProduct] |
| 175 | |
| 176 | /-- The part in `X₀` of `dualFrameOfGram T` is `√(1 + T_{last,last}) x_{k₀}` in the last column and |
| 177 | zero in the others. Here `indexX₀ i` is the index of the basis vector `x_i` of `X₀`. -/ |
| 178 | theorem dualFrameOfGram_apply_indexX₀ (T : 𝔰.FrameMatrix) (b : Fin (𝔰.ϱ + 1)) (i : 𝔰.κ) : |
| 179 | dualFrameOfGram T (𝔰.indexX₀ i) b = |
| 180 | if b = 𝔰.top ∧ i = 𝔰.k₀ then (√(1 + (T 𝔰.top 𝔰.top).re) : ℂ) else 0 := by |
| 181 | induction b using lastCases <;> simp [dualFrameOfGram, inclMatrix, Matrix.mul_apply, mulVec, |
| 182 | dotProduct, Matrix.one_apply, Pi.single_apply] |
| 183 | |
| 184 | /-- Let `T` be a hermitian `(ϱ + 1)×(ϱ + 1)` matrix (`𝔰.FrameMatrix`) with `1 + Re T_{top,top} ≥ 0`. |
| 185 | Then the tuple `dualFrameOfGram T` has the Gram matrix `T` for `𝔰.J₁`. -/ |
| 186 | theorem gram_dualFrameOfGram {T : 𝔰.FrameMatrix} (hT : Tᴴ = T) |
| 187 | (h_top : 0 ≤ 1 + (T 𝔰.top 𝔰.top).re) : (dualFrameOfGram T)ᴴ * 𝔰.J₁ * dualFrameOfGram T = T := by |
| 188 | have h_conj (a b : Fin (𝔰.ϱ + 1)) : starRingEnd ℂ (T a b) = T b a := congrFun₂ hT b a |
| 189 | ext a b |
| 190 | simp [Matrix.mul_apply, splitGram, middleGram, Matrix.one_apply, dualFrameOfGram_apply_inl, |
| 191 | dualFrameOfGram_apply_eStar, dualFrameOfGram_apply_z, dualFrameOfGram_apply_indexX₀] |
| 192 | -- Split into the `(last, last)` corner, cross terms, and the `castSucc` block. |
| 193 | induction a using lastCases <;> induction b using lastCases |
| 194 | · simp [← Complex.ofReal_mul, h_top, conj_eq_iff_re.1 (h_conj _ _), (castSucc_lt_last _).ne'] |
| 195 | · simp [h_conj, (castSucc_lt_last _).ne'] |
| 196 | · simp [(castSucc_lt_last _).ne'] |
| 197 | · simp [h_conj, map_ofNat] |
| 198 | ring |
| 199 | |
| 200 | /-- The mass `π ^ k r ^ (k - 1) / (k - 1)!` of the sphere `⟨x, x⟩ = r` in `ℂ ^ k` for the fibre |
| 201 | measure `dx / d⟨x, x⟩` if `r > 0`, and `0` if `r ≤ 0`. The mass is written as half of |
| 202 | `sphereDensity k r = 2 π ^ k r ^ (k - 1) / (k - 1)!`. -/ |
| 203 | def sphereMass (k : ℕ) (r : ℝ) : ℝ≥0∞ := |
| 204 | (Set.Ioi 0).indicator (fun r : ℝ ↦ ENNReal.ofReal (sphereDensity k r / 2)) r |
| 205 | |
| 206 | /-- For `r > 0` the mass of the sphere `⟨x, x⟩ = r` in `ℂ ^ k` is half of |
| 207 | `sphereDensity k r = 2 π ^ k r ^ (k - 1) / (k - 1)!`. -/ |
| 208 | theorem sphereMass_of_pos {k : ℕ} {r : ℝ} (hr : 0 < r) : |
| 209 | sphereMass k r = ENNReal.ofReal (sphereDensity k r / 2) := Set.indicator_of_mem hr _ |
| 210 | |
| 211 | /-- The sphere mass function `sphereMass k` is measurable on the real line. -/ |
| 212 | @[fun_prop] |
| 213 | theorem measurable_sphereMass (k : ℕ) : Measurable (sphereMass k) := |
| 214 | Measurable.indicator (by fun_prop) measurableSet_Ioi |
| 215 | |
| 216 | /-- The sphere mass function `sphereMass k` is continuous at every positive radius `r`. -/ |
| 217 | theorem continuousAt_sphereMass {k : ℕ} {r : ℝ} (hr : 0 < r) : ContinuousAt (sphereMass k) r := by |
| 218 | have h_cont : Continuous fun x : ℝ ↦ ENNReal.ofReal (sphereDensity k x / 2) := |
| 219 | continuous_ofReal.comp (by fun_prop) |
| 220 | refine h_cont.continuousAt.congr ?_ |
| 221 | filter_upwards [Ioi_mem_nhds hr] with x hx using (sphereMass_of_pos hx).symm |
| 222 | |
| 223 | /-- Coordinates for the last vector `-z + ∑ a_b e_b + x` of a tuple dual to the frame |
| 224 | `(e₁, …, e_ϱ, z)`, where `v = (a, x)` and `x` lies in `X₀ = ℂ ^ κ`, of dimension `k = |κ|` and with |
| 225 | the basis `x_i`. Fix `u = unipotentOf q`, an element of the unipotent group `𝖴⁰` fixing the frame. |
| 226 | Write the vector as `u · embedH h` applied to `-z + ∑ c_b e_b + √(1 + r) x_{k₀}`, where `p = (c, r)` |
| 227 | and `r` is the product of the vector with itself. Here `k₀` is the chosen element of `κ`, `h` lies |
| 228 | in `U(κ)`, and `embedH h` acts as `h` on `X₀` and as the identity elsewhere. Then Lebesgue measure |
| 229 | `dv` is `sphereMass k (1 + r) dc dr dh`, with `dh` the Haar probability measure. -/ |
| 230 | theorem lintegral_neg_single_add_freeCols_mulVec_eq {K : (𝔰.BesselIndex → ℂ) → ℝ≥0∞} |
| 231 | (hK : Measurable K) (q : 𝔰.UnipotentParams) : |
| 232 | ∫⁻ v : Fin 𝔰.ϱ ⊕ 𝔰.κ → ℂ, K (-Pi.single 𝔰.z (1 : ℂ) + 𝔰.freeCols *ᵥ v) = |
| 233 | ∫⁻ p : (Fin 𝔰.ϱ → ℂ) × ℝ, sphereMass 𝔰.k (1 + p.2) * ∫⁻ h : U (1 : Matrix 𝔰.κ 𝔰.κ ℂ), |
| 234 | K ((unipotentOf q * embedH h).val.val *ᵥ (-Pi.single 𝔰.z 1 + 𝔰.isotropicCols *ᵥ p.1 + |
| 235 | 𝔰.definiteCols *ᵥ √(1 + p.2) • Pi.single 𝔰.k₀ 1)) := by |
| 236 | -- On these vectors `h` rotates `x` and `u` translates `a`. |
| 237 | have h_act (h : U (1 : Matrix 𝔰.κ 𝔰.κ ℂ)) (a : Fin 𝔰.ϱ → ℂ) (x : 𝔰.κ → ℂ) : |
| 238 | (unipotentOf q * embedH h).val.val *ᵥ |
| 239 | (-Pi.single 𝔰.z 1 + 𝔰.isotropicCols *ᵥ a + 𝔰.definiteCols *ᵥ x) = |
| 240 | -Pi.single 𝔰.z 1 + 𝔰.isotropicCols *ᵥ (a + q.1 *ᵥ h.val.val *ᵥ x) + |
| 241 | 𝔰.definiteCols *ᵥ h.val.val *ᵥ x := by |
| 242 | simp [funext_iff, val_unipotentOf_coe, val_toBesselH_apply_coe, mulVec, dotProduct, |
| 243 | inclMatrix, Matrix.mul_apply, Matrix.one_apply, Pi.single_apply] |
| 244 | let translated (a : Fin 𝔰.ϱ → ℂ) (x : 𝔰.κ → ℂ) : ℝ≥0∞ := |
| 245 | K (-Pi.single 𝔰.z 1 + 𝔰.isotropicCols *ᵥ (a + q.1 *ᵥ x) + 𝔰.definiteCols *ᵥ x) |
| 246 | calc |
| 247 | -- split `v = (a, x)` and translate `a` by `q.1 x` |
| 248 | _ = ∫⁻ x : 𝔰.κ → ℂ, ∫⁻ a : Fin 𝔰.ϱ → ℂ, translated a x := by |
| 249 | rw [← Floors.measurePreserving_sumElim.lintegral_comp (by fun_prop), volume_eq_prod, |
| 250 | lintegral_prod_symm _ (by fun_prop)] |
| 251 | simp only [fromCols_mulVec_sumElim, ← add_assoc] |
| 252 | exact lintegral_congr fun x : 𝔰.κ → ℂ ↦ (lintegral_add_right_eq_self _ (q.1 *ᵥ x)).symm |
| 253 | -- polar coordinates in `x` |
| 254 | _ = ∫⁻ r : ℝ, sphereMass 𝔰.k r * |
| 255 | ∫⁻ h : U 1, ∫⁻ a, translated a (h.val.val *ᵥ √r • Pi.single 𝔰.k₀ 1) := by |
| 256 | rw [Floors.lintegral_eq_polar 𝔰.k₀ (by fun_prop), ← lintegral_indicator measurableSet_Ioi] |
| 257 | simp only [sphereMass, Set.indicator_mul_left] |
| 258 | -- shift `r` by one and integrate in `h` before `a` |
| 259 | _ = ∫⁻ p : (Fin 𝔰.ϱ → ℂ) × ℝ, sphereMass 𝔰.k (1 + p.2) * |
| 260 | ∫⁻ h : U 1, translated p.1 (h.val.val *ᵥ √(1 + p.2) • Pi.single 𝔰.k₀ 1) := by |
| 261 | rw [← lintegral_add_left_eq_self _ 1, volume_eq_prod, lintegral_prod_symm _ (by fun_prop)] |
| 262 | refine lintegral_congr fun r : ℝ ↦ ?_ |
| 263 | rw [lintegral_lintegral_swap (by fun_prop), ← lintegral_const_mul _ (by fun_prop)] |
| 264 | _ = _ := by simp only [translated, h_act] |
| 265 | |
| 266 | /-- Coordinates on the tuples dual to the frame `e = (e₁, …, e_ϱ, z)`, which are the `J₁ e + R p`: |
| 267 | here `e` is `frameCols`, and `R` is `freeCols`, whose columns are the `e_b` and the basis vectors |
| 268 | `x_i` of `X₀ = ℂ ^ κ`. Write such a tuple as `s y(T)`, where `T = hermOfReal t` is its Gram matrix, |
| 269 | with real coordinates `t`, `y(T) = dualFrameOfGram T` is the standard dual tuple with the Gram |
| 270 | matrix `T`, and `s` lies in the fixer `R°` of the frame, with its measure `ds = fixerHaar 𝔰`. Then |
| 271 | Lebesgue measure `dp` is `2 ^ (-ϱ) sphereMass k r dt ds`, where `k = |κ|` and |
| 272 | `r = 1 + T_{last,last}`. -/ |
| 273 | theorem lintegral_eq_lintegral_sphereMass_mul_dualFrameOfGram |
| 274 | {K : Matrix 𝔰.BesselIndex (Fin (𝔰.ϱ + 1)) ℂ → ℝ≥0∞} (hK : Measurable K) : |
| 275 | ∫⁻ p : Matrix (Fin 𝔰.ϱ ⊕ 𝔰.κ) (Fin (𝔰.ϱ + 1)) ℂ, K (𝔰.J₁ * 𝔰.frameCols + 𝔰.freeCols * p) = |
| 276 | ∫⁻ t : Matrix (Fin (𝔰.ϱ + 1)) (Fin (𝔰.ϱ + 1)) ℝ, |
| 277 | (2 ^ 𝔰.ϱ)⁻¹ * sphereMass 𝔰.k (1 + (hermOfReal t 𝔰.top 𝔰.top).re) * |
| 278 | ∫⁻ s : 𝔰.G₁, K (s.val.val * dualFrameOfGram (hermOfReal t)) ∂fixerHaar 𝔰 := by |
| 279 | -- Choose the first `ϱ` vectors, which fixes the upper left block of `T` and the unipotent part |
| 280 | -- of `s`, and then the last vector. |
| 281 | let firstCols (t : Matrix (Fin 𝔰.ϱ) (Fin 𝔰.ϱ) ℝ) : Matrix 𝔰.BesselIndex (Fin 𝔰.ϱ) ℂ := |
| 282 | 𝔰.dualCols + 𝔰.isotropicCols * ((2⁻¹ : ℂ) • hermOfReal t) |
| 283 | let lastIntegral (Y : Matrix 𝔰.BesselIndex (Fin 𝔰.ϱ) ℂ) : ℝ≥0∞ := |
| 284 | ∫⁻ v : Fin 𝔰.ϱ ⊕ 𝔰.κ → ℂ, K (joinCol (splitLast 𝔰.ϱ) (Y, -Pi.single 𝔰.z 1 + 𝔰.freeCols *ᵥ v)) |
| 285 | let tuple (p : Matrix (Fin 𝔰.ϱ) (Fin 𝔰.ϱ) ℝ × (Fin 𝔰.ϱ → ℂ) × ℝ) : |
| 286 | Matrix 𝔰.BesselIndex (Fin (𝔰.ϱ + 1)) ℂ := |
| 287 | joinCol (splitLast 𝔰.ϱ) (firstCols p.1, -Pi.single 𝔰.z 1 + 𝔰.isotropicCols *ᵥ p.2.1 + |
| 288 | 𝔰.definiteCols *ᵥ √(1 + p.2.2) • Pi.single 𝔰.k₀ 1) |
| 289 | let movedIntegrand (p : Matrix (Fin 𝔰.ϱ) (Fin 𝔰.ϱ) ℝ × (Fin 𝔰.ϱ → ℂ) × ℝ) (s : 𝔰.G₁) : ℝ≥0∞ := |
| 290 | K (s.val.val * tuple p) |
| 291 | -- A dual tuple is given by its first `ϱ` vectors and its last one. |
| 292 | have h_split (p : Matrix (Fin 𝔰.ϱ ⊕ 𝔰.κ) (Fin 𝔰.ϱ) ℂ) (v : Fin 𝔰.ϱ ⊕ 𝔰.κ → ℂ) : |
| 293 | 𝔰.J₁ * 𝔰.frameCols + 𝔰.freeCols * joinCol (splitLast 𝔰.ϱ) (p, v) = joinCol (splitLast 𝔰.ϱ) |
| 294 | (𝔰.dualCols + 𝔰.freeCols * p, -Pi.single 𝔰.z 1 + 𝔰.freeCols *ᵥ v) := by |
| 295 | simp [← ext_iff, forall_fin_succ', mul_joinCol, splitGram, middleGram, inclMatrix, |
| 296 | Matrix.mul_apply, Matrix.one_apply, Pi.single_apply] |
| 297 | -- With the first `ϱ` vectors fixed, integrate over the last one; `h` fixes the first ones. |
| 298 | have h_last_vector (t : Matrix (Fin 𝔰.ϱ) (Fin 𝔰.ϱ) ℝ) (q : 𝔰.UnipotentParams) : |
| 299 | lastIntegral ((unipotentOf q).val.val * firstCols t) = |
| 300 | ∫⁻ p : (Fin 𝔰.ϱ → ℂ) × ℝ, sphereMass 𝔰.k (1 + p.2) * |
| 301 | ∫⁻ h : U 1, movedIntegrand (t, p) (unipotentOf q * embedH h) := by |
| 302 | have h_first (h : U (1 : Matrix 𝔰.κ 𝔰.κ ℂ)) : (unipotentOf q * embedH h).val.val * firstCols t = |
| 303 | (unipotentOf q).val.val * firstCols t := by |
| 304 | simp [firstCols, coe_embedH, actOnCols, Matrix.mul_assoc, Matrix.mul_add, Matrix.add_mul, |
| 305 | Matrix.sub_mul, inclMatrix_gram_eq_zero, inclMatrix_gram_mul_eq_zero] |
| 306 | simp only [movedIntegrand, tuple, mul_joinCol, h_first] |
| 307 | exact lintegral_neg_single_add_freeCols_mulVec_eq (K := fun v : 𝔰.BesselIndex → ℂ ↦ |
| 308 | K (joinCol (splitLast 𝔰.ϱ) ((unipotentOf q).val.val * firstCols t, v))) (by fun_prop) q |
| 309 | -- The measure preserving `φ` gives `t` by its upper left block, the rest of the last column of |
| 310 | -- `hermOfReal t` and its corner. |
| 311 | obtain ⟨φ, φ_vol, φ_apply⟩ := exists_measurePreserving_hermCorner (splitLast 𝔰.ϱ) |
| 312 | calc |
| 313 | _ = ∫⁻ p : Matrix (Fin 𝔰.ϱ ⊕ 𝔰.κ) (Fin 𝔰.ϱ) ℂ, lastIntegral (𝔰.dualCols + 𝔰.freeCols * p) := by |
| 314 | rw [← (measurePreserving_joinCol (splitLast 𝔰.ϱ)).lintegral_comp (by fun_prop), |
| 315 | volume_eq_prod, lintegral_prod _ (by fun_prop)] |
| 316 | simp only [lastIntegral, h_split] |
| 317 | _ = (2 ^ 𝔰.ϱ)⁻¹ * ∫⁻ t : Matrix (Fin 𝔰.ϱ) (Fin 𝔰.ϱ) ℝ, ∫⁻ q : 𝔰.UnipotentParams, |
| 318 | lastIntegral ((unipotentOf q).val.val * firstCols t) := |
| 319 | lintegral_eq_unipotent_coords (by fun_prop) |
| 320 | _ = ∫⁻ p : Matrix (Fin 𝔰.ϱ) (Fin 𝔰.ϱ) ℝ × (Fin 𝔰.ϱ → ℂ) × ℝ, |
| 321 | (2 ^ 𝔰.ϱ)⁻¹ * sphereMass 𝔰.k (1 + p.2.2) * |
| 322 | ∫⁻ s : 𝔰.G₁, movedIntegrand p s ∂fixerHaar 𝔰 := by |
| 323 | rw [volume_eq_prod (Matrix (Fin 𝔰.ϱ) (Fin 𝔰.ϱ) ℝ), lintegral_prod _ (by fun_prop), |
| 324 | ← lintegral_const_mul _ (by fun_prop)] |
| 325 | refine lintegral_congr fun t ↦ ?_ |
| 326 | rw [lintegral_congr (h_last_vector t), lintegral_lintegral_swap (by fun_prop), |
| 327 | ← lintegral_const_mul _ (by fun_prop)] |
| 328 | refine lintegral_congr fun p ↦ ?_ |
| 329 | rw [lintegral_const_mul _ (by fun_prop), lintegral_fixerHaar_eq_unipotentOf (by fun_prop), |
| 330 | mul_assoc] |
| 331 | _ = _ := by |
| 332 | rw [← φ_vol.lintegral_comp (by fun_prop)] |
| 333 | refine lintegral_congr fun t ↦ ?_ |
| 334 | have h_tuple : tuple (φ t) = dualFrameOfGram (hermOfReal t) := by |
| 335 | simp [φ_apply, tuple, firstCols, dualFrameOfGram, re_hermOfReal_apply_self, |
| 336 | submatrix_hermOfReal t (castSucc_injective _), splitLast, Function.comp_def] |
| 337 | simp only [movedIntegrand, h_tuple] |
| 338 | simp [φ_apply, re_hermOfReal_apply_self, splitLast] |
| 339 | |
| 340 | /-! ### The fibre measure on frames, over the matrix of products with the standard frame -/ |
| 341 | |
| 342 | /-- Coordinates on the tuples `y = J₁ e Z + R p` whose products with the frame |
| 343 | `e = (e₁, …, e_ϱ, z) = 𝔰.frameCols` form the invertible matrix `Z`, where `R = 𝔰.freeCols` has the |
| 344 | columns `e_b` and `x_i`. Write `y = y' Z`, so that `y'` is dual to the frame and has the Gram matrix |
| 345 | `T' = Z⁻¹ᴴ T Z⁻¹` if `y` has the Gram matrix `T = hermOfReal t`. Then `y' = s · dualFrameOfGram T'` |
| 346 | is the standard dual tuple with the Gram matrix `T'`, moved by an element `s` of the fixer `𝖴⁰ U(κ)` |
| 347 | of the frame, and Lebesgue measure `dp` is `|det Z| ^ (2 (k - 1)) 2 ^ (-ϱ) sphereMass k r dt ds`, |
| 348 | where `k = |κ|` and `r = 1 + T'_{last,last}`. Here `sphereMass k r` is the mass |
| 349 | `π ^ k r ^ (k - 1) / (k - 1)!` of the sphere `⟨x, x⟩ = r` in `ℂ ^ k` if `r > 0`, and `0` otherwise; |
| 350 | `ds = fixerHaar 𝔰` is Lebesgue measure in the parameter of `unipotentOf` on `𝖴⁰` times the Haar |
| 351 | probability measure on `U(κ)`; and `s.val.val` is the matrix of `s`. -/ |
| 352 | theorem lintegral_eq_dualFrameOfGram_mul {Z : 𝔰.FrameMatrix} (hZ : Z.det ≠ 0) |
| 353 | {K : Matrix 𝔰.BesselIndex (Fin (𝔰.ϱ + 1)) ℂ → ℝ≥0∞} (hK : Measurable K) : |
| 354 | ∫⁻ p : Matrix (Fin 𝔰.ϱ ⊕ 𝔰.κ) (Fin (𝔰.ϱ + 1)) ℂ, K (𝔰.J₁ * 𝔰.frameCols * Z + 𝔰.freeCols * p) = |
| 355 | ∫⁻ t : Matrix (Fin (𝔰.ϱ + 1)) (Fin (𝔰.ϱ + 1)) ℝ, |
| 356 | ‖Z.det‖ₑ ^ (2 * (𝔰.k - 1)) * (2 ^ 𝔰.ϱ)⁻¹ * |
| 357 | sphereMass 𝔰.k (1 + ((Z⁻¹ᴴ * hermOfReal t * Z⁻¹) 𝔰.top 𝔰.top).re) * |
| 358 | ∫⁻ s : 𝔰.G₁, K (s.val.val * dualFrameOfGram (Z⁻¹ᴴ * hermOfReal t * Z⁻¹) * Z) |
| 359 | ∂fixerHaar 𝔰 := by |
| 360 | -- The substitution costs `|det Z| ^ (2 (ϱ + k))` in `dp` and `|det Z| ^ (2 (ϱ + 1))` in `dT`. |
| 361 | let dualIntegrand (T : 𝔰.FrameMatrix) : ℝ≥0∞ := |
| 362 | (2 ^ 𝔰.ϱ)⁻¹ * sphereMass 𝔰.k (1 + (T 𝔰.top 𝔰.top).re) * |
| 363 | ∫⁻ s : 𝔰.G₁, K (s.val.val * dualFrameOfGram T * Z) ∂fixerHaar 𝔰 |
| 364 | have h_exp : 2 * card (Fin 𝔰.ϱ ⊕ 𝔰.κ) = 2 * (𝔰.k - 1) + 2 * card (Fin (𝔰.ϱ + 1)) := by |
| 365 | grind [card_sum, card_fin, card_pos_iff.2 (⟨𝔰.k₀⟩ : Nonempty 𝔰.κ)] |
| 366 | calc |
| 367 | _ = ‖Z.det‖ₑ ^ (2 * card (Fin 𝔰.ϱ ⊕ 𝔰.κ)) * ∫⁻ p : Matrix (Fin 𝔰.ϱ ⊕ 𝔰.κ) (Fin (𝔰.ϱ + 1)) ℂ, |
| 368 | K ((𝔰.J₁ * 𝔰.frameCols + 𝔰.freeCols * p) * Z) := by |
| 369 | rw [lintegral_eq_det_mul_comp_mul_mul (P := 1) (by simp) hZ (by fun_prop)] |
| 370 | simp [Matrix.add_mul, Matrix.mul_assoc] |
| 371 | _ = ‖Z.det‖ₑ ^ (2 * card (Fin 𝔰.ϱ ⊕ 𝔰.κ)) * ∫⁻ t, dualIntegrand (hermOfReal t) := by |
| 372 | rw [lintegral_eq_lintegral_sphereMass_mul_dualFrameOfGram (K := fun y ↦ K (y * Z)) |
| 373 | (by fun_prop)] |
| 374 | _ = ‖Z.det‖ₑ ^ (2 * (𝔰.k - 1)) * ∫⁻ t, dualIntegrand (Z⁻¹ᴴ * hermOfReal t * Z⁻¹) := by |
| 375 | rw [lintegral_eq_det_mul_comp_congruence hZ (G := fun T ↦ dualIntegrand (Z⁻¹ᴴ * T * Z⁻¹)) |
| 376 | (by fun_prop), h_exp, pow_add, mul_assoc] |
| 377 | simp [← Matrix.mul_assoc, ← conjTranspose_mul, hZ] |
| 378 | _ = _ := by simp (disch := finiteness) only [dualIntegrand, mul_assoc, lintegral_const_mul'] |
| 379 | |
| 380 | /-- The Gram matrix of the frame is `diag(0, …, 0, -1)`; so its congruence by `Z⁻¹` is `-ζᴴ ζ` for |
| 381 | the last row `ζ` of `Z⁻¹`. -/ |
| 382 | theorem inv_frameGram_inv_apply (Z : 𝔰.FrameMatrix) (a b : Fin (𝔰.ϱ + 1)) : |
| 383 | (Z⁻¹ᴴ * (𝔰.frameColsᴴ * 𝔰.J₁ * 𝔰.frameCols) * Z⁻¹) a b = |
| 384 | -(starRingEnd ℂ (Z⁻¹ 𝔰.top a) * Z⁻¹ 𝔰.top b) := by |
| 385 | simp [Matrix.mul_apply, splitGram, middleGram, inclMatrix, Matrix.one_apply, sum_univ_castSucc] |
| 386 | |
| 387 | /-- For the congruence `T` by `Z⁻¹` of the Gram matrix of the frame, `1 + T_{last,last}` is |
| 388 | `oneSubNormSqInvCorner Z = 1 - |ξ|²`, with `ξ` the last diagonal entry of `Z⁻¹`. -/ |
| 389 | theorem one_add_inv_frameGram_inv_top (Z : 𝔰.FrameMatrix) : |
| 390 | 1 + ((Z⁻¹ᴴ * (𝔰.frameColsᴴ * 𝔰.J₁ * 𝔰.frameCols) * Z⁻¹) 𝔰.top 𝔰.top).re = |
| 391 | oneSubNormSqInvCorner Z := by |
| 392 | rw [inv_frameGram_inv_apply, conj_mul', ← Complex.ofReal_pow, neg_re, ofReal_re, |
| 393 | oneSubNormSqInvCorner, invCorner, sub_eq_add_neg] |
| 394 | |
| 395 | /-- Let `ζ` be the last row of `Z⁻¹`. Row `a < ϱ` of `sectionCoeff Z Zᴴ` is row `a` of `-ζᴴ ζ`, |
| 396 | halved in the first `ϱ` columns. The matrix `sectionCoeff Z W` is built from the last row of `Z⁻¹` |
| 397 | and the last column of `W⁻¹`. -/ |
| 398 | theorem sectionCoeff_conjTranspose_castSucc_apply (Z : 𝔰.FrameMatrix) (a : Fin 𝔰.ϱ) |
| 399 | (b : Fin (𝔰.ϱ + 1)) : |
| 400 | sectionCoeff Z Zᴴ a.castSucc b = |
| 401 | (if b = 𝔰.top then 1 else 2⁻¹) * -(starRingEnd ℂ (Z⁻¹ 𝔰.top a.castSucc) * Z⁻¹ 𝔰.top b) := by |
| 402 | -- The last factor of `sectionCoeff` doubles the last column of the product of the others. |
| 403 | have h_prod : (diagLast (𝔰 := 𝔰) 0 * Zᴴ⁻¹ * (1 - diagLast (𝔰 := 𝔰) 2⁻¹) * Z⁻¹) a.castSucc b = |
| 404 | 2⁻¹ * (starRingEnd ℂ (Z⁻¹ 𝔰.top a.castSucc) * Z⁻¹ 𝔰.top b) := by |
| 405 | simp [diagLast, Matrix.mul_apply, sum_univ_castSucc, Matrix.one_apply, diagonal_apply, |
| 406 | (castSucc_lt_last _).ne', ← conjTranspose_nonsing_inv, mul_comm, mul_left_comm, |
| 407 | show (1 - 2⁻¹ : ℂ) = 2⁻¹ by norm_num] |
| 408 | have h_two : diagLast (𝔰 := 𝔰) 2 = diagonal (snoc 1 2) := rfl |
| 409 | rw [sectionCoeff, h_two, Matrix.sub_apply, mul_diagonal, h_prod] |
| 410 | induction b using lastCases <;> simp [diagLast, Matrix.one_apply, diagonal_apply, |
| 411 | mul_right_comm _ _ (2 : ℂ)] |
| 412 | |
| 413 | /-- The last row of `sectionCoeff Z Zᴴ` is `(0, …, 0, -1)`. For `Z` in the open cell, the columns of |
| 414 | `sectionCoeff Z W` at `W = Zᴴ` are the coefficients of `e₁, …, e_ϱ, z` in the tuple `y'` that is |
| 415 | dual to the frame `e` and has `γ_Z e = y' Z`. -/ |
| 416 | theorem sectionCoeff_conjTranspose_top_apply (Z : 𝔰.FrameMatrix) (b : Fin (𝔰.ϱ + 1)) : |
| 417 | sectionCoeff Z Zᴴ 𝔰.top b = if b = 𝔰.top then -1 else 0 := by |
| 418 | induction b using lastCases <;> |
| 419 | simp [sectionCoeff, diagLast, Matrix.mul_assoc, (castSucc_lt_last _).ne'] |
| 420 | |
| 421 | /-- For `Z` in the open cell and `γ_Z = gramSection Z`, the chosen element of `G₁` for which the |
| 422 | products of `e` with `γ_Z e` form `Z`, the image `γ_Z e` of the frame `e = 𝔰.frameCols` is `y' Z`, |
| 423 | where `y'` is the tuple dual to `e` that `New.RealPlace.dualFrameOfGram` attaches to the congruence |
| 424 | by `Z⁻¹` of the Gram matrix of `e`. -/ |
| 425 | theorem dualFrameOfGram_mul_eq_gramSection_mul {Z : 𝔰.FrameMatrix} (hZ : Z ∈ 𝔰.openCell) : |
| 426 | dualFrameOfGram (Z⁻¹ᴴ * (𝔰.frameColsᴴ * 𝔰.J₁ * 𝔰.frameCols) * Z⁻¹) * Z = |
| 427 | ((gramSection Z : GL 𝔰.BesselIndex ℂ) : Matrix 𝔰.BesselIndex 𝔰.BesselIndex ℂ) * |
| 428 | 𝔰.frameCols := by |
| 429 | -- Compare the coefficients of the vectors e_a, x_i, z and e*_a in the two tuples. |
| 430 | rw [coe_gramSection hZ, sectionMatrix_mul_frameCols, sectionFrame, |
| 431 | sqrt_eq_sqrt_oneSubNormSqInvCorner hZ] |
| 432 | congr 1 |
| 433 | ext (a | (i | _) | a) b |
| 434 | all_goals |
| 435 | try rw [dualFrameOfGram_apply_inl, inv_frameGram_inv_apply, |
| 436 | ← sectionCoeff_conjTranspose_castSucc_apply] |
| 437 | try rw [dualFrameOfGram_apply_indexX₀, one_add_inv_frameGram_inv_top] |
| 438 | try rw [dualFrameOfGram_apply_z, ← sectionCoeff_conjTranspose_top_apply Z] |
| 439 | try rw [dualFrameOfGram_apply_eStar] |
| 440 | induction b using lastCases <;> |
| 441 | simp [Matrix.mul_apply, inclMatrix, Matrix.one_apply, sum_univ_castSucc, diagLast, |
| 442 | diagonal_apply, eq_comm, (castSucc_lt_last _).ne] |
| 443 | |
| 444 | /-- The measure on `G₁` that is the law of `s γ_Z`, for `Z` in the open cell and `s` in the fixer |
| 445 | `R°` of the frame, under `dZ ds` with the density `2 ^ (-ϱ) π ^ k 𝗀(Z) ^ (k - 1) / (k - 1)!`. Here |
| 446 | `γ_Z = New.RealPlace.gramSection Z` and `𝗀 = New.RealPlace.gramDiscReal`. -/ |
| 447 | def gramSectionMeasure (𝔰 : Shape) : Measure 𝔰.G₁ := |
| 448 | (((volume.restrict 𝔰.openCell).prod (fixerHaar 𝔰)).withDensity |
| 449 | fun p : 𝔰.FrameMatrix × 𝔰.G₁ ↦ ENNReal.ofReal |
| 450 | (sphereDensity 𝔰.k 1 / 2 ^ (𝔰.ϱ + 1) * gramDiscReal p.1 ^ (𝔰.k - 1))).map |
| 451 | fun p : 𝔰.FrameMatrix × 𝔰.G₁ ↦ p.2 * gramSection p.1 |
| 452 | |
| 453 | instance : SFinite (gramSectionMeasure 𝔰) := by |
| 454 | unfold gramSectionMeasure |
| 455 | infer_instance |
| 456 | |
| 457 | /-- Let `T = hermOfReal t`, let `Z` be invertible and put `T' = Z⁻¹ᴴ T Z⁻¹`. If |
| 458 | `1 + T'_{last,last} ≥ 0`, then for all `s` in `G₁` the tuple `s (dualFrameOfGram T') Z` has the |
| 459 | Gram matrix `T`, that is, its Gram coordinates `gramCoords` are `t`. -/ |
| 460 | theorem gramCoords_dualFrameOfGram_mul {Z : 𝔰.FrameMatrix} (hZ : Z.det ≠ 0) |
| 461 | {t : Matrix (Fin (𝔰.ϱ + 1)) (Fin (𝔰.ϱ + 1)) ℝ} |
| 462 | (h_corner : 0 ≤ 1 + ((Z⁻¹ᴴ * hermOfReal t * Z⁻¹) 𝔰.top 𝔰.top).re) (s : 𝔰.G₁) : |
| 463 | gramCoords 𝔰.J₁ (s.val.val * dualFrameOfGram (Z⁻¹ᴴ * hermOfReal t * Z⁻¹) * Z) = t := by |
| 464 | rw [Matrix.mul_assoc, gramCoords_U_mul, gramCoords_eq_iff, gram_mul, |
| 465 | gram_dualFrameOfGram (by simp [Matrix.mul_assoc]) h_corner] |
| 466 | simp [← Matrix.mul_assoc, ← conjTranspose_mul, hZ] |
| 467 | |
| 468 | /-- A matrix in the open cell, the set of invertible `Z` whose inverse has last diagonal entry of |
| 469 | absolute value less than `1`, has nonzero determinant. -/ |
| 470 | theorem det_ne_zero_of_mem_openCell {Z : 𝔰.FrameMatrix} (hZ : Z ∈ 𝔰.openCell) : Z.det ≠ 0 := hZ.left |
| 471 | |
| 472 | /-- Let `𝔰` be a shape with `ϱ` hyperbolic pairs and index set `κ`, and let `k = |κ|`. Let `Z` lie |
| 473 | in the open cell `𝔰.openCell`: `Z` is invertible and the last diagonal entry of `Z⁻¹` has absolute |
| 474 | value less than 1. Let `𝗀(Z) = gramDiscReal Z` be `|det Z|²` minus the squared absolute value of the |
| 475 | leading minor of order `ϱ` of `Z`. Take the mass `sphereMass` of the sphere in `ℂ ^ k` of squared |
| 476 | radius `oneSubNormSqInvCorner Z = 𝗀(Z) / |det Z|²`, and multiply it by |
| 477 | `|det Z| ^ (2 (k - 1)) 2 ^ (-ϱ)`. The result is the density |
| 478 | `2 ^ (-(ϱ + 1)) sphereDensity k 1 · 𝗀(Z) ^ (k - 1)` of `New.RealPlace.gramSectionMeasure`. -/ |
| 479 | theorem enorm_det_pow_mul_sphereMass {Z : 𝔰.FrameMatrix} (hZ : Z ∈ 𝔰.openCell) : |
| 480 | ‖Z.det‖ₑ ^ (2 * (𝔰.k - 1)) * (2 ^ 𝔰.ϱ)⁻¹ * sphereMass 𝔰.k (oneSubNormSqInvCorner Z) = |
| 481 | ENNReal.ofReal (sphereDensity 𝔰.k 1 / 2 ^ (𝔰.ϱ + 1) * gramDiscReal Z ^ (𝔰.k - 1)) := by |
| 482 | have h_real : sphereDensity 𝔰.k 1 / 2 ^ (𝔰.ϱ + 1) * gramDiscReal Z ^ (𝔰.k - 1) = |
| 483 | ‖Z.det‖ ^ (2 * (𝔰.k - 1)) * (2 ^ 𝔰.ϱ)⁻¹ * |
| 484 | (sphereDensity 𝔰.k (oneSubNormSqInvCorner Z) / 2) := by |
| 485 | simp only [sphereDensity, gramDiscReal_eq_norm_det_sq_mul (det_ne_zero_of_mem_openCell hZ)] |
| 486 | ring |
| 487 | rw [h_real, sphereMass_of_pos (oneSubNormSqInvCorner_pos hZ), ENNReal.ofReal_mul (by positivity)] |
| 488 | simp [ENNReal.ofReal_mul, ENNReal.ofReal_pow, ENNReal.ofReal_inv_of_pos] |
| 489 | |
| 490 | /-- The integral of `K ≥ 0` over the tuples `J₁ e Z + R p` with `Z` in the open cell, where `e` is |
| 491 | the frame and `R = 𝔰.freeCols`, is at most its integral over all tuples. -/ |
| 492 | theorem setLIntegral_openCell_frame_coords_le |
| 493 | {K : Matrix 𝔰.BesselIndex (Fin (𝔰.ϱ + 1)) ℂ → ℝ≥0∞} (hK : Measurable K) : |
| 494 | ∫⁻ Z : 𝔰.FrameMatrix in 𝔰.openCell, ∫⁻ p : Matrix (Fin 𝔰.ϱ ⊕ 𝔰.κ) (Fin (𝔰.ϱ + 1)) ℂ, |
| 495 | K (𝔰.J₁ * 𝔰.frameCols * Z + 𝔰.freeCols * p) ≤ |
| 496 | ∫⁻ y : Matrix 𝔰.BesselIndex (Fin (𝔰.ϱ + 1)) ℂ, K y := by |
| 497 | have h_vol : MeasurePreserving fun p : 𝔰.FrameMatrix × Matrix (Fin 𝔰.ϱ ⊕ 𝔰.κ) (Fin (𝔰.ϱ + 1)) ℂ ↦ |
| 498 | 𝔰.J₁ * 𝔰.frameCols * p.1 + 𝔰.freeCols * p.2 := |
| 499 | measurePreserving_mul_mul_add_mul conjTranspose_frameCols_mul_self |
| 500 | conjTranspose_freeCols_mul_self frameCols_gram_freeCols |
| 501 | card_frame_add_card_free |
| 502 | rw [← h_vol.lintegral_comp hK, volume_eq_prod, lintegral_prod _ (by fun_prop)] |
| 503 | exact setLIntegral_le_lintegral _ _ |
| 504 | |
| 505 | -- Keeps definitional checks from unfolding the finite sums. |
| 506 | seal Finset.sum in |
| 507 | /-- Let `e = 𝔰.frameCols` be the matrix with the columns `e₁, …, e_ϱ, z` of the frame and `𝔰.J₁` the |
| 508 | matrix of the hermitian form that defines `G₁`. The measure `gramSectionMeasure 𝔰` is the law of |
| 509 | `s γ_Z` under `2 ^ (-ϱ) π ^ k / (k - 1)! · 𝗀(Z) ^ (k - 1) dZ ds`, where `Z` runs over the open cell, |
| 510 | `s` over the fixer of `e` with `ds = fixerHaar 𝔰`, `γ_Z = gramSection Z`, `k = |κ|`, and |
| 511 | `𝗀(Z) = gramDiscReal Z` is `|det Z|²` less the squared absolute value of the leading minor of order |
| 512 | `ϱ`. The image `l` of this measure under `g ↦ g e` is at most the fibre measure `dY / dT` of the |
| 513 | Gram map `Y ↦ T = Yᴴ J₁ Y` over the Gram matrix `T₀` of `e`. Here `dY` is Lebesgue measure on the |
| 514 | matrices `Y` of the size of `e`, and `dT` is Lebesgue measure in the real coordinates of `T` |
| 515 | (`hermOfReal`). By the definition of `LeGramFiber` this means: if `K ≥ 0` is lower semicontinuous |
| 516 | and `∫_{T(Y) ∈ S} K dY ≤ C vol(S)` for all open `S` inside some neighbourhood of `T₀`, then |
| 517 | `∫ K dl ≤ C`. -/ |
| 518 | theorem leGramFibre_gramSectionMeasure : |
| 519 | LeGramFiber 𝔰.J₁ 𝔰.frameCols (gramSectionMeasure 𝔰) := by |
| 520 | -- The tuples with `Z` in the open cell have the coordinates `tuple t (Z, s)`, with the density |
| 521 | -- `density t (Z, s)` for `dt` and `μ = dZ ds`. At the coordinates `t₀` of the Gram matrix of `e` |
| 522 | -- the point is `s γ_Z e` and the sphere has the squared radius `oneSubNormSqInvCorner Z`. |
| 523 | let μ : Measure (𝔰.FrameMatrix × 𝔰.G₁) := (volume.restrict 𝔰.openCell).prod (fixerHaar 𝔰) |
| 524 | let congrGram (t : Matrix (Fin (𝔰.ϱ + 1)) (Fin (𝔰.ϱ + 1)) ℝ) (Z : 𝔰.FrameMatrix) : |
| 525 | 𝔰.FrameMatrix := Z⁻¹ᴴ * hermOfReal t * Z⁻¹ |
| 526 | let tuple (t : Matrix (Fin (𝔰.ϱ + 1)) (Fin (𝔰.ϱ + 1)) ℝ) (p : 𝔰.FrameMatrix × 𝔰.G₁) : |
| 527 | Matrix 𝔰.BesselIndex (Fin (𝔰.ϱ + 1)) ℂ := |
| 528 | p.2.val.val * dualFrameOfGram (congrGram t p.1) * p.1 |
| 529 | let density (t : Matrix (Fin (𝔰.ϱ + 1)) (Fin (𝔰.ϱ + 1)) ℝ) (p : 𝔰.FrameMatrix × 𝔰.G₁) : ℝ≥0∞ := |
| 530 | ‖p.1.det‖ₑ ^ (2 * (𝔰.k - 1)) * (2 ^ 𝔰.ϱ)⁻¹ * |
| 531 | sphereMass 𝔰.k (1 + (congrGram t p.1 𝔰.top 𝔰.top).re) |
| 532 | let t₀ : Matrix (Fin (𝔰.ϱ + 1)) (Fin (𝔰.ϱ + 1)) ℝ := gramCoords 𝔰.J₁ 𝔰.frameCols |
| 533 | have ht₀ : hermOfReal t₀ = 𝔰.frameColsᴴ * 𝔰.J₁ * 𝔰.frameCols := |
| 534 | hermOfReal_gramCoords IsHermitianInvolution.isHermitian _ |
| 535 | have h_cell : ∀ᵐ p ∂μ, p.1 ∈ 𝔰.openCell := |
| 536 | quasiMeasurePreserving_fst.ae (ae_restrict_mem isOpen_openCell.measurableSet) |
| 537 | have h_corner (Z : 𝔰.FrameMatrix) : |
| 538 | 1 + (congrGram t₀ Z 𝔰.top 𝔰.top).re = oneSubNormSqInvCorner Z := by |
| 539 | simp only [congrGram, ht₀, one_add_inv_frameGram_inv_top] |
| 540 | have h_fibre (t : Matrix (Fin (𝔰.ϱ + 1)) (Fin (𝔰.ϱ + 1)) ℝ) : |
| 541 | ∀ᵐ p ∂μ, density t p ≠ 0 → gramCoords 𝔰.J₁ (tuple t p) = t := by |
| 542 | filter_upwards [h_cell] with p hp h_ne_zero |
| 543 | have h_pos : 0 < 1 + (congrGram t p.1 𝔰.top 𝔰.top).re := |
| 544 | Set.mem_of_indicator_ne_zero (right_ne_zero_of_mul h_ne_zero) |
| 545 | exact gramCoords_dualFrameOfGram_mul (det_ne_zero_of_mem_openCell hp) h_pos.le p.2 |
| 546 | have h_cont : ∀ᵐ p ∂μ, ContinuousAt (tuple · p) t₀ ∧ ContinuousAt (density · p) t₀ := by |
| 547 | filter_upwards [h_cell] with p hp |
| 548 | have h_mass : ContinuousAt (fun t ↦ sphereMass 𝔰.k (1 + (congrGram t p.1 𝔰.top 𝔰.top).re)) t₀ := |
| 549 | (continuousAt_sphereMass (oneSubNormSqInvCorner_pos hp)).comp_of_eq (by fun_prop) |
| 550 | (h_corner p.1) |
| 551 | exact ⟨by fun_prop, ENNReal.Tendsto.const_mul h_mass (.inr (by finiteness))⟩ |
| 552 | have h_le (K : Matrix 𝔰.BesselIndex (Fin (𝔰.ϱ + 1)) ℂ → ℝ≥0∞) (hK : Measurable K) : |
| 553 | ∫⁻ t in Set.univ, ∫⁻ p, density t p * K (tuple t p) ∂μ ≤ ∫⁻ y, K y := calc |
| 554 | _ = ∫⁻ Z in 𝔰.openCell, ∫⁻ t, ∫⁻ s, density t (Z, s) * K (tuple t (Z, s)) ∂fixerHaar 𝔰 := by |
| 555 | rw [restrict_univ, lintegral_lintegral_swap (by fun_prop), lintegral_prod _ (by fun_prop)] |
| 556 | exact lintegral_congr fun Z ↦ lintegral_lintegral_swap (by fun_prop) |
| 557 | _ = ∫⁻ Z in 𝔰.openCell, ∫⁻ p : Matrix (Fin 𝔰.ϱ ⊕ 𝔰.κ) (Fin (𝔰.ϱ + 1)) ℂ, |
| 558 | K (𝔰.J₁ * 𝔰.frameCols * Z + 𝔰.freeCols * p) := by |
| 559 | refine setLIntegral_congr_fun isOpen_openCell.measurableSet fun Z hZ ↦ ?_ |
| 560 | simp (disch := fun_prop) only [density, tuple, congrGram, lintegral_const_mul, |
| 561 | lintegral_eq_dualFrameOfGram_mul (det_ne_zero_of_mem_openCell hZ) hK] |
| 562 | _ ≤ ∫⁻ y, K y := setLIntegral_openCell_frame_coords_le hK |
| 563 | have h_density : ∀ᵐ p ∂μ, density t₀ p = |
| 564 | ENNReal.ofReal (sphereDensity 𝔰.k 1 / 2 ^ (𝔰.ϱ + 1) * gramDiscReal p.1 ^ (𝔰.k - 1)) := |
| 565 | h_cell.mono fun p hp ↦ by simp only [density, h_corner, enorm_det_pow_mul_sphereMass hp] |
| 566 | have h_point : ∀ᵐ p ∂μ, (p.2 * gramSection p.1).val.val * 𝔰.frameCols = tuple t₀ p := |
| 567 | h_cell.mono fun p hp ↦ by simp only [tuple, congrGram, ht₀, Subgroup.coe_mul, Units.val_mul, |
| 568 | Matrix.mul_assoc p.2.val.val, dualFrameOfGram_mul_eq_gramSection_mul hp] |
| 569 | have h_law : (gramSectionMeasure 𝔰).map (fun g : 𝔰.G₁ ↦ g.val.val * 𝔰.frameCols) = |
| 570 | (μ.withDensity (density t₀)).map (tuple t₀) := by |
| 571 | rw [gramSectionMeasure, Measure.map_map (by fun_prop) (by fun_prop), |
| 572 | ← withDensity_congr_ae h_density] |
| 573 | exact Measure.map_congr (withDensity_absolutelyContinuous μ (density t₀) h_point) |
| 574 | rw [LeGramFiber, h_law] |
| 575 | exact .of_coordinates (ψ := tuple) (w := density) (by fun_prop) (by fun_prop) (by fun_prop) |
| 576 | Filter.univ_mem (fun t _ ↦ h_fibre t) h_cont h_le |
| 577 | |
| 578 | /-- The mean value inequality. For measurable `f ≥ 0` on `G₁`, the integral of `f (s' γ_Z s)` over |
| 579 | `s, s'` in the fixer `R°` of the frame and `Z` in the open cell, with density `c 𝗀(Z) ^ (k - 1)`, is |
| 580 | at most the integral of `f` over `G₁` for Haar measure. Here `γ_Z = New.RealPlace.gramSection Z` is |
| 581 | the element with the matrix `Z` of products of the frame `e` with `γ_Z e`, `k = |κ|`, |
| 582 | `r = k + 2 ϱ + 1`, `c = New.Shape.openCellConst` is `vol U(k) / vol U(r)` times the area of the unit |
| 583 | sphere in `ℂ ^ k`, and `𝗀 = New.RealPlace.gramDiscReal` is `|det Z|²` less the squared absolute |
| 584 | value of the leading minor of order `ϱ`. -/ |
| 585 | theorem lintegral_gramSection_le {f : 𝔰.G₁ → ℝ≥0∞} (hf : Measurable f) : |
| 586 | ∫⁻ Z : 𝔰.FrameMatrix in 𝔰.openCell, |
| 587 | ENNReal.ofReal (𝔰.openCellConst * gramDiscReal Z ^ (𝔰.k - 1)) * |
| 588 | ∫⁻ s' : 𝔰.G₁, ∫⁻ s : 𝔰.G₁, f (s' * gramSection Z * s) ∂fixerHaar 𝔰 ∂fixerHaar 𝔰 ≤ |
| 589 | ∫⁻ γ : 𝔰.G₁, f γ := by |
| 590 | -- The image of `gramSectionMeasure 𝔰` is at most the fibre measure on frames, so its |
| 591 | -- convolution with `fixerHaar 𝔰` is at most `ratio` times Haar measure. |
| 592 | let ratio : ℝ := volU 𝔰.r / volU 𝔰.k / 2 ^ (𝔰.ϱ + 1) |
| 593 | have h_volU_r_pos : 0 < volU 𝔰.r := volU_pos 𝔰.r |
| 594 | have h_volU_k_pos : 0 < volU 𝔰.k := volU_pos 𝔰.k |
| 595 | have h_ratio_pos : 0 < ratio := by positivity |
| 596 | have h_const (Z : 𝔰.FrameMatrix) : ratio * (𝔰.openCellConst * gramDiscReal Z ^ (𝔰.k - 1)) = |
| 597 | sphereDensity 𝔰.k 1 / 2 ^ (𝔰.ϱ + 1) * gramDiscReal Z ^ (𝔰.k - 1) := by |
| 598 | simp only [ratio, openCellConst] |
| 599 | field |
| 600 | rw [← ENNReal.mul_le_mul_iff_right (ofReal_pos.2 h_ratio_pos).ne' ofReal_ne_top] |
| 601 | calc |
| 602 | _ = ∫⁻ Z in 𝔰.openCell, |
| 603 | ENNReal.ofReal (sphereDensity 𝔰.k 1 / 2 ^ (𝔰.ϱ + 1) * gramDiscReal Z ^ (𝔰.k - 1)) * |
| 604 | ∫⁻ s', ∫⁻ s, f (s' * gramSection Z * s) ∂fixerHaar 𝔰 ∂fixerHaar 𝔰 := by |
| 605 | rw [← lintegral_const_mul _ (by fun_prop)] |
| 606 | simp only [← mul_assoc, ← ENNReal.ofReal_mul h_ratio_pos.le, h_const] |
| 607 | _ = ∫⁻ g, ∫⁻ s, f (g * s) ∂fixerHaar 𝔰 ∂gramSectionMeasure 𝔰 := by |
| 608 | rw [gramSectionMeasure, lintegral_map (by fun_prop) (by fun_prop), |
| 609 | lintegral_withDensity_eq_lintegral_mul _ (by fun_prop) (by fun_prop), |
| 610 | lintegral_prod _ (by fun_prop)] |
| 611 | exact lintegral_congr fun Z ↦ (lintegral_const_mul _ (by fun_prop)).symm |
| 612 | _ = ∫⁻ γ, f γ ∂gramSectionMeasure 𝔰 ∗ₘ fixerHaar 𝔰 := (lintegral_mconv hf).symm |
| 613 | _ ≤ ENNReal.ofReal ratio * ∫⁻ γ, f γ := by |
| 614 | grw [leGramFibre_gramSectionMeasure.mconv_fixerHaar_le, lintegral_smul_measure, smul_eq_mul] |
| 615 | |
| 616 | end New.RealPlace |
| 617 | |
| 618 | end |