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.InnerProductSpace.GramSchmidt.Ortho |
| 4 | import TauCeti.LinearAlgebra.Matrix.Determinant.FromBlocks |
| 5 | public import Mathlib.Analysis.CStarAlgebra.Module.Constructions |
| 6 | import Mathlib.Algebra.Order.Star.Real |
| 7 | import Mathlib.Analysis.LocallyConvex.AbsConvexOpen |
| 8 | import Mathlib.Topology.Algebra.Group.Matrix |
| 9 | import Mathlib.Topology.Separation.CompletelyRegular |
| 10 | public import Lib.DiscreteSeries.Bessel.Basic |
| 11 | public import New.Spanning.MainTerm.SieveSystem |
| 12 | import Lib.DiscreteSeries.Bruhat.FloorMeasures |
| 13 | |
| 14 | /-! |
| 15 | # Bessel systems at a real place: length and norm bounds, lattice basis, discriminant |
| 16 | |
| 17 | The file sets up the objects that connect the analysis at one real place with the filling argument. |
| 18 | `New.Shape.G₁` is the unitary group of a hermitian form made of ϱ hyperbolic planes, a positive |
| 19 | space X₀ with basis κ and a vector z with h(z, z) = −1. The frame is (e₁, …, e_ϱ, z). The Bessel |
| 20 | subgroup `New.Shape.Form.besselS` is generated by the unipotent group 𝖴 = `New.Shape.Form.besselU` |
| 21 | and by `New.Shape.Form.besselH` = U(X₀). `New.frameVector y a` is the image under `y⁻¹` of the |
| 22 | `a`-th frame vector. The file first proves elementary bounds on the length `New.besselLength y`, the |
| 23 | infimum of `‖s * y‖ + 1` over `s` in `besselS`. It then defines the lattice basis, the discriminant |
| 24 | 𝗀 and the link, and the structure `New.BesselSystem` listing what is used of a Bessel function W and |
| 25 | its cut W♭. Norms on G₁ are those of the Euclidean norm for which the basis e_a, x_i, z, e*_a is |
| 26 | orthonormal. The frame has n = ϱ + 1 vectors. |
| 27 | |
| 28 | ## Main definitions and results |
| 29 | |
| 30 | * `New.norm_add_one_le_of_mem_frameBox`: `‖y‖` is bounded by the lengths of `y⁻¹ e_a`, `y⁻¹ z` and |
| 31 | `y⁻¹ e*_a`. |
| 32 | * `New.orthoFrame`, `New.gramSchmidtMatrix`: Gram–Schmidt for the frame. The orthogonal vectors are |
| 33 | left invariant under `besselS` (`New.orthoFrame_besselS_mul`), and the Bessel length bounds their |
| 34 | lengths on both sides (`New.norm_orthoFrame_mem_Icc`). The triangular matrix depends continuously |
| 35 | on the point (`New.continuous_gramSchmidtMatrix`). |
| 36 | * `New.besselLength_le_of_norm_orthoFrame`: conversely, these lengths bound `besselLength y`; the |
| 37 | proof corrects `y` on the left until the first bound applies. `New.besselLength_le_of_dual` is the |
| 38 | case of a frame with a bounded triangular dual system. |
| 39 | * `New.besselLatticeBasis`: the basis of the lattice, in which `x_{k₀}` is replaced by |
| 40 | `v = x_{k₀} / p̄ + z / N`. `New.gram_besselLatticeBasis` gives its Gram matrix, with middle block |
| 41 | `New.latticeMiddleGram`. |
| 42 | * `New.frameDisc`: the quantity `|D_{ϱ+1}|² - N² |D_ϱ|²` in the leading minors `New.leadingMinor`, |
| 43 | written `𝗀`. Up to sign it is the Gram determinant of the frame and its image under an isometry |
| 44 | (`New.det_gram_framePair`). |
| 45 | * `New.IsCutPair`: the L² bounds of W and W♭, the support of W♭, and decay below a common integrable |
| 46 | majorant (`New.IsDecayMajorant`). |
| 47 | |
| 48 | Notions from other files: |
| 49 | * `New.Shape.besselFrame`: The indices of the frame (e₁, …, e_ϱ, z) among the basis indices. |
| 50 | * `New.Shape.middleGram`: for a scalar N, the diagonal matrix on κ plus one point, with entries 1 on |
| 51 | κ and −N at the extra point. |
| 52 | |
| 53 | ## Relation to the literature |
| 54 | |
| 55 | References on Bessel functions and kernels are in `New.Spanning.Bessel.FillingData`; references on |
| 56 | the decay of discrete series coefficients are in `New.Spanning.Bessel.CutTailBound`. |
| 57 | -/ |
| 58 | |
| 59 | @[expose] public section |
| 60 | |
| 61 | noncomputable section |
| 62 | |
| 63 | /-! |
| 64 | ## Frame vectors and the Bessel length |
| 65 | |
| 66 | Norms of matrices are `L²` operator norms. |
| 67 | -/ |
| 68 | |
| 69 | section SizeFunction |
| 70 | |
| 71 | open Matrix Subgroup Norms.L2Operator |
| 72 | |
| 73 | namespace New |
| 74 | |
| 75 | variable {𝔰 : Shape} {y s : 𝔰.G₁} (a : Fin (𝔰.ϱ + 1)) |
| 76 | |
| 77 | /-- For y in G₁, the infimum of ‖sy‖ + 1 (operator norm) over s in the Bessel subgroup S. -/ |
| 78 | def besselLength (y : 𝔰.G₁) : ℝ := ⨅ s : besselS, (‖(s.val * y).val.val‖ + 1) |
| 79 | |
| 80 | /-- The length `besselLength y`, an infimum of numbers `‖s * y‖ + 1`, is nonnegative. -/ |
| 81 | lemma besselLength_nonneg (y : 𝔰.G₁) : 0 ≤ besselLength y := |
| 82 | Real.iInf_nonneg fun _ ↦ by positivity |
| 83 | |
| 84 | /-- For real ρ, the set of y in G₁ such that every vector y⁻¹f_a of the moved frame has Euclidean |
| 85 | norm at most ρ. -/ |
| 86 | def frameBox (ρ : ℝ) : Set 𝔰.G₁ := {y : 𝔰.G₁ | ∀ a : Fin (𝔰.ϱ + 1), ‖frameVector y a‖ ≤ ρ} |
| 87 | |
| 88 | /-- The vector `frameVector y a` = y⁻¹ f_a of the moved frame depends continuously on `y` in the |
| 89 | unitary group `𝔰.G₁`. -/ |
| 90 | @[fun_prop] |
| 91 | lemma continuous_frameVector : Continuous fun y : 𝔰.G₁ ↦ frameVector y a := by |
| 92 | fun_prop [frameVector] |
| 93 | |
| 94 | /-- The frame vectors at `y` do not change when `y` is multiplied on the left by an element of |
| 95 | `besselFixer`, the group of the elements that fix the frame. -/ |
| 96 | lemma frameVector_mul_of_mem_besselFixer (hs : s ∈ besselFixer) : |
| 97 | frameVector (s * y) = frameVector y := by |
| 98 | have h_fix (i : 𝔰.BesselIndex) (a : Fin (𝔰.ϱ + 1)) : |
| 99 | (s.val.val)⁻¹ i (𝔰.besselFrame a) = (1 : Matrix _ _ ℂ) i (𝔰.besselFrame a) := by |
| 100 | simpa using (inv_mem hs : s⁻¹ ∈ besselFixer) i _ ⟨a, rfl⟩ |
| 101 | ext |
| 102 | simp [frameVector, Matrix.mul_apply, h_fix, Matrix.one_apply] |
| 103 | |
| 104 | /-- For `s` in the unipotent group `New.Shape.Form.besselU`, the frame at `y` is the frame at |
| 105 | `s * y` times the matrix `frameMatrix s` of the action of `s` on the frame. -/ |
| 106 | lemma frameVector_eq_sum (hs : s ∈ besselU) : |
| 107 | frameVector y a = ∑ b : Fin (𝔰.ϱ + 1), frameMatrix s b a • frameVector (s * y) b := by |
| 108 | -- `y⁻¹ = (s * y)⁻¹ * s`, and `s` maps the span of the frame to itself by `frameMatrix s`. |
| 109 | have h_cols : y⁻¹.val.val.submatrix id 𝔰.besselFrame = |
| 110 | (s * y)⁻¹.val.val.submatrix id 𝔰.besselFrame * frameMatrix s := by |
| 111 | simpa using submatrix_mul_besselFrame hs (y⁻¹ * s⁻¹).val.val id |
| 112 | ext i |
| 113 | simpa [frameVector] using (congrFun₂ h_cols i a).trans |
| 114 | (Matrix.mul_apply.trans (Finset.sum_congr rfl fun _ _ ↦ mul_comm _ _)) |
| 115 | |
| 116 | /-- The vector `frameVector y a` = y⁻¹ f_a, where f_a is the `a`-th vector of the frame (e₁, …, e_ϱ, |
| 117 | z), is not longer than the operator norm of `y`. -/ |
| 118 | lemma norm_frameVector_le : ‖frameVector y a‖ ≤ ‖y.val.val‖ := by |
| 119 | -- `y⁻¹` applied to a unit vector has norm at most `‖y⁻¹‖`, and `‖y⁻¹‖ = ‖y‖` in the unitary group |
| 120 | -- (`U.norm_inv`). |
| 121 | have h_col : frameVector y a = WithLp.toLp 2 |
| 122 | (y⁻¹.val.val *ᵥ EuclideanSpace.single (𝔰.besselFrame a) (1 : ℂ)) := by |
| 123 | ext i |
| 124 | simp [frameVector] |
| 125 | rw [← U.norm_inv, h_col] |
| 126 | exact (l2_opNorm_mulVec _ _).trans (by simp) |
| 127 | |
| 128 | /-- The norm of the `i`-th entry of `s` applied to `∑ c a • Pi.single (𝔰.besselFrame (e a)) 1` is at |
| 129 | most `‖s * y‖` times the norm of `∑ c a • frameVector y (e a)`. -/ |
| 130 | lemma norm_sum_le_mul_norm_sum_frameVector {ι : Type*} [Fintype ι] (e : ι → Fin (𝔰.ϱ + 1)) |
| 131 | (c : ι → ℂ) (i : 𝔰.BesselIndex) : |
| 132 | ‖∑ a : ι, c a * s.val i (𝔰.besselFrame (e a))‖ ≤ |
| 133 | ‖(s * y).val.val‖ * ‖∑ a : ι, c a • frameVector y (e a)‖ := by |
| 134 | -- The left side is an entry of `(s * y) *ᵥ ∑ c a • frameVector y (e a)`. |
| 135 | grw [← l2_opNorm_mulVec, ← PiLp.norm_apply_le _ i] |
| 136 | simp [frameVector, mulVec_sum, mulVec_smul, ← Matrix.mul_apply, mulVec_apply_eq_sum] |
| 137 | |
| 138 | /-- For `s` in the Bessel subgroup `besselS`, the length `besselLength y` is at most `‖s * y‖ + 1` |
| 139 | (operator norm). -/ |
| 140 | lemma besselLength_le_norm_mul_add_one (hs : s ∈ besselS) : |
| 141 | besselLength y ≤ ‖(s * y).val.val‖ + 1 := |
| 142 | csInf_le ⟨1, Set.forall_mem_range.mpr (by simp)⟩ ⟨⟨s, hs⟩, rfl⟩ |
| 143 | |
| 144 | /-- If `besselLength y ≤ T`, then some `u` in the unipotent group `besselU` gives `‖u * y‖ ≤ T` in |
| 145 | operator norm. -/ |
| 146 | lemma RealPlace.exists_norm_le_of_besselLength_le {T : ℝ} (hT : besselLength y ≤ T) : |
| 147 | ∃ u ∈ besselU, ‖(u * y).val.val‖ ≤ T := by |
| 148 | -- The infimum gives `s` in `besselS` with `‖s * y‖ + 1 < T + 1`. Write `s⁻¹ = u * embedH w` with |
| 149 | -- `u` in `besselU`; then `embedH w * s = u⁻¹`, and `embedH w` does not change the norm. |
| 150 | obtain ⟨s, hs⟩ := exists_lt_of_ciInf_lt (hT.trans_lt (lt_add_one T)) |
| 151 | obtain ⟨u, hu, w, hs_eq⟩ := exists_besselU_mul_toBesselH s⁻¹.property |
| 152 | have h_inv : embedH w * s.val = u⁻¹ := by simp_all [inv_eq_iff_eq_inv] |
| 153 | refine ⟨u⁻¹, inv_mem hu, ?_⟩ |
| 154 | rw [← h_inv, mul_assoc, norm_embedH_mul] |
| 155 | linarith |
| 156 | |
| 157 | /-- The length `besselLength` is left invariant under the Bessel subgroup: `besselLength (s * y)` is |
| 158 | `besselLength y` for `s` in `besselS`. -/ |
| 159 | lemma besselLength_besselS_mul (hs : s ∈ besselS) : besselLength (s * y) = besselLength y := |
| 160 | (Equiv.mulRight ⟨s, hs⟩).iInf_congr (by simp [mul_assoc]) |
| 161 | |
| 162 | /-- The length `besselLength` changes by at most the factor `‖x⁻¹ * y‖` from `x` to `y`. -/ |
| 163 | lemma besselLength_le_norm_inv_mul_mul_besselLength (x y : 𝔰.G₁) : |
| 164 | besselLength y ≤ ‖(x⁻¹ * y).val.val‖ * besselLength x := by |
| 165 | -- `‖s * y‖ ≤ ‖s * x‖ * ‖x⁻¹ * y‖` and `1 ≤ ‖x⁻¹ * y‖`; then take the infimum over `s` |
| 166 | have h_bound (s : besselS) : |
| 167 | besselLength y ≤ ‖(x⁻¹ * y).val.val‖ * (‖(s.val * x).val.val‖ + 1) := by |
| 168 | grw [besselLength_le_norm_mul_add_one s.property, mul_comm, add_mul, ← norm_mul_le, |
| 169 | ← U.one_le_norm] |
| 170 | simp [mul_assoc] |
| 171 | simpa [besselLength.eq_1 x, Real.mul_iInf_of_nonneg] using le_ciInf h_bound |
| 172 | |
| 173 | /-- The length `besselLength y`, the infimum of `‖s * y‖ + 1` (operator norm) over `s` in the Bessel |
| 174 | subgroup `besselS`, is a continuous function of `y` in the unitary group `𝔰.G₁`. -/ |
| 175 | @[fun_prop] |
| 176 | lemma continuous_besselLength : Continuous (besselLength : 𝔰.G₁ → ℝ) := by |
| 177 | -- Squeeze: both bounds below tend to `besselLength y` as `x → y`. |
| 178 | refine continuous_iff_continuousAt.2 fun y ↦ ?_ |
| 179 | have h_div_le (x : 𝔰.G₁) : besselLength y / ‖(x⁻¹ * y).val.val‖ ≤ besselLength x := |
| 180 | (div_le_iff₀' (Units.norm_pos _)).2 (besselLength_le_norm_inv_mul_mul_besselLength x y) |
| 181 | have h_lower : ContinuousAt (fun x : 𝔰.G₁ ↦ besselLength y / ‖(x⁻¹ * y).val.val‖) y := by |
| 182 | fun_prop (disch := simp) |
| 183 | have h_upper : ContinuousAt (fun x : 𝔰.G₁ ↦ ‖(y⁻¹ * x).val.val‖ * besselLength y) y := by |
| 184 | fun_prop |
| 185 | exact Filter.Tendsto.squeeze (by simpa using h_lower.tendsto) (by simpa using h_upper.tendsto) |
| 186 | h_div_le (besselLength_le_norm_inv_mul_mul_besselLength y) |
| 187 | |
| 188 | end New |
| 189 | |
| 190 | end SizeFunction |
| 191 | |
| 192 | /-! |
| 193 | ## Norm bounds from a frame and its dual frame |
| 194 | |
| 195 | * `New.realFrameGram_eq_inner`, `New.realFrameGram_mul_of_mem_besselFixer`, |
| 196 | `New.realFrameGram_eq_frameMatrix_mul`, `New.norm_realFrameGram_le_mul`: the Gram matrix |
| 197 | `New.realFrameGram` as products of moved frames, its behaviour under `New.Shape.Form.besselU` |
| 198 | and `New.Shape.Form.besselFixer`, and a bound on its entries. |
| 199 | -/ |
| 200 | |
| 201 | namespace New |
| 202 | |
| 203 | open Matrix RealPlace Norms.L2Operator Finset WithLp Subgroup CStarRing InnerProductSpace |
| 204 | |
| 205 | variable {𝔰 : Shape} (γ y : 𝔰.G₁) (a b : Fin (𝔰.ϱ + 1)) {M : ℝ} |
| 206 | |
| 207 | /-- The Gram matrix `J₁` of the form has operator norm one. -/ |
| 208 | @[local simp] |
| 209 | lemma norm_J₁ : ‖𝔰.J₁‖ = 1 := norm_of_mem_unitary IsHermitianInvolution.mem_unitary |
| 210 | |
| 211 | /-- The operator norm of a matrix is the norm of the sum of the rank-one operators given by its |
| 212 | columns. -/ |
| 213 | lemma norm_sum_rankOne_col {n : Type} [Fintype n] [DecidableEq n] (Z : Matrix n n ℂ) : |
| 214 | ‖∑ j : n, rankOne ℂ (toLp 2 (Z · j)) (PiLp.single 2 j (1 : ℂ))‖ = ‖Z‖ := by |
| 215 | rw [l2_opNorm_def] |
| 216 | congr 1 |
| 217 | ext |
| 218 | simp [mulVec_eq_sum, inner] |
| 219 | |
| 220 | /-- For a shape `𝔰` with hyperbolic rank `𝔰.ϱ` and Gram matrix `𝔰.J₁`, a real bound `M`, and a |
| 221 | complex matrix `A` indexed by `𝔰.BesselIndex`, if the columns of `A` at the basis vectors |
| 222 | `.inl j`, `eStar j` (for `j : Fin 𝔰.ϱ`) and `𝔰.z` all have Euclidean norm at most `M`, then the |
| 223 | operator norm of `A * (1 - 𝔰.J₁)` is at most `(4 * 𝔰.ϱ + 2) * M`. -/ |
| 224 | private lemma norm_mul_one_sub_J₁_le (A : Matrix 𝔰.BesselIndex 𝔰.BesselIndex ℂ) |
| 225 | (h_frame : ∀ j : Fin 𝔰.ϱ, ‖toLp 2 (A · (.inl j))‖ ≤ M) |
| 226 | (h_dual : ∀ j : Fin 𝔰.ϱ, ‖toLp 2 (A · (eStar j))‖ ≤ M) |
| 227 | (h_last : ‖toLp 2 (A · 𝔰.z)‖ ≤ M) : |
| 228 | ‖A * (1 - 𝔰.J₁)‖ ≤ (4 * 𝔰.ϱ + 2) * M := by |
| 229 | -- The columns of `1 - J` are `0`, `2 z` and `± (e_j - e*_j)`. |
| 230 | grw [mul_sub, mul_one, ← norm_sum_rankOne_col, norm_sum_le] |
| 231 | suffices ∑ j : Fin 𝔰.ϱ, ‖toLp 2 (A · (.inl j)) - toLp 2 (A · (eStar j))‖ + |
| 232 | (‖toLp 2 (A · 𝔰.z) + toLp 2 (A · 𝔰.z)‖ + |
| 233 | ∑ j : Fin 𝔰.ϱ, ‖toLp 2 (A · (eStar j)) - toLp 2 (A · (.inl j))‖) ≤ |
| 234 | (4 * 𝔰.ϱ + 2) * M by |
| 235 | simpa [↓norm_rankOne, splitGram, middleGram, Matrix.mul_apply, Matrix.one_apply, ← Pi.sub_def, |
| 236 | ← Pi.neg_def] |
| 237 | grw [norm_sub_le, norm_sub_le, norm_add_le, h_frame, h_frame, h_dual, h_dual, h_last] |
| 238 | simp |
| 239 | linarith |
| 240 | |
| 241 | /-- Let `1 ≤ M` and let `y` in `𝔰.G₁` be such that (a) `y` lies in `frameBox M`, that is, the |
| 242 | vectors y⁻¹ e_a and y⁻¹ z have length at most `M`, and (b) the vectors y⁻¹ e*_a, the columns of y⁻¹ |
| 243 | at the indices `eStar a`, have length at most `M`. Then `‖y‖ + 1 ≤ 8 (ϱ + 1) M`. -/ |
| 244 | theorem norm_add_one_le_of_mem_frameBox (h_box : y ∈ frameBox M) (hM_one : 1 ≤ M) |
| 245 | (h_dual : ∀ a : Fin 𝔰.ϱ, ‖toLp 2 fun i : 𝔰.BesselIndex ↦ y⁻¹.val i (eStar a)‖ ≤ M) : |
| 246 | ‖y.val.val‖ + 1 ≤ 8 * (𝔰.ϱ + 1) * M := by |
| 247 | -- The Euclidean product is the form plus `1 - J`, twice the projection on the span of the |
| 248 | -- negative vectors `z` and `e_a - e*_a`. With `A = y⁻¹`, `A J A⋆ = J` then gives |
| 249 | -- `‖A‖ ^ 2 ≤ 1 + ‖A (1 - J)‖ * ‖A‖`, and `1 ≤ ‖A‖ = ‖y‖`. |
| 250 | set A : Matrix 𝔰.BesselIndex 𝔰.BesselIndex ℂ := y⁻¹.val.val with hA |
| 251 | have h_inv : y.val.val = 𝔰.J₁ * star A * 𝔰.J₁ := by |
| 252 | simpa [A, star_eq_conjTranspose] using U.coe_inv IsHermitianInvolution.mul_self y⁻¹ |
| 253 | have h_form : A * (𝔰.J₁ * star A) = 𝔰.J₁ := calc |
| 254 | _ = A * y.val.val * 𝔰.J₁ := by simp [h_inv, mul_assoc, IsHermitianInvolution.mul_self] |
| 255 | _ = 𝔰.J₁ := by simp [A] |
| 256 | have h_one : 1 ≤ ‖A‖ := U.one_le_norm _ |
| 257 | obtain ⟨h_frame, h_last⟩ : |
| 258 | (∀ a : Fin 𝔰.ϱ, ‖toLp 2 (A · (.inl a))‖ ≤ M) ∧ ‖toLp 2 (A · 𝔰.z)‖ ≤ M := by |
| 259 | simpa [A, frameBox, frameVector, Fin.forall_fin_succ'] using h_box |
| 260 | have h_cols : ‖A * (1 - 𝔰.J₁)‖ ≤ (4 * 𝔰.ϱ + 2) * M := |
| 261 | norm_mul_one_sub_J₁_le A h_frame h_dual h_last |
| 262 | have h_sq : ‖A‖ * ‖A‖ ≤ (1 + (4 * 𝔰.ϱ + 2) * M) * ‖A‖ := calc |
| 263 | _ = ‖𝔰.J₁ + A * (1 - 𝔰.J₁) * star A‖ := by |
| 264 | simp [← norm_self_mul_star, mul_sub, sub_mul, mul_assoc, h_form] |
| 265 | _ ≤ 1 + ‖A * (1 - 𝔰.J₁)‖ * ‖A‖ := by |
| 266 | grw [norm_add_le, norm_J₁, norm_mul_le, norm_star] |
| 267 | _ ≤ (1 + (4 * 𝔰.ϱ + 2) * M) * ‖A‖ := by nlinarith |
| 268 | -- Cancel `‖A‖`; then `1 + (4 ϱ + 2) M + 1 ≤ 8 (ϱ + 1) M` as `M ≥ 1`. |
| 269 | grw [← U.norm_inv, ← hA, |
| 270 | le_of_mul_le_mul_right h_sq (by linarith)] |
| 271 | nlinarith |
| 272 | |
| 273 | /-- Cauchy–Schwarz for the form `h` with matrix `J₁`: `|h(v, w)| ≤ ‖v‖ * ‖w‖`. -/ |
| 274 | lemma norm_inner_J₁_le {v w : EuclideanSpace ℂ 𝔰.BesselIndex} : |
| 275 | ‖⟪v, toEuclideanLin 𝔰.J₁ w⟫_ℂ‖ ≤ ‖v‖ * ‖w‖ := by |
| 276 | -- The operator norm of `𝔰.J₁` is one. |
| 277 | grw [norm_inner_le_norm] |
| 278 | gcongr |
| 279 | simpa [toLpLin_apply] using 𝔰.J₁.l2_opNorm_mulVec w |
| 280 | |
| 281 | /-- Let h(v, w) = ⟪v, J₁ w⟫ be the hermitian form with Gram matrix `𝔰.J₁`, `𝔰.G₁` its unitary group |
| 282 | and f_a the `a`-th vector of the frame (e₁, …, e_ϱ, z); `frameVector y a` is y⁻¹ f_a. For `γ` and |
| 283 | `y` in `𝔰.G₁`, the entry `realFrameGram γ a b` = h(f_a, γ f_b), a complex number, equals h(y⁻¹ f_a, |
| 284 | y⁻¹ γ f_b). -/ |
| 285 | theorem realFrameGram_eq_inner (γ y : 𝔰.G₁) (a b : Fin (𝔰.ϱ + 1)) : |
| 286 | realFrameGram γ a b = ⟪frameVector y a, toEuclideanLin 𝔰.J₁ (frameVector (γ⁻¹ * y) b)⟫_ℂ := by |
| 287 | -- `y⁻¹` preserves the form, so `J γ = (y⁻¹)ᴴ J (y⁻¹ γ)`; read off the entry `(a, b)`. |
| 288 | have h_entry : realFrameGram γ a b = (y⁻¹.val.valᴴ * (𝔰.J₁ * (y⁻¹.val.val * γ.val.val))) |
| 289 | (𝔰.besselFrame a) (𝔰.besselFrame b) := by |
| 290 | simp only [← mul_assoc, |
| 291 | show y⁻¹.val.valᴴ * _ * _ = _ from mem_unitaryGroupOf_iff.1 y⁻¹.property] |
| 292 | rfl |
| 293 | rw [h_entry] |
| 294 | -- both sides are the same dot product of the two frame vectors |
| 295 | exact dotProduct_comm .. |
| 296 | |
| 297 | /-- For `s` in `besselFixer`, the matrix `New.realFrameGram` is unchanged when `γ` is multiplied by |
| 298 | `s` on the left or on the right. -/ |
| 299 | theorem realFrameGram_mul_of_mem_besselFixer {s : 𝔰.G₁} (hs : s ∈ besselFixer) : |
| 300 | realFrameGram (s * γ) = realFrameGram γ ∧ realFrameGram (γ * s) = realFrameGram γ := by |
| 301 | -- Write the entries as inner products of frames; multiplication by `s` fixes frames. |
| 302 | constructor <;> ext a b |
| 303 | · have h_frame : frameVector s = frameVector (1 : 𝔰.G₁) := by |
| 304 | simpa using frameVector_mul_of_mem_besselFixer (y := 1) hs |
| 305 | simp [realFrameGram_eq_inner (s * γ) s, realFrameGram_eq_inner γ 1, h_frame, mul_assoc] |
| 306 | · rw [realFrameGram_eq_inner (γ * s) 1, realFrameGram_eq_inner γ 1, _root_.mul_inv_rev, mul_assoc, |
| 307 | frameVector_mul_of_mem_besselFixer (inv_mem hs)] |
| 308 | |
| 309 | /-- Let `s` lie in the unipotent subgroup `besselU` of G₁ and act on the frame by the matrix |
| 310 | `m = frameMatrix s`. Then the matrix `Z(y) = realFrameGram y` of the products `h(f_a, y f_b)` is |
| 311 | `mᴴ Z(s * y)`. -/ |
| 312 | theorem realFrameGram_eq_frameMatrix_mul (y : 𝔰.G₁) {s : 𝔰.G₁} (hs : s ∈ besselU) : |
| 313 | realFrameGram y = (frameMatrix s)ᴴ * realFrameGram (s * y) := by |
| 314 | -- the rule `frameGram_inv_mul_mul` for `s⁻¹ * (s * y) * 1 = y` |
| 315 | have h_one : frameMatrix (1 : 𝔰.G₁) = 1 := (mem_besselU0_iff.mp (one_mem _)).2 |
| 316 | simpa [h_one, realFrameGram] using frameGram_inv_mul_mul (γ := s * y) hs (one_mem _) |
| 317 | |
| 318 | /-- The entry `realFrameGram γ a b` = h(f_a, γ f_b) has norm at most the product of the lengths of |
| 319 | `frameVector y a` = y⁻¹ f_a and `frameVector (γ⁻¹ * y) b` = y⁻¹ γ f_b. -/ |
| 320 | lemma norm_realFrameGram_le_mul : |
| 321 | ‖realFrameGram γ a b‖ ≤ ‖frameVector y a‖ * ‖frameVector (γ⁻¹ * y) b‖ := by |
| 322 | grw [realFrameGram_eq_inner, norm_inner_J₁_le] |
| 323 | |
| 324 | /-! ### Gram–Schmidt for the frame -/ |
| 325 | |
| 326 | /-- Gram–Schmidt gives the same vectors for `v` and `w` if each `v a - w a` is a combination of the |
| 327 | `w b` with `b < a`. -/ |
| 328 | lemma gramSchmidt_eq_of_sub_mem_span {ι V : Type*} [LinearOrder ι] [LocallyFiniteOrderBot ι] |
| 329 | [WellFoundedLT ι] [NormedAddCommGroup V] [InnerProductSpace ℂ V] {v w : ι → V} |
| 330 | (h_sub : ∀ a : ι, v a - w a ∈ Submodule.span ℂ (w '' Set.Iio a)) : |
| 331 | gramSchmidt ℂ v = gramSchmidt ℂ w := by |
| 332 | funext a |
| 333 | induction a using WellFoundedLT.induction with | ind a ih |
| 334 | let line (i : Iio a) : Submodule ℂ V := ℂ ∙ gramSchmidt ℂ w i |
| 335 | have h_orth : Pairwise fun i j ↦ line i ⟂ line j := fun i j hij ↦ by |
| 336 | simpa [line] using gramSchmidt_orthogonal ℂ w (Subtype.coe_injective.ne hij) |
| 337 | have h_mem : v a - w a ∈ ⨆ i, line i := by |
| 338 | apply (Submodule.span_le.mpr ?_) ((span_gramSchmidt_Iio ℂ w a).ge (h_sub a)) |
| 339 | rintro _ ⟨i, hi, rfl⟩ |
| 340 | exact (le_iSup line ⟨i, mem_Iio.mpr hi⟩) (Submodule.mem_span_singleton_self _) |
| 341 | -- Subtracting the projections onto the earlier lines removes the entire difference. |
| 342 | have h_proj := (OrthogonalFamily.of_pairwise h_orth).sum_projection_of_mem_iSup _ h_mem |
| 343 | simp only [map_sub, sum_sub_distrib] at h_proj |
| 344 | have h_prev (i : Iio a) : gramSchmidt ℂ v i = gramSchmidt ℂ w i := ih i (mem_Iio.1 i.2) |
| 345 | rw [gramSchmidt, gramSchmidt] |
| 346 | simp_rw [h_prev] |
| 347 | exact sub_eq_sub_iff_sub_eq_sub.mpr h_proj.symm |
| 348 | |
| 349 | /-- The vectors obtained from the frame `y⁻¹ e₁, …, y⁻¹ e_ϱ, y⁻¹ z` by the Gram–Schmidt process for |
| 350 | the Euclidean product; they are pairwise orthogonal and are not normalised. -/ |
| 351 | noncomputable def orthoFrame : Fin (𝔰.ϱ + 1) → EuclideanSpace ℂ 𝔰.BesselIndex := |
| 352 | gramSchmidt ℂ (frameVector y) |
| 353 | |
| 354 | /-- The upper unitriangular matrix of the coefficients of the frame at `y` in the orthogonal |
| 355 | vectors `orthoFrame y`. -/ |
| 356 | noncomputable def gramSchmidtMatrix : 𝔰.FrameMatrix := |
| 357 | unitriangularMatrix fun p ↦ ⟪orthoFrame y p.1.1, frameVector y p.1.2⟫_ℂ / ‖orthoFrame y p.1.1‖ ^ 2 |
| 358 | |
| 359 | /-- Gram–Schmidt vectors `orthoFrame y a` and `orthoFrame y b` with `a ≠ b` are orthogonal for the |
| 360 | Euclidean product. -/ |
| 361 | lemma inner_orthoFrame_eq_zero_of_ne {a b : Fin (𝔰.ϱ + 1)} (hab : a ≠ b) : |
| 362 | ⟪orthoFrame y a, orthoFrame y b⟫_ℂ = 0 := gramSchmidt_orthogonal ℂ _ hab |
| 363 | |
| 364 | /-- The frame at `y` is `orthoFrame y` times the matrix `gramSchmidtMatrix y`. -/ |
| 365 | lemma frameVector_eq_sum_orthoFrame : |
| 366 | frameVector y b = ∑ a : Fin (𝔰.ϱ + 1), gramSchmidtMatrix y a b • orthoFrame y a := by |
| 367 | -- This is the Gram–Schmidt formula; the terms `a ≥ b` of the sum are `orthoFrame y b` and zeros. |
| 368 | simpa [gramSchmidtMatrix, unitriangularMatrix, orthoFrame, add_comm (gramSchmidt ..), sum_ite, |
| 369 | filter_gt_eq_Iio, filter_filter] using gramSchmidt_def'' ℂ (frameVector y) b |
| 370 | |
| 371 | /-- There is a `u` in the Bessel unipotent group `besselU` whose submatrix `frameMatrix u` on the |
| 372 | rows and columns of the frame is `gramSchmidtMatrix y`, and for which `frameVector (u * y)` is |
| 373 | `orthoFrame y`. -/ |
| 374 | lemma exists_frameVector_mul_eq_orthoFrame (y : 𝔰.G₁) : |
| 375 | ∃ u ∈ besselU, frameMatrix u = gramSchmidtMatrix y ∧ frameVector (u * y) = orthoFrame y := by |
| 376 | obtain ⟨u, hu, h_matrix⟩ : ∃ u ∈ besselU, frameMatrix u = gramSchmidtMatrix y := |
| 377 | exists_mem_besselU_frameMatrix_eq (N := 1) fun a b hba ↦ by |
| 378 | simp [gramSchmidtMatrix, unitriangularMatrix, hba.not_gt, Matrix.one_apply] |
| 379 | refine ⟨u, hu, h_matrix, funext fun b ↦ ?_⟩ |
| 380 | -- compare the two expansions of `frameVector y b`, by induction on `b` |
| 381 | induction b using WellFoundedLT.induction with | ind b ih |
| 382 | have h_expansions_eq : ∑ a : Fin (𝔰.ϱ + 1), gramSchmidtMatrix y a b • frameVector (u * y) a = |
| 383 | ∑ a : Fin (𝔰.ϱ + 1), gramSchmidtMatrix y a b • orthoFrame y a := by |
| 384 | rw [← frameVector_eq_sum_orthoFrame, frameVector_eq_sum b hu, h_matrix] |
| 385 | simpa +contextual [ih, gramSchmidtMatrix, unitriangularMatrix, sum_ite] using h_expansions_eq |
| 386 | |
| 387 | /-- For `y` in the unitary group `𝔰.G₁`, let `orthoFrame y` be the Gram–Schmidt vectors of the moved |
| 388 | frame. They do not change when `y` is multiplied on the left by an element `s` of the Bessel |
| 389 | subgroup `besselS`, the group of the elements of `𝔰.G₁` that map each vector of the frame (e₁, …, |
| 390 | e_ϱ, z) to itself plus a combination of the earlier ones. -/ |
| 391 | theorem orthoFrame_besselS_mul (y : 𝔰.G₁) {s : 𝔰.G₁} (hs : s ∈ besselS) : |
| 392 | orthoFrame (s * y) = orthoFrame y := by |
| 393 | obtain ⟨u, hu, h, hh, rfl⟩ := mem_besselS.1 hs |
| 394 | have h_fix : frameVector (h * y) = frameVector y := |
| 395 | frameVector_mul_of_mem_besselFixer (mem_besselFixer_of_mem_besselH hh) |
| 396 | rw [orthoFrame, orthoFrame, ← h_fix, mul_assoc] |
| 397 | refine (gramSchmidt_eq_of_sub_mem_span fun a ↦ ?_).symm |
| 398 | -- `u` acts on the frame by a unitriangular matrix |
| 399 | rw [frameVector_eq_sum a hu, ← add_sum_erase _ _ (mem_univ a), |
| 400 | frameMatrix_unitriangular hu a a le_rfl, one_apply_eq, one_smul, add_sub_cancel_left] |
| 401 | refine Submodule.sum_mem _ fun b hb ↦ ?_ |
| 402 | obtain hba | hab := (ne_of_mem_erase hb).lt_or_gt |
| 403 | · exact Submodule.smul_mem _ _ (Submodule.subset_span ⟨b, hba, rfl⟩) |
| 404 | · simp [frameMatrix_unitriangular hu b a hab.le, hab.ne'] |
| 405 | |
| 406 | /-- The vectors of the moved frame are linearly independent because they are distinct columns |
| 407 | of the invertible matrix `y⁻¹`. -/ |
| 408 | lemma linearIndependent_frameVector : LinearIndependent ℂ (frameVector y) := by |
| 409 | have h := (linearIndependent_col_iff_isUnit.2 y⁻¹.val.isUnit).comp 𝔰.besselFrame |
| 410 | besselFrame_injective |
| 411 | let e := (WithLp.linearEquiv 2 ℂ (𝔰.BesselIndex → ℂ)).symm |
| 412 | exact h.map' e.toLinearMap e.ker |
| 413 | |
| 414 | /-- A Gram–Schmidt vector `orthoFrame y a` is not longer than the vector `frameVector y a` of the |
| 415 | moved frame (y⁻¹ e₁, …, y⁻¹ e_ϱ, y⁻¹ z) from which it comes. -/ |
| 416 | lemma norm_orthoFrame_le : ‖orthoFrame y a‖ ≤ ‖frameVector y a‖ := by |
| 417 | simpa [orthoFrame, gramSchmidtNormed_unit_length a (linearIndependent_frameVector y)] using |
| 418 | norm_inner_le_norm (𝕜 := ℂ) (gramSchmidtNormed ℂ (frameVector y) a) (frameVector y a) |
| 419 | |
| 420 | /-- The Gram–Schmidt vectors `orthoFrame y a` of the moved frame (y⁻¹ e₁, …, y⁻¹ e_ϱ, y⁻¹ z) have |
| 421 | length at least `‖y‖⁻¹`, with the operator norm of `y`. -/ |
| 422 | lemma one_le_norm_mul_norm_orthoFrame : 1 ≤ ‖y.val.val‖ * ‖orthoFrame y a‖ := by |
| 423 | -- `y` maps `orthoFrame y a` to the frame vector `f_a` plus a combination of the earlier ones |
| 424 | obtain ⟨u, hu, -, h_frame⟩ : ∃ u ∈ besselU, |
| 425 | frameMatrix u = gramSchmidtMatrix y ∧ frameVector (u * y) = orthoFrame y := |
| 426 | exists_frameVector_mul_eq_orthoFrame y |
| 427 | have h_expand : orthoFrame y a = ∑ b, frameMatrix u⁻¹ b a • frameVector y b := by |
| 428 | rw [← h_frame, frameVector_eq_sum a (inv_mem hu), inv_mul_cancel_left] |
| 429 | have h_entry : ‖frameMatrix u⁻¹ a a‖ ≤ ‖y.val.val‖ * ‖orthoFrame y a‖ := by |
| 430 | simpa [← h_expand, Matrix.one_apply, besselFrame_injective.eq_iff] using |
| 431 | norm_sum_le_mul_norm_sum_frameVector (s := 1) (y := y) id (frameMatrix u⁻¹ · a) |
| 432 | (𝔰.besselFrame a) |
| 433 | simpa [frameMatrix_unitriangular (inv_mem hu) a a le_rfl] using h_entry |
| 434 | |
| 435 | /-- The Gram–Schmidt vectors `orthoFrame y a` of the moved frame are nonzero. -/ |
| 436 | lemma orthoFrame_ne_zero : orthoFrame y a ≠ 0 := |
| 437 | gramSchmidt_ne_zero a (linearIndependent_frameVector y) |
| 438 | |
| 439 | /-- If `besselLength y`, the infimum of ‖s y‖ + 1 over `s` in the Bessel subgroup `besselS`, is at |
| 440 | most `M`, the Gram–Schmidt vectors `orthoFrame y a` of the moved frame (y⁻¹ e₁, …, y⁻¹ e_ϱ, y⁻¹ z) |
| 441 | have length between `M⁻¹` and `M`. -/ |
| 442 | theorem norm_orthoFrame_mem_Icc (h_size : besselLength y ≤ M) : |
| 443 | ‖orthoFrame y a‖ ∈ Set.Icc M⁻¹ M := by |
| 444 | obtain ⟨u, hu, h_norm⟩ : ∃ u ∈ besselU, ‖(u * y).val.val‖ ≤ M := |
| 445 | exists_norm_le_of_besselLength_le h_size |
| 446 | rw [← orthoFrame_besselS_mul y (mem_partialUnitriangularGroup_of_mem_besselU hu)] |
| 447 | have hM : 0 < M := (Units.norm_pos _).trans_le h_norm |
| 448 | constructor |
| 449 | · grw [inv_le_iff_one_le_mul₀' hM, ← h_norm, ← one_le_norm_mul_norm_orthoFrame] |
| 450 | · grw [norm_orthoFrame_le, norm_frameVector_le, h_norm] |
| 451 | |
| 452 | /-- The Gram–Schmidt vectors `orthoFrame y` of the moved frame are linearly independent. -/ |
| 453 | lemma linearIndependent_orthoFrame : LinearIndependent ℂ (orthoFrame y) := |
| 454 | gramSchmidt_linearIndependent (linearIndependent_frameVector y) |
| 455 | |
| 456 | /-- For `y` in the unitary group `𝔰.G₁`, let `gramSchmidtMatrix y` be the unitriangular matrix of |
| 457 | the moved frame in its Gram–Schmidt vectors. Let `s` lie in the Bessel subgroup `besselS`, the group |
| 458 | of the elements of `𝔰.G₁` that map each vector of the frame (e₁, …, e_ϱ, z) to itself plus a |
| 459 | combination of the earlier ones, and let `frameMatrix s` be the submatrix of `s` on the rows and |
| 460 | columns of the frame. Then `gramSchmidtMatrix y` is `gramSchmidtMatrix (s * y)` times |
| 461 | `frameMatrix s`. -/ |
| 462 | theorem gramSchmidtMatrix_besselS_mul (y : 𝔰.G₁) {s : 𝔰.G₁} (hs : s ∈ besselS) : |
| 463 | gramSchmidtMatrix (s * y) * frameMatrix s = gramSchmidtMatrix y := by |
| 464 | -- Both matrices express the frame at `y` in the same orthogonal family of nonzero vectors. |
| 465 | have h_orth : orthoFrame (s * y) = orthoFrame y := orthoFrame_besselS_mul y hs |
| 466 | obtain ⟨u, hu, h, hh, rfl⟩ := mem_besselS.1 hs |
| 467 | have h_fix : frameVector (h * y) = frameVector y := |
| 468 | frameVector_mul_of_mem_besselFixer (mem_besselFixer_of_mem_besselH hh) |
| 469 | set C : 𝔰.FrameMatrix := |
| 470 | gramSchmidtMatrix (u * h * y) * frameMatrix (u * h) with hC |
| 471 | have h_same_expansion (b : Fin (𝔰.ϱ + 1)) : ∑ a : Fin (𝔰.ϱ + 1), C a b • orthoFrame y a = |
| 472 | ∑ a : Fin (𝔰.ϱ + 1), gramSchmidtMatrix y a b • orthoFrame y a := by |
| 473 | rw [← frameVector_eq_sum_orthoFrame, ← h_fix, frameVector_eq_sum b hu, ← mul_assoc, hC, |
| 474 | frameMatrix_mul_besselH u hh] |
| 475 | simp only [frameVector_eq_sum_orthoFrame, h_orth, Matrix.mul_apply, sum_smul, smul_sum, |
| 476 | smul_smul] |
| 477 | exact sum_comm.trans (sum_congr rfl fun _ _ ↦ sum_congr rfl fun _ _ ↦ by rw [mul_comm]) |
| 478 | ext a b |
| 479 | exact Fintype.linearIndependent_iffₛ.1 (linearIndependent_orthoFrame y) (C · b) |
| 480 | (gramSchmidtMatrix y · b) (h_same_expansion b) a |
| 481 | |
| 482 | /-- The Gram–Schmidt vectors `orthoFrame y a` of the moved frame (y⁻¹ e₁, …, y⁻¹ e_ϱ, y⁻¹ z) depend |
| 483 | continuously on `y` in the unitary group `𝔰.G₁`. -/ |
| 484 | lemma continuous_orthoFrame : Continuous fun y : 𝔰.G₁ ↦ orthoFrame y a := by |
| 485 | rw [← continuousOn_univ] |
| 486 | intro y _ |
| 487 | exact ContinuousWithinAt.gramSchmidt a (fun i _ ↦ (continuous_frameVector i).continuousWithinAt) |
| 488 | ((linearIndependent_frameVector y).linearIndepOn _) |
| 489 | |
| 490 | /-- The unitriangular matrix `gramSchmidtMatrix y` of the moved frame in its Gram–Schmidt vectors |
| 491 | depends continuously on `y` in the unitary group `𝔰.G₁`. -/ |
| 492 | lemma continuous_gramSchmidtMatrix : Continuous (gramSchmidtMatrix : 𝔰.G₁ → 𝔰.FrameMatrix) := by |
| 493 | refine continuous_unitriangularMatrix.comp (continuous_pi fun p ↦ ?_) |
| 494 | have := continuous_orthoFrame (𝔰 := 𝔰) p.val.1 |
| 495 | fun_prop (disch := simp [orthoFrame_ne_zero]) |
| 496 | |
| 497 | /-- Each entry `gramSchmidtMatrix y a b` is a measurable function of `y` in `𝔰.G₁`. -/ |
| 498 | lemma measurable_gramSchmidtMatrix : Measurable fun y : 𝔰.G₁ ↦ gramSchmidtMatrix y a b := |
| 499 | (continuous_gramSchmidtMatrix.matrix_elem a b).measurable |
| 500 | |
| 501 | /-- If `1 ≤ M` and the vectors `orthoFrame y a` have Euclidean length between `M⁻¹` and `M`, then |
| 502 | `besselLength y ≤ 8 (ϱ + 1) M`. -/ |
| 503 | theorem besselLength_le_of_norm_orthoFrame (y : 𝔰.G₁) {M : ℝ} (hM : 1 ≤ M) |
| 504 | (h_len : ∀ a : Fin (𝔰.ϱ + 1), ‖orthoFrame y a‖ ∈ Set.Icc M⁻¹ M) : |
| 505 | besselLength y ≤ 8 * (𝔰.ϱ + 1) * M := by |
| 506 | -- Make the frame orthogonal by some `u` in `besselU`, with vectors `f a`. The dual frame |
| 507 | -- `J (f a) / ‖f a‖ ^ 2` is the image of `(e*_a)` under `(u * y)⁻¹ * unipotentOf q` for some `q`, |
| 508 | -- so `norm_add_one_le_of_mem_frameBox` bounds `(unipotentOf q)⁻¹ * u * y`. |
| 509 | obtain ⟨u, hu, -, h_frame⟩ : ∃ u ∈ besselU, |
| 510 | frameMatrix u = gramSchmidtMatrix y ∧ frameVector (u * y) = orthoFrame y := |
| 511 | exists_frameVector_mul_eq_orthoFrame y |
| 512 | have h_orth {a b : Fin (𝔰.ϱ + 1)} (hab : a ≠ b) : ⟪orthoFrame y a, orthoFrame y b⟫_ℂ = 0 := |
| 513 | inner_orthoFrame_eq_zero_of_ne y hab |
| 514 | generalize orthoFrame y = f at h_frame h_orth h_len |
| 515 | have hM_pos : 0 < M := one_pos.trans_le hM |
| 516 | have h_pos (a : Fin (𝔰.ϱ + 1)) : 0 < ‖f a‖ := (inv_pos.2 hM_pos).trans_le (h_len a).1 |
| 517 | -- The vectors `J (v a)` are isotropic and dual to the frame `f`. |
| 518 | let v (a : Fin 𝔰.ϱ) : EuclideanSpace ℂ 𝔰.BesselIndex := |
| 519 | ‖f a.castSucc‖⁻¹ ^ 2 • f a.castSucc |
| 520 | have hv_dual (a : Fin (𝔰.ϱ + 1)) (b : Fin 𝔰.ϱ) : |
| 521 | ⟪frameVector (u * y) a, v b⟫_ℂ = if a = b.castSucc then 1 else 0 := by |
| 522 | split_ifs with hab <;> simp [v, h_frame, hab, h_orth, norm_pos_iff.1 (h_pos _)] |
| 523 | have hv_iso (a b : Fin 𝔰.ϱ) : ⟪v b, toEuclideanLin 𝔰.J₁ (v a)⟫_ℂ = 0 := by |
| 524 | -- the `f a` are the image of the frame under an isometry, and the `e_a` span an isotropic space |
| 525 | have h_zero : realFrameGram (1 : 𝔰.G₁) b.castSucc a.castSucc = 0 := by simp [frameGram] |
| 526 | have h_iso : ⟪f b.castSucc, toEuclideanLin 𝔰.J₁ (f a.castSucc)⟫_ℂ = 0 := by |
| 527 | simpa [realFrameGram_eq_inner 1 (u * y), h_frame] using h_zero |
| 528 | simp [v, h_iso] |
| 529 | -- such a system is the image of `(e*_a)` under `(u * y)⁻¹ * unipotentOf q` for some `q` |
| 530 | let B : Matrix 𝔰.BesselIndex (Fin 𝔰.ϱ) ℂ := 𝔰.J₁ * (of fun a i ↦ v a i)ᵀ |
| 531 | have h_dual_cols : ((u * y)⁻¹.val.val * 𝔰.frameCols)ᴴ * 𝔰.J₁ * B = inclMatrix ℂ Fin.castSucc := by |
| 532 | ext a b |
| 533 | -- the entry is the product of `frameVector (u * y) a` and `v b` |
| 534 | simp only [B, Matrix.mul_assoc, mul_mul_eq_of_mul_eq IsHermitianInvolution.mul_self, |
| 535 | Matrix.one_mul, |
| 536 | mul_inclMatrix] |
| 537 | exact (dotProduct_comm ..).trans (hv_dual a b) |
| 538 | have h_isotropic : Bᴴ * 𝔰.J₁ * B = 0 := by |
| 539 | ext a b |
| 540 | simp only [B, Matrix.mul_assoc, mul_mul_eq_of_mul_eq IsHermitianInvolution.mul_self, |
| 541 | Matrix.one_mul] |
| 542 | exact (dotProduct_comm ..).trans (inner_eq_zero_symm.1 (hv_iso a b)) |
| 543 | obtain ⟨q, hq⟩ : ∃ q : 𝔰.UnipotentParams, |
| 544 | ((u * y)⁻¹ * unipotentOf q).val.val * 𝔰.dualCols = B := |
| 545 | exists_mul_unipotentOf_dualCols_eq h_dual_cols h_isotropic |
| 546 | have h_mem : (unipotentOf q)⁻¹ ∈ besselU0 := inv_mem (unipotentOf_mem_besselU0 q) |
| 547 | have h_box : (unipotentOf q)⁻¹ * (u * y) ∈ frameBox M := fun a ↦ by |
| 548 | simpa [frameVector_mul_of_mem_besselFixer (mem_besselFixer_of_mem_besselU0 h_mem), h_frame] |
| 549 | using (h_len a).2 |
| 550 | have h_norm : ‖((unipotentOf q)⁻¹ * (u * y)).val.val‖ + 1 ≤ 8 * (𝔰.ϱ + 1) * M := by |
| 551 | refine norm_add_one_le_of_mem_frameBox _ h_box hM fun j ↦ ?_ |
| 552 | -- the column is `J (v j)`, of length `‖f j‖⁻¹ ≤ M` |
| 553 | have h_col (i : 𝔰.BesselIndex) : |
| 554 | ((u * y)⁻¹ * unipotentOf q).val i (eStar j) = (𝔰.J₁ *ᵥ v j) i := by |
| 555 | rw [mul_inclMatrix] at hq |
| 556 | exact congrFun₂ hq i j |
| 557 | calc |
| 558 | _ = ‖toLp 2 (𝔰.J₁ *ᵥ v j)‖ := by rw [← funext h_col, _root_.mul_inv_rev, inv_inv] |
| 559 | _ ≤ ‖𝔰.J₁‖ * ‖v j‖ := l2_opNorm_mulVec _ _ |
| 560 | _ = ‖f j.castSucc‖⁻¹ := by simp [v, norm_smul, field] |
| 561 | _ ≤ M := inv_le_of_inv_le₀ hM_pos (h_len _).1 |
| 562 | grw [besselLength_le_norm_mul_add_one (mem_partialUnitriangularGroup_of_mem_besselU |
| 563 | (mul_mem (mem_besselU0_iff.1 h_mem).1 hu)), mul_assoc, h_norm] |
| 564 | |
| 565 | /-- A bounded frame with a bounded triangular dual has bounded length. Let h(v, w) = ⟪v, J₁ w⟫ be |
| 566 | the hermitian form with Gram matrix `𝔰.J₁`, made of ϱ hyperbolic planes (e_a, e*_a), a positive |
| 567 | space and a vector z with h(z, z) = −1, and let `y` lie in its unitary group `𝔰.G₁`. Let `1 ≤ M` |
| 568 | and let `V` be a sequence of vectors with: (a) `V 0, …, V ϱ` is the moved frame |
| 569 | `frameVector y` = (y⁻¹ e₁, …, y⁻¹ e_ϱ, y⁻¹ z); (b) `‖V a‖ ≤ M` for `a ≤ 2 ϱ`; (c) `h(V a, V b)` is |
| 570 | `-1` if `a + b = 2 ϱ` and `0` if `a + b < 2 ϱ`. Then `besselLength y`, the infimum of ‖s y‖ + 1 |
| 571 | (operator norm) over `s` in the Bessel subgroup `besselS`, is at most `8 (ϱ + 1) M`. -/ |
| 572 | theorem besselLength_le_of_dual (hM : 1 ≤ M) (V : ℕ → EuclideanSpace ℂ 𝔰.BesselIndex) |
| 573 | (hV_frame : ∀ a : Fin (𝔰.ϱ + 1), frameVector y a = V a) (h_len : ∀ a ≤ 2 * 𝔰.ϱ, ‖V a‖ ≤ M) |
| 574 | (h_dual : ∀ a b : ℕ, a + b ≤ 2 * 𝔰.ϱ → |
| 575 | ⟪V a, toEuclideanLin 𝔰.J₁ (V b)⟫_ℂ = if a + b = 2 * 𝔰.ϱ then -1 else 0) : |
| 576 | besselLength y ≤ 8 * (𝔰.ϱ + 1) * M := by |
| 577 | -- The orthogonal vector `orthoFrame y a` is `V a` plus a combination of the `V b`, `b < a`, |
| 578 | -- orthogonal to these. So it is not longer than `V a`, and it still pairs to `-1` with |
| 579 | -- `V (2 ϱ - a)`. |
| 580 | refine besselLength_le_of_norm_orthoFrame y hM fun a ↦ ⟨?_, ?_⟩ |
| 581 | · obtain ⟨u, hu, -, h_frame⟩ := exists_frameVector_mul_eq_orthoFrame y |
| 582 | have h_pair : ⟪V (2 * 𝔰.ϱ - a.val), toEuclideanLin 𝔰.J₁ (orthoFrame y a)⟫_ℂ = -1 := by |
| 583 | -- expand in the frame at `y`: terms after `a` vanish by unitriangularity, earlier by `h_dual` |
| 584 | rw [← h_frame, frameVector_eq_sum a (inv_mem hu), inv_mul_cancel_left, map_sum, inner_sum, |
| 585 | sum_eq_single a] |
| 586 | · simp (disch := omega) [frameMatrix_unitriangular (inv_mem hu) a a le_rfl, hV_frame, h_dual] |
| 587 | · intro b _ hb |
| 588 | obtain hba | hab := hb.lt_or_gt |
| 589 | · simp (disch := omega) [inner_smul_right, hV_frame, h_dual, ite_eq_right] |
| 590 | · simp [frameMatrix_unitriangular (inv_mem hu) b a hab.le, hab.ne'] |
| 591 | · simp |
| 592 | rw [inv_le_iff_one_le_mul₀' (one_pos.trans_le hM)] |
| 593 | calc 1 = ‖⟪V (2 * 𝔰.ϱ - a.val), toEuclideanLin 𝔰.J₁ (orthoFrame y a)⟫_ℂ‖ := by simp [h_pair] |
| 594 | _ ≤ ‖V (2 * 𝔰.ϱ - a.val)‖ * ‖orthoFrame y a‖ := norm_inner_J₁_le |
| 595 | _ ≤ M * ‖orthoFrame y a‖ := by grw [h_len _ (by lia)] |
| 596 | · grw [norm_orthoFrame_le, hV_frame, h_len a (by lia)] |
| 597 | |
| 598 | end New |
| 599 | |
| 600 | namespace New |
| 601 | |
| 602 | /-! |
| 603 | ## Lattice basis, Gram matrix, link and the discriminant 𝗀 |
| 604 | |
| 605 | The space has the basis `e_a`; `x_i`, `z`; `e*_a` (indices `𝔰.BesselIndex`) and the Gram matrix |
| 606 | `T.splitGram`, which pairs `e_a` with `e*_a` and is `T` on the middle block. |
| 607 | |
| 608 | * `New.link`: the relation on `X^⊥/X` defined by an isometry, built from the matrix |
| 609 | `New.linkMatrix`. |
| 610 | -/ |
| 611 | |
| 612 | section LinkDefs |
| 613 | |
| 614 | open Matrix Fin Filling |
| 615 | |
| 616 | variable {R : Type*} [CommRing R] (𝔰 : Shape) [StarRing R] (p : Rˣ) (N : R) |
| 617 | |
| 618 | /-- For a scalar N, the matrix with diagonal 1 at the x_i (i ≠ k₀), 0 at v and −N at z, and entries |
| 619 | −1 at (v, z) and (z, v). If N = p p̄, it is the Gram matrix of X₀ ⊕ Ez in the basis x_i (i ≠ k₀), v, |
| 620 | z, where v = x_{k₀}/p̄ + z/N (`New.gram_besselLatticeBasis`). -/ |
| 621 | def latticeMiddleGram : 𝔰.Form R := |
| 622 | let c : Matrix 𝔰.κ Unit R := of fun i _ ↦ if i = 𝔰.k₀ then -1 else 0 |
| 623 | (scaleAt 0 𝔰.k₀).fromBlocks c cᵀ (of fun _ _ ↦ -N) |
| 624 | |
| 625 | /-- The matrix whose columns are the orthonormal basis vectors x_i of X₀ in the lattice basis (x_i |
| 626 | for i ≠ k₀, v, z), where v = x_{k₀}/p̄ + z/(p p̄). -/ |
| 627 | def middleInclusionMatrix : Matrix (𝔰.κ ⊕ Unit) 𝔰.κ R := |
| 628 | fromRows (scaleAt (star p.val) 𝔰.k₀) (of fun () j ↦ if j = 𝔰.k₀ then -p⁻¹ else 0) |
| 629 | |
| 630 | /-- With the column of z appended, the inclusion matrix `middleInclusionMatrix` from the x_i to the |
| 631 | lattice basis is block lower triangular: `scaleAt p̄ k₀` (diagonal, p̄ at k₀ and 1 elsewhere), `1`, |
| 632 | and the single entry `-p⁻¹` below the diagonal. -/ |
| 633 | lemma fromCols_middleInclusionMatrix (p : Rˣ) : |
| 634 | fromCols (middleInclusionMatrix 𝔰 p) (fromRows 0 (1 : Matrix Unit Unit R)) = |
| 635 | fromBlocks (scaleAt (star (p : R)) 𝔰.k₀) 0 |
| 636 | (of fun (_ : Unit) (j : 𝔰.κ) ↦ if j = 𝔰.k₀ then -(↑p⁻¹ : R) else 0) |
| 637 | (1 : Matrix Unit Unit R) := by |
| 638 | ext (i | i) (j | j) <;> simp [middleInclusionMatrix] |
| 639 | |
| 640 | omit [StarRing R] in |
| 641 | /-- Two block lower triangular matrices that scale the distinguished coordinate `k₀` of κ by `a`, |
| 642 | `a'` and carry it to the last coordinate by `c`, `c'` multiply to `1` if `a * a' = 1` and |
| 643 | `c * a' + c' = 0`. -/ |
| 644 | lemma fromBlocks_scaleAt_mul_eq_one {a a' c c' : R} (ha : a * a' = 1) (hc : c * a' + c' = 0) : |
| 645 | fromBlocks (scaleAt a 𝔰.k₀) 0 (of fun (_ : Unit) (j : 𝔰.κ) ↦ if j = 𝔰.k₀ then c else 0) |
| 646 | (1 : Matrix Unit Unit R) * |
| 647 | fromBlocks (scaleAt a' 𝔰.k₀) 0 (of fun (_ : Unit) (j : 𝔰.κ) ↦ if j = 𝔰.k₀ then c' else 0) |
| 648 | (1 : Matrix Unit Unit R) = 1 := by |
| 649 | rw [fromBlocks_multiply, ← fromBlocks_one] |
| 650 | simp only [Matrix.mul_zero, Matrix.zero_mul, zero_add, add_zero, mul_one] |
| 651 | congr 1 |
| 652 | · ext i j |
| 653 | by_cases hij : i = j |
| 654 | · subst j |
| 655 | by_cases hi : i = 𝔰.k₀ <;> simp [scaleAt, hi, ha] |
| 656 | · simp [scaleAt, hij] |
| 657 | · ext i j |
| 658 | by_cases hj : j = 𝔰.k₀ <;> simp [scaleAt, hj, hc] |
| 659 | |
| 660 | omit [StarRing R] in |
| 661 | /-- Two matrices that are the identity outside the middle block, where they are inverse to each |
| 662 | other, multiply to `1`. -/ |
| 663 | lemma fromBlocks_one_mul_eq_one {X Y : Matrix (𝔰.κ ⊕ Unit) (𝔰.κ ⊕ Unit) R} (hXY : X * Y = 1) : |
| 664 | fromBlocks 1 0 0 (fromBlocks X 0 0 1) * fromBlocks 1 0 0 (fromBlocks Y 0 0 1) = |
| 665 | (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex R) := by |
| 666 | simp [fromBlocks_multiply, hXY] |
| 667 | |
| 668 | /-- The invertible matrix whose columns are the lattice basis (e_a; x_i for i ≠ k₀, v, z; e*_a), |
| 669 | v = x_{k₀}/p̄ + z/(p p̄), in the standard basis. -/ |
| 670 | def besselLatticeBasis : GL 𝔰.BesselIndex R := |
| 671 | -- Both matrices are the identity on the `e_a` and `e*_a`; only the middle block is not trivial. |
| 672 | delta% Units.mkOfMulEqOne |
| 673 | (fromBlocks 1 0 0 |
| 674 | (fromBlocks |
| 675 | (fromBlocks (scaleAt (star p⁻¹.val) 𝔰.k₀) 0 |
| 676 | (of fun _ j ↦ if j = 𝔰.k₀ then ↑(p * star p)⁻¹ else 0) 1) |
| 677 | 0 0 1)) |
| 678 | (fromBlocks 1 0 0 (fromBlocks (fromCols (middleInclusionMatrix 𝔰 p) (fromRows 0 1)) 0 0 1)) |
| 679 | (by |
| 680 | rw [fromCols_middleInclusionMatrix] |
| 681 | refine fromBlocks_one_mul_eq_one 𝔰 (fromBlocks_scaleAt_mul_eq_one 𝔰 ?_ ?_) |
| 682 | · simp [← star_mul] |
| 683 | · simp [mul_right_comm _ (↑p⁻¹ : R), ← star_mul]) |
| 684 | |
| 685 | variable {𝔰} {T : 𝔰.Form R} (γ : T.G) |
| 686 | |
| 687 | /-- For Z of size ϱ+1 with leading minors D_l, the quantity |D_{ϱ+1}|² − N²|D_ϱ|², where |x|² |
| 688 | means x x̄. -/ |
| 689 | def frameDisc (N : R) (Z : Matrix (Fin (𝔰.ϱ + 1)) (Fin (𝔰.ϱ + 1)) R) : R := |
| 690 | let d : R := leadingMinor Z 𝔰.top.castSucc |
| 691 | Z.det * star Z.det - N ^ 2 * (d * star d) |
| 692 | |
| 693 | /-- For a matrix T on the middle indices (x_i; z), `T.splitGram` is the Gram matrix in the basis |
| 694 | (e_a; x_i, z; e*_a) of the form that is T on the middle block and pairs e_a with e*_a as hyperbolic |
| 695 | planes. Let p be a unit and N = p p̄, and take T = `𝔰.middleGram N` = diag(1, …, 1, −N). The columns |
| 696 | of `besselLatticeBasis 𝔰 p` are the basis in which x_{k₀} is replaced by v = x_{k₀}/p̄ + z/N. Its |
| 697 | Gram matrix has the same shape, with middle block `latticeMiddleGram 𝔰 N`: diagonal 1 at the x_i |
| 698 | (i ≠ k₀), 0 at v and −N at z, entries −1 at (v, z) and (z, v), and zero elsewhere. -/ |
| 699 | lemma gram_besselLatticeBasis (p : Rˣ) (N : R) (hN : p * star ↑p = N) : |
| 700 | (besselLatticeBasis 𝔰 p).valᴴ * (𝔰.middleGram N).splitGram * besselLatticeBasis 𝔰 p = |
| 701 | (latticeMiddleGram 𝔰 N).splitGram := by |
| 702 | subst hN |
| 703 | -- Outside the middle block the basis is standard; reduce to the middle block and check entries. |
| 704 | simp [besselLatticeBasis, Shape.Form.splitGram, Floors.hyperbolicGram, fromBlocks_conjTranspose, |
| 705 | fromBlocks_multiply, fromBlocks_mul_fromRows, fromCols_mul_fromBlocks] |
| 706 | ext (i | i) (j | j) |
| 707 | all_goals simp [Shape.middleGram, latticeMiddleGram, diagonal, |
| 708 | fromBlocks_multiply, Matrix.mul_apply] |
| 709 | all_goals grind [p.mul_inv, star_star, star_mul, star_one, star_zero] |
| 710 | |
| 711 | /-- For γ in the unitary group, the matrix (f | γf) of the frame f and its image under γ, side by |
| 712 | side. -/ |
| 713 | abbrev framePair : Matrix 𝔰.BesselIndex (Fin (𝔰.ϱ + 1) ⊕ Fin (𝔰.ϱ + 1)) R := |
| 714 | (frameImage 1).fromCols (frameImage γ.val.val) |
| 715 | |
| 716 | /-- The matrix with columns e₁, …, e_ϱ, γe₁, …, γe_ϱ. -/ |
| 717 | abbrev isotropicFramePair : Matrix 𝔰.BesselIndex (Fin 𝔰.ϱ ⊕ Fin 𝔰.ϱ) R := |
| 718 | (framePair γ).submatrix id (Sum.map castSucc castSucc) |
| 719 | |
| 720 | /-! ### The Gram determinant of two frames -/ |
| 721 | |
| 722 | omit [StarRing R] in |
| 723 | /-- On the Bessel frame the split form has only the last diagonal entry `-N`. -/ |
| 724 | lemma middleGram_submatrix_besselFrame (N : R) : |
| 725 | (𝔰.middleGram N).splitGram.submatrix 𝔰.besselFrame 𝔰.besselFrame = single 𝔰.top 𝔰.top (-N) := by |
| 726 | ext a b |
| 727 | cases a using lastCases <;> cases b using lastCases <;> |
| 728 | simp [Shape.besselFrame, Shape.Form.splitGram, Shape.middleGram, |
| 729 | (castSucc_ne_last _).symm] |
| 730 | |
| 731 | /-- Let `N` be self-adjoint in the commutative star ring `R`, let h be the form of ϱ hyperbolic |
| 732 | planes and the middle block diag(1, …, 1, −N), and let `γ` be an isometry of h. The Gram matrix of |
| 733 | the frame f = (e₁, …, e_ϱ, z) and its image γf, side by side in `framePair γ`, has both diagonal |
| 734 | blocks zero except for the entry −N at `𝔰.top`, the position of z. The other two blocks are the |
| 735 | matrix `frameGram γ` of the products h(f_a, γ f_b) and its adjoint. -/ |
| 736 | lemma gram_framePair (N : R) (hN : star N = N) (γ : (𝔰.middleGram N).G) : |
| 737 | (framePair γ)ᴴ * (𝔰.middleGram N).splitGram * framePair γ = |
| 738 | fromBlocks (single 𝔰.top 𝔰.top (-N)) ((𝔰.middleGram N).frameGram γ) |
| 739 | ((𝔰.middleGram N).frameGram γ)ᴴ (single 𝔰.top 𝔰.top (-N)) := by |
| 740 | have h_herm : (𝔰.middleGram N).splitGramᴴ = (𝔰.middleGram N).splitGram := by |
| 741 | simp [Shape.Form.splitGram, Shape.middleGram, ← Matrix.ext_iff, hN, Matrix.one_apply, |
| 742 | apply_ite star, @eq_comm (Fin 𝔰.ϱ), @eq_comm 𝔰.κ] |
| 743 | have h_block (x y : Matrix 𝔰.BesselIndex 𝔰.BesselIndex R) : |
| 744 | (frameImage x)ᴴ * (𝔰.middleGram N).splitGram * frameImage y = |
| 745 | (xᴴ * (𝔰.middleGram N).splitGram * y).submatrix 𝔰.besselFrame 𝔰.besselFrame := rfl |
| 746 | rw [conjTranspose_fromCols_eq_fromRows_conjTranspose, fromRows_mul, fromRows_mul_fromCols, |
| 747 | h_block, h_block, h_block, h_block, |
| 748 | show γ.val.valᴴ * _ * _ = _ from mem_unitaryGroupOf_iff.1 γ.property] |
| 749 | simp [middleGram_submatrix_besselFrame, h_herm, Shape.Form.frameGram] |
| 750 | |
| 751 | /-- Let `N` be self-adjoint in the commutative star ring `R`, let h be the form of ϱ hyperbolic |
| 752 | planes and the middle block diag(1, …, 1, −N), and let `γ` be an isometry of h. The columns of |
| 753 | `framePair γ` are the frame f = (e₁, …, e_ϱ, z), which has `𝔰.n` = ϱ + 1 vectors, and its image γf. |
| 754 | Let Z be the matrix `frameGram γ` of the products h(f_a, γ f_b), and D_ϱ its leading minor of order |
| 755 | ϱ. The Gram determinant of `framePair γ` is `(-1) ^ 𝔰.n` times `frameDisc N Z` = |det |
| 756 | Z|² − N²|D_ϱ|². -/ |
| 757 | theorem det_gram_framePair (N : R) (hN : star N = N) (γ : (𝔰.middleGram N).G) : |
| 758 | ((framePair γ)ᴴ * (𝔰.middleGram N).splitGram * framePair γ).det = |
| 759 | (-1) ^ 𝔰.n * frameDisc N ((𝔰.middleGram N).frameGram γ) := by |
| 760 | rw [gram_framePair N hN, det_fromBlocks_single₁₁_single₂₂, |
| 761 | det_conjTranspose, ← conjTranspose_submatrix, det_conjTranspose, neg_mul_neg, ← pow_two] |
| 762 | rfl |
| 763 | |
| 764 | /-! ### The map to pairs of middle coordinates, and the link -/ |
| 765 | |
| 766 | /-- The matrix of the map t ↦ ([t], [γ⁻¹t]) from the space to two copies of X₀⊕Ez, where [·] takes |
| 767 | the middle coordinates. -/ |
| 768 | def linkMatrix : Matrix (𝔰.MiddleIndex ⊕ 𝔰.MiddleIndex) 𝔰.BesselIndex R := |
| 769 | let m (x : T.G) : Matrix 𝔰.MiddleIndex 𝔰.BesselIndex R := x.val.val.toRows₂.toRows₁ |
| 770 | (m 1).fromRows (m γ⁻¹) |
| 771 | |
| 772 | /-- The link of `γ`. Let `X` be the span of `e₁, …, e_ϱ`. A vector is orthogonal to `X` if its last |
| 773 | block of coordinates vanishes, and then its middle block is its class in `X^⊥/X`. The link is the |
| 774 | module of the pairs (class of `t`, class of `γ⁻¹ t`) for `t` orthogonal to `X` and to `γ X`. A pair |
| 775 | is written as one function on `𝔰.MiddleIndex ⊕ 𝔰.MiddleIndex`. -/ |
| 776 | def link : Submodule R (𝔰.MiddleIndex ⊕ 𝔰.MiddleIndex → R) := |
| 777 | ((isotropicFramePair γ)ᴴ * T.splitGram).mulVecLin.ker.map (linkMatrix γ).mulVecLin |
| 778 | |
| 779 | end LinkDefs |
| 780 | |
| 781 | /-! |
| 782 | ## Bessel systems: cut pairs, Schur bounds and local bounds |
| 783 | |
| 784 | * `New.HasLocalBounds`: local bounds, a system of forms (`New.SieveSystem`) whose top form comes |
| 785 | from `New.besselOrbitalIntegral`. |
| 786 | -/ |
| 787 | |
| 788 | section BesselSystem |
| 789 | |
| 790 | open MeasureTheory Matrix ComplexConjugate Real Fintype Set Norms.L2Operator Floors.FloorGroups |
| 791 | RealPlace |
| 792 | |
| 793 | variable (𝔰 : Shape) |
| 794 | |
| 795 | /-! ### Constants -/ |
| 796 | |
| 797 | /-- The constant c_G = vol U(k) · (2π^k/(k−1)!) / vol U(k+2ϱ+1), with the volumes `New.volU`. For |
| 798 | k ≥ 1 the middle factor is vol U(k)/vol U(k−1), so that c_G = vol U(k)² / (vol U(k+2ϱ+1) · vol |
| 799 | U(k−1)). -/ |
| 800 | def Shape.openCellConst : ℝ := volU 𝔰.k / volU 𝔰.r * sphereDensity 𝔰.k 1 |
| 801 | |
| 802 | /-- The constant c_G = `𝔰.openCellConst` is positive. -/ |
| 803 | lemma Shape.openCellConst_pos (𝔰 : Shape) : 0 < 𝔰.openCellConst := by |
| 804 | refine mul_pos (div_pos (volU_pos _) (volU_pos _)) ?_ |
| 805 | rw [sphereDensity] |
| 806 | positivity |
| 807 | |
| 808 | /-- The constant Θ = π^{(2ϱ+1)k}·vol U(k)/vol U(r), with k = |κ| and r the rank of G₁. -/ |
| 809 | def Shape.scaledVolumeRatio : ℝ := volU 𝔰.k / volU 𝔰.r * π ^ ((2 * 𝔰.ϱ + 1) * 𝔰.k) |
| 810 | |
| 811 | variable {𝔰} (y : 𝔰.G₁) {I : Type} [Fintype I] [DecidableEq I] (W : 𝔰.G₁ → EuclideanSpace ℂ I) |
| 812 | |
| 813 | /-! ### The scaled length and the bounds at a real place -/ |
| 814 | |
| 815 | /-- The length `besselLength y` in units of `b ^ (6 n)`, and at least one; here n = ϱ + 1. -/ |
| 816 | def scaledBesselLength (y : 𝔰.G₁) (b : ℝ) : ℝ := max 1 (besselLength y / b ^ (6 * 𝔰.n)) |
| 817 | |
| 818 | /-- The scaled length `scaledBesselLength y b` is at least one. -/ |
| 819 | lemma one_le_scaledBesselLength (y : 𝔰.G₁) (b : ℝ) : 1 ≤ scaledBesselLength y b := le_max_left _ _ |
| 820 | |
| 821 | /-- If `2 ≤ b` and the length `besselLength y` exceeds half of `b ^ (6 n + 2)`, with n = ϱ + 1, then |
| 822 | the scaled length `max 1 (besselLength y / b ^ (6 n))` is at least `b`. -/ |
| 823 | lemma le_scaledBesselLength {y : 𝔰.G₁} {b : ℝ} (hb : 2 ≤ b) |
| 824 | (h_large : b ^ (6 * 𝔰.n + 2) / 2 < besselLength y) : b ≤ scaledBesselLength y b := by |
| 825 | refine le_max_of_le_right ((le_div_iff₀ (by positivity)).2 (le_trans ?_ h_large.le)) |
| 826 | calc b * b ^ (6 * 𝔰.n) = b * b ^ (6 * 𝔰.n) * 2 / 2 := by ring |
| 827 | _ ≤ b * b ^ (6 * 𝔰.n) * b / 2 := by gcongr |
| 828 | _ = b ^ (6 * 𝔰.n + 2) / 2 := by ring |
| 829 | |
| 830 | /-- The condition that the length `New.besselLength` of y is at most b^(6(ϱ+1)+2). -/ |
| 831 | abbrev InCut (y : 𝔰.G₁) (b : ℝ) : Prop := besselLength y ≤ b ^ (6 * 𝔰.n + 2) |
| 832 | |
| 833 | /-- For a (ϱ+1)×(ϱ+1) complex matrix Z, the real number 𝗀(Z) = |det Z|² − |D_ϱ|², D_ϱ the |
| 834 | leading principal minor of order ϱ. -/ |
| 835 | def RealPlace.gramDiscReal (Z : 𝔰.FrameMatrix) : ℝ := (frameDisc 1 Z).re |
| 836 | |
| 837 | /-- The number (ρ^(9n)/𝗀)^(10⁵n⁴)·d²/(deg·c_G·(𝗀/2)^(k−1)), with n = ϱ+1, k = |κ|, |
| 838 | c_G = `New.Shape.openCellConst` and 𝗀 = `New.RealPlace.gramDiscReal (New.realFrameGram y)`, taken |
| 839 | at the matrix of the products h(f_a, y f_b) of the frame with its image under y. It bounds a mass in |
| 840 | `New.BesselSystem.IsOpenCellBound`, where deg is the degree of a Bessel system, d the dimension of |
| 841 | its value space and ρ a bound on the lengths of frame vectors. -/ |
| 842 | def pairingBoundSq (y : 𝔰.G₁) (deg ρ d : ℝ) : ℝ := |
| 843 | (ρ ^ (9 * 𝔰.n) / gramDiscReal (realFrameGram y)) ^ (10 ^ 5 * 𝔰.n ^ 4) * |
| 844 | (d ^ 2 / (deg * 𝔰.openCellConst * (gramDiscReal (realFrameGram y) / 2) ^ (𝔰.k - 1))) |
| 845 | |
| 846 | /-- The tensor J(γ) = ∫ W(y) ⊗ W(γ⁻¹y)^* dμ(y), with coordinates ∫ W_i(y) conj(W_j(γ⁻¹y)) dμ(y), |
| 847 | for a vector-valued function W on a group G. -/ |
| 848 | def besselOrbitalIntegral {G I : Type*} [Group G] [MeasurableSpace G] (μ : Measure G) |
| 849 | (W : G → EuclideanSpace ℂ I) (γ : G) : |
| 850 | EuclideanSpace ℂ (I × I) := |
| 851 | WithLp.toLp 2 fun x ↦ ∫ y : G, W y x.1 * conj (W (γ⁻¹ * y) x.2) ∂μ |
| 852 | |
| 853 | /-- Schur's bound: for every integrable φ on G₁, the function γ ↦ ∫ φ(y)W(γy) dy has squared L² |
| 854 | norm on 𝖴∖G₁ (for the measure `New.besselQuotMeasure`) at most D·∫|φ|². -/ |
| 855 | def SchurLe (W : 𝔰.G₁ → EuclideanSpace ℂ I) (D : ENNReal) : Prop := |
| 856 | ∀ φ : 𝔰.G₁ → ℂ, Integrable φ → |
| 857 | ∫⁻ γ : 𝔰.G₁, ‖∫ y : 𝔰.G₁, φ y • W (γ * y)‖ₑ ^ 2 ∂besselQuotMeasure ≤ D * ∫⁻ y : 𝔰.G₁, ‖φ y‖ₑ ^ 2 |
| 858 | |
| 859 | /-- There is a family `V w` of continuous vector-valued functions on `G₁`, `w` a word in pairs of |
| 860 | indices, with `V [] = W`, such that (a) each `V w` is a Bessel function of type `rep`: it is |
| 861 | bounded and transforms on the left by a fixed character under 𝖴 and by `rep` under U(κ); (b) |
| 862 | the `V ((a, b) :: w)` are the coefficients of the right derivative of `V w`: if a curve has |
| 863 | `γ' t = γ t * X`, then `(V w ∘ γ)' t = ∑ a b, X a b • V ((a, b) :: w) (γ t)`; (c) if `w` has length |
| 864 | at most `2 (ϱ + 1) ^ 2`, then `V w` satisfies `New.SchurLe` with constant |
| 865 | `B ^ (2 * w.length) * D`. -/ |
| 866 | def RealPlace.HasSchurBound (W : 𝔰.G₁ → EuclideanSpace ℂ I) |
| 867 | (rep : U (1 : Matrix 𝔰.κ 𝔰.κ ℂ) →* unitaryGroup I ℂ) (B : ℝ) (D : ENNReal) : Prop := |
| 868 | ∃ V : List (𝔰.BesselIndex × 𝔰.BesselIndex) → C(𝔰.G₁, EuclideanSpace ℂ I), |
| 869 | W = V [] ∧ |
| 870 | ∀ w : List (𝔰.BesselIndex × 𝔰.BesselIndex), |
| 871 | -- (a) `V w` is a Bessel function |
| 872 | IsBesselFunction rep (V w) ∧ |
| 873 | -- (b) the chain rule along a curve `γ` with logarithmic derivative `X` at `t` |
| 874 | (∀ (γ : ℝ → 𝔰.G₁) (X : Matrix 𝔰.BesselIndex 𝔰.BesselIndex ℂ) (t : ℝ), |
| 875 | HasDerivAt (fun s : ℝ ↦ (γ s).val.val) (γ t * X) t → |
| 876 | HasDerivAt (V w ∘ γ) |
| 877 | (∑ a : 𝔰.BesselIndex, ∑ b : 𝔰.BesselIndex, X a b • V ((a, b) :: w) (γ t)) t) ∧ |
| 878 | -- (c) Schur's bound for short words, at the price of `B ^ 2` for each letter |
| 879 | (w.length ≤ 2 * 𝔰.n ^ 2 → SchurLe (V w) (ENNReal.ofReal (B ^ (2 * w.length)) * D)) |
| 880 | |
| 881 | /-- The tensor J(w_p y) of `New.besselOrbitalIntegral` for W, times |
| 882 | √c_G · (|p_ϱ|² − 1)^((k−1)/2) · |I|⁻¹ · ∏_{a<ϱ} |p_a|^(k+1+2(ϱ−a−1)), where k = |κ| and |
| 883 | c_G = `New.Shape.openCellConst`. The Weyl element w_p = `weylElem ϱ p` maps e_a to p_a e*_a and e*_a |
| 884 | to e_a/p̄_a for a < ϱ, and fixes the other basis vectors. -/ |
| 885 | def normalizedOrbitalIntegral (p : ℕ → ℂˣ) : EuclideanSpace ℂ (I × I) := |
| 886 | (√𝔰.openCellConst * √(‖(p 𝔰.ϱ).val‖ ^ 2 - 1) ^ (𝔰.k - 1) / card I * |
| 887 | ∏ a ∈ Finset.range 𝔰.ϱ, ‖(p a).val‖ ^ (𝔰.k + 1 + 2 * (𝔰.ϱ - (a + 1)))) • |
| 888 | besselOrbitalIntegral volume W (weylElem 𝔰.ϱ p * y) |
| 889 | |
| 890 | /-- Local bounds for given forms J_i(p, q) on tuples of nonzero complex numbers, with n = ϱ + 1 and |
| 891 | k = |κ|: (a) J is a system `New.SieveSystem`, in which each J_i (i < n) is the integral of J_(i+1) |
| 892 | over a common entry and the integrals twisted by the character e^(c − c̄) are bounded, with |
| 893 | |J_0| ≤ (1 + b^(−10))/deg, weights `New.headWeight` with exponent n⁶ that vanish unless the products |
| 894 | of the first entries have modulus at most b^(60n²), and decay Θ b^(2000n⁹) ℓ_{k−n⁷}(1/|ξ|), where |
| 895 | Θ = `New.Shape.scaledVolumeRatio` and ℓ_j(r) = r^j min(1, r)⁶ (`New.dampedPower`); (b) if σ fixes |
| 896 | the hyperbolic basis vectors (σ in `floorGroup ϱ`) and the last entries p_ϱ, q_ϱ both equal h(z, |
| 897 | σz), then J_n(p, q) is the inner product of the tensors `New.normalizedOrbitalIntegral` of W and σ |
| 898 | at p and at q. -/ |
| 899 | def HasLocalBounds (b : ℝ) (W : 𝔰.G₁ → EuclideanSpace ℂ I) (deg : ℝ) |
| 900 | (J : ℕ → (ℕ → ℂˣ) → (ℕ → ℂˣ) → ℂ) : Prop := |
| 901 | -- (a) `J` is a system over `ℂ` with the character `wave` and these bounds |
| 902 | SieveSystem unitOrOne (fun z ↦ z⁻¹.val) 𝔰.ϱ J wave ((1 + b⁻¹ ^ 10) / deg) |
| 903 | (headWeight (b ^ (60 * 𝔰.n ^ 2)) (𝔰.n ^ 6)) |
| 904 | (fun ξ ↦ 𝔰.scaledVolumeRatio * b ^ (2000 * 𝔰.n ^ 9) * dampedPower (𝔰.k - 𝔰.n ^ 7) ‖ξ‖⁻¹) ∧ |
| 905 | -- (b) its top form is an inner product of values of `normalizedOrbitalIntegral σ`, if both last |
| 906 | -- entries are `h(z, σ z)` |
| 907 | ∀ σ ∈ floorGroup 𝔰.ϱ, ∀ p q : ℕ → ℂˣ, |
| 908 | realFrameGram σ 𝔰.top 𝔰.top = p 𝔰.ϱ → |
| 909 | q 𝔰.ϱ = p 𝔰.ϱ → |
| 910 | J 𝔰.n p q = inner ℂ (normalizedOrbitalIntegral σ W p) (normalizedOrbitalIntegral σ W q) |
| 911 | |
| 912 | /-- The two functions of a Bessel system: the Bessel function W (`full`) and its cut W♭ (`cut`). -/ |
| 913 | inductive FullOrCut |
| 914 | /-- The Bessel function W itself. -/ |
| 915 | | full |
| 916 | /-- Its cut W♭. -/ |
| 917 | | cut |
| 918 | |
| 919 | /-- The family that is `W` on the full side and `W'` on the cut side. -/ |
| 920 | abbrev FullOrCut.select {α : Type*} (W W' : α) : FullOrCut → α |
| 921 | | .full => W |
| 922 | | .cut => W' |
| 923 | |
| 924 | /-- `A` bounds the norms of both functions `W t` times a power, growing with `f`, of their scaled |
| 925 | length; the number `a` bounds `A`; and `a` times the integral of `A` over 𝖴∖G₁ is at most |
| 926 | `b ^ (400 r ^ 2)` times the dimension. Here r is the rank of G₁. -/ |
| 927 | structure IsDecayMajorant (b : ℝ) (f : ℕ) (W : FullOrCut → C(𝔰.G₁, EuclideanSpace ℂ I)) |
| 928 | (A : 𝔰.G₁ → ENNReal) (a : ENNReal) : Prop where |
| 929 | /-- The majorant is measurable. -/ |
| 930 | measurable : Measurable A |
| 931 | /-- The majorant is left invariant under the Bessel subgroup. -/ |
| 932 | fixesLeft : besselS.FixesLeft A |
| 933 | /-- `‖W t y‖` times the power `3 r ^ 3 f` of the scaled length of `y` is at most `A y`. -/ |
| 934 | pow_mul_enorm_le (t : FullOrCut) (y : 𝔰.G₁) : |
| 935 | .ofReal (scaledBesselLength y b ^ (3 * 𝔰.r ^ 3 * f)) * ‖W t y‖ₑ ≤ A y |
| 936 | /-- The majorant is bounded by `a`. -/ |
| 937 | le_bound (y : 𝔰.G₁) : A y ≤ a |
| 938 | /-- The bound is finite. -/ |
| 939 | bound_ne_top : a ≠ ⊤ |
| 940 | /-- The bound times the integral of the majorant over 𝖴∖G₁ is at most `b ^ (400 r ^ 2)` times |
| 941 | the dimension. -/ |
| 942 | bound_mul_lintegral_le : |
| 943 | a * ∫⁻ y : 𝔰.G₁, A y ∂besselQuotMeasure ≤ .ofReal (b ^ (400 * 𝔰.r ^ 2)) * card I |
| 944 | |
| 945 | /-- A normalised Bessel function and its cut, for the type `rep`: they differ only where the length |
| 946 | exceeds half of `b ^ (6 n + 2)`, are close in L², and decay in the length at a rate given by `f`. |
| 947 | Here n = ϱ + 1 and r is the rank of G₁. -/ |
| 948 | structure IsCutPair (b : ℝ) (f : ℕ) (rep : U (1 : Matrix 𝔰.κ 𝔰.κ ℂ) →* unitaryGroup I ℂ) |
| 949 | (W : FullOrCut → C(𝔰.G₁, EuclideanSpace ℂ I)) : Prop where |
| 950 | /-- W and W♭ are Bessel functions. -/ |
| 951 | isBesselFunction (t : FullOrCut) : IsBesselFunction rep (W t) |
| 952 | /-- W is integrable on 𝖴∖G₁. -/ |
| 953 | integrable : Integrable (W .full) besselQuotMeasure |
| 954 | /-- The squared L²(𝖴∖G₁) norm of W is the dimension of the value space. -/ |
| 955 | lintegral_sq_full_eq : ∫⁻ y : 𝔰.G₁, ‖W .full y‖ₑ ^ 2 ∂besselQuotMeasure = card I |
| 956 | /-- The squared L²(𝖴∖G₁) norm of W♭ is at most that dimension. -/ |
| 957 | lintegral_sq_cut_le : ∫⁻ y : 𝔰.G₁, ‖W .cut y‖ₑ ^ 2 ∂besselQuotMeasure ≤ card I |
| 958 | /-- W♭ vanishes off `InCut`. -/ |
| 959 | inCut_of_ne_zero (y : 𝔰.G₁) : W .cut y ≠ 0 → InCut y b |
| 960 | /-- The squared L²(𝖴∖G₁) distance of W♭ from W is at most `b ^ (-2 r ^ 3 f)` times the |
| 961 | dimension. -/ |
| 962 | lintegral_sq_sub_le : ∫⁻ y : 𝔰.G₁, ‖W .cut y - W .full y‖ₑ ^ 2 ∂besselQuotMeasure ≤ |
| 963 | .ofReal (b⁻¹ ^ (𝔰.r ^ 3 * f)) ^ 2 * card I |
| 964 | /-- The cut changes W only where the length exceeds half the radius of `InCut`. -/ |
| 965 | lt_besselLength_of_ne (y : 𝔰.G₁) : |
| 966 | W .cut y ≠ W .full y → b ^ (6 * 𝔰.n + 2) / 2 < besselLength y |
| 967 | /-- W and W♭ decay in the length, below a common integrable majorant. -/ |
| 968 | exists_majorant : ∃ (A : 𝔰.G₁ → ENNReal) (a : ENNReal), IsDecayMajorant b f W A a |
| 969 | |
| 970 | variable (𝔰) |
| 971 | |
| 972 | /-! ### Bessel systems -/ |
| 973 | |
| 974 | /-- A Bessel system: two continuous functions W (full) and W♭ (cut), given by the field `besselFn`, |
| 975 | from G₁ to π = ℂ^Index, where `Index` is a field, Bessel functions of an irreducible type rep. W |
| 976 | obeys the Schur bounds; W♭ has bounded support modulo the Bessel subgroup `besselS` and local |
| 977 | bounds; together they form a cut pair; and b is at least 8r. The size parameter b sets the radius of |
| 978 | the cut and the constants; f sets the rate of decay in `New.IsCutPair`; r is the rank of G₁. -/ |
| 979 | structure BesselSystem (b : ℝ) (f : ℕ) where |
| 980 | /-- The index set of a basis of the value space π. -/ |
| 981 | Index : Type |
| 982 | /-- π is finite-dimensional. -/ |
| 983 | [fintype : Fintype Index] |
| 984 | /-- Equality of indices is decidable. -/ |
| 985 | [decEq : DecidableEq Index] |
| 986 | /-- π is not zero. -/ |
| 987 | [nonempty : Nonempty Index] |
| 988 | /-- The Bessel function W (`.full`) and its cut W♭ (`.cut`), from G₁ to π. -/ |
| 989 | besselFn : FullOrCut → C(𝔰.G₁, EuclideanSpace ℂ Index) |
| 990 | /-- The degree; its inverse scales the constant in `New.RealPlace.HasSchurBound` and the bound of |
| 991 | J_0 in `New.HasLocalBounds`. -/ |
| 992 | deg : ℝ |
| 993 | /-- The degree is positive. -/ |
| 994 | deg_pos : 0 < deg |
| 995 | /-- The type of the Bessel functions W and W♭. -/ |
| 996 | rep : U (1 : Matrix 𝔰.κ 𝔰.κ ℂ) →* unitaryGroup Index ℂ |
| 997 | /-- W and W♭ form a cut pair: L² bounds, the support of W♭ and decay below a common majorant. -/ |
| 998 | isCutPair : IsCutPair b f rep besselFn |
| 999 | /-- Every matrix that commutes with all rep(h) is scalar. -/ |
| 1000 | irreducible (M : Matrix Index Index ℂ) : |
| 1001 | (∀ h : U (1 : Matrix 𝔰.κ 𝔰.κ ℂ), Commute M (rep h).val) → M ∈ range (scalar Index) |
| 1002 | /-- For every P ≥ b^5, W satisfies `New.RealPlace.HasSchurBound` with constants P and |
| 1003 | |Index|/deg. -/ |
| 1004 | hasSchurBound : ∀ P ≥ b ^ 5, HasSchurBound (besselFn FullOrCut.full) rep P |
| 1005 | (ENNReal.ofReal deg⁻¹ * card Index) |
| 1006 | /-- The parameter b is at least 8r, with r the rank of G₁. -/ |
| 1007 | eight_mul_rank_le : 8 * 𝔰.r ≤ b |
| 1008 | /-- The forms J of the local bounds of W♭. -/ |
| 1009 | bandLimit : ℕ → (ℕ → ℂˣ) → (ℕ → ℂˣ) → ℂ |
| 1010 | /-- W♭ has local bounds. -/ |
| 1011 | hasLocalBounds : HasLocalBounds b (besselFn .cut) deg bandLimit |
| 1012 | |
| 1013 | attribute [instance] BesselSystem.fintype BesselSystem.decEq BesselSystem.nonempty |
| 1014 | |
| 1015 | end BesselSystem |
| 1016 | |
| 1017 | end New |
| 1018 | |
| 1019 | end |