Riemann hypothesis: the Lean proof, cleaned up together
The 2026 Lean proof of the Riemann hypothesis and GRH, machine-checked by others, not refereed, no word from Clay; cleaned up together: more readable, faster to build, the theorems unchanged

| 1 | module |
| 2 | |
| 3 | import Mathlib.Algebra.Order.Star.Int |
| 4 | public import New.Spanning.Frames.Lengths |
| 5 | |
| 6 | /-! |
| 7 | # Comparing the lengths at two points; minors and heads |
| 8 | |
| 9 | Each isometry g of the form `T.splitGram` gives a gauge, the size of g⁻¹ y, on vectors y. The |
| 10 | gauges at two points differ little on Y^(l-1) if they differ little on Y^(l), the frame vector |
| 11 | e_(l-1) has short lifts at both points, and it has a short dual that looks nearly the same from both |
| 12 | points. Over a head, such duals come from determinants of blocks of the isometries (Cramer's rule). |
| 13 | |
| 14 | Notions from other files: |
| 15 | * `S.ofSize i`, `S.vecsOfSize i`, `S.HasMatrixSize i`: the numbers x of size i (|x| ≤ L^i at a real |
| 16 | place, L^i x integral at the finite places, for a fixed scale L), and the vectors and matrices all |
| 17 | of whose entries have size i. |
| 18 | * Y^(l): the vectors orthogonal to e_0, …, e_(l-1) (`IsOrthogonalBelow l`) modulo the span of these |
| 19 | (`CongrBelow l`). The basis vectors e_a and e*_a have the indices `inl a` and `eStar a`. |
| 20 | * `S.GaugesDifferLe r g g' l t`: for each ω orthogonal to e_0, …, e_(l-1) with g⁻¹ ω of size i, the |
| 21 | class of ω in Y^(l) has a lift ω' such that (g⁻¹ ω - g'⁻¹ ω') / r has size i + t. |
| 22 | * R^(l) = `partialUnitriangularGroup l`: the isometries that change each frame vector of index below |
| 23 | l by a combination of the earlier ones. U_(<l) = `unipotentBelow l`: the isometries that are |
| 24 | unitriangular when all basis vectors other than e_a, e*_a (a < l) are put on one middle level. |
| 25 | * `S.IsHead j p`: the inverses of the products p₀ ⋯ p_(l-1), l ≤ j, have size 1. The Weyl element |
| 26 | w_p = `weylElem j p` sends e_a to p_a e*_a for a < j. |
| 27 | |
| 28 | ## Main definitions and results |
| 29 | |
| 30 | * `New.Floors.Size.GaugesDifferLe.of_succ`, |
| 31 | `New.Floors.Size.GaugesDifferLe.on_whole_space_of_hasShortDual`: the recursion down the quotients. |
| 32 | * `New.Floors.Size.GaugesDifferLe.hasMatrixSize_sub_one`: a bound on the whole space bounds the |
| 33 | matrix `(x - 1) / r`. |
| 34 | * `New.Floors.Size.leadingMinor_mem_ofSize`, `New.Floors.Size.head_products_mem_ofSize`: the leading |
| 35 | minors have bounded size. |
| 36 | * `New.Floors.Size.dual_mem_vecsOfSize`, `New.Floors.Size.hasMatrixSize_of_isHead`: short duals over |
| 37 | a head, and bounds for the sizes of g and w_p⁻¹ g. |
| 38 | |
| 39 | ## Relation to the literature |
| 40 | |
| 41 | See `New.Spanning.MainTerm.EnergyEstimate` for related work. |
| 42 | -/ |
| 43 | |
| 44 | @[expose] public section |
| 45 | |
| 46 | noncomputable section |
| 47 | |
| 48 | namespace New.Floors |
| 49 | |
| 50 | section Size |
| 51 | |
| 52 | open Matrix BesselIndex Sum Fintype FloorGroups Finset Fin |
| 53 | |
| 54 | variable {A : Type} [CommRing A] [StarRing A] {𝔰 : Shape} {T : 𝔰.Form A} |
| 55 | |
| 56 | variable {c i j : ℕ} [IsHermitianUnit T.splitGram] {s g x : T.G} {a : Fin 𝔰.ϱ} {p : ℕ → Aˣ} |
| 57 | {r : Aˣ} {S : Size T} |
| 58 | |
| 59 | namespace Size |
| 60 | |
| 61 | /-- Let the isometries `ξ` and `ξ'` change each frame vector of index below `l` by a combination of |
| 62 | the earlier ones (`partialUnitriangularGroup l`). If all entries of `ξ g` and `ξ' γ⁻¹ g` have size 1 |
| 63 | (size i: in `S.ofSize i`), then the leading minors of order `j ≤ l` of `T.frameGram γ`, the matrix |
| 64 | of the products ⟨f_a, γ f_b⟩ of the `𝔰.n = ϱ + 1` frame vectors f_a, have size `9 * 𝔰.n`. -/ |
| 65 | theorem leadingMinor_mem_ofSize {l : ℕ} {γ g ξ ξ' : T.G} (hξ : ξ ∈ partialUnitriangularGroup l) |
| 66 | (hξ' : ξ' ∈ partialUnitriangularGroup l) |
| 67 | (hg : S.HasMatrixSize 1 (↑(ξ * g) : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A)) |
| 68 | (hγg : S.HasMatrixSize 1 (↑(ξ' * (γ⁻¹ * g)) : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A)) |
| 69 | {j : Fin (𝔰.n + 1)} (hj : j.val ≤ l) : |
| 70 | leadingMinor (T.frameGram γ) j ∈ S.ofSize (9 * 𝔰.n) := by |
| 71 | -- The element `x = (ξ g) (ξ' γ⁻¹ g)⁻¹ = ξ γ ξ'⁻¹` has size 7, and `T.frameGram x` has the same |
| 72 | -- leading minors of order at most `l` as `T.frameGram γ`. |
| 73 | let x : T.G := ξ * g * (ξ' * (γ⁻¹ * g))⁻¹ |
| 74 | let X : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A := x |
| 75 | have h_size : S.HasMatrixSize 7 X := hg.mul hγg.inv |
| 76 | have h_minor : leadingMinor (T.frameGram γ) j = leadingMinor (T.frameGram X) j := by |
| 77 | have hx : ξ⁻¹ * x * ξ' = γ := by simp [x, mul_assoc] |
| 78 | rw [← leadingMinor_frameGram_partialUnitriangularGroup_mul hξ hξ' x hj, hx] |
| 79 | -- In `J x`, with `J = T.splitGram`, the row of `e_a` is the row of `e*_a` in `x`. |
| 80 | have h_row (i k : 𝔰.BesselIndex) (hi : floorOf i < 𝔰.ϱ) : |
| 81 | (T.splitGram * X) i k = X (oppositeIndex i) k := |
| 82 | splitGram_mulVec_apply (e := fun m ↦ X m k) i hi |
| 83 | have h_all : S.HasMatrixSize 9 (T.splitGram * X) := hasMatrixSize_splitGram.mul h_size |
| 84 | rw [h_minor, leadingMinor] |
| 85 | obtain ⟨_ | j, hj_lt⟩ := j |
| 86 | · rw [det_isEmpty] |
| 87 | exact (S.zero_one_mem_ofSize _).right |
| 88 | -- All rows of the minor but the last belong to vectors `e_a`, `a < ϱ`. |
| 89 | have hj_le : j ≤ 𝔰.ϱ := by lia |
| 90 | refine mem_ofSize_mono (i := 9 * (j + 1)) ?_ (by lia) |
| 91 | refine det_mem_ofSize_of_last_row _ hj_le (fun a b ↦ ?_) fun b ↦ h_all _ _ |
| 92 | rw [submatrix_apply, submatrix_apply, frameGram, submatrix_apply, |
| 93 | h_row _ _ (floorOf_besselFrame.trans_lt (a.is_lt.trans_le hj_le))] |
| 94 | exact h_size _ _ |
| 95 | |
| 96 | omit [IsHermitianUnit T.splitGram] in |
| 97 | /-- For a form `T` of shape `𝔰` over `A`, a size structure `S : Size T`, a size `c : ℕ`, matrices |
| 98 | `M`, `M'` over `𝔰.BesselIndex`, a unit `r : Aˣ`, vectors `ω`, `ζ`, `ζ'`, `ω₀'`, `f'`, and scalars |
| 99 | `α`, `μ`, suppose that `α` has size `kα`, `r⁻¹ μ` has size `kμ`, `M' f'` has size `c`, |
| 100 | `r⁻¹ (M ζ - M' ζ')` has size `c`, and `r⁻¹ (M (ω - α ζ) - M' ω₀')` has size `k₀`. If `k` is at least |
| 101 | each of `k₀`, `kα + c`, and `kμ + c`, then `r⁻¹ (M ω - M' (α ζ' + (ω₀' - μ f')))` has size |
| 102 | `k + 2`. -/ |
| 103 | private lemma diff_decomp_mem_vecsOfSize {M M' : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A} |
| 104 | {ω ζ ζ' ω₀' f' : 𝔰.BesselIndex → A} {α μ : A} {kα kμ k₀ k : ℕ} |
| 105 | (hα : α ∈ S.ofSize kα) (hμ : r⁻¹.val * μ ∈ S.ofSize kμ) (hf' : M' *ᵥ f' ∈ S.vecsOfSize c) |
| 106 | (hζ : r⁻¹.val • (M *ᵥ ζ - M' *ᵥ ζ') ∈ S.vecsOfSize c) |
| 107 | (hω₀ : r⁻¹.val • (M *ᵥ (ω - α • ζ) - M' *ᵥ ω₀') ∈ S.vecsOfSize k₀) |
| 108 | (hk₀ : k₀ ≤ k) (hkα : kα + c ≤ k) (hkμ : kμ + c ≤ k) : |
| 109 | r⁻¹.val • (M *ᵥ ω - M' *ᵥ (α • ζ' + (ω₀' - μ • f'))) ∈ S.vecsOfSize (k + 2) := by |
| 110 | have h_terms : r⁻¹.val • (M *ᵥ ω - M' *ᵥ (α • ζ' + (ω₀' - μ • f'))) = |
| 111 | r⁻¹.val • (M *ᵥ (ω - α • ζ) - M' *ᵥ ω₀') - |
| 112 | (-α • r⁻¹.val • (M *ᵥ ζ - M' *ᵥ ζ') - (r⁻¹.val * μ) • M' *ᵥ f') := by |
| 113 | simp only [mulVec_add, mulVec_sub, mulVec_smul] |
| 114 | module |
| 115 | have h_dual_term : -α • r⁻¹.val • (M *ᵥ ζ - M' *ᵥ ζ') ∈ S.vecsOfSize (kα + c) := |
| 116 | smul_mem_vecsOfSize (neg_mem_ofSize hα) hζ |
| 117 | have h_frame_term : (r⁻¹.val * μ) • M' *ᵥ f' ∈ S.vecsOfSize (kμ + c) := |
| 118 | smul_mem_vecsOfSize hμ hf' |
| 119 | rw [h_terms] |
| 120 | exact sub_mem_vecsOfSize (mem_vecsOfSize_mono hω₀ (by omega)) |
| 121 | (sub_mem_vecsOfSize (mem_vecsOfSize_mono h_dual_term hkα) |
| 122 | (mem_vecsOfSize_mono h_frame_term hkμ)) |
| 123 | |
| 124 | omit [IsHermitianUnit T.splitGram] in |
| 125 | /-- Let g, g' be isometries and r a self-adjoint unit of size 1. Write Y^(l) for the vectors |
| 126 | orthogonal to e_0, …, e_(l-1) modulo the span of these. Assume that the class of |
| 127 | e_a = `Pi.single (inl a) 1` in Y^(a) has lifts f, f' with g⁻¹ f and g'⁻¹ f' of size c. Assume also |
| 128 | that e_a has a short dual ζ in Y^(a): ⟨e_a, ζ⟩ = 1, and g⁻¹ ζ and (g⁻¹ ζ - g'⁻¹ ζ') / r have size c |
| 129 | for some lift ζ' of ζ. Suppose the lengths at g and g' differ by at most L^t modulo r on Y^(a+1): |
| 130 | each class [ω] with g⁻¹ ω of size i has a lift ω' with (g⁻¹ ω - g'⁻¹ ω') / r of size i + t. Then |
| 131 | they differ by at most L^(t + 4 c + 12) modulo r on Y^(a). -/ |
| 132 | lemma GaugesDifferLe.of_succ {g' : T.G} {t : ℕ} (hr_star : star r.val = r) |
| 133 | (hr_size : ↑r ∈ S.ofSize 1) (hg : S.InducedLengthLe g a c (Pi.single (inl a) 1)) |
| 134 | (hg' : S.InducedLengthLe g' a c (Pi.single (inl a) 1)) (h_dual : S.HasShortDual r g g' a c) |
| 135 | (h : S.GaugesDifferLe r g g' (a + 1) t) : S.GaugesDifferLe r g g' a (t + (4 * c + 12)) := by |
| 136 | -- Write ω = α ζ + ω₀ with α = ⟨e_a, ω⟩, so that ω₀ is orthogonal to e_a. The class of ω₀ in |
| 137 | -- Y^(a+1) has a lift ω₀' with g'⁻¹ ω₀' close to g⁻¹ ω₀ modulo r. Pairing with the dual ζ bounds |
| 138 | -- μ / r, where μ is the coefficient of e_a in ω₀' - ω₀, and α ζ' + ω₀' - μ f' is the lift of ω, |
| 139 | -- where f' is the short lift of e_a at g'. |
| 140 | intro i ω hω hω_len |
| 141 | obtain ⟨f, hf, hf_len⟩ : ∃ f, CongrBelow a (Pi.single (inl a) 1) f ∧ S.LengthLeAt g c f := hg |
| 142 | obtain ⟨f', hf', hf'_len⟩ : |
| 143 | ∃ f', CongrBelow a (Pi.single (inl a) 1) f' ∧ S.LengthLeAt g' c f' := hg' |
| 144 | obtain ⟨ζ, hζ, hζ_one, hζ_len, ζ', hζ', hζ_agree⟩ : ∃ ζ, IsOrthogonalBelow a ζ ∧ ζ (eStar a) = 1 ∧ |
| 145 | S.LengthLeAt g c ζ ∧ S.AgreesModulo r g g' a c ζ := h_dual |
| 146 | set α : A := ω (eStar a) with hα |
| 147 | have hα_size : α ∈ S.ofSize (c + i + 3) := by |
| 148 | have h_form : star (g⁻¹.val.val *ᵥ f) ⬝ᵥ T.splitGram *ᵥ g⁻¹.val.val *ᵥ ω = α := by |
| 149 | rw [U.form_mulVec_mulVec, hf.form_eq_left hω a.is_lt.le] |
| 150 | simp [hα] |
| 151 | rw [← h_form] |
| 152 | exact form_mem_ofSize hf_len hω_len |
| 153 | set ω₀ : 𝔰.BesselIndex → A := ω - α • ζ with hω₀ |
| 154 | have hω₀_orth : IsOrthogonalBelow (a + 1) ω₀ := fun b hb ↦ by |
| 155 | obtain hb | hb := Nat.lt_succ_iff_lt_or_eq.1 hb |
| 156 | · simp [hω₀, hω b hb, hζ b hb] |
| 157 | · simp [hω₀, hα, Fin.ext hb, hζ_one] |
| 158 | have hω₀_len : S.LengthLeAt g (c + i + 3 + c + 1) ω₀ := by |
| 159 | simpa only [LengthLeAt, hω₀, mulVec_sub, mulVec_smul] using |
| 160 | sub_mem_vecsOfSize (mem_vecsOfSize_mono hω_len) (smul_mem_vecsOfSize hα_size hζ_len) |
| 161 | obtain ⟨ω₀', hω₀', hω₀_agree⟩ : S.AgreesModulo r g g' (a + 1) (c + i + 3 + c + 1 + t) ω₀ := |
| 162 | h _ ω₀ hω₀_orth hω₀_len |
| 163 | set μ : A := ω₀' (inl a) - ω₀ (inl a) with hμ |
| 164 | have hμ_size : r⁻¹.val * μ ∈ S.ofSize (c + (c + i + 3 + c + 1 + t) + 6) := by |
| 165 | rw [hμ, ← hω₀'.form_sub_form (T := T) hω₀_orth hζ hζ_one hζ', ← U.form_mulVec_mulVec g'⁻¹, |
| 166 | ← U.form_mulVec_mulVec g⁻¹ ζ] |
| 167 | exact form_sub_form_mem_ofSize hr_star hr_size hζ_len hζ_agree (mem_vecsOfSize_mono hω₀_len) |
| 168 | hω₀_agree |
| 169 | refine ⟨α • ζ' + (ω₀' - μ • f'), fun k hk ↦ ?_, ?_⟩ |
| 170 | · rw [Pi.add_apply, hω₀'.sub_smul hf' k hk] |
| 171 | simp [hω₀, hζ' k hk] |
| 172 | · exact mem_vecsOfSize_mono (diff_decomp_mem_vecsOfSize hα_size hμ_size hf'_len hζ_agree |
| 173 | hω₀_agree (k := c + (c + i + 3 + c + 1 + t) + 6 + c) (by omega) (by omega) (by omega)) |
| 174 | |
| 175 | omit [IsHermitianUnit T.splitGram] in |
| 176 | /-- Let g, g' be isometries, r a self-adjoint unit of size 1 and j ≤ ϱ. For each a < j, let the |
| 177 | class of e_a = `Pi.single (inl a) 1` in Y^(a) have lifts f, f' with g⁻¹ f and g'⁻¹ f' of size c. Let |
| 178 | e_a also have a short dual ζ in Y^(a): ⟨e_a, ζ⟩ = 1, and g⁻¹ ζ and (g⁻¹ ζ - g'⁻¹ ζ') / r have size c |
| 179 | for some lift ζ' of ζ. Suppose the lengths at g and g' differ by at most L^t modulo r on Y^(j): each |
| 180 | class [ω] with g⁻¹ ω of size i has a lift ω' with (g⁻¹ ω - g'⁻¹ ω') / r of size i + t. Then they |
| 181 | differ by at most L^(t + (4 c + 12) j) modulo r on Y^(0), the whole space. -/ |
| 182 | lemma GaugesDifferLe.on_whole_space_of_hasShortDual {g' : T.G} {t : ℕ} (hr_star : star r.val = r) |
| 183 | (hr_size : ↑r ∈ S.ofSize 1) (hj : j ≤ 𝔰.ϱ) |
| 184 | (hg : ∀ a : Fin 𝔰.ϱ, a.val < j → S.InducedLengthLe g a c (Pi.single (inl a) 1)) |
| 185 | (hg' : ∀ a : Fin 𝔰.ϱ, a.val < j → S.InducedLengthLe g' a c (Pi.single (inl a) 1)) |
| 186 | (h_dual : ∀ a : Fin 𝔰.ϱ, a.val < j → S.HasShortDual r g g' a c) |
| 187 | (h : S.GaugesDifferLe r g g' j t) : S.GaugesDifferLe r g g' 0 (t + (4 * c + 12) * j) := by |
| 188 | induction j generalizing t with |
| 189 | | zero => simpa using h |
| 190 | | succ j ih => |
| 191 | lift j to Fin 𝔰.ϱ using hj |
| 192 | have hj_lt : j.val < j.val + 1 := j.val.lt_succ_self |
| 193 | have h_step : S.GaugesDifferLe r g g' j (t + (4 * c + 12)) := |
| 194 | h.of_succ hr_star hr_size (hg j hj_lt) (hg' j hj_lt) (h_dual j hj_lt) |
| 195 | rw [show t + (4 * c + 12) * (j.val + 1) = t + (4 * c + 12) + (4 * c + 12) * j.val by ring] |
| 196 | exact ih j.is_lt.le (fun a ha ↦ hg a (ha.trans hj_lt)) (fun a ha ↦ hg' a (ha.trans hj_lt)) |
| 197 | (fun a ha ↦ h_dual a (ha.trans hj_lt)) h_step |
| 198 | |
| 199 | /-- Let g, x be isometries and r a unit with star r = r. Suppose `S.GaugesDifferLe r g (g * x) 0 i`: |
| 200 | the lengths at g and g x differ by at most L^i modulo r on the whole space. Then r⁻¹ • (x - 1) has |
| 201 | size i + 4. Size i means entries in `S.ofSize i`, for the scale L of `S`. -/ |
| 202 | lemma GaugesDifferLe.hasMatrixSize_sub_one (hr_star : star r.val = r) |
| 203 | (h : S.GaugesDifferLe r g (g * x) 0 i) : |
| 204 | S.HasMatrixSize (i + 4) (r⁻¹.val • ((x : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) - 1)) := by |
| 205 | -- On the whole space a class has one lift, so the columns of g give those of (1 - x⁻¹) / r. The |
| 206 | -- matrix (x - 1) / r is the adjoint, for the form, of N = (x⁻¹ - 1) / r. |
| 207 | set N : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A := r⁻¹.val • (x⁻¹.val.val - 1) with hN |
| 208 | have h_col (k n : 𝔰.BesselIndex) : N n k ∈ S.ofSize i := by |
| 209 | set ω : 𝔰.BesselIndex → A := g.val.val *ᵥ Pi.single k 1 with hω |
| 210 | have hω_len : S.LengthLeAt g 0 ω := lengthLeAt_mulVec_iff.mpr (single_mem_vecsOfSize k) |
| 211 | obtain ⟨ω', h_congr, h_agree⟩ : S.AgreesModulo r g (g * x) 0 (0 + i) ω := |
| 212 | h 0 ω (fun b hb ↦ absurd hb b.val.not_lt_zero) hω_len |
| 213 | obtain rfl : ω = ω' := funext fun m ↦ (h_congr m (Nat.zero_le _)).symm |
| 214 | have h_entry : N n k = -(r⁻¹.val • (g⁻¹.val.val *ᵥ ω - (g * x)⁻¹.val.val *ᵥ ω)) n := by |
| 215 | simp only [hN, hω, mulVec_mulVec] |
| 216 | simp [mul_sub, Matrix.mul_assoc] |
| 217 | rw [h_entry, ← zero_add i] |
| 218 | exact neg_mem_ofSize (h_agree n) |
| 219 | have h_adj : T.splitGram * (r⁻¹.val • (x.val.val - 1)) = Nᴴ * T.splitGram := by |
| 220 | have h_inv : T.splitGram * x.val.val = x⁻¹.val.valᴴ * T.splitGram := by |
| 221 | simpa only [inv_inv] using U.form_mul_inv_eq x⁻¹ |
| 222 | simp [hN, hr_star, ← inverse_star_unit, h_inv, mul_sub, Matrix.sub_mul] |
| 223 | exact fun a b ↦ adjoint_apply_mem_ofSize h_adj a b fun n _ k ↦ h_col k n |
| 224 | |
| 225 | omit [IsHermitianUnit T.splitGram] in |
| 226 | /-- Let `ϱ = 𝔰.ϱ` be the number of hyperbolic pairs `e_b, e*_b` (indexed by `inl b` and |
| 227 | `eStar b`), and let `u` lie in `R^(j) = partialUnitriangularGroup j` with `a < j` (`a : Fin 𝔰.ϱ`). |
| 228 | For any matrix `M` over `𝔰.BesselIndex` and any row map `R : Fin (a + 1) → 𝔰.BesselIndex`, |
| 229 | multiplying `M` on the right by `u` preserves the determinant of the `(a + 1) × (a + 1)` submatrix |
| 230 | with rows `R` and columns `e_0, …, e_a` (`d ↦ inl (Fin.castLE a.is_lt d)`). -/ |
| 231 | private lemma det_submatrix_mul_of_mem_partialUnitriangularGroup {u : T.G} |
| 232 | (hu : u ∈ partialUnitriangularGroup j) (ha : a.val < j) |
| 233 | (M : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) (R : Fin (a + 1) → 𝔰.BesselIndex) : |
| 234 | ((M * u.val.val).submatrix R fun d ↦ inl (Fin.castLE a.is_lt d)).det = |
| 235 | (M.submatrix R fun d ↦ inl (Fin.castLE a.is_lt d)).det := by |
| 236 | -- The block of `M u` factors as `(block of M) * C`, where `C` is the block of `u` on |
| 237 | -- `e_0, …, e_a`, which is unitriangular since `u ∈ R^(j)`. |
| 238 | let ι : Fin (a + 1) → Fin 𝔰.ϱ := Fin.castLE a.is_lt |
| 239 | let f (d : Fin (a + 1)) : 𝔰.BesselIndex := inl (ι d) |
| 240 | let C : Matrix (Fin (a + 1)) (Fin (a + 1)) A := u.val.val.submatrix f f |
| 241 | have column (m : 𝔰.BesselIndex) (d : Fin (a + 1)) (hm : d ≤ level m) : |
| 242 | u.val.val m (inl (ι d)) = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) m (inl (ι d)) := |
| 243 | mem_partialUnitriangularGroup.mp hu m _ hm (by simp [ι, ha, level, val_lt_of_le]) |
| 244 | have det_C : C.det = 1 := det_eq_one_of_unitriangular (lev := id) fun b d hbd ↦ |
| 245 | (column (inl (ι b)) d hbd).trans (by simp [ι, Matrix.one_apply]) |
| 246 | have h_block : (M * u.val.val).submatrix R f = M.submatrix R f * C := by |
| 247 | have h_f : Function.Injective f := inl_injective.comp (Fin.castLE_injective _) |
| 248 | -- Rows other than e_0, …, e_a have level at least d, so the column e_d of u vanishes there. |
| 249 | have h_zero (d : Fin (a + 1)) (m : 𝔰.BesselIndex) (hm : m ∉ Set.range f) : |
| 250 | u.val.val m (f d) = 0 := by |
| 251 | change u.val.val m (inl (ι d)) = 0 |
| 252 | have h_level : ↑d ≤ level m := by |
| 253 | obtain e | (e | e) := m |
| 254 | · exact le_of_not_gt fun he ↦ hm ⟨⟨e, Nat.lt_trans he d.is_lt⟩, rfl⟩ |
| 255 | · exact (ι d).is_lt.le |
| 256 | · exact (ι d).is_lt.le.trans (le_level_eStar e) |
| 257 | rw [column m d h_level, one_apply_ne fun h_eq ↦ hm ⟨d, h_eq.symm⟩] |
| 258 | exact submatrix_mul_of_eq_zero_outside _ _ R f f h_f |
| 259 | fun _ d m hm ↦ by rw [h_zero d m hm, mul_zero] |
| 260 | exact det_eq_of_eq_mul_det_one C det_C h_block |
| 261 | |
| 262 | omit [IsHermitianUnit T.splitGram] in |
| 263 | /-- Let `ϱ = 𝔰.ϱ` be the number of hyperbolic pairs `e_b, e*_b` (indexed by `inl b` and |
| 264 | `eStar b`), `s ∈ R^(j) = partialUnitriangularGroup j`, `a < j` (`a : Fin 𝔰.ϱ`), `p : ℕ → Aˣ`, and |
| 265 | `k : 𝔰.BesselIndex`. With the Weyl element `w_p = weylElem j p` sending `e_d` to `p d • e*_d` for |
| 266 | `d < j`, the `(a + 1) × (a + 1)` submatrix of `s * w_p` with rows `e*_0, …, e*_(a-1), k` and columns |
| 267 | `e_0, …, e_a` has determinant `(∏ b ∈ Finset.range (a + 1), p b) * s k (e*_a)`. -/ |
| 268 | private lemma det_submatrix_mul_weylElem (hs : s ∈ partialUnitriangularGroup j) (ha : a.val < j) |
| 269 | (k : 𝔰.BesselIndex) : |
| 270 | ((s * weylElem j p).val.val.submatrix |
| 271 | (fun b : Fin (a + 1) ↦ if b = Fin.last a then k else eStar (Fin.castLE a.is_lt b)) |
| 272 | (fun d : Fin (a + 1) ↦ inl (Fin.castLE a.is_lt d))).det = |
| 273 | (∏ b ∈ Finset.range (a + 1), p b).val * |
| 274 | (s : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) k (eStar a) := by |
| 275 | let ι : Fin (a + 1) → Fin 𝔰.ϱ := Fin.castLE a.is_lt |
| 276 | let R (b : Fin (a + 1)) : 𝔰.BesselIndex := if b = .last a then k else eStar (ι b) |
| 277 | let f (d : Fin (a + 1)) : 𝔰.BesselIndex := inl (ι d) |
| 278 | -- Since `w_p` sends `e_d` to `p d • e*_d`, the `(R, f)` block of `s w_p` is `L`. |
| 279 | let L : Matrix (Fin (a + 1)) (Fin (a + 1)) A := |
| 280 | of fun b d ↦ s.val.val (R b) (eStar (ι d)) * p d |
| 281 | have h_weyl : (s * weylElem j p).val.val.submatrix R f = L := Matrix.ext fun b e ↦ by |
| 282 | have he_lt : e.val < j ∧ e.val < 𝔰.ϱ := by lia |
| 283 | simp [L, f, Matrix.mul_apply, ι, he_lt, weylElem, weylOn, level] |
| 284 | -- The row of s at e*_b agrees with that of 1 outside the columns e*_d, d < b; so L is lower |
| 285 | -- triangular, with p b on the diagonal for b < a. |
| 286 | have s_row (b d : Fin (a + 1)) (hbd : b ≤ d) : |
| 287 | s.val.val (eStar (ι b)) (eStar (ι d)) = if b = d then 1 else 0 := by |
| 288 | have hb : (ι b).val < j := (Nat.le_of_lt_succ b.is_lt).trans_lt ha |
| 289 | have h_ne (e : Fin 𝔰.ϱ) (he : e < ι b) : (eStar (ι d) : 𝔰.BesselIndex) ≠ eStar e := by |
| 290 | simpa using (he.trans_le (show ι b ≤ ι d from hbd)).ne' |
| 291 | rw [partialUnitriangularGroup_apply_eStar hs hb _ h_ne] |
| 292 | simp [ι, Matrix.one_apply] |
| 293 | have L_lower : L.BlockTriangular OrderDual.toDual := fun b d (hbd : b < d) ↦ by |
| 294 | simp [L, R, Fin.ne_last_of_lt hbd, s_row b d hbd.le, hbd.ne] |
| 295 | have L_diag (b : Fin a) : L b.castSucc b.castSucc = p b := by simp [L, R, s_row] |
| 296 | have L_last : L (.last a) (.last a) = s.val.val k (eStar a) * p a := by simp [L, R, ι, castLE] |
| 297 | rw [h_weyl, det_of_isLowerTriangular _ L_lower, prod_univ_castSucc, L_last, prod_range_succ, |
| 298 | prod_range] |
| 299 | simp only [L_diag, Units.val_mul, Units.coe_prod] |
| 300 | ring |
| 301 | |
| 302 | /-- A bound by Cramer's rule. Let K be a set of isometries of the form (elements of `T.G`) whose |
| 303 | entries all have size 1, and let a < min j ϱ, where ϱ is the number of hyperbolic pairs e_b, e*_b. |
| 304 | Let s ∈ R^(j) with s g ∈ K, and let η w_p⁻¹ g ∈ K for some η ∈ R^(j). Then p₀ ⋯ p_a times the i-th |
| 305 | entry of the column s e*_a has size 8 ϱ. -/ |
| 306 | lemma head_prod_mul_dual_mem_ofSize {S : Size T} {K : Set T.G} {j : ℕ} {p : ℕ → Aˣ} {s g : T.G} |
| 307 | {a : Fin 𝔰.ϱ} |
| 308 | (hK : ∀ ⦃x : T.G⦄, x ∈ K → S.HasMatrixSize 1 (x : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A)) |
| 309 | (h_near : ∃ η : T.G, η ∈ partialUnitriangularGroup j ∧ η * ((weylElem j p)⁻¹ * g) ∈ K) |
| 310 | (hs : s ∈ partialUnitriangularGroup j) (hsK : s * g ∈ K) (ha : a.val < j) (i : 𝔰.BesselIndex) : |
| 311 | (∏ b ∈ Finset.range (a + 1), p b).val * |
| 312 | (s : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) i (eStar a) ∈ S.ofSize (8 * 𝔰.ϱ) := by |
| 313 | -- Take the rows e*_b (b < a) and i, and the columns e_d (d ≤ a), of s w_p η⁻¹. This block has |
| 314 | -- size 7, being part of (s g) (η w_p⁻¹ g)⁻¹, and its determinant is the given product. |
| 315 | obtain ⟨η, hη, hηK⟩ := h_near |
| 316 | let c : Fin (a + 1) → Fin 𝔰.ϱ := Fin.castLE a.is_lt |
| 317 | let R (b : Fin (a + 1)) : 𝔰.BesselIndex := if b = .last a then i else eStar (c b) |
| 318 | let Z : Matrix (Fin (a + 1)) (Fin (a + 1)) A := |
| 319 | (s * weylElem j p * η⁻¹).val.val.submatrix R fun d ↦ inl (c d) |
| 320 | have Z_size : S.HasMatrixSize 7 Z := fun b d ↦ by |
| 321 | simpa [Z, Matrix.mul_assoc] using (hK hsK).mul (hK hηK).inv (R b) (inl (c d)) |
| 322 | -- Drop the right factor `η⁻¹ ∈ R^(j)` (applied with `M = s w_p`, `u = η⁻¹`, and rows `R`), then |
| 323 | -- evaluate the lower-triangular `(R, e_0 … e_a)` block of `s w_p`. |
| 324 | have det_Z : Z.det = (∏ b ∈ Finset.range (a + 1), p b).val * s.val.val i (eStar a) := |
| 325 | calc Z.det |
| 326 | _ = ((s * weylElem j p).val.val.submatrix R fun d ↦ inl (c d)).det := |
| 327 | det_submatrix_mul_of_mem_partialUnitriangularGroup (inv_mem hη) ha _ R |
| 328 | _ = (∏ b ∈ Finset.range (a + 1), p b).val * s.val.val i (eStar a) := |
| 329 | det_submatrix_mul_weylElem hs ha i |
| 330 | rw [← det_Z] |
| 331 | exact mem_ofSize_mono (det_mem_ofSize Z a.is_lt Z_size) |
| 332 | |
| 333 | /-- The leading minors at a Weyl element have bounded size. Let `K` be a set of isometries whose |
| 334 | matrices have size 1, and let j ≤ ϱ. Let η w_p⁻¹ g ∈ K for some η ∈ R^(j), and let s ∈ R^(j) with s |
| 335 | g ∈ K. Then the products p₀ ⋯ p_(l-1), l ≤ j, which are the leading minors of `T.frameGram w_p`, |
| 336 | have size 9 n, where n = `𝔰.n` = ϱ + 1. -/ |
| 337 | lemma head_products_mem_ofSize {K : Set T.G} |
| 338 | (hK : ∀ ⦃x : T.G⦄, x ∈ K → S.HasMatrixSize 1 (x : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A)) |
| 339 | (hj : j ≤ 𝔰.ϱ) |
| 340 | (h_near : ∃ η : T.G, η ∈ partialUnitriangularGroup j ∧ η * ((weylElem j p)⁻¹ * g) ∈ K) |
| 341 | (hs_near : s ∈ partialUnitriangularGroup j ∧ s * g ∈ K) : |
| 342 | ∀ l : ℕ, l ≤ j → (↑(∏ a ∈ Finset.range l, p a) : A) ∈ S.ofSize (9 * 𝔰.n) := by |
| 343 | intro l hl |
| 344 | obtain ⟨η, hη, hηK⟩ := h_near |
| 345 | obtain ⟨hs, hsK⟩ := hs_near |
| 346 | rw [← leadingMinor_frameGram_weylElem (T := T) hj p (j := ⟨l, by lia⟩) hl] |
| 347 | exact leadingMinor_mem_ofSize hs hη (hK hsK) (hK hηK) hl |
| 348 | |
| 349 | /-- A bound for s e*_a, by Cramer's rule. Let `K` be a set of isometries whose matrices have size 1, |
| 350 | and let a < min j ϱ. Let η w_p⁻¹ g ∈ K for some η ∈ R^(j), and let s ∈ R^(j) with s g ∈ K. Let `p` |
| 351 | be a head: the inverses of the products p₀ ⋯ p_(l-1), l ≤ j, have size 1. Then all entries of the |
| 352 | vector s e*_a have size 8 ϱ + 1. -/ |
| 353 | lemma dual_mem_vecsOfSize {K : Set T.G} |
| 354 | (hK : ∀ ⦃x : T.G⦄, x ∈ K → S.HasMatrixSize 1 (x : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A)) |
| 355 | (h_near : ∃ η : T.G, η ∈ partialUnitriangularGroup j ∧ η * ((weylElem j p)⁻¹ * g) ∈ K) |
| 356 | (hs_near : s ∈ partialUnitriangularGroup j ∧ s * g ∈ K) (hp : S.IsHead j p) (ha : a < j) : |
| 357 | (s : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) *ᵥ Pi.single (eStar a) 1 ∈ |
| 358 | S.vecsOfSize (8 * 𝔰.ϱ + 1) := by |
| 359 | intro i |
| 360 | obtain ⟨hs, hsK⟩ := hs_near |
| 361 | set M : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A := ↑s |
| 362 | set P : Aˣ := ∏ b ∈ Finset.range (a + 1), p b |
| 363 | have hP_inv : P⁻¹.val ∈ S.ofSize 1 := hp (a + 1) ha |
| 364 | have h_cramer : P.val * M i (eStar a) ∈ S.ofSize (8 * 𝔰.ϱ) := |
| 365 | head_prod_mul_dual_mem_ofSize hK h_near hs hsK ha i |
| 366 | have h_entry : (M *ᵥ Pi.single (eStar a) 1) i = P⁻¹.val * (P.val * M i (eStar a)) := by simp |
| 367 | rw [h_entry, add_comm (8 * 𝔰.ϱ)] |
| 368 | exact S.mul_mem_ofSize hP_inv h_cramer |
| 369 | |
| 370 | /-- The entries of a head and of the dual vectors have bounded size. Let `K` be a set of isometries |
| 371 | whose matrices have size 1, and let a < j ≤ ϱ. With R^(j) = `partialUnitriangularGroup j` and the |
| 372 | Weyl element w_p = `weylElem j p`, let η w_p⁻¹ g ∈ K for some η ∈ R^(j), and let s ∈ R^(j) with s g |
| 373 | ∈ K. Let `p` be a head: the inverses of the products p₀ ⋯ p_(l-1), l ≤ j, have size 1. Then p_a, its |
| 374 | inverse and the entries of the column s e*_a have size 10 n, where n = `𝔰.n` = ϱ + 1. -/ |
| 375 | lemma head_entries_mem_ofSize {K : Set T.G} |
| 376 | (hK : ∀ ⦃x : T.G⦄, x ∈ K → S.HasMatrixSize 1 (x : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A)) |
| 377 | (hj : j ≤ 𝔰.ϱ) |
| 378 | (h_near : ∃ η : T.G, η ∈ partialUnitriangularGroup j ∧ η * ((weylElem j p)⁻¹ * g) ∈ K) |
| 379 | (hs_near : s ∈ partialUnitriangularGroup j ∧ s * g ∈ K) (hp : S.IsHead j p) (ha : a < j) : |
| 380 | (p a : A) ∈ S.ofSize (10 * 𝔰.n) ∧ |
| 381 | (((p a)⁻¹ : Aˣ) : A) ∈ S.ofSize (10 * 𝔰.n) ∧ |
| 382 | ∀ i : 𝔰.BesselIndex, |
| 383 | (s : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) i (eStar a) ∈ S.ofSize (10 * 𝔰.n) := by |
| 384 | -- Both p a and its inverse are quotients of two consecutive products p₀ ⋯ p_(l-1). |
| 385 | let P (l : ℕ) : Aˣ := ∏ b ∈ Finset.range l, p b |
| 386 | have h_quot {l m : ℕ} (hl : l ≤ j) (hm : m ≤ j) : ((P l)⁻¹ * P m).val ∈ S.ofSize (10 * 𝔰.n) := |
| 387 | mem_ofSize_mono (S.mul_mem_ofSize (hp l hl) |
| 388 | (head_products_mem_ofSize hK hj h_near hs_near m hm)) |
| 389 | have h_succ : P (a + 1) = P a * p a := prod_range_succ p a |
| 390 | refine ⟨?_, ?_, fun i ↦ ?_⟩ |
| 391 | · simpa only [h_succ, inv_mul_cancel_left] using h_quot ha.le ha |
| 392 | · simpa only [h_succ, _root_.mul_inv_rev, inv_mul_cancel_right] using h_quot ha ha.le |
| 393 | · simpa using mem_ofSize_mono (j := 10 * 𝔰.n) (dual_mem_vecsOfSize hK h_near hs_near hp ha i) |
| 394 | |
| 395 | omit [IsHermitianUnit T.splitGram] in |
| 396 | /-- If p_a and its inverse have size i for all a < j with a < ϱ, then the inverse of the Weyl |
| 397 | element w_p = `weylElem j p` has size i: its entries are 0, 1, star p_a and p_a⁻¹. -/ |
| 398 | lemma hasMatrixSize_weylElem_inv (hp : ∀ a : Fin 𝔰.ϱ, a < j → (p a : A) ∈ S.ofSize i) |
| 399 | (hp_inv : ∀ a : Fin 𝔰.ϱ, a < j → (((p a)⁻¹ : Aˣ) : A) ∈ S.ofSize i) : |
| 400 | S.HasMatrixSize i (((weylElem j p)⁻¹ : T.G) : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) := by |
| 401 | intro k m |
| 402 | obtain ⟨h_zero, h_one⟩ := S.zero_one_mem_ofSize i |
| 403 | by_cases hm : floorOf m < j ∧ floorOf m < 𝔰.ϱ |
| 404 | · simp [weylElem, weylOn, hm.1, hm.2, apply_ite (· ∈ S.ofSize i), h_zero, |
| 405 | star_mem_ofSize (hp ⟨_, hm.2⟩ hm.1), hp_inv ⟨_, hm.2⟩ hm.1] |
| 406 | · simp [weylElem, weylOn, hm, apply_ite (· ∈ S.ofSize i), h_one, h_zero] |
| 407 | |
| 408 | /-- Let j ≤ ϱ and let the isometry s lie in `unipotentBelow j`. If the columns s e*_a, a < j, |
| 409 | have size d, then s⁻¹ has size (4 (d + 1) + 12) j + 5. -/ |
| 410 | lemma hasMatrixSize_inv_of_mem_unipotentBelow {d : ℕ} (hj : j ≤ 𝔰.ϱ) |
| 411 | (hs_unip : s ∈ unipotentBelow j) |
| 412 | (h_col : ∀ a : Fin 𝔰.ϱ, a < j → ∀ i : 𝔰.BesselIndex, |
| 413 | (s : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) i (eStar a) ∈ S.ofSize d) : |
| 414 | S.HasMatrixSize ((4 * (d + 1) + 12) * j + 5) |
| 415 | ((s⁻¹ : T.G) : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) := by |
| 416 | -- Compare the gauges at 1 and at 1 * s⁻¹. They agree on Y^(j), where s acts as 1, and the e*_a |
| 417 | -- are short duals as the columns s e*_a have size d. This bounds s⁻¹ - 1. |
| 418 | set c : ℕ := d + 1 |
| 419 | have h_top : S.GaugesDifferLe 1 (1 : T.G) (1 * s⁻¹) j 0 := by |
| 420 | intro i ω hω _ |
| 421 | refine ⟨s⁻¹.val.val *ᵥ ω, hω.congrBelow_mulVec (inv_mem hs_unip), ?_⟩ |
| 422 | simp [vecsOfSize, zero_one_mem_ofSize] |
| 423 | have h_lift (a : Fin 𝔰.ϱ) (ha : a.val < j) : |
| 424 | S.InducedLengthLe (1 * s⁻¹) a c (Pi.single (inl a) 1) := by |
| 425 | refine ⟨(1 * s⁻¹).val.val *ᵥ Pi.single (inl a) 1, fun k hk ↦ ?_, |
| 426 | lengthLeAt_mulVec_iff.2 (single_mem_vecsOfSize (inl a))⟩ |
| 427 | simpa [Matrix.one_apply, Pi.single_apply] using |
| 428 | mem_partialUnitriangularGroup.1 |
| 429 | (unipotentBelow_le_partialUnitriangularGroup (inv_mem hs_unip)) k (inl a) hk (.inl ⟨ha, ha⟩) |
| 430 | have h_dual (a : Fin 𝔰.ϱ) (ha : a.val < j) : S.HasShortDual 1 (1 : T.G) (1 * s⁻¹) a c := by |
| 431 | have h_diff : (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) *ᵥ Pi.single (eStar a) 1 - |
| 432 | s.val.val *ᵥ Pi.single (eStar a) 1 ∈ S.vecsOfSize c := by |
| 433 | rw [one_mulVec, mulVec_single_one] |
| 434 | exact sub_mem_vecsOfSize (single_mem_vecsOfSize (eStar a)) (h_col a ha) |
| 435 | exact ⟨Pi.single (eStar a) 1, fun b hb ↦ Pi.single_eq_of_ne (by aesop) 1, by simp, |
| 436 | lengthLeAt_one_iff.2 (single_mem_vecsOfSize (eStar a)), Pi.single (eStar a) 1, .refl _ _, |
| 437 | by simpa using h_diff⟩ |
| 438 | have h_differ : S.GaugesDifferLe 1 (1 : T.G) (1 * s⁻¹) 0 (0 + (4 * c + 12) * j) := |
| 439 | h_top.on_whole_space_of_hasShortDual (by simp) (S.zero_one_mem_ofSize 1).right hj |
| 440 | (fun a _ ↦ ⟨_, .refl _ _, lengthLeAt_one_iff.2 (single_mem_vecsOfSize (inl a))⟩) h_lift h_dual |
| 441 | have h_one_sub : S.HasMatrixSize ((4 * c + 12) * j + 4) (1 - s⁻¹.val.val) := fun a b ↦ by |
| 442 | simpa using neg_mem_ofSize (h_differ.hasMatrixSize_sub_one (by simp) a b) |
| 443 | simpa only [sub_sub_cancel] using HasMatrixSize.one.sub h_one_sub |
| 444 | |
| 445 | /-- Let `K` be a set of isometries whose matrices have size 1, and let j ≤ ϱ. Let η w_p⁻¹ g ∈ K for |
| 446 | some η ∈ R^(j), and let s ∈ R^(j) with s g ∈ K. Let `p` be a head: the inverses of the products p₀ ⋯ |
| 447 | p_(l-1), l ≤ j, have size 1. If s also lies in `unipotentBelow j`, then g has size 60 n² and w_p⁻¹ g |
| 448 | has size 99 n², with n = `𝔰.n` = ϱ + 1. -/ |
| 449 | lemma hasMatrixSize_of_isHead {K : Set T.G} |
| 450 | (hK : ∀ ⦃x : T.G⦄, x ∈ K → S.HasMatrixSize 1 (x : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A)) |
| 451 | (hj : j ≤ 𝔰.ϱ) |
| 452 | (h_near : ∃ η : T.G, η ∈ partialUnitriangularGroup j ∧ η * ((weylElem j p)⁻¹ * g) ∈ K) |
| 453 | (hs_near : s ∈ partialUnitriangularGroup j ∧ s * g ∈ K) (hp : S.IsHead j p) |
| 454 | (hs_unip : s ∈ unipotentBelow j) : |
| 455 | S.HasMatrixSize (60 * 𝔰.n ^ 2) (g : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) ∧ |
| 456 | S.HasMatrixSize (99 * 𝔰.n ^ 2) |
| 457 | (((weylElem j p)⁻¹ * g : T.G) : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) := by |
| 458 | -- Write g = s⁻¹ (s g). The columns s e*_a bound s⁻¹, and the entries of p bound w_p⁻¹. |
| 459 | have h_entries (a : Fin 𝔰.ϱ) (ha : a < j) : |
| 460 | (p a : A) ∈ S.ofSize (10 * 𝔰.n) ∧ (((p a)⁻¹ : Aˣ) : A) ∈ S.ofSize (10 * 𝔰.n) ∧ |
| 461 | ∀ i, (s : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) i (eStar a) ∈ S.ofSize (10 * 𝔰.n) := |
| 462 | head_entries_mem_ofSize hK hj h_near hs_near hp ha |
| 463 | choose h_p h_p_inv h_col using h_entries |
| 464 | obtain ⟨_, hsK⟩ := hs_near |
| 465 | have h_g : S.HasMatrixSize (60 * 𝔰.n ^ 2) (g : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) := by |
| 466 | have h_prod : S.HasMatrixSize ((4 * (10 * 𝔰.n + 1) + 12) * j + 5 + 1 + 1) |
| 467 | ((s⁻¹ * (s * g) : T.G) : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) := |
| 468 | (hasMatrixSize_inv_of_mem_unipotentBelow hj hs_unip h_col).mul (hK hsK) |
| 469 | rw [inv_mul_cancel_left] at h_prod |
| 470 | -- The size is rounded up using j ≤ ϱ. |
| 471 | exact h_prod.mono (by nlinarith) |
| 472 | exact ⟨h_g, ((hasMatrixSize_weylElem_inv h_p h_p_inv).mul h_g).mono (by nlinarith)⟩ |
| 473 | |
| 474 | end Size |
| 475 | |
| 476 | end Size |
| 477 | |
| 478 | end New.Floors |
| 479 | |
| 480 | end |