import Lib.Adelic.Witt.WittTheorem /-! # Floor groups, Weyl elements and the Bessel subgroup of a split unitary group We study the unitary group of the form `T.splitGram` over a commutative ring with involution. This form has `𝔰.ϱ` hyperbolic planes and a middle block `T`. We define the floor groups `H_l`, `𝒩_l`, `Q_l` and Weyl elements exchanging `e_a` and `e*_a`. These serve a descent through the hyperbolic pairs, one pair at a time. We then study the Bessel subgroup `S` (`New.Shape.Form.besselS`), generated by the block unitriangular isometries `𝖴` (`New.Shape.Form.besselU`) and the isometries `H` (`New.Shape.Form.besselH`) that fix all basis vectors outside `κ`. ## Main definitions and results * `New.Shape.Form.floorGroup`: the fixer `H_l` of the floors below `l`. It decreases from `⊤` at `l = 0` to `⊥` for `l ≥ ϱ + 2`. * `New.Shape.Form.unipotentBelow`, `New.Floors.FloorGroups.floorUnipotent`, `New.Shape.Form.partialUnitriangularGroup`: the groups `𝒩_{ a | inr (inl (inl _)) => 𝔰.n | _ => 𝔰.ϱ /-- The involution of the basis indices that exchanges `inl a` and `inr (inr a)`, the two members of a hyperbolic pair, and fixes each index `inr (inl m)` of the middle block. -/ def oppositeIndex : 𝔰.BesselIndex → 𝔰.BesselIndex | inl a => eStar a | eStar a => inl a | i => i attribute [simp] floorOf.eq_1 floorOf.eq_2 floorOf.eq_3 floorOf.eq_4 oppositeIndex.eq_1 oppositeIndex.eq_2 oppositeIndex.eq_3 /-- For `b ≤ ϱ` and an isometry `g`, the vector `g⁻¹ f_b`, where `f = (e_0, …, e_{ϱ-1}, z)` is the frame `𝔰.besselFrame`. -/ def orbitPoint (b : Fin (𝔰.ϱ + 1)) (g : T.G) : 𝔰.BesselIndex → A := g⁻¹.val.val *ᵥ Pi.single (𝔰.besselFrame b) 1 /-- Floor against level: an index is either in a hyperbolic pair (floor below `ϱ`, and level equal to the floor or to `2ϱ` minus it) or in the middle block (level `ϱ`, floor `ϱ` or `ϱ + 1`). -/ @[grind .] lemma floorOf_level_cases (i : 𝔰.BesselIndex) : (floorOf i = level i ∨ level i + floorOf i = 2 * 𝔰.ϱ) ∧ floorOf i < 𝔰.ϱ ∨ level i = 𝔰.ϱ ∧ 𝔰.ϱ ≤ floorOf i ∧ floorOf i ≤ 𝔰.n := by obtain a | (k | u) | a := i <;> simp [level]; lia lemma oppositeIndex_oppositeIndex (i : 𝔰.BesselIndex) : oppositeIndex (oppositeIndex i) = i := by obtain a | m | a := i <;> rfl lemma floorOf_oppositeIndex (i : 𝔰.BesselIndex) : floorOf (oppositeIndex i) = floorOf i := by obtain a | m | a := i <;> simp /-- `oppositeIndex` reflects the level in `ϱ`. -/ lemma level_oppositeIndex_add_level (i : 𝔰.BesselIndex) : level (oppositeIndex i) + level i = 2 * 𝔰.ϱ := by obtain a | m | a := i · change 2 * 𝔰.ϱ - a + a = 2 * 𝔰.ϱ lia · exact (two_mul 𝔰.ϱ).symm · change a + (2 * 𝔰.ϱ - a) = 2 * 𝔰.ϱ lia /-- `oppositeIndex` is an involution of the basis indices that keeps the floor `floorOf` and reflects the level in `ϱ`. -/ lemma oppositeIndex_involutive_and_floorOf_level (i : 𝔰.BesselIndex) : oppositeIndex (oppositeIndex i) = i ∧ floorOf (oppositeIndex i) = floorOf i ∧ level (oppositeIndex i) + level i = 2 * 𝔰.ϱ := ⟨oppositeIndex_oppositeIndex i, floorOf_oppositeIndex i, level_oppositeIndex_add_level i⟩ omit [StarRing A] in /-- In the rows and columns of the hyperbolic pairs the Gram matrix is the permutation matrix of `oppositeIndex`. -/ @[simp] lemma splitGram_eq_ite_oppositeIndex (i j : 𝔰.BesselIndex) (h_pair : floorOf i < 𝔰.ϱ ∨ floorOf j < 𝔰.ϱ) : T.splitGram i j = if oppositeIndex i = j then 1 else 0 := by revert i j simp [splitGram, Matrix.one_apply] open scoped Classical in /-- Write `e_a`, `e*_a` for the basis vectors `inl a`, `inr (inr a)`. On each floor `a < ϱ` where `P a` holds and `c = p a` is a unit, this isometry sends `e_a` to `c e*_a` and `e*_a` to `(star c)⁻¹ e_a`; it fixes all other basis vectors. -/ def weylOn (P : ℕ → Prop) (p : ℕ → A) : T.G := let M (p : ℕ → A) : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A := of fun i j ↦ let swapped : Prop := P (floorOf j) ∧ floorOf j < 𝔰.ϱ ∧ IsUnit (p (floorOf j)) if i = (if swapped then oppositeIndex j else j) then if swapped then (if level j < 𝔰.ϱ then p (floorOf j) else (star (p (floorOf j)))⁻¹ʳ) else 1 else 0 { val := { val := M p inv := M (star p) val_inv := by ext simp [M, mul_apply, Matrix.one_apply] grind [oppositeIndex_involutive_and_floorOf_level, inverse_mul_cancel] inv_val := by ext simp [M, mul_apply, Matrix.one_apply] grind [oppositeIndex_involutive_and_floorOf_level, inverse_mul_cancel] } property := by ext simp [M, mul_apply, apply_ite star, inverse_star] grind [splitGram_eq_ite_oppositeIndex, oppositeIndex_involutive_and_floorOf_level, inverse_mul_cancel] } /-- The Weyl element `w_p` of the first `l` hyperbolic pairs: `e_a ↦ p_a e*_a` and `e*_a ↦ e_a / p̄_a` on the pairs `a < l`, fixing the other basis vectors. -/ def weylElem (p : ℕ → Aˣ) : T.G := weylOn (· < l) (p ·) /-- The Weyl element `w_l(c)` of floor `l`: `e_l ↦ c e*_l` and `e*_l ↦ e_l / c̄`, fixing the other basis vectors; it is `1` if `l ≥ ϱ` or `c` is not a unit. -/ def floorWeyl (c : A) : T.G := weylOn (· = l) fun _ ↦ c /-- The inverse, in the sense of `Ring.inverse`, of the conjugate of a unit `u` is the conjugate of `u⁻¹`. -/ @[simp ↓] lemma inverse_star_unit (u : Aˣ) : (star ↑u)⁻¹ʳ = star u⁻¹.val := by aesop /-! ### The subgroups and their entries -/ /-- The group `H_l` of the isometries that fix every basis vector of floor below `l`. -/ def _root_.New.Shape.Form.floorGroup : Subgroup T.G := (agreeWithOneOn (fun _ j : 𝔰.BesselIndex ↦ floorOf j < l) A fun _ _ _ hj ↦ Or.inr hj).subgroupOf T.G /-- The group `𝒩_{ simp attribute [grind .] mem_floorGroup mem_unipotentBelow mem_partialUnitriangularGroup floorOf_besselFrame level_besselFrame apply_eq_one_apply_of_mem_floorGroup /-- The vector `g⁻¹ f_b` is `e` if and only if `g` sends `e` to the frame vector `f_b`. -/ lemma orbitPoint_eq_iff : orbitPoint b g = e ↔ g *ᵥ e = Pi.single (𝔰.besselFrame b) 1 := -- Matrices act on vectors by `*ᵥ`, so this is `g⁻¹ • f_b = e ↔ g • e = f_b`. (inv_smul_eq_iff (g := g)).trans eq_comm /-- The frame vector `b` is the only basis vector of floor `b` and level at most `b`. -/ lemma eq_besselFrame_of_floorOf_eq {i : 𝔰.BesselIndex} (h_floor : floorOf i = b) (h_level : level i ≤ b) : i = 𝔰.besselFrame b := by revert i -- In each case for `b`, compare floor and level of each kind of index with those of `f_b`. induction b using Fin.lastCases <;> simp [level] <;> lia /-- An element `s` of `H_b = floorGroup b` lies in `Q_{b+1} = partialUnitriangularGroup (b + 1)` exactly when it fixes the frame vector `f_b = 𝔰.besselFrame b`, that is, when `orbitPoint b s = s⁻¹ f_b` equals `f_b`. -/ lemma mem_partialUnitriangularGroup_succ_iff (hs : s ∈ floorGroup b) : s ∈ partialUnitriangularGroup (b + 1) ↔ orbitPoint b s = Pi.single (𝔰.besselFrame b) 1 := by have h_column : orbitPoint b s = Pi.single (𝔰.besselFrame b) 1 ↔ ∀ i : 𝔰.BesselIndex, s.val i (𝔰.besselFrame b) = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) i (𝔰.besselFrame b) := by rw [orbitPoint_eq_iff] simp [funext_iff, ← Matrix.one_apply, Pi.single_apply] rw [h_column, mem_partialUnitriangularGroup] refine ⟨fun h_unitri i ↦ ?_, fun h_frame i j _ hj ↦ ?_⟩ · by_cases hi : level (𝔰.besselFrame b) ≤ level i · exact h_unitri i _ hi (.inl (by simp [floorOf_besselFrame, level_besselFrame])) · -- A row of level below `b` has floor below `b`, so there `s` agrees with `1`. obtain ⟨h_low, h_pair⟩ : floorOf i < b ∧ floorOf i < 𝔰.ϱ := by grind exact floorGroup_apply_row hs i _ h_low h_pair · by_cases h_floor : floorOf j < b · exact mem_floorGroup.1 hs i j h_floor · -- The only other column with a condition is that of the frame vector. obtain ⟨h_floor_eq, h_level⟩ : floorOf j = b ∧ level j ≤ b := by lia rw [eq_besselFrame_of_floorOf_eq h_floor_eq h_level] exact h_frame i /-- Two elements `σ`, `τ` of `H_b = floorGroup b` that send the frame vector `f_b` to the same vector (`orbitPoint b σ⁻¹` is `σ f_b`) differ on the right by an element of `Q_{b+1} ∩ H_b`. -/ lemma inv_mul_mem_of_orbitPoint_eq (hσ : σ ∈ floorGroup b) (hτ : τ ∈ floorGroup b) (h_orbit : orbitPoint b σ⁻¹ = orbitPoint b τ⁻¹) : σ⁻¹ * τ ∈ partialUnitriangularGroup (b + 1) ⊓ floorGroup b := by have h_mem : σ⁻¹ * τ ∈ floorGroup b := mul_mem (inv_mem hσ) hτ have h_image : τ.val.val *ᵥ Pi.single (𝔰.besselFrame b) 1 = σ.val.val *ᵥ Pi.single (𝔰.besselFrame b) 1 := by simpa [orbitPoint] using h_orbit.symm refine mem_inf.2 ⟨(mem_partialUnitriangularGroup_succ_iff h_mem).2 (orbitPoint_eq_iff.2 ?_), h_mem⟩ calc (σ⁻¹ * τ).val.val *ᵥ Pi.single (𝔰.besselFrame b) 1 = σ⁻¹.val.val *ᵥ τ.val.val *ᵥ Pi.single (𝔰.besselFrame b) 1 := (mulVec_mulVec _ _ _).symm _ = σ⁻¹.val.val *ᵥ σ.val.val *ᵥ Pi.single (𝔰.besselFrame b) 1 := by rw [h_image] _ = Pi.single (𝔰.besselFrame b) 1 := by simp [mulVec_mulVec, -mulVec_single] /-- The unitriangular group `𝖴 = besselU` lies in every `Q_l = partialUnitriangularGroup l`. -/ @[simp] lemma _root_.New.mem_partialUnitriangularGroup_of_mem_besselU (hg : g ∈ besselU) : g ∈ partialUnitriangularGroup l := mem_partialUnitriangularGroup.2 fun i j h_level _ ↦ mem_besselU.1 hg i j h_level /-- For `l ≥ ϱ` the group `𝒩_{ simp [inclMatrix, mulVec_eq_sum, Subtype.coe_eq_iff, hi, Matrix.one_apply] end /-- Let `l ≤ ϱ` and let `s` fix the basis vectors of floor below `l`. Applying the block of `s` on the indices of floor at least `l` and then extending by zero is the same as extending by zero and then applying `s`. -/ lemma inclMatrix_mulVec_floor_block (hl : l ≤ 𝔰.ϱ) (hs : s ∈ floorGroup l) (u : {i : 𝔰.BesselIndex // l ≤ floorOf i} → A) : inclMatrix A Subtype.val *ᵥ s.val.val.toSquareBlockProp (fun i : 𝔰.BesselIndex ↦ l ≤ floorOf i) *ᵥ u = s.val.val *ᵥ inclMatrix A Subtype.val *ᵥ u := by rw [mulVec_mulVec, mulVec_mulVec, mul_inclMatrix] congr 1 ext i j -- Extend the column `j` of the block by zero; `s` vanishes in the rows of floor below `l`. change (inclMatrix A Subtype.val *ᵥ fun k : {i : 𝔰.BesselIndex // l ≤ floorOf i} ↦ s.val k j) i = s.val i j rw [inclMatrix_val_mulVec] split_ifs with hi · rfl · rw [apply_eq_one_apply_of_mem_floorGroup hs i j (.inl (by lia)), one_apply_ne (by grind)] /-- For `σ` in the fixer `H_b` of the floors below `b` and `s` in `Q_{b+1}`, the column of `σ` at the frame vector `f_b` vanishes in the rows of floor below `b` and is that of `σ * s` in the other rows. -/ lemma floorGroup_apply_besselFrame (hσ : σ ∈ floorGroup b) (hs : s ∈ partialUnitriangularGroup (b + 1)) (i : 𝔰.BesselIndex) : σ.val i (𝔰.besselFrame b) = if floorOf i < b then 0 else (σ * s).val i (𝔰.besselFrame b) := by split_ifs with hi · grind [one_apply_ne] -- Compare `σ * 1` with `σ * s` term by term: row `i` of `σ` vanishes in the columns of floor -- below `b`, and in the other rows the column `𝔰.besselFrame b` of `s` is that of `1`. have h_term (k : 𝔰.BesselIndex) : σ.val i k * (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) k (𝔰.besselFrame b) = σ.val i k * s.val k (𝔰.besselFrame b) := by by_cases hk : floorOf k < b · rw [mem_floorGroup.1 hσ i k hk, one_apply_ne (by grind), zero_mul, zero_mul] · grind simpa [Matrix.mul_apply, Matrix.one_apply] using Finset.sum_congr rfl fun k (_ : k ∈ Finset.univ) ↦ h_term k /-- A column of `weylOn P p` on a floor that is exchanged has its only entry in the opposite row. -/ lemma weylOn_apply_of_swapped {p : ℕ → A} (i : 𝔰.BesselIndex) {k : 𝔰.BesselIndex} (hk : P (floorOf k) ∧ floorOf k < 𝔰.ϱ ∧ IsUnit (p (floorOf k))) : (weylOn P p : T.G).val i k = if i = oppositeIndex k then if level k < 𝔰.ϱ then p (floorOf k) else (star (p (floorOf k)))⁻¹ʳ else 0 := by simp [weylOn, hk] /-- A column of `weylOn P p` on a floor that is not exchanged is that of the identity matrix. -/ lemma weylOn_apply_of_not_swapped {p : ℕ → A} (i : 𝔰.BesselIndex) {k : 𝔰.BesselIndex} (hk : ¬(P (floorOf k) ∧ floorOf k < 𝔰.ϱ ∧ IsUnit (p (floorOf k)))) : (weylOn P p : T.G).val i k = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) i k := by simp [weylOn, hk, Matrix.one_apply] /-- The Weyl element of floor `l` fixes the basis vectors of floor below `l`. -/ @[simp] lemma floorWeyl_mem_floorGroup {c : A} : floorWeyl l c ∈ T.floorGroup l := mem_floorGroup.2 fun i _ h_floor ↦ weylOn_apply_of_not_swapped i fun h_swapped ↦ h_floor.ne h_swapped.left /-- The Weyl element `weylOn P p`, which exchanges the hyperbolic pairs on the floors satisfying `P`, commutes with the fixer `H_l` of the floors below `l` if `P` holds only below `l`. -/ lemma commute_weylOn {p : ℕ → A} (hP : ∀ a : ℕ, P a → a < l) (hs : s ∈ floorGroup l) : Commute (weylOn P p) s := by classical ext i k have h_entry (i j : 𝔰.BesselIndex) (hij : floorOf i < l ∧ floorOf i < 𝔰.ϱ ∨ floorOf j < l) : s.val i j = if i = j then 1 else 0 := apply_eq_one_apply_of_mem_floorGroup hs i j hij have h_weyl (i j : 𝔰.BesselIndex) : (weylOn P p : T.G).val i j = if P (floorOf j) ∧ floorOf j < 𝔰.ϱ ∧ IsUnit (p (floorOf j)) then if i = oppositeIndex j then if level j < 𝔰.ϱ then p (floorOf j) else (star (p (floorOf j)))⁻¹ʳ else 0 else if i = j then 1 else 0 := by grind only [weylOn_apply_of_swapped, weylOn_apply_of_not_swapped, Matrix.one_apply] -- Row `i` of `weylOn P p` vanishes outside the column `i'`, and column `k` outside the row `k'`. let i' : 𝔰.BesselIndex := if P (floorOf i) ∧ floorOf i < 𝔰.ϱ ∧ IsUnit (p (floorOf i)) then oppositeIndex i else i let k' : 𝔰.BesselIndex := if P (floorOf k) ∧ floorOf k < 𝔰.ϱ ∧ IsUnit (p (floorOf k)) then oppositeIndex k else k have h_left : (weylOn P p * s).val i k = (weylOn P p : T.G).val i i' * s.val i' k := sum_eq_single i' fun j ↦ by grind (splits := 20) only [oppositeIndex_involutive_and_floorOf_level j] have h_right : (s * weylOn P p).val i k = s.val i k' * (weylOn P p : T.G).val k' k := sum_eq_single k' (by grind only) rw [h_left, h_right] -- On an exchanged floor, which is below `l`, the rows and columns of `s` are those of `1`. grind (splits := 20) only [oppositeIndex_involutive_and_floorOf_level] @[simp] lemma weylElem_zero : (weylElem 0 p : T.G) = 1 := by ext i k exact weylOn_apply_of_not_swapped i (by simp) /-- The Weyl element of length `l + 1` is the Weyl element of floor `l` with parameter `p l` times the Weyl element of length `l`. -/ lemma weylElem_succ : (weylElem (l + 1) p : T.G) = floorWeyl l (p l).val * weylElem l p := by ext i k by_cases hk : floorOf k < l ∧ floorOf k < 𝔰.ϱ · -- The right factor moves `k` to the opposite index, which the left factor fixes. have h_floor : floorOf (oppositeIndex k) ≠ l := by grind only [oppositeIndex_involutive_and_floorOf_level k] by_cases hi : i = oppositeIndex k <;> simp [weylElem, weylOn, floorWeyl, Matrix.mul_apply, hk, hk.left.le, h_floor, hi] · -- The right factor fixes `k`; both sides move it exactly when its floor is `l < ϱ`. have h_iff : floorOf k ≤ l ∧ floorOf k < 𝔰.ϱ ↔ floorOf k = l ∧ floorOf k < 𝔰.ϱ := by lia by_cases hl : floorOf k = l ∧ floorOf k < 𝔰.ϱ · simp [weylElem, weylOn, floorWeyl, Matrix.mul_apply, ← hl.left, hl.right] · simp [weylElem, weylOn, floorWeyl, Matrix.mul_apply, hk, h_iff, hl] /-- The Weyl element of length `l` does not depend on the parameter `p l`. -/ @[simp] lemma weylElem_update (c : Aˣ) : (weylElem l (Function.update p l c) : T.G) = weylElem l p := by ext i k by_cases hk : floorOf k < l ∧ floorOf k < 𝔰.ϱ · simp [weylElem, weylOn, Function.update_of_ne hk.left.ne] · simp [weylElem, weylOn, hk] /-- The Weyl element of length `l` commutes with the fixer of the floors below `l`. -/ lemma commute_weylElem (hs : s ∈ floorGroup l) : Commute (weylElem l p) s := commute_weylOn (fun _ ha ↦ ha) hs /-- Conjugating the parameters inverts the Weyl element. -/ @[simp] lemma weylElem_star : (weylElem l (star p) : T.G) = (weylElem l p)⁻¹ := by -- In `weylOn` the inverse matrix is by definition the one with the parameters `star p`. ext rfl lemma weylElem_left_comm (hs : s ∈ floorGroup l) : weylElem l p * (s * g) = s * (weylElem l p * g) := (commute_weylElem hs).left_comm g lemma weylElem_inv_left_comm (hs : s ∈ floorGroup l) : (weylElem l p)⁻¹ * (s * g) = s * ((weylElem l p)⁻¹ * g) := (commute_weylElem hs).inv_left.left_comm g /-- For `s` in the fixer `H_l` of the floors below `l`, the Weyl element `w_p` of length `l` and its inverse can be moved past `s` on the left. -/ lemma weylElem_mul_left_comm (hs : s ∈ floorGroup l) : weylElem l p * (s * g) = s * (weylElem l p * g) ∧ (weylElem l p)⁻¹ * (s * g) = s * ((weylElem l p)⁻¹ * g) := ⟨weylElem_left_comm hs, weylElem_inv_left_comm hs⟩ /-- The diagonal entry `b` of the frame Gram matrix of `σ τ⁻¹`, that is the hermitian product of `f_b` and `σ τ⁻¹ f_b`, is the hermitian product of `σ⁻¹ f_b = orbitPoint b σ` and `τ⁻¹ f_b = orbitPoint b τ` (for isometries `σ τ : T.G` and `b : Fin 𝔰.n`), where `f_b` is the frame vector number `b`. -/ lemma frameGram_eq_form_orbitPoint : T.frameGram (σ * τ⁻¹).val b b = star (orbitPoint b σ) ⬝ᵥ T.splitGram *ᵥ orbitPoint b τ := by -- Move both vectors by the isometry `σ`, which takes `orbitPoint b σ` to the frame vector. rw [← U.form_mulVec_mulVec σ, orbitPoint_eq_iff.1 rfl, orbitPoint, mulVec_mulVec, mulVec_mulVec] simp [frameGram, mul_assoc] /-- The hermitian product of `e_a` with its image `c e*_a` under the Weyl element of floor `a` is `c`. -/ lemma frameGram_floorWeyl (c : Aˣ) : T.frameGram (floorWeyl a c : T.G).val a.castSucc a.castSucc = c := by simp [frameGram, floorWeyl, weylOn, level, Matrix.mul_apply] /-! ### Leading minors of the products of the frame vectors -/ /-- An element `s` of `Q_l` changes each frame vector of index below `l` by a combination of the earlier ones. So a right factor `s` keeps the leading minors of order `j ≤ l` of the block of a matrix `M` on the frame. -/ lemma leadingMinor_submatrix_mul_of_mem_partialUnitriangularGroup {l : ℕ} {s : T.G} (hs : s ∈ partialUnitriangularGroup l) {j : Fin (𝔰.n + 1)} (hj : j.val ≤ l) (M : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) : leadingMinor ((M * s.val.val).submatrix 𝔰.besselFrame 𝔰.besselFrame) j = leadingMinor (M.submatrix 𝔰.besselFrame 𝔰.besselFrame) j := by let f (a : Fin j) : 𝔰.BesselIndex := 𝔰.besselFrame (a.castLE j.is_le) have f_injective : Function.Injective f := besselFrame_injective.comp (Fin.castLE_injective _) have f_level (a : Fin j) : level (f a) = a := level_besselFrame _ have f_floor (a : Fin j) : floorOf (f a) = a := floorOf_besselFrame have h_column (i : 𝔰.BesselIndex) (b : Fin j) (hi : b ≤ level i) : s.val.val i (f b) = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) i (f b) := have hb : b.val < l := b.is_lt.trans_le hj mem_partialUnitriangularGroup.1 hs i (f b) ((f_level b).trans_le hi) (.inl ⟨(f_floor b).trans_lt hb, (f_level b).trans_lt hb⟩) -- An index of level below `b` is that of an earlier frame vector. have h_level (i : 𝔰.BesselIndex) (hi : i ∉ Set.range f) (b : Fin j) : b ≤ level i := by by_contra! h_lt have h_floor : floorOf i = level i := by grind [floorOf_level_cases i] exact hi ⟨⟨level i, h_lt.trans b.is_lt⟩, (eq_besselFrame_of_floorOf_eq h_floor le_rfl).symm⟩ have h_block : (M * s.val.val).submatrix f f = M.submatrix f f * s.val.val.submatrix f f := by ext a b rw [submatrix_apply, mul_apply, mul_apply] refine (sum_of_injective f f_injective _ _ (fun i hi ↦ ?_) fun _ ↦ rfl).symm rw [h_column i b (h_level i hi b), one_apply_ne fun h_eq ↦ hi ⟨b, h_eq.symm⟩, mul_zero] have h_det : (s.val.val.submatrix f f).det = 1 := by refine det_eq_one_of_unitriangular (lev := Fin.val) fun a b hba ↦ ?_ rw [← submatrix_one f f_injective] exact h_column (f a) b (hba.trans_eq (f_level a).symm) exact det_eq_of_eq_mul_det_one _ h_det h_block /-- The leading minors of order `j ≤ l` of the matrix `T.frameGram γ` of the products `h(f_a, γ f_b)` of the frame vectors, h being the form `splitGram T`, do not change when `γ` is multiplied on either side by elements of `Q_l`. Here `Q_l` = `partialUnitriangularGroup l`, whose elements agree with the identity at each entry (i, j) with level j ≤ level i whose column j has floor and level below l. -/ lemma leadingMinor_frameGram_partialUnitriangularGroup_mul {l : ℕ} {s s' : T.G} (hs : s ∈ partialUnitriangularGroup l) (hs' : s' ∈ partialUnitriangularGroup l) (γ : T.G) {j : Fin (𝔰.n + 1)} (hj : j.val ≤ l) : leadingMinor (T.frameGram (s⁻¹ * γ * s').val.val) j = leadingMinor (T.frameGram γ.val.val) j := by -- With `J = T.splitGram` we have `J s⁻¹ = sᴴ J`, so the conjugate transpose turns the factor on -- the left into a factor on the right. have h_form : T.splitGram * (s⁻¹ * γ * s').val.val = ((T.splitGram * γ.val.val)ᴴ * s.val.val)ᴴ * s'.val.val := by simp [← Matrix.mul_assoc, ← U.form_mul_inv_eq] have h_conj (M : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) : leadingMinor (Mᴴ.submatrix 𝔰.besselFrame 𝔰.besselFrame) j = star (leadingMinor (M.submatrix 𝔰.besselFrame 𝔰.besselFrame) j) := det_conjTranspose ((M.submatrix _ _).submatrix _ _) rw [frameGram, h_form, leadingMinor_submatrix_mul_of_mem_partialUnitriangularGroup hs' hj, h_conj, leadingMinor_submatrix_mul_of_mem_partialUnitriangularGroup hs hj, h_conj, star_star, frameGram] /-- The leading minors of the matrix `T.frameGram γ` of the products `h(f_a, γ f_b)` of the frame vectors do not change when `γ` is multiplied on either side by elements of the unipotent group `New.Shape.Form.besselU`. -/ lemma _root_.New.Filling.leadingMinor_frameGram_besselU_mul {γ u u' : T.G} (hu : u ∈ T.besselU) (hu' : u' ∈ T.besselU) (j : Fin (𝔰.ϱ + 1 + 1)) : leadingMinor (T.frameGram (u⁻¹ * γ * u').val) j = leadingMinor (T.frameGram γ) j := leadingMinor_frameGram_partialUnitriangularGroup_mul (mem_partialUnitriangularGroup_of_mem_besselU hu) (mem_partialUnitriangularGroup_of_mem_besselU hu') γ le_rfl /-- Let `l ≤ ϱ`, and let `w_p = weylElem l p` be the isometry with `e_a ↦ p a • e*_a` and `e*_a ↦ e_a / conj (p a)` for `a < l`, fixing the other basis vectors. For `j ≤ l`, the leading principal minor of order `j` of `frameGram w_p` equals `p 0 * ⋯ * p (j - 1)`. Here `frameGram w_p` is the matrix of the products `h(f_a, w_p f_b)`, and `f = (e_0, …, e_{ϱ-1}, z)` is the frame. -/ lemma leadingMinor_frameGram_weylElem {l : ℕ} (hl : l ≤ 𝔰.ϱ) (p : ℕ → Aˣ) {j : Fin (𝔰.n + 1)} (hj : j.val ≤ l) : leadingMinor (T.frameGram (weylElem l p : T.G).val.val) j = (∏ a ∈ Finset.range j, p a).val := by -- `w_p` sends `e_b` to `p b` times `e*_b`, so the block is diagonal. have h_frame (a : Fin j) : 𝔰.besselFrame (a.castLE j.is_le) = inl ⟨a, by lia⟩ := besselFrame_castSucc ⟨a, by lia⟩ have h_block : (T.frameGram (weylElem l p : T.G).val.val).submatrix (Fin.castLE j.is_le) (Fin.castLE j.is_le) = diagonal fun a : Fin j ↦ (p a).val := by ext a b have hb : b.val < l := by lia simp +contextual [frameGram, h_frame, weylElem, weylOn, level, Matrix.mul_apply, diagonal_apply, hb, hb.trans_le hl, Fin.ext_iff] rw [leadingMinor, h_block, det_diagonal, Units.coe_prod, Finset.prod_range] /-! ### Action on coordinates of vectors -/ /-- An index has level at most `ϱ` or is some `e*_b`, of floor `b`. -/ lemma level_le_or_exists_eq_eStar (k : 𝔰.BesselIndex) : level k ≤ 𝔰.ϱ ∨ ∃ b : Fin 𝔰.ϱ, k = eStar b ∧ floorOf k = b := by obtain a | m | a := k <;> simp [level] /-- If the coordinates `e*_b` of `v : 𝔰.BesselIndex → A` with `b < j` vanish (`j : ℕ`), an element of the unitriangular group `𝒩_{ rw [← one_mulVec v] refine Finset.sum_congr rfl fun k _ ↦ ?_ change g.val i k * v k = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) i k * v k grind [level_le_or_exists_eq_eStar k] /-- Let `s` lie in `Q_j`, the group of isometries that are unitriangular in the columns of floor and level below `j`. For `a < j`, the row `e*_a` of `s` is that of `1` outside the columns `e*_b` with `b < a`. -/ lemma partialUnitriangularGroup_apply_eStar (hs : s ∈ partialUnitriangularGroup j) (ha : a < j) (k : 𝔰.BesselIndex) (hk : ∀ b : Fin 𝔰.ϱ, b < a → k ≠ eStar b) : s.val (eStar a) k = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) (eStar a) k := by -- The row `inl a` of `J s = (s⁻¹)ᴴ J` is the row `eStar a` of `s`; the column `inl a` of -- `s⁻¹ ∈ partialUnitriangularGroup j` is that of `1` at the levels `≥ a`. have h_col (x : 𝔰.BesselIndex) (hx : a ≤ level x) : s⁻¹.val x (inl a) = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) x (inl a) := mem_partialUnitriangularGroup.1 (inv_mem hs) x (inl a) hx (.inl ⟨ha, ha⟩) have h_form : T.splitGram * s.val.val = s⁻¹.val.valᴴ * T.splitGram := by simpa using U.form_mul_inv_eq s⁻¹ have h_row : s.val (eStar a) k = ∑ x : 𝔰.BesselIndex, star (s⁻¹.val x (inl a)) * T.splitGram x k := by simpa [Matrix.mul_apply] using congrFun₂ h_form (inl a) k rw [h_row] obtain b | m | b := k · have h_level : a ≤ level (eStar b : 𝔰.BesselIndex) := show (a : ℕ) ≤ 2 * 𝔰.ϱ - b by lia rw [sum_eq_single (eStar b) (by simp +contextual [eq_comm]), h_col _ h_level] simp · -- Only middle indices `x` pair with a middle index, and there the column `inl a` vanishes. have h_middle (m' : 𝔰.MiddleIndex) : s⁻¹.val (inr (inl m')) (inl a) = 0 := (h_col (inr (inl m')) a.is_lt.le).trans (one_apply_ne inr_ne_inl) simp only [sum_sum_type, h_middle] simp · have hab : a ≤ b := not_lt.1 fun hb ↦ hk b hb rfl rw [sum_eq_single (inl b) (by simp +contextual [eq_comm]), h_col (inl b) hab] simp [Matrix.one_apply, apply_ite star, eq_comm] /-- For `a < j`, an element `s` of `Q_j` (`partialUnitriangularGroup j`, `j : ℕ`) keeps, under `*ᵥ`, the coordinate `e*_a` of a `v : 𝔰.BesselIndex → A` that is a vector whose coordinates `e*_b` with `b < a` vanish. -/ lemma partialUnitriangularGroup_mulVec_eStar (hs : s ∈ partialUnitriangularGroup j) (ha : a < j) (hv : ∀ b : Fin 𝔰.ϱ, b < a → v (eStar b) = 0) : (s.val.val *ᵥ v) (eStar a) = v (eStar a) := by -- Compare with `1 *ᵥ v` term by term: the rows differ only where `v` vanishes. conv_rhs => rw [← one_mulVec v] refine Finset.sum_congr rfl fun k _ ↦ ?_ change s.val (eStar a) k * v k = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) (eStar a) k * v k grind [partialUnitriangularGroup_apply_eStar hs ha k] end New.Floors.FloorGroups /-! ## The Bessel subgroup, its unipotent part and the simple root sum `New.frameMatrix` is the square block of a matrix on the frame. -/ namespace New open Finset Matrix Subgroup Fin Floors FloorGroups variable {R : Type} [CommRing R] [StarRing R] {𝔰 : Shape} {T : 𝔰.Form R} /-- The group H: the floor group H_{ϱ+1}, the fixer of all basis vectors outside `κ`. -/ abbrev Shape.Form.besselH : Subgroup T.G := T.floorGroup 𝔰.n /-- The Bessel subgroup S: the group `Q_{ϱ+1}` of the isometries whose columns at the frame vectors agree with those of the identity matrix on and below the diagonal blocks. It contains the unipotent group `New.Shape.Form.besselU` and H = `New.Shape.Form.besselH`. -/ abbrev Shape.Form.besselS : Subgroup T.G := T.partialUnitriangularGroup 𝔰.n export Shape.Form (besselH besselS) variable {Q : Subring R} {g : Rˣ} {h u s : T.G} /-- If the middle block `T` is hermitian and invertible, so is the whole Gram matrix. -/ instance [h : IsHermitianUnit T] : IsHermitianUnit T.splitGram where conjTranspose_eq := by simp [splitGram, h.conjTranspose_eq, fromBlocks_conjTranspose, conjTranspose_fromRows_eq_fromCols_conjTranspose, conjTranspose_fromCols_eq_fromRows_conjTranspose] isUnit := .of_mul_eq_one _ (splitGram_mul_splitGram_eq_one h.isUnit.mul_val_inv) /-! ### Elements of `H` and the frame -/ omit [StarRing R] in /-- A right factor that fixes the basis vectors outside `κ` does not change the image of the frame. -/ lemma frameImage_mul_of_mem_agreeWithOneOn {g : GL 𝔰.BesselIndex R} (hg : g ∈ agreeWithOneOn (fun _ j : 𝔰.BesselIndex ↦ floorOf j < 𝔰.n) R fun _ _ _ hj ↦ Or.inr hj) (x : Matrix 𝔰.BesselIndex 𝔰.BesselIndex R) : frameImage (x * g.val) = frameImage x := by ext i b have h_col (k : 𝔰.BesselIndex) : g.val k (𝔰.besselFrame b) = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex R) k (𝔰.besselFrame b) := hg k _ (floorOf_besselFrame.trans_lt b.is_lt) simp [Matrix.mul_apply, h_col, Matrix.one_apply, -Fintype.sum_sum_type] /-- A right factor in `H` does not change the block on the frame. -/ lemma frameMatrix_mul_besselH (s : T.G) (hh : h ∈ besselH) : frameMatrix (s * h) = frameMatrix s := funext fun i ↦ congrFun (frameImage_mul_of_mem_agreeWithOneOn hh s) (𝔰.besselFrame i) lemma mem_besselFixer_of_mem_besselU0 (hu : u ∈ besselU0) : u ∈ besselFixer := (mem_inf.1 hu).right /-- An element of `H` fixes the frame vectors, whose floors are at most `ϱ`. -/ lemma mem_besselFixer_of_mem_besselH (hh : h ∈ besselH) : h ∈ besselFixer := by rintro i _ ⟨b, rfl⟩ exact mem_floorGroup.1 hh i _ (floorOf_besselFrame.trans_lt b.is_lt) /-- An isometry that fixes every frame vector lies in the Bessel subgroup `S`. -/ lemma mem_besselS_of_mem_besselFixer (hs : s ∈ besselFixer) : s ∈ besselS := by refine mem_partialUnitriangularGroup.2 fun i j _ hj ↦ ?_ -- The columns on which `S` puts a condition are those of the frame vectors. have h_frame : j = 𝔰.besselFrame ⟨floorOf j, by lia⟩ := eq_besselFrame_of_floorOf_eq rfl (by grind) exact hs i j ⟨_, h_frame.symm⟩ /-- An isometry `s` lies in the Bessel subgroup `besselS` if and only if, for every vector `f_a` of the frame `(e_0, …, e_{ϱ-1}, z)`, the difference `s f_a - f_a` lies in the span of the earlier frame vectors. -/ lemma Filling.mem_besselS_iff_frameImage : s ∈ besselS ↔ ∀ (i : SplitIndex 𝔰.ϱ 𝔰.MiddleIndex) (a : Fin (𝔰.ϱ + 1)), a.val ≤ BesselIndex.level i → frameImage s.val.val i a = frameImage 1 i a := by rw [mem_partialUnitriangularGroup] constructor · intro h i a ha exact h i (𝔰.besselFrame a) (by rwa [level_besselFrame]) (Or.inl (by simp [floorOf_besselFrame, level_besselFrame, a.isLt])) · intro h i j hji hj -- the condition on `j` says that it indexes a frame vector obtain ⟨a, rfl⟩ : ∃ a : Fin (𝔰.ϱ + 1), 𝔰.besselFrame a = j := by rcases j with a | (a | ⟨⟩) | a · exact ⟨a.castSucc, by simp⟩ · simp [floorOf] at hj · exact ⟨Fin.last 𝔰.ϱ, by simp⟩ · simp [BesselIndex.level] at hj lia exact h i a (by rwa [level_besselFrame] at hji) /-! ### `S` normalises `𝖴` -/ /-- The Bessel subgroup `S`, whose elements are unitriangular in the columns of the frame vectors, normalises the group `𝖴` of block unitriangular isometries. -/ lemma besselS_le_normalizer_besselU : T.besselS ≤ normalizer T.besselU := by refine le_normalizer_iff.2 fun s hs u hu ↦ ?_ -- `s` is block upper triangular for the levels: `partialUnitriangularGroup_apply_eStar` gives the -- rows of the `eStar a`, the definition of `partialUnitriangularGroup` the columns of the frame. have h_tri : s.val.val.BlockTriangular BesselIndex.level := by intro i j hij rw [← one_apply_ne (α := R) (show i ≠ j by grind)] by_cases hj : floorOf j < 𝔰.n ∧ BesselIndex.level j < 𝔰.n · exact mem_partialUnitriangularGroup.1 hs i j hij.le (.inl hj) · -- Here `j` has level at least `ϱ`, so `i` is some `e*_a`. obtain ⟨a, rfl, -⟩ := (level_le_or_exists_eq_eStar i).resolve_left (by grind) refine partialUnitriangularGroup_apply_eStar hs (by lia) j fun b hb h_eq ↦ ?_ simp only [h_eq, BesselIndex.level, Sum.elim_inr] at hij lia -- So is `s⁻¹`, and conjugation by such a matrix keeps the unitriangular group. exact conj_mem_unitriangular (d := s.val⁻¹) ((parabolic _).inv_mem h_tri) (mem_subgroupOf.1 hu) /-! ### The additive character on `S` -/ /-- For s in the unitary group, the sum σ(s) of the entries just above the diagonal of the block of s on the frame (e_0, …, e_{ϱ-1}, z). -/ def simpleRootSum (s : T.G) : R := ∑ a : Fin 𝔰.ϱ, s.val (𝔰.besselFrame (castSucc a)) (𝔰.besselFrame a.succ) /-- The sum σ of the entries just above the diagonal on the frame is additive on the Bessel subgroup S. -/ lemma simpleRootSum_mul (hh : h ∈ besselS) (hu : u ∈ besselS) : simpleRootSum (h * u) = simpleRootSum h + simpleRootSum u := by rw [simpleRootSum, simpleRootSum, simpleRootSum, ← sum_add_distrib] refine sum_congr rfl fun i _ ↦ ?_ set x : 𝔰.BesselIndex := 𝔰.besselFrame i.castSucc set y : 𝔰.BesselIndex := 𝔰.besselFrame i.succ -- In the entry `(x, y)` of the product only the terms with summed index `y` or `x` survive: the -- column of `u` vanishes at the other indices of level `> i`, and the row of `h` at those of -- level `< i`. have h_entry : (h * u).val x y = h.val x y * u.val y y + h.val x x * u.val x y := Fintype.sum_eq_add y x (by grind [level_besselFrame]) (by grind [one_apply_ne]) have h_diag : h.val x x = 1 := by grind [one_apply_eq (n := 𝔰.BesselIndex) (α := R)] have hu_diag : u.val y y = 1 := by grind [one_apply_eq (n := 𝔰.BesselIndex) (α := R)] rw [h_entry, h_diag, hu_diag, mul_one, one_mul] /-! ### Principal congruence subgroups and the factor `H` -/ /-- An isometry lies in the congruence subgroup of level `g` over `Q` exactly when it lies in `GL(Q)` and `g⁻¹ (u - 1)` has entries in `Q`. -/ lemma mem_unitaryLevel_splitGram_iff : u ∈ unitaryLevel Q g T.splitGram ↔ u.val ∈ intGL 𝔰.BesselIndex Q ∧ IsIntMatrix Q (g⁻¹ • (u.val.val - 1)) := Iff.rfl /-- If `u` is integral over `Q` and congruent to `1` modulo `g` (`New.unitaryLevel`), the sum of its entries just above the diagonal on the frame is divisible by `g` in `Q`. -/ lemma inv_mul_simpleRootSum_mem (hu : u ∈ unitaryLevel Q g T.splitGram) : (g⁻¹ : Rˣ) * simpleRootSum u ∈ Q := by rw [simpleRootSum, mul_sum] refine sum_mem fun a _ ↦ ?_ have h_entry : (g⁻¹ • (u.val.val - 1)) (𝔰.besselFrame a.castSucc) (𝔰.besselFrame a.succ) ∈ Q := (mem_unitaryLevel_splitGram_iff.1 hu).right _ _ have h_ne : 𝔰.besselFrame a.castSucc ≠ 𝔰.besselFrame a.succ := besselFrame_injective.ne castSucc_lt_succ.ne rwa [Matrix.smul_apply, Matrix.sub_apply, one_apply_ne h_ne, sub_zero, Units.smul_def, smul_eq_mul] at h_entry /-- The sum of the entries just above the diagonal on the frame vanishes on `H`, whose columns at the frame vectors are those of `1`. -/ lemma simpleRootSum_eq_zero_of_mem_besselH (hh : h ∈ besselH) : simpleRootSum h = 0 := sum_eq_zero (by grind [one_apply_ne]) /-- For `u` in `𝖴` and `h` in `H`, each entry of `h` is the entry at the same place of `u * h` or of `1`. -/ lemma besselH_apply_eq_or (hu : u ∈ besselU) (hh : h ∈ besselH) (i j : 𝔰.BesselIndex) : h.val i j = (u * h).val i j ∨ h.val i j = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex R) i j := by revert i j simp [apply_eq_one_apply_of_mem_floorGroup hh, apply_inr_of_mem_besselU hu, Matrix.mul_apply] /-- Let `u` be block unitriangular (`besselU`) and let `h` fix the basis vectors outside `κ` (`besselH`). If `u * h` is integral over `Q` and congruent to `1` modulo `g` (`New.unitaryLevel`), then so is `h`. -/ lemma mem_unitaryLevel_of_besselU_mul (hu : u ∈ besselU) (hh : h ∈ besselH) (h_level : u * h ∈ unitaryLevel Q g T.splitGram) : h ∈ unitaryLevel Q g T.splitGram := by -- Apply `besselH_apply_eq_or` to `h`, and to `h⁻¹`: the inverse `(u * h)⁻¹` is `h⁻¹` multiplied -- on the left by the unipotent `h⁻¹ * u⁻¹ * h`. have h_normalizer : h⁻¹ ∈ normalizer T.besselU := besselS_le_normalizer_besselU (mem_partialUnitriangularGroup_of_mem_floorGroup (inv_mem hh)) have h_conj : h⁻¹ * u⁻¹ * h ∈ besselU := by simpa using (mem_normalizer_iff.1 h_normalizer u⁻¹).1 (inv_mem hu) have h_inv : (u * h)⁻¹ = h⁻¹ * u⁻¹ * h * h⁻¹ := by group have h_inv_entry (i j : 𝔰.BesselIndex) : h⁻¹.val i j = (u * h)⁻¹.val i j ∨ h⁻¹.val i j = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex R) i j := by rw [h_inv] exact besselH_apply_eq_or h_conj (inv_mem hh) i j have h_one (i j : 𝔰.BesselIndex) : (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex R) i j ∈ Q := by simp [Matrix.one_apply, apply_ite (· ∈ Q)] obtain ⟨h_intGL, h_congr⟩ := mem_unitaryLevel_splitGram_iff.1 h_level obtain ⟨h_int, h_inv_int⟩ : (∀ i j : 𝔰.BesselIndex, (u * h).val i j ∈ Q) ∧ ∀ i j : 𝔰.BesselIndex, (u * h)⁻¹.val i j ∈ Q := mem_intGL.1 h_intGL -- So integrality and the congruence modulo `g` pass from `u * h` to `h`, entry by entry. refine mem_unitaryLevel_splitGram_iff.2 ⟨mem_intGL.2 ⟨fun i j ↦ ?_, fun i j ↦ ?_⟩, fun i j ↦ ?_⟩ · obtain h_eq | h_eq := besselH_apply_eq_or hu hh i j <;> rw [h_eq] exacts [h_int i j, h_one i j] · rw [← Subgroup.coe_inv] obtain h_eq | h_eq := h_inv_entry i j <;> rw [h_eq] exacts [h_inv_int i j, h_one i j] · rw [Matrix.smul_apply, Matrix.sub_apply] obtain h_eq | h_eq := besselH_apply_eq_or hu hh i j <;> rw [h_eq] · exact h_congr i j · simp /-- Let `h` and `h'` lie in `H`. If `u * (h * y)` and `u' * (h' * y)` lie in the congruence subgroup `K(g)` (`New.unitaryLevel`) for some `u` and `u'` in `𝖴`, then so does `h' / h`. So the `h` in `H` with `h * y` in `𝖴 K(g)` lie in one right coset of `H ∩ K(g)`. -/ lemma div_mem_unitaryLevel_of_besselU_mul {h h' u u' y : T.G} (hh : h ∈ T.besselH) (hh' : h' ∈ T.besselH) (hu : u ∈ T.besselU) (hu' : u' ∈ T.besselU) (h_level : u * (h * y) ∈ unitaryLevel Q g T.splitGram) (h_level' : u' * (h' * y) ∈ unitaryLevel Q g T.splitGram) : h' / h ∈ unitaryLevel Q g T.splitGram := by -- `H` normalises `𝖴`, so the quotient of the two elements of `K(g)` lies in `𝖴 (h' / h)`. have h_div : h' / h ∈ T.besselH := div_mem hh' hh have h_conj : h' / h * u⁻¹ * (h' / h)⁻¹ ∈ T.besselU := (besselS_le_normalizer_besselU (mem_partialUnitriangularGroup_of_mem_floorGroup h_div) u⁻¹).1 (inv_mem hu) have h_eq : u' * (h' / h * u⁻¹ * (h' / h)⁻¹) * (h' / h) = u' * (h' * y) / (u * (h * y)) := by simp [div_eq_mul_inv, mul_assoc] exact mem_unitaryLevel_of_besselU_mul (mul_mem hu' h_conj) h_div (by simpa only [h_eq] using div_mem h_level' h_level) end New end