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.Order.CompletePartialOrder |
| 4 | public import Lib.Adelic.Witt.WittTheorem |
| 5 | |
| 6 | /-! |
| 7 | # Floor groups, Weyl elements and the Bessel subgroup of a split unitary group |
| 8 | |
| 9 | We study the unitary group of the form `T.splitGram` over a commutative ring with involution. This |
| 10 | form has `𝔰.ϱ` hyperbolic planes and a middle block `T`. We define the floor groups `H_l`, `𝒩_l`, |
| 11 | `Q_l` and Weyl elements exchanging `e_a` and `e*_a`. These serve a descent through the hyperbolic |
| 12 | pairs, one pair at a time. We then study the Bessel subgroup `S` (`New.Shape.Form.besselS`), |
| 13 | generated by the block unitriangular isometries `𝖴` (`New.Shape.Form.besselU`) and the isometries |
| 14 | `H` (`New.Shape.Form.besselH`) that fix all basis vectors outside `κ`. |
| 15 | |
| 16 | ## Main definitions and results |
| 17 | |
| 18 | * `New.Shape.Form.floorGroup`: the fixer `H_l` of the floors below `l`. It decreases from `⊤` at |
| 19 | `l = 0` to `⊥` for `l ≥ ϱ + 2`. |
| 20 | * `New.Shape.Form.unipotentBelow`, `New.Floors.FloorGroups.floorUnipotent`, |
| 21 | `New.Shape.Form.partialUnitriangularGroup`: the groups `𝒩_{<l}`, `𝒩_l = H_l ∩ 𝒩_{<l+1}` and `Q_l`. |
| 22 | The first increases to `New.Shape.Form.besselU` and the third decreases to it. |
| 23 | * `New.Floors.FloorGroups.leadingMinor_frameGram_partialUnitriangularGroup_mul`, |
| 24 | `New.Filling.leadingMinor_frameGram_besselU_mul`: the leading minors of order at most `l` of the |
| 25 | matrix of the products `h(f_a, γ f_b)` depend only on the double coset of `γ` under `Q_l`, and all |
| 26 | of them only on the double coset under `𝖴`. |
| 27 | * `New.besselS_le_normalizer_besselU`: `S` normalises `𝖴`. |
| 28 | * `New.div_mem_unitaryLevel_of_besselU_mul`: the `h` in `H` with `h y` in `𝖴 K`, for a principal |
| 29 | congruence subgroup `K`, lie in one right coset of `H ∩ K`. |
| 30 | * `New.simpleRootSum`, `New.simpleRootSum_mul`, `New.simpleRootSum_eq_zero_of_mem_besselH`: the sum |
| 31 | of the entries just above the diagonal on the frame is additive on `S` and zero on `H`. |
| 32 | |
| 33 | Notions from other files: |
| 34 | * `New.Shape.Form.splitGram`: the Gram matrix `J` of ϱ hyperbolic planes and a middle space with |
| 35 | Gram matrix `T`: identity blocks pair the first and last ϱ indices, `T` is the middle block, all |
| 36 | else is zero. `T.G` is its unitary group. |
| 37 | * `New.Shape.BesselIndex`: the basis indices. `inl a` is `e_a`, `eStar a` = `inr (inr a)` is `e*_a`; |
| 38 | the middle indices are those in `κ` and one more, `z`. `𝔰.n` is `ϱ + 1`. |
| 39 | * `New.BesselIndex.level`: `a` at `e_a`, `ϱ` on the middle block, `2ϱ - a` at `e*_a`. |
| 40 | * `New.Shape.besselFrame`: the frame `f = (e_0, …, e_{ϱ-1}, z)`; `𝔰.top` is the position of `z`. |
| 41 | * `New.Shape.Form.besselU`: the isometries that are block upper unitriangular for the levels. |
| 42 | |
| 43 | ## Relation to the literature |
| 44 | |
| 45 | The file belongs to two known theories: isotropic flags in unitary groups (see |
| 46 | `Lib.DiscreteSeries.Bruhat.ComplexPlace`), and Poincaré series along a Bessel subgroup with their |
| 47 | unfolding, for which it supplies the groups. Sources: A. Borel, Introduction to automorphic forms, |
| 48 | Proc. Sympos. Pure Math. 9 (1966) (Poincaré series); V. Platonov, A. Rapinchuk, Algebraic groups and |
| 49 | number theory (1994) §7.1; for the set-up, W. T. Gan, B. Gross, D. Prasad, Astérisque 346 (2012). |
| 50 | -/ |
| 51 | |
| 52 | @[expose] public section |
| 53 | |
| 54 | noncomputable section |
| 55 | |
| 56 | /-! |
| 57 | ## Floor groups and Weyl elements over a ring with involution |
| 58 | |
| 59 | `New.Floors.FloorGroups.floorOf` is the floor of a basis index: `a` on the pair `e_a, e*_a`, `ϱ` on |
| 60 | `z`, and `ϱ + 1` on `κ`. |
| 61 | -/ |
| 62 | |
| 63 | namespace New.Floors.FloorGroups |
| 64 | |
| 65 | open Matrix BesselIndex Sum Subgroup Ring Fintype |
| 66 | |
| 67 | variable {A : Type} [CommRing A] [StarRing A] {𝔰 : Shape} {T : 𝔰.Form A} (l : ℕ) {a : Fin 𝔰.ϱ} |
| 68 | |
| 69 | /-! ### Floors, the opposite basis vector and the Weyl elements -/ |
| 70 | |
| 71 | /-- The floor of a basis index: `a` for both members `inl a` and `inr (inr a)` of the hyperbolic |
| 72 | pair number `a < ϱ`, `ϱ` for the last vector `z = inr (inl (inr ()))` of the middle block, and |
| 73 | `ϱ + 1` for the middle indices `inr (inl (inl k))`, `k : κ`. -/ |
| 74 | def floorOf : 𝔰.BesselIndex → ℕ |
| 75 | | inl a | eStar a => a |
| 76 | | inr (inl (inl _)) => 𝔰.n |
| 77 | | _ => 𝔰.ϱ |
| 78 | |
| 79 | /-- The involution of the basis indices that exchanges `inl a` and `inr (inr a)`, the two members |
| 80 | of a hyperbolic pair, and fixes each index `inr (inl m)` of the middle block. -/ |
| 81 | def oppositeIndex : 𝔰.BesselIndex → 𝔰.BesselIndex |
| 82 | | inl a => eStar a |
| 83 | | eStar a => inl a |
| 84 | | i => i |
| 85 | |
| 86 | attribute [simp] floorOf.eq_1 floorOf.eq_2 floorOf.eq_3 floorOf.eq_4 oppositeIndex.eq_1 |
| 87 | oppositeIndex.eq_2 oppositeIndex.eq_3 |
| 88 | |
| 89 | /-- For `b ≤ ϱ` and an isometry `g`, the vector `g⁻¹ f_b`, where `f = (e_0, …, e_{ϱ-1}, z)` is the |
| 90 | frame `𝔰.besselFrame`. -/ |
| 91 | def orbitPoint (b : Fin (𝔰.ϱ + 1)) (g : T.G) : 𝔰.BesselIndex → A := |
| 92 | g⁻¹.val.val *ᵥ Pi.single (𝔰.besselFrame b) 1 |
| 93 | |
| 94 | /-- Right multiplication by `h` acts on the orbit point by the inverse of `h`. -/ |
| 95 | lemma orbitPoint_mul (b : Fin (𝔰.ϱ + 1)) (g h : T.G) : |
| 96 | orbitPoint b (g * h) = h⁻¹.val.val *ᵥ orbitPoint b g := by |
| 97 | rw [orbitPoint, orbitPoint, mulVec_mulVec, _root_.mul_inv_rev] |
| 98 | rfl |
| 99 | |
| 100 | /-- Floor against level: an index is either in a hyperbolic pair (floor below `ϱ`, and level equal |
| 101 | to the floor or to `2ϱ` minus it) or in the middle block (level `ϱ`, floor `ϱ` or `ϱ + 1`). -/ |
| 102 | @[grind .] |
| 103 | lemma floorOf_level_cases (i : 𝔰.BesselIndex) : |
| 104 | (floorOf i = level i ∨ level i + floorOf i = 2 * 𝔰.ϱ) ∧ floorOf i < 𝔰.ϱ ∨ |
| 105 | level i = 𝔰.ϱ ∧ 𝔰.ϱ ≤ floorOf i ∧ floorOf i ≤ 𝔰.n := by |
| 106 | obtain a | (k | u) | a := i |
| 107 | · simp only [floorOf, level, elim_inl, true_or, Fin.is_lt, and_self] |
| 108 | · simp only [floorOf, level, elim_inr, elim_inl, Nat.add_eq_left, one_ne_zero, |
| 109 | false_or, add_lt_iff_neg_left, not_lt_zero, and_false, le_add_iff_nonneg_right, |
| 110 | zero_le, Std.le_refl, and_self, or_true] |
| 111 | · simp only [floorOf, level, elim_inr, elim_inl, true_or, lt_self_iff_false, |
| 112 | and_false, Std.le_refl, le_add_iff_nonneg_right, zero_le, and_self, or_true] |
| 113 | · simp only [floorOf, level, elim_inr, Fin.is_lt, and_true]; lia |
| 114 | |
| 115 | /-- The involution `oppositeIndex` applied twice is the identity. -/ |
| 116 | lemma oppositeIndex_oppositeIndex (i : 𝔰.BesselIndex) : oppositeIndex (oppositeIndex i) = i := by |
| 117 | obtain a | m | a := i <;> rfl |
| 118 | |
| 119 | /-- An index and its opposite lie on the same floor. -/ |
| 120 | lemma floorOf_oppositeIndex (i : 𝔰.BesselIndex) : floorOf (oppositeIndex i) = floorOf i := by |
| 121 | obtain a | m | a := i <;> simp only [oppositeIndex, floorOf] |
| 122 | |
| 123 | /-- `oppositeIndex` reflects the level in `ϱ`. -/ |
| 124 | lemma level_oppositeIndex_add_level (i : 𝔰.BesselIndex) : |
| 125 | level (oppositeIndex i) + level i = 2 * 𝔰.ϱ := by |
| 126 | obtain a | m | a := i |
| 127 | · change 2 * 𝔰.ϱ - a + a = 2 * 𝔰.ϱ |
| 128 | lia |
| 129 | · exact (two_mul 𝔰.ϱ).symm |
| 130 | · change a + (2 * 𝔰.ϱ - a) = 2 * 𝔰.ϱ |
| 131 | lia |
| 132 | |
| 133 | /-- `oppositeIndex` is an involution of the basis indices that keeps the floor `floorOf` and |
| 134 | reflects the level in `ϱ`. -/ |
| 135 | lemma oppositeIndex_involutive_and_floorOf_level (i : 𝔰.BesselIndex) : |
| 136 | oppositeIndex (oppositeIndex i) = i ∧ |
| 137 | floorOf (oppositeIndex i) = floorOf i ∧ |
| 138 | level (oppositeIndex i) + level i = 2 * 𝔰.ϱ := |
| 139 | ⟨oppositeIndex_oppositeIndex i, floorOf_oppositeIndex i, level_oppositeIndex_add_level i⟩ |
| 140 | |
| 141 | omit [StarRing A] in |
| 142 | /-- In the rows and columns of the hyperbolic pairs the Gram matrix is the permutation matrix of |
| 143 | `oppositeIndex`. -/ |
| 144 | @[simp] |
| 145 | lemma splitGram_eq_ite_oppositeIndex (i j : 𝔰.BesselIndex) |
| 146 | (h_pair : floorOf i < 𝔰.ϱ ∨ floorOf j < 𝔰.ϱ) : |
| 147 | T.splitGram i j = if oppositeIndex i = j then 1 else 0 := by |
| 148 | revert i j |
| 149 | simp [splitGram, Sum.forall, floorOf, oppositeIndex, Matrix.one_apply] |
| 150 | |
| 151 | open scoped Classical in |
| 152 | /-- Write `e_a`, `e*_a` for the basis vectors `inl a`, `inr (inr a)`. On each floor `a < ϱ` where |
| 153 | `P a` holds and `c = p a` is a unit, this isometry sends `e_a` to `c e*_a` and `e*_a` to |
| 154 | `(star c)⁻¹ e_a`; it fixes all other basis vectors. -/ |
| 155 | def weylOn (P : ℕ → Prop) (p : ℕ → A) : T.G := |
| 156 | let M (p : ℕ → A) : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A := |
| 157 | of fun i j ↦ |
| 158 | let swapped : Prop := P (floorOf j) ∧ floorOf j < 𝔰.ϱ ∧ IsUnit (p (floorOf j)) |
| 159 | if i = (if swapped then oppositeIndex j else j) then |
| 160 | if swapped then (if level j < 𝔰.ϱ then p (floorOf j) else (star (p (floorOf j)))⁻¹ʳ) else 1 |
| 161 | else |
| 162 | 0 |
| 163 | have hM (q : ℕ → A) : M q * M (star q) = 1 := by |
| 164 | ext |
| 165 | simp only [Pi.star_apply, isUnit_star, star_star, Matrix.mul_apply, of_apply, mul_ite, |
| 166 | ite_mul, one_mul, zero_mul, mul_one, mul_zero, Finset.sum_ite_eq', Finset.mem_univ, |
| 167 | ↓reduceIte, Matrix.one_apply, M] |
| 168 | grind [oppositeIndex_involutive_and_floorOf_level, inverse_mul_cancel] |
| 169 | { val := ⟨M p, M (star p), hM p, by simpa only [star_star] using hM (star p)⟩ |
| 170 | property := by |
| 171 | rw [mem_unitaryGroupOf_iff] |
| 172 | ext |
| 173 | simp only [inverse_star, Matrix.mul_apply, star_apply, of_apply, apply_ite star, |
| 174 | star_star, star_one, star_zero, ite_mul, one_mul, zero_mul, Finset.sum_ite_eq', |
| 175 | Finset.mem_univ, ↓reduceIte, mul_ite, mul_one, mul_zero, M] |
| 176 | grind [splitGram_eq_ite_oppositeIndex, oppositeIndex_involutive_and_floorOf_level, |
| 177 | inverse_mul_cancel] } |
| 178 | |
| 179 | /-- The Weyl element `w_p` of the first `l` hyperbolic pairs: `e_a ↦ p_a e*_a` and |
| 180 | `e*_a ↦ e_a / p̄_a` on the pairs `a < l`, fixing the other basis vectors. -/ |
| 181 | def weylElem (p : ℕ → Aˣ) : T.G := weylOn (· < l) (p ·) |
| 182 | |
| 183 | /-- The Weyl element `w_l(c)` of floor `l`: `e_l ↦ c e*_l` and `e*_l ↦ e_l / c̄`, fixing the other |
| 184 | basis vectors; it is `1` if `l ≥ ϱ` or `c` is not a unit. -/ |
| 185 | def floorWeyl (c : A) : T.G := weylOn (· = l) fun _ ↦ c |
| 186 | |
| 187 | /-- The inverse, in the sense of `Ring.inverse`, of the conjugate of a unit `u` is the conjugate of |
| 188 | `u⁻¹`. -/ |
| 189 | @[simp↓] |
| 190 | lemma inverse_star_unit (u : Aˣ) : (star ↑u)⁻¹ʳ = star u⁻¹.val := |
| 191 | Ring.inverse_unit ⟨star u.val, star u⁻¹.val, |
| 192 | by rw [← star_mul, u.inv_mul, star_one], by rw [← star_mul, u.mul_inv, star_one]⟩ |
| 193 | |
| 194 | /-! ### The subgroups and their entries -/ |
| 195 | |
| 196 | /-- The group `H_l` of the isometries that fix every basis vector of floor below `l`. -/ |
| 197 | def _root_.New.Shape.Form.floorGroup : Subgroup T.G := |
| 198 | (agreeWithOneOn (fun _ j : 𝔰.BesselIndex ↦ floorOf j < l) A |
| 199 | fun _ _ _ hj ↦ Or.inr hj).subgroupOf T.G |
| 200 | |
| 201 | /-- The group `𝒩_{<l}` of the isometries that are unitriangular when the basis vectors of floor |
| 202 | below `l` keep their level and all others are given the middle level `𝔰.ϱ`. -/ |
| 203 | def _root_.New.Shape.Form.unipotentBelow : Subgroup T.G := |
| 204 | (unitriangular (fun i : 𝔰.BesselIndex ↦ if floorOf i < l then level i else 𝔰.ϱ) A).subgroupOf T.G |
| 205 | |
| 206 | /-- The group `𝒩_l = H_l ∩ 𝒩_{<l+1}`: the elements of `unipotentBelow (l + 1)` that fix every |
| 207 | basis vector of floor below `l`. -/ |
| 208 | def floorUnipotent : Subgroup T.G := T.floorGroup l ⊓ T.unipotentBelow (l + 1) |
| 209 | |
| 210 | /-- The group `Q_l`. Its elements agree with the identity matrix at every entry `(i, j)` with |
| 211 | `level j ≤ level i` whose column `j` has floor and level both below `l`; when `𝔰.n < l` they do |
| 212 | so at every entry with `level j ≤ level i`. -/ |
| 213 | def _root_.New.Shape.Form.partialUnitriangularGroup : Subgroup T.G := |
| 214 | (agreeWithOneOn |
| 215 | (fun i j : 𝔰.BesselIndex ↦ level j ≤ level i ∧ (floorOf j < l ∧ level j < l ∨ 𝔰.n < l)) |
| 216 | A <| by |
| 217 | -- Given a prescribed entry `(i, j)` and any `k`, the entry `(k, j)` is prescribed if |
| 218 | -- `level j ≤ level k`, and `(i, k)` is otherwise, as `floorOf k ≤ level k + 1 ≤ level j`. |
| 219 | intro i k j ⟨hji, hj_low⟩ |
| 220 | obtain hjk | hkj := le_or_gt (level j) (level k) |
| 221 | · exact .inr ⟨hjk, hj_low⟩ |
| 222 | · have hk_floor : floorOf k ≤ level k + 1 := by |
| 223 | have := floorOf_level_cases k |
| 224 | lia |
| 225 | exact .inl ⟨hkj.le.trans hji, by lia⟩).subgroupOf T.G |
| 226 | |
| 227 | export Shape.Form (floorGroup unipotentBelow partialUnitriangularGroup) |
| 228 | |
| 229 | variable {l} {g s σ τ : T.G} {b : Fin 𝔰.n} {e v : 𝔰.BesselIndex → A} {P : ℕ → Prop} {p : ℕ → Aˣ} |
| 230 | {j : ℕ} |
| 231 | |
| 232 | /-- An isometry is in the fixer `floorGroup l = H_l` if and only if it agrees with `1` in every |
| 233 | column of floor below `l`. -/ |
| 234 | lemma mem_floorGroup : |
| 235 | g ∈ floorGroup l ↔ |
| 236 | ∀ i j : 𝔰.BesselIndex, floorOf j < l → |
| 237 | g.val i j = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) i j := |
| 238 | Iff.rfl |
| 239 | |
| 240 | /-- Two rows have the same dot product with a column if they agree wherever it is nonzero. -/ |
| 241 | private lemma dotProduct_eq_on_support {ι : Type*} [Fintype ι] {R : Type*} [Semiring R] |
| 242 | {u v w : ι → R} (h : ∀ k, w k ≠ 0 → u k = v k) : u ⬝ᵥ w = v ⬝ᵥ w := by |
| 243 | apply Finset.sum_congr rfl |
| 244 | intro k _ |
| 245 | by_cases hk : w k = 0 <;> simp [hk, h] |
| 246 | |
| 247 | omit [StarRing A] in |
| 248 | /-- At an index of a hyperbolic pair, the coordinate of `J e`, where `J = T.splitGram`, is the |
| 249 | coordinate of `e` at the other index of the pair. -/ |
| 250 | lemma splitGram_mulVec_apply (i : 𝔰.BesselIndex) (hi : floorOf i < 𝔰.ϱ) : |
| 251 | (T.splitGram *ᵥ e) i = e (oppositeIndex i) := by |
| 252 | revert i |
| 253 | simp only [splitGram, fromBlocks_mulVec, zero_mulVec, fromCols_mulVec, one_mulVec, |
| 254 | zero_add, fromRows_mulVec, add_zero, Sum.forall, floorOf, Fin.is_lt, elim_inl, |
| 255 | Function.comp_apply, oppositeIndex, imp_self, implies_true, elim_inr, Pi.add_apply, |
| 256 | Pi.zero_apply, add_lt_iff_neg_left, not_lt_zero, IsEmpty.forall_iff, |
| 257 | lt_self_iff_false, and_self] |
| 258 | |
| 259 | /-- Read row `i` of `J g = (g⁻¹)ᴴ J`. On a hyperbolic pair the left side picks out the opposite |
| 260 | row of `g`. On the right, only the nonzero entries of the Gram column contribute. -/ |
| 261 | private lemma row_eq_one_of_inv_col (i k : 𝔰.BesselIndex) (hi : floorOf i < 𝔰.ϱ) |
| 262 | (h : ∀ x, T.splitGram x k ≠ 0 → g⁻¹.val x i = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) x i) : |
| 263 | g.val (oppositeIndex i) k = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) (oppositeIndex i) k := by |
| 264 | have row (M : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) : |
| 265 | (T.splitGram * M) i k = M (oppositeIndex i) k := |
| 266 | splitGram_mulVec_apply (e := M.col k) i hi |
| 267 | have h_form : T.splitGram * g.val.val = g⁻¹.val.valᴴ * T.splitGram := by |
| 268 | simpa only [InvMemClass.coe_inv, coe_units_inv, inv_inv] using U.form_mul_inv_eq g⁻¹ |
| 269 | rw [← row g.val.val, h_form] |
| 270 | trans ((1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A)ᴴ * T.splitGram) i k |
| 271 | · exact dotProduct_eq_on_support fun x hx ↦ congrArg star (h x hx) |
| 272 | · simpa using row 1 |
| 273 | |
| 274 | /-- An element of `H_l = floorGroup l` agrees with `1` in the rows of floor below `l` that belong to |
| 275 | a hyperbolic pair. -/ |
| 276 | lemma floorGroup_apply_row (hg : g ∈ floorGroup l) (i j : 𝔰.BesselIndex) (hi : floorOf i < l) |
| 277 | (hi_pair : floorOf i < 𝔰.ϱ) : |
| 278 | g.val i j = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) i j := by |
| 279 | -- The column `oppositeIndex i` of `g⁻¹` is that of `1`, so the identity gives row `i` of `g`. |
| 280 | rw [← oppositeIndex_oppositeIndex i] |
| 281 | apply row_eq_one_of_inv_col _ _ (by rwa [floorOf_oppositeIndex]) |
| 282 | exact fun x _ ↦ mem_floorGroup.1 (inv_mem hg) x _ (by rwa [floorOf_oppositeIndex]) |
| 283 | |
| 284 | /-- An element of `H_l = floorGroup l` agrees with `1` in the rows of floor below both `l` and |
| 285 | `𝔰.ϱ`, and in the columns of floor below `l`. -/ |
| 286 | lemma apply_eq_one_apply_of_mem_floorGroup (hg : g ∈ floorGroup l) (i j : 𝔰.BesselIndex) |
| 287 | (h_floor : floorOf i < l ∧ floorOf i < 𝔰.ϱ ∨ floorOf j < l) : |
| 288 | g.val i j = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) i j := |
| 289 | h_floor.elim (fun ⟨hi, hi_pair⟩ ↦ floorGroup_apply_row hg i j hi hi_pair) |
| 290 | (mem_floorGroup.1 hg i j) |
| 291 | |
| 292 | /-- An isometry is in `unipotentBelow l = 𝒩_{<l}` if and only if it agrees with `1` at every entry |
| 293 | `(i, j)` where the level of `j` is at most that of `i`, the floors from `l` on having level `ϱ`. -/ |
| 294 | lemma mem_unipotentBelow : |
| 295 | g ∈ unipotentBelow l ↔ |
| 296 | ∀ i j : 𝔰.BesselIndex, |
| 297 | (if floorOf j < l then level j else 𝔰.ϱ) ≤ (if floorOf i < l then level i else 𝔰.ϱ) → |
| 298 | g.val i j = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) i j := |
| 299 | Iff.rfl |
| 300 | |
| 301 | /-- An isometry is in `partialUnitriangularGroup l = Q_l` if and only if it agrees with `1` at every |
| 302 | entry `(i, j)` with `level j ≤ level i` whose column has floor and level below `l` (or with any |
| 303 | column, if `ϱ + 1 < l`). -/ |
| 304 | lemma mem_partialUnitriangularGroup : |
| 305 | g ∈ partialUnitriangularGroup l ↔ |
| 306 | ∀ i j : 𝔰.BesselIndex, level j ≤ level i → floorOf j < l ∧ level j < l ∨ 𝔰.n < l → |
| 307 | g.val i j = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) i j := |
| 308 | forall₂_congr fun _ _ ↦ and_imp |
| 309 | |
| 310 | /-- The floor of the frame vector number `b` is `b`. -/ |
| 311 | lemma floorOf_besselFrame : floorOf (𝔰.besselFrame b) = b := by |
| 312 | induction b using Fin.lastCases <;> simp [floorOf] |
| 313 | |
| 314 | attribute [grind .] mem_floorGroup mem_unipotentBelow mem_partialUnitriangularGroup |
| 315 | floorOf_besselFrame |
| 316 | level_besselFrame apply_eq_one_apply_of_mem_floorGroup |
| 317 | |
| 318 | /-- The vector `g⁻¹ f_b` is `e` if and only if `g` sends `e` to the frame vector `f_b`. -/ |
| 319 | lemma orbitPoint_eq_iff : orbitPoint b g = e ↔ g *ᵥ e = Pi.single (𝔰.besselFrame b) 1 := |
| 320 | -- Matrices act on vectors by `*ᵥ`, so this is `g⁻¹ • f_b = e ↔ g • e = f_b`. |
| 321 | (inv_smul_eq_iff (g := g)).trans eq_comm |
| 322 | |
| 323 | /-- The frame vector `b` is the only basis vector of floor `b` and level at most `b`. -/ |
| 324 | lemma eq_besselFrame_of_floorOf_eq {i : 𝔰.BesselIndex} (h_floor : floorOf i = b) |
| 325 | (h_level : level i ≤ b) : i = 𝔰.besselFrame b := by |
| 326 | revert i |
| 327 | -- In each case for `b`, compare floor and level of each kind of index with those of `f_b`. |
| 328 | induction b using Fin.lastCases |
| 329 | · simp only [Fin.val_last, level, besselFrame_top, Sum.forall, floorOf, elim_inl, |
| 330 | Fin.is_le', reduceCtorEq, imp_false, not_true_eq_false, elim_inr, inr.injEq, |
| 331 | Std.le_refl, inl.injEq, forall_const, Nat.add_eq_left, one_ne_zero, |
| 332 | tsub_le_iff_right, not_le] |
| 333 | lia |
| 334 | · simp only [Fin.val_castSucc, level, besselFrame_castSucc, Sum.forall, floorOf, elim_inl, |
| 335 | Fin.val_fin_le, inl.injEq, elim_inr, reduceCtorEq, imp_false, not_le, Fin.is_lt, |
| 336 | implies_true, true_and] |
| 337 | lia |
| 338 | |
| 339 | /-- An element `s` of `H_b = floorGroup b` lies in `Q_{b+1} = partialUnitriangularGroup (b + 1)` |
| 340 | exactly when it fixes the frame vector `f_b = 𝔰.besselFrame b`, that is, when |
| 341 | `orbitPoint b s = s⁻¹ f_b` equals `f_b`. -/ |
| 342 | lemma mem_partialUnitriangularGroup_succ_iff (hs : s ∈ floorGroup b) : |
| 343 | s ∈ partialUnitriangularGroup (b + 1) ↔ orbitPoint b s = Pi.single (𝔰.besselFrame b) 1 := by |
| 344 | have h_column : orbitPoint b s = Pi.single (𝔰.besselFrame b) 1 ↔ |
| 345 | ∀ i : 𝔰.BesselIndex, s.val i (𝔰.besselFrame b) = |
| 346 | (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) i (𝔰.besselFrame b) := by |
| 347 | rw [orbitPoint_eq_iff] |
| 348 | simp only [mulVec_single, MulOpposite.op_one, one_smul, funext_iff, col_apply, |
| 349 | Pi.single_apply, ← Matrix.one_apply, Sum.forall] |
| 350 | rw [h_column, mem_partialUnitriangularGroup] |
| 351 | refine ⟨fun h_unitri i ↦ ?_, fun h_frame i j _ hj ↦ ?_⟩ |
| 352 | · by_cases hi : level (𝔰.besselFrame b) ≤ level i |
| 353 | · exact h_unitri i _ hi (.inl (by simp only [floorOf_besselFrame, |
| 354 | lt_add_iff_pos_right, Order.lt_one_iff, level_besselFrame, and_self])) |
| 355 | · -- A row of level below `b` has floor below `b`, so there `s` agrees with `1`. |
| 356 | have hi_lt : level i < b := not_le.1 (by rwa [level_besselFrame] at hi) |
| 357 | have h_cases := floorOf_level_cases i |
| 358 | obtain ⟨h_low, h_pair⟩ : floorOf i < b ∧ floorOf i < 𝔰.ϱ := ⟨by lia, by lia⟩ |
| 359 | exact floorGroup_apply_row hs i _ h_low h_pair |
| 360 | · by_cases h_floor : floorOf j < b |
| 361 | · exact mem_floorGroup.1 hs i j h_floor |
| 362 | · -- The only other column with a condition is that of the frame vector. |
| 363 | obtain ⟨h_floor_eq, h_level⟩ : floorOf j = b ∧ level j ≤ b := by lia |
| 364 | rw [eq_besselFrame_of_floorOf_eq h_floor_eq h_level] |
| 365 | exact h_frame i |
| 366 | |
| 367 | /-- Two elements `σ`, `τ` of `H_b = floorGroup b` that send the frame vector `f_b` to the same |
| 368 | vector (`orbitPoint b σ⁻¹` is `σ f_b`) differ on the right by an element of `Q_{b+1} ∩ H_b`. -/ |
| 369 | lemma inv_mul_mem_of_orbitPoint_eq (hσ : σ ∈ floorGroup b) (hτ : τ ∈ floorGroup b) |
| 370 | (h_orbit : orbitPoint b σ⁻¹ = orbitPoint b τ⁻¹) : |
| 371 | σ⁻¹ * τ ∈ partialUnitriangularGroup (b + 1) ⊓ floorGroup b := by |
| 372 | have h_mem : σ⁻¹ * τ ∈ floorGroup b := mul_mem (inv_mem hσ) hτ |
| 373 | refine mem_inf.2 ⟨(mem_partialUnitriangularGroup_succ_iff h_mem).2 ?_, h_mem⟩ |
| 374 | rw [orbitPoint_mul, h_orbit, ← orbitPoint_mul, inv_mul_cancel] |
| 375 | ext i |
| 376 | simp [orbitPoint, Matrix.one_apply, Pi.single_apply] |
| 377 | |
| 378 | /-- The unitriangular group `𝖴 = besselU` lies in every `Q_l = partialUnitriangularGroup l`. -/ |
| 379 | @[simp] lemma _root_.New.mem_partialUnitriangularGroup_of_mem_besselU (hg : g ∈ besselU) : |
| 380 | g ∈ partialUnitriangularGroup l := |
| 381 | mem_partialUnitriangularGroup.2 fun i j h_level _ ↦ mem_besselU.1 hg i j h_level |
| 382 | |
| 383 | /-- For `l ≥ ϱ` the group `𝒩_{<l} = unipotentBelow l` is the whole unitriangular group `𝖴`. -/ |
| 384 | lemma unipotentBelow_eq_besselU (hl : 𝔰.ϱ ≤ l) : unipotentBelow l = T.besselU := by |
| 385 | ext g |
| 386 | rw [mem_unipotentBelow, mem_besselU] |
| 387 | refine ⟨fun h i j hij ↦ h i j ?_, fun h i j hij ↦ h i j ?_⟩ |
| 388 | · have := floorOf_level_cases i; have := floorOf_level_cases j; split_ifs <;> lia |
| 389 | · have := floorOf_level_cases i; have := floorOf_level_cases j; split_ifs at hij <;> lia |
| 390 | |
| 391 | /-! ### Inclusions, monotonicity and extreme cases -/ |
| 392 | |
| 393 | /-- Every `𝒩_{<l} = unipotentBelow l` lies in the unitriangular group `𝖴`. -/ |
| 394 | lemma unipotentBelow_le_besselU : unipotentBelow l ≤ T.besselU := by |
| 395 | intro g hg |
| 396 | rw [mem_besselU] |
| 397 | intro i j hij |
| 398 | refine mem_unipotentBelow.1 hg i j ?_ |
| 399 | have := floorOf_level_cases i; have := floorOf_level_cases j; split_ifs <;> lia |
| 400 | |
| 401 | /-- Every `𝒩_{<j} = unipotentBelow j` lies in every `Q_l = partialUnitriangularGroup l`. -/ |
| 402 | lemma unipotentBelow_le_partialUnitriangularGroup : |
| 403 | T.unipotentBelow j ≤ partialUnitriangularGroup l := |
| 404 | fun _ hg ↦ mem_partialUnitriangularGroup_of_mem_besselU (unipotentBelow_le_besselU hg) |
| 405 | |
| 406 | /-- The groups `𝒩_{<j} = unipotentBelow j` increase with `j`. -/ |
| 407 | lemma unipotentBelow_le_succ : T.unipotentBelow j ≤ unipotentBelow (j + 1) := |
| 408 | fun _ hg ↦ mem_unipotentBelow.2 fun i k h_level ↦ mem_unipotentBelow.1 hg i k <| by |
| 409 | have := floorOf_level_cases i |
| 410 | have := floorOf_level_cases k |
| 411 | split_ifs at h_level ⊢ <;> lia |
| 412 | |
| 413 | /-- The groups `Q_l = partialUnitriangularGroup l` decrease as `l` grows. -/ |
| 414 | lemma partialUnitriangularGroup_anti : Antitone T.partialUnitriangularGroup := by |
| 415 | intro a b hab g hg |
| 416 | rw [mem_partialUnitriangularGroup] at hg ⊢ |
| 417 | exact fun i j hji hj ↦ hg i j hji |
| 418 | (hj.imp (fun ⟨h1, h2⟩ ↦ ⟨h1.trans_le hab, h2.trans_le hab⟩) (fun h ↦ h.trans_le hab)) |
| 419 | |
| 420 | /-- The fixers `H_l = floorGroup l` decrease as `l` grows. -/ |
| 421 | lemma floorGroup_anti : Antitone T.floorGroup := by |
| 422 | intro a b hab g hg |
| 423 | rw [mem_floorGroup] at hg ⊢ |
| 424 | exact fun i j hj ↦ hg i j (hj.trans_le hab) |
| 425 | |
| 426 | /-- The fixer `H_0` is the whole group. -/ |
| 427 | @[simp] |
| 428 | lemma floorGroup_zero : T.floorGroup 0 = ⊤ := |
| 429 | eq_top_iff.2 fun _ _ ↦ mem_floorGroup.2 fun _ _ h ↦ absurd h (Nat.not_lt_zero _) |
| 430 | |
| 431 | /-- The fixer `H_l` is trivial for `l ≥ ϱ + 2`, as every floor is at most `ϱ + 1`. -/ |
| 432 | lemma floorGroup_eq_bot (hl : 𝔰.ϱ + 2 ≤ l) : T.floorGroup l = ⊥ := by |
| 433 | refine bot_unique fun g hg ↦ ?_ |
| 434 | ext i j |
| 435 | have hj := floorOf_level_cases j |
| 436 | exact mem_floorGroup.1 hg i j (by lia) |
| 437 | |
| 438 | /-- The group `Q_{ϱ+2}` is the unitriangular group `𝖴`. -/ |
| 439 | @[simp] |
| 440 | lemma partialUnitriangularGroup_add_two_eq_besselU : |
| 441 | partialUnitriangularGroup (𝔰.ϱ + 2) = T.besselU := by |
| 442 | ext g |
| 443 | rw [mem_partialUnitriangularGroup, mem_besselU] |
| 444 | exact ⟨fun h i j hij ↦ h i j hij (.inr (Nat.lt_succ_self 𝔰.n)), fun h i j hij _ ↦ h i j hij⟩ |
| 445 | |
| 446 | /-- In the fixer `H_ϱ` of all hyperbolic pairs, `Q_{ϱ+1}` cuts out the fixer `H_{ϱ+1}` of these |
| 447 | pairs and of `z`. -/ |
| 448 | lemma partialUnitriangularGroup_inf_floorGroup_last : |
| 449 | partialUnitriangularGroup (𝔰.top + 1) ⊓ floorGroup 𝔰.top = T.floorGroup 𝔰.n := by |
| 450 | ext g |
| 451 | rw [mem_inf, mem_partialUnitriangularGroup, mem_floorGroup, mem_floorGroup] |
| 452 | refine ⟨?_, fun hf ↦ ⟨fun i j hij hj ↦ hf i j ?_, fun i j hj ↦ hf i j (hj.trans |
| 453 | (Nat.lt_succ_self _))⟩⟩ |
| 454 | · rintro ⟨hp, hf⟩ i j hj |
| 455 | obtain hlt | heq := Nat.lt_or_eq_of_le (Nat.le_of_lt_succ hj) |
| 456 | · exact hf i j hlt |
| 457 | · have h_top : 𝔰.top = 𝔰.ϱ := rfl |
| 458 | have hjj := floorOf_level_cases j |
| 459 | by_cases hi : floorOf i < 𝔰.top |
| 460 | · exact floorGroup_apply_row hf i j hi (by lia) |
| 461 | · have hii := floorOf_level_cases i |
| 462 | exact hp i j (by lia) (.inl ⟨hj, by lia⟩) |
| 463 | · exact hj.elim And.left fun hn ↦ absurd hn (Nat.lt_irrefl _) |
| 464 | |
| 465 | /-- The fixer `H_l = floorGroup l` lies in `Q_l = partialUnitriangularGroup l`. -/ |
| 466 | @[simp] lemma _root_.New.mem_partialUnitriangularGroup_of_mem_floorGroup (hg : g ∈ floorGroup l) : |
| 467 | g ∈ partialUnitriangularGroup l := |
| 468 | mem_partialUnitriangularGroup.2 fun i j _ hj ↦ mem_floorGroup.1 hg i j <| by |
| 469 | have := floorOf_level_cases j |
| 470 | rcases hj with ⟨h1, h2⟩ | hn <;> lia |
| 471 | |
| 472 | /-- The fixer `H_l` of the floors below `l` meets the unitriangular group `𝒩_{<j}` of the floors |
| 473 | below `j` trivially when `j ≤ l` or `ϱ ≤ l`. -/ |
| 474 | lemma eq_one_of_mem_floorGroup_inf (hg : g ∈ floorGroup l ⊓ unipotentBelow j) |
| 475 | (hj : j ≤ l ∨ 𝔰.ϱ ≤ l) : g = 1 := by |
| 476 | obtain ⟨hg_floor, hg_unipotent⟩ := mem_inf.1 hg |
| 477 | ext row col |
| 478 | by_cases h_fixed : floorOf row < l ∧ floorOf row < 𝔰.ϱ ∨ floorOf col < l |
| 479 | · exact apply_eq_one_apply_of_mem_floorGroup hg_floor row col h_fixed |
| 480 | · -- Otherwise both indices are given the middle level `ϱ`. |
| 481 | have hrow := floorOf_level_cases row; have hcol := floorOf_level_cases col |
| 482 | exact mem_unipotentBelow.1 hg_unipotent row col (by split_ifs <;> lia) |
| 483 | |
| 484 | /-- For `s` in the step `𝒩_l = floorUnipotent l` and `a ≠ l`, the entry of `s` just above the |
| 485 | diagonal at the frame vectors `(a, a + 1)` vanishes. -/ |
| 486 | lemma floorUnipotent_superdiag_eq_zero (a : Fin 𝔰.ϱ) (hs : s ∈ floorUnipotent l) (hl : l ≠ a) : |
| 487 | s.val (𝔰.besselFrame a.castSucc) (𝔰.besselFrame a.succ) = 0 := by |
| 488 | obtain ⟨h_floor, h_unipotent⟩ := mem_inf.1 hs |
| 489 | rw [← one_apply_ne (α := A) (besselFrame_injective.ne a.castSucc_lt_succ.ne)] |
| 490 | obtain h_lt | h_gt := hl.symm.lt_or_gt |
| 491 | · -- The row `a` has floor below `l`. |
| 492 | exact apply_eq_one_apply_of_mem_floorGroup h_floor _ _ |
| 493 | (.inl (by simp only [besselFrame_castSucc, floorOf, h_lt, Fin.is_lt, and_self])) |
| 494 | · -- Both indices are given the middle level `ϱ`. |
| 495 | refine mem_unipotentBelow.1 h_unipotent _ _ ?_ |
| 496 | simp only [floorOf_besselFrame, level_besselFrame, Fin.val_castSucc, Fin.val_succ] |
| 497 | split_ifs <;> lia |
| 498 | |
| 499 | /-! ### Conjugation and projections -/ |
| 500 | |
| 501 | /-- The fixer `H_l` of the floors below `l` normalises the unitriangular group `𝒩_{<l}` of these |
| 502 | floors. -/ |
| 503 | lemma conj_mem_unipotentBelow (hσ : σ ∈ floorGroup l) (hg : g ∈ unipotentBelow l) : |
| 504 | σ * g * σ⁻¹ ∈ unipotentBelow l := |
| 505 | -- `σ⁻¹` is block triangular for the levels that define `unipotentBelow l`. |
| 506 | have h_tri : |
| 507 | σ⁻¹.val.val.BlockTriangular fun i : 𝔰.BesselIndex ↦ |
| 508 | if floorOf i < l then level i else 𝔰.ϱ := by |
| 509 | intro i j hij |
| 510 | rw [← one_apply_ne (α := A) (ne_of_apply_ne |
| 511 | (fun k : 𝔰.BesselIndex ↦ if floorOf k < l then level k else 𝔰.ϱ) hij.ne')] |
| 512 | by_cases hj : floorOf j < l |
| 513 | · exact mem_floorGroup.1 (inv_mem hσ) i j hj |
| 514 | · have hi := floorOf_level_cases i |
| 515 | dsimp only at hij |
| 516 | exact apply_eq_one_apply_of_mem_floorGroup (inv_mem hσ) i j |
| 517 | (.inl ⟨by split_ifs at hij <;> lia, by split_ifs at hij <;> lia⟩) |
| 518 | conj_mem_unitriangular (d := σ⁻¹.val) h_tri hg |
| 519 | |
| 520 | /-- The fixer `H_{l+1}` of the floors up to `l` normalises the step `𝒩_l = H_l ∩ 𝒩_{<l+1}`. -/ |
| 521 | lemma conj_mem_floorUnipotent (hg : g ∈ floorUnipotent l) (σ : T.G) |
| 522 | (hσ : σ ∈ floorGroup (l + 1)) : σ * g * σ⁻¹ ∈ floorUnipotent l := by |
| 523 | obtain ⟨hg_floor, hg_unipotent⟩ := mem_inf.1 hg |
| 524 | have hσ_floor : σ ∈ floorGroup l := floorGroup_anti l.le_succ hσ |
| 525 | exact mem_inf.2 ⟨mul_mem (mul_mem hσ_floor hg_floor) (inv_mem hσ_floor), |
| 526 | conj_mem_unipotentBelow hσ hg_unipotent⟩ |
| 527 | |
| 528 | /-- Conjugation by the fixer `H_{l+1}` of the floors up to `l` keeps the entry at the frame vectors |
| 529 | `(f_a, f_{a+1})` of an element of the unitriangular group `𝒩_{<l}` of the floors below `l`. -/ |
| 530 | lemma superdiag_conj_eq (hg : g ∈ unipotentBelow l) (hs : s ∈ floorGroup (l + 1)) : |
| 531 | (s * g * s⁻¹).val (𝔰.besselFrame a.castSucc) (𝔰.besselFrame a.succ) = |
| 532 | g.val (𝔰.besselFrame a.castSucc) (𝔰.besselFrame a.succ) := by |
| 533 | by_cases ha : a < l |
| 534 | · -- The row `a` of `s` and the column `a + 1` of `s⁻¹`, in the frame, are those of `1`. |
| 535 | have h_row (k : 𝔰.BesselIndex) : s.val (𝔰.besselFrame a.castSucc) k = |
| 536 | (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) (𝔰.besselFrame a.castSucc) k := |
| 537 | apply_eq_one_apply_of_mem_floorGroup hs _ k (.inl (by simp only [besselFrame_castSucc, |
| 538 | floorOf, Order.lt_add_one_iff, ha.le, Fin.is_lt, and_self])) |
| 539 | have h_col (k : 𝔰.BesselIndex) : s⁻¹.val k (𝔰.besselFrame a.succ) = |
| 540 | (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) k (𝔰.besselFrame a.succ) := |
| 541 | apply_eq_one_apply_of_mem_floorGroup (inv_mem hs) k _ |
| 542 | (.inr (by simp only [floorOf_besselFrame, Fin.val_succ, Order.lt_add_one_iff, |
| 543 | Order.add_one_le_iff, ha])) |
| 544 | simp only [Subgroup.coe_mul, Units.val_mul, Matrix.mul_apply, h_row, h_col] |
| 545 | simp only [Matrix.one_apply, besselFrame_castSucc, ite_mul, one_mul, zero_mul, |
| 546 | Finset.sum_ite_eq, Finset.mem_univ, ↓reduceIte, mul_ite, mul_one, mul_zero, |
| 547 | Finset.sum_ite_eq'] |
| 548 | · -- Both matrices lie in `unipotentBelow l`, where this entry vanishes. |
| 549 | have h_eq {x : T.G} (hx : x ∈ unipotentBelow l) : |
| 550 | x.val (𝔰.besselFrame a.castSucc) (𝔰.besselFrame a.succ) = |
| 551 | (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) _ _ := |
| 552 | mem_unipotentBelow.1 hx _ _ (by simp only [floorOf_besselFrame, Fin.val_castSucc, |
| 553 | Fin.val_succ, ha, ↓reduceIte, not_lt.2 (Nat.le_succ_of_le (not_lt.1 ha)), le_rfl]) |
| 554 | rw [h_eq (conj_mem_unipotentBelow (floorGroup_anti l.le_succ hs) hg), h_eq hg] |
| 555 | |
| 556 | section |
| 557 | |
| 558 | omit [StarRing A] |
| 559 | |
| 560 | /-- The column of the Gram matrix at an index `i` of a hyperbolic pair is the basis vector at the |
| 561 | other index of the pair. -/ |
| 562 | @[simp] |
| 563 | lemma splitGram_col (i : 𝔰.BesselIndex) (hi : floorOf i < 𝔰.ϱ) : |
| 564 | T.splitGram.col i = Pi.single (oppositeIndex i) 1 := by |
| 565 | revert i |
| 566 | simp only [funext_iff, col_apply, Pi.single_apply, Sum.forall, floorOf, Fin.is_lt, |
| 567 | true_or, splitGram_eq_ite_oppositeIndex, oppositeIndex, reduceCtorEq, ↓reduceIte, |
| 568 | implies_true, add_lt_iff_neg_left, not_lt_zero, or_true, inr.injEq, lt_self_iff_false, |
| 569 | and_self, inl.injEq, IsEmpty.forall_iff, and_true, true_and] |
| 570 | |
| 571 | omit [StarRing A] in |
| 572 | /-- Multiplying by the split Gram matrix reads the opposite row at a hyperbolic basis index. -/ |
| 573 | lemma splitGram_mul_apply_inl (M : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) (a : Fin 𝔰.ϱ) |
| 574 | (j : 𝔰.BesselIndex) : (T.splitGram * M) (inl a) j = M (eStar a) j := |
| 575 | splitGram_mulVec_apply (e := M.col j) (inl a) a.is_lt |
| 576 | |
| 577 | /-- At an index of a hyperbolic pair, the coordinate of `e J`, where `J = T.splitGram`, is the |
| 578 | coordinate of `e` at the other index of the pair. -/ |
| 579 | lemma vecMul_splitGram_apply (i : 𝔰.BesselIndex) (hi : floorOf i < 𝔰.ϱ) : |
| 580 | (e ᵥ* T.splitGram) i = e (oppositeIndex i) := by |
| 581 | revert i |
| 582 | simp only [splitGram, vecMul_fromBlocks, vecMul_zero, vecMul_fromRows, vecMul_one, |
| 583 | zero_add, vecMul_fromCols, add_zero, Sum.forall, floorOf, Fin.is_lt, elim_inl, |
| 584 | Function.comp_apply, oppositeIndex, imp_self, implies_true, elim_inr, Pi.add_apply, |
| 585 | Pi.zero_apply, add_lt_iff_neg_left, not_lt_zero, IsEmpty.forall_iff, |
| 586 | lt_self_iff_false, and_self] |
| 587 | |
| 588 | /-- Multiplication by `T.splitGram` on either side exchanges the two coordinates of a hyperbolic |
| 589 | pair. -/ |
| 590 | @[simp] lemma splitGram_mulVec_and_vecMul_apply (i : 𝔰.BesselIndex) (hi : floorOf i < 𝔰.ϱ) : |
| 591 | (T.splitGram *ᵥ e) i = e (oppositeIndex i) ∧ |
| 592 | (e ᵥ* T.splitGram) i = e (oppositeIndex i) := |
| 593 | ⟨splitGram_mulVec_apply i hi, vecMul_splitGram_apply i hi⟩ |
| 594 | |
| 595 | /-- The inclusion matrix of the indices of floor at least `l` extends a vector on these indices by |
| 596 | zero. -/ |
| 597 | lemma inclMatrix_val_mulVec (u : {i : 𝔰.BesselIndex // l ≤ floorOf i} → A) (i : 𝔰.BesselIndex) : |
| 598 | (inclMatrix A Subtype.val *ᵥ u) i = if h : l ≤ floorOf i then u ⟨i, h⟩ else 0 := by |
| 599 | by_cases hi : l ≤ floorOf i <;> |
| 600 | simp [inclMatrix, mulVec_eq_sum, Matrix.one_apply, Subtype.coe_eq_iff, hi, mul_ite] |
| 601 | |
| 602 | end |
| 603 | |
| 604 | /-- Let `l ≤ ϱ` and let `s` fix the basis vectors of floor below `l`. Applying the block of `s` on |
| 605 | the indices of floor at least `l` and then extending by zero is the same as extending by zero and |
| 606 | then applying `s`. -/ |
| 607 | lemma inclMatrix_mulVec_floor_block (hl : l ≤ 𝔰.ϱ) (hs : s ∈ floorGroup l) |
| 608 | (u : {i : 𝔰.BesselIndex // l ≤ floorOf i} → A) : |
| 609 | inclMatrix A Subtype.val *ᵥ |
| 610 | s.val.val.toSquareBlockProp (fun i : 𝔰.BesselIndex ↦ l ≤ floorOf i) *ᵥ u = |
| 611 | s.val.val *ᵥ inclMatrix A Subtype.val *ᵥ u := by |
| 612 | rw [mulVec_mulVec, mulVec_mulVec, mul_inclMatrix] |
| 613 | congr 1 |
| 614 | ext i j |
| 615 | -- Extend the column `j` of the block by zero; `s` vanishes in the rows of floor below `l`. |
| 616 | change (inclMatrix A Subtype.val *ᵥ |
| 617 | fun k : {i : 𝔰.BesselIndex // l ≤ floorOf i} ↦ s.val k j) i = s.val i j |
| 618 | rw [inclMatrix_val_mulVec] |
| 619 | split_ifs with hi |
| 620 | · rfl |
| 621 | · rw [apply_eq_one_apply_of_mem_floorGroup hs i j (.inl (by lia)), |
| 622 | one_apply_ne (by rintro rfl; exact hi j.property)] |
| 623 | |
| 624 | /-- For `σ` in the fixer `H_b` of the floors below `b` and `s` in `Q_{b+1}`, the column of `σ` at |
| 625 | the frame vector `f_b` vanishes in the rows of floor below `b` and is that of `σ * s` in the other |
| 626 | rows. -/ |
| 627 | lemma floorGroup_apply_besselFrame (hσ : σ ∈ floorGroup b) |
| 628 | (hs : s ∈ partialUnitriangularGroup (b + 1)) (i : 𝔰.BesselIndex) : |
| 629 | σ.val i (𝔰.besselFrame b) = |
| 630 | if floorOf i < b then 0 else (σ * s).val i (𝔰.besselFrame b) := by |
| 631 | split_ifs with hi |
| 632 | · rw [apply_eq_one_apply_of_mem_floorGroup hσ i _ (.inl ⟨hi, hi.trans_le b.is_le⟩), |
| 633 | one_apply_ne (by rintro rfl; rw [floorOf_besselFrame] at hi; exact hi.false)] |
| 634 | -- Compare `σ * 1` with `σ * s` term by term: row `i` of `σ` vanishes in the columns of floor |
| 635 | -- below `b`. At the indices where the row is nonzero, the column of `s` is that of `1`. |
| 636 | conv_lhs => rw [← Matrix.mul_one σ.val.val] |
| 637 | change _ ⬝ᵥ _ = _ ⬝ᵥ _ |
| 638 | rw [dotProduct_comm (σ.val.val i), dotProduct_comm (σ.val.val i)] |
| 639 | apply dotProduct_eq_on_support |
| 640 | intro k hk |
| 641 | have h_floor : b ≤ floorOf k := by |
| 642 | by_contra! h |
| 643 | exact hk (by rw [mem_floorGroup.1 hσ i k h, one_apply_ne (by rintro rfl; exact hi h)]) |
| 644 | symm |
| 645 | exact mem_partialUnitriangularGroup.1 hs k _ (by grind) |
| 646 | (.inl (by simp [floorOf_besselFrame, level_besselFrame])) |
| 647 | |
| 648 | /-- A column of `weylOn P p` on a floor that is exchanged has its only entry in the opposite row. -/ |
| 649 | lemma weylOn_apply_of_swapped {p : ℕ → A} (i : 𝔰.BesselIndex) {k : 𝔰.BesselIndex} |
| 650 | (hk : P (floorOf k) ∧ floorOf k < 𝔰.ϱ ∧ IsUnit (p (floorOf k))) : |
| 651 | (weylOn P p : T.G).val i k = |
| 652 | if i = oppositeIndex k then |
| 653 | if level k < 𝔰.ϱ then p (floorOf k) else (star (p (floorOf k)))⁻¹ʳ |
| 654 | else 0 := by |
| 655 | simp only [weylOn, Pi.star_apply, isUnit_star, star_star, of_apply, hk, and_self, ↓reduceIte] |
| 656 | |
| 657 | /-- A column of `weylOn P p` on a floor that is not exchanged is that of the identity matrix. -/ |
| 658 | lemma weylOn_apply_of_not_swapped {p : ℕ → A} (i : 𝔰.BesselIndex) {k : 𝔰.BesselIndex} |
| 659 | (hk : ¬(P (floorOf k) ∧ floorOf k < 𝔰.ϱ ∧ IsUnit (p (floorOf k)))) : |
| 660 | (weylOn P p : T.G).val i k = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) i k := by |
| 661 | simp only [weylOn, Pi.star_apply, isUnit_star, star_star, of_apply, hk, ↓reduceIte, |
| 662 | Matrix.one_apply] |
| 663 | |
| 664 | open scoped Classical in |
| 665 | /-- Right multiplication by a Weyl element exchanges and scales the selected columns of `M` |
| 666 | and leaves every other column in place. -/ |
| 667 | lemma mul_weylOn_apply {ι : Type*} (M : Matrix ι 𝔰.BesselIndex A) |
| 668 | (P : ℕ → Prop) (p : ℕ → A) (i : ι) (k : 𝔰.BesselIndex) : |
| 669 | (M * (weylOn P p : T.G).val.val) i k = |
| 670 | if P (floorOf k) ∧ floorOf k < 𝔰.ϱ ∧ IsUnit (p (floorOf k)) then |
| 671 | M i (oppositeIndex k) * (if level k < 𝔰.ϱ then p (floorOf k) else (star (p (floorOf k)))⁻¹ʳ) |
| 672 | else M i k := by |
| 673 | by_cases hk : P (floorOf k) ∧ floorOf k < 𝔰.ϱ ∧ IsUnit (p (floorOf k)) |
| 674 | · simp [hk, Matrix.mul_apply, weylOn_apply_of_swapped _ hk, mul_ite] |
| 675 | · simp [hk, Matrix.mul_apply, weylOn_apply_of_not_swapped _ hk, Matrix.one_apply, mul_ite] |
| 676 | |
| 677 | /-- The Weyl element of floor `l` fixes the basis vectors of floor below `l`. -/ |
| 678 | @[simp] |
| 679 | lemma floorWeyl_mem_floorGroup {c : A} : floorWeyl l c ∈ T.floorGroup l := |
| 680 | mem_floorGroup.2 fun i _ h_floor ↦ |
| 681 | weylOn_apply_of_not_swapped i fun h_swapped ↦ h_floor.ne h_swapped.left |
| 682 | |
| 683 | /-- The Weyl element `weylOn P p`, which exchanges the hyperbolic pairs on the floors satisfying |
| 684 | `P`, commutes with the fixer `H_l` of the floors below `l` if `P` holds only below `l`. -/ |
| 685 | lemma commute_weylOn {p : ℕ → A} (hP : ∀ a : ℕ, P a → a < l) (hs : s ∈ floorGroup l) : |
| 686 | Commute (weylOn P p) s := by |
| 687 | classical |
| 688 | ext i k |
| 689 | let sw (x : 𝔰.BesselIndex) : Prop := P (floorOf x) ∧ floorOf x < 𝔰.ϱ ∧ IsUnit (p (floorOf x)) |
| 690 | have h_entry (x y : 𝔰.BesselIndex) (hxy : floorOf x < l ∧ floorOf x < 𝔰.ϱ ∨ floorOf y < l) : |
| 691 | s.val x y = if x = y then 1 else 0 := apply_eq_one_apply_of_mem_floorGroup hs x y hxy |
| 692 | have h_weyl (x y : 𝔰.BesselIndex) : (weylOn P p : T.G).val x y = |
| 693 | if sw y then if x = oppositeIndex y then |
| 694 | if level y < 𝔰.ϱ then p (floorOf y) else (star (p (floorOf y)))⁻¹ʳ else 0 |
| 695 | else if x = y then 1 else 0 := by |
| 696 | by_cases hy : sw y |
| 697 | · rw [ite_eq_left hy, weylOn_apply_of_swapped x hy] |
| 698 | · rw [ite_eq_right hy, weylOn_apply_of_not_swapped x hy, Matrix.one_apply] |
| 699 | let i' : 𝔰.BesselIndex := if sw i then oppositeIndex i else i |
| 700 | let k' : 𝔰.BesselIndex := if sw k then oppositeIndex k else k |
| 701 | have h_left : (weylOn P p * s).val i k = (weylOn P p : T.G).val i i' * s.val i' k := |
| 702 | sum_eq_single i' fun j hj_ne ↦ by |
| 703 | dsimp only |
| 704 | rw [h_weyl i j] |
| 705 | by_cases hj : sw j |
| 706 | · rw [ite_eq_left hj, ite_eq_right (fun h_opp ↦ hj_ne ?_), zero_mul] |
| 707 | have h_swi : sw i := by rw [h_opp]; simp only [sw, floorOf_oppositeIndex]; exact hj |
| 708 | simp only [i', ite_eq_left h_swi, h_opp, oppositeIndex_oppositeIndex] |
| 709 | · rw [ite_eq_right hj, ite_eq_right (fun h_eq ↦ hj_ne ?_), zero_mul] |
| 710 | subst h_eq; exact (ite_eq_right hj).symm |
| 711 | have h_right : (s * weylOn P p).val i k = s.val i k' * (weylOn P p : T.G).val k' k := |
| 712 | sum_eq_single k' fun j hj_ne ↦ by |
| 713 | dsimp only |
| 714 | rw [h_weyl j k] |
| 715 | by_cases hk : sw k |
| 716 | · rw [ite_eq_left hk, ite_eq_right (fun h_opp ↦ hj_ne ?_), mul_zero] |
| 717 | simp only [k', ite_eq_left hk, h_opp] |
| 718 | · rw [ite_eq_right hk, ite_eq_right (fun h_eq ↦ hj_ne ?_), mul_zero] |
| 719 | simp only [k', ite_eq_right hk, h_eq] |
| 720 | rw [h_left, h_right] |
| 721 | by_cases hi : sw i <;> by_cases hk : sw k |
| 722 | · have hsi : floorOf i' < l ∧ floorOf i' < 𝔰.ϱ := by |
| 723 | simp only [i', ite_eq_left hi, floorOf_oppositeIndex] |
| 724 | exact ⟨hP _ hi.1, hi.2.1⟩ |
| 725 | have hsk : floorOf k < l := hP _ hk.1 |
| 726 | have hi' : i' = oppositeIndex i := ite_eq_left hi |
| 727 | have hk' : k' = oppositeIndex k := ite_eq_left hk |
| 728 | rw [h_entry i' k (.inl hsi), h_entry i k' (.inl ⟨hP _ hi.1, hi.2.1⟩)] |
| 729 | simp only [hi', hk'] |
| 730 | by_cases heq : oppositeIndex i = k |
| 731 | · subst heq; simp only [oppositeIndex_oppositeIndex, ↓reduceIte, mul_one, one_mul] |
| 732 | · have heq' : i ≠ oppositeIndex k := fun h ↦ heq (by rw [h, oppositeIndex_oppositeIndex]) |
| 733 | simp only [ite_eq_right heq, ite_eq_right heq', mul_zero, zero_mul] |
| 734 | · have hsi : floorOf i' < l ∧ floorOf i' < 𝔰.ϱ := by |
| 735 | simp only [i', ite_eq_left hi, floorOf_oppositeIndex] |
| 736 | exact ⟨hP _ hi.1, hi.2.1⟩ |
| 737 | have hswi' : sw i' := by |
| 738 | simp only [sw, i', ite_eq_left hi, floorOf_oppositeIndex]; exact hi |
| 739 | have hne1 : i' ≠ k := fun h ↦ hk (h ▸ hswi') |
| 740 | have hne2 : i ≠ k' := fun h ↦ hk (by simp only [k', ite_eq_right hk] at h; exact h ▸ hi) |
| 741 | rw [h_entry i' k (.inl hsi), h_entry i k' (.inl ⟨hP _ hi.1, hi.2.1⟩), |
| 742 | ite_eq_right hne1, ite_eq_right hne2, mul_zero, zero_mul] |
| 743 | · have hsk : floorOf k < l := hP _ hk.1 |
| 744 | have hsi : floorOf k' < l ∧ floorOf k' < 𝔰.ϱ := by |
| 745 | simp only [k', ite_eq_left hk, floorOf_oppositeIndex] |
| 746 | exact ⟨hsk, hk.2.1⟩ |
| 747 | have hne1 : i' ≠ k := fun h ↦ hi |
| 748 | (by simp only [i', ite_eq_right hi] at h; exact h.symm ▸ hk) |
| 749 | have hswk' : sw k' := by |
| 750 | simp only [sw, k', ite_eq_left hk, floorOf_oppositeIndex]; exact hk |
| 751 | have hne2 : i ≠ k' := fun h ↦ hi (h.symm ▸ hswk') |
| 752 | rw [h_entry i' k (.inr hsk), h_entry i k' (.inr hsi.1), |
| 753 | ite_eq_right hne1, ite_eq_right hne2, mul_zero, zero_mul] |
| 754 | · rw [show i' = i from ite_eq_right hi, show k' = k from ite_eq_right hk, |
| 755 | h_weyl i i, h_weyl k k, ite_eq_right hi, ite_eq_right hk, |
| 756 | ite_eq_left rfl, ite_eq_left rfl, one_mul, mul_one] |
| 757 | |
| 758 | @[simp] |
| 759 | lemma weylElem_zero : (weylElem 0 p : T.G) = 1 := by |
| 760 | ext i k |
| 761 | exact weylOn_apply_of_not_swapped i |
| 762 | (by simp only [not_lt_zero, Units.isUnit, and_true, false_and, not_false_eq_true]) |
| 763 | |
| 764 | /-- The Weyl element of length `l + 1` is the Weyl element of floor `l` with parameter `p l` times |
| 765 | the Weyl element of length `l`. -/ |
| 766 | lemma weylElem_succ : (weylElem (l + 1) p : T.G) = floorWeyl l (p l).val * weylElem l p := by |
| 767 | ext i k |
| 768 | by_cases hk : floorOf k < l ∧ floorOf k < 𝔰.ϱ |
| 769 | · -- The right factor moves `k` to the opposite index, which the left factor fixes. |
| 770 | have h_floor : floorOf (oppositeIndex k) ≠ l := by |
| 771 | rw [floorOf_oppositeIndex]; exact hk.left.ne |
| 772 | by_cases hi : i = oppositeIndex k |
| 773 | · simp only [weylElem, weylOn, Order.lt_add_one_iff, Units.isUnit, and_true, |
| 774 | ↓inverse_star_unit, Pi.star_apply, isUnit_star, star_star, inverse_invertible, |
| 775 | invOf_units, hi, of_apply, hk.left.le, hk, and_self, ↓reduceIte, floorWeyl, |
| 776 | MulMemClass.mk_mul_mk, Units.val_mul, Matrix.mul_apply, mul_ite, ite_mul, one_mul, |
| 777 | zero_mul, mul_zero, Finset.sum_ite_eq', Finset.mem_univ, h_floor, false_and] |
| 778 | · simp only [weylElem, weylOn, Order.lt_add_one_iff, Units.isUnit, and_true, |
| 779 | ↓inverse_star_unit, Pi.star_apply, isUnit_star, star_star, inverse_invertible, |
| 780 | invOf_units, of_apply, hk.left.le, hk, and_self, ↓reduceIte, hi, floorWeyl, |
| 781 | MulMemClass.mk_mul_mk, Units.val_mul, Matrix.mul_apply, mul_ite, ite_mul, one_mul, |
| 782 | zero_mul, mul_zero, Finset.sum_ite_eq', Finset.mem_univ, h_floor, false_and, |
| 783 | ite_self] |
| 784 | · -- The right factor fixes `k`; both sides move it exactly when its floor is `l < ϱ`. |
| 785 | have h_iff : floorOf k ≤ l ∧ floorOf k < 𝔰.ϱ ↔ floorOf k = l ∧ floorOf k < 𝔰.ϱ := by lia |
| 786 | by_cases hl : floorOf k = l ∧ floorOf k < 𝔰.ϱ |
| 787 | · simp only [weylElem, weylOn, ← hl.left, Order.lt_add_one_iff, Units.isUnit, and_true, |
| 788 | ↓inverse_star_unit, Pi.star_apply, isUnit_star, star_star, inverse_invertible, |
| 789 | invOf_units, of_apply, Std.le_refl, hl.right, and_self, ↓reduceIte, floorWeyl, |
| 790 | MulMemClass.mk_mul_mk, Units.val_mul, Matrix.mul_apply, lt_self_iff_false, mul_ite, |
| 791 | mul_one, mul_zero, Finset.sum_ite_eq', Finset.mem_univ] |
| 792 | · simp only [weylElem, weylOn, Order.lt_add_one_iff, Units.isUnit, and_true, |
| 793 | ↓inverse_star_unit, Pi.star_apply, isUnit_star, star_star, inverse_invertible, |
| 794 | invOf_units, of_apply, h_iff, hl, ↓reduceIte, floorWeyl, MulMemClass.mk_mul_mk, |
| 795 | Units.val_mul, Matrix.mul_apply, hk, mul_ite, mul_one, mul_zero, Finset.sum_ite_eq', |
| 796 | Finset.mem_univ] |
| 797 | |
| 798 | /-- A Weyl element depends only on the parameters of the pairs it exchanges. -/ |
| 799 | lemma weylElem_eq_of_agree {q : ℕ → Aˣ} (h : ∀ a < l, p a = q a) : |
| 800 | (weylElem l p : T.G) = weylElem l q := by |
| 801 | ext i k |
| 802 | by_cases hk : floorOf k < l <;> simp [weylElem, weylOn, *] |
| 803 | |
| 804 | /-- The Weyl element of length `l` does not depend on the parameter `p l`. -/ |
| 805 | @[simp] |
| 806 | lemma weylElem_update (c : Aˣ) : (weylElem l (Function.update p l c) : T.G) = weylElem l p := |
| 807 | weylElem_eq_of_agree fun _ ha ↦ Function.update_of_ne ha.ne .. |
| 808 | |
| 809 | /-- The Weyl element of length `l` commutes with the fixer of the floors below `l`. -/ |
| 810 | lemma commute_weylElem (hs : s ∈ floorGroup l) : Commute (weylElem l p) s := |
| 811 | commute_weylOn (fun _ ha ↦ ha) hs |
| 812 | |
| 813 | /-- Conjugating the parameters inverts the Weyl element. -/ |
| 814 | @[simp] |
| 815 | lemma weylElem_star : (weylElem l (star p) : T.G) = (weylElem l p)⁻¹ := by |
| 816 | -- In `weylOn` the inverse matrix is by definition the one with the parameters `star p`. |
| 817 | ext |
| 818 | rfl |
| 819 | |
| 820 | /-- For `s` in the fixer `H_l` of the floors below `l`, the Weyl element of length `l` can be moved |
| 821 | past `s` on the left: `w * (s * g) = s * (w * g)`. -/ |
| 822 | lemma weylElem_left_comm (hs : s ∈ floorGroup l) : |
| 823 | weylElem l p * (s * g) = s * (weylElem l p * g) := |
| 824 | (commute_weylElem hs).left_comm g |
| 825 | |
| 826 | /-- For `s` in the fixer `H_l` of the floors below `l`, the inverse of the Weyl element of length |
| 827 | `l` can be moved past `s` on the left. -/ |
| 828 | lemma weylElem_inv_left_comm (hs : s ∈ floorGroup l) : |
| 829 | (weylElem l p)⁻¹ * (s * g) = s * ((weylElem l p)⁻¹ * g) := |
| 830 | (commute_weylElem hs).inv_left.left_comm g |
| 831 | |
| 832 | /-- For `s` in the fixer `H_l` of the floors below `l`, the Weyl element `w_p` of length `l` and its |
| 833 | inverse can be moved past `s` on the left. -/ |
| 834 | lemma weylElem_mul_left_comm (hs : s ∈ floorGroup l) : |
| 835 | weylElem l p * (s * g) = s * (weylElem l p * g) ∧ |
| 836 | (weylElem l p)⁻¹ * (s * g) = s * ((weylElem l p)⁻¹ * g) := |
| 837 | ⟨weylElem_left_comm hs, weylElem_inv_left_comm hs⟩ |
| 838 | |
| 839 | /-- The diagonal entry `b` of the frame Gram matrix of `σ τ⁻¹`, that is the hermitian product of |
| 840 | `f_b` and `σ τ⁻¹ f_b`, is the hermitian product of `σ⁻¹ f_b = orbitPoint b σ` and |
| 841 | `τ⁻¹ f_b = orbitPoint b τ` (for isometries `σ τ : T.G` and `b : Fin 𝔰.n`), where `f_b` is the frame |
| 842 | vector number `b`. -/ |
| 843 | lemma frameGram_eq_form_orbitPoint : |
| 844 | T.frameGram (σ * τ⁻¹).val b b = star (orbitPoint b σ) ⬝ᵥ T.splitGram *ᵥ orbitPoint b τ := by |
| 845 | -- Move both vectors by the isometry `σ`, which takes `orbitPoint b σ` to the frame vector. |
| 846 | rw [← U.form_mulVec_mulVec σ, orbitPoint_eq_iff.1 rfl, orbitPoint, mulVec_mulVec, mulVec_mulVec] |
| 847 | simp only [frameGram, coe_mul, InvMemClass.coe_inv, Units.val_mul, coe_units_inv, |
| 848 | submatrix_apply, Pi.star_single, star_one, mul_assoc, mulVec_single, MulOpposite.op_one, |
| 849 | one_smul, single_dotProduct, col_apply, one_mul] |
| 850 | |
| 851 | /-- The hermitian product of `e_a` with its image `c e*_a` under the Weyl element of floor `a` |
| 852 | is `c`. -/ |
| 853 | lemma frameGram_floorWeyl (c : Aˣ) : |
| 854 | T.frameGram (floorWeyl a c : T.G).val a.castSucc a.castSucc = c := by |
| 855 | simp only [frameGram, floorWeyl, submatrix_apply, besselFrame_castSucc, mul_weylOn_apply] |
| 856 | simp [level, splitGram_eq_ite_oppositeIndex] |
| 857 | |
| 858 | /-! ### Leading minors of the products of the frame vectors -/ |
| 859 | |
| 860 | /-- An element `s` of `Q_l` changes each frame vector of index below `l` by a combination of the |
| 861 | earlier ones. So a right factor `s` keeps the leading minors of order `j ≤ l` of the block of a |
| 862 | matrix `M` on the frame. -/ |
| 863 | lemma leadingMinor_submatrix_mul_of_mem_partialUnitriangularGroup {l : ℕ} {s : T.G} |
| 864 | (hs : s ∈ partialUnitriangularGroup l) {j : Fin (𝔰.n + 1)} (hj : j.val ≤ l) |
| 865 | (M : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) : |
| 866 | leadingMinor ((M * s.val.val).submatrix 𝔰.besselFrame 𝔰.besselFrame) j = |
| 867 | leadingMinor (M.submatrix 𝔰.besselFrame 𝔰.besselFrame) j := by |
| 868 | let f (a : Fin j) : 𝔰.BesselIndex := 𝔰.besselFrame (a.castLE j.is_le) |
| 869 | have f_injective : Function.Injective f := besselFrame_injective.comp (Fin.castLE_injective _) |
| 870 | have f_level (a : Fin j) : level (f a) = a := level_besselFrame _ |
| 871 | have f_floor (a : Fin j) : floorOf (f a) = a := floorOf_besselFrame |
| 872 | have h_column (i : 𝔰.BesselIndex) (b : Fin j) (hi : b ≤ level i) : |
| 873 | s.val.val i (f b) = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) i (f b) := |
| 874 | have hb : b.val < l := b.is_lt.trans_le hj |
| 875 | mem_partialUnitriangularGroup.1 hs i (f b) ((f_level b).trans_le hi) |
| 876 | (.inl ⟨(f_floor b).trans_lt hb, (f_level b).trans_lt hb⟩) |
| 877 | -- An index of level below `b` is that of an earlier frame vector. |
| 878 | have h_level (i : 𝔰.BesselIndex) (hi : i ∉ Set.range f) (b : Fin j) : b ≤ level i := by |
| 879 | by_contra! h_lt |
| 880 | have h_floor : floorOf i = level i := by |
| 881 | have := floorOf_level_cases i; have := b.is_lt; lia |
| 882 | exact hi ⟨⟨level i, h_lt.trans b.is_lt⟩, (eq_besselFrame_of_floorOf_eq h_floor le_rfl).symm⟩ |
| 883 | have h_block : (M * s.val.val).submatrix f f = M.submatrix f f * s.val.val.submatrix f f := by |
| 884 | refine submatrix_mul_of_eq_zero_outside _ _ f f f f_injective fun _ b i hi ↦ ?_ |
| 885 | rw [h_column i b (h_level i hi b), one_apply_ne fun h_eq ↦ hi ⟨b, h_eq.symm⟩, mul_zero] |
| 886 | have h_det : (s.val.val.submatrix f f).det = 1 := by |
| 887 | refine det_eq_one_of_unitriangular (lev := Fin.val) fun a b hba ↦ ?_ |
| 888 | rw [← submatrix_one f f_injective] |
| 889 | exact h_column (f a) b (hba.trans_eq (f_level a).symm) |
| 890 | exact det_eq_of_eq_mul_det_one _ h_det h_block |
| 891 | |
| 892 | /-- The leading minors of order `j ≤ l` of the matrix `T.frameGram γ` of the products |
| 893 | `h(f_a, γ f_b)` of the frame vectors, h being the form `splitGram T`, do not change when `γ` is |
| 894 | multiplied on either side by elements of `Q_l`. Here `Q_l` = `partialUnitriangularGroup l`, whose |
| 895 | elements agree with the identity at each entry (i, j) with level j ≤ level i whose column j has |
| 896 | floor and level below l. -/ |
| 897 | lemma leadingMinor_frameGram_partialUnitriangularGroup_mul {l : ℕ} {s s' : T.G} |
| 898 | (hs : s ∈ partialUnitriangularGroup l) (hs' : s' ∈ partialUnitriangularGroup l) (γ : T.G) |
| 899 | {j : Fin (𝔰.n + 1)} (hj : j.val ≤ l) : |
| 900 | leadingMinor (T.frameGram (s⁻¹ * γ * s').val.val) j = |
| 901 | leadingMinor (T.frameGram γ.val.val) j := by |
| 902 | -- With `J = T.splitGram` we have `J s⁻¹ = sᴴ J`, so the conjugate transpose turns the factor on |
| 903 | -- the left into a factor on the right. |
| 904 | have h_form : T.splitGram * (s⁻¹ * γ * s').val.val = |
| 905 | ((T.splitGram * γ.val.val)ᴴ * s.val.val)ᴴ * s'.val.val := by |
| 906 | simp only [coe_mul, InvMemClass.coe_inv, Units.val_mul, coe_units_inv, ← Matrix.mul_assoc, |
| 907 | conjTranspose_mul, conjTranspose_conjTranspose, ← U.form_mul_inv_eq] |
| 908 | have h_conj (M : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) : |
| 909 | leadingMinor (Mᴴ.submatrix 𝔰.besselFrame 𝔰.besselFrame) j = |
| 910 | star (leadingMinor (M.submatrix 𝔰.besselFrame 𝔰.besselFrame) j) := |
| 911 | det_conjTranspose ((M.submatrix _ _).submatrix _ _) |
| 912 | rw [frameGram, h_form, leadingMinor_submatrix_mul_of_mem_partialUnitriangularGroup hs' hj, h_conj, |
| 913 | leadingMinor_submatrix_mul_of_mem_partialUnitriangularGroup hs hj, h_conj, star_star, frameGram] |
| 914 | |
| 915 | /-- The leading minors of the matrix `T.frameGram γ` of the products `h(f_a, γ f_b)` of the frame |
| 916 | vectors do not change when `γ` is multiplied on either side by elements of the unipotent group |
| 917 | `New.Shape.Form.besselU`. -/ |
| 918 | lemma _root_.New.Filling.leadingMinor_frameGram_besselU_mul {γ u u' : T.G} (hu : u ∈ T.besselU) |
| 919 | (hu' : u' ∈ T.besselU) (j : Fin (𝔰.ϱ + 1 + 1)) : |
| 920 | leadingMinor (T.frameGram (u⁻¹ * γ * u').val) j = leadingMinor (T.frameGram γ) j := |
| 921 | leadingMinor_frameGram_partialUnitriangularGroup_mul |
| 922 | (mem_partialUnitriangularGroup_of_mem_besselU hu) |
| 923 | (mem_partialUnitriangularGroup_of_mem_besselU hu') γ le_rfl |
| 924 | |
| 925 | /-- Let `l ≤ ϱ`, and let `w_p = weylElem l p` be the isometry with `e_a ↦ p a • e*_a` and |
| 926 | `e*_a ↦ e_a / conj (p a)` for `a < l`, fixing the other basis vectors. For `j ≤ l`, the leading |
| 927 | principal minor of order `j` of `frameGram w_p` equals `p 0 * ⋯ * p (j - 1)`. Here `frameGram w_p` |
| 928 | is the matrix of the products `h(f_a, w_p f_b)`, and `f = (e_0, …, e_{ϱ-1}, z)` is the frame. -/ |
| 929 | lemma leadingMinor_frameGram_weylElem {l : ℕ} (hl : l ≤ 𝔰.ϱ) (p : ℕ → Aˣ) {j : Fin (𝔰.n + 1)} |
| 930 | (hj : j.val ≤ l) : |
| 931 | leadingMinor (T.frameGram (weylElem l p : T.G).val.val) j = |
| 932 | (∏ a ∈ Finset.range j, p a).val := by |
| 933 | -- `w_p` sends `e_b` to `p b` times `e*_b`, so the block is diagonal. |
| 934 | have h_frame (a : Fin j) : 𝔰.besselFrame (a.castLE j.is_le) = inl ⟨a, by lia⟩ := |
| 935 | besselFrame_castSucc ⟨a, by lia⟩ |
| 936 | have h_block : (T.frameGram (weylElem l p : T.G).val.val).submatrix (Fin.castLE j.is_le) |
| 937 | (Fin.castLE j.is_le) = diagonal fun a : Fin j ↦ (p a).val := by |
| 938 | ext a b |
| 939 | simp only [frameGram, submatrix_apply, h_frame] |
| 940 | rw [splitGram_mul_apply_inl] |
| 941 | let k : Fin 𝔰.ϱ := ⟨b, by lia⟩ |
| 942 | rw [weylElem, weylOn_apply_of_swapped _ (k := inl k) |
| 943 | ⟨show b.val < l by lia, k.is_lt, (p _).isUnit⟩] |
| 944 | simp only [oppositeIndex, level, floorOf, elim_inl, Fin.is_lt, ↓reduceIte, diagonal_apply, |
| 945 | inr.injEq, Fin.ext_iff] |
| 946 | by_cases h : a = b <;> simp_all [k, Fin.ext_iff] |
| 947 | rw [leadingMinor, h_block, det_diagonal, Units.coe_prod, Finset.prod_range] |
| 948 | |
| 949 | /-! ### Action on coordinates of vectors -/ |
| 950 | |
| 951 | /-- An index has level at most `ϱ` or is some `e*_b`, of floor `b`. -/ |
| 952 | lemma level_le_or_exists_eq_eStar (k : 𝔰.BesselIndex) : |
| 953 | level k ≤ 𝔰.ϱ ∨ ∃ b : Fin 𝔰.ϱ, k = eStar b ∧ floorOf k = b := by |
| 954 | obtain a | m | a := k <;> simp [level, floorOf] |
| 955 | |
| 956 | /-- If the coordinates `e*_b` of `v : 𝔰.BesselIndex → A` with `b < j` vanish (`j : ℕ`), an element |
| 957 | of the unitriangular group `𝒩_{<j}` of the floors below `j` keeps the coordinates of `v` of floor at |
| 958 | least `j` and those of level above `ϱ`. -/ |
| 959 | lemma unipotentBelow_mulVec_apply (hg : g ∈ unipotentBelow j) |
| 960 | (hv : ∀ b : Fin 𝔰.ϱ, b < j → v (eStar b) = 0) (i : 𝔰.BesselIndex) |
| 961 | (hi : j ≤ floorOf i ∨ 𝔰.ϱ < level i) : |
| 962 | (g *ᵥ v) i = v i := by |
| 963 | -- Compare with `1 *ᵥ v`. Where row `i` of `g` may differ from `1`, `v` vanishes. |
| 964 | conv_rhs => rw [← one_mulVec v] |
| 965 | apply dotProduct_eq_on_support |
| 966 | intro k hk |
| 967 | apply mem_unipotentBelow.1 hg |
| 968 | obtain hk_le | ⟨b, rfl, hkb⟩ := level_le_or_exists_eq_eStar k <;> split_ifs <;> grind |
| 969 | |
| 970 | /-- Let `s` lie in `Q_j`, the group of isometries that are unitriangular in the columns of floor |
| 971 | and level below `j`. For `a < j`, the row `e*_a` of `s` is that of `1` outside the columns `e*_b` |
| 972 | with `b < a`. -/ |
| 973 | lemma partialUnitriangularGroup_apply_eStar (hs : s ∈ partialUnitriangularGroup j) (ha : a < j) |
| 974 | (k : 𝔰.BesselIndex) (hk : ∀ b : Fin 𝔰.ϱ, b < a → k ≠ eStar b) : |
| 975 | s.val (eStar a) k = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) (eStar a) k := by |
| 976 | -- The column `inl a` of `s⁻¹` agrees with `1` at levels at least `a`. |
| 977 | -- Every row where the Gram column `k` is nonzero has such a level. |
| 978 | apply row_eq_one_of_inv_col (inl a) k a.is_lt |
| 979 | intro x hx |
| 980 | apply mem_partialUnitriangularGroup.1 (inv_mem hs) x (inl a) _ (.inl ⟨ha, ha⟩) |
| 981 | obtain b | m | b := x |
| 982 | · by_contra! hb |
| 983 | exact hx (by rw [splitGram_eq_ite_oppositeIndex (inl b) k (.inl b.is_lt), |
| 984 | ite_eq_right (show oppositeIndex (inl b) ≠ k from (hk b hb).symm)]) |
| 985 | · exact a.is_lt.le |
| 986 | · change (a : ℕ) ≤ 2 * 𝔰.ϱ - b |
| 987 | omega |
| 988 | |
| 989 | /-- For `a < j`, an element `s` of `Q_j` (`partialUnitriangularGroup j`, `j : ℕ`) keeps, under `*ᵥ`, |
| 990 | the coordinate `e*_a` of a `v : 𝔰.BesselIndex → A` that is a vector whose coordinates `e*_b` with |
| 991 | `b < a` vanish. -/ |
| 992 | lemma partialUnitriangularGroup_mulVec_eStar (hs : s ∈ partialUnitriangularGroup j) (ha : a < j) |
| 993 | (hv : ∀ b : Fin 𝔰.ϱ, b < a → v (eStar b) = 0) : (s.val.val *ᵥ v) (eStar a) = v (eStar a) := by |
| 994 | -- The two rows agree wherever `v` is nonzero. |
| 995 | conv_rhs => rw [← one_mulVec v] |
| 996 | exact dotProduct_eq_on_support fun k hk ↦ |
| 997 | partialUnitriangularGroup_apply_eStar hs ha k fun b hb h_eq ↦ hk (h_eq ▸ hv b hb) |
| 998 | |
| 999 | end New.Floors.FloorGroups |
| 1000 | |
| 1001 | /-! |
| 1002 | ## The Bessel subgroup, its unipotent part and the simple root sum |
| 1003 | |
| 1004 | `New.frameMatrix` is the square block of a matrix on the frame. |
| 1005 | -/ |
| 1006 | |
| 1007 | namespace New |
| 1008 | |
| 1009 | open Finset Matrix Subgroup Fin Floors FloorGroups |
| 1010 | |
| 1011 | variable {R : Type} [CommRing R] [StarRing R] {𝔰 : Shape} {T : 𝔰.Form R} |
| 1012 | |
| 1013 | /-- The group H: the floor group H_{ϱ+1}, the fixer of all basis vectors outside `κ`. -/ |
| 1014 | abbrev Shape.Form.besselH : Subgroup T.G := T.floorGroup 𝔰.n |
| 1015 | |
| 1016 | /-- The Bessel subgroup S: the group `Q_{ϱ+1}` of the isometries whose columns at the frame vectors |
| 1017 | agree with those of the identity matrix on and below the diagonal blocks. It contains the |
| 1018 | unipotent group `New.Shape.Form.besselU` and H = `New.Shape.Form.besselH`. -/ |
| 1019 | abbrev Shape.Form.besselS : Subgroup T.G := T.partialUnitriangularGroup 𝔰.n |
| 1020 | |
| 1021 | export Shape.Form (besselH besselS) |
| 1022 | |
| 1023 | variable {Q : Subring R} {g : Rˣ} {h u s : T.G} |
| 1024 | |
| 1025 | /-- If the middle block `T` is hermitian and invertible, so is the whole Gram matrix. -/ |
| 1026 | instance [h : IsHermitianUnit T] : IsHermitianUnit T.splitGram where |
| 1027 | conjTranspose_eq := by |
| 1028 | simp only [splitGram, fromBlocks_conjTranspose, conjTranspose_zero, |
| 1029 | conjTranspose_fromRows_eq_fromCols_conjTranspose, conjTranspose_one, |
| 1030 | conjTranspose_fromCols_eq_fromRows_conjTranspose, h.conjTranspose_eq] |
| 1031 | isUnit := .of_mul_eq_one _ (splitGram_mul_splitGram_eq_one h.isUnit.mul_val_inv) |
| 1032 | |
| 1033 | /-! ### Elements of `H` and the frame -/ |
| 1034 | |
| 1035 | omit [StarRing R] in |
| 1036 | /-- A right factor that fixes the basis vectors outside `κ` does not change the image of the |
| 1037 | frame. -/ |
| 1038 | lemma frameImage_mul_of_mem_agreeWithOneOn {g : GL 𝔰.BesselIndex R} |
| 1039 | (hg : g ∈ agreeWithOneOn (fun _ j : 𝔰.BesselIndex ↦ floorOf j < 𝔰.n) R |
| 1040 | fun _ _ _ hj ↦ Or.inr hj) |
| 1041 | (x : Matrix 𝔰.BesselIndex 𝔰.BesselIndex R) : |
| 1042 | frameImage (x * g.val) = frameImage x := by |
| 1043 | ext i b |
| 1044 | have h_col (k : 𝔰.BesselIndex) : g.val k (𝔰.besselFrame b) = |
| 1045 | (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex R) k (𝔰.besselFrame b) := |
| 1046 | hg k _ (floorOf_besselFrame.trans_lt b.is_lt) |
| 1047 | simp only [submatrix_apply, id_eq, Matrix.mul_apply, h_col, Matrix.one_apply, mul_ite, |
| 1048 | mul_one, mul_zero, sum_ite_eq', mem_univ, ↓reduceIte] |
| 1049 | |
| 1050 | /-- A right factor in `H` does not change the block on the frame. -/ |
| 1051 | lemma frameMatrix_mul_besselH (s : T.G) (hh : h ∈ besselH) : frameMatrix (s * h) = frameMatrix s := |
| 1052 | funext fun i ↦ congrFun (frameImage_mul_of_mem_agreeWithOneOn hh s) (𝔰.besselFrame i) |
| 1053 | |
| 1054 | /-- An element of `besselU0`, the elements of `besselU` that fix the frame, fixes the frame vectors |
| 1055 | and so lies in `besselFixer`. -/ |
| 1056 | lemma mem_besselFixer_of_mem_besselU0 (hu : u ∈ besselU0) : u ∈ besselFixer := |
| 1057 | (mem_inf.1 hu).right |
| 1058 | |
| 1059 | /-- An element of `H` fixes the frame vectors, whose floors are at most `ϱ`. -/ |
| 1060 | lemma mem_besselFixer_of_mem_besselH (hh : h ∈ besselH) : h ∈ besselFixer := by |
| 1061 | rintro i _ ⟨b, rfl⟩ |
| 1062 | exact mem_floorGroup.1 hh i _ (floorOf_besselFrame.trans_lt b.is_lt) |
| 1063 | |
| 1064 | /-- An index whose floor and level are both below `n` is a frame index: it is `𝔰.besselFrame a` for |
| 1065 | some `a`. -/ |
| 1066 | private lemma exists_besselFrame_of_floor_and_level {j : 𝔰.BesselIndex} |
| 1067 | (h_floor : floorOf j < 𝔰.n) (h_level : BesselIndex.level j < 𝔰.n) : |
| 1068 | ∃ a : Fin (𝔰.ϱ + 1), 𝔰.besselFrame a = j := |
| 1069 | ⟨⟨floorOf j, h_floor⟩, (eq_besselFrame_of_floorOf_eq rfl |
| 1070 | (by have := floorOf_level_cases j; lia)).symm⟩ |
| 1071 | |
| 1072 | /-- An isometry that fixes every frame vector lies in the Bessel subgroup `S`. -/ |
| 1073 | lemma mem_besselS_of_mem_besselFixer (hs : s ∈ besselFixer) : s ∈ besselS := by |
| 1074 | refine mem_partialUnitriangularGroup.2 fun i j _ hj ↦ ?_ |
| 1075 | -- The columns on which `S` puts a condition are those of the frame vectors. |
| 1076 | obtain ⟨h_floor, h_level⟩ := hj.resolve_right (lt_irrefl _) |
| 1077 | exact hs i j (exists_besselFrame_of_floor_and_level h_floor h_level) |
| 1078 | |
| 1079 | /-- An isometry `s` lies in the Bessel subgroup `besselS` if and only if, for every vector `f_a` of |
| 1080 | the frame `(e_0, …, e_{ϱ-1}, z)`, the difference `s f_a - f_a` lies in the span of the earlier frame |
| 1081 | vectors. -/ |
| 1082 | lemma Filling.mem_besselS_iff_frameImage : |
| 1083 | s ∈ besselS ↔ |
| 1084 | ∀ (i : SplitIndex 𝔰.ϱ 𝔰.MiddleIndex) (a : Fin (𝔰.ϱ + 1)), |
| 1085 | a.val ≤ BesselIndex.level i → frameImage s.val.val i a = frameImage 1 i a := by |
| 1086 | rw [mem_partialUnitriangularGroup] |
| 1087 | constructor |
| 1088 | · intro h i a ha |
| 1089 | exact h i (𝔰.besselFrame a) (by rwa [level_besselFrame]) |
| 1090 | (Or.inl (by simp only [floorOf_besselFrame, a.isLt, level_besselFrame, and_self])) |
| 1091 | · intro h i j hji hj |
| 1092 | -- the condition on `j` says that it indexes a frame vector |
| 1093 | obtain ⟨h_floor, h_level⟩ := hj.resolve_right (lt_irrefl _) |
| 1094 | obtain ⟨a, rfl⟩ := exists_besselFrame_of_floor_and_level h_floor h_level |
| 1095 | exact h i a (by rwa [level_besselFrame] at hji) |
| 1096 | |
| 1097 | /-! ### `S` normalises `𝖴` -/ |
| 1098 | |
| 1099 | /-- The Bessel subgroup `S`, whose elements are unitriangular in the columns of the frame vectors, |
| 1100 | normalises the group `𝖴` of block unitriangular isometries. -/ |
| 1101 | lemma besselS_le_normalizer_besselU : T.besselS ≤ normalizer T.besselU := by |
| 1102 | refine le_normalizer_iff.2 fun s hs u hu ↦ ?_ |
| 1103 | -- `s` is block upper triangular for the levels: `partialUnitriangularGroup_apply_eStar` gives the |
| 1104 | -- rows of the `eStar a`, the definition of `partialUnitriangularGroup` the columns of the frame. |
| 1105 | have h_tri : s.val.val.BlockTriangular BesselIndex.level := by |
| 1106 | intro i j hij |
| 1107 | rw [← one_apply_ne (α := R) (ne_of_apply_ne BesselIndex.level hij.ne')] |
| 1108 | by_cases hj : floorOf j < 𝔰.n ∧ BesselIndex.level j < 𝔰.n |
| 1109 | · exact mem_partialUnitriangularGroup.1 hs i j hij.le (.inl hj) |
| 1110 | · -- Here `j` has level at least `ϱ`, so `i` is some `e*_a`. |
| 1111 | have h_cases := floorOf_level_cases j |
| 1112 | obtain ⟨a, rfl, -⟩ := (level_le_or_exists_eq_eStar i).resolve_left (fun hle ↦ by lia) |
| 1113 | refine partialUnitriangularGroup_apply_eStar hs (by lia) j fun b hb h_eq ↦ ?_ |
| 1114 | simp only [h_eq, BesselIndex.level, Sum.elim_inr] at hij |
| 1115 | lia |
| 1116 | -- So is `s⁻¹`, and conjugation by such a matrix keeps the unitriangular group. |
| 1117 | exact conj_mem_unitriangular (d := s.val⁻¹) ((parabolic _).inv_mem h_tri) (mem_subgroupOf.1 hu) |
| 1118 | |
| 1119 | /-! ### The additive character on `S` -/ |
| 1120 | |
| 1121 | /-- For s in the unitary group, the sum σ(s) of the entries just above the diagonal of the block |
| 1122 | of s on the frame (e_0, …, e_{ϱ-1}, z). -/ |
| 1123 | def simpleRootSum (s : T.G) : R := |
| 1124 | ∑ a : Fin 𝔰.ϱ, s.val (𝔰.besselFrame (castSucc a)) (𝔰.besselFrame a.succ) |
| 1125 | |
| 1126 | /-- The sum σ of the entries just above the diagonal on the frame is additive on the Bessel |
| 1127 | subgroup S. -/ |
| 1128 | lemma simpleRootSum_mul (hh : h ∈ besselS) (hu : u ∈ besselS) : |
| 1129 | simpleRootSum (h * u) = simpleRootSum h + simpleRootSum u := by |
| 1130 | rw [simpleRootSum, simpleRootSum, simpleRootSum, ← sum_add_distrib] |
| 1131 | refine sum_congr rfl fun i _ ↦ ?_ |
| 1132 | set x : 𝔰.BesselIndex := 𝔰.besselFrame i.castSucc |
| 1133 | set y : 𝔰.BesselIndex := 𝔰.besselFrame i.succ |
| 1134 | -- In the entry `(x, y)` of the product only the terms with summed index `y` or `x` survive: the |
| 1135 | -- column of `u` vanishes at the other indices of level `> i`, and the row of `h` at those of |
| 1136 | -- level `< i`. |
| 1137 | have h_entry : (h * u).val x y = h.val x y * u.val y y + h.val x x * u.val x y := by |
| 1138 | refine Fintype.sum_eq_add y x (besselFrame_injective.ne i.castSucc_lt_succ.ne.symm) |
| 1139 | fun z ⟨hzy, hzx⟩ ↦ ?_ |
| 1140 | dsimp only |
| 1141 | by_cases hz : BesselIndex.level z ≤ i.val |
| 1142 | · have h_cases := floorOf_level_cases z |
| 1143 | rw [mem_partialUnitriangularGroup.1 hh x z ((level_besselFrame i.castSucc).symm ▸ hz) |
| 1144 | (.inl ⟨by lia, by lia⟩), one_apply_ne hzx.symm, zero_mul] |
| 1145 | · have h_col : u.val z y = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex R) z y := |
| 1146 | Filling.mem_besselS_iff_frameImage.mp hu z i.succ (Nat.lt_of_not_ge hz) |
| 1147 | rw [h_col, one_apply_ne hzy, mul_zero] |
| 1148 | have diag {s : T.G} (hs : s ∈ besselS) (b : Fin 𝔰.n) : |
| 1149 | s.val (𝔰.besselFrame b) (𝔰.besselFrame b) = 1 := |
| 1150 | (Filling.mem_besselS_iff_frameImage.mp hs _ b (level_besselFrame b).ge).trans (one_apply_eq _) |
| 1151 | rw [h_entry, diag hh i.castSucc, diag hu i.succ, mul_one, one_mul] |
| 1152 | |
| 1153 | /-! ### Principal congruence subgroups and the factor `H` -/ |
| 1154 | |
| 1155 | /-- If `u` is integral over `Q` and congruent to `1` modulo `g` (`New.unitaryLevel`), the sum of |
| 1156 | its entries just above the diagonal on the frame is divisible by `g` in `Q`. -/ |
| 1157 | lemma inv_mul_simpleRootSum_mem (hu : u ∈ unitaryLevel Q g T.splitGram) : |
| 1158 | (g⁻¹ : Rˣ) * simpleRootSum u ∈ Q := by |
| 1159 | rw [simpleRootSum, mul_sum] |
| 1160 | refine sum_mem fun a _ ↦ ?_ |
| 1161 | have h_entry : |
| 1162 | (g⁻¹ • (u.val.val - 1)) (𝔰.besselFrame a.castSucc) (𝔰.besselFrame a.succ) ∈ Q := |
| 1163 | (mem_unitaryLevel_def.1 hu).right _ _ |
| 1164 | have h_ne : 𝔰.besselFrame a.castSucc ≠ 𝔰.besselFrame a.succ := |
| 1165 | besselFrame_injective.ne castSucc_lt_succ.ne |
| 1166 | rwa [Matrix.smul_apply, Matrix.sub_apply, one_apply_ne h_ne, sub_zero, Units.smul_def, |
| 1167 | smul_eq_mul] at h_entry |
| 1168 | |
| 1169 | /-- The sum of the entries just above the diagonal on the frame vanishes on `H`, whose columns at |
| 1170 | the frame vectors are those of `1`. -/ |
| 1171 | lemma simpleRootSum_eq_zero_of_mem_besselH (hh : h ∈ besselH) : simpleRootSum h = 0 := |
| 1172 | sum_eq_zero fun a _ ↦ (mem_floorGroup.1 hh _ _ |
| 1173 | (floorOf_besselFrame.trans_lt a.succ.is_lt)).trans |
| 1174 | (one_apply_ne (besselFrame_injective.ne a.castSucc_lt_succ.ne)) |
| 1175 | |
| 1176 | /-- For `u` in `𝖴` and `h` in `H`, each entry of `h` is the entry at the same place of `u * h` or |
| 1177 | of `1`. -/ |
| 1178 | lemma besselH_apply_eq_or (hu : u ∈ besselU) (hh : h ∈ besselH) (i j : 𝔰.BesselIndex) : |
| 1179 | h.val i j = (u * h).val i j ∨ h.val i j = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex R) i j := by |
| 1180 | have h_lt : 𝔰.ϱ < 𝔰.n := Nat.lt_succ_self _ |
| 1181 | by_cases h_col : floorOf j < 𝔰.n |
| 1182 | · exact .inr (apply_eq_one_apply_of_mem_floorGroup hh i j (.inr h_col)) |
| 1183 | by_cases h_row : floorOf i < 𝔰.ϱ |
| 1184 | · exact .inr (apply_eq_one_apply_of_mem_floorGroup hh i j (.inl ⟨h_row.trans h_lt, h_row⟩)) |
| 1185 | -- Now `i` lies in the middle block, of level `ϱ`, and only the term `x = i` of the product stays. |
| 1186 | have h_level_i : BesselIndex.level i = 𝔰.ϱ := by have := floorOf_level_cases i; lia |
| 1187 | refine .inl (Eq.symm ?_) |
| 1188 | rw [Subgroup.coe_mul, Units.val_mul, Matrix.mul_apply, Fintype.sum_eq_single i fun x hx ↦ ?_, |
| 1189 | mem_besselU.1 hu i i le_rfl, one_apply_eq, one_mul] |
| 1190 | by_cases hx_floor : floorOf x < 𝔰.ϱ |
| 1191 | · rw [apply_eq_one_apply_of_mem_floorGroup hh x j (.inl ⟨hx_floor.trans h_lt, hx_floor⟩), |
| 1192 | one_apply_ne (by rintro rfl; lia), mul_zero] |
| 1193 | · rw [mem_besselU.1 hu i x (by have := floorOf_level_cases x; lia), one_apply_ne (Ne.symm hx), |
| 1194 | zero_mul] |
| 1195 | |
| 1196 | /-- Let `u` be block unitriangular (`besselU`) and let `h` fix the basis vectors outside `κ` |
| 1197 | (`besselH`). If `u * h` is integral over `Q` and congruent to `1` modulo `g` (`New.unitaryLevel`), |
| 1198 | then so is `h`. -/ |
| 1199 | lemma mem_unitaryLevel_of_besselU_mul (hu : u ∈ besselU) (hh : h ∈ besselH) |
| 1200 | (h_level : u * h ∈ unitaryLevel Q g T.splitGram) : |
| 1201 | h ∈ unitaryLevel Q g T.splitGram := by |
| 1202 | -- Apply `besselH_apply_eq_or` to `h`, and to `h⁻¹`: the inverse `(u * h)⁻¹` is `h⁻¹` multiplied |
| 1203 | -- on the left by the unipotent `h⁻¹ * u⁻¹ * h`. |
| 1204 | have h_normalizer : h⁻¹ ∈ normalizer T.besselU := |
| 1205 | besselS_le_normalizer_besselU (mem_partialUnitriangularGroup_of_mem_floorGroup (inv_mem hh)) |
| 1206 | have h_conj : h⁻¹ * u⁻¹ * h ∈ besselU := by |
| 1207 | simpa only [inv_inv] using (mem_normalizer_iff.1 h_normalizer u⁻¹).1 (inv_mem hu) |
| 1208 | have h_inv : (u * h)⁻¹ = h⁻¹ * u⁻¹ * h * h⁻¹ := by group |
| 1209 | have h_inv_entry (i j : 𝔰.BesselIndex) : h⁻¹.val i j = (u * h)⁻¹.val i j ∨ |
| 1210 | h⁻¹.val i j = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex R) i j := by |
| 1211 | rw [h_inv] |
| 1212 | exact besselH_apply_eq_or h_conj (inv_mem hh) i j |
| 1213 | have h_one (i j : 𝔰.BesselIndex) : (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex R) i j ∈ Q := by |
| 1214 | simp only [Matrix.one_apply, apply_ite (· ∈ Q), one_mem, zero_mem, ite_self] |
| 1215 | obtain ⟨h_intGL, h_congr⟩ := mem_unitaryLevel_def.1 h_level |
| 1216 | obtain ⟨h_int, h_inv_int⟩ : (∀ i j : 𝔰.BesselIndex, (u * h).val i j ∈ Q) ∧ |
| 1217 | ∀ i j : 𝔰.BesselIndex, (u * h)⁻¹.val i j ∈ Q := mem_intGL.1 h_intGL |
| 1218 | -- So integrality and the congruence modulo `g` pass from `u * h` to `h`, entry by entry. |
| 1219 | refine mem_unitaryLevel_def.2 ⟨mem_intGL.2 ⟨fun i j ↦ ?_, fun i j ↦ ?_⟩, fun i j ↦ ?_⟩ |
| 1220 | · obtain h_eq | h_eq := besselH_apply_eq_or hu hh i j <;> rw [h_eq] |
| 1221 | exacts [h_int i j, h_one i j] |
| 1222 | · rw [← Subgroup.coe_inv] |
| 1223 | obtain h_eq | h_eq := h_inv_entry i j <;> rw [h_eq] |
| 1224 | exacts [h_inv_int i j, h_one i j] |
| 1225 | · rw [Matrix.smul_apply, Matrix.sub_apply] |
| 1226 | obtain h_eq | h_eq := besselH_apply_eq_or hu hh i j <;> rw [h_eq] |
| 1227 | · exact h_congr i j |
| 1228 | · simp only [sub_self, smul_zero, zero_mem] |
| 1229 | |
| 1230 | /-- Let `h` and `h'` lie in `H`. If `u * (h * y)` and `u' * (h' * y)` lie in the congruence subgroup |
| 1231 | `K(g)` (`New.unitaryLevel`) for some `u` and `u'` in `𝖴`, then so does `h' / h`. So the `h` in `H` |
| 1232 | with `h * y` in `𝖴 K(g)` lie in one right coset of `H ∩ K(g)`. -/ |
| 1233 | lemma div_mem_unitaryLevel_of_besselU_mul {h h' u u' y : T.G} (hh : h ∈ T.besselH) |
| 1234 | (hh' : h' ∈ T.besselH) (hu : u ∈ T.besselU) (hu' : u' ∈ T.besselU) |
| 1235 | (h_level : u * (h * y) ∈ unitaryLevel Q g T.splitGram) |
| 1236 | (h_level' : u' * (h' * y) ∈ unitaryLevel Q g T.splitGram) : |
| 1237 | h' / h ∈ unitaryLevel Q g T.splitGram := by |
| 1238 | -- `H` normalises `𝖴`, so the quotient of the two elements of `K(g)` lies in `𝖴 (h' / h)`. |
| 1239 | have h_div : h' / h ∈ T.besselH := div_mem hh' hh |
| 1240 | have h_conj : h' / h * u⁻¹ * (h' / h)⁻¹ ∈ T.besselU := |
| 1241 | (besselS_le_normalizer_besselU (mem_partialUnitriangularGroup_of_mem_floorGroup h_div) u⁻¹).1 |
| 1242 | (inv_mem hu) |
| 1243 | have h_eq : u' * (h' / h * u⁻¹ * (h' / h)⁻¹) * (h' / h) = u' * (h' * y) / (u * (h * y)) := by |
| 1244 | simp only [div_eq_mul_inv, mul_assoc, _root_.mul_inv_rev, inv_inv, inv_mul_cancel_left, |
| 1245 | mul_inv_cancel, mul_one, mul_inv_cancel_left] |
| 1246 | exact mem_unitaryLevel_of_besselU_mul (mul_mem hu' h_conj) h_div |
| 1247 | (by simpa only [h_eq] using div_mem h_level' h_level) |
| 1248 | |
| 1249 | end New |
| 1250 | |
| 1251 | end |