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.Algebra.Group.AddChar.Basic |
| 4 | import Mathlib.Algebra.GroupWithZero.Torsion |
| 5 | import Mathlib.CategoryTheory.Countable |
| 6 | import Mathlib.MeasureTheory.Function.FactorsThrough |
| 7 | import Mathlib.MeasureTheory.Group.IntegralConvolution |
| 8 | import Mathlib.Topology.Separation.CompletelyRegular |
| 9 | import TauCeti.Analysis.Matrix.IndefiniteUnitaryGroup |
| 10 | import TauCeti.MeasureTheory.Integral.Pi |
| 11 | import TauCeti.Topology.Algebra.Group.Units |
| 12 | public import Lib.DiscreteSeries.Bruhat.FloorGroups |
| 13 | public import Lib.General.Measure.QuadricDisintegration |
| 14 | public import Lib.Adelic.QuotientMeasure.Basic |
| 15 | import Lib.General.Measure.IntegralOperators |
| 16 | |
| 17 | /-! |
| 18 | # Heisenberg elements, measures of the floors, hyperbolic bases and Plancherel at a place |
| 19 | |
| 20 | Algebra and measure theory on the unitary group `G` of the form `New.Shape.Form.splitGram T`, first |
| 21 | over a ring with involution and a `τ` of trace one, then over a place `A` (`New.Floors.Place`), |
| 22 | along its floors. The basis is `e_a`, a middle block, `e*_a` (`a < ϱ`). `V_l` is spanned by the |
| 23 | basis vectors of floor at least `l`: for `l ≤ ϱ`, the middle block and the pairs with `l ≤ a`. `h` |
| 24 | is the form. The frame `f_0, …, f_ϱ` (`New.Shape.besselFrame`) is `e_0, …, e_(ϱ-1)` followed by |
| 25 | the last vector `z` of the middle block. |
| 26 | |
| 27 | In `New.Floors.FloorGroups`, the groups `floorGroup`, `unipotentBelow`, `floorUnipotent` and |
| 28 | `partialUnitriangularGroup` are `G_l = U(V_l)`, `N_(<l)`, `N_l = G_l ∩ N_(<l+1)` and `Q_l`. The |
| 29 | group `Q_l` consists of the elements unitriangular on the first `l` frame vectors, for `l ≤ ϱ + 1`. |
| 30 | |
| 31 | `∗ₘ` is convolution of measures, so `μ ∗ₘ dirac s` is the right translate of `μ` by `s`. |
| 32 | |
| 33 | * `New.Floors.TraceOne.heisenbergElem`, `New.Floors.FloorGroups.exists_eq_heisenbergElem_of_mem`: |
| 34 | `N_a` is a Heisenberg group, given by Eichler maps. |
| 35 | * `New.Floors.Place.heisenbergMeasure`, `New.Floors.ascConv`: invariant measures on `N_l` and, by |
| 36 | convolution, on `N_(<j)`. |
| 37 | * `New.Floors.HyperbolicBasis`, `New.Floors.HyperbolicBasis.floorQuadricMeasure`: hyperbolic bases |
| 38 | of `V_ϱ` and `V_b`, and measures on quadrics in `V_b`, which disintegrate the Haar measure |
| 39 | (`New.Floors.HyperbolicBasis.isDisintegration_floorVolume`). |
| 40 | * `New.Floors.Place.plancherel_inequality`: Plancherel's inequality on `A ^ ι`. |
| 41 | |
| 42 | Notions from other files: |
| 43 | * `New.SplitIndex`: The index set made of ϱ indices, a middle set μ, and ϱ further indices, as a |
| 44 | disjoint union. |
| 45 | * `New.Shape.Form.splitGram`: The Gram matrix of ϱ hyperbolic planes and a middle space with Gram |
| 46 | matrix T: identity blocks pair the first and last ϱ indices, T is the middle block, all else is |
| 47 | zero. |
| 48 | * `New.Floors.FloorGroups.floorOf`: The floor of a basis index: `a` for `e_a` and `e*_a`, `ϱ` for |
| 49 | `z`, `ϱ + 1` for the other middle indices. |
| 50 | * `New.inclMatrix`: For a map u: m → n of index sets, the n×m matrix whose j-th column is the |
| 51 | standard basis vector e_{u(j)}. |
| 52 | |
| 53 | ## Relation to the literature |
| 54 | |
| 55 | Known; see `Lib.DiscreteSeries.Bruhat.ComplexPlace` for sources. |
| 56 | -/ |
| 57 | |
| 58 | @[expose] public section |
| 59 | |
| 60 | noncomputable section |
| 61 | |
| 62 | namespace New.Floors |
| 63 | |
| 64 | open Matrix MeasureTheory Measure Sum Function ENNReal Fintype FloorGroups Filter TraceOne Place U |
| 65 | Subgroup |
| 66 | |
| 67 | variable {A : Type} [CommRing A] [StarRing A] {𝔰 : Shape} {l : ℕ} |
| 68 | |
| 69 | namespace FloorGroups |
| 70 | |
| 71 | variable [TraceOne A] {T : 𝔰.Form A} (a : Fin 𝔰.ϱ) |
| 72 | {g s : T.G} [H : IsHermitianUnit T.splitGram] |
| 73 | (p q : ({i : 𝔰.BesselIndex // a + 1 ≤ floorOf i} → A) × skewAdjoint A) |
| 74 | |
| 75 | /-! ### The Heisenberg groups of the floors and the Bessel subgroup -/ |
| 76 | |
| 77 | /-- The isometry ν(v, β) of floor a: the Eichler transformation with |
| 78 | e*_a ↦ e*_a + v + (β − τh(v,v))e_a, for β skew. Here v is a vector of the floors at least a + 1, |
| 79 | extended by zero. -/ |
| 80 | def _root_.New.Floors.TraceOne.heisenbergElem : U T.splitGram := |
| 81 | let v := inclMatrix A (↑) *ᵥ p.1 |
| 82 | U.of H.isUnit |
| 83 | (eichlerMap T.splitGram (Pi.single (inl a) 1) (-v) |
| 84 | (element * star v ⬝ᵥ T.splitGram *ᵥ v - p.2)) <| by |
| 85 | -- The Eichler map is unitary: `e_a` is isotropic and orthogonal to `v`, and the parameter has |
| 86 | -- trace `h(v, v)` because `τ + star τ = 1` and `p.2` is skew. |
| 87 | have h_trace : element * star v ⬝ᵥ T.splitGram *ᵥ v - p.2 + |
| 88 | star (element * star v ⬝ᵥ T.splitGram *ᵥ v - (p.2 : A)) = |
| 89 | star (-v) ⬝ᵥ T.splitGram *ᵥ (-v) := by |
| 90 | simp [↓ IsHermitian.star_dotProduct_mulVec_comm H.conjTranspose_eq, mulVec_neg] |
| 91 | grind |
| 92 | obtain ⟨e, he⟩ := |
| 93 | exists_unitary_eq_eichlerMap (x := Pi.single (inl a) 1) H.conjTranspose_eq (by simp) |
| 94 | (by simp [v, inclMatrix_val_mulVec]) h_trace |
| 95 | rw [← he] |
| 96 | exact mem_unitaryGroupOf_iff.1 e.property |
| 97 | |
| 98 | /-- The Heisenberg element ν(v, β) sends w to w + w(e*_a)v + ((β − τh(v, v))w(e*_a) − h(v, w))e_a. |
| 99 | Here w(e*_a) is the e*_a coordinate of w, and v is the vector of floors at least a + 1, extended by |
| 100 | zero. -/ |
| 101 | @[local simp↓] |
| 102 | lemma heisenbergElem_mulVec (w : SplitIndex 𝔰.ϱ 𝔰.MiddleIndex → A) : |
| 103 | let v := inclMatrix A (↑) *ᵥ p.1 |
| 104 | heisenbergElem (T := T) a p *ᵥ w = |
| 105 | w + w (eStar a) • v + |
| 106 | ((p.2 - element * star v ⬝ᵥ T.splitGram *ᵥ v) * w (eStar a) - star v ⬝ᵥ T.splitGram *ᵥ w) • |
| 107 | Pi.single (inl a) 1 := by |
| 108 | have h_coe : (heisenbergElem (T := T) a p).val.val = |
| 109 | eichlerMap T.splitGram (Pi.single (inl a) 1) (-(inclMatrix A (↑) *ᵥ p.1)) |
| 110 | (element * star (inclMatrix A (↑) *ᵥ p.1) ⬝ᵥ T.splitGram *ᵥ inclMatrix A (↑) *ᵥ p.1 - |
| 111 | p.2) := rfl |
| 112 | have h_pair : star (Pi.single (inl a) (1 : A)) ⬝ᵥ T.splitGram *ᵥ w = w (eStar a) := by simp |
| 113 | rw [h_coe, eichlerMap_mulVec, h_pair] |
| 114 | simp only [star_neg, neg_dotProduct] |
| 115 | module |
| 116 | |
| 117 | /-- The Heisenberg element of floor `a` with vector `v` (on the floors above `a`) and skew parameter |
| 118 | `β` sends `e*_a` to `e*_a + v + (β - τ h(v, v)) e_a`, where `v` is extended by zero. -/ |
| 119 | lemma _root_.New.Floors.heisenbergElem_mulVec_single_eStar (a : Fin 𝔰.ϱ) |
| 120 | (v : {i : 𝔰.BesselIndex // a + 1 ≤ floorOf i} → A) (β : skewAdjoint A) : |
| 121 | (heisenbergElem (T := T) a (v, β)).val.val *ᵥ |
| 122 | Pi.single (eStar a) 1 = |
| 123 | Pi.single (eStar a) 1 + inclMatrix A Subtype.val *ᵥ v + |
| 124 | (β - TraceOne.element * star (inclMatrix A Subtype.val *ᵥ v) ⬝ᵥ |
| 125 | T.splitGram *ᵥ inclMatrix A Subtype.val *ᵥ v) • Pi.single (Sum.inl a) 1 := by |
| 126 | rw [heisenbergElem_mulVec] |
| 127 | simp [splitGram_col, inclMatrix_val_mulVec] |
| 128 | |
| 129 | /-- Let `A` have a trace-one element τ (τ + τ̄ = 1) and let `T.splitGram` be hermitian and |
| 130 | invertible. For a < ϱ, a vector v on the basis indices of floor at least a + 1 and a skew-adjoint β, |
| 131 | the Heisenberg element ν(v, β) of floor a lies in N_a = G_a ∩ N_(<a+1). Here ν(v, β) is the Eichler |
| 132 | transformation e*_a ↦ e*_a + v + (β − τh(v,v))e_a, and G_a is the group of isometries fixing every |
| 133 | basis vector of floor below a. -/ |
| 134 | lemma heisenbergElem_mem_floorUnipotent : heisenbergElem (T := T) a p ∈ floorUnipotent a := by |
| 135 | -- The matrix differs from `1` only in row `e_a` and in column `e*_a`, and the entries of `v` |
| 136 | -- vanish on the floors at most `a`: compare the entries with those of `1`. |
| 137 | refine Subgroup.mem_inf.2 ⟨?_, ?_⟩ |
| 138 | · simp [mem_floorGroup, heisenbergElem, eichlerMap, vecMulVec, Pi.single_apply, |
| 139 | inclMatrix_val_mulVec, sub_eq_zero, -mulVec_mulVec] |
| 140 | grind [star_zero] |
| 141 | · simp [mem_unipotentBelow, heisenbergElem, eichlerMap, vecMulVec, Pi.single_apply, |
| 142 | inclMatrix_val_mulVec, BesselIndex.level, sub_eq_zero, -mulVec_mulVec] |
| 143 | grind [star_zero] |
| 144 | |
| 145 | variable {a p q} |
| 146 | |
| 147 | /-- Let `s` lie in `G_{a+1}` (`floorGroup (a + 1)`), the group fixing the basis vectors of floor at |
| 148 | most a. Let ν(v, β) = `heisenbergElem a (v, β)` be the Heisenberg isometry of floor a, where v is a |
| 149 | vector on the floors at least a + 1 and β is skew-adjoint. Then s ν(v, β) = ν(sv, β) s, where sv is |
| 150 | the block of s on the floors at least a + 1 applied to v. -/ |
| 151 | lemma mul_heisenbergElem (h : s ∈ floorGroup (a + 1)) : |
| 152 | s * heisenbergElem a p = |
| 153 | heisenbergElem a (s.val.val.toSquareBlockProp (a + 1 ≤ floorOf ·) *ᵥ p.1, p.2) * s := by |
| 154 | -- `s` fixes `e_a`, keeps the form and acts on `V_(a+1)` by its block |
| 155 | set v : 𝔰.BesselIndex → A := inclMatrix A (↑) *ᵥ p.1 with hv |
| 156 | have h_block : |
| 157 | inclMatrix A (↑) *ᵥ s.val.val.toSquareBlockProp (a + 1 ≤ floorOf ·) *ᵥ p.1 = s.val.val *ᵥ v := |
| 158 | inclMatrix_mulVec_floor_block a.isLt h p.1 |
| 159 | have h_fix : s.val.val *ᵥ Pi.single (inl a) (1 : A) = Pi.single (inl a) 1 := by |
| 160 | have h_point : orbitPoint a.castSucc s = Pi.single (𝔰.besselFrame a.castSucc) 1 := |
| 161 | (mem_partialUnitriangularGroup_succ_iff (by grind)).1 |
| 162 | (mem_partialUnitriangularGroup_of_mem_floorGroup h) |
| 163 | simpa using orbitPoint_eq_iff.1 h_point |
| 164 | have h_coord (w : 𝔰.BesselIndex → A) : (s.val.val *ᵥ w) (eStar a) = w (eStar a) := by |
| 165 | simpa [h_fix, -mulVec_mulVec] using form_mulVec_mulVec s (Pi.single (inl a) 1) w |
| 166 | refine Subtype.ext (Units.ext ?_) |
| 167 | refine ext_iff_mulVec.2 fun w ↦ ?_ |
| 168 | simp [h_block, ← hv, ← mulVec_mulVec, mulVec_add, mulVec_smul, h_fix, h_coord, form_mulVec_mulVec] |
| 169 | |
| 170 | /-- The Heisenberg group law: ν(v, β)ν(v', β') = ν(v + v', β + β' + (x − x̄)), where x = τh(v', v). |
| 171 | Here v and v' are vectors of the floors at least a + 1, extended by zero, β and β' are skew, h is |
| 172 | the form of the Gram matrix, and τ is the given element with τ + τ̄ = 1. |
| 173 | |
| 174 | A special case of the composition law of Eichler–Siegel transformations on the unipotent radical of |
| 175 | an isotropic line's stabiliser, in matrix coordinates for one floor. -/ |
| 176 | lemma heisenbergElem_mul : |
| 177 | (heisenbergElem a p * heisenbergElem a q : T.G) = |
| 178 | heisenbergElem a |
| 179 | (p.1 + q.1, |
| 180 | p.2 + q.2 + |
| 181 | skewPart |
| 182 | (element * star (inclMatrix A (↑) *ᵥ q.1) ⬝ᵥ T.splitGram *ᵥ inclMatrix A (↑) *ᵥ |
| 183 | p.1)) := by |
| 184 | set v : 𝔰.BesselIndex → A := inclMatrix A (↑) *ᵥ p.1 with hv |
| 185 | set v' : 𝔰.BesselIndex → A := inclMatrix A (↑) *ᵥ q.1 with hv' |
| 186 | -- apply both sides to a vector; the vectors `v`, `v'` and `e_a` have coordinate `0` at `e*_a` |
| 187 | have hv_coord : v (eStar a) = 0 := by simp [v, inclMatrix_val_mulVec] |
| 188 | have hv'_coord : v' (eStar a) = 0 := by simp [v', inclMatrix_val_mulVec] |
| 189 | have h_star : star (star v' ⬝ᵥ T.splitGram *ᵥ v) = star v ⬝ᵥ T.splitGram *ᵥ v' := |
| 190 | IsHermitian.star_dotProduct_mulVec_comm H.conjTranspose_eq v' v |
| 191 | refine Subtype.ext (Units.ext ?_) |
| 192 | refine ext_iff_mulVec.2 fun w ↦ ?_ |
| 193 | simp [← hv, ← hv', ← mulVec_mulVec, mulVec_add, mulVec_smul, hv_coord, hv'_coord, h_star, |
| 194 | eq_sub_of_add_eq' (element_add_star (A := A))] |
| 195 | module |
| 196 | |
| 197 | /-- An isotropic vector w that vanishes on the floors below a and has coordinate 1 at e*_a is |
| 198 | ν(v, β)e*_a for some Heisenberg element ν(v, β) of floor a. -/ |
| 199 | lemma exists_heisenbergElem_mulVec_eq {w : 𝔰.BesselIndex → A} |
| 200 | (h_lower : ∀ j : 𝔰.BesselIndex, floorOf j < a → w j = 0) (h_top : w (eStar a) = 1) |
| 201 | (h_isotropic : star w ⬝ᵥ T.splitGram *ᵥ w = 0) : |
| 202 | ∃ p : ({i : 𝔰.BesselIndex // a + 1 ≤ floorOf i} → A) × skewAdjoint A, |
| 203 | w = (heisenbergElem (T := T) a p).val.val *ᵥ Pi.single (eStar a) 1 := by |
| 204 | obtain ⟨v, d, rfl⟩ : ∃ (v : {j // a + 1 ≤ floorOf j} → A) (d : A), w = Pi.single (eStar a) 1 + |
| 205 | inclMatrix A (fun j : {j // a + 1 ≤ floorOf j} ↦ j.val) *ᵥ v + d • Pi.single (inl a) 1 := by |
| 206 | refine ⟨fun j ↦ w j, w (inl a), ?_⟩ |
| 207 | simp [funext_iff, Pi.single_apply, inclMatrix_val_mulVec] at h_lower ⊢ |
| 208 | grind |
| 209 | -- isotropy determines `d + star d`, and the skew parameter supplies the rest of `d` |
| 210 | have h_trace : d + star d = -(star (inclMatrix A (↑) *ᵥ v) ⬝ᵥ T.splitGram *ᵥ |
| 211 | inclMatrix A (↑) *ᵥ v) := by |
| 212 | simp [mulVec_add, mulVec_smul, inclMatrix_val_mulVec, -mulVec_mulVec] at h_isotropic |
| 213 | grind |
| 214 | use ⟨v, skewPart (star element * d)⟩ |
| 215 | have h_coef : star element * d - element * star d - element * star (inclMatrix A (↑) *ᵥ v) ⬝ᵥ |
| 216 | T.splitGram *ᵥ |
| 217 | inclMatrix A (↑) *ᵥ v = d := by |
| 218 | grind |
| 219 | rw [heisenbergElem_mulVec_single_eStar] |
| 220 | simp [h_coef, -mulVec_mulVec] |
| 221 | |
| 222 | /-- Let g lie in G_a and let i be the index of e_a or e*_a. If c times column i of g has coordinate |
| 223 | 1 at e*_a, then it equals ν(v, β)e*_a for some Heisenberg element ν(v, β) of floor a. -/ |
| 224 | lemma exists_col_eq_heisenbergElem (i : 𝔰.BesselIndex) (c : A) (h : g ∈ floorGroup a) |
| 225 | (h_floor : floorOf i = a) (h_entry : g.val (eStar a) i * c = 1) : |
| 226 | ∃ p : ({ i // a + 1 ≤ floorOf i } → A) × skewAdjoint A, |
| 227 | g *ᵥ Pi.single i c = (heisenbergElem (T := T) a p).val.val *ᵥ Pi.single (eStar a) 1 := by |
| 228 | set w : 𝔰.BesselIndex → A := g.val.val *ᵥ Pi.single i c |
| 229 | -- `w` vanishes on the floors below `a`, has the entry `1` at `e*_a`, and is isotropic |
| 230 | have lower (j : 𝔰.BesselIndex) (hj : floorOf j < a) : w j = 0 := by |
| 231 | simp [w, apply_eq_one_apply_of_mem_floorGroup h j i (by grind), |
| 232 | one_apply_ne (show j ≠ i by grind)] |
| 233 | have top : w (eStar a) = 1 := by simpa [w, mul_comm] using h_entry |
| 234 | have isotropic : star w ⬝ᵥ T.splitGram *ᵥ w = 0 := by |
| 235 | have h_zero : star (Pi.single i c) ⬝ᵥ T.splitGram *ᵥ Pi.single i c = 0 := by |
| 236 | simp [h_floor] |
| 237 | grind [oppositeIndex_involutive_and_floorOf_level] |
| 238 | exact (form_mulVec_mulVec g _ _).trans h_zero |
| 239 | exact exists_heisenbergElem_mulVec_eq lower top isotropic |
| 240 | |
| 241 | omit [TraceOne A] [IsHermitianUnit T.splitGram] in |
| 242 | /-- If g⁻¹s lies in Q_{a+1} ∩ G_a and ge*_a = se*_a, then g⁻¹s lies in G_{a+1}. -/ |
| 243 | lemma inv_mul_mem_floorGroup_succ (h : g⁻¹ * s ∈ partialUnitriangularGroup (a + 1) ⊓ floorGroup a) |
| 244 | (h_eq : g.val.val *ᵥ Pi.single (eStar a) 1 = s.val.val *ᵥ Pi.single (eStar a) 1) : |
| 245 | g⁻¹ * s ∈ floorGroup (a + 1) := by |
| 246 | have h_fix : (g⁻¹ * s).val.val *ᵥ Pi.single (eStar a) 1 = Pi.single (eStar a) 1 := by |
| 247 | rw [Subgroup.coe_mul, Units.val_mul, ← mulVec_mulVec, ← h_eq] |
| 248 | simp [mulVec_mulVec, -mulVec_single] |
| 249 | refine mem_floorGroup.2 fun i j hj ↦ ?_ |
| 250 | by_cases h_star : j = eStar a |
| 251 | · rw [h_star] |
| 252 | simpa [Pi.single_apply, Matrix.one_apply] using congrFun h_fix i |
| 253 | · -- the other columns of floor at most `a` are those of the identity matrix by `h` |
| 254 | grind [level_le_or_exists_eq_eStar, mem_inf, Fin.ext_iff] |
| 255 | |
| 256 | /-- For a < ϱ and g in Q_{a+1} ∩ G_a, there is a Heisenberg element ν(v, β) of floor a such that |
| 257 | g⁻¹ν(v, β) lies in G_{a+1}. -/ |
| 258 | lemma exists_heisenbergElem_mem_floorGroup |
| 259 | (h : g ∈ partialUnitriangularGroup (a + 1) ⊓ floorGroup a) : |
| 260 | ∃ p : ({ i // a + 1 ≤ floorOf i } → A) × skewAdjoint A, |
| 261 | g⁻¹ * heisenbergElem a p ∈ floorGroup (a + 1) := by |
| 262 | -- `g e*_a` has the entry `1` at `e*_a`, so it is the image of `e*_a` under some |
| 263 | -- `heisenbergElem a p` |
| 264 | have entry : g.val (eStar a) (eStar a) * 1 = 1 := by |
| 265 | grind [partialUnitriangularGroup_apply_eStar h.1, one_apply_eq] |
| 266 | obtain ⟨p, hp⟩ : ∃ p : ({ i // a + 1 ≤ floorOf i } → A) × skewAdjoint A, |
| 267 | g.val.val *ᵥ Pi.single (eStar a) 1 = |
| 268 | (heisenbergElem (T := T) a p).val.val *ᵥ Pi.single (eStar a) 1 := |
| 269 | exists_col_eq_heisenbergElem (eStar a) 1 h.2 rfl entry |
| 270 | obtain ⟨h_floor, h_unip⟩ := heisenbergElem_mem_floorUnipotent (T := T) a p |
| 271 | have h_mem : g⁻¹ * heisenbergElem a p ∈ partialUnitriangularGroup (a + 1) ⊓ floorGroup a := |
| 272 | mul_mem (inv_mem h) ⟨unipotentBelow_le_partialUnitriangularGroup h_unip, h_floor⟩ |
| 273 | exact ⟨p, inv_mul_mem_floorGroup_succ h_mem hp⟩ |
| 274 | |
| 275 | /-- An element of `Q_(l+1) ∩ G_l` is a product of an element of `G_(l+1)` and one of `N_l`. -/ |
| 276 | lemma exists_floorGroup_mul_floorUnipotent |
| 277 | (h : s ∈ partialUnitriangularGroup (l + 1) ⊓ floorGroup l) : |
| 278 | ∃ g ∈ floorGroup (l + 1), ∃ ν ∈ floorUnipotent l, s = g * ν := by |
| 279 | by_cases hl : l < 𝔰.ϱ |
| 280 | · obtain ⟨p, hp⟩ := exists_heisenbergElem_mem_floorGroup (a := ⟨l, hl⟩) (inv_mem h) |
| 281 | refine ⟨s⁻¹⁻¹ * heisenbergElem ⟨l, hl⟩ p, hp, (heisenbergElem ⟨l, hl⟩ p)⁻¹, ?_, by simp⟩ |
| 282 | exact inv_mem (heisenbergElem_mem_floorUnipotent ⟨l, hl⟩ p) |
| 283 | · -- floor `l` has no hyperbolic pair, and `s` itself lies in `floorGroup (l + 1)` |
| 284 | exact ⟨s, by grind [mem_inf], 1, one_mem _, by simp⟩ |
| 285 | |
| 286 | /-- Every element s of Q_j (unitriangular on the first j frame vectors) is a product s = γν with γ |
| 287 | in G_j (fixing the basis vectors of floor below j) and ν in N_(<j) (`unipotentBelow j`). -/ |
| 288 | lemma exists_floorGroup_mul_unipotentBelow {j : ℕ} (hs : s ∈ partialUnitriangularGroup j) : |
| 289 | ∃ γ ∈ floorGroup j, ∃ ν ∈ unipotentBelow j, s = γ * ν := by |
| 290 | induction j with |
| 291 | | zero => exact ⟨s, by simp, 1, one_mem _, (mul_one s).symm⟩ |
| 292 | | succ j ih => |
| 293 | obtain ⟨γ, hγ, ν, hν, rfl⟩ := ih (by grind) |
| 294 | have hν_succ : ν ∈ unipotentBelow (j + 1) := unipotentBelow_le_succ hν |
| 295 | have hγ_unitri : γ ∈ partialUnitriangularGroup (j + 1) := |
| 296 | (mul_mem_cancel_right (unipotentBelow_le_partialUnitriangularGroup hν)).1 hs |
| 297 | obtain ⟨g, hg, n, hn, rfl⟩ := exists_floorGroup_mul_floorUnipotent ⟨hγ_unitri, hγ⟩ |
| 298 | exact ⟨g, hg, n * ν, mul_mem hn.2 hν_succ, mul_assoc g n ν⟩ |
| 299 | |
| 300 | /-- Let `A` have a trace-one element and let the Gram matrix `T.splitGram` of the whole space be |
| 301 | hermitian and invertible. Then an isometry s lies in the Bessel subgroup `besselS`, the subgroup |
| 302 | generated by `besselU` and `besselH`, if and only if s = uh. Here u lies in `besselU`, the |
| 303 | isometries that are block upper unitriangular for the levels with identity middle block, and h lies |
| 304 | in `besselH`, the isometries fixing every basis vector of floor at most ϱ (the `e_a`, the `e*_a` and |
| 305 | `z`). -/ |
| 306 | lemma _root_.New.mem_besselS : s ∈ besselS ↔ ∃ u ∈ besselU, ∃ h ∈ besselH, s = u * h := by |
| 307 | constructor |
| 308 | · -- `s = h * ν = (h * ν * h⁻¹) * h`, and `h` normalises `unipotentBelow` |
| 309 | intro hs |
| 310 | obtain ⟨h, hh, ν, hν, rfl⟩ := exists_floorGroup_mul_unipotentBelow hs |
| 311 | exact ⟨h * ν * h⁻¹, unipotentBelow_le_besselU (conj_mem_unipotentBelow hh hν), h, hh, by simp⟩ |
| 312 | · rintro ⟨u, hu, h, hh, rfl⟩ |
| 313 | exact mul_mem (mem_partialUnitriangularGroup_of_mem_besselU hu) |
| 314 | (mem_partialUnitriangularGroup_of_mem_floorGroup hh) |
| 315 | |
| 316 | /-- If the Gram matrix of the whole space is hermitian and invertible, then the Bessel subgroup |
| 317 | `besselS` normalises `besselU0`, the group of the elements of `besselU` that fix the frame. -/ |
| 318 | lemma besselS_le_normalizer_besselU0 : T.besselS ≤ Subgroup.normalizer T.besselU0 := by |
| 319 | refine le_normalizer_iff.2 fun s hs u hu ↦ ?_ |
| 320 | obtain ⟨hu, h_frame⟩ := mem_besselU0_iff.1 hu |
| 321 | refine mem_besselU0_iff.2 ⟨(besselS_le_normalizer_besselU hs u).1 hu, ?_⟩ |
| 322 | -- with `s⁻¹ = v * h`, the frame block ignores `h` and is multiplicative in `u` and `v` |
| 323 | obtain ⟨v, hv, h, hh, hs_inv⟩ := mem_besselS.1 (inv_mem hs) |
| 324 | calc |
| 325 | frameMatrix (s * u * s⁻¹) = frameMatrix s * frameMatrix u * frameMatrix v := by |
| 326 | rw [hs_inv, ← mul_assoc, frameMatrix_mul_besselH _ hh, frameMatrix_mul hv, frameMatrix_mul hu] |
| 327 | _ = frameMatrix (s * s⁻¹) := by |
| 328 | rw [h_frame, mul_one, hs_inv, ← mul_assoc, frameMatrix_mul_besselH _ hh, frameMatrix_mul hv] |
| 329 | _ = 1 := by simpa using (mem_besselU0_iff.1 (one_mem T.besselU0)).2 |
| 330 | |
| 331 | /-- Induction along the groups N_(<j), for a hermitian invertible Gram matrix. Suppose C 0 1 holds, |
| 332 | and C j ν implies C (j+1) (γν) for all γ in N_j. Then C j s holds for every s in N_(<j). -/ |
| 333 | lemma unipotentBelow_induction {C : ℕ → T.G → Prop} (h_one : C 0 1) |
| 334 | (h_step : ∀ j : ℕ, ∀ γ ∈ floorUnipotent j, ∀ ν : T.G, C j ν → C (j + 1) (γ * ν)) (j : ℕ) : |
| 335 | ∀ s ∈ unipotentBelow j, C j s := by |
| 336 | induction j with |
| 337 | | zero => |
| 338 | intro s hs |
| 339 | have h_eq : s = 1 := |
| 340 | eq_one_of_mem_floorGroup_inf ⟨floorGroup_zero.ge (mem_top s), hs⟩ (Or.inl le_rfl) |
| 341 | rwa [h_eq] |
| 342 | | succ j ih => |
| 343 | intro s hs |
| 344 | -- write `s = γ * ν` with `γ ∈ floorGroup j` and `ν ∈ unipotentBelow j`; then `γ = s * ν⁻¹` lies |
| 345 | -- in `unipotentBelow (j + 1)` |
| 346 | obtain ⟨γ, hγ, ν, hν, rfl⟩ := |
| 347 | exists_floorGroup_mul_unipotentBelow (j := j) (unipotentBelow_le_partialUnitriangularGroup hs) |
| 348 | have γ_mem : γ ∈ unipotentBelow (j + 1) := |
| 349 | (mul_mem_cancel_right (unipotentBelow_le_succ hν)).1 hs |
| 350 | exact h_step j γ ⟨hγ, γ_mem⟩ ν (ih ν hν) |
| 351 | |
| 352 | /-- Let `A` have a trace-one element τ and let `T.splitGram` be hermitian and invertible. For a < ϱ, |
| 353 | every g in N_a = G_a ∩ N_(<a+1) equals a Heisenberg element ν(v, β) of floor a, for some vector v on |
| 354 | the indices of floor at least a + 1 and some skew-adjoint β. Here ν(v, β) is the Eichler |
| 355 | transformation e*_a ↦ e*_a + v + (β − τh(v,v))e_a. |
| 356 | |
| 357 | A weaker form of the standard parametrization of the unipotent radical of an isotropic line's |
| 358 | stabiliser by Eichler–Siegel transformations. It gives existence only, for one floor, without |
| 359 | uniqueness of parameters. -/ |
| 360 | lemma exists_eq_heisenbergElem_of_mem (h : g ∈ floorUnipotent a) : |
| 361 | ∃ p : ({ i // a + 1 ≤ floorOf i } → A) × skewAdjoint A, g = heisenbergElem a p := by |
| 362 | obtain ⟨p, hp⟩ : ∃ p : ({ i // a + 1 ≤ floorOf i } → A) × skewAdjoint A, |
| 363 | g⁻¹ * heisenbergElem a p ∈ floorGroup (a + 1) := |
| 364 | exists_heisenbergElem_mem_floorGroup ⟨unipotentBelow_le_partialUnitriangularGroup h.2, h.1⟩ |
| 365 | -- `g⁻¹ * heisenbergElem a p` lies in both `floorGroup (a + 1)` and `unipotentBelow (a + 1)`, so |
| 366 | -- it is `1` |
| 367 | have h_nilp : g⁻¹ * heisenbergElem a p ∈ unipotentBelow (a + 1) := |
| 368 | (mul_mem (inv_mem h) (heisenbergElem_mem_floorUnipotent a p)).2 |
| 369 | exact ⟨p, inv_mul_eq_one.1 (eq_one_of_mem_floorGroup_inf ⟨hp, h_nilp⟩ (by simp))⟩ |
| 370 | |
| 371 | /-- Let `A` have a trace-one element τ (τ + τ̄ = 1) and let `T.splitGram` be hermitian and |
| 372 | invertible, with h(v, w) = v* · `T.splitGram` · w. For a < ϱ, a vector v on the indices of floor at |
| 373 | least a + 1 (extended by zero) and a skew-adjoint β, the inverse of the Heisenberg element ν(v, β) |
| 374 | of floor a is ν(−v, x − x̄ − β), where x = τh(v, v). -/ |
| 375 | lemma heisenbergElem_inv : |
| 376 | (heisenbergElem (T := T) a p)⁻¹ = |
| 377 | heisenbergElem a |
| 378 | (-p.1, |
| 379 | skewPart |
| 380 | (element * |
| 381 | star (inclMatrix A (↑) *ᵥ p.1) ⬝ᵥ T.splitGram *ᵥ inclMatrix A (↑) *ᵥ p.1) - p.2) := by |
| 382 | refine inv_eq_of_mul_eq_one_right (heisenbergElem_mul.trans ?_) |
| 383 | ext : 2 |
| 384 | -- the vectors cancel and so do the two corrections `x − x̄` |
| 385 | simp [heisenbergElem, eichlerMap, mulVec_neg] |
| 386 | |
| 387 | /-- The Heisenberg element ν(v, β) of floor a acts on the frame by a matrix that differs from `1` |
| 388 | only in row a, by the products −h(v, f_c) with the frame vectors. -/ |
| 389 | lemma frameMatrix_heisenbergElem : |
| 390 | frameMatrix (heisenbergElem (T := T) a p) = |
| 391 | 1 - vecMulVec (Pi.single a.castSucc 1) fun c : Fin (𝔰.ϱ + 1) ↦ |
| 392 | star (inclMatrix A (↑) *ᵥ p.1) ⬝ᵥ T.splitGram *ᵥ Pi.single (𝔰.besselFrame c) 1 := by |
| 393 | refine Matrix.ext fun b c ↦ ?_ |
| 394 | have h_dual : (Pi.single (𝔰.besselFrame c) 1 : 𝔰.BesselIndex → A) (eStar a) = 0 := by |
| 395 | cases c using Fin.lastCases <;> simp |
| 396 | have h_col : frameMatrix (heisenbergElem (T := T) a p) b c = |
| 397 | ((heisenbergElem (T := T) a p).val.val *ᵥ Pi.single (𝔰.besselFrame c) 1) |
| 398 | (𝔰.besselFrame b) := by |
| 399 | simp [frameMatrix, -heisenbergElem_mulVec] |
| 400 | rw [h_col, heisenbergElem_mulVec, h_dual, ← besselFrame_castSucc] |
| 401 | simp [vecMulVec_apply, Pi.single_apply, Matrix.one_apply, besselFrame_injective.eq_iff, |
| 402 | sub_eq_add_neg, -besselFrame_castSucc] |
| 403 | |
| 404 | /-- Let s be in G_{a+1}, so that s fixes the basis vectors of floor below a + 1. Let v be a vector |
| 405 | of the floors at least a + 1, extended by zero, let β be skew, and let ν(v, |
| 406 | β) = `heisenbergElem a (v, β)` be the Eichler transformation e*_a ↦ e*_a + v + (β − τh(v,v))e_a. |
| 407 | Then the sum of the entries just above the diagonal of the block of sν(v, β)s⁻¹ on the frame (f_0, |
| 408 | …, f_ϱ) = (e_0, …, e_(ϱ-1), z) equals −h(v, s⁻¹f_{a+1}), where s⁻¹f_{a+1} is |
| 409 | `orbitPoint a.succ s`. -/ |
| 410 | lemma simpleRootSum_conj_heisenbergElem (hs : s ∈ floorGroup (a + 1)) : |
| 411 | simpleRootSum (s * heisenbergElem a p * s⁻¹) = |
| 412 | -(star (inclMatrix A (↑) *ᵥ p.1) ⬝ᵥ T.splitGram *ᵥ orbitPoint a.succ s) := by |
| 413 | -- conjugation by `s` applies `s` to the vector of the Heisenberg element |
| 414 | rw [mul_heisenbergElem hs, mul_inv_cancel_right, ← form_mulVec_mulVec s, |
| 415 | ← inclMatrix_mulVec_floor_block a.isLt hs, orbitPoint_eq_iff.1 rfl] |
| 416 | -- the entries at the simple roots are read off the matrix on the frame |
| 417 | change ∑ b : Fin 𝔰.ϱ, frameMatrix (heisenbergElem (T := T) a _) b.castSucc b.succ = _ |
| 418 | simp [frameMatrix_heisenbergElem, vecMulVec_apply, Pi.single_apply, (Fin.castSucc_lt_succ ..).ne] |
| 419 | |
| 420 | end FloorGroups |
| 421 | |
| 422 | /-- The Heisenberg element `heisenbergElem a p` of floor `a` is a continuous function of its |
| 423 | parameter `p`, a pair of a vector and a skew element. -/ |
| 424 | @[fun_prop] |
| 425 | lemma continuous_heisenbergElem [TopologicalSpace A] [IsTopologicalRing A] [ContinuousStar A] |
| 426 | [T2Space A] [TraceOne A] {T : 𝔰.Form A} [H : IsHermitianUnit T.splitGram] |
| 427 | {a : Fin 𝔰.ϱ} : Continuous (heisenbergElem (T := T) a) := by |
| 428 | refine (Matrix.unitaryGroupOf.isClosedEmbedding_val H.isUnit).continuous_iff.2 ?_ |
| 429 | simp only [↓comp_def, heisenbergElem, eichlerMap, star_neg, mulVec_mulVec, Pi.star_single, |
| 430 | star_one, single_vecMul, one_smul, val_of_coe] |
| 431 | fun_prop |
| 432 | |
| 433 | variable [TopologicalSpace A] [MeasureSpace A] [P : Place A] |
| 434 | (ι : Type) [Fintype ι] [DecidableEq ι] (T : 𝔰.Form A) (m : ℕ) |
| 435 | {n k Z : Type} [Fintype n] [Fintype k] [DecidableEq k] |
| 436 | |
| 437 | /-! ### The Haar measure of `V_l` -/ |
| 438 | |
| 439 | /-- Haar measure of `V_l`, as a measure on all vectors: the image of the volume on the coordinates |
| 440 | of floor at least `l` under extension by zero. -/ |
| 441 | abbrev FloorGroups.floorVolume (l : ℕ) : Measure (𝔰.BesselIndex → A) := |
| 442 | Measure.map (fun v ↦ inclMatrix A (Subtype.val : {i // l ≤ floorOf i} → 𝔰.BesselIndex) *ᵥ v) |
| 443 | volume |
| 444 | |
| 445 | /-! ### Hyperbolic bases, Weyl elements and changes of coordinates -/ |
| 446 | |
| 447 | /-- A basis of the middle space `V_ϱ`, which has Gram matrix `T` and rank `𝔰.k + 1`: a first |
| 448 | hyperbolic pair, `m` more pairs and an orthonormal part indexed by `ι`. So there are |
| 449 | `card ι + 2 * m + 2` basis vectors, and the field `card_eq` equates the two counts. As the modulus |
| 450 | of `det T` is 1, the change of coordinates preserves volume |
| 451 | (`New.Floors.HyperbolicBasis.measurePreserving_mulVec`). -/ |
| 452 | structure HyperbolicBasis where |
| 453 | /-- The matrix whose columns are the basis vectors. -/ |
| 454 | basisMatrix : Matrix 𝔰.MiddleIndex (Fin 2 ⊕ SplitIndex m ι) A |
| 455 | /-- The Gram matrix of the basis for `T`: m + 1 hyperbolic planes and an orthonormal part. -/ |
| 456 | gram_eq : basisMatrixᴴ * T * basisMatrix = planeSumGram (hyperbolicGram (Fin m) 1) |
| 457 | /-- The number of basis vectors is the rank of V_ϱ. -/ |
| 458 | card_eq : 𝔰.k + 1 = card ι + 2 * m + 2 |
| 459 | /-- The modulus of the determinant of `T` is 1. -/ |
| 460 | modulus_det : P.modulus T.det = 1 |
| 461 | |
| 462 | variable {ι T m} (F : HyperbolicBasis ι T m) (b : Fin 𝔰.n) [MeasurableSpace Z] {ζ : Measure Z} |
| 463 | |
| 464 | /-- The image of the measure md(c)^{d_l} dc on A under c ↦ w_l(c)⁻¹, where w_l(c) is the Weyl |
| 465 | element of floor l and d_l = `𝔰.k` + 1 + 2(ϱ − (l + 1)), the subtraction being truncated. -/ |
| 466 | abbrev Place.weylLaw (l : ℕ) : Measure T.G := |
| 467 | (volume.withDensity fun c ↦ modulus c ^ (𝔰.k + 1 + 2 * (𝔰.ϱ - (l + 1)))).map fun c ↦ |
| 468 | (floorWeyl l c)⁻¹ |
| 469 | |
| 470 | /-- Reindexing the coordinates along a bijection preserves the volume. -/ |
| 471 | lemma measurePreserving_inclMatrix (g : n ≃ k) : MeasurePreserving (inclMatrix A g *ᵥ ·) := by |
| 472 | have h_eq : (inclMatrix A g *ᵥ ·) = |
| 473 | (MeasurableEquiv.piCongrLeft (fun _ : n ↦ A) g.symm).symm := by |
| 474 | ext v i |
| 475 | simp [inclMatrix, submatrix_mulVec_equiv, MeasurableEquiv.piCongrLeft] |
| 476 | rw [h_eq] |
| 477 | exact (measurePreserving_piCongrLeft _ g.symm).symm |
| 478 | |
| 479 | /-- If `f` enumerates the basis indices of `V_l` without repetition, then extension by zero along |
| 480 | `f` carries the volume of `n → A` to the Haar measure of `V_l`. -/ |
| 481 | lemma map_inclMatrix_eq_floorVolume (f : n → 𝔰.BesselIndex) |
| 482 | (hf_inj : Injective f := by intro; simp) |
| 483 | (hf_range : ∀ i : 𝔰.BesselIndex, i ∈ Set.range f ↔ l ≤ floorOf i := by simp) : |
| 484 | volume.map (inclMatrix A f *ᵥ ·) = floorVolume l := by |
| 485 | -- `f` factors through a bijection `e` onto the indices of `V_l`, which permutes the coordinates |
| 486 | let e : n ≃ {i : 𝔰.BesselIndex // l ≤ floorOf i} := |
| 487 | (Equiv.ofInjective f hf_inj).trans (.subtypeEquivRight hf_range) |
| 488 | have h_incl : inclMatrix A (Subtype.val : {i : 𝔰.BesselIndex // l ≤ floorOf i} → 𝔰.BesselIndex) * |
| 489 | inclMatrix A e = inclMatrix A f := mul_inclMatrix .. |
| 490 | rw [floorVolume, ← (measurePreserving_inclMatrix e).map_eq] |
| 491 | simp (disch := fun_prop) [Measure.map_map, comp_def, h_incl] |
| 492 | |
| 493 | /-- Extension by zero from the middle block carries the volume to the Haar measure of `V_ϱ`. -/ |
| 494 | lemma map_inclMatrix_middle_eq_floorVolume : |
| 495 | volume.map (inclMatrix A (inr ∘ inl : 𝔰.MiddleIndex → 𝔰.BesselIndex) *ᵥ ·) = |
| 496 | floorVolume 𝔰.top := |
| 497 | map_inclMatrix_eq_floorVolume _ (inr_injective.comp inl_injective) (by simp) |
| 498 | |
| 499 | /-- The indices of the hyperbolic pairs of `V_b` after the first: the `m` other pairs of `V_ϱ`, and |
| 500 | the pairs `e_a`, `e*_a` with `b ≤ a`. -/ |
| 501 | abbrev FloorPairs (m : ℕ) : Type := Fin m ⊕ {i : Fin 𝔰.ϱ // b.val ≤ i} |
| 502 | |
| 503 | /-- The basis of `V_b` made of the basis `F` of `V_ϱ` and the pairs `e_a`, `e*_a` with `b ≤ a`, as |
| 504 | the columns of a matrix. It is the block matrix of `F.basisMatrix` and the identity on these pairs, |
| 505 | with its rows placed among the basis indices and its columns reordered. The Gram matrix is computed |
| 506 | in `New.Floors.HyperbolicBasis.gram_floorBasis`. -/ |
| 507 | def HyperbolicBasis.floorBasis : |
| 508 | Matrix 𝔰.BesselIndex (Fin 2 ⊕ FloorPairs b m ⊕ ι ⊕ FloorPairs b m) A := |
| 509 | let S : Type := {i : Fin 𝔰.ϱ // b.val ≤ i} |
| 510 | -- the basis indices of `V_b`: the middle block, then the `e_a` and the `e*_a` with `b ≤ a` |
| 511 | let incl : 𝔰.MiddleIndex ⊕ S ⊕ S → 𝔰.BesselIndex := inr ∘ inl ⊕ᵥ Sum.map (↑) (inr ∘ (↑)) |
| 512 | -- the new order: the first pair of `F.basisMatrix`; the first vectors of the other pairs; the |
| 513 | -- orthonormal part; the second vectors of the other pairs |
| 514 | let order : Fin 2 ⊕ FloorPairs b m ⊕ ι ⊕ FloorPairs b m → (Fin 2 ⊕ SplitIndex m ι) ⊕ S ⊕ S := |
| 515 | inl ∘ inl ⊕ᵥ |
| 516 | (Sum.map (inr ∘ inl) inl ⊕ᵥ (inl ∘ inr ∘ inr ∘ inl ⊕ᵥ Sum.map (inr ∘ inr ∘ inr) inr)) |
| 517 | inclMatrix A incl * F.basisMatrix.fromBlocks 0 0 (diagonal (n := S ⊕ S) 1) * inclMatrix A order |
| 518 | |
| 519 | /-- The Gram matrix of `F.floorBasis b` consists of a hyperbolic plane for the first pair, one for |
| 520 | each pair indexed by `FloorPairs b m`, and an orthonormal part indexed by `ι`. -/ |
| 521 | lemma HyperbolicBasis.gram_floorBasis : |
| 522 | (F.floorBasis b)ᴴ * T.splitGram * F.floorBasis b = |
| 523 | planeSumGram (hyperbolicGram (FloorPairs b m) (1 : Matrix ι ι A)) := by |
| 524 | -- on the basis vectors of `V_b` the form is `T` plus hyperbolic planes; `F.gram_eq` handles `T` |
| 525 | let S : Type := {i : Fin 𝔰.ϱ // b.val ≤ i} |
| 526 | let incl : 𝔰.MiddleIndex ⊕ S ⊕ S → 𝔰.BesselIndex := inr ∘ inl ⊕ᵥ Sum.map (↑) (inr ∘ (↑)) |
| 527 | have block : T.splitGram.submatrix incl incl = T.fromBlocks 0 0 (fromBlocks 0 1 1 0) := by |
| 528 | simp [incl, S, splitGram, ← ext_iff, Matrix.one_apply] |
| 529 | rw [floorBasis, gram_mul, conjTranspose_inclMatrix_mul_mul_inclMatrix, gram_mul, |
| 530 | conjTranspose_inclMatrix_mul_mul_inclMatrix, block] |
| 531 | simp [F.gram_eq, fromBlocks_conjTranspose, fromBlocks_multiply, ← ext_iff, Matrix.one_apply] |
| 532 | |
| 533 | /-- A square change of coordinates preserves volume if the original form has determinant |
| 534 | of modulus one and the Gram matrix of the new coordinates squares to one. -/ |
| 535 | lemma Place.measurePreserving_mulVec_of_gram_sq [DecidableEq n] {B : Matrix n k A} |
| 536 | {T : Matrix n n A} (h_card : card n = card k) (hT : P.modulus T.det = 1) |
| 537 | (h_gram : (Bᴴ * T * B) ^ 2 = 1) : MeasurePreserving (B *ᵥ ·) := by |
| 538 | let e : n ≃ k := equivOfCardEq h_card |
| 539 | let M : Matrix n n A := B * inclMatrix A e |
| 540 | have gram_sq : (Mᴴ * T * M) ^ 2 = 1 := by |
| 541 | rw [gram_mul, conjTranspose_inclMatrix_mul_mul_inclMatrix, sq, submatrix_mul_equiv, |
| 542 | ← sq, h_gram, submatrix_one_equiv] |
| 543 | have h_left : Mᴴ * T * M * (Mᴴ * T) * M = 1 := by rw [Matrix.mul_assoc _ _ M, ← sq, gram_sq] |
| 544 | have h_unit : IsUnit M.det := isUnit_det_of_left_inverse h_left |
| 545 | -- Taking determinants, `modulus M.det ^ 4 = 1`, since `modulus T.det = 1`. |
| 546 | have h_md : P.modulus M.det = 1 := by |
| 547 | have h_det : P.modulus ((Mᴴ * T * M) ^ 2).det = 1 := by simp [gram_sq] |
| 548 | simpa [hT, ← sq, toNNReal_eq_one_iff] using congrArg ENNReal.toNNReal h_det |
| 549 | have h_vol : volume.map (M *ᵥ ·) = volume := by simp [P.map_mulVec_volume _ M h_unit, h_md] |
| 550 | refine ⟨by fun_prop, ?_⟩ |
| 551 | simpa (disch := |
| 552 | fun_prop) [← (measurePreserving_inclMatrix e).map_eq, Measure.map_map, ↓ comp_def] using h_vol |
| 553 | |
| 554 | /-- Multiplication by `F.basisMatrix`, the matrix of the hyperbolic basis `F` of `V_ϱ`, preserves |
| 555 | the volume of coordinate vectors. -/ |
| 556 | lemma HyperbolicBasis.measurePreserving_mulVec : MeasurePreserving (F.basisMatrix *ᵥ ·) := by |
| 557 | apply P.measurePreserving_mulVec_of_gram_sq (by simp +arith [F.card_eq]) F.modulus_det |
| 558 | simp [F.gram_eq, sq, fromBlocks_multiply, fromCols_mul_fromRows, fromCols_mul_fromBlocks, |
| 559 | fromBlocks_mul_fromRows, ← ext_iff, Matrix.one_apply] |
| 560 | |
| 561 | /-- The basis `F.floorBasis b` carries the volume of its coordinates to the Haar measure of |
| 562 | `V_b`. -/ |
| 563 | lemma HyperbolicBasis.map_floorBasis_volume : |
| 564 | volume.map (F.floorBasis b *ᵥ ·) = FloorGroups.floorVolume b := by |
| 565 | let S : Type := {i : Fin 𝔰.ϱ // b.val ≤ i} |
| 566 | let incl : 𝔰.MiddleIndex ⊕ S ⊕ S → 𝔰.BesselIndex := inr ∘ inl ⊕ᵥ Sum.map (↑) (inr ∘ (↑)) |
| 567 | let order : Fin 2 ⊕ FloorPairs b m ⊕ ι ⊕ FloorPairs b m → (Fin 2 ⊕ SplitIndex m ι) ⊕ S ⊕ S := |
| 568 | inl ∘ inl ⊕ᵥ |
| 569 | (Sum.map (inr ∘ inl) inl ⊕ᵥ (inl ∘ inr ∘ inr ∘ inl ⊕ᵥ Sum.map (inr ∘ inr ∘ inr) inr)) |
| 570 | have h_incl : volume.map (inclMatrix A incl *ᵥ ·) = FloorGroups.floorVolume b := |
| 571 | map_inclMatrix_eq_floorVolume incl (by simp [incl, S, Injective]) (by simp [incl, S, b.is_le]) |
| 572 | have h_order : Bijective order := by simp [order, S, Bijective, Injective, Surjective] |
| 573 | simp only [floorBasis, diagonal_one', ← mulVec_mulVec, fromBlocks_mulVec, zero_mulVec, add_zero, |
| 574 | one_mulVec, zero_add] |
| 575 | -- The map permutes the coordinates, splits off those of the pairs `e_a`, `e*_a` with `b ≤ a`, |
| 576 | -- applies `F.basisMatrix` to the others, and includes the result as `V_b`. Each step preserves |
| 577 | -- volume. |
| 578 | exact (MeasurePreserving.comp ⟨by fun_prop, h_incl⟩ |
| 579 | (measurePreserving_sumElim.comp |
| 580 | ((F.measurePreserving_mulVec.prod (.id _)).comp |
| 581 | ((measurePreserving_sumPiEquivProdPi _).comp |
| 582 | (measurePreserving_inclMatrix (.ofBijective order h_order)))))).map_eq |
| 583 | |
| 584 | variable {μ ν : Measure T.G} [SFinite μ] [SFinite ν] |
| 585 | (σ : ℕ → Measure T.G) [∀ l, SFinite (σ l)] |
| 586 | {i j : ℕ} {s : T.G} {S : Subgroup T.G} {f : T.G → ℝ≥0∞} |
| 587 | |
| 588 | /-- The measure `η_l` on the unitary group. For `l < ϱ` it is the image of the Haar measure of |
| 589 | `V_(l+1)` times the skew measure of the place, under the Heisenberg parametrisation |
| 590 | `New.Floors.TraceOne.heisenbergElem` of `N_l`. Otherwise it is the unit mass at `1`. -/ |
| 591 | def Place.heisenbergMeasure [H : IsHermitianUnit T.splitGram] (l : ℕ) : Measure (U T.splitGram) := |
| 592 | if h : l < 𝔰.ϱ then (volume.prod P.skewMeasure).map (heisenbergElem (T := T) ⟨l, h⟩) else dirac 1 |
| 593 | |
| 594 | /-- The group `G_l` is a measurable set: finitely many entries are prescribed. -/ |
| 595 | lemma measurableSet_floorGroup : MeasurableSet (T.floorGroup l : Set T.G) := |
| 596 | (isClosed_of_entries_eq_one mem_floorGroup).measurableSet |
| 597 | |
| 598 | @[simp] |
| 599 | lemma heisenbergMeasure_eq_dirac_one [H : IsHermitianUnit T.splitGram] |
| 600 | (h : 𝔰.ϱ ≤ l) : heisenbergMeasure l = dirac (1 : T.G) := |
| 601 | dite_eq_right h.not_gt |
| 602 | |
| 603 | @[fun_prop] |
| 604 | lemma continuous_orbitPoint : Continuous (orbitPoint b : T.G → 𝔰.BesselIndex → A) := by |
| 605 | fun_prop [orbitPoint] |
| 606 | |
| 607 | variable [H : IsHermitianUnit T.splitGram] in |
| 608 | instance : SFinite (heisenbergMeasure l : Measure T.G) := by |
| 609 | fun_cases heisenbergMeasure <;> infer_instance |
| 610 | |
| 611 | /-- A function with values in the unitary group is measurable if it is measurable as a function |
| 612 | with values in matrices. -/ |
| 613 | lemma measurable_unitary_of_coe [H : IsHermitianUnit T.splitGram] {f : Z → T.G} |
| 614 | (hf : Measurable fun z : Z ↦ (f z : GL 𝔰.BesselIndex A).val) : Measurable f := |
| 615 | (Matrix.unitaryGroupOf.isClosedEmbedding_val H.isUnit) |
| 616 | |>.measurableEmbedding.measurable_comp_iff.1 hf |
| 617 | |
| 618 | @[fun_prop] |
| 619 | lemma continuous_weylElem [H : IsHermitianUnit T.splitGram] : |
| 620 | Continuous (weylElem 𝔰.ϱ : (ℕ → Aˣ) → T.G) := by |
| 621 | refine (Matrix.unitaryGroupOf.isClosedEmbedding_val H.isUnit).continuous_iff.2 |
| 622 | (continuous_matrix fun i j ↦ ?_) |
| 623 | simp only [Function.comp_apply, weylElem, weylOn, Units.isUnit, and_true, and_self, |
| 624 | ↓inverse_star_unit, Pi.star_apply, isUnit_star, star_star, Ring.inverse_invertible, invOf_units, |
| 625 | of_apply] |
| 626 | -- each entry is constant, a parameter, or its conjugate inverse |
| 627 | split_ifs <;> fun_prop |
| 628 | |
| 629 | @[fun_prop] |
| 630 | lemma measurable_floorWeyl [H : IsHermitianUnit T.splitGram] : |
| 631 | Measurable (floorWeyl l : A → T.G) := by |
| 632 | classical |
| 633 | have h_isUnit : Measurable fun c : A ↦ IsUnit c := |
| 634 | Units.measurableEmbedding_val.measurableSet_range.mem |
| 635 | refine measurable_unitary_of_coe |
| 636 | (measurable_pi_iff.2 fun i ↦ measurable_pi_iff.2 fun j ↦ ?_) |
| 637 | simp only [floorWeyl, weylOn, eq_ite_iff, not_and, Pi.star_apply, isUnit_star, star_star, |
| 638 | of_apply] |
| 639 | -- each entry is constant, `c`, or its conjugate inverse, on pieces cut out by `IsUnit c` |
| 640 | apply_rules [Measurable.ite] <;> measurability |
| 641 | |
| 642 | /-- An element `s` of `G_l` acts on the coordinates of floor at least `l` by a block that preserves |
| 643 | their volume. -/ |
| 644 | lemma measurePreserving_floor_block_mulVec [H : IsHermitianUnit T.splitGram] |
| 645 | (h : s ∈ floorGroup l) : |
| 646 | MeasurePreserving fun v : { a // l ≤ floorOf a } → A ↦ |
| 647 | (s : GL 𝔰.BesselIndex A).val.toSquareBlockProp (l ≤ floorOf ·) *ᵥ v := by |
| 648 | -- `s` is block triangular with the identity on the indices of floor below `l`, so the block has |
| 649 | -- the determinant of `s`, which has norm one |
| 650 | have outside : s.val.val.toSquareBlockProp (¬l ≤ floorOf ·) = 1 := by |
| 651 | ext i j |
| 652 | have h_entry : s.val.val i j = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) i j := |
| 653 | h i j (by grind) |
| 654 | simpa [toSquareBlockProp_def, Matrix.one_apply, Subtype.ext_iff] using h_entry |
| 655 | have h_det : s.val.val.det = (s.val.val.toSquareBlockProp (l ≤ floorOf ·)).det := by |
| 656 | simp [twoBlockTriangular_det' s.val.val (l ≤ floorOf ·) (by grind [one_apply_ne]), outside] |
| 657 | have h_unitary : s.val.val.det ∈ unitary A := (U.det (H.isUnit.map detMonoidHom) s).property |
| 658 | refine measurePreserving_mulVec _ ?_ |
| 659 | rw [← h_det] |
| 660 | exact h_unitary.1 |
| 661 | |
| 662 | /-- The measure `η_l = heisenbergMeasure l` is carried by `N_l`. -/ |
| 663 | lemma ae_mem_floorUnipotent [H : IsHermitianUnit T.splitGram] : |
| 664 | ∀ᵐ x : T.G ∂heisenbergMeasure l, x ∈ floorUnipotent l := by |
| 665 | fun_cases heisenbergMeasure |
| 666 | · exact (ae_map_iff (by fun_prop) (measurableSet_floorGroup.inter |
| 667 | (isClosed_of_entries_eq_one mem_unipotentBelow).measurableSet)).2 |
| 668 | (.of_forall (heisenbergElem_mem_floorUnipotent _)) |
| 669 | · simp |
| 670 | |
| 671 | /-- The measure `η_l = heisenbergMeasure l` on the unitary group `T.G` is invariant under right and |
| 672 | under left translation by every element `s` of `N_l = floorUnipotent l = G_l ∩ N_(<l+1)`, that is, |
| 673 | `η_l ∗ δ_s = η_l` and `δ_s ∗ η_l = η_l`. For `l < ϱ`, `η_l` is the image of Haar measure on |
| 674 | `V_(l+1)` times the skew measure under the Heisenberg parametrisation of `N_l`; otherwise it is the |
| 675 | unit mass at `1`. -/ |
| 676 | lemma heisenbergMeasure_mconv_dirac [H : IsHermitianUnit T.splitGram] (h : s ∈ floorUnipotent l) : |
| 677 | heisenbergMeasure l ∗ₘ dirac s = heisenbergMeasure l ∧ |
| 678 | dirac s ∗ₘ heisenbergMeasure l = heisenbergMeasure l := by |
| 679 | fun_cases heisenbergMeasure |
| 680 | case case2 hl => |
| 681 | simp [eq_one_of_mem_floorGroup_inf h (by grind)] |
| 682 | case case1 hl => |
| 683 | obtain ⟨⟨v, t⟩, rfl⟩ := exists_eq_heisenbergElem_of_mem (a := ⟨l, hl⟩) h |
| 684 | -- By `heisenbergElem_mul`, multiplication by `heisenbergElem a (v, t)` on either side |
| 685 | -- translates the skew parameter, which `P.skewMeasure` absorbs, and translates the vector by |
| 686 | -- `v`, which volume absorbs. |
| 687 | have skew_inv (Φ : T.G → ℝ≥0∞) (w : {i : 𝔰.BesselIndex // l + 1 ≤ floorOf i} → A) |
| 688 | (β₀ : skewAdjoint A) : |
| 689 | ∫⁻ β, Φ (heisenbergElem ⟨l, hl⟩ (w, β + β₀)) ∂P.skewMeasure = |
| 690 | ∫⁻ β, Φ (heisenbergElem ⟨l, hl⟩ (w, β)) ∂P.skewMeasure := |
| 691 | lintegral_add_right_eq_self (fun β ↦ Φ (heisenbergElem ⟨l, hl⟩ (w, β))) β₀ |
| 692 | have vec_inv (Φ : T.G → ℝ≥0∞) : |
| 693 | ∫⁻ w, ∫⁻ β, Φ (heisenbergElem ⟨l, hl⟩ (w + v, β)) ∂P.skewMeasure = |
| 694 | ∫⁻ w, ∫⁻ β, Φ (heisenbergElem ⟨l, hl⟩ (w, β)) ∂P.skewMeasure := |
| 695 | lintegral_add_right_eq_self (fun w ↦ ∫⁻ β, Φ (heisenbergElem ⟨l, hl⟩ (w, β)) ∂P.skewMeasure) v |
| 696 | constructor |
| 697 | all_goals |
| 698 | refine ext_of_lintegral _ fun Φ hΦ ↦ ?_ |
| 699 | simp (disch := fun_prop) [heisenbergElem_mul, add_assoc, add_comm t, add_comm v, skew_inv, |
| 700 | vec_inv, ↓ mconv_dirac, ↓ lintegral_map, ↓ lintegral_prod, ↓ dirac_mconv] |
| 701 | |
| 702 | /-- Let `η_l = heisenbergMeasure l` be the measure on the unitary group `T.G` carried by the |
| 703 | Heisenberg group `N_l`. For `l < ϱ` it is the image of Haar measure on `V_(l+1)` times the skew |
| 704 | measure of the place under `heisenbergElem`, and otherwise it is the unit mass at `1`. If `s` lies |
| 705 | in `G_(l+1) = floorGroup (l + 1)`, the unitary elements fixing every basis vector of floor below |
| 706 | `l + 1`, then `dirac s ∗ₘ η_l = η_l ∗ₘ dirac s`. -/ |
| 707 | lemma dirac_mconv_heisenbergMeasure_comm [H : IsHermitianUnit T.splitGram] |
| 708 | (h : s ∈ floorGroup (l + 1)) : |
| 709 | dirac s ∗ₘ heisenbergMeasure l = heisenbergMeasure l ∗ₘ dirac s := by |
| 710 | fun_cases heisenbergMeasure |
| 711 | case case2 => simp |
| 712 | case case1 hl => |
| 713 | -- by `mul_heisenbergElem`, moving `s` across applies its block to the vector, which keeps the |
| 714 | -- volume |
| 715 | nth_rw 2 [← ((measurePreserving_floor_block_mulVec h).prod (.id _)).map_eq] |
| 716 | simp (disch := fun_prop) [↓Measure.map_map, mul_heisenbergElem (a := ⟨l, hl⟩) h, Prod.map_def, |
| 717 | ↓ dirac_mconv, ↓ comp_def, ↓ mconv_dirac] |
| 718 | |
| 719 | /-! ### Convolutions along the floors, quadric measures and Plancherel -/ |
| 720 | |
| 721 | /-- For measures σ_l on the unitary group, the convolution σ_{a+i−1} ∗ ⋯ ∗ σ_a in descending order |
| 722 | of i consecutive terms; the Dirac measure at 1 if i = 0. -/ |
| 723 | def descConv : ℕ → ℕ → Measure T.G |
| 724 | | _, 0 => dirac 1 |
| 725 | | a, i + 1 => descConv (a + 1) i ∗ₘ σ a |
| 726 | |
| 727 | /-- For measures σ_l on the unitary group, the convolution σ_0 ∗ ⋯ ∗ σ_{j−1} in ascending order; the |
| 728 | Dirac measure at 1 if j = 0. -/ |
| 729 | def ascConv : ℕ → Measure T.G |
| 730 | | 0 => dirac 1 |
| 731 | | j + 1 => ascConv j ∗ₘ σ j |
| 732 | |
| 733 | instance (a i : ℕ) : SFinite (descConv σ a i) := by fun_induction descConv <;> infer_instance |
| 734 | |
| 735 | instance : SFinite (ascConv σ j) := by fun_induction ascConv <;> infer_instance |
| 736 | |
| 737 | variable {σ} |
| 738 | |
| 739 | lemma lintegral_mconv_dirac (f : T.G → ℝ≥0∞) : |
| 740 | lintegral (μ ∗ₘ dirac s) f = ∫⁻ x : T.G, f (x * s) ∂μ := by |
| 741 | simpa [↓ mconv_dirac] using lintegral_map_equiv f (.mulRight s) |
| 742 | |
| 743 | lemma lintegral_dirac_mconv (f : T.G → ℝ≥0∞) (s : T.G) : |
| 744 | lintegral (dirac s ∗ₘ μ) f = ∫⁻ x : T.G, f (s * x) ∂μ := by |
| 745 | simpa [↓ dirac_mconv] using lintegral_map_equiv f (.mulLeft s) |
| 746 | |
| 747 | /-- If `dirac s ∗ₘ μ = μ ∗ₘ dirac t`, then the substitution `x ↦ s⁻¹ * x * t` preserves integrals |
| 748 | against `μ`. -/ |
| 749 | lemma lintegral_eq_of_dirac_mconv_eq {t : T.G} (h : dirac s ∗ₘ μ = μ ∗ₘ dirac t) : |
| 750 | lintegral μ f = ∫⁻ x : T.G, f (s⁻¹ * x * t) ∂μ := by |
| 751 | simpa [↓lintegral_dirac_mconv, ↓lintegral_mconv_dirac, mul_assoc] using |
| 752 | congrArg (lintegral · fun x : T.G ↦ f (s⁻¹ * x)) h |
| 753 | |
| 754 | /-- The integral against a convolution as an iterated integral, with the right factor outside. -/ |
| 755 | lemma lintegral_mconv_symm (hf : Measurable f) : |
| 756 | lintegral (μ ∗ₘ ν) f = ∫⁻ y : T.G, ∫⁻ x : T.G, f (x * y) ∂μ ∂ν := |
| 757 | (lintegral_mconv hf).trans (lintegral_lintegral_swap (by fun_prop)) |
| 758 | |
| 759 | /-- The integral of an integrable function against a convolution, with the right measure in the |
| 760 | outer integral and the integrand evaluated at `x * y`. -/ |
| 761 | lemma integral_mconv_symm {M F : Type*} [Monoid M] [MeasurableSpace M] [MeasurableMul₂ M] |
| 762 | [NormedAddCommGroup F] [NormedSpace ℝ F] {μ ν : Measure M} [SFinite μ] [SFinite ν] |
| 763 | {f : M → F} (hf : Integrable f (μ ∗ₘ ν)) : |
| 764 | ∫ z, f z ∂(μ ∗ₘ ν) = ∫ y, ∫ x, f (x * y) ∂μ ∂ν := |
| 765 | (integral_mconv hf).trans (integral_integral_swap (hf.comp_measurable measurable_mul)) |
| 766 | |
| 767 | /-- The mass of `Y` under `μ ∗ₘ ν` is the `ν`-integral of the mass of `Y * y⁻¹` under `μ`. -/ |
| 768 | lemma mconv_apply_eq_lintegral {Y : Set T.G} (hY : MeasurableSet Y) : |
| 769 | (μ ∗ₘ ν) Y = ∫⁻ y : T.G, μ {x : T.G | x * y ∈ Y} ∂ν := |
| 770 | (map_apply measurable_mul hY).trans (prod_apply_symm (measurable_mul hY)) |
| 771 | |
| 772 | omit [SFinite μ] in |
| 773 | /-- The convolution of two measures carried by a measurable subgroup `S` is carried by `S`. -/ |
| 774 | lemma ae_mem_mconv (hμ : ∀ᵐ x : T.G ∂μ, x ∈ S) (hν : ∀ᵐ x : T.G ∂ν, x ∈ S) |
| 775 | (hS : MeasurableSet (S : Set T.G) := by exact measurableSet_floorGroup) : |
| 776 | ∀ᵐ x : T.G ∂μ ∗ₘ ν, x ∈ S := |
| 777 | (ae_map_iff (by fun_prop) hS).2 |
| 778 | (.mono (measure_prod_compl_eq_zero hμ hν) fun _ hx ↦ S.mul_mem hx.1 hx.2) |
| 779 | |
| 780 | /-- If `dirac s` commutes with `ν` for `μ`-almost every `s`, then `μ` commutes with `ν` under |
| 781 | convolution. -/ |
| 782 | lemma mconv_comm_of_ae (h : ∀ᵐ s : T.G ∂μ, dirac s ∗ₘ ν = ν ∗ₘ dirac s) : μ ∗ₘ ν = ν ∗ₘ μ := by |
| 783 | refine ext_of_lintegral _ fun f hf ↦ ?_ |
| 784 | calc lintegral (μ ∗ₘ ν) f = ∫⁻ s, ∫⁻ y, f (s * y) ∂ν ∂μ := lintegral_mconv hf |
| 785 | _ = ∫⁻ s, ∫⁻ y, f (y * s) ∂ν ∂μ := |
| 786 | lintegral_congr_of_ae_imp h fun s hs ↦ by |
| 787 | rw [← lintegral_dirac_mconv, hs, lintegral_mconv_dirac] |
| 788 | _ = lintegral (ν ∗ₘ μ) f := (lintegral_mconv_symm hf).symm |
| 789 | |
| 790 | /-- A descending convolution of `i + j` terms splits after the first `i` indices. -/ |
| 791 | lemma descConv_add (i j a : ℕ) : |
| 792 | descConv σ a (i + j) = descConv σ (a + i) j ∗ₘ descConv σ a i := by |
| 793 | fun_induction descConv σ a i with |
| 794 | | case1 a => simp |
| 795 | | case2 a i ih => |
| 796 | rw [show i + 1 + j = i + j + 1 by ring, descConv, ih, mconv_assoc, |
| 797 | show a + 1 + i = a + (i + 1) by ring] |
| 798 | |
| 799 | /-- A descending convolution starting at `0` gains its next term `σ i` on the left. -/ |
| 800 | lemma descConv_succ (i : ℕ) : descConv σ 0 (i + 1) = σ i ∗ₘ descConv σ 0 i := by |
| 801 | simp [↓descConv_add, descConv] |
| 802 | |
| 803 | omit [TopologicalSpace A] [Place A] [SFinite μ] in |
| 804 | /-- A function with nonzero integral is nonzero at some point where a given almost everywhere |
| 805 | property holds. -/ |
| 806 | lemma exists_ne_zero_of_ae {p : T.G → Prop} (h : ∀ᵐ x : T.G ∂μ, p x) (hf : lintegral μ f ≠ 0) : |
| 807 | ∃ x : T.G, p x ∧ f x ≠ 0 := by |
| 808 | by_contra! h_zero |
| 809 | exact hf (lintegral_eq_zero_of_ae_eq_zero (h.mono h_zero)) |
| 810 | |
| 811 | /-- The measure on a quadric in V_b: the image of `New.Floors.Place.quadricMeasure` with parameter β |
| 812 | under the basis `F.floorBasis b`. By default, β is obtained from h(f_b, f_b) by `skewUnitMul`. -/ |
| 813 | abbrev HyperbolicBasis.floorQuadricMeasure [_H : IsHermitianUnit T.splitGram] |
| 814 | (β : skewAdjoint A := skewUnitMul (T.splitGram (𝔰.besselFrame b) (𝔰.besselFrame b)) |
| 815 | (IsHermitian.apply IsHermitianUnit.conjTranspose_eq (𝔰.besselFrame b) (𝔰.besselFrame b))) : |
| 816 | Measure (𝔰.BesselIndex → A) := |
| 817 | (quadricMeasure (hyperbolicGram (FloorPairs b m) 1) β).map (F.floorBasis b *ᵥ ·) |
| 818 | |
| 819 | /-- Let `V_b` be the span of the basis vectors of floor at least `b`, with Haar measure |
| 820 | `floorVolume b` (the volume on those coordinates, extended by zero). The measures |
| 821 | `F.floorQuadricMeasure b β`, images under the basis `F.floorBasis b` of the quadric measures with |
| 822 | skew parameter `β`, disintegrate this Haar measure along `h(x, x)`, where `h = T.splitGram`. -/ |
| 823 | lemma HyperbolicBasis.isDisintegration_floorVolume [H : IsHermitianUnit T.splitGram] |
| 824 | {μ : Measure (𝔰.BesselIndex → A)} (hμ : μ = FloorGroups.floorVolume b) : |
| 825 | IsDisintegration μ T.splitGram (F.floorQuadricMeasure b ·) := by |
| 826 | -- Transport `isDisintegration_quadricMeasure` along `F.floorBasis b`. Its Gram matrix has square |
| 827 | -- one, which gives a left inverse of `F.floorBasis b`. |
| 828 | have gram : (F.floorBasis b)ᴴ * T.splitGram * F.floorBasis b = |
| 829 | planeSumGram (hyperbolicGram (FloorPairs b m) (1 : Matrix ι ι A)) := F.gram_floorBasis b |
| 830 | have left_inv : |
| 831 | (F.floorBasis b)ᴴ * T.splitGram * F.floorBasis b * ((F.floorBasis b)ᴴ * T.splitGram) * |
| 832 | F.floorBasis b = 1 := by |
| 833 | rw [Matrix.mul_assoc _ _ (F.floorBasis b), gram] |
| 834 | rw [fromBlocks_multiply] |
| 835 | simp [hyperbolicGram_mul, ← one_fin_two] |
| 836 | rw [hμ, ← F.map_floorBasis_volume b] |
| 837 | exact (isDisintegration_quadricMeasure (by simp [conjTranspose_hyperbolicGram])).map gram left_inv |
| 838 | |
| 839 | /-- Let `b ≤ ϱ` and let `Z` be a nonempty standard Borel space. Let `Φ : T.G → Z` be a measurable |
| 840 | function that is left invariant under `Q_(b+1) ∩ G_b`, where `Q_(b+1)` is the partially |
| 841 | unitriangular group `partialUnitriangularGroup (b + 1)` and `G_b = floorGroup b` is the group of |
| 842 | isometries fixing every basis vector of floor below `b`. Then there is a measurable `Ψ` on vectors |
| 843 | with `Φ σ = Ψ (orbitPoint b σ)` for every `σ ∈ G_b`, where `orbitPoint b σ = σ⁻¹ f_b` and `f_b` is |
| 844 | the vector of index `b` in the frame `(e_0, …, e_{ϱ-1}, z)`. -/ |
| 845 | lemma exists_factor_orbitPoint [StandardBorelSpace Z] [Nonempty Z] {Φ : T.G → Z} (hΦ : Measurable Φ) |
| 846 | (h_inv : (partialUnitriangularGroup (b + 1) ⊓ floorGroup b).FixesLeft Φ) : |
| 847 | ∃ Ψ : (𝔰.BesselIndex → A) → Z, Measurable Ψ ∧ ∀ σ ∈ floorGroup b, Φ σ = Ψ (orbitPoint b σ) := by |
| 848 | -- On `floorGroup b` the invariant function `Φ` factors through `orbitPoint b`, as |
| 849 | -- `Ψ ∘ orbitPoint b`. The source is standard Borel and the range of `orbitPoint b` is countably |
| 850 | -- separated, so `Ψ` is measurable on that range; it extends measurably to all vectors because `Z` |
| 851 | -- is standard Borel and nonempty. |
| 852 | have : StandardBorelSpace (T.floorGroup b) := measurableSet_floorGroup.standardBorel |
| 853 | have h_factors : FactorsThrough (Φ ∘ (↑)) fun σ : T.floorGroup b ↦ orbitPoint b σ.val := |
| 854 | fun σ τ h ↦ by simpa using h_inv _ (inv_mul_mem_of_orbitPoint_eq σ⁻¹.property τ⁻¹.property h) τ |
| 855 | obtain ⟨Ψ, hΨ⟩ : ∃ Ψ : (𝔰.BesselIndex → A) → Z, |
| 856 | Φ ∘ (↑) = Ψ ∘ fun σ : T.floorGroup b ↦ orbitPoint b σ.val := |
| 857 | (factorsThrough_iff _).1 h_factors |
| 858 | have h_meas : Measurable (Ψ ∘ fun σ : T.floorGroup b ↦ orbitPoint b σ.val) := by |
| 859 | rw [← hΨ] |
| 860 | exact hΦ.comp (by fun_prop) |
| 861 | rw [Measurable.measurable_comp_iff_restrict (by fun_prop)] at h_meas |
| 862 | obtain ⟨Ψ', hΨ'_meas, hΨ'⟩ := h_meas.exists_eq_measurable_comp |
| 863 | refine ⟨Ψ', hΨ'_meas, fun σ hσ ↦ ?_⟩ |
| 864 | calc Φ σ = Ψ (orbitPoint b σ) := congrFun hΨ ⟨σ, hσ⟩ |
| 865 | _ = Ψ' (orbitPoint b σ) := congrFun hΨ' ⟨orbitPoint b σ, ⟨σ, hσ⟩, rfl⟩ |
| 866 | |
| 867 | /-- If every `σ l` is carried by `G_l`, then so is the descending convolution starting at `l`. -/ |
| 868 | lemma ae_descConv_mem (h : ∀ {l : ℕ}, ∀ᵐ x : T.G ∂σ l, x ∈ floorGroup l) : |
| 869 | ∀ᵐ x : T.G ∂descConv σ l i, x ∈ floorGroup l := by |
| 870 | fun_induction descConv with |
| 871 | | case1 => simp |
| 872 | | case2 a i ih => |
| 873 | exact ae_mem_mconv (ih.mono (floorGroup_anti a.le_succ)) h measurableSet_floorGroup |
| 874 | |
| 875 | variable [H : IsHermitianUnit T.splitGram] |
| 876 | |
| 877 | /-- Let `η_i = heisenbergMeasure i` be the measure on the unitary group `T.G` carried by the |
| 878 | Heisenberg group `N_i`: the image of Haar measure on `V_(i+1)` times the skew measure of the place |
| 879 | for `i < ϱ`, and the unit mass at `1` otherwise. Let `η_{<j} = ascConv heisenbergMeasure j` be the |
| 880 | convolution `η₀ ∗ ⋯ ∗ η_{j−1}`, which is the Dirac mass at `1` if `j = 0`. For every `s` in |
| 881 | `G_j = T.floorGroup j`, the unitary elements fixing every basis vector of floor below `j`, the Dirac |
| 882 | mass at `s` commutes with `η_{<j}` under convolution. -/ |
| 883 | lemma ascConv_heisenbergMeasure_dirac_comm : |
| 884 | ∀ s ∈ T.floorGroup j, |
| 885 | dirac s ∗ₘ ascConv heisenbergMeasure j = ascConv heisenbergMeasure j ∗ₘ dirac s := by |
| 886 | induction j with |
| 887 | | zero => simp [ascConv] |
| 888 | | succ j ih => |
| 889 | intro s hs |
| 890 | rw [ascConv, ← mconv_assoc, ih s (floorGroup_anti j.le_succ hs), mconv_assoc, |
| 891 | dirac_mconv_heisenbergMeasure_comm hs, mconv_assoc] |
| 892 | |
| 893 | /-- η_{<j+1} = η_j ∗ η_{<j}: the last factor may be moved to the front, as η_j is carried by G_j. -/ |
| 894 | lemma ascConv_heisenbergMeasure_succ : |
| 895 | (ascConv heisenbergMeasure (j + 1) : Measure T.G) = |
| 896 | heisenbergMeasure j ∗ₘ ascConv heisenbergMeasure j := |
| 897 | (mconv_comm_of_ae |
| 898 | (ae_mem_floorUnipotent.mono fun x hx ↦ ascConv_heisenbergMeasure_dirac_comm x hx.1)).symm |
| 899 | |
| 900 | /-- Let `A` be a place and `T` a middle Gram matrix whose split Gram matrix `T.splitGram` is |
| 901 | hermitian and invertible. In the unitary group of `T.splitGram`, let η_{<j} = η₀ ∗ ⋯ ∗ η_{j−1} be |
| 902 | the ascending convolution of the Heisenberg measures. Here η_l is the image of Haar measure on |
| 903 | V_(l+1) times the skew measure under the parametrisation of N_l for l < ϱ, and the unit mass at 1 |
| 904 | otherwise. Then η_{<j} ∗ δ_s = η_{<j} and δ_s ∗ η_{<j} = η_{<j} for every s in N_(<j), the group of |
| 905 | elements that are unitriangular when basis vectors of floor below j keep their level and all others |
| 906 | get the middle level. -/ |
| 907 | lemma ascConv_heisenbergMeasure_invariant (hs : s ∈ unipotentBelow j) : |
| 908 | ascConv heisenbergMeasure j ∗ₘ dirac s = ascConv heisenbergMeasure j ∧ |
| 909 | dirac s ∗ₘ ascConv heisenbergMeasure j = ascConv heisenbergMeasure j := by |
| 910 | refine unipotentBelow_induction |
| 911 | (C := fun (i : ℕ) (x : T.G) ↦ |
| 912 | ascConv heisenbergMeasure i ∗ₘ dirac x = ascConv heisenbergMeasure i ∧ |
| 913 | dirac x ∗ₘ ascConv heisenbergMeasure i = ascConv heisenbergMeasure i) |
| 914 | ?_ ?_ j s hs |
| 915 | · simp |
| 916 | · -- `heisenbergMeasure j` absorbs `γ` and `ascConv heisenbergMeasure j` absorbs `ν`; the two |
| 917 | -- measures commute |
| 918 | intro j γ hγ ν ⟨asc_ν, ν_asc⟩ |
| 919 | obtain ⟨η_γ, γ_η⟩ := heisenbergMeasure_mconv_dirac hγ |
| 920 | rw [← dirac_mconv_dirac] |
| 921 | constructor |
| 922 | · rw [← mconv_assoc, ascConv, mconv_assoc _ (heisenbergMeasure j), η_γ, ← ascConv, |
| 923 | ascConv_heisenbergMeasure_succ, mconv_assoc, asc_ν] |
| 924 | · rw [mconv_assoc, ascConv, ← mconv_assoc (dirac ν), ν_asc, ← ascConv, |
| 925 | ascConv_heisenbergMeasure_succ, ← mconv_assoc, γ_η] |
| 926 | |
| 927 | /-- The measure η_{<j} = η₀ ∗ ⋯ ∗ η_{j−1} is carried by `N_(<j)`. -/ |
| 928 | lemma ae_ascConv_mem_unipotentBelow : |
| 929 | ∀ᵐ x : T.G ∂ascConv heisenbergMeasure j, x ∈ T.unipotentBelow j := by |
| 930 | induction j with |
| 931 | | zero => simp [ascConv] |
| 932 | | succ j ih => |
| 933 | exact ae_mem_mconv (ih.mono (by grind)) (ae_mem_floorUnipotent.mono fun _ hx ↦ hx.2) |
| 934 | (isClosed_of_entries_eq_one mem_unipotentBelow).measurableSet |
| 935 | |
| 936 | omit [DecidableEq ι] in |
| 937 | /-- Plancherel's inequality with a damping factor `∏ i, G (v i)`, for `G ≥ 0` continuous and |
| 938 | integrable and the additive character `ψ` of the place `A`: the constant is the `L¹` norm of the |
| 939 | transform of `G` (dilated by `ξ`), to the power `card ι`. -/ |
| 940 | lemma Place.lintegral_damped_fourier_le (ξ : A) {G : A → ℝ} (hG : Continuous G) |
| 941 | (hG_int : Integrable G) (hG_pos : 0 ≤ G) {f : (ι → A) → ℂ} (hf : Integrable f) |
| 942 | (hf_meas : Measurable f) : |
| 943 | ∫⁻ v : ι → A, ‖(‖∫ w : ι → A, P.ψ (ξ * star v ⬝ᵥ w) * f w‖ ^ 2 * ∏ i : ι, G (v i) : ℂ)‖ₑ ≤ |
| 944 | (∫⁻ a : A, ‖∫ v : A, G v * P.ψ (star v * ξ * a)‖ₑ) ^ card ι * ∫⁻ w : ι → A, ‖f w‖ₑ ^ 2 := by |
| 945 | -- Expand the square as a double integral over `x = (w, w')` and integrate over `v` first. |
| 946 | let g (v : ι → A) (x : (ι → A) × (ι → A)) : ℂ := |
| 947 | P.ψ (ξ * star v ⬝ᵥ (x.2 - x.1)) * ((∏ i, G (v i)) * (star (f x.1) * f x.2)) |
| 948 | have hg : Integrable g.uncurry := |
| 949 | .mono ((Integrable.fintype_prod fun _ ↦ hG_int).smul_prod (hf.mul_prod hf)) |
| 950 | (Measurable.aestronglyMeasurable (by fun_prop)) (by simp [g, uncurry]) |
| 951 | have h_expand (v : ι → A) : |
| 952 | ‖∫ w : ι → A, P.ψ (ξ * star v ⬝ᵥ w) * f w‖ ^ 2 * ∏ i : ι, (G (v i) : ℂ) = |
| 953 | ∫ x : (ι → A) × (ι → A), g v x := by |
| 954 | rw [← Complex.conj_mul', ← integral_conj, ← integral_prod_mul, ← integral_mul_const] |
| 955 | refine integral_congr_ae (.of_forall fun x ↦ ?_) |
| 956 | simp [g, mul_sub, P.ψ.map_sub_eq_div, division_def, Complex.inv_eq_conj] |
| 957 | ring |
| 958 | -- The transform of the damping factor is a product of transforms of `G`. |
| 959 | have h_factor (z : ι → A) : ‖∫ v : ι → A, P.ψ (ξ * star v ⬝ᵥ z) * ∏ i : ι, (G (v i) : ℂ)‖ₑ ≤ |
| 960 | ∏ i : ι, ‖∫ v : A, G v * P.ψ (star v * ξ * z i)‖ₑ := by |
| 961 | simp [eNorm, ← ofNNReal_finsetProd, ← nnNorm_prod, ← integral_fintype_prod_volume_eq_prod, |
| 962 | dotProduct, Finset.mul_sum, Finset.prod_mul_distrib, mul_comm, mul_left_comm, |
| 963 | AddChar.map_sum_eq_prod] |
| 964 | -- For a fixed difference `z = w' - w`, Cauchy–Schwarz bounds `∫ |f w| |f (w + z)|`. |
| 965 | have h_cauchy (z : ι → A) : |
| 966 | ∫⁻ w : ι → A, ‖f w‖ₑ * ‖f (w + z)‖ₑ ≤ ∫⁻ w : ι → A, ‖f w‖ₑ ^ 2 := by |
| 967 | simpa [← rpow_add_of_nonneg, ← two_mul, lintegral_add_right_eq_self (‖f ·‖ₑ ^ 2)] using |
| 968 | lintegral_mul_le_Lp_mul_Lq _ .two_two hf.1.eNorm (hf.comp_add_right z).1.eNorm |
| 969 | have h_diff (z : ι → A) : ∫⁻ w : ι → A, ‖∫ v : ι → A, g v (w, w + z)‖ₑ ≤ |
| 970 | (∏ i : ι, ‖∫ v : A, G v * P.ψ (star v * ξ * z i)‖ₑ) * ∫⁻ w : ι → A, ‖f w‖ₑ ^ 2 := by |
| 971 | simpa [g, ← mul_assoc (ψ _), integral_mul_const, lintegral_const_mul'] using |
| 972 | mul_le_mul' (h_factor z) (h_cauchy z) |
| 973 | have h_nonneg (v : ι → A) : |
| 974 | (‖∫ x : (ι → A) × (ι → A), g v x‖ : ℂ) = ∫ x : (ι → A) × (ι → A), g v x := by |
| 975 | simp [← h_expand, abs_of_nonneg (hG_pos _)] |
| 976 | simp only [Complex.ofReal_prod, h_expand] |
| 977 | calc ∫⁻ v, ‖∫ x, g v x‖ₑ |
| 978 | _ ≤ ‖∫ v, ∫ x, g v x‖ₑ := by |
| 979 | -- The inner integrals are non-negative reals. |
| 980 | grw [← ofReal_integral_norm_eq_lintegral_eNorm (by exact hg.integral_prod_left), |
| 981 | Real.ofReal_le_eNorm] |
| 982 | rw [← integral_congr_ae (.of_forall h_nonneg), integral_complex_ofReal] |
| 983 | simp [eNorm] |
| 984 | _ ≤ ∫⁻ x : (ι → A) × (ι → A), ‖∫ v, g v x‖ₑ := by |
| 985 | grw [integral_integral_swap hg, eNorm_integral_le_lintegral_eNorm] |
| 986 | _ ≤ ∫⁻ z : ι → A, ∫⁻ w, ‖∫ v, g v (w, w + z)‖ₑ := by |
| 987 | grw [volume_eq_prod, ← (measurePreserving_prod_add_swap ..).map_eq, lintegral_map_le, |
| 988 | lintegral_prod_le] |
| 989 | fun_prop |
| 990 | _ ≤ ∫⁻ z : ι → A, (∏ i, ‖∫ v, G v * P.ψ (star v * ξ * z i)‖ₑ) * ∫⁻ w, ‖f w‖ₑ ^ 2 := |
| 991 | lintegral_mono h_diff |
| 992 | _ = (∫⁻ a : A, ‖∫ v : A, G v * P.ψ (star v * ξ * a)‖ₑ) ^ card ι * |
| 993 | ∫⁻ w : ι → A, ‖f w‖ₑ ^ 2 := by |
| 994 | rw [lintegral_mul_const _ (by fun_prop), card, ← Finset.prod_const (lintegral ..), |
| 995 | ← TauCeti.lintegral_fintype_prod_eq_prod _ (by fun_prop), volume_pi] |
| 996 | /-- Plancherel's inequality at a place A: for a unit η and f measurable and integrable on A^ι, |
| 997 | ∫ |∫ ψ(η v*w) f(w) dw|² dv ≤ (c/md η)^{|ι|} ∫ |f|². Here v*w is `star v ⬝ᵥ w`, ψ is the additive |
| 998 | character of the place, and md is its `modulus`. The constant c = `kernelBound` is part of the data |
| 999 | of the place: a bound in [0, ∞] on the L¹ norm of the Fourier transform of a kernel that the place |
| 1000 | provides. -/ |
| 1001 | lemma Place.plancherel_inequality (η : Aˣ) {f : (ι → A) → ℂ} (hf : Integrable f) |
| 1002 | (hf_meas : Measurable f) : |
| 1003 | ∫⁻ v : ι → A, ‖∫ w : ι → A, P.ψ (η * star v ⬝ᵥ w) * f w‖ₑ ^ 2 ≤ |
| 1004 | (P.kernelBound / P.modulus η) ^ card ι * ∫⁻ w : ι → A, ‖f w‖ₑ ^ 2 := by |
| 1005 | -- Damp the integrand by `∏ i, G (star x * v i)`, which tends to `1` as `x → 0`. By Fatou's lemma |
| 1006 | -- it suffices to bound the damped integral for units `x`, which accumulate at `0`. |
| 1007 | obtain ⟨G, hG, hG_int, hG_pos, hG_zero, hG_mass⟩ := P.exists_plancherel_kernel |
| 1008 | let damped (x : A) (v : ι → A) : ℝ≥0∞ := |
| 1009 | ‖(‖∫ w, P.ψ (η * star v ⬝ᵥ w) * f w‖ ^ 2 * ∏ i, G (star x * v i) : ℂ)‖ₑ |
| 1010 | have h_limit (v : ι → A) : |
| 1011 | Tendsto (damped · v) (nhds 0) (nhds (‖∫ w, P.ψ (η * star v ⬝ᵥ w) * f w‖ₑ ^ 2)) := |
| 1012 | Continuous.tendsto' (by fun_prop) 0 _ (by simp [damped, eNorm, hG_zero]) |
| 1013 | have h_unit (u : Aˣ) : ∫⁻ v : ι → A, damped u v ≤ |
| 1014 | (P.kernelBound / P.modulus η) ^ card ι * ∫⁻ w : ι → A, ‖f w‖ₑ ^ 2 := by |
| 1015 | -- Substitute `v ↦ (star u)⁻¹ • v` on the left and `z ↦ η * u⁻¹ * z` in the mass of the kernel; |
| 1016 | -- both sides acquire the factor `(modulus u)⁻¹ ^ card ι`. |
| 1017 | grw [lintegral_eq_mul_lintegral_map (map_mulVec_volume _ (star u⁻¹.1 • 1) _), lintegral_map_le, |
| 1018 | ← hG_mass, |
| 1019 | lintegral_eq_mul_lintegral_map (map_mul_volume (η * u⁻¹)) (modulus_ne_zero _) |
| 1020 | (modulus_ne_top _), |
| 1021 | lintegral_map] |
| 1022 | · have h_cancel (a : A) : star u.val * (star u⁻¹.val * a) = a := by simp [← mul_assoc, |
| 1023 | ← star_mul] |
| 1024 | simpa [damped, smul_mulVec, mul_pow, ENNReal.mul_div_right_comm, ENNReal.div_self, |
| 1025 | mul_assoc, h_cancel] using |
| 1026 | mul_le_mul_right (lintegral_damped_fourier_le (η.val * u⁻¹.val) hG hG_int hG_pos hf hf_meas) |
| 1027 | ((P.modulus u)⁻¹ ^ card ι) |
| 1028 | -- the side goals: measurability, and the determinant is a unit |
| 1029 | any_goals fun_prop |
| 1030 | all_goals simp [IsUnit.pow] |
| 1031 | grw [lintegral_mono fun v ↦ (h_limit v).liminf_eq.ge, lintegral_liminf_le (by fun_prop)] |
| 1032 | exact liminf_le_of_frequently_le' |
| 1033 | ((mem_closure_iff_frequently.1 (dense_of_ae ae_isUnit 0)).mono (Set.forall_mem_range.2 h_unit)) |
| 1034 | |
| 1035 | end New.Floors |
| 1036 | |
| 1037 | end |