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.Algebra.Order.Archimedean.Real.Hom |
| 4 | public import Lib.DiscreteSeries.Haar.CayleyChart |
| 5 | public import Lib.Adelic.QuotientMeasure.Basic |
| 6 | public import Lib.DiscreteSeries.Bruhat.FloorGroups |
| 7 | public import Lib.General.Measure.IdempotentKernel |
| 8 | public import Lib.General.Measure.QuadricDisintegration |
| 9 | import Lib.DiscreteSeries.Bruhat.FloorMeasures |
| 10 | |
| 11 | /-! |
| 12 | # The real unitary group G₁, unipotent coordinates and Bessel functions |
| 13 | |
| 14 | The form `(𝔰.middleGram N).splitGram` on the space Y₀ of column vectors indexed by `𝔰.BesselIndex` |
| 15 | is the sum of ϱ hyperbolic planes, the identity form on X₀ = A^κ and a line of norm −N. Its |
| 16 | archimedean version is the complex form `New.Shape.J₁`, whose space has basis `e_a`, `x_i`, `z`, |
| 17 | `e*_a` with `h(z, z) = -1` for the hermitian form `h`, and frame `e_0, …, e_{ϱ-1}, z`. The file |
| 18 | embeds the unitary group of X₀ in U(Y₀) and in `G₁`. It gives explicit elements of the unipotent |
| 19 | groups 𝖴⁰ = `New.Shape.Form.besselU0` and 𝖴 = `New.Shape.Form.besselU`, and measures on them. It |
| 20 | then defines Bessel functions on `G₁`. |
| 21 | |
| 22 | ## Main definitions and results |
| 23 | |
| 24 | * `New.exists_besselU_mul_toBesselH`: over a ring with a trace-one element, if the split form is |
| 25 | hermitian and invertible, every element of `besselS` is a product `u h` with `u` in `besselU` and |
| 26 | `h` in the image of `New.toBesselH`. |
| 27 | * `New.Shape.G₁`, `New.Shape.J₁`: the group and its form. |
| 28 | * `New.RealPlace.unipotentOf`, `New.RealPlace.mem_besselU0_iff_unipotentOf`: a parametrization of |
| 29 | the unipotent group `New.Shape.Form.besselU0` that fixes the frame. |
| 30 | * `New.RealPlace.embedH`: the unitary group of the `x_i` inside `G₁`. |
| 31 | * `New.Shape.besselHaar₀`, `New.Shape.besselHaar`: measures on 𝖴⁰ and 𝖴, pushed forward from |
| 32 | Lebesgue measure on the parameters and, for 𝖴, from its product with the measure on 𝖴⁰. |
| 33 | * `New.IsBesselFunction`: bounded measurable functions that transform by a character under the |
| 34 | unipotent group `New.Shape.Form.besselU` and by `rep` under `U(κ)`. |
| 35 | |
| 36 | Notions from other files: |
| 37 | * `New.Shape.Form.splitGram T`: the Gram matrix of ϱ hyperbolic planes and a middle space with Gram |
| 38 | matrix T. Identity blocks pair the first and last ϱ indices, T is the middle block, and all other |
| 39 | entries are zero. |
| 40 | * `New.inclMatrix`: for a map u : m → n of index sets, the n×m matrix whose j-th column is the |
| 41 | standard basis vector e_{u(j)}. |
| 42 | * `New.frameMatrix`: the square submatrix on the rows and columns of the frame. |
| 43 | * `New.Shape.Form.besselS`: the Bessel subgroup, generated by the unipotent group 𝖴 = |
| 44 | `New.Shape.Form.besselU` and the fixer H = `New.Shape.Form.besselH` of the basis vectors that |
| 45 | are not indexed by κ. |
| 46 | |
| 47 | ## Relation to the literature |
| 48 | |
| 49 | Known; see `Lib.DiscreteSeries.Bruhat.FloorGroups`, `Lib.DiscreteSeries.Bessel.UnipotentHaarMeasure` |
| 50 | and `Lib.DiscreteSeries.Bruhat.ComplexPlace` for sources. |
| 51 | -/ |
| 52 | |
| 53 | @[expose] public section |
| 54 | |
| 55 | noncomputable section |
| 56 | |
| 57 | /-! |
| 58 | ## The embedding of U(X₀) in U(Y₀) and its image H |
| 59 | |
| 60 | The form `(𝔰.middleGram N).splitGram` on Y₀ is ϱ hyperbolic planes plus the identity form on |
| 61 | X₀ = A^κ plus a line of norm −N. H is the group `New.Shape.Form.besselH` of isometries that fix the |
| 62 | basis vectors not indexed by κ. |
| 63 | |
| 64 | * `New.toBesselH`: the extension of a unitary κ × κ matrix by the identity. |
| 65 | -/ |
| 66 | |
| 67 | namespace New |
| 68 | |
| 69 | variable {A : Type _} [CommRing A] [StarRing A] {𝔰 : Shape} {N : A} |
| 70 | |
| 71 | open Matrix Floors FloorGroups |
| 72 | |
| 73 | /-- The embedding of the unitary group of the identity form on X₀ = A^κ into the unitary group |
| 74 | `(𝔰.middleGram N).G`, acting on X₀ and fixing the other basis vectors. -/ |
| 75 | @[local simp, simps! -isSimp apply_coe_val] |
| 76 | noncomputable def toBesselH (𝔰 : Shape) (N : A) : U (1 : Matrix 𝔰.κ 𝔰.κ A) →* (𝔰.middleGram N).G := |
| 77 | ((Units.map |
| 78 | { toFun m := fromBlocks 1 0 0 ((m.fromBlocks 0 0 1).fromBlocks 0 0 1) |
| 79 | map_one' := by simp |
| 80 | map_mul' := by simp [fromBlocks_multiply] }).comp |
| 81 | (U 1).subtype).codRestrict (𝔰.middleGram N).G |
| 82 | -- `↓` unfolds membership in the unitary group before the group itself is simplified. |
| 83 | (by simp [↓mem_unitaryGroupOf_iff, star_eq_conjTranspose, middleGram, fromBlocks_conjTranspose, |
| 84 | splitGram, fromBlocks_multiply, |
| 85 | fromBlocks_mul_fromRows, fromCols_mul_fromBlocks]) |
| 86 | |
| 87 | @[simp] |
| 88 | lemma toBesselH_mem (u : U (1 : Matrix 𝔰.κ 𝔰.κ A)) : toBesselH 𝔰 N u ∈ besselH := by |
| 89 | -- In the columns not indexed by κ the block matrix agrees with the identity. |
| 90 | refine mem_floorGroup.2 ?_ |
| 91 | rintro i (b | (k | ⟨⟩) | b) h_floor |
| 92 | case inr.inl.inl => simp at h_floor |
| 93 | all_goals rcases i with a | (l | ⟨⟩) | a <;> simp [Matrix.one_apply] |
| 94 | |
| 95 | /-- Let `(𝔰.middleGram N).G` be the unitary group of the form made of ϱ hyperbolic planes, the |
| 96 | identity form on X₀ = A^κ and a line of norm −N. If N is a unit, every element of |
| 97 | H = `New.Shape.Form.besselH`, the fixer of the basis vectors outside X₀, is the extension |
| 98 | `New.toBesselH` of a unitary κ × κ matrix by the identity. -/ |
| 99 | lemma exists_eq_toBesselH {h : (𝔰.middleGram N).G} (hh : h ∈ besselH) (hN : IsUnit N) : |
| 100 | ∃ u : U (1 : Matrix 𝔰.κ 𝔰.κ A), h = toBesselH 𝔰 N u := by |
| 101 | -- `h` differs from the identity only in the columns `𝔰.indexX₀ a`, at the rows `𝔰.indexX₀ b` and |
| 102 | -- the row of the extra basis vector `z`. It preserves the form, so these columns are orthogonal |
| 103 | -- to `z` (of norm `-N`, a unit) and orthonormal. |
| 104 | let m : Matrix 𝔰.κ 𝔰.κ A := h.val.val.submatrix 𝔰.indexX₀ 𝔰.indexX₀ |
| 105 | have h_form : h.val.valᴴ * (𝔰.middleGram N).splitGram * h.val.val = |
| 106 | (𝔰.middleGram N).splitGram := mem_unitaryGroupOf_iff.1 h.property |
| 107 | have h_row (a : 𝔰.κ) : h.val.val 𝔰.z (𝔰.indexX₀ a) = 0 := hN.mul_right_eq_zero.1 <| by |
| 108 | simpa [apply_eq_one_apply_of_mem_floorGroup hh, middleGram, splitGram, Matrix.mul_apply, |
| 109 | Matrix.one_apply] |
| 110 | using congr_fun₂ h_form 𝔰.z (𝔰.indexX₀ a) |
| 111 | have h_unitary : mᴴ * 1 * m = 1 := by |
| 112 | ext a b |
| 113 | simpa [m, apply_eq_one_apply_of_mem_floorGroup hh, h_row, middleGram, splitGram, |
| 114 | Matrix.mul_apply, Matrix.one_apply] |
| 115 | using congr_fun₂ h_form (𝔰.indexX₀ a) (𝔰.indexX₀ b) |
| 116 | use U.of (by simp) m h_unitary |
| 117 | refine Subtype.ext (Units.ext ?_) |
| 118 | simp [m, apply_eq_one_apply_of_mem_floorGroup hh, h_row, ← ext_iff, Matrix.one_apply] |
| 119 | |
| 120 | omit [StarRing A] in |
| 121 | /-- The column of the split form at `z` is `-N` at `z`. -/ |
| 122 | private lemma splitGram_middleGram_col_z : |
| 123 | (𝔰.middleGram N).splitGram.col 𝔰.z = Pi.single 𝔰.z (-N) := by |
| 124 | ext i |
| 125 | rcases i with b | (k | ⟨⟩) | b <;> simp [splitGram, middleGram, Floors.hyperbolicGram] |
| 126 | |
| 127 | omit [StarRing A] in |
| 128 | /-- If the split form is invertible, the `(z, z)` entry of `J⁻¹ J = 1` gives an inverse for `N`. -/ |
| 129 | private lemma isUnit_of_isUnit_splitGram_middleGram |
| 130 | (h : IsUnit (𝔰.middleGram N).splitGram) : IsUnit N := by |
| 131 | refine isUnit_iff_exists_inv'.2 ⟨-(h.unit⁻¹.val 𝔰.z 𝔰.z), ?_⟩ |
| 132 | have hz : h.unit⁻¹.val 𝔰.z ⬝ᵥ (𝔰.middleGram N).splitGram.col 𝔰.z = 1 := |
| 133 | (congr_fun₂ h.val_inv_mul 𝔰.z 𝔰.z).trans (by simp) |
| 134 | simpa only [splitGram_middleGram_col_z, dotProduct_single, mul_neg, neg_mul] using hz |
| 135 | |
| 136 | /-- The last column of a top-floor isometry has norm −N for the middle form. -/ |
| 137 | lemma lastColumn_norm_of_mem_floorGroup {σ : (𝔰.middleGram N).G} (hσ : σ ∈ floorGroup 𝔰.ϱ) : |
| 138 | let v := fun j : 𝔰.κ ↦ σ.val.val (𝔰.indexX₀ j) 𝔰.z |
| 139 | let a := σ.val.val 𝔰.z 𝔰.z |
| 140 | star v ⬝ᵥ v - star a * N * a = -N := by |
| 141 | simpa [apply_eq_one_apply_of_mem_floorGroup hσ, middleGram, splitGram, Matrix.mul_apply, |
| 142 | dotProduct, Matrix.one_apply, sub_eq_add_neg] using |
| 143 | congr_fun₂ (mem_unitaryGroupOf_iff.1 σ.prop) 𝔰.z 𝔰.z |
| 144 | |
| 145 | /-- Assume that A has a chosen element of trace one and that the form `(𝔰.middleGram N).splitGram` |
| 146 | (ϱ hyperbolic planes, the identity form on X₀ = A^κ and a line of norm −N) is hermitian and |
| 147 | invertible. In its unitary group, the Bessel subgroup `besselS` is generated by the |
| 148 | unipotent group `besselU` and by the fixer of the basis vectors outside X₀. Every element of it is |
| 149 | a product `u * New.toBesselH 𝔰 N g`, with `u` in `besselU` and `g` a unitary κ × κ matrix, which |
| 150 | `New.toBesselH` extends by the identity. -/ |
| 151 | lemma exists_besselU_mul_toBesselH [TraceOne A] [hJ : IsHermitianUnit (𝔰.middleGram N).splitGram] |
| 152 | {s : (𝔰.middleGram N).G} (hs : s ∈ besselS) : |
| 153 | ∃ u ∈ besselU, ∃ g : U (1 : Matrix 𝔰.κ 𝔰.κ A), s = u * toBesselH 𝔰 N g := by |
| 154 | obtain ⟨u, hu, h, hh, rfl⟩ := mem_besselS.1 hs |
| 155 | obtain ⟨g, rfl⟩ := exists_eq_toBesselH hh (isUnit_of_isUnit_splitGram_middleGram hJ.isUnit) |
| 156 | exact ⟨u, hu, g, rfl⟩ |
| 157 | |
| 158 | /-- Assume that A has a chosen element of trace one. Let `𝔰.middleGram N` be |
| 159 | the diagonal matrix with entries 1 on κ and −N at the extra point, and assume its split form |
| 160 | `(𝔰.middleGram N).splitGram` is hermitian and invertible; this split form is the Gram matrix of ϱ |
| 161 | hyperbolic planes plus that middle block. For `a < ϱ` and a row `r` that vanishes at the columns |
| 162 | `c ≤ a`, some `u` in the Bessel unipotent group `besselU` has `frameMatrix u` equal to the identity |
| 163 | matrix plus `r` in row `a`; here `besselU` consists of the isometries of the split form that are |
| 164 | block upper unitriangular for the Bessel levels, and `frameMatrix u` is the submatrix of `u` on the |
| 165 | frame (e_0, …, e_{ϱ-1}, z). -/ |
| 166 | lemma exists_mem_besselU_frameMatrix_eq_one_add_row {A : Type} [CommRing A] [StarRing A] |
| 167 | [TraceOne A] {N : A} [hJ : IsHermitianUnit (𝔰.middleGram N).splitGram] (a : Fin 𝔰.ϱ) |
| 168 | (r : Fin (𝔰.ϱ + 1) → A) (hr_zero : ∀ c : Fin (𝔰.ϱ + 1), c ≤ a.castSucc → r c = 0) : |
| 169 | ∃ u ∈ (𝔰.middleGram N).besselU, |
| 170 | frameMatrix u = 1 + vecMulVec (Pi.single a.castSucc 1) r := by |
| 171 | have hN := isUnit_of_isUnit_splitGram_middleGram hJ.isUnit |
| 172 | -- The Heisenberg element of floor `a` with vector `v` acts on the frame `f` by `1` minus the row |
| 173 | -- `h(v, f_c)` in row `a`. Take `v` equal to `-r̄_c` at `e*_c` and to `r̄_ϱ / N̄` at `z`, since |
| 174 | -- `h(e*_c, e_c) = 1` and `h(z, z) = -N`. |
| 175 | let v : 𝔰.BesselIndex → A |
| 176 | | Sum.inr (Sum.inr c) => -star (r c.castSucc) |
| 177 | | Sum.inr (Sum.inl (Sum.inr _)) => star (r (Fin.last 𝔰.ϱ) * ↑hN.unit⁻¹) |
| 178 | | _ => 0 |
| 179 | -- `v` vanishes on the floors at most `a`, so it is a vector of the floors at least `a + 1`. |
| 180 | have hv_floor (i : 𝔰.BesselIndex) (hi : ¬ (a : ℕ) + 1 ≤ floorOf i) : v i = 0 := by |
| 181 | rcases i with c | (k | ⟨⟩) | c <;> simp [floorOf, v] at hi ⊢ |
| 182 | have hc : c ≤ a := Fin.le_def.2 (by omega) |
| 183 | simp [hr_zero _ (Fin.castSucc_le_castSucc_iff.2 hc)] |
| 184 | have h_incl : inclMatrix A (Subtype.val : {i : 𝔰.BesselIndex // (a : ℕ) + 1 ≤ floorOf i} → |
| 185 | 𝔰.BesselIndex) *ᵥ (fun i ↦ v i.val) = v := by |
| 186 | grind [inclMatrix_val_mulVec] |
| 187 | have h_row (c : Fin (𝔰.ϱ + 1)) : |
| 188 | star v ⬝ᵥ (𝔰.middleGram N).splitGram *ᵥ Pi.single (𝔰.besselFrame c) 1 = -r c := by |
| 189 | induction c using Fin.lastCases with |
| 190 | | last => simp [besselFrame_top, splitGram_middleGram_col_z, v, mul_assoc] |
| 191 | | cast c => simp [besselFrame_castSucc, splitGram_col (Sum.inl c), v] |
| 192 | refine ⟨TraceOne.heisenbergElem a (fun i ↦ v i.val, 0), |
| 193 | unipotentBelow_le_besselU (heisenbergElem_mem_floorUnipotent a (fun i ↦ v i.val, 0)).2, ?_⟩ |
| 194 | rw [frameMatrix_heisenbergElem, ← sub_neg_eq_add, ← vecMulVec_neg] |
| 195 | congr! with c |
| 196 | simpa [h_incl] using h_row c |
| 197 | |
| 198 | /-- Let `A` be a commutative ring with involution and a chosen `τ` with `τ + τ̄ = 1`. Assume the |
| 199 | form `(𝔰.middleGram N).splitGram` is hermitian and invertible. It consists of ϱ hyperbolic planes, |
| 200 | the identity form on X₀ = A^κ and a line of norm −N. Then every upper unitriangular matrix `M` of |
| 201 | size ϱ + 1 equals `frameMatrix u` for some `u` |
| 202 | in `besselU`. Here `besselU` is the group of isometries of this form that are block upper |
| 203 | unitriangular for the levels `New.BesselIndex.level`, so their middle diagonal block is the |
| 204 | identity. `frameMatrix u` is the square submatrix of `u` on the rows and columns of the frame |
| 205 | (e_0, …, e_{ϱ-1}, z). -/ |
| 206 | lemma exists_mem_besselU_frameMatrix_eq {A : Type} [CommRing A] [StarRing A] [TraceOne A] |
| 207 | {N : A} [IsHermitianUnit (𝔰.middleGram N).splitGram] |
| 208 | {M : Matrix (Fin (𝔰.ϱ + 1)) (Fin (𝔰.ϱ + 1)) A} |
| 209 | (hM_unitri : ∀ a b : Fin (𝔰.ϱ + 1), b ≤ a → |
| 210 | M a b = (1 : Matrix (Fin (𝔰.ϱ + 1)) (Fin (𝔰.ϱ + 1)) A) a b) : |
| 211 | ∃ u ∈ (𝔰.middleGram N).besselU, frameMatrix u = M := by |
| 212 | -- Let `truncated k` be `M` with its rows of index below `k` replaced by those of `1`. Going from |
| 213 | -- `k + 1` down to `k` multiplies on the right by a matrix that differs from `1` in row `k` only. |
| 214 | let truncated (k : ℕ) : Matrix (Fin (𝔰.ϱ + 1)) (Fin (𝔰.ϱ + 1)) A := |
| 215 | of fun i c ↦ if k ≤ (i : ℕ) then M i c else (1 : Matrix _ _ A) i c |
| 216 | have h_split (a : Fin 𝔰.ϱ) : truncated a = truncated (a + 1) * |
| 217 | (1 + vecMulVec (Pi.single a.castSucc 1) (M a.castSucc - Pi.single a.castSucc 1)) := by |
| 218 | have h_col : (truncated (a + 1)).col a.castSucc = Pi.single a.castSucc 1 := by |
| 219 | funext i |
| 220 | grind [col_apply, of_apply, Matrix.one_apply, Fin.le_def, Fin.val_castSucc] |
| 221 | rw [Matrix.mul_add, Matrix.mul_one, mul_vecMulVec, mulVec_single_one, h_col] |
| 222 | ext i c |
| 223 | grind [Matrix.add_apply, of_apply, vecMulVec_apply, Matrix.one_apply, Pi.sub_apply] |
| 224 | have h_all (k : ℕ) (hk : k ≤ 𝔰.ϱ) : |
| 225 | ∃ u ∈ (𝔰.middleGram N).besselU, frameMatrix u = truncated k := by |
| 226 | induction hk using Nat.decreasingInduction with |
| 227 | | self => |
| 228 | -- The last row of `M` is that of `1`, so `truncated ϱ = 1`. |
| 229 | have h_top : truncated 𝔰.ϱ = 1 := by |
| 230 | ext i c |
| 231 | grind [of_apply, Fin.le_def] |
| 232 | exact ⟨1, one_mem _, by |
| 233 | simp [h_top, frameMatrix, ← ext_iff, Matrix.one_apply, besselFrame_injective.eq_iff]⟩ |
| 234 | | of_succ k hk ih => |
| 235 | obtain ⟨u, hu, hu_frame⟩ := ih |
| 236 | let a : Fin 𝔰.ϱ := ⟨k, hk⟩ |
| 237 | obtain ⟨x, hx, hx_frame⟩ := exists_mem_besselU_frameMatrix_eq_one_add_row (N := N) a |
| 238 | (M a.castSucc - Pi.single a.castSucc 1) fun c hc ↦ by |
| 239 | simp [hM_unitri _ c hc, Matrix.one_apply, Pi.single_apply, eq_comm] |
| 240 | exact ⟨u * x, mul_mem hu hx, by rw [frameMatrix_mul hx, hu_frame, hx_frame, ← h_split a]⟩ |
| 241 | simpa [truncated, ← Matrix.ext_iff] using h_all 0 (Nat.zero_le _) |
| 242 | |
| 243 | end New |
| 244 | |
| 245 | /-! |
| 246 | ## The real group G₁, frame and column matrices, free-entry coordinates |
| 247 | |
| 248 | Definitions for the archimedean group `New.Shape.G₁`, the unitary group of the complex form |
| 249 | `New.Shape.J₁`. Its basis is `e_a`, `x_i`, `z`, `e*_a`, indexed by `New.Shape.BesselIndex`, also |
| 250 | written `SplitIndex 𝔰.ϱ 𝔰.MiddleIndex` or `Fin 𝔰.ϱ ⊕ 𝔰.MiddleIndex ⊕ Fin 𝔰.ϱ`, as `inl a`, |
| 251 | `inr (inl (inl i))`, `inr (inl (inr ()))`, `inr (inr a)`. The frame `New.Shape.besselFrame` is |
| 252 | `(f_0, …, f_ϱ) = (e_0, …, e_{ϱ-1}, z)`. |
| 253 | -/ |
| 254 | |
| 255 | section RealFrame |
| 256 | |
| 257 | open Matrix |
| 258 | |
| 259 | namespace New.Shape |
| 260 | |
| 261 | variable (𝔰 : Shape) |
| 262 | |
| 263 | /-! ### The group -/ |
| 264 | |
| 265 | /-- The unitary group of the complex hermitian form made of ϱ hyperbolic planes, the standard |
| 266 | positive form on κ, and one vector z with h(z, z) = −1. -/ |
| 267 | abbrev G₁ : Subgroup (GL 𝔰.BesselIndex ℂ) := (𝔰.middleGram (1 : ℂ)).G |
| 268 | |
| 269 | /-- The space of (ϱ+1)×(ϱ+1) complex matrices. -/ |
| 270 | abbrev FrameMatrix : Type := Matrix (Fin (𝔰.ϱ + 1)) (Fin (𝔰.ϱ + 1)) ℂ |
| 271 | |
| 272 | /-! ### The form, the column matrices of the basis vectors, parameters of unipotents -/ |
| 273 | |
| 274 | /-- The Gram matrix of the hermitian form defining G₁: ϱ hyperbolic pairs e_a, e*_a, the |
| 275 | identity on X₀, and h(z, z) = −1. -/ |
| 276 | abbrev J₁ : Matrix 𝔰.BesselIndex 𝔰.BesselIndex ℂ := (𝔰.middleGram (1 : ℂ)).splitGram |
| 277 | |
| 278 | /-- The matrix whose ϱ+1 columns are the basis vectors of the frame (e_0, …, e_{ϱ-1}, z). -/ |
| 279 | abbrev frameCols : Matrix 𝔰.BesselIndex (Fin (𝔰.ϱ + 1)) ℂ := inclMatrix ℂ 𝔰.besselFrame |
| 280 | |
| 281 | /-- The matrix with ϱ+1 columns, the basis vectors e*_0, …, e*_{ϱ-1} and x_{k₀}, where k₀ = `𝔰.k₀` |
| 282 | is the distinguished index in κ. -/ |
| 283 | abbrev dualFrameCols : Matrix (SplitIndex 𝔰.ϱ 𝔰.MiddleIndex) (Fin (𝔰.ϱ + 1)) ℂ := |
| 284 | inclMatrix ℂ (Fin.snoc eStar (𝔰.indexX₀ 𝔰.k₀)) |
| 285 | |
| 286 | /-- The matrix with ϱ columns, the basis vectors e_0, …, e_{ϱ-1}. -/ |
| 287 | abbrev isotropicCols : Matrix (Fin 𝔰.ϱ ⊕ 𝔰.MiddleIndex ⊕ Fin 𝔰.ϱ) (Fin 𝔰.ϱ) ℂ := |
| 288 | inclMatrix ℂ (Sum.inl : Fin 𝔰.ϱ → 𝔰.BesselIndex) |
| 289 | |
| 290 | /-- The matrix whose columns, indexed by κ, are the basis vectors x_i of X₀. -/ |
| 291 | abbrev definiteCols : Matrix 𝔰.BesselIndex 𝔰.κ ℂ := inclMatrix ℂ 𝔰.indexX₀ |
| 292 | |
| 293 | /-- The matrix with ϱ columns, the basis vectors e*_0, …, e*_{ϱ-1}. -/ |
| 294 | abbrev dualCols : Matrix (SplitIndex 𝔰.ϱ 𝔰.MiddleIndex) (Fin 𝔰.ϱ) ℂ := |
| 295 | inclMatrix ℂ (eStar : Fin 𝔰.ϱ → 𝔰.BesselIndex) |
| 296 | |
| 297 | /-- The one-column matrix whose column is the basis vector z. -/ |
| 298 | abbrev zCol : Matrix 𝔰.BesselIndex Unit ℂ := inclMatrix ℂ fun _ : Unit ↦ 𝔰.z |
| 299 | |
| 300 | /-- The space of pairs consisting of a complex ϱ×κ matrix and a real ϱ×ϱ matrix. -/ |
| 301 | abbrev UnipotentParams : Type := Matrix (Fin 𝔰.ϱ) 𝔰.κ ℂ × Matrix (Fin 𝔰.ϱ) (Fin 𝔰.ϱ) ℝ |
| 302 | |
| 303 | end Shape |
| 304 | |
| 305 | variable {j : ℕ} {𝔰 : Shape} |
| 306 | |
| 307 | /-- For y in G₁, the a-th vector y⁻¹f_a of the frame moved by y⁻¹, as a vector of the standard |
| 308 | Euclidean space. -/ |
| 309 | def frameVector (y : 𝔰.G₁) (a : Fin (𝔰.ϱ + 1)) : EuclideanSpace ℂ 𝔰.BesselIndex := |
| 310 | WithLp.toLp 2 fun i : 𝔰.BesselIndex ↦ y⁻¹.val i (𝔰.besselFrame a) |
| 311 | |
| 312 | /-- For y∈G₁, the (ϱ+1)×(ϱ+1) complex matrix Z(y) of products h(f_j, y f_l) of the frame with |
| 313 | its translate. -/ |
| 314 | abbrev realFrameGram (y : 𝔰.G₁) : Matrix (Fin (𝔰.ϱ + 1)) (Fin (𝔰.ϱ + 1)) ℂ := |
| 315 | (𝔰.middleGram 1).frameGram y.val.val |
| 316 | |
| 317 | namespace RealPlace |
| 318 | |
| 319 | /-- For `γ ∈ G₁`, the matrix `Z(γ) = realFrameGram γ` equals `Fᴴ J₁ γ F`, with `F = 𝔰.frameCols` the |
| 320 | frame (e₁, …, e_ϱ, z) and `J₁ = 𝔰.J₁`. -/ |
| 321 | lemma realFrameGram_eq_conjTranspose_mul (γ : 𝔰.G₁) : |
| 322 | realFrameGram γ = 𝔰.frameColsᴴ * 𝔰.J₁ * (γ.val.val * 𝔰.frameCols) := by |
| 323 | simp [← Matrix.ext_iff, inclMatrix, Shape.Form.frameGram, Matrix.mul_apply, Matrix.one_apply] |
| 324 | |
| 325 | /-- Coordinates on matrices, as a continuous `ℝ`-linear map. For a set `p` of positions `(a, i)`, |
| 326 | a matrix `M` goes to its complex entries in row `e_a` and column `i` for `(a, i)` in `p`, |
| 327 | together with the imaginary parts of its entries in row `e_a` and column `e*_a`. -/ |
| 328 | @[simps apply_fst apply_snd] |
| 329 | def freeEntries (p : Fin 𝔰.ϱ × 𝔰.BesselIndex → Prop) : |
| 330 | Matrix 𝔰.BesselIndex 𝔰.BesselIndex ℂ →L[ℝ] (Subtype p → ℂ) × (Fin 𝔰.ϱ → ℝ) where |
| 331 | toFun M := (fun x : Subtype p ↦ M (Sum.inl x.val.1) x.val.2, |
| 332 | fun a : Fin 𝔰.ϱ ↦ (M (Sum.inl a) (eStar a)).im) |
| 333 | map_add' := by simp [funext_iff] |
| 334 | map_smul' := by simp [funext_iff] |
| 335 | |
| 336 | /-- The positions (a, i), meaning row `e_a` and column i, of the complex coordinates of the |
| 337 | frame-fixing unipotent group. The predicate is false for the columns `e_b` and `z` of the frame. It |
| 338 | is true for the columns indexed by `κ`. For the column `e*_b` it says `a < b`. It differs from |
| 339 | `New.RealPlace.IsFreeEntry` by leaving out the columns of the frame. -/ |
| 340 | @[simp] |
| 341 | def IsFreeEntry₀ (x : Fin 𝔰.ϱ × 𝔰.BesselIndex) : Prop := |
| 342 | (∃ i : 𝔰.κ, x.2 = 𝔰.indexX₀ i) ∨ ∃ b > x.1, x.2 = eStar b |
| 343 | |
| 344 | /-- The positions (a, i) with row e_a and column e_b or e*_b for b > a, or any column of the middle |
| 345 | block. -/ |
| 346 | def IsFreeEntry : Fin 𝔰.ϱ × 𝔰.BesselIndex → Prop |
| 347 | | (a, Sum.inl b) | (a, eStar b) => a < b |
| 348 | | (_, Sum.inr (Sum.inl _)) => True |
| 349 | |
| 350 | attribute [simp] IsFreeEntry.eq_1 IsFreeEntry.eq_2 IsFreeEntry.eq_3 |
| 351 | |
| 352 | /-- The matrix 1 − CCᴴ + ChCᴴ; for orthonormal columns C it acts by h on their span and fixes |
| 353 | the orthogonal complement. -/ |
| 354 | def actOnCols {m : Type*} [Fintype m] (C : Matrix 𝔰.BesselIndex m ℂ) (h : Matrix m m ℂ) : |
| 355 | Matrix 𝔰.BesselIndex 𝔰.BesselIndex ℂ := |
| 356 | 1 - C * Cᴴ + C * h * Cᴴ |
| 357 | |
| 358 | /-! ### Upper unitriangular matrices, and properties of `J₁` -/ |
| 359 | |
| 360 | /-- The space of complex families indexed by the pairs a < b among j indices: the entries of a |
| 361 | j×j matrix strictly above the diagonal. -/ |
| 362 | abbrev UpperEntries (j : ℕ) : Type := {p : Fin j × Fin j // p.1 < p.2} → ℂ |
| 363 | |
| 364 | /-- The upper unitriangular j×j complex matrix whose entries above the diagonal are the given |
| 365 | family x. -/ |
| 366 | def unitriangularMatrix (x : UpperEntries j) : Matrix (Fin j) (Fin j) ℂ := |
| 367 | of fun a b : Fin j ↦ if h : a < b then x ⟨(a, b), h⟩ else if a = b then 1 else 0 |
| 368 | |
| 369 | @[fun_prop] |
| 370 | lemma continuous_unitriangularMatrix : |
| 371 | Continuous (unitriangularMatrix : UpperEntries j → Matrix (Fin j) (Fin j) ℂ) := by |
| 372 | unfold unitriangularMatrix |
| 373 | continuity |
| 374 | |
| 375 | /-- The Gram matrix `New.Shape.J₁` is a hermitian involution. -/ |
| 376 | instance isHermitianInvolution_J₁ : IsHermitianInvolution 𝔰.J₁ where |
| 377 | isHermitian := by |
| 378 | ext (a | (k | ⟨⟩) | a) (b | (l | ⟨⟩) | b) <;> |
| 379 | simp [splitGram, middleGram, Matrix.one_apply, eq_comm] |
| 380 | mul_self := by |
| 381 | ext (a | (k | ⟨⟩) | a) (b | (l | ⟨⟩) | b) <;> |
| 382 | simp [splitGram, middleGram, Matrix.mul_apply, Matrix.one_apply, Fintype.sum_sum_type] |
| 383 | |
| 384 | /-- The Gram matrix `New.Shape.J₁` is hermitian and invertible. -/ |
| 385 | instance : Floors.IsHermitianUnit 𝔰.J₁ where |
| 386 | conjTranspose_eq := IsHermitianInvolution.isHermitian |
| 387 | isUnit := IsHermitianInvolution.isUnit |
| 388 | |
| 389 | end RealPlace |
| 390 | |
| 391 | end New |
| 392 | |
| 393 | end RealFrame |
| 394 | |
| 395 | /-! |
| 396 | ## Explicit elements of 𝖴⁰, H and 𝖴 in G₁ |
| 397 | |
| 398 | Explicit matrices for subgroups of the unitary group `New.Shape.G₁` of the form `New.Shape.J₁`, with |
| 399 | basis `e_a`, `x_i`, `z`, `e*_a`. |
| 400 | |
| 401 | * `New.RealPlace.liftUnitriangular`: an element of `New.Shape.Form.besselU` with a given |
| 402 | unitriangular block on the frame. |
| 403 | -/ |
| 404 | |
| 405 | section UnipotentCoords |
| 406 | |
| 407 | namespace New.RealPlace |
| 408 | |
| 409 | open Matrix CStarRing Norms.L2Operator Floors MeasureTheory Fin FloorGroups |
| 410 | |
| 411 | variable {𝔰 : Shape} {l m n o : Type} [Fintype n] [DecidableEq n] |
| 412 | {e : m → n} {e' : l → n} {M : Matrix m o ℂ} |
| 413 | |
| 414 | /-! ### Matrices of basis columns -/ |
| 415 | |
| 416 | /-- Two families of basis columns with no common index are orthogonal. -/ |
| 417 | theorem inclMatrix_gram_eq_zero (h_ne : ∀ (i : l) (j : m), e' i ≠ e j) : |
| 418 | (inclMatrix ℂ e')ᴴ * inclMatrix ℂ e = 0 := by |
| 419 | aesop (add simp [inclMatrix, Matrix.mul_apply, Matrix.one_apply]) |
| 420 | |
| 421 | variable [Fintype m] |
| 422 | |
| 423 | omit [DecidableEq n] in |
| 424 | /-- A known product `A * B = C` can be rewritten inside the right-associated product |
| 425 | `A * (B * M)`. -/ |
| 426 | theorem mul_mul_eq_of_mul_eq {A : Matrix l n ℂ} {B : Matrix n m ℂ} {C : Matrix l m ℂ} |
| 427 | (h_mul : A * B = C) : A * (B * M) = C * M := by |
| 428 | rw [← Matrix.mul_assoc, h_mul] |
| 429 | |
| 430 | /-- A product with basis columns `e` is orthogonal to basis columns `e'` with no common index. -/ |
| 431 | lemma inclMatrix_gram_mul_eq_zero (h_ne : ∀ (i : l) (j : m), e' i ≠ e j) : |
| 432 | (inclMatrix ℂ e')ᴴ * (inclMatrix ℂ e * M) = 0 := by |
| 433 | rw [mul_mul_eq_of_mul_eq (inclMatrix_gram_eq_zero h_ne), Matrix.zero_mul] |
| 434 | |
| 435 | /-- If the index map `e` is injective, the conjugate transpose of `inclMatrix ℂ e`, the matrix whose |
| 436 | `j`-th column is the standard basis vector at `e j`, cancels it on the left. -/ |
| 437 | theorem inclMatrix_gram_mul_eq_self (h_inj : ∀ i j : m, e i = e j → i = j) : |
| 438 | (inclMatrix ℂ e)ᴴ * (inclMatrix ℂ e * M) = M := by |
| 439 | classical rw [← Matrix.mul_assoc, inclMatrix_gram_eq_one h_inj, Matrix.one_mul] |
| 440 | |
| 441 | /-- The inclusion matrix of an injective map of indices has operator norm at most one. -/ |
| 442 | theorem norm_inclMatrix_le_one {m n : Type} [Fintype m] [DecidableEq m] [Fintype n] |
| 443 | [DecidableEq n] {e : n → m} (h_inj : e.Injective) : ‖inclMatrix ℂ e‖ ≤ 1 := by |
| 444 | -- `‖inclMatrix ℂ e‖ ^ 2` is the norm of `(inclMatrix ℂ e)ᴴ * inclMatrix ℂ e = 1`. |
| 445 | refine le_of_sq_le_sq ?_ zero_le_one |
| 446 | simp [sq, ← l2_opNorm_conjTranspose_mul_self, inclMatrix_gram_eq_one h_inj, |
| 447 | IsStarProjection.norm_le] |
| 448 | |
| 449 | /-- The Gram matrix in terms of basis columns: `e_a` pairs with `e*_a`, the `x_i` are orthonormal |
| 450 | and `z` has square `-1`. -/ |
| 451 | theorem J₁_eq : |
| 452 | 𝔰.J₁ = 𝔰.isotropicCols * 𝔰.dualColsᴴ + 𝔰.dualCols * 𝔰.isotropicColsᴴ + |
| 453 | 𝔰.definiteCols * 𝔰.definiteColsᴴ - 𝔰.zCol * 𝔰.zColᴴ := by |
| 454 | ext (a | (k | ⟨⟩) | a) (b | (l | ⟨⟩) | b) <;> |
| 455 | simp [splitGram, middleGram, inclMatrix, Matrix.mul_apply, Matrix.one_apply] |
| 456 | |
| 457 | /-! ### The explicit elements -/ |
| 458 | |
| 459 | /-- For q = (a, b) with a complex ϱ×κ and b real ϱ×ϱ, the isometry 1 + XaWᴴ − WaᴴDᴴ + X(sk |
| 460 | b − ½aaᴴ)Dᴴ. Here X, W, D have columns e_i, x_i, e*_i, and sk is `New.skewOfReal`, which makes a |
| 461 | skew-hermitian matrix from a real one. -/ |
| 462 | def unipotentOf (q : 𝔰.UnipotentParams) : 𝔰.G₁ := |
| 463 | U.of IsHermitianUnit.isUnit |
| 464 | (1 + 𝔰.isotropicCols * q.1 * 𝔰.definiteColsᴴ - 𝔰.definiteCols * q.1ᴴ * 𝔰.dualColsᴴ + |
| 465 | 𝔰.isotropicCols * (skewOfReal q.2 - (2⁻¹ : ℂ) • (q.1 * q.1ᴴ)) * 𝔰.dualColsᴴ) <| by |
| 466 | -- Expand with `J₁_eq` and the orthogonality relations of the columns. |
| 467 | simp [Matrix.mul_assoc, Matrix.mul_sub, Matrix.sub_mul, J₁_eq, Matrix.mul_add, |
| 468 | Matrix.add_mul, inclMatrix_gram_mul_eq_self, inclMatrix_gram_mul_eq_zero] |
| 469 | module |
| 470 | |
| 471 | /-- For h in the unitary group U(κ), the element of G₁ acting as h on X₀ and as the identity on |
| 472 | the other basis vectors. -/ |
| 473 | abbrev embedH (h : U (1 : Matrix 𝔰.κ 𝔰.κ ℂ)) : (𝔰.middleGram (1 : ℂ)).G := (toBesselH 𝔰 1 h : 𝔰.G₁) |
| 474 | |
| 475 | variable (𝔰) in |
| 476 | /-- For `h` in `U(κ)`, the image `embedH h` lies in `besselS`. -/ |
| 477 | lemma _root_.New.Shape.embedH_mem_besselS (h : U (1 : Matrix 𝔰.κ 𝔰.κ ℂ)) : embedH h ∈ besselS := |
| 478 | mem_partialUnitriangularGroup_of_mem_floorGroup (toBesselH_mem h) |
| 479 | |
| 480 | /-- Left multiplication by `embedH h`, the unitary matrix that acts by h on the span of the `x_i` |
| 481 | and fixes the other basis vectors, preserves the L² operator norm. -/ |
| 482 | lemma norm_embedH_mul {u : 𝔰.G₁} (h : U (1 : Matrix 𝔰.κ 𝔰.κ ℂ)) : |
| 483 | ‖(embedH h * u).val.val‖ = ‖u.val.val‖ := by |
| 484 | refine norm_mem_unitary_mul (U := (embedH h).val.val) _ ?_ |
| 485 | simp [unitary, star, ← U.inv_val_eq_conjTranspose, val_toBesselH_apply_coe, |
| 486 | fromBlocks_conjTranspose, fromBlocks_multiply] |
| 487 | |
| 488 | /-- The lift to G₁ of the upper unitriangular matrix `New.RealPlace.unitriangularMatrix` x of size |
| 489 | ϱ+1: an explicit isometry acting by this matrix on the frame e_0, …, e_{ϱ-1}, z and fixing X₀. -/ |
| 490 | def liftUnitriangular (x : UpperEntries 𝔰.n) : 𝔰.G₁ := |
| 491 | -- the last column `v` and the upper left block `a` of the unitriangular matrix |
| 492 | let v : Matrix (Fin 𝔰.ϱ) Unit ℂ := (unitriangularMatrix x).submatrix castSucc fun _ : Unit ↦ 𝔰.top |
| 493 | let a : Matrix (Fin 𝔰.ϱ) (Fin 𝔰.ϱ) ℂ := (unitriangularMatrix x).submatrix castSucc castSucc |
| 494 | U.of IsHermitianUnit.isUnit |
| 495 | (𝔰.definiteCols * 𝔰.definiteColsᴴ + 𝔰.zCol * 𝔰.zColᴴ + |
| 496 | 𝔰.isotropicCols * (a * 𝔰.isotropicColsᴴ + v * 𝔰.zColᴴ) + |
| 497 | (𝔰.dualCols + 𝔰.zCol * vᴴ + (2⁻¹ : ℂ) • (𝔰.isotropicCols * v * vᴴ)) * a.adjugateᴴ * |
| 498 | 𝔰.dualColsᴴ) <| by |
| 499 | -- `a` has determinant `1`, so its adjugate is its inverse. |
| 500 | have a_det : a.det = 1 := det_eq_one_of_unitriangular (lev := id) <| by |
| 501 | simp [a, unitriangularMatrix, Matrix.one_apply] |
| 502 | lia |
| 503 | -- Expand with `J₁_eq` and the orthogonality relations of the columns. |
| 504 | simp [a_det, adjugate_conjTranspose, mul_mul_eq_of_mul_eq (mul_adjugate _), |
| 505 | mul_mul_eq_of_mul_eq (adjugate_mul _), Matrix.mul_add, Matrix.mul_assoc, Matrix.add_mul, |
| 506 | J₁_eq, Matrix.mul_sub, inclMatrix_gram_mul_eq_zero, inclMatrix_gram_mul_eq_self, |
| 507 | Matrix.sub_mul] |
| 508 | module |
| 509 | |
| 510 | attribute [simps (attr := local simp) (rhsMd := .default) -isSimp coe_val, irreducible] unipotentOf |
| 511 | liftUnitriangular |
| 512 | |
| 513 | /-! ### Membership in the subgroups -/ |
| 514 | |
| 515 | /-- `embedH h` acts as `h` on the span of the `x_i` and as the identity on its orthogonal |
| 516 | complement. -/ |
| 517 | theorem coe_embedH (h : U (1 : Matrix 𝔰.κ 𝔰.κ ℂ)) : |
| 518 | (embedH h).val.val = actOnCols 𝔰.definiteCols h.val.val := by |
| 519 | simp [actOnCols, val_toBesselH_apply_coe, inclMatrix, ← ext_iff, Matrix.one_apply, |
| 520 | Matrix.mul_apply] |
| 521 | |
| 522 | /-- The columns of `definiteCols`, the basis vectors `x_i` of `X₀`, are orthonormal for the standard |
| 523 | hermitian form. -/ |
| 524 | theorem conjTranspose_definiteCols_mul_self : 𝔰.definiteColsᴴ * 𝔰.definiteCols = 1 := |
| 525 | inclMatrix_gram_eq_one (by simp) |
| 526 | |
| 527 | /-- For `h` in the unitary group `H` of `X₀`, the element `embedH h` of `G₁` acts on the basis |
| 528 | vectors `x_i` of `X₀` by the matrix `h`. -/ |
| 529 | theorem embedH_mul_definiteCols (h : U (1 : Matrix 𝔰.κ 𝔰.κ ℂ)) : |
| 530 | (embedH h).val.val * 𝔰.definiteCols = 𝔰.definiteCols * h.val.val := by |
| 531 | simp [coe_embedH, actOnCols, Matrix.sub_mul, Matrix.add_mul, Matrix.mul_assoc, |
| 532 | conjTranspose_definiteCols_mul_self] |
| 533 | |
| 534 | /-- Each explicit isometry `unipotentOf q` lies in 𝖴⁰ = `besselU0`: it is block upper unitriangular |
| 535 | for the levels `New.BesselIndex.level` and fixes the frame e_0, …, e_{ϱ-1}, z. -/ |
| 536 | lemma unipotentOf_mem_besselU0 (q : 𝔰.UnipotentParams) : unipotentOf q ∈ besselU0 := by |
| 537 | refine mem_besselU0_iff.2 ⟨mem_besselU.2 ?_, by simp [frameMatrix, inclMatrix, ← ext_iff, |
| 538 | Matrix.mul_apply, Matrix.one_apply, forall_fin_succ', Fin.ne_of_gt]⟩ |
| 539 | -- Off the diagonal the entries are nonzero only at (e_a, x_i), (x_i, e*_b) and (e_a, e*_b), |
| 540 | -- and the inequalities a, b < ϱ put all three above the block diagonal. |
| 541 | rintro (a | k | a) (b | l | b) h_level |
| 542 | case inl.inr.inl | inl.inr.inr | inr.inl.inr.inr => |
| 543 | simp [BesselIndex.level] at h_level |
| 544 | lia |
| 545 | all_goals simp [inclMatrix, Matrix.mul_apply, Matrix.one_apply] |
| 546 | |
| 547 | /-- For `u` in 𝖴⁰ and `h` in U(κ), the product `u * embedH h` lies in the fixer of the frame. -/ |
| 548 | lemma mul_embedH_mem_besselFixer {u : 𝔰.G₁} (hu : u ∈ besselU0) |
| 549 | (h : U (1 : Matrix 𝔰.κ 𝔰.κ ℂ)) : u * embedH h ∈ besselFixer := |
| 550 | mul_mem (mem_besselFixer_of_mem_besselU0 hu) (mem_besselFixer_of_mem_besselH (toBesselH_mem h)) |
| 551 | |
| 552 | /-- The block of `liftUnitriangular x` on the rows and columns of the frame (e_0, …, e_{ϱ-1}, z) is |
| 553 | `unitriangularMatrix x`, the upper unitriangular matrix with entries x above the diagonal. -/ |
| 554 | @[simp] |
| 555 | theorem frameMatrix_liftUnitriangular (x : UpperEntries 𝔰.n) : |
| 556 | frameMatrix (liftUnitriangular x) = unitriangularMatrix x := by |
| 557 | -- No index comes after the last one, so the last row has no entry right of the diagonal. |
| 558 | have h_last (i : Fin 𝔰.ϱ) : ¬ last 𝔰.ϱ < i.castSucc := (le_last _).not_gt |
| 559 | simp [h_last, frameMatrix, inclMatrix, unitriangularMatrix, ← ext_iff, Matrix.mul_apply, |
| 560 | Matrix.one_apply, forall_fin_succ', Fin.ne_of_gt] |
| 561 | |
| 562 | /-- For a family x of entries above the diagonal of a matrix of size `𝔰.n` = ϱ+1, the isometry |
| 563 | `liftUnitriangular x`, which acts on the frame by the unitriangular matrix with entries x, lies in |
| 564 | 𝖴 = `besselU`: it is block upper unitriangular for the levels `New.BesselIndex.level`. -/ |
| 565 | theorem liftUnitriangular_mem_besselU (x : UpperEntries 𝔰.n) : liftUnitriangular x ∈ besselU := by |
| 566 | -- The entries are explicit, except in the rows at the e*_a, where the adjugate matters; |
| 567 | -- `partialUnitriangularGroup_apply_eStar` gives these rows for an element of |
| 568 | -- `partialUnitriangularGroup ϱ`, the group with the conditions of `besselU` in the columns e_b |
| 569 | -- alone. |
| 570 | have h_mem : liftUnitriangular x ∈ partialUnitriangularGroup 𝔰.ϱ := by |
| 571 | -- each remaining condition is about a position with contradictory levels |
| 572 | simp [mem_partialUnitriangularGroup, BesselIndex.level, inclMatrix, unitriangularMatrix, |
| 573 | Matrix.mul_assoc, |
| 574 | Matrix.add_mul, Matrix.mul_apply, Matrix.one_apply] |
| 575 | lia |
| 576 | refine mem_besselU.2 fun i j h_level ↦ ?_ |
| 577 | rcases i with a | k | a |
| 578 | case inr.inr => |
| 579 | refine partialUnitriangularGroup_apply_eStar h_mem (isLt a) j fun b hb ↦ ?_ |
| 580 | rintro rfl |
| 581 | simp [BesselIndex.level] at h_level |
| 582 | lia |
| 583 | all_goals rcases j with b | l | b |
| 584 | -- `h_mem` covers the columns e_b; the middle block is explicit; the other positions lie above |
| 585 | -- the block diagonal. |
| 586 | case inl.inl | inr.inl.inl => |
| 587 | exact mem_partialUnitriangularGroup.1 h_mem _ _ h_level (.inl ⟨b.isLt, b.isLt⟩) |
| 588 | case inr.inl.inr.inl => |
| 589 | rcases k with k | ⟨⟩ <;> rcases l with l | ⟨⟩ <;> |
| 590 | simp [inclMatrix, Matrix.mul_assoc, Matrix.mul_apply, Matrix.one_apply] |
| 591 | all_goals |
| 592 | simp [BesselIndex.level] at h_level -- the position is above the block diagonal |
| 593 | lia |
| 594 | |
| 595 | /-- For `q = (b, s)` in `UnipotentParams`, with `b` a complex `ϱ × k` matrix and `s` a real `ϱ × ϱ` |
| 596 | matrix, and `u = unipotentOf q` the element of 𝖴⁰ with parameters `q`, the tuple `u (e* + e a)` is |
| 597 | `e* + e (skewOfReal s + a - b bᴴ / 2) - x bᴴ`, where `e`, `x`, `e*` are the matrices |
| 598 | `isotropicCols`, `definiteCols`, `dualCols` with columns `e_i`, `x_i`, `e*_i`, and `skewOfReal s` is |
| 599 | the skew-hermitian matrix with real coordinates `s`. -/ |
| 600 | theorem unipotentOf_mul_dualCols_add (q : 𝔰.UnipotentParams) (a : Matrix (Fin 𝔰.ϱ) (Fin 𝔰.ϱ) ℂ) : |
| 601 | (unipotentOf q).val.val * (𝔰.dualCols + 𝔰.isotropicCols * a) = |
| 602 | 𝔰.dualCols + 𝔰.isotropicCols * (skewOfReal q.2 + a - (2⁻¹ : ℂ) • (q.1 * q.1ᴴ)) + |
| 603 | 𝔰.definiteCols * -q.1ᴴ := by |
| 604 | simp [val_unipotentOf_coe, Matrix.mul_add, Matrix.add_mul, Matrix.sub_mul, Matrix.mul_sub, |
| 605 | Matrix.mul_assoc, inclMatrix_gram_eq_one, inclMatrix_gram_eq_zero, inclMatrix_gram_mul_eq_zero] |
| 606 | abel |
| 607 | |
| 608 | /-- Let h be the form `J₁`, and let the `ϱ` columns `C_b` of `C` span an isotropic space and be dual |
| 609 | to the frame (`frameCols`): h(e_a, C_b) = δ_ab and h(z, C_b) = 0. Then C = u (e*_0, …, e*_{ϱ-1}) |
| 610 | for some u = `New.RealPlace.unipotentOf` q: the first coordinate of q is read off the rows of `C` |
| 611 | at the `x_i`, and the second off the skew-hermitian part of the rows at the `e_a`. -/ |
| 612 | private theorem exists_unipotentOf_mul_dualCols_eq {C : Matrix 𝔰.BesselIndex (Fin 𝔰.ϱ) ℂ} |
| 613 | (h_dual : 𝔰.frameColsᴴ * 𝔰.J₁ * C = inclMatrix ℂ castSucc) |
| 614 | (h_isotropic : Cᴴ * 𝔰.J₁ * C = 0) : |
| 615 | ∃ q : 𝔰.UnipotentParams, (unipotentOf q).val.val * 𝔰.dualCols = C := by |
| 616 | let q : 𝔰.UnipotentParams := (-Cᴴ * 𝔰.definiteCols, skewCoords (skewAdjointPart ℝ C.toRows₁)) |
| 617 | refine ⟨q, ?_⟩ |
| 618 | -- Duality fixes the rows of `C` at `e*_a` and `z`. |
| 619 | have h_dual_eStar (a b : Fin 𝔰.ϱ) : C (eStar a) b = if a = b then 1 else 0 := by |
| 620 | simpa [J₁_eq, inclMatrix, Matrix.mul_sub, Matrix.mul_add, Matrix.sub_mul, Matrix.add_mul, |
| 621 | Matrix.mul_assoc, Matrix.mul_apply, Matrix.one_apply] using congr_fun₂ h_dual a.castSucc b |
| 622 | have h_dual_z (b : Fin 𝔰.ϱ) : C 𝔰.z b = 0 := by |
| 623 | simpa [J₁_eq, inclMatrix, Matrix.mul_sub, Matrix.mul_add, Matrix.sub_mul, Matrix.add_mul, |
| 624 | Matrix.mul_assoc, Matrix.mul_apply, Matrix.one_apply, Fin.ne_of_gt (Fin.castSucc_lt_last b)] |
| 625 | using congr_fun₂ h_dual (Fin.last 𝔰.ϱ) b |
| 626 | -- Isotropy then says that the hermitian part of the rows at `e_a` is `-q.1 * q.1ᴴ / 2`. |
| 627 | have h_block (a b : Fin 𝔰.ϱ) : star (C (Sum.inl b) a) + C (Sum.inl a) b + |
| 628 | ∑ k : 𝔰.κ, star (C (𝔰.indexX₀ k) a) * C (𝔰.indexX₀ k) b = 0 := by |
| 629 | have h := congr_fun₂ h_isotropic a b |
| 630 | simp [J₁_eq, inclMatrix, Matrix.mul_sub, Matrix.mul_add, Matrix.mul_apply, Matrix.one_apply, |
| 631 | h_dual_eStar, h_dual_z] at h ⊢ |
| 632 | linear_combination h |
| 633 | have h_top (a b : Fin 𝔰.ϱ) : 2⁻¹ * (C (Sum.inl a) b - star (C (Sum.inl b) a)) - |
| 634 | 2⁻¹ * ∑ k : 𝔰.κ, star (C (𝔰.indexX₀ k) a) * C (𝔰.indexX₀ k) b = C (Sum.inl a) b := by |
| 635 | linear_combination (-2⁻¹ : ℂ) * h_block a b |
| 636 | -- Simplify `(unipotentOf q).val.val * 𝔰.dualCols` using column orthogonality, then match entries. |
| 637 | have h_skew : skewOfReal q.2 = (skewAdjointPart ℝ C.toRows₁ : Matrix _ _ ℂ) := |
| 638 | skewOfReal_skewCoords (by |
| 639 | simpa [star_eq_conjTranspose] using skewAdjoint.mem_iff.mp (skewAdjointPart ℝ C.toRows₁).2) |
| 640 | have h_mul : (unipotentOf q).val.val * 𝔰.dualCols = |
| 641 | 𝔰.dualCols - 𝔰.definiteCols * q.1ᴴ + |
| 642 | 𝔰.isotropicCols * ((skewAdjointPart ℝ C.toRows₁ : Matrix _ _ ℂ) - |
| 643 | (2⁻¹ : ℂ) • (q.1 * q.1ᴴ)) := by |
| 644 | rw [sub_eq_add_neg, add_right_comm, ← Matrix.mul_neg, ← h_skew] |
| 645 | simpa only [Matrix.mul_zero, add_zero] using unipotentOf_mul_dualCols_add q 0 |
| 646 | rw [h_mul] |
| 647 | ext (a | (k | ⟨⟩) | a) b |
| 648 | · have h := h_top a b |
| 649 | simp [q, inclMatrix, Matrix.mul_apply, Matrix.one_apply, skewAdjointPart_apply_coe, |
| 650 | toRows₁, mul_sub, mul_comm] at h ⊢ |
| 651 | linear_combination h |
| 652 | · simp [q, inclMatrix, Matrix.mul_apply, Matrix.one_apply] |
| 653 | · simp [inclMatrix, Matrix.mul_apply, h_dual_z] |
| 654 | · simp [inclMatrix, Matrix.mul_apply, Matrix.one_apply, h_dual_eStar] |
| 655 | |
| 656 | /-- Let s be in `G₁`, let h be the form `J₁`, and let the ϱ columns B_b of B span an isotropic space |
| 657 | and be dual to the frame (`frameCols`) moved by s: h(s e_a, B_b) = δ_ab and h(s z, B_b) = 0, which |
| 658 | are the entries of `inclMatrix ℂ castSucc`. Then B = s u (e*_0, …, e*_{ϱ-1}) for some |
| 659 | u = `New.RealPlace.unipotentOf` q in the frame-fixing unipotent group 𝖴⁰. -/ |
| 660 | theorem exists_mul_unipotentOf_dualCols_eq {s : 𝔰.G₁} {B : Matrix 𝔰.BesselIndex (Fin 𝔰.ϱ) ℂ} |
| 661 | (h_dual : (s.val.val * 𝔰.frameCols)ᴴ * 𝔰.J₁ * B = inclMatrix ℂ castSucc) |
| 662 | (h_isotropic : Bᴴ * 𝔰.J₁ * B = 0) : |
| 663 | ∃ q : 𝔰.UnipotentParams, (s * unipotentOf q).val.val * 𝔰.dualCols = B := by |
| 664 | -- Translate by `s⁻¹`: the columns of `C = s⁻¹ B` are isotropic and dual to the frame itself. |
| 665 | obtain ⟨C, rfl⟩ : ∃ C, B = s.val.val * C := ⟨s⁻¹.val.val * B, by simp⟩ |
| 666 | rw [U.gram_invariant] at h_dual h_isotropic |
| 667 | obtain ⟨q, h_cols⟩ := exists_unipotentOf_mul_dualCols_eq h_dual h_isotropic |
| 668 | exact ⟨q, by simp [-val_unipotentOf_coe, Matrix.mul_assoc, h_cols]⟩ |
| 669 | |
| 670 | /-- If `s` in `G₁` fixes the frame e_0, …, e_{ϱ-1}, z (the columns of `frameCols`), then |
| 671 | `s * unipotentOf q = embedH h` for some `q` and some `h` in U(κ): after a correction by an element |
| 672 | of the frame-fixing unipotent group 𝖴⁰, `s` only acts on the span of the `x_i`. -/ |
| 673 | theorem exists_embedH_eq_of_fix_frameCols {s : 𝔰.G₁} |
| 674 | (h_fix : s.val.val * 𝔰.frameCols = 𝔰.frameCols) : |
| 675 | ∃ (q : 𝔰.UnipotentParams) (h : U (1 : Matrix 𝔰.κ 𝔰.κ ℂ)), s * unipotentOf q = embedH h := by |
| 676 | -- Correct `s` by some `unipotentOf q` to fix the dual columns as well; then it lies in |
| 677 | -- `besselH`. |
| 678 | obtain ⟨q, hq⟩ : ∃ q, (s * unipotentOf q).val.val * 𝔰.dualCols = 𝔰.dualCols := by |
| 679 | -- The dual columns are dual to the frame, which `s` fixes, and span an isotropic space. |
| 680 | refine exists_mul_unipotentOf_dualCols_eq ?_ ?_ |
| 681 | · rw [h_fix] |
| 682 | simp [inclMatrix, ← ext_iff, Matrix.mul_apply, Matrix.one_apply, forall_fin_succ', ne_of_gt] |
| 683 | · simp [inclMatrix, ← ext_iff, Matrix.mul_apply] |
| 684 | suffices h_mem : s * unipotentOf q ∈ besselH from ⟨q, exists_eq_toBesselH h_mem isUnit_one⟩ |
| 685 | -- `s` and `unipotentOf q` both fix the frame. |
| 686 | have h_frame := mem_besselFixer_of_mem_besselU0 (unipotentOf_mem_besselU0 q) |
| 687 | simp_all [besselFixer, mem_floorGroup, -val_unipotentOf_coe, inclMatrix, ← ext_iff, |
| 688 | Matrix.mul_apply, Matrix.one_apply, forall_fin_succ', Matrix.mul_assoc, Subgroup.mem_subgroupOf] |
| 689 | |
| 690 | /-- If `embedH h`, which acts by the unitary matrix h on the span of the `x_i`, lies in the |
| 691 | frame-fixing unipotent group 𝖴⁰ = `besselU0`, then it is trivial. -/ |
| 692 | lemma embedH_eq_one_of_mem_besselU0 {h : U (1 : Matrix 𝔰.κ 𝔰.κ ℂ)} |
| 693 | (h_mem : embedH h ∈ besselU0) : embedH h = 1 := by |
| 694 | -- The levels of the `x_i` are equal, so the block of an element of `besselU` there is the |
| 695 | -- identity; this block of `embedH h` is h. |
| 696 | have h_block (a b : 𝔰.κ) : h.val.val a b = (1 : Matrix _ _ ℂ) a b := by |
| 697 | simpa [val_toBesselH_apply_coe, Matrix.one_apply] using |
| 698 | mem_besselU.1 (mem_besselU0_iff.1 h_mem).1 (𝔰.indexX₀ a) (𝔰.indexX₀ b) le_rfl |
| 699 | simp [embedH, show h = 1 from Subtype.ext (Units.ext (Matrix.ext h_block))] |
| 700 | |
| 701 | /-- The group 𝖴⁰ = `besselU0` of block unitriangular elements of `G₁` that fix the frame consists |
| 702 | exactly of the explicit isometries `unipotentOf q`. -/ |
| 703 | theorem mem_besselU0_iff_unipotentOf {u : 𝔰.G₁} : |
| 704 | u ∈ besselU0 ↔ ∃ q : 𝔰.UnipotentParams, u = unipotentOf q := by |
| 705 | refine ⟨fun hu ↦ ?_, ?_⟩ |
| 706 | · -- `u⁻¹` fixes the frame, so `u⁻¹ * unipotentOf q = embedH h` for some `q` and `h`. |
| 707 | have h_fix : u⁻¹.val.val * 𝔰.frameCols = 𝔰.frameCols := by |
| 708 | simpa [besselFixer, -inv_mem_iff, Subgroup.mem_subgroupOf, Matrix.one_apply, inclMatrix, |
| 709 | ← ext_iff, Matrix.mul_apply] using mem_besselFixer_of_mem_besselU0 (inv_mem hu) |
| 710 | obtain ⟨q, h, hq⟩ := exists_embedH_eq_of_fix_frameCols h_fix |
| 711 | -- This element also lies in 𝖴⁰, which forces it to be `1`. |
| 712 | have h_mem : embedH h ∈ besselU0 := by |
| 713 | simpa [hq] using mul_mem (inv_mem hu) (unipotentOf_mem_besselU0 q) |
| 714 | exact ⟨q, inv_mul_eq_one.1 (hq.trans (embedH_eq_one_of_mem_besselU0 h_mem))⟩ |
| 715 | · rintro ⟨q, rfl⟩ |
| 716 | exact unipotentOf_mem_besselU0 q |
| 717 | |
| 718 | /-- The measure on the frame-fixing unipotent group 𝖴⁰ of G₁. It is the pushforward of Lebesgue |
| 719 | measure on the parameters q under q ↦ `unipotentOf q`. -/ |
| 720 | def _root_.New.Shape.besselHaar₀ : Measure (besselU0 (T := 𝔰.middleGram (1 : ℂ))) := |
| 721 | volume.map (β := besselU0) fun q : 𝔰.UnipotentParams ↦ ⟨unipotentOf q, unipotentOf_mem_besselU0 q⟩ |
| 722 | |
| 723 | /-- The measure on the unipotent group 𝖴 of G₁. It is the pushforward of the product of Lebesgue |
| 724 | measure on `UpperEntries 𝔰.n` (the entries above the diagonal of a matrix of size 𝔰.n = ϱ+1) with |
| 725 | `New.Shape.besselHaar₀`, under (x, u) ↦ u · `liftUnitriangular x`. -/ |
| 726 | def _root_.New.Shape.besselHaar : Measure (besselU (T := 𝔰.middleGram (1 : ℂ))) := |
| 727 | (volume.prod 𝔰.besselHaar₀).map (β := besselU) fun q ↦ |
| 728 | ⟨q.2.val * liftUnitriangular q.1, mul_mem q.2.property.1 (liftUnitriangular_mem_besselU q.1)⟩ |
| 729 | |
| 730 | /-- The measure on G₁ that computes integrals over 𝖴\G₁: Haar measure weighted by a cutoff for the |
| 731 | measure `New.Shape.besselHaar` on 𝖴. -/ |
| 732 | abbrev _root_.New.besselQuotMeasure : Measure 𝔰.G₁ := orbitMeasure 𝔰.besselHaar volume |
| 733 | |
| 734 | end New.RealPlace |
| 735 | |
| 736 | end UnipotentCoords |
| 737 | |
| 738 | /-! |
| 739 | ## Bessel functions on G₁ and right convolution |
| 740 | |
| 741 | * `New.convolve`: the convolution of a vector-valued function with a complex function on a group. |
| 742 | -/ |
| 743 | |
| 744 | namespace New |
| 745 | |
| 746 | open Matrix MeasureTheory |
| 747 | |
| 748 | /-- The convolution `y ↦ ∫ x (a⁻¹) F (y a) da` of a vector-valued function `F` with a complex |
| 749 | function `x` on `G`. -/ |
| 750 | noncomputable def convolve {G E : Type*} [Group G] [MeasureSpace G] [NormedAddCommGroup E] |
| 751 | [NormedSpace ℂ E] (F : G → E) (x : G → ℂ) (y : G) : E := |
| 752 | ∫ a : G, x a⁻¹ • F (y * a) |
| 753 | |
| 754 | variable {𝔰 : Shape} {I : Type*} [Fintype I] [DecidableEq I] |
| 755 | (rep : U (1 : Matrix 𝔰.κ 𝔰.κ ℂ) →* unitaryGroup I ℂ) |
| 756 | |
| 757 | /-- A Bessel function on `G₁` with values in `ℂ^I` is a bounded, strongly measurable `F` with two |
| 758 | transformation laws. For `n` in the unipotent group `New.Shape.Form.besselU`, `F (n y) = ψ(n) F y`. |
| 759 | For `h` in `U(κ)` = `U (1 : Matrix 𝔰.κ 𝔰.κ ℂ)` (written `U 1` below), embedded by |
| 760 | `New.RealPlace.embedH`, `F (h y) = rep h (F y)`. |
| 761 | |
| 762 | Here `ψ(n)` is `New.wave` of the sum of the entries just above the diagonal of `n` on the frame |
| 763 | `New.Shape.besselFrame`. -/ |
| 764 | structure IsBesselFunction (F : 𝔰.G₁ → EuclideanSpace ℂ I) extends IsBoundedMeasurable F where |
| 765 | /-- `F` transforms by the fixed character `n ↦ wave (simpleRootSum n)` under the unipotent |
| 766 | group. -/ |
| 767 | map_unipotent_mul : ∀ n ∈ besselU, ∀ y : 𝔰.G₁, F (n * y) = wave (simpleRootSum n) • F y |
| 768 | /-- `F` transforms by `rep` under `U(κ)`. -/ |
| 769 | map_unitary_mul (h : U 1) (y : 𝔰.G₁) : F (RealPlace.embedH h * y) = toEuclideanCLM (𝕜 := ℂ) |
| 770 | (rep h) (F y) |
| 771 | |
| 772 | /-- The unitary matrix representation `rep` of `U(κ)`, acting by continuous linear operators on |
| 773 | Euclidean space. -/ |
| 774 | noncomputable def DiscreteSeries.besselValueRep : |
| 775 | U (1 : Matrix 𝔰.κ 𝔰.κ ℂ) →* unitary (EuclideanSpace ℂ I →L[ℂ] EuclideanSpace ℂ I) := |
| 776 | (Unitary.map (StarMulEquiv.ofClass (toEuclideanCLM (𝕜 := ℂ))).toStarMonoidHom).toMonoidHom.comp |
| 777 | rep |
| 778 | |
| 779 | end New |
| 780 | |
| 781 | end |