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

| 1 | module |
| 2 | |
| 3 | import TauCeti.Analysis.Complex.Basic |
| 4 | import TauCeti.Analysis.Matrix.OstrowskiTaussky |
| 5 | import Mathlib.Algebra.Order.Star.Real |
| 6 | public import New.Spanning.RemainingTerms.BorderedDeterminant |
| 7 | import Lib.Cohomology.Etale.Basic |
| 8 | import Lib.General.Analysis.HolomorphicIntegrals |
| 9 | import Lib.General.LinearAlgebra.PolarDecomposition |
| 10 | |
| 11 | /-! |
| 12 | # The weight of Schur's test at one real place |
| 13 | |
| 14 | `New.Shape.G₁` is the unitary group of the form `New.Shape.J₁`, which consists of `ϱ` hyperbolic |
| 15 | planes, a positive part `X₀` indexed by `κ` and one negative vector `z`. The frame is |
| 16 | `f = (e₁, …, e_ϱ, z)`, `A` is the span of the `e_a`, and `V₋` is the `-1` eigenspace of `J₁`. The |
| 17 | weight is a power `ν(y) ^ (-(k + i))`, `k = dim X₀`, of the ratio of the volumes of the projections |
| 18 | of the frames `γ f` and `f` to the negative space `y V₋`. Let norm-one pairs occur for `γ` from |
| 19 | level `j` and put `i = min ϱ j`. Then `ν(y)` can be computed modulo `I = A ∩ γ A`, on the subframe |
| 20 | `e₁, …, e_i, z`. It is bounded from below by a multiple of `det (1 + v vᴴ)`, where the columns of |
| 21 | `v` lie in `X₀` and move affinely when `y` is moved by a unipotent element `g` that fixes the frame. |
| 22 | Since `ν` for `γ` at `g y` is `ν` for `g⁻¹ γ` at `y`, the point `y` stays fixed here and `γ` is |
| 23 | replaced by `g⁻¹ γ`. |
| 24 | |
| 25 | Notions from other files: |
| 26 | * `New.Shape.frameCols`, `New.Shape.definiteCols`: the matrices with the vectors of the frame, |
| 27 | respectively the basis of `X₀`, as columns. |
| 28 | * `New.realFrameGram γ`: the matrix of the products of `f` with `γ f`. |
| 29 | * `New.NormOnePairOccursFrom j γ`: at each index from `j` on, the flags of `f` and `γ f` share a |
| 30 | vector, with leading coefficients `c` and `1` for one fixed `c` of modulus `1`. |
| 31 | |
| 32 | ## Main definitions and results |
| 33 | |
| 34 | * `New.volumeRatio`: the ratio `ν(y)` of the two volumes. |
| 35 | * `New.RealPlace.IsNegativeBasis.volumeRatio_eq`: `ν(y)` in a basis of `y V₋ ∩ I^⊥`. |
| 36 | * `New.RealPlace.IsTriangularBasis.norm_det_mul_le_volumeRatio`: the lower bound for `ν(y)`. |
| 37 | * `New.RealPlace.differenceX₀_eq_add`: the dependence of `v` on the unipotent element. |
| 38 | * `New.RealPlace.exists_majorant_volumeRatio_inv_pow`: an integrable majorant of `ν ^ (-(k + i))`. |
| 39 | -/ |
| 40 | |
| 41 | @[expose] public section |
| 42 | |
| 43 | noncomputable section |
| 44 | |
| 45 | namespace New |
| 46 | |
| 47 | open Fintype Matrix MeasureTheory Real ComplexOrder Norms.L2Operator RealPlace Fin |
| 48 | IsHermitianInvolution |
| 49 | |
| 50 | variable {𝔰 : Shape} |
| 51 | |
| 52 | section Frame |
| 53 | |
| 54 | variable (γ : 𝔰.G₁) |
| 55 | |
| 56 | /-- The volume, up to a constant factor, of the projection of the frame to the negative space |
| 57 | `γ V₋`, where `V₋` is the `-1` eigenspace of `J₁`: the modulus of the determinant of the products |
| 58 | of the frame with the basis `γ (1 - J₁) frameCols` of `γ V₋`. -/ |
| 59 | def frameVolume : ℝ := ‖(((1 - 𝔰.J₁) * 𝔰.frameCols)ᴴ * γ⁻¹.val.val * 𝔰.frameCols).det‖ |
| 60 | |
| 61 | /-- The coordinates in `X₀` of the vectors of the frame moved by `γ`, as columns. -/ |
| 62 | def RealPlace.frameX₀Part : Matrix 𝔰.κ (Fin (𝔰.ϱ + 1)) ℂ := |
| 63 | 𝔰.definiteColsᴴ * γ.val.val * 𝔰.frameCols |
| 64 | |
| 65 | /-- A vector `w` whose products with the columns of `(1 - J₁) * frameCols` vanish is fixed by `J₁`: |
| 66 | `J₁ w = w`. -/ |
| 67 | lemma RealPlace.J₁_mulVec_eq_self {w : 𝔰.BesselIndex → ℂ} |
| 68 | (hw : ((1 - 𝔰.J₁) * 𝔰.frameCols)ᴴ *ᵥ w = 0) : 𝔰.J₁ *ᵥ w = w := by |
| 69 | ext a |
| 70 | obtain a | (a | a) | a := a <;> |
| 71 | simp_all [inclMatrix, dotProduct, mulVec, Matrix.mul_apply, |
| 72 | funext_iff, forall_fin_succ', add_neg_eq_zero, J₁_eq, Matrix.one_apply] |
| 73 | |
| 74 | /-- The hermitian form `J₁` on the combination `frameCols *ᵥ x` of the frame vectors equals |
| 75 | `-‖x top‖ ^ 2`, where `x top` is the coefficient of `z`. -/ |
| 76 | lemma RealPlace.form_frameCols_mulVec (x : Fin (𝔰.ϱ + 1) → ℂ) : |
| 77 | star (𝔰.frameCols *ᵥ x) ⬝ᵥ 𝔰.J₁ *ᵥ 𝔰.frameCols *ᵥ x = -(‖x 𝔰.top‖ ^ 2 : ℝ) := by |
| 78 | simp [inclMatrix, dotProduct, mulVec, Matrix.mul_apply, sum_univ_castSucc, J₁_eq, |
| 79 | RCLike.conj_mul, Matrix.one_apply] |
| 80 | |
| 81 | /-- For `γ ∈ G₁`, the volume `frameVolume γ` of the projection of the frame `e₁, …, e_ϱ, z` to the |
| 82 | negative space `γ V₋` is positive. -/ |
| 83 | lemma frameVolume_pos (γ : 𝔰.G₁) : 0 < frameVolume γ := by |
| 84 | -- Let `v` be in the kernel and `w = γ⁻¹ (frameCols v)`. Then `w` is fixed by `J₁`, so its form |
| 85 | -- is `|w| ^ 2`; the form is `≤ 0` on the span of the frame and `γ⁻¹` preserves it, so `w = 0` |
| 86 | -- and `v = 0`. |
| 87 | simp_rw [frameVolume, norm_pos_iff, ← exists_mulVec_eq_zero_iff.not, ← mulVec_mulVec] |
| 88 | intro ⟨v, hv, h_ker⟩ |
| 89 | set w : 𝔰.BesselIndex → ℂ := γ⁻¹.val.val *ᵥ 𝔰.frameCols *ᵥ v |
| 90 | have hw : w = 0 := dotProduct_star_self_pos_iff.not_left.1 <| by |
| 91 | simp [(congrArg (star w ⬝ᵥ ·) (J₁_mulVec_eq_self h_ker).symm).trans |
| 92 | ((U.form_mulVec_mulVec γ⁻¹ _ _).trans (form_frameCols_mulVec v)), not_lt_of_ge] |
| 93 | simpa [w, inclMatrix_gram_eq_one besselFrame_injective, hv] using |
| 94 | congrArg (fun x => 𝔰.frameColsᴴ *ᵥ γ.val.val *ᵥ x) hw |
| 95 | |
| 96 | /-- The volume does not change when the point `y` is moved by a unipotent element `γ` that fixes |
| 97 | every vector of the frame. -/ |
| 98 | lemma frameVolume_mul_left (hγ : γ ∈ besselU0) (y : 𝔰.G₁) : |
| 99 | frameVolume (γ * y) = frameVolume y := by |
| 100 | -- `γ⁻¹` fixes every frame vector, so it drops out of |
| 101 | -- `(γ y)⁻¹ frameCols = y⁻¹ γ⁻¹ frameCols`. |
| 102 | have h_fix : γ⁻¹.val.val * 𝔰.frameCols = 𝔰.frameCols := by |
| 103 | obtain ⟨q, hq⟩ := mem_besselU0_iff_unipotentOf.1 (inv_mem hγ) |
| 104 | simp [val_unipotentOf_coe, hq, Matrix.sub_mul, Matrix.mul_assoc, Matrix.add_mul, |
| 105 | forall_fin_succ', inclMatrix_gram_eq_zero] |
| 106 | simp only [frameVolume, _root_.mul_inv_rev, Subgroup.coe_mul, Units.val_mul, Matrix.mul_assoc, |
| 107 | h_fix] |
| 108 | |
| 109 | @[fun_prop] |
| 110 | lemma continuous_frameVolume : Continuous (frameVolume : 𝔰.G₁ → ℝ) := by fun_prop [frameVolume] |
| 111 | |
| 112 | /-- The ratio `ν(y)` of the volumes of the projections of the frame of `γ` and of the standard |
| 113 | frame to the negative space `y V₋`. Vectors shared by the two flags cancel in it |
| 114 | (`New.RealPlace.IsNegativeBasis.volumeRatio_eq`). -/ |
| 115 | def volumeRatio (y : 𝔰.G₁) : ℝ := frameVolume (γ⁻¹ * y) / frameVolume y |
| 116 | |
| 117 | /-- The ratio `volumeRatio γ y` is positive. -/ |
| 118 | lemma volumeRatio_pos (y : 𝔰.G₁) : 0 < volumeRatio γ y := |
| 119 | div_pos (frameVolume_pos _) (frameVolume_pos _) |
| 120 | |
| 121 | /-- `volumeRatio` for `γ⁻¹` at the point `γ⁻¹ * y` is the inverse of `volumeRatio` for `γ` at `y`: |
| 122 | exchanging the two frames inverts the ratio. -/ |
| 123 | lemma volumeRatio_inv (y : 𝔰.G₁) : volumeRatio γ⁻¹ (γ⁻¹ * y) = (volumeRatio γ y)⁻¹ := by |
| 124 | rw [volumeRatio, volumeRatio, inv_inv, mul_inv_cancel_left, inv_div] |
| 125 | |
| 126 | /-- For a unipotent element `u` that fixes the frame, the ratio for `γ` at the point `u y` is the |
| 127 | ratio for `u⁻¹ γ` at the point `y`. -/ |
| 128 | lemma volumeRatio_mul_left {u : 𝔰.G₁} (hu : u ∈ besselU0) (y : 𝔰.G₁) : |
| 129 | volumeRatio γ (u * y) = volumeRatio (u⁻¹ * γ) y := by |
| 130 | rw [volumeRatio, volumeRatio, frameVolume_mul_left u hu, _root_.mul_inv_rev, inv_inv, mul_assoc] |
| 131 | |
| 132 | /-- For fixed `γ`, the ratio `volumeRatio γ` is measurable in `y`. -/ |
| 133 | @[fun_prop] |
| 134 | lemma measurable_volumeRatio : Measurable (volumeRatio γ) := by fun_prop [volumeRatio] |
| 135 | |
| 136 | /-- For `γ ∈ G₁`, the form `J₁` is negative semidefinite on the span of the frame `γ f`, where |
| 137 | `f = (e₁, …, e_ϱ, z)` is given by the columns of `frameCols`: for any matrix `a` of coefficients, |
| 138 | minus the Gram matrix for `J₁` of the columns of `γ f a` is positive semidefinite. -/ |
| 139 | lemma RealPlace.posSemidef_neg_gram_mul_frameCols (γ : 𝔰.G₁) {m : Type} |
| 140 | (a : Matrix (Fin 𝔰.n) m ℂ) : |
| 141 | (-((γ.val.val * (𝔰.frameCols * a))ᴴ * 𝔰.J₁ * |
| 142 | (γ.val.val * (𝔰.frameCols * a)))).PosSemidef := by |
| 143 | have h_gram : (𝔰.frameCols * a)ᴴ * 𝔰.J₁ * (𝔰.frameCols * a) = |
| 144 | -((𝔰.zColᴴ * 𝔰.frameCols * a)ᴴ * (𝔰.zColᴴ * 𝔰.frameCols * a)) := by |
| 145 | simp [J₁_eq, Matrix.mul_sub, Matrix.mul_add, Matrix.mul_assoc, forall_fin_succ', |
| 146 | inclMatrix_gram_mul_eq_zero, Matrix.sub_mul] |
| 147 | rw [U.gram_invariant, h_gram, neg_neg] |
| 148 | exact posSemidef_conjTranspose_mul_self _ |
| 149 | |
| 150 | /-- Let `X₀` be the positive definite part of the form `J₁`; its basis vectors are the columns of |
| 151 | `definiteCols`, so `definiteColsᴴ * Y` holds the coordinates in `X₀` of the columns of `Y`. If |
| 152 | these columns are orthogonal for `J₁` to the frame `e₁, …, e_ϱ, z`, their Gram matrix for `J₁` is |
| 153 | the Euclidean Gram matrix of their coordinates in `X₀`. -/ |
| 154 | lemma RealPlace.gram_definiteCols_mul_eq {m : Type} {Y : Matrix 𝔰.BesselIndex m ℂ} |
| 155 | (hY : 𝔰.frameColsᴴ * 𝔰.J₁ * Y = 0) : |
| 156 | (𝔰.definiteColsᴴ * Y)ᴴ * (𝔰.definiteColsᴴ * Y) = Yᴴ * 𝔰.J₁ * Y := by |
| 157 | obtain ⟨h_eStar, h_z⟩ : |
| 158 | (∀ (a : Fin 𝔰.ϱ) (l : m), Y (eStar a) l = 0) ∧ ∀ l : m, Y 𝔰.z l = 0 := by |
| 159 | simpa [← ext_iff, inclMatrix, splitGram, middleGram, Matrix.mul_apply, Matrix.one_apply, |
| 160 | forall_fin_succ'] using hY |
| 161 | simp [← Matrix.ext_iff, inclMatrix, splitGram, middleGram, Matrix.mul_apply, Matrix.one_apply, |
| 162 | h_eStar, h_z] |
| 163 | |
| 164 | /-- The left inverse of `frameCols` that vanishes on the orthogonal complement of the negative |
| 165 | space `y V₋`. It gives the coordinates of the projection to `y V₋` in the projected frame. -/ |
| 166 | def RealPlace.frameLeftInverse (y : 𝔰.G₁) : Matrix (Fin 𝔰.n) 𝔰.BesselIndex ℂ := |
| 167 | (((1 - 𝔰.J₁) * 𝔰.frameCols)ᴴ * y⁻¹.val.val * 𝔰.frameCols)⁻¹ * |
| 168 | (((1 - 𝔰.J₁) * 𝔰.frameCols)ᴴ * y⁻¹.val.val) |
| 169 | |
| 170 | /-- `frameLeftInverse y` is a left inverse of `frameCols`. -/ |
| 171 | lemma RealPlace.frameLeftInverse_mul_frameCols (y : 𝔰.G₁) : |
| 172 | frameLeftInverse y * 𝔰.frameCols = 1 := by |
| 173 | simpa [frameLeftInverse, Matrix.mul_assoc] using |
| 174 | nonsing_inv_mul _ (norm_pos_iff.1 (frameVolume_pos y)).isUnit |
| 175 | |
| 176 | /-- The ratio is the modulus of the determinant of the projection of `γ f` to `y V₋`, written in |
| 177 | the basis given by the projection of `f`. -/ |
| 178 | lemma RealPlace.volumeRatio_eq_norm_det (y : 𝔰.G₁) : |
| 179 | volumeRatio γ y = ‖(frameLeftInverse y * γ.val.val * 𝔰.frameCols).det‖ := by |
| 180 | simp [volumeRatio, frameVolume, frameLeftInverse, Matrix.mul_assoc, div_eq_inv_mul] |
| 181 | |
| 182 | /-- The form on the span of the frame is minus the squared modulus of the coefficient of `z`. -/ |
| 183 | lemma RealPlace.frameCols_J₁_gram : |
| 184 | 𝔰.frameColsᴴ * 𝔰.J₁ * 𝔰.frameCols = diagonal (Pi.single 𝔰.top (-1)) := by |
| 185 | rw [conjTranspose_inclMatrix_mul_mul_inclMatrix, |
| 186 | middleGram_submatrix_besselFrame, diagonal_single] |
| 187 | |
| 188 | /-- If the vector `frameCols x = γ frameCols x'` lies in the span of the frame `f` and in the span |
| 189 | of `γ f`, then its products with the frame `γ f` are `(0, …, 0, -x' top)`. That is, |
| 190 | `(realFrameGram γ)ᴴ x = Pi.single top (-x' top)`. Here `realFrameGram γ` is the matrix of the |
| 191 | products `h(f_j, γ f_l)` of the frame with its translate by `γ`, and `top` is the index of `z`. Also |
| 192 | the coefficients `x top` and `x' top` of `z` have the same modulus. -/ |
| 193 | lemma RealPlace.conjTranspose_realFrameGram_mulVec {γ : 𝔰.G₁} {x x' : Fin 𝔰.n → ℂ} |
| 194 | (h_shared : γ.val.val *ᵥ 𝔰.frameCols *ᵥ x' = 𝔰.frameCols *ᵥ x) : |
| 195 | (realFrameGram γ)ᴴ *ᵥ x = Pi.single 𝔰.top (-x' 𝔰.top) ∧ ‖x' 𝔰.top‖ = ‖x 𝔰.top‖ := by |
| 196 | constructor |
| 197 | · suffices (realFrameGram γ)ᴴ *ᵥ x = (𝔰.frameColsᴴ * 𝔰.J₁ * 𝔰.frameCols) *ᵥ x' by |
| 198 | ext a |
| 199 | cases a using lastCases <;> simp [this, frameCols_J₁_gram, mulVec_diagonal] |
| 200 | rw [← U.gram_invariant γ, ← mulVec_mulVec, ← mulVec_mulVec x', h_shared, |
| 201 | realFrameGram_eq_conjTranspose_mul, mulVec_mulVec] |
| 202 | simp [Matrix.mul_assoc, isHermitian.eq] |
| 203 | · have h_form := U.form_mulVec_mulVec γ (𝔰.frameCols *ᵥ x') (𝔰.frameCols *ᵥ x') |
| 204 | simp only [h_shared, form_frameCols_mulVec, neg_inj, Complex.ofReal_inj] at h_form |
| 205 | exact (pow_left_inj₀ (norm_nonneg _) (norm_nonneg _) two_ne_zero).1 h_form.symm |
| 206 | |
| 207 | /-- An element `y` preserves the form `J₁`, so `J₁ y = (y⁻¹)ᴴ J₁`. -/ |
| 208 | lemma RealPlace.J₁_mul_coe (y : 𝔰.G₁) : 𝔰.J₁ * y.val.val = y⁻¹.val.valᴴ * 𝔰.J₁ := by |
| 209 | simpa using U.form_mul_inv_eq y⁻¹ |
| 210 | |
| 211 | /-- The columns of `(1 - J₁) * frameCols` lie in the `-1` eigenspace of `J₁`, that is `J₁ * ((1 - |
| 212 | J₁) * frameCols) = -((1 - J₁) * frameCols)`. -/ |
| 213 | lemma RealPlace.J₁_mul_one_sub_J₁_mul : |
| 214 | 𝔰.J₁ * ((1 - 𝔰.J₁) * 𝔰.frameCols) = -((1 - 𝔰.J₁) * 𝔰.frameCols) := by |
| 215 | rw [← Matrix.mul_assoc, mul_sub, mul_one, mul_self, ← Matrix.neg_mul, neg_sub] |
| 216 | |
| 217 | /-- An element `y` preserves the form `J₁`, so `J₁ (y⁻¹)ᴴ = y J₁`. -/ |
| 218 | lemma RealPlace.J₁_mul_inv_conjTranspose (y : 𝔰.G₁) : |
| 219 | 𝔰.J₁ * y⁻¹.val.valᴴ = y.val.val * 𝔰.J₁ := by |
| 220 | calc |
| 221 | _ = 𝔰.J₁ * (y⁻¹.val.valᴴ * 𝔰.J₁) * 𝔰.J₁ := by |
| 222 | rw [Matrix.mul_assoc, Matrix.mul_assoc, mul_self, Matrix.mul_one] |
| 223 | _ = y.val.val * 𝔰.J₁ := by rw [← J₁_mul_coe, ← Matrix.mul_assoc 𝔰.J₁, mul_self, Matrix.one_mul] |
| 224 | |
| 225 | /-- The columns of `J₁ Bᴴ`, `B = frameLeftInverse y`, are combinations of the columns of |
| 226 | `y (1 - J₁) frameCols`, which form a basis of the negative space `y V₋`. -/ |
| 227 | lemma RealPlace.J₁_mul_frameLeftInverse_conjTranspose (y : 𝔰.G₁) : |
| 228 | 𝔰.J₁ * (frameLeftInverse y)ᴴ = -(y.val.val * ((1 - 𝔰.J₁) * 𝔰.frameCols) * |
| 229 | (((1 - 𝔰.J₁) * 𝔰.frameCols)ᴴ * y⁻¹.val.val * 𝔰.frameCols)ᴴ⁻¹) := by |
| 230 | rw [frameLeftInverse, conjTranspose_mul, conjTranspose_mul _ y⁻¹.val.val, |
| 231 | conjTranspose_conjTranspose, conjTranspose_nonsing_inv, ← Matrix.mul_assoc, |
| 232 | ← Matrix.mul_assoc 𝔰.J₁, J₁_mul_inv_conjTranspose, Matrix.mul_assoc y.val.val, |
| 233 | J₁_mul_one_sub_J₁_mul, Matrix.mul_neg, Matrix.neg_mul] |
| 234 | |
| 235 | /-- The `-1` eigenspace `V₋` of `J₁` is spanned by the columns of `(1 - J₁) * frameCols`: a matrix |
| 236 | `W` with `J₁ * W = -W` equals `(1 - J₁) * frameCols * a` for some matrix `a`. -/ |
| 237 | lemma RealPlace.exists_eq_one_sub_J₁_mul {m : Type} {W : Matrix 𝔰.BesselIndex m ℂ} |
| 238 | (hW : 𝔰.J₁ * W = -W) : |
| 239 | ∃ a : Matrix (Fin 𝔰.n) m ℂ, W = (1 - 𝔰.J₁) * 𝔰.frameCols * a := by |
| 240 | obtain ⟨h_eStar, h_X₀, -⟩ : (∀ (b : Fin 𝔰.ϱ) (l : m), W (eStar b) l = -W (.inl b) l) ∧ |
| 241 | (∀ (x : 𝔰.κ) (l : m), W (𝔰.indexX₀ x) l = -W (𝔰.indexX₀ x) l) ∧ |
| 242 | ∀ (b : Fin 𝔰.ϱ) (l : m), W (.inl b) l = -W (eStar b) l := by |
| 243 | simpa [← ext_iff, J₁_eq, inclMatrix, Matrix.mul_apply, Matrix.one_apply, |
| 244 | sum_univ_castSucc] using hW |
| 245 | have h_X₀_zero (x : 𝔰.κ) (l : m) : W (.inr (.inl (.inl x))) l = 0 := self_eq_neg.1 (h_X₀ x l) |
| 246 | refine ⟨of fun a l ↦ lastCases (W 𝔰.z l / 2) (fun b ↦ W (.inl b) l) a, ?_⟩ |
| 247 | ext b l |
| 248 | obtain b | (b | ⟨⟩) | b := b <;> |
| 249 | simp [J₁_eq, inclMatrix, Matrix.mul_apply, Matrix.one_apply, sum_univ_castSucc, h_eStar, |
| 250 | h_X₀_zero, one_add_one_eq_two, mul_div_cancel₀] |
| 251 | |
| 252 | /-- A vector of the negative space `y V₋` is determined by its products for `J₁` with the frame |
| 253 | `f`. Let `B = frameLeftInverse y` be the left inverse of `frameCols` (so `B f = 1`) that vanishes |
| 254 | on the orthogonal complement of `y V₋` for `J₁`. If the columns of `y⁻¹ ω` lie in the `-1` |
| 255 | eigenspace `V₋` of `J₁`, then `ω` is `J₁ Bᴴ` times the matrix `fᴴ J₁ ω` of these products. -/ |
| 256 | lemma RealPlace.eq_mul_of_J₁_mul_eq_neg {m : Type} {y : 𝔰.G₁} {ω : Matrix 𝔰.BesselIndex m ℂ} |
| 257 | (hω : 𝔰.J₁ * (y⁻¹.val.val * ω) = -(y⁻¹.val.val * ω)) : |
| 258 | ω = 𝔰.J₁ * (frameLeftInverse y)ᴴ * (𝔰.frameColsᴴ * 𝔰.J₁ * ω) := by |
| 259 | -- Write `y⁻¹ ω = (1 - J₁) f a`; both sides equal `y (1 - J₁) f a`. |
| 260 | obtain ⟨a, ha⟩ : |
| 261 | ∃ a : Matrix (Fin 𝔰.n) m ℂ, y⁻¹.val.val * ω = (1 - 𝔰.J₁) * 𝔰.frameCols * a := |
| 262 | exists_eq_one_sub_J₁_mul hω |
| 263 | obtain rfl : ω = y.val.val * ((1 - 𝔰.J₁) * 𝔰.frameCols * a) := by |
| 264 | rw [← ha, ← Matrix.mul_assoc] |
| 265 | simp |
| 266 | set M : 𝔰.FrameMatrix := ((1 - 𝔰.J₁) * 𝔰.frameCols)ᴴ * y⁻¹.val.val * 𝔰.frameCols with hM |
| 267 | have hM_det : IsUnit Mᴴ.det := by |
| 268 | rw [det_conjTranspose] |
| 269 | exact (norm_pos_iff.1 (frameVolume_pos y)).isUnit.star |
| 270 | have h_products : |
| 271 | 𝔰.frameColsᴴ * 𝔰.J₁ * (y.val.val * ((1 - 𝔰.J₁) * 𝔰.frameCols * a)) = -(Mᴴ * a) := by |
| 272 | rw [Matrix.mul_assoc, ← Matrix.mul_assoc 𝔰.J₁, J₁_mul_coe, Matrix.mul_assoc, |
| 273 | ← Matrix.mul_assoc 𝔰.J₁, J₁_mul_one_sub_J₁_mul, hM] |
| 274 | simp [Matrix.mul_assoc] |
| 275 | rw [h_products, J₁_mul_frameLeftInverse_conjTranspose, ← hM, Matrix.neg_mul, Matrix.mul_neg, |
| 276 | neg_neg, Matrix.mul_assoc _ Mᴴ⁻¹, nonsing_inv_mul_cancel_left _ _ hM_det, |
| 277 | Matrix.mul_assoc y.val.val] |
| 278 | |
| 279 | /-- Let the columns of `inclMatrix ℂ e` be the basis vectors at the indices `e l`, and let `pᴴ` |
| 280 | be a left inverse of this matrix. Suppose that for each other index `b` the matrix `N` maps a |
| 281 | vector `x'` to a vector `x` in the kernel of `pᴴ`, both with last nonzero coefficient at `b`, |
| 282 | that of `x'` equal to `1` and that of `x` of modulus `1`. Then `|det N|` is the modulus of the |
| 283 | determinant of the product of `pᴴ`, `N` and `inclMatrix ℂ e`. -/ |
| 284 | lemma RealPlace.norm_det_eq_norm_det_mul_inclMatrix {n m : ℕ} {e : Fin m → Fin n} |
| 285 | {N : Matrix (Fin n) (Fin n) ℂ} {p : Matrix (Fin n) (Fin m) ℂ} (hp : pᴴ * inclMatrix ℂ e = 1) |
| 286 | (h_off : ∀ b : Fin n, b ∉ Set.range e → ∃ x x' : Fin n → ℂ, N *ᵥ x' = x ∧ pᴴ *ᵥ x = 0 ∧ |
| 287 | ‖x b‖ = 1 ∧ x' b = 1 ∧ ∀ a : Fin n, a > b → x a = 0 ∧ x' a = 0) : |
| 288 | ‖N.det‖ = ‖(pᴴ * (N * inclMatrix ℂ e)).det‖ := by |
| 289 | -- `N` and `M = 1 + (N e - e) pᴴ` differ by two triangular changes of basis. |
| 290 | let M : Matrix (Fin n) (Fin n) ℂ := 1 + (N * inclMatrix ℂ e - inclMatrix ℂ e) * pᴴ |
| 291 | have h_col (b : Fin n) : ∃ x x' : Fin n → ℂ, N *ᵥ x' = M *ᵥ x ∧ |
| 292 | ‖x b‖ = 1 ∧ x' b = 1 ∧ ∀ a : Fin n, a > b → x a = 0 ∧ x' a = 0 := by |
| 293 | by_cases hb : b ∈ Set.range e |
| 294 | · obtain ⟨l, rfl⟩ := hb |
| 295 | have h_single : Pi.single (e l) (1 : ℂ) = inclMatrix ℂ e *ᵥ Pi.single l 1 := by |
| 296 | simp [funext_iff, inclMatrix, Matrix.one_apply, Pi.single_apply] |
| 297 | refine ⟨Pi.single (e l) 1, Pi.single (e l) 1, ?_, by simp, by simp, |
| 298 | fun a ha ↦ by simp [ha.ne']⟩ |
| 299 | simp only [h_single, mulVec_mulVec, M, Matrix.add_mul, Matrix.mul_assoc, hp, Matrix.one_mul, |
| 300 | Matrix.mul_one, add_sub_cancel] |
| 301 | · obtain ⟨x, x', h_map, h_ker, h_lead⟩ := h_off b hb |
| 302 | exact ⟨x, x', by simp [M, add_mulVec, ← mulVec_mulVec, h_ker, h_map], h_lead⟩ |
| 303 | choose x x' h_eq h_norm h_lead h_above using h_col |
| 304 | have h_mat : N * (of x')ᵀ = M * (of x)ᵀ := ext_col h_eq |
| 305 | have hx : ‖(of x).det‖ = 1 := by |
| 306 | simp [det_of_isLowerTriangular (of x) fun a b hab ↦ (h_above a b hab).1, h_norm] |
| 307 | have hx' : (of x').det = 1 := by |
| 308 | simp [det_of_isLowerTriangular (of x') fun a b hab ↦ (h_above a b hab).2, h_lead] |
| 309 | have h_dets : ‖N.det‖ = ‖M.det‖ := by |
| 310 | simpa [det_mul, det_transpose, hx, hx', -transpose_of] using congrArg (‖det ·‖) h_mat |
| 311 | rw [h_dets, det_one_add_mul_comm, Matrix.mul_sub, hp, add_sub_cancel] |
| 312 | |
| 313 | end Frame |
| 314 | |
| 315 | section Subframe |
| 316 | |
| 317 | variable {γ : 𝔰.G₁} {i j : ℕ} (hi : i ≤ 𝔰.ϱ) {y : 𝔰.G₁} |
| 318 | |
| 319 | /-- The indices of the subframe `e₁, …, e_i, z` among those of the frame. -/ |
| 320 | def RealPlace.subframeIndex : Fin (i + 1) → Fin (𝔰.ϱ + 1) := |
| 321 | lastCases 𝔰.top fun l ↦ (castLE hi l).castSucc |
| 322 | |
| 323 | /-- The subframe index of `l.castSucc` is the corresponding index `e_l` of the frame. -/ |
| 324 | @[simp] |
| 325 | lemma RealPlace.subframeIndex_castSucc (l : Fin i) : |
| 326 | subframeIndex hi l.castSucc = (castLE hi l).castSucc := |
| 327 | lastCases_castSucc l |
| 328 | |
| 329 | /-- The last index of the subframe is sent to the index `z` of the frame. -/ |
| 330 | @[simp] |
| 331 | lemma RealPlace.subframeIndex_last : subframeIndex hi (last i) = 𝔰.top := lastCases_last |
| 332 | |
| 333 | /-- The map `subframeIndex hi` from subframe indices to frame indices is injective. -/ |
| 334 | lemma RealPlace.subframeIndex_injective : (subframeIndex hi).Injective := by |
| 335 | intro l l' h |
| 336 | cases l using lastCases <;> cases l' using lastCases <;> simp_all [Fin.ext_iff] <;> lia |
| 337 | |
| 338 | /-- For `i = ϱ` the subframe is the whole frame, with the same indices. -/ |
| 339 | lemma RealPlace.subframeIndex_self (b : Fin (𝔰.ϱ + 1)) : subframeIndex le_rfl b = b := by |
| 340 | cases b using lastCases <;> simp |
| 341 | |
| 342 | /-- An index of the frame outside the subframe `e₁, …, e_i, z` is that of a vector `e_{b+1}` with |
| 343 | `i ≤ b < ϱ`. -/ |
| 344 | lemma RealPlace.le_and_ne_top_of_notMem_range {b : Fin (𝔰.ϱ + 1)} |
| 345 | (hb : b ∉ Set.range (subframeIndex hi)) : i ≤ b ∧ b ≠ 𝔰.top := |
| 346 | ⟨not_lt.1 fun h ↦ hb ⟨castSucc ⟨b, h⟩, subframeIndex_castSucc hi _⟩, |
| 347 | fun h ↦ hb ⟨last i, (subframeIndex_last hi).trans h.symm⟩⟩ |
| 348 | |
| 349 | /-- The vectors `e₁, …, e_i, z` of the subframe, as columns. -/ |
| 350 | abbrev RealPlace.subframeCols : Matrix 𝔰.BesselIndex (Fin (i + 1)) ℂ := |
| 351 | 𝔰.frameCols * inclMatrix ℂ (subframeIndex hi) |
| 352 | |
| 353 | /-- The matrix of the products of the subframe `e₁, …, e_i, z` with its image, cut out of the |
| 354 | matrix `Z` of the products of the frames. -/ |
| 355 | abbrev RealPlace.subframeBlock (Z : 𝔰.FrameMatrix) : Matrix (Fin (i + 1)) (Fin (i + 1)) ℂ := |
| 356 | Z.submatrix (subframeIndex hi) (subframeIndex hi) |
| 357 | |
| 358 | /-- The columns of `ω` lie in the negative space at `y`, are orthogonal to `I = A ∩ γ A`, where `A` |
| 359 | is the isotropic space, and pair perfectly with the subframe. For `γ` with norm-one pairs occurring |
| 360 | from level `j` with `i = min ϱ j` they are a basis of `y V₋ ∩ I^⊥`. -/ |
| 361 | structure RealPlace.IsNegativeBasis (γ y : 𝔰.G₁) (ω : Matrix 𝔰.BesselIndex (Fin (i + 1)) ℂ) : |
| 362 | Prop where |
| 363 | /-- The columns of `y⁻¹ ω` lie in `V₋`. -/ |
| 364 | J₁_mul : 𝔰.J₁ * (y⁻¹.val.val * ω) = -(y⁻¹.val.val * ω) |
| 365 | /-- The columns of `ω` are orthogonal to every vector `f x = γ f x'` that lies in `A`. -/ |
| 366 | orthogonal : ∀ x x' : Fin (𝔰.ϱ + 1) → ℂ, |
| 367 | γ.val.val *ᵥ 𝔰.frameCols *ᵥ x' = 𝔰.frameCols *ᵥ x → |
| 368 | x 𝔰.top = 0 → (𝔰.frameColsᴴ * 𝔰.J₁ * ω)ᴴ *ᵥ x = 0 |
| 369 | /-- The products of the subframe with the columns of `ω` form an invertible matrix. -/ |
| 370 | det_ne_zero : ((subframeCols hi)ᴴ * 𝔰.J₁ * ω).det ≠ 0 |
| 371 | |
| 372 | /-- **The weight modulo `I`.** Let `γ, y ∈ G₁`, let `f = (e₁, …, e_ϱ, z)` be the frame, `A` the span |
| 373 | of the `e_a`, `I = A ∩ γ A` and `V₋` the `-1` eigenspace of `J₁`. Let `NormOnePairOccursFrom j γ` |
| 374 | hold, with `i = min ϱ j`; `subframeCols` has the vectors `e₁, …, e_i, z` of the subframe as columns. |
| 375 | Let `ω` be a negative basis (`IsNegativeBasis`): its `i + 1` columns lie in `y V₋`, are orthogonal |
| 376 | to `I` for `J₁`, and their `J₁`-products with the subframe form an invertible matrix. Then |
| 377 | `volumeRatio γ y`, the ratio `ν(y)` of the volumes of the projections of `γ f` and `f` to `y V₋`, is |
| 378 | the modulus of the determinant of the products of `ω` with `γ e₁, …, γ e_i, γ z`, divided by that of |
| 379 | the products of `ω` with `e₁, …, e_i, z`. -/ |
| 380 | theorem RealPlace.IsNegativeBasis.volumeRatio_eq (hi_le : i ≤ 𝔰.ϱ) |
| 381 | {ω : Matrix 𝔰.BesselIndex (Fin (i + 1)) ℂ} (hω : IsNegativeBasis hi_le γ y ω) |
| 382 | (hγ : NormOnePairOccursFrom j γ) (hij : i = min 𝔰.ϱ j) : |
| 383 | volumeRatio γ y = |
| 384 | ‖(((γ : Matrix 𝔰.BesselIndex 𝔰.BesselIndex ℂ) * subframeCols hi_le)ᴴ * 𝔰.J₁ * ω).det‖ / |
| 385 | ‖((subframeCols hi_le)ᴴ * 𝔰.J₁ * ω).det‖ := by |
| 386 | -- `N` is the matrix of the projection of `γ f` in the basis given by the projection of `f`. |
| 387 | -- `P` holds the products of the frame with `ω`, and `P * (inclᴴ * P)⁻¹` those with the basis |
| 388 | -- dual to the subframe. The shared vectors reduce `det N` to a determinant on the subframe. |
| 389 | obtain ⟨ζ, hζ, h_flag⟩ : ∃ ζ : ℂ, ζ * star ζ = 1 ∧ |
| 390 | ∀ b : Fin (𝔰.ϱ + 1), j ≤ b.val → PairOccursAt γ ζ 1 b := hγ |
| 391 | have hζ_norm : ‖ζ‖ = 1 := |
| 392 | (pow_eq_one_iff_of_nonneg (norm_nonneg ζ) two_ne_zero).1 (by simpa [sq] using congrArg norm hζ) |
| 393 | let incl : Matrix (Fin 𝔰.n) (Fin (i + 1)) ℂ := inclMatrix ℂ (subframeIndex hi_le) |
| 394 | let N : 𝔰.FrameMatrix := frameLeftInverse y * γ.val.val * 𝔰.frameCols |
| 395 | let P : Matrix (Fin 𝔰.n) (Fin (i + 1)) ℂ := 𝔰.frameColsᴴ * 𝔰.J₁ * ω |
| 396 | have h_subframe_products : (subframeCols hi_le)ᴴ * 𝔰.J₁ * ω = inclᴴ * P := by |
| 397 | simp only [P, incl, conjTranspose_mul, Matrix.mul_assoc] |
| 398 | have h_det : IsUnit (inclᴴ * P).det := by |
| 399 | simpa only [h_subframe_products, isUnit_iff_ne_zero] using hω.det_ne_zero |
| 400 | have h_image : (γ.val.val * subframeCols hi_le)ᴴ * 𝔰.J₁ * ω = (N * incl)ᴴ * P := by |
| 401 | conv_lhs => rw [eq_mul_of_J₁_mul_eq_neg hω.J₁_mul] |
| 402 | simp [N, P, incl, Matrix.mul_assoc, mul_mul_eq_of_mul_eq mul_self] |
| 403 | have h_left_inv : (P * (inclᴴ * P)⁻¹)ᴴ * incl = 1 := by |
| 404 | simpa [Matrix.mul_assoc] using congrArg conjTranspose (mul_nonsing_inv _ h_det) |
| 405 | have h_reduce : ‖N.det‖ = ‖((P * (inclᴴ * P)⁻¹)ᴴ * (N * incl)).det‖ := by |
| 406 | refine norm_det_eq_norm_det_mul_inclMatrix h_left_inv fun b hb ↦ ?_ |
| 407 | obtain ⟨h_le, h_ne⟩ : i ≤ b ∧ b ≠ 𝔰.top := le_and_ne_top_of_notMem_range hi_le hb |
| 408 | have h_level : j ≤ b.val := by grind |
| 409 | obtain ⟨x, x', h_shared, hx_lead, h_lead, h_above⟩ : PairOccursAt γ ζ 1 b := |
| 410 | h_flag b h_level |
| 411 | have h_frames : γ.val.val *ᵥ 𝔰.frameCols *ᵥ x' = 𝔰.frameCols *ᵥ x := by |
| 412 | rw [mulVec_mulVec, mul_inclMatrix] |
| 413 | exact h_shared.symm |
| 414 | have hx_top : x 𝔰.top = 0 := (h_above _ (lt_top_iff_ne_top.2 h_ne)).1 |
| 415 | refine ⟨x, x', ?_, ?_, (congrArg norm hx_lead).trans hζ_norm, h_lead, h_above⟩ |
| 416 | · simp [N, ← mulVec_mulVec, h_frames, mulVec_mulVec x, frameLeftInverse_mul_frameCols] |
| 417 | · rw [conjTranspose_mul, ← mulVec_mulVec, hω.orthogonal x x' h_frames hx_top, mulVec_zero] |
| 418 | calc |
| 419 | volumeRatio γ y = ‖((P * (inclᴴ * P)⁻¹)ᴴ * (N * incl)).det‖ := |
| 420 | (volumeRatio_eq_norm_det γ y).trans h_reduce |
| 421 | _ = ‖((N * incl)ᴴ * P).det‖ / ‖(inclᴴ * P).det‖ := by |
| 422 | rw [← norm_star, ← det_conjTranspose] |
| 423 | simp [← Matrix.mul_assoc, det_mul _ (inclᴴ * P)⁻¹, div_eq_mul_inv] |
| 424 | _ = _ := by rw [h_image, h_subframe_products] |
| 425 | |
| 426 | /-- The products of the frame with the basis of the span of `γ e₁, …, γ e_i, γ z` that is dual to |
| 427 | the subframe `e₁, …, e_i, z`, in terms of the matrix `Z` of the products of the two frames. -/ |
| 428 | def RealPlace.dualProducts (Z : 𝔰.FrameMatrix) : Matrix (Fin 𝔰.n) (Fin (i + 1)) ℂ := |
| 429 | Z * inclMatrix ℂ (subframeIndex hi) * (subframeBlock hi Z)⁻¹ |
| 430 | |
| 431 | variable {Z : 𝔰.FrameMatrix} |
| 432 | |
| 433 | /-- If the subframe `e₁, …, e_i, z` and its image have products of nonzero determinant, the rows of |
| 434 | `dualProducts` that belong to the subframe form the identity matrix. -/ |
| 435 | lemma RealPlace.inclMatrix_mul_dualProducts (hδ : (subframeBlock hi Z).det ≠ 0) : |
| 436 | (inclMatrix ℂ (subframeIndex hi))ᴴ * dualProducts hi Z = 1 := by |
| 437 | rw [dualProducts, ← Matrix.mul_assoc, ← mul_nonsing_inv _ hδ.isUnit] |
| 438 | congr 1 |
| 439 | simp [← Matrix.ext_iff, inclMatrix, Matrix.mul_apply, Matrix.one_apply] |
| 440 | |
| 441 | /-- If `Z` is the matrix of the products of the two frames, the products of the frame with the |
| 442 | image under `γ` of the subframe `e₁, …, e_i, z` are the columns of `Z` at its indices. -/ |
| 443 | lemma RealPlace.frameCols_mul_mul_subframeCols (hZ : realFrameGram γ = Z) : |
| 444 | 𝔰.frameColsᴴ * 𝔰.J₁ * (γ.val.val * subframeCols hi) = Z * inclMatrix ℂ (subframeIndex hi) := by |
| 445 | rw [← Matrix.mul_assoc γ.val.val, ← Matrix.mul_assoc, ← hZ, realFrameGram_eq_conjTranspose_mul] |
| 446 | |
| 447 | /-- The columns of `ω` are a basis with Gram matrix `-1` of a subspace of the negative space at `y`. |
| 448 | Their products with the subframe `e₁, …, e_i, z` form the lower triangular matrix `L`, and those |
| 449 | with the whole frame are the ones that orthogonality to `I = A ∩ γ A` dictates when the frames `f` |
| 450 | and `γ f` have the products `Z`. -/ |
| 451 | structure RealPlace.IsTriangularBasis (y : 𝔰.G₁) (Z : 𝔰.FrameMatrix) |
| 452 | (ω : Matrix 𝔰.BesselIndex (Fin (i + 1)) ℂ) (L : Matrix (Fin (i + 1)) (Fin (i + 1)) ℂ) : |
| 453 | Prop where |
| 454 | /-- The columns of `y⁻¹ ω` lie in `V₋`. -/ |
| 455 | J₁_mul : 𝔰.J₁ * (y⁻¹.val.val * ω) = -(y⁻¹.val.val * ω) |
| 456 | /-- The Gram matrix of `ω` is `-1`. -/ |
| 457 | gram_eq_neg_one : ωᴴ * 𝔰.J₁ * ω = -1 |
| 458 | /-- The products of the frame with `ω` are those with the basis of the span of the image of the |
| 459 | subframe whose products with the subframe form `L`. -/ |
| 460 | products_eq : 𝔰.frameColsᴴ * 𝔰.J₁ * ω = dualProducts hi Z * L |
| 461 | /-- `L` is lower triangular. -/ |
| 462 | triangular : ∀ a b : Fin (i + 1), a < b → L a b = 0 |
| 463 | /-- `L` is invertible. -/ |
| 464 | det_ne_zero : L.det ≠ 0 |
| 465 | |
| 466 | end Subframe |
| 467 | |
| 468 | /-- If the columns of `y⁻¹ ω` lie in `V₋`, that is `J₁` acts on them as `-1`, then the |
| 469 | `J₁`-Gram matrix of `ω` is minus the Euclidean Gram matrix of `y⁻¹ ω`. -/ |
| 470 | private lemma gram_eq_neg_mul_of_J₁_mul {m : Type} |
| 471 | {y : 𝔰.G₁} {ω : Matrix 𝔰.BesselIndex m ℂ} |
| 472 | (hω : 𝔰.J₁ * (y⁻¹.val.val * ω) = -(y⁻¹.val.val * ω)) : |
| 473 | ωᴴ * 𝔰.J₁ * ω = -((y⁻¹.val.val * ω)ᴴ * (y⁻¹.val.val * ω)) := by |
| 474 | rw [← U.gram_invariant y⁻¹, Matrix.mul_assoc, hω, Matrix.mul_neg] |
| 475 | |
| 476 | /-- Let `i ≤ ϱ` and let `Z` be a square matrix indexed by the frame whose block |
| 477 | `B = subframeBlock hi_le Z` at the indices of the subframe `e₁, …, e_i, z` has nonzero determinant. |
| 478 | The matrix `dualProducts hi_le Z` consists of the columns of `Z` at these indices, times `B⁻¹`. Then |
| 479 | at every point `y ∈ G₁` there is a triangular basis: vectors `ω` in `y V₋` with `J₁`-Gram matrix |
| 480 | `-1` whose products with the frame are `dualProducts hi_le Z * L`, with `L` lower triangular and |
| 481 | invertible. It comes from the Gram–Schmidt process applied to the vectors of `y V₋` with products |
| 482 | `dualProducts hi_le Z`. -/ |
| 483 | lemma RealPlace.exists_isTriangularBasis {i : ℕ} {Z : 𝔰.FrameMatrix} (hi_le : i ≤ 𝔰.ϱ) |
| 484 | (y : 𝔰.G₁) (hδ : (subframeBlock hi_le Z).det ≠ 0) : |
| 485 | ∃ (ω : Matrix 𝔰.BesselIndex (Fin (i + 1)) ℂ) (L : Matrix (Fin (i + 1)) (Fin (i + 1)) ℂ), |
| 486 | IsTriangularBasis hi_le y Z ω L := by |
| 487 | -- `ω₀` is the basis that is dual to the subframe, and `W = y⁻¹ ω₀` lies in `V₋`. |
| 488 | let ω₀ : Matrix 𝔰.BesselIndex (Fin (i + 1)) ℂ := |
| 489 | 𝔰.J₁ * (frameLeftInverse y)ᴴ * dualProducts hi_le Z |
| 490 | let W : Matrix 𝔰.BesselIndex (Fin (i + 1)) ℂ := y⁻¹.val.val * ω₀ |
| 491 | have hW : 𝔰.J₁ * W = -W := by |
| 492 | simp only [W, ω₀, J₁_mul_frameLeftInverse_conjTranspose, Matrix.neg_mul, Matrix.mul_neg, |
| 493 | ← Matrix.mul_assoc, Subgroup.coe_inv, Units.inv_mul, Matrix.one_mul] |
| 494 | rw [Matrix.mul_assoc 𝔰.J₁ (1 - 𝔰.J₁), J₁_mul_one_sub_J₁_mul, Matrix.neg_mul, Matrix.neg_mul] |
| 495 | have h_products : 𝔰.frameColsᴴ * 𝔰.J₁ * ω₀ = dualProducts hi_le Z := by |
| 496 | simp [ω₀, Matrix.mul_assoc, mul_mul_eq_of_mul_eq mul_self, ← conjTranspose_mul, |
| 497 | frameLeftInverse_mul_frameCols, ← Matrix.mul_assoc 𝔰.frameColsᴴ] |
| 498 | have h_gram : ω₀ᴴ * 𝔰.J₁ * ω₀ = -(Wᴴ * W) := gram_eq_neg_mul_of_J₁_mul hW |
| 499 | have h_left : |
| 500 | (inclMatrix ℂ (subframeIndex hi_le))ᴴ * (𝔰.frameColsᴴ * 𝔰.J₁ * y.val.val) * W = 1 := by |
| 501 | simp [← inclMatrix_mul_dualProducts hi_le hδ, ← h_products, W, Matrix.mul_assoc] |
| 502 | -- Reverse the index order to obtain a lower triangular change of basis. |
| 503 | obtain ⟨L, h_triangular, hL⟩ := |
| 504 | exists_orthonormal_mul (OrderDual.toDual : Fin (i + 1) → (Fin (i + 1))ᵒᵈ) ⟨_, h_left⟩ |
| 505 | have hL_gram : L.valᴴ * (Wᴴ * W) * L.val = 1 := by |
| 506 | simpa only [conjTranspose_mul, Matrix.mul_assoc] using hL |
| 507 | refine ⟨ω₀ * L.val, L.val, |
| 508 | { J₁_mul := ?_, gram_eq_neg_one := ?_, products_eq := ?_, |
| 509 | triangular := fun _ _ h ↦ h_triangular h, det_ne_zero := (isUnits_det_units L).ne_zero }⟩ |
| 510 | · rw [← Matrix.mul_assoc y⁻¹.val.val, ← Matrix.mul_assoc, hW, Matrix.neg_mul] |
| 511 | · rw [← hL_gram, ← Matrix.neg_mul, ← Matrix.mul_neg, ← h_gram] |
| 512 | simp only [conjTranspose_mul, Matrix.mul_assoc] |
| 513 | · simp [← Matrix.mul_assoc, h_products] |
| 514 | |
| 515 | section TriangularBasis |
| 516 | |
| 517 | variable {γ : 𝔰.G₁} {i j : ℕ} (hi : i ≤ 𝔰.ϱ) {y : 𝔰.G₁} {Z : 𝔰.FrameMatrix} |
| 518 | {ω : Matrix 𝔰.BesselIndex (Fin (i + 1)) ℂ} {L : Matrix (Fin (i + 1)) (Fin (i + 1)) ℂ} |
| 519 | |
| 520 | namespace RealPlace.IsTriangularBasis |
| 521 | |
| 522 | variable {hi} |
| 523 | |
| 524 | /-- If the block of `Z` at the subframe `e₁, …, e_i, z` is invertible and `(ω, L)` is a triangular |
| 525 | basis at `y ∈ G₁`, the products of the subframe with `ω` form the matrix `L`. -/ |
| 526 | lemma conjTranspose_subframeCols_mul_J₁_mul_eq (h : IsTriangularBasis hi y Z ω L) |
| 527 | (hδ : (subframeBlock hi Z).det ≠ 0) : (subframeCols hi)ᴴ * 𝔰.J₁ * ω = L := by |
| 528 | rw [conjTranspose_mul, Matrix.mul_assoc, Matrix.mul_assoc, ← Matrix.mul_assoc 𝔰.frameColsᴴ, |
| 529 | h.products_eq, ← Matrix.mul_assoc, inclMatrix_mul_dualProducts hi hδ, Matrix.one_mul] |
| 530 | |
| 531 | /-- Let `γ, y ∈ G₁`, let `Z` be the matrix of products of the frames `f` and `γ f` and let its block |
| 532 | at the subframe `e₁, …, e_i, z` be invertible. Then a triangular basis `ω` is a negative basis: its |
| 533 | columns lie in `y V₋`, pair perfectly with the subframe and are orthogonal to `A ∩ γ A`. -/ |
| 534 | lemma isNegativeBasis (h : IsTriangularBasis hi y Z ω L) |
| 535 | (hZ : realFrameGram γ = Z) (hδ : (subframeBlock hi Z).det ≠ 0) : |
| 536 | IsNegativeBasis hi γ y ω := by |
| 537 | have h_det : ((subframeCols hi)ᴴ * 𝔰.J₁ * ω).det ≠ 0 := by |
| 538 | rw [h.conjTranspose_subframeCols_mul_J₁_mul_eq hδ] |
| 539 | exact h.det_ne_zero |
| 540 | refine ⟨h.J₁_mul, fun x x' h_shared hx ↦ ?_, h_det⟩ |
| 541 | -- A vector of `I` lies in `γ A`, so it is orthogonal to the frame of `γ`. |
| 542 | obtain ⟨h_products, h_norm⟩ : |
| 543 | (realFrameGram γ)ᴴ *ᵥ x = Pi.single 𝔰.top (-x' 𝔰.top) ∧ ‖x' 𝔰.top‖ = ‖x 𝔰.top‖ := |
| 544 | conjTranspose_realFrameGram_mulVec h_shared |
| 545 | have hx' : x' 𝔰.top = 0 := by rwa [hx, norm_zero, norm_eq_zero] at h_norm |
| 546 | have h_orth : Zᴴ *ᵥ x = 0 := by rw [← hZ, h_products, hx', neg_zero, Pi.single_zero] |
| 547 | simp [h.products_eq, dualProducts, ← mulVec_mulVec, h_orth] |
| 548 | |
| 549 | /-- The vectors `y⁻¹ ω_l` of a triangular basis are orthonormal in the `-1` eigenspace `V₋` of |
| 550 | `J₁`, so the product for the form `J₁` of a vector `x` with `y⁻¹ ω_l` is at most the length of |
| 551 | `x`. -/ |
| 552 | lemma norm_dotProduct_J₁_mul_col_le_norm (h : IsTriangularBasis hi y Z ω L) |
| 553 | (x : EuclideanSpace ℂ 𝔰.BesselIndex) (l : Fin (i + 1)) : |
| 554 | ‖star x.ofLp ⬝ᵥ |
| 555 | (𝔰.J₁ * (((y⁻¹ : 𝔰.G₁) : Matrix 𝔰.BesselIndex 𝔰.BesselIndex ℂ) * ω)).col l‖ ≤ ‖x‖ := by |
| 556 | set W : Matrix 𝔰.BesselIndex (Fin (i + 1)) ℂ := y⁻¹.val.val * ω |
| 557 | have h_orthonormal : Wᴴ * W = 1 := by |
| 558 | exact neg_inj.mp ((gram_eq_neg_mul_of_J₁_mul h.J₁_mul).symm.trans h.gram_eq_neg_one) |
| 559 | let w : EuclideanSpace ℂ 𝔰.BesselIndex := .toLp 2 (W.col l) |
| 560 | have hw : ‖w‖ = 1 := by |
| 561 | have h_inner : inner ℂ w w = 1 := by |
| 562 | rw [EuclideanSpace.inner_eq_star_dotProduct, dotProduct_comm] |
| 563 | exact (congrFun₂ h_orthonormal l l).trans (one_apply_eq l) |
| 564 | rw [norm_eq_sqrt_re_inner (𝕜 := ℂ), h_inner, RCLike.one_re, sqrt_one] |
| 565 | have h_product : star x.ofLp ⬝ᵥ (𝔰.J₁ * W).col l = -inner ℂ x w := by |
| 566 | rw [h.J₁_mul, EuclideanSpace.inner_eq_star_dotProduct, dotProduct_comm w.ofLp] |
| 567 | exact dotProduct_neg _ _ |
| 568 | grw [h_product, norm_neg, norm_inner_le_norm, hw, mul_one] |
| 569 | |
| 570 | /-- If the block of `Z` at the subframe `e₁, …, e_i, z` is invertible, the entry `L a l` of a |
| 571 | triangular basis is the product for the form `J₁` of the `a`-th vector of the subframe with `ω_l`, |
| 572 | both moved by `y⁻¹`. -/ |
| 573 | lemma apply_eq_frameVector_dotProduct (h : IsTriangularBasis hi y Z ω L) |
| 574 | (hδ : (subframeBlock hi Z).det ≠ 0) (a l : Fin (i + 1)) : |
| 575 | L a l = star (frameVector y (subframeIndex hi a)).ofLp ⬝ᵥ |
| 576 | (𝔰.J₁ * (((y⁻¹ : 𝔰.G₁) : Matrix 𝔰.BesselIndex 𝔰.BesselIndex ℂ) * ω)).col l := by |
| 577 | have h_col : (y⁻¹.val.val * subframeCols hi).col a = |
| 578 | (frameVector y (subframeIndex hi a)).ofLp := by |
| 579 | rw [← Matrix.mul_assoc, mul_inclMatrix, mul_inclMatrix] |
| 580 | ext b |
| 581 | simp [frameVector] |
| 582 | rw [← h.conjTranspose_subframeCols_mul_J₁_mul_eq hδ, ← U.gram_invariant y⁻¹, Matrix.mul_assoc, |
| 583 | ← h_col] |
| 584 | simp only [Matrix.mul_apply, conjTranspose_apply, dotProduct, col_apply, Pi.star_apply] |
| 585 | |
| 586 | /-- If the frame vectors `y⁻¹ f_a` have length at most `ρ` and the block of `Z` at the subframe |
| 587 | `e₁, …, e_i, z` is invertible, then `|det L| ≤ ρ ^ (i + 1)` for every triangular basis `(ω, L)` |
| 588 | at `y`. -/ |
| 589 | lemma norm_det_le (h : IsTriangularBasis hi y Z ω L) |
| 590 | (hδ : (subframeBlock hi Z).det ≠ 0) {ρ : ℝ} (hρ : y ∈ frameBox ρ) : |
| 591 | ‖L.det‖ ≤ ρ ^ (i + 1) := by |
| 592 | rw [det_of_isLowerTriangular L h.triangular, norm_prod, ← Fin.prod_const] |
| 593 | refine Finset.prod_le_prod₀ (fun _ _ ↦ norm_nonneg _) fun l _ ↦ ?_ |
| 594 | rw [h.apply_eq_frameVector_dotProduct hδ] |
| 595 | exact (h.norm_dotProduct_J₁_mul_col_le_norm _ l).trans (hρ _) |
| 596 | |
| 597 | /-- As `L` is triangular, its determinant has the modulus of that of its leading block of order |
| 598 | `i` times that of its last diagonal entry. -/ |
| 599 | lemma norm_det_eq_mul_norm_last (h : IsTriangularBasis hi y Z ω L) : |
| 600 | ‖L.det‖ = ‖(L.submatrix castSucc castSucc).det‖ * ‖L (last i) (last i)‖ := by |
| 601 | rw [det_of_isLowerTriangular L h.triangular, prod_univ_castSucc, norm_mul, |
| 602 | det_of_isLowerTriangular (L.submatrix castSucc castSucc) fun a b hab ↦ |
| 603 | h.triangular _ _ (castSucc_lt_castSucc_iff.2 hab)] |
| 604 | simp only [submatrix_apply] |
| 605 | |
| 606 | end RealPlace.IsTriangularBasis |
| 607 | |
| 608 | /-- If `Z` is the matrix of products of the frames `f` and `γ f`, with invertible block at the |
| 609 | subframe `e₁, …, e_i, z`, and `L` is invertible: the basis of the span of `γ e₁, …, γ e_i, γ z` |
| 610 | whose products with the subframe form `L`. -/ |
| 611 | def RealPlace.imageBasis (γ : 𝔰.G₁) (Z : 𝔰.FrameMatrix) (L : Matrix (Fin (i + 1)) (Fin (i + 1)) ℂ) : |
| 612 | Matrix 𝔰.BesselIndex (Fin (i + 1)) ℂ := |
| 613 | (γ : Matrix 𝔰.BesselIndex 𝔰.BesselIndex ℂ) * subframeCols hi * (subframeBlock hi Z)⁻¹ * L |
| 614 | |
| 615 | /-- The classes `v_l` in `X₀`, that is the coordinates in `X₀`, of the differences between |
| 616 | `imageBasis` and `ω`. -/ |
| 617 | def RealPlace.differenceX₀ (γ : 𝔰.G₁) (Z : 𝔰.FrameMatrix) (ω : Matrix 𝔰.BesselIndex (Fin (i + 1)) ℂ) |
| 618 | (L : Matrix (Fin (i + 1)) (Fin (i + 1)) ℂ) : Matrix 𝔰.κ (Fin (i + 1)) ℂ := |
| 619 | 𝔰.definiteColsᴴ * (imageBasis hi γ Z L - ω) |
| 620 | |
| 621 | namespace RealPlace.IsTriangularBasis |
| 622 | |
| 623 | variable {hi} |
| 624 | |
| 625 | /-- Let `γ, y ∈ G₁`, let `Z` be the matrix of products of the frames `f` and `γ f` and let `(ω, L)` |
| 626 | be a triangular basis at `y`. Then the differences `imageBasis - ω` are orthogonal to the frame. -/ |
| 627 | lemma conjTranspose_frameCols_mul_J₁_mul_sub_eq_zero (h : IsTriangularBasis hi y Z ω L) |
| 628 | (hZ : realFrameGram γ = Z) : |
| 629 | 𝔰.frameColsᴴ * 𝔰.J₁ * (imageBasis hi γ Z L - ω) = 0 := by |
| 630 | rw [Matrix.mul_sub, h.products_eq, imageBasis, ← Matrix.mul_assoc, ← Matrix.mul_assoc, |
| 631 | frameCols_mul_mul_subframeCols hi hZ, dualProducts, sub_self] |
| 632 | |
| 633 | /-- Let `γ, y ∈ G₁`, let `Z` be the matrix of products of the frames `f` and `γ f` and let `(ω, L)` |
| 634 | be a triangular basis at `y`. Then the differences `imageBasis - ω` have the same Gram matrix as |
| 635 | their classes `differenceX₀` in `X₀`. -/ |
| 636 | lemma gram_differenceX₀ (h : IsTriangularBasis hi y Z ω L) (hZ : realFrameGram γ = Z) : |
| 637 | (differenceX₀ hi γ Z ω L)ᴴ * differenceX₀ hi γ Z ω L = |
| 638 | (imageBasis hi γ Z L - ω)ᴴ * 𝔰.J₁ * (imageBasis hi γ Z L - ω) := |
| 639 | gram_definiteCols_mul_eq (h.conjTranspose_frameCols_mul_J₁_mul_sub_eq_zero hZ) |
| 640 | |
| 641 | /-- **A lower bound for the ratio.** Let norm-one pairs occur for `γ ∈ G₁` from level `j`, with |
| 642 | `i = min ϱ j` and `Z` the products of the two frames. Let the determinant `δ` of the block of the |
| 643 | subframe in `Z` be nonzero, let `(ω, L)` be a triangular basis at `y`, and let the columns of |
| 644 | `v = differenceX₀ hi γ Z ω L` be the parts in `X₀` of `ω'_l - ω_l`, for the basis `ω'` of the span |
| 645 | of `γ e₁, …, γ e_i, γ z` with products `L` with the subframe. Then the ratio `ν(y)` of the volumes |
| 646 | of the projections of `γ f` and `f` to `y V₋` satisfies |
| 647 | `ν(y) ≥ 2 ^ (-i - 1) |δ| det (1 + v vᴴ) / |det L|²`. -/ |
| 648 | lemma norm_det_mul_le_volumeRatio (h : IsTriangularBasis hi y Z ω L) |
| 649 | (hZ : realFrameGram γ = Z) (hγ : NormOnePairOccursFrom j γ) |
| 650 | (hij : i = min 𝔰.ϱ j) (hδ : (subframeBlock hi Z).det ≠ 0) : |
| 651 | ‖(subframeBlock hi Z).det‖ * ‖(1 + differenceX₀ hi γ Z ω L * (differenceX₀ hi γ Z ω L)ᴴ).det‖ ≤ |
| 652 | 2 ^ (i + 1) * ‖L.det‖ ^ 2 * volumeRatio γ y := by |
| 653 | -- With `K = ωᴴ J ω'`, expanding the products of `ω' - ω` gives `-K - Kᴴ ≥ 1 + vᴴ v`, as the |
| 654 | -- form is `≤ 0` on the frame of `γ`. Apply the Ostrowski–Taussky inequality to `-K`. |
| 655 | set ω' : Matrix 𝔰.BesselIndex (Fin (i + 1)) ℂ := imageBasis hi γ Z L with hω' |
| 656 | set v : Matrix 𝔰.κ (Fin (i + 1)) ℂ := differenceX₀ hi γ Z ω L |
| 657 | let K : Matrix (Fin (i + 1)) (Fin (i + 1)) ℂ := ωᴴ * 𝔰.J₁ * ω' |
| 658 | have h_expand : -K + (-K)ᴴ - (1 + vᴴ * v) = -(ω'ᴴ * 𝔰.J₁ * ω') := by |
| 659 | rw [h.gram_differenceX₀ hZ, ← hω', conjTranspose_sub, Matrix.sub_mul, Matrix.sub_mul, |
| 660 | Matrix.mul_sub, Matrix.mul_sub, h.gram_eq_neg_one] |
| 661 | simp only [K, conjTranspose_neg, conjTranspose_mul, conjTranspose_conjTranspose, |
| 662 | isHermitian.eq, Matrix.mul_assoc] |
| 663 | abel |
| 664 | have h_negative : (-K + (-K)ᴴ - (1 + vᴴ * v)).PosSemidef := by |
| 665 | simpa only [h_expand, hω', imageBasis, Matrix.mul_assoc] using |
| 666 | posSemidef_neg_gram_mul_frameCols γ |
| 667 | (inclMatrix ℂ (subframeIndex hi) * (subframeBlock hi Z)⁻¹ * L) |
| 668 | have h_ostrowski : ‖(1 + vᴴ * v).det‖ ≤ 2 ^ (i + 1) * ‖(-K).det‖ := by |
| 669 | simpa only [Fintype.card_fin] using |
| 670 | (PosSemidef.one.add v.posSemidef_conjTranspose_mul_self).norm_det_le_two_pow_mul h_negative |
| 671 | have hL : 0 < ‖L.det‖ := norm_pos_iff.2 h.det_ne_zero |
| 672 | have h_det : ‖(-K).det‖ = volumeRatio γ y * ‖L.det‖ ^ 2 / ‖(subframeBlock hi Z).det‖ := by |
| 673 | have h_factor : K = ((γ.val.val * subframeCols hi)ᴴ * 𝔰.J₁ * ω)ᴴ * (subframeBlock hi Z)⁻¹ * |
| 674 | L := by |
| 675 | simp only [K, hω', imageBasis, conjTranspose_mul, conjTranspose_conjTranspose, |
| 676 | isHermitian.eq, Matrix.mul_assoc] |
| 677 | rw [(h.isNegativeBasis hZ hδ).volumeRatio_eq hi hγ hij, |
| 678 | h.conjTranspose_subframeCols_mul_J₁_mul_eq hδ, det_neg, h_factor] |
| 679 | simp only [det_mul _ L, det_mul _ _⁻¹, det_conjTranspose, det_nonsing_inv, Ring.inverse_eq_inv, |
| 680 | norm_mul, norm_pow, norm_neg, norm_one, one_pow, norm_star, norm_inv] |
| 681 | field_simp |
| 682 | calc |
| 683 | _ = ‖(subframeBlock hi Z).det‖ * ‖(1 + vᴴ * v).det‖ := by rw [det_one_add_mul_comm] |
| 684 | _ ≤ ‖(subframeBlock hi Z).det‖ * (2 ^ (i + 1) * ‖(-K).det‖) := by grw [h_ostrowski] |
| 685 | _ = _ := by |
| 686 | rw [h_det] |
| 687 | field_simp |
| 688 | |
| 689 | end RealPlace.IsTriangularBasis |
| 690 | |
| 691 | /-- **The translates.** Let `γ, γ₀ ∈ G₁` and let the block `B` of `Z` at the indices of the subframe |
| 692 | `e₁, …, e_i, z` be invertible. The matrix `differenceX₀ hi γ Z ω L` holds the coordinates in `X₀` of |
| 693 | the columns of `γ (e₁, …, e_i, z) B⁻¹ L - ω`. If the part in `X₀` of the image of the subframe under |
| 694 | `γ` is that under `γ₀` plus `Aᴴ` times the first `i` rows of `B`, then this matrix for `γ` is the |
| 695 | one for `γ₀` plus `Aᴴ` times the first `i` rows of `L`. -/ |
| 696 | lemma RealPlace.differenceX₀_eq_add (hδ : (subframeBlock hi Z).det ≠ 0) {γ₀ : 𝔰.G₁} |
| 697 | {A : Matrix (Fin i) 𝔰.κ ℂ} |
| 698 | (h_shift : frameX₀Part γ * inclMatrix ℂ (subframeIndex hi) = |
| 699 | frameX₀Part γ₀ * inclMatrix ℂ (subframeIndex hi) + |
| 700 | Aᴴ * (subframeBlock hi Z).submatrix castSucc id) : |
| 701 | differenceX₀ hi γ Z ω L = differenceX₀ hi γ₀ Z ω L + Aᴴ * L.submatrix castSucc id := by |
| 702 | have h_rows : (subframeBlock hi Z).submatrix castSucc id * ((subframeBlock hi Z)⁻¹ * L) = |
| 703 | L.submatrix castSucc id := by |
| 704 | conv_rhs => rw [← mul_nonsing_inv_cancel_left (subframeBlock hi Z) L hδ.isUnit] |
| 705 | rfl |
| 706 | have h_part (g : 𝔰.G₁) : 𝔰.definiteColsᴴ * imageBasis hi g Z L = |
| 707 | frameX₀Part g * inclMatrix ℂ (subframeIndex hi) * ((subframeBlock hi Z)⁻¹ * L) := by |
| 708 | simp only [imageBasis, frameX₀Part, Matrix.mul_assoc] |
| 709 | rw [differenceX₀, differenceX₀, Matrix.mul_sub, Matrix.mul_sub, h_part, h_part, h_shift, |
| 710 | Matrix.add_mul, Matrix.mul_assoc Aᴴ, h_rows, add_sub_right_comm] |
| 711 | |
| 712 | /-- Let `i ≤ ϱ`, let `c` be a vector on the `i + 1` indices of the subframe at level `i`, and let |
| 713 | `x'` be its image under the inclusion of the subframe. If `γ` takes the combination `x'` of the |
| 714 | frame to the combination `x`, then the block of `Z = realFrameGram γ` at the indices of the subframe |
| 715 | takes `c` to `(0, …, 0, -x 𝔰.top)`. -/ |
| 716 | private lemma RealPlace.subframeBlock_mulVec_eq_single (hi_le : i ≤ 𝔰.ϱ) |
| 717 | (hZ : realFrameGram γ = Z) {x x' : Fin 𝔰.n → ℂ} {c : Fin (i + 1) → ℂ} |
| 718 | (h_frames : γ.val.val *ᵥ 𝔰.frameCols *ᵥ x' = 𝔰.frameCols *ᵥ x) |
| 719 | (hc : inclMatrix ℂ (subframeIndex hi_le) *ᵥ c = x') : |
| 720 | subframeBlock hi_le Z *ᵥ c = Pi.single (last i) (-x 𝔰.top) := by |
| 721 | have hZx' : Z *ᵥ x' = Pi.single 𝔰.top (-x 𝔰.top) := by |
| 722 | have h_inverse : γ⁻¹.val.val *ᵥ 𝔰.frameCols *ᵥ x = 𝔰.frameCols *ᵥ x' := by |
| 723 | simpa [mulVec_mulVec, ← Units.val_mul, ← Subgroup.coe_mul] using |
| 724 | congrArg (γ⁻¹.val.val *ᵥ ·) h_frames.symm |
| 725 | simpa only [← hZ, realFrameGram, Filling.frameGram_inv, conjTranspose_conjTranspose] using |
| 726 | (conjTranspose_realFrameGram_mulVec h_inverse).1 |
| 727 | rw [← hc, mulVec_mulVec, mul_inclMatrix] at hZx' |
| 728 | ext l |
| 729 | -- The block is made of the rows of the subframe in `Z.submatrix id (subframeIndex hi_le)`. |
| 730 | change (Z.submatrix id (subframeIndex hi_le) *ᵥ c) (subframeIndex hi_le l) = _ |
| 731 | rw [hZx'] |
| 732 | cases l using lastCases |
| 733 | · simp |
| 734 | · rw [subframeIndex_castSucc, Pi.single_eq_of_ne (castSucc_ne_last _), |
| 735 | Pi.single_eq_of_ne (castSucc_ne_last _)] |
| 736 | |
| 737 | /-- Let norm-one pairs occur for `γ ∈ G₁` from level `i ≤ ϱ`, with matrix `Z` of products of the two |
| 738 | frames. The spans of the two frames share a vector `f x` that is a combination `c` of the image of |
| 739 | the subframe, with coefficient `1` at `γ z`. The coefficient `x z` of `z` has modulus `1`, and the |
| 740 | products of the subframe with `f x` are `(0, …, 0, -x z)`. -/ |
| 741 | lemma RealPlace.exists_common_vector_of_normOnePairOccursFrom (hi_le : i ≤ 𝔰.ϱ) |
| 742 | (hZ : realFrameGram γ = Z) (hγ : NormOnePairOccursFrom i γ) : |
| 743 | ∃ (x : Fin 𝔰.n → ℂ) (c : Fin (i + 1) → ℂ), |
| 744 | ‖x 𝔰.top‖ = 1 ∧ |
| 745 | c (last i) = 1 ∧ |
| 746 | ((γ : Matrix 𝔰.BesselIndex 𝔰.BesselIndex ℂ) * subframeCols hi_le) *ᵥ c = 𝔰.frameCols *ᵥ x ∧ |
| 747 | subframeBlock hi_le Z *ᵥ c = Pi.single (last i) (-x 𝔰.top) := by |
| 748 | -- Take the shared vector with coefficient `1` at `γ z` and none at the other indices from `i` on. |
| 749 | obtain ⟨x, x', hx', h_shared⟩ : ∃ x x' : Fin 𝔰.n → ℂ, |
| 750 | (∀ a : Fin 𝔰.n, i ≤ a.val → x' a = Pi.single (M := fun _ ↦ ℂ) 𝔰.top 1 a) ∧ |
| 751 | frameImage 1 *ᵥ x = frameImage γ.val.val *ᵥ x' := |
| 752 | Filling.exists_frameImage_eq_of_normOnePairOccursFrom (j := ⟨i, by lia⟩) hγ |
| 753 | (Pi.single 𝔰.top (1 : ℂ)) |
| 754 | have h_frames : γ.val.val *ᵥ 𝔰.frameCols *ᵥ x' = 𝔰.frameCols *ᵥ x := by |
| 755 | rw [mulVec_mulVec, mul_inclMatrix] |
| 756 | exact h_shared.symm |
| 757 | have hx'_top : x' 𝔰.top = 1 := (hx' _ hi_le).trans (Pi.single_eq_same ..) |
| 758 | have hx : ‖x 𝔰.top‖ = 1 := by |
| 759 | rw [← (conjTranspose_realFrameGram_mulVec h_frames).2, hx'_top, norm_one] |
| 760 | -- `x'` is supported on the subframe. |
| 761 | let c : Fin (i + 1) → ℂ := x' ∘ subframeIndex hi_le |
| 762 | have hc : inclMatrix ℂ (subframeIndex hi_le) *ᵥ c = x' := by |
| 763 | ext b |
| 764 | by_cases hb : b ∈ Set.range (subframeIndex hi_le) |
| 765 | · obtain ⟨l, rfl⟩ := hb |
| 766 | simp [c, inclMatrix, mulVec, dotProduct, Matrix.one_apply, |
| 767 | (subframeIndex_injective hi_le).eq_iff] |
| 768 | · obtain ⟨h_le, h_ne⟩ : i ≤ b ∧ b ≠ 𝔰.top := le_and_ne_top_of_notMem_range hi_le hb |
| 769 | simp_all [inclMatrix, mulVec, dotProduct, eq_comm] |
| 770 | have h_block_mulVec : subframeBlock hi_le Z *ᵥ c = Pi.single (last i) (-x 𝔰.top) := |
| 771 | RealPlace.subframeBlock_mulVec_eq_single hi_le hZ h_frames hc |
| 772 | refine ⟨x, c, hx, by simpa [c] using hx'_top, ?_, h_block_mulVec⟩ |
| 773 | rw [← mulVec_mulVec, ← mulVec_mulVec, hc, h_frames] |
| 774 | |
| 775 | end TriangularBasis |
| 776 | |
| 777 | /-- Let norm-one pairs occur for `γ ∈ G₁` from level `j ≤ n = ϱ + 1`, let `Z` be the matrix of |
| 778 | products of the two frames and let `i = min ϱ j`. Then the determinant of the block |
| 779 | `subframeBlock hi_le Z` of `Z` at the indices of the subframe `e₁, …, e_i, z` has the modulus of the |
| 780 | leading principal minor of order `j` of `Z`. -/ |
| 781 | lemma RealPlace.norm_det_subframeBlock {γ : 𝔰.G₁} {i j : ℕ} {Z : 𝔰.FrameMatrix} |
| 782 | (hi_le : i ≤ 𝔰.ϱ) (hZ : realFrameGram γ = Z) (hγ : NormOnePairOccursFrom j γ) (hj : j ≤ 𝔰.n) |
| 783 | (hij : i = min 𝔰.ϱ j) : |
| 784 | ‖(subframeBlock hi_le Z).det‖ = ‖(Z.submatrix (castLE hj) (castLE hj)).det‖ := by |
| 785 | obtain h_low | h_top := le_or_gt j 𝔰.ϱ |
| 786 | · -- The shared vector at `γ z` gives a new last column, along which the determinant is expanded. |
| 787 | obtain rfl : i = j := hij.trans (min_eq_right h_low) |
| 788 | obtain ⟨x, c, hx, hc, -, h_block_mulVec⟩ := |
| 789 | exists_common_vector_of_normOnePairOccursFrom hi_le hZ hγ |
| 790 | -- By Cramer's rule, as `c` is `1` at the last index, replacing the last column by the product |
| 791 | -- of the block and `c` leaves the determinant unchanged. |
| 792 | have h_update : |
| 793 | ((subframeBlock hi_le Z).updateCol (last i) (Pi.single (last i) (-x 𝔰.top))).det = |
| 794 | (subframeBlock hi_le Z).det := by |
| 795 | rw [← cramer_apply, ← h_block_mulVec, cramer_eq_adjugate_mulVec, mulVec_mulVec, adjugate_mul, |
| 796 | smul_mulVec, one_mulVec, Pi.smul_apply, hc, smul_eq_mul, mul_one] |
| 797 | have h_minor : |
| 798 | ((subframeBlock hi_le Z).updateCol (last i) (Pi.single (last i) (-x 𝔰.top))).submatrix |
| 799 | castSucc castSucc = Z.submatrix (castLE hj) (castLE hj) := by |
| 800 | ext a b |
| 801 | simp |
| 802 | rw [← h_update, det_succ_column _ (last i), sum_univ_castSucc] |
| 803 | simp [h_minor, hx] |
| 804 | · obtain rfl : i = 𝔰.ϱ := hij.trans (min_eq_left h_top.le) |
| 805 | obtain rfl : j = 𝔰.n := hj.antisymm h_top |
| 806 | have h_id : subframeIndex (le_refl 𝔰.ϱ) = id := funext subframeIndex_self |
| 807 | simp [subframeBlock, h_id] |
| 808 | |
| 809 | section LastColumn |
| 810 | |
| 811 | variable {γ : 𝔰.G₁} {i j : ℕ} {hi : i ≤ 𝔰.ϱ} {y : 𝔰.G₁} {Z : 𝔰.FrameMatrix} |
| 812 | {ω : Matrix 𝔰.BesselIndex (Fin (i + 1)) ℂ} {L : Matrix (Fin (i + 1)) (Fin (i + 1)) ℂ} |
| 813 | |
| 814 | namespace RealPlace.IsTriangularBasis |
| 815 | |
| 816 | /-- **The last column, top level.** Let `i = ϱ`, so that the subframe `e₁, …, e_i, z` is the whole |
| 817 | frame, and let `Z` be any square matrix indexed by the frame whose block of the subframe (here all |
| 818 | of `Z`) is invertible. If `y ∈ G₁` has length at most `θ` (`besselLength`, the infimum of |
| 819 | `‖s y‖ + 1` over the Bessel subgroup), then `|L (last i) (last i)| ≤ θ` for every triangular basis |
| 820 | `(ω, L)` at `y` for `Z`. -/ |
| 821 | lemma norm_last_le (h : IsTriangularBasis hi y Z ω L) |
| 822 | (hδ : (subframeBlock hi Z).det ≠ 0) (h_top : i = 𝔰.ϱ) {θ : ℝ} |
| 823 | (hθ : besselLength y ≤ θ) : ‖L (last i) (last i)‖ ≤ θ := by |
| 824 | -- Take `u` unipotent with `‖u y‖ ≤ θ`. The last vector `ω_z` is orthogonal to `A`, so its product |
| 825 | -- with `z` is its product with `u⁻¹ z`. |
| 826 | subst h_top |
| 827 | obtain ⟨u, hu, hu_le⟩ : ∃ u ∈ besselU, ‖(u * y).val.val‖ ≤ θ := |
| 828 | exists_norm_le_of_besselLength_le hθ |
| 829 | have h_sum : frameVector (u * y) 𝔰.top = ∑ b, frameMatrix u⁻¹ b 𝔰.top • frameVector y b := by |
| 830 | simpa using frameVector_eq_sum (y := u * y) 𝔰.top (inv_mem hu) |
| 831 | have h_product : star (frameVector (u * y) 𝔰.top).ofLp ⬝ᵥ |
| 832 | (𝔰.J₁ * (y⁻¹.val.val * ω)).col 𝔰.top = L 𝔰.top 𝔰.top := by |
| 833 | have h_terms (b : Fin (𝔰.ϱ + 1)) : |
| 834 | star (frameVector y b).ofLp ⬝ᵥ (𝔰.J₁ * (y⁻¹.val.val * ω)).col 𝔰.top = L b 𝔰.top := by |
| 835 | rw [h.apply_eq_frameVector_dotProduct hδ, subframeIndex_self] |
| 836 | rw [h_sum, WithLp.ofLp_sum, star_sum, sum_dotProduct, sum_univ_castSucc] |
| 837 | simp only [WithLp.ofLp_smul, star_smul, smul_dotProduct, h_terms, |
| 838 | h.triangular _ _ (castSucc_lt_last _), smul_zero, Finset.sum_const_zero, zero_add, |
| 839 | frameMatrix_unitriangular (inv_mem hu) 𝔰.top 𝔰.top le_rfl, one_apply_eq, one_smul] |
| 840 | calc |
| 841 | _ ≤ ‖frameVector (u * y) 𝔰.top‖ := by |
| 842 | rw [← h_product] |
| 843 | exact h.norm_dotProduct_J₁_mul_col_le_norm _ _ |
| 844 | _ ≤ ‖(u * y).val.val‖ := norm_frameVector_le _ |
| 845 | _ ≤ θ := hu_le |
| 846 | |
| 847 | /-- Let norm-one pairs occur for `γ` from level `i`, let `Z` be the products of the frames with |
| 848 | invertible subframe block, and let `(ω, L)` be a triangular basis at `y`. For the basis |
| 849 | `ω' = imageBasis hi γ Z L`, the last vector `ω'_z` is `J₁`-orthogonal to `ω'_z - ω_z` and has |
| 850 | `J₁`-square `-|L_zz|²`. -/ |
| 851 | private lemma imageBasis_last_J₁_entries (h : IsTriangularBasis hi y Z ω L) |
| 852 | (hZ : realFrameGram γ = Z) (hγ : NormOnePairOccursFrom i γ) |
| 853 | (hδ : (subframeBlock hi Z).det ≠ 0) : |
| 854 | ((imageBasis hi γ Z L)ᴴ * 𝔰.J₁ * (imageBasis hi γ Z L - ω)) (last i) (last i) = 0 ∧ |
| 855 | ((imageBasis hi γ Z L)ᴴ * 𝔰.J₁ * imageBasis hi γ Z L) (last i) (last i) = |
| 856 | -(‖L (last i) (last i)‖ ^ 2 : ℝ) := by |
| 857 | -- The last vector `ω'_z` is a multiple of the shared vector `f x`. |
| 858 | obtain ⟨x, c, hx, -, h_shared, h_block_mulVec⟩ := |
| 859 | exists_common_vector_of_normOnePairOccursFrom hi hZ hγ |
| 860 | have hx_ne : x 𝔰.top ≠ 0 := fun h_zero ↦ by simp [h_zero] at hx |
| 861 | have hL_col : L.col (last i) = Pi.single (last i) (L (last i) (last i)) := by |
| 862 | ext l |
| 863 | cases l using lastCases <;> simp [h.triangular _ _ (castSucc_lt_last _)] |
| 864 | let t : ℂ := -L (last i) (last i) / x 𝔰.top |
| 865 | have h_last : (imageBasis hi γ Z L).col (last i) = 𝔰.frameCols *ᵥ t • x := by |
| 866 | have ht_mul : t * -x 𝔰.top = L (last i) (last i) := by simp [t, hx_ne] |
| 867 | have h_coeff : (subframeBlock hi Z)⁻¹ *ᵥ L.col (last i) = t • c := by |
| 868 | rw [← one_mulVec (t • c), ← nonsing_inv_mul _ hδ.isUnit, ← mulVec_mulVec, mulVec_smul, |
| 869 | h_block_mulVec, hL_col, ← Pi.single_smul, smul_eq_mul, ht_mul] |
| 870 | rw [imageBasis, ← mulVec_single_one, ← mulVec_mulVec, mulVec_single_one, ← mulVec_mulVec, |
| 871 | h_coeff, mulVec_smul, h_shared, mulVec_smul] |
| 872 | set ω' : Matrix 𝔰.BesselIndex (Fin (i + 1)) ℂ := imageBasis hi γ Z L |
| 873 | have h_orth : (ω'ᴴ * 𝔰.J₁ * (ω' - ω)) (last i) (last i) = 0 := by |
| 874 | change star (ω'.col (last i)) ᵥ* 𝔰.J₁ ⬝ᵥ (ω' - ω).col (last i) = 0 |
| 875 | rw [h_last, star_mulVec, vecMul_vecMul, ← dotProduct_mulVec, ← mulVec_single_one, |
| 876 | mulVec_mulVec, h.conjTranspose_frameCols_mul_J₁_mul_sub_eq_zero hZ, zero_mulVec, |
| 877 | dotProduct_zero] |
| 878 | have h_self : (ω'ᴴ * 𝔰.J₁ * ω') (last i) (last i) = -(‖L (last i) (last i)‖ ^ 2 : ℝ) := by |
| 879 | change star (ω'.col (last i)) ᵥ* 𝔰.J₁ ⬝ᵥ ω'.col (last i) = _ |
| 880 | rw [← dotProduct_mulVec, h_last, form_frameCols_mulVec] |
| 881 | simp [t, hx_ne] |
| 882 | exact ⟨h_orth, h_self⟩ |
| 883 | |
| 884 | /-- **The last column, lower levels.** Let norm-one pairs occur for `γ ∈ G₁` from level `i ≤ ϱ`, so |
| 885 | that the flags of `f` and `γ f` share a vector at `z`, and let `Z` be the products of the two |
| 886 | frames, with invertible block of the subframe `e₁, …, e_i, z`. Let `(ω, L)` be a triangular basis at |
| 887 | `y`: the vectors `ω` lie in `y V₋`, have Gram matrix `-1` and lower triangular products `L` with the |
| 888 | subframe. Let `ω'` be the basis of the span of `γ e₁, …, γ e_i, γ z` with the same products `L`, and |
| 889 | let `v_z`, the last column of `differenceX₀`, be the part in `X₀` of `ω'_z - ω_z`. Then |
| 890 | `|L_zz|² = 1 + |v_z|²`. -/ |
| 891 | lemma norm_last_sq_eq_one_add_dotProduct_differenceX₀ (h : IsTriangularBasis hi y Z ω L) |
| 892 | (hZ : realFrameGram γ = Z) |
| 893 | (hγ : NormOnePairOccursFrom i γ) (hδ : (subframeBlock hi Z).det ≠ 0) : |
| 894 | (‖L (last i) (last i)‖ ^ 2 : ℝ) = 1 + star ((differenceX₀ hi γ Z ω L).col (last i)) ⬝ᵥ |
| 895 | (differenceX₀ hi γ Z ω L).col (last i) := by |
| 896 | -- The last vector `ω'_z` is orthogonal to `ω'_z - ω_z`. Hence |
| 897 | -- `-1 = ⟨ω_z, ω_z⟩ = ⟨ω'_z, ω'_z⟩ + |v_z|² = -|L_zz|² + |v_z|²`. |
| 898 | obtain ⟨h_orth, h_self⟩ := imageBasis_last_J₁_entries h hZ hγ hδ |
| 899 | set ω' : Matrix 𝔰.BesselIndex (Fin (i + 1)) ℂ := imageBasis hi γ Z L |
| 900 | have h_expand : ωᴴ * 𝔰.J₁ * ω = (ω' - ω)ᴴ * 𝔰.J₁ * (ω' - ω) + ω'ᴴ * 𝔰.J₁ * ω' - |
| 901 | (ω'ᴴ * 𝔰.J₁ * (ω' - ω) + (ω'ᴴ * 𝔰.J₁ * (ω' - ω))ᴴ) := by |
| 902 | simp only [conjTranspose_mul, conjTranspose_sub, conjTranspose_conjTranspose, isHermitian.eq, |
| 903 | Matrix.mul_sub, Matrix.sub_mul, Matrix.mul_assoc] |
| 904 | abel |
| 905 | have h_entry : (-1 : ℂ) = |
| 906 | ((differenceX₀ hi γ Z ω L)ᴴ * differenceX₀ hi γ Z ω L) (last i) (last i) - |
| 907 | (‖L (last i) (last i)‖ ^ 2 : ℝ) := by |
| 908 | have h_eq := congrFun₂ h_expand (last i) (last i) |
| 909 | rw [h.gram_eq_neg_one, ← h.gram_differenceX₀ hZ, Matrix.sub_apply, Matrix.add_apply, |
| 910 | Matrix.add_apply, conjTranspose_apply, h_orth, h_self, Matrix.neg_apply, one_apply_eq, |
| 911 | star_zero] at h_eq |
| 912 | linear_combination h_eq |
| 913 | change _ = 1 + ((differenceX₀ hi γ Z ω L)ᴴ * differenceX₀ hi γ Z ω L) (last i) (last i) |
| 914 | linear_combination h_entry |
| 915 | |
| 916 | /-- **The last column.** Let norm-one pairs occur for `γ ∈ G₁` from level `j ≤ n = ϱ + 1`, let |
| 917 | `i = min ϱ j` and let `Z` be the products of the frames `f` and `γ f`, with invertible block of the |
| 918 | subframe `e₁, …, e_i, z`. Let `y` have length (`besselLength`) at most `θ`, let `(ω, L)` be a |
| 919 | triangular basis at `y`, and let `v_z`, the last column of `differenceX₀`, be the part in `X₀` of |
| 920 | `ω'_z - ω_z` for the basis `ω'` of the span of `γ e₁, …, γ e_i, γ z` with products `L` with the |
| 921 | subframe. Then `|L_zz|² ≤ θ ^ (2 (j - i)) (1 + |v_z|²)`. -/ |
| 922 | lemma norm_last_sq_le (h : IsTriangularBasis hi y Z ω L) (hZ : realFrameGram γ = Z) |
| 923 | (hγ : NormOnePairOccursFrom j γ) (hj : j ≤ 𝔰.n) (hij : i = min 𝔰.ϱ j) |
| 924 | (hδ : (subframeBlock hi Z).det ≠ 0) {θ : ℝ} (hθ : besselLength y ≤ θ) : |
| 925 | ‖L (last i) (last i)‖ ^ 2 ≤ θ ^ (2 * (j - i)) * |
| 926 | ‖(1 + vecMulVec ((differenceX₀ hi γ Z ω L).col (last i)) |
| 927 | (star ((differenceX₀ hi γ Z ω L).col (last i)))).det‖ := by |
| 928 | set w : 𝔰.κ → ℂ := (differenceX₀ hi γ Z ω L).col (last i) |
| 929 | -- In both cases the determinant of the rank-one update is one plus the squared length of w. |
| 930 | rw [vecMulVec_eq Unit, det_one_add_replicateCol_mul_replicateRow] |
| 931 | obtain h_low | h_top := le_or_gt j 𝔰.ϱ |
| 932 | · obtain rfl : i = j := hij.trans (min_eq_right h_low) |
| 933 | rw [← h.norm_last_sq_eq_one_add_dotProduct_differenceX₀ hZ hγ hδ] |
| 934 | simp |
| 935 | · have h_one_le : 1 ≤ ‖1 + star w ⬝ᵥ w‖ := by |
| 936 | have h_nonneg : 0 ≤ (star w ⬝ᵥ w).re := |
| 937 | (Complex.nonneg_iff.1 (dotProduct_star_self_nonneg w)).1 |
| 938 | exact Complex.one_le_norm_one_add h_nonneg |
| 939 | have h_sub : j - i = 1 := by lia |
| 940 | rw [h_sub, mul_one] |
| 941 | grw [h.norm_last_le hδ (hij.trans (min_eq_left h_top.le)) hθ, ← h_one_le, mul_one] |
| 942 | |
| 943 | end RealPlace.IsTriangularBasis |
| 944 | |
| 945 | /-- **One real place.** Let `y ∈ G₁`, let the vectors `y⁻¹ f_a` have length at most `ρ`, let `y` |
| 946 | have length (`besselLength`) at most `θ`, and let `k = dim X₀ ≥ 7`. Let norm-one pairs occur for |
| 947 | `γ₀ ∈ G₁` from level `j ≤ ϱ + 1`, with `i = min ϱ j`. Let `Z` be the matrix of products of the |
| 948 | frames `f` and `γ₀ f`, and let the determinant `δ` of its block of the subframe `e₁, …, e_i, z` be |
| 949 | nonzero. There is a measurable `φ` on `X₀ ^ i` with integral at most `(2 ρ²) ^ ((i + 1) i) (2 ^ |
| 950 | (i + 1) θ ^ (2 (j - i))) ^ k / |δ| ^ (k + i)` such that `ν ^ (-(k + i)) ≤ φ A` whenever norm-one |
| 951 | pairs occur for `γ` from level `j` with the same products `Z` and the parts in `X₀` of the images of |
| 952 | the subframe under `γ` and `γ₀` differ by `Aᴴ` times the first `i` rows of the block. -/ |
| 953 | theorem RealPlace.exists_majorant_volumeRatio_inv_pow (hi_le : i ≤ 𝔰.ϱ) {ρ θ : ℝ} |
| 954 | (hρ : y ∈ frameBox ρ) (hθ : besselLength y ≤ θ) (hj : j ≤ 𝔰.n) (hij : i = min 𝔰.ϱ j) |
| 955 | (hk : 7 ≤ 𝔰.k) {γ₀ : 𝔰.G₁} (hZ₀ : realFrameGram γ₀ = Z) (hγ₀ : NormOnePairOccursFrom j γ₀) |
| 956 | (hδ : (subframeBlock hi_le Z).det ≠ 0) : |
| 957 | ∃ φ : (Fin i → 𝔰.κ → ℂ) → ENNReal, |
| 958 | Measurable φ ∧ |
| 959 | ∫⁻ A : Fin i → 𝔰.κ → ℂ, φ A ≤ ENNReal.ofReal ((2 * ρ ^ 2) ^ ((i + 1) * i) * |
| 960 | (2 ^ (i + 1) * θ ^ (2 * (j - i))) ^ 𝔰.k / ‖(subframeBlock hi_le Z).det‖ ^ (𝔰.k + i)) ∧ |
| 961 | ∀ (γ : 𝔰.G₁) (A : Fin i → 𝔰.κ → ℂ), realFrameGram γ = Z → NormOnePairOccursFrom j γ → |
| 962 | frameX₀Part γ * inclMatrix ℂ (subframeIndex hi_le) = |
| 963 | frameX₀Part γ₀ * inclMatrix ℂ (subframeIndex hi_le) + |
| 964 | (of A)ᴴ * (subframeBlock hi_le Z).submatrix castSucc id → |
| 965 | ENNReal.ofReal ((volumeRatio γ y)⁻¹ ^ (𝔰.k + i)) ≤ φ A := by |
| 966 | -- `φ A` is the bound that the lower bound for `ν(y)` gives. The last column of `v` does not |
| 967 | -- depend on `A`, and the other columns are an affine function of `A`. |
| 968 | obtain ⟨ω, L, h⟩ : |
| 969 | ∃ (ω : Matrix 𝔰.BesselIndex (Fin (i + 1)) ℂ) (L : Matrix (Fin (i + 1)) (Fin (i + 1)) ℂ), |
| 970 | IsTriangularBasis hi_le y Z ω L := |
| 971 | exists_isTriangularBasis hi_le y hδ |
| 972 | let v₀ : Matrix 𝔰.κ (Fin (i + 1)) ℂ := differenceX₀ hi_le γ₀ Z ω L |
| 973 | let L₁ : Matrix (Fin i) (Fin i) ℂ := L.submatrix castSucc castSucc |
| 974 | let c : Matrix (Fin i) 𝔰.κ ℂ := (v₀.submatrix id castSucc)ᴴ |
| 975 | let G : Matrix 𝔰.κ 𝔰.κ ℂ := 1 + vecMulVec (v₀.col (last i)) (star (v₀.col (last i))) |
| 976 | let C : ℝ := (2 ^ (i + 1) * ‖L.det‖ ^ 2 / ‖(subframeBlock hi_le Z).det‖) ^ (𝔰.k + i) |
| 977 | let φ (A : Fin i → 𝔰.κ → ℂ) : ENNReal := |
| 978 | .ofReal (C * ‖(G + (L₁ᴴ * of A + c)ᴴ * (L₁ᴴ * of A + c)).det‖⁻¹ ^ (𝔰.k + i)) |
| 979 | have hG : G.PosDef := PosDef.one.add_posSemidef (posSemidef_vecMulVec_self_star _) |
| 980 | have h_zero (l : Fin i) : L l.castSucc (last i) = 0 := h.triangular _ _ (castSucc_lt_last l) |
| 981 | refine ⟨φ, ?_, ?_, fun γ A hZ hγ h_shift ↦ ENNReal.ofReal_mono ?_⟩ |
| 982 | · exact (((measurable_det_add_conjTranspose_mul L₁ᴴ c G).norm.inv.pow_const _).const_mul |
| 983 | _).ennreal_ofReal |
| 984 | · -- The integral is Hua's; it remains to bound `det L` and the last column. |
| 985 | have h_det : ‖L.det‖ = ‖L₁.det‖ * ‖L (last i) (last i)‖ := h.norm_det_eq_mul_norm_last |
| 986 | obtain ⟨hL₁, hL_last⟩ : L₁.det ≠ 0 ∧ L (last i) (last i) ≠ 0 := by |
| 987 | simpa [h_det] using norm_ne_zero_iff.2 h.det_ne_zero |
| 988 | have h_last_ratio : ‖L (last i) (last i)‖ ^ 2 / ‖G.det‖ ≤ θ ^ (2 * (j - i)) := |
| 989 | div_le_of_le_mul₀ (norm_nonneg _) ((even_two_mul _).pow_nonneg θ) |
| 990 | (h.norm_last_sq_le hZ₀ hγ₀ hj hij hδ hθ) |
| 991 | have h_hua : ∫⁻ A, φ A ≤ |
| 992 | ENNReal.ofReal (C * (‖L₁.det‖⁻¹ ^ (2 * 𝔰.k) * ‖G.det‖⁻¹ ^ 𝔰.k)) := by |
| 993 | have hC : 0 ≤ C := by positivity |
| 994 | have hL₁_star : L₁ᴴ.det ≠ 0 := by simpa using hL₁ |
| 995 | simpa [φ] using lintegral_norm_det_add_inv_pow_le hL₁_star c hG hC (by simpa using hk) |
| 996 | refine h_hua.trans (ENNReal.ofReal_le_ofReal ?_) |
| 997 | calc |
| 998 | _ = (2 ^ (i + 1) * ‖L.det‖ ^ 2) ^ i * |
| 999 | (2 ^ (i + 1) * (‖L (last i) (last i)‖ ^ 2 / ‖G.det‖)) ^ 𝔰.k / |
| 1000 | ‖(subframeBlock hi_le Z).det‖ ^ (𝔰.k + i) := by |
| 1001 | simp only [C, h_det, div_pow, inv_pow, mul_pow] |
| 1002 | field_simp |
| 1003 | ring |
| 1004 | _ ≤ (2 ^ (i + 1) * (ρ ^ (i + 1)) ^ 2) ^ i * (2 ^ (i + 1) * θ ^ (2 * (j - i))) ^ 𝔰.k / |
| 1005 | ‖(subframeBlock hi_le Z).det‖ ^ (𝔰.k + i) := by |
| 1006 | gcongr |
| 1007 | exact h.norm_det_le hδ hρ |
| 1008 | _ = _ := by ring |
| 1009 | · -- At a translate, `1 + v vᴴ` splits off the last column. |
| 1010 | have h_lower : ‖(subframeBlock hi_le Z).det‖ * |
| 1011 | ‖(1 + differenceX₀ hi_le γ Z ω L * (differenceX₀ hi_le γ Z ω L)ᴴ).det‖ ≤ |
| 1012 | 2 ^ (i + 1) * ‖L.det‖ ^ 2 * volumeRatio γ y := |
| 1013 | h.norm_det_mul_le_volumeRatio hZ hγ hij hδ |
| 1014 | have h_split : 1 + differenceX₀ hi_le γ Z ω L * (differenceX₀ hi_le γ Z ω L)ᴴ = |
| 1015 | G + (L₁ᴴ * of A + c)ᴴ * (L₁ᴴ * of A + c) := by |
| 1016 | rw [differenceX₀_eq_add hi_le hδ h_shift] |
| 1017 | ext a b |
| 1018 | simp [G, c, L₁, v₀, Matrix.mul_apply, vecMulVec_apply, sum_univ_castSucc, h_zero, add_comm, |
| 1019 | add_assoc] |
| 1020 | rw [h_split] at h_lower |
| 1021 | have h_pos : 0 < ‖(G + (L₁ᴴ * of A + c)ᴴ * (L₁ᴴ * of A + c)).det‖ := norm_pos_iff.2 |
| 1022 | (hG.add_posSemidef (posSemidef_conjTranspose_mul_self _)).det_pos.ne' |
| 1023 | have h_ratio : 0 < volumeRatio γ y := volumeRatio_pos γ y |
| 1024 | have h_inv_le : (volumeRatio γ y)⁻¹ ≤ |
| 1025 | 2 ^ (i + 1) * ‖L.det‖ ^ 2 / ‖(subframeBlock hi_le Z).det‖ * |
| 1026 | ‖(G + (L₁ᴴ * of A + c)ᴴ * (L₁ᴴ * of A + c)).det‖⁻¹ := by |
| 1027 | rwa [← div_eq_mul_inv, div_div, inv_eq_one_div, div_le_div_iff₀ h_ratio (by positivity), |
| 1028 | one_mul] |
| 1029 | rw [← mul_pow] |
| 1030 | gcongr |
| 1031 | |
| 1032 | end LastColumn |
| 1033 | |
| 1034 | /-- For `γ ∈ G₁`, left multiplication by the inverse of the unipotent element `unipotentOf q` with |
| 1035 | parameters `q = (a, b)` adds `aᴴ` times the rows of the isotropic vectors in the matrix of products |
| 1036 | to the part in `X₀` of the frame `γ f`. -/ |
| 1037 | lemma RealPlace.frameX₀Part_unipotentOf_inv_mul (γ : 𝔰.G₁) (q : 𝔰.UnipotentParams) : |
| 1038 | frameX₀Part ((unipotentOf q)⁻¹ * γ) = |
| 1039 | frameX₀Part γ + q.1ᴴ * Filling.isotropicRows (realFrameGram γ) := by |
| 1040 | -- `unipotentOf q` is unitary for `J₁`, which gives its inverse; then compare entries. |
| 1041 | have h_inv : (unipotentOf q).val.val⁻¹ = 𝔰.J₁ * (unipotentOf q).val.valᴴ * 𝔰.J₁ := by |
| 1042 | simpa using U.coe_inv mul_self (unipotentOf q) |
| 1043 | have h_coe : ((unipotentOf q)⁻¹ * γ).val.val = |
| 1044 | 𝔰.J₁ * (unipotentOf q).val.valᴴ * 𝔰.J₁ * γ.val.val := by |
| 1045 | simp [← h_inv] |
| 1046 | rw [frameX₀Part, h_coe] |
| 1047 | simp [← ext_iff, inclMatrix, splitGram, middleGram, val_unipotentOf_coe, frameX₀Part, |
| 1048 | Matrix.mul_assoc, Matrix.mul_sub, Matrix.sub_mul, Matrix.mul_add, Matrix.add_mul, |
| 1049 | fromBlocks_multiply, fromCols_mul_fromRows, fromCols_mul_fromBlocks, fromBlocks_mul_fromRows, |
| 1050 | frameGram, Matrix.mul_apply, Matrix.one_apply] |
| 1051 | |
| 1052 | end New |
| 1053 | |
| 1054 | end |