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

| 1 | module |
| 2 | |
| 3 | import Mathlib.Algebra.Order.Star.Int |
| 4 | import Mathlib.Tactic.Monotonicity.Lemmas |
| 5 | import TauCeti.MeasureTheory.Integral.Pi |
| 6 | import TauCeti.MeasureTheory.Measure.Haar.Matrix.Complex |
| 7 | import TauCeti.Topology.Algebra.Group.Units |
| 8 | import TauCeti.Topology.Instances.Matrix |
| 9 | public import New.Spanning.RemainingTerms.ColumnLattice |
| 10 | public import New.Spanning.RemainingTerms.SchurTest |
| 11 | public import New.Spanning.RemainingTerms.OrbitSize |
| 12 | import Lib.Cohomology.Etale.Basic |
| 13 | import Lib.General.Analysis.HolomorphicIntegrals |
| 14 | import New.Spanning.RemainingTerms.FrameParts |
| 15 | import New.Spanning.RemainingTerms.LinkLattice |
| 16 | import New.Spanning.Unfolding.AmplitudeSums |
| 17 | import New.Spanning.Unfolding.Packing |
| 18 | import New.Spanning.Unfolding.ReducedPoints |
| 19 | |
| 20 | /-! |
| 21 | # Schur's test for one orbit |
| 22 | |
| 23 | A term is a rational point `γ` of the unitary group with |
| 24 | `S.translateByClassReps c c' γ = h_c⁻¹ γ h_c'` integral. Its orbit is the double coset of `γ` under |
| 25 | the groups `New.Filling.classUnipotent₀` of unipotent elements of level `M = S.M` that fix the |
| 26 | frame. The amplitude majorants of the terms of an orbit are summed by Schur's test: the mean of the |
| 27 | sum of the weights over the orbit is reduced to a sum over a lattice, and then to the integral of a |
| 28 | kernel divided by the covolume of the lattice. |
| 29 | |
| 30 | Throughout, `Λ` is the lattice of the class `c`, `A` is the isotropic space spanned by `e₁, …, e_ϱ`, |
| 31 | and `X₀` is the positive definite part of dimension `k`. For a term of cell rank `j` |
| 32 | (`New.Filling.HasCellRank`) put `i = min ϱ j`. The unit frame at an infinite place is the frame |
| 33 | rescaled by `New.Filling.basisScale`. |
| 34 | |
| 35 | Notions from other files: |
| 36 | * `S.frameProducts γ`: the matrix of products of the frame `e₁, …, e_ϱ, z` with its image by `γ`. |
| 37 | * `S.HasCellRank j γ`: in `γ` a norm-one pair occurs from `j`, its leading minor of order `j` is |
| 38 | nonzero, and `S.termDisc γ` is nonzero exactly when `j = ϱ + 1`. |
| 39 | * `S.schurWeight c' γ i y`: the boxed cutoff of `c'` at `γ⁻¹ y` times the product over the places of |
| 40 | the powers `-(k + i)` of the ratio of volumes `volumeRatio`. |
| 41 | * `S.tailScale`: the number `α = b ^ (k f / 4)`, where `f` is the number of infinite places. |
| 42 | |
| 43 | ## Main definitions and results |
| 44 | |
| 45 | * `New.Filling.tsum_orbit_le_of_isLatticeTranslate`: the frames of an orbit lie in at most |
| 46 | `isotropicRowsIndex ^ k` cosets of a lattice. |
| 47 | * `New.Filling.exists_tsum_schurWeight_le`: from cosets to the lattice. |
| 48 | * `New.Filling.tsum_schurIntegral_le`: from the lattice to an integral. |
| 49 | * `New.Filling.sq_tsum_amplitudeMajorant_doubleCoset_le`, |
| 50 | `New.Filling.tsum_amplitudeMajorant_orbit_le`: the test, and its form as a bound by |
| 51 | `New.Filling.orbitBound`. |
| 52 | -/ |
| 53 | |
| 54 | @[expose] public section |
| 55 | |
| 56 | namespace New.Filling |
| 57 | |
| 58 | open MeasureTheory Matrix Fintype RealPlace ENNReal Real Pointwise Fin |
| 59 | DoubleCoset AddSubgroup Finset LinearMap |
| 60 | open NumberField (InfinitePlace) |
| 61 | |
| 62 | variable {E : Type} [Field E] [CMType E] {𝔰 : Shape} {S : Filling E 𝔰} |
| 63 | [S.IsAdmissible] {j : Fin (𝔰.ϱ + 2)} {c c' : S.Classes} {s : S.ResidueGL} {γ : S.G E} |
| 64 | |
| 65 | omit [S.IsAdmissible] in |
| 66 | /-- The terms of an orbit have the same cell rank: if `δ` lies in the double coset of `γ` under the |
| 67 | unipotent groups `classUnipotent₀` of `c` and `c'`, and `γ` has cell rank `j`, then so has `δ`. -/ |
| 68 | lemma HasCellRank.of_mem_doubleCoset {δ : S.G E} |
| 69 | (hδ : δ ∈ doubleCoset γ (S.classUnipotent₀ c) (S.classUnipotent₀ c')) |
| 70 | (h_rank : S.HasCellRank j γ) : S.HasCellRank j δ := by |
| 71 | obtain ⟨u, ⟨-, hu_bessel, -⟩, x, ⟨-, hx_bessel, -⟩, rfl⟩ := mem_doubleCoset.1 hδ |
| 72 | have h_stable : S.HasCellRank j (u⁻¹⁻¹ * γ * x) ↔ S.HasCellRank j γ := |
| 73 | isStable_hasCellRank j u⁻¹ (inv_mem hu_bessel) x hx_bessel γ |
| 74 | rw [inv_inv] at h_stable |
| 75 | exact h_stable.2 h_rank |
| 76 | |
| 77 | omit [S.IsAdmissible] in |
| 78 | /-- If `δ` lies in the orbit of `γ`, the double coset under the groups `classUnipotent₀` of the |
| 79 | classes `c` and `c'`, then `δ` and `γ` have the same matrix of products of the frame with its |
| 80 | image. -/ |
| 81 | lemma frameProducts_eq_of_mem_doubleCoset {δ : S.G E} |
| 82 | (hδ : δ ∈ doubleCoset γ (S.classUnipotent₀ c) (S.classUnipotent₀ c')) : |
| 83 | S.frameProducts δ = S.frameProducts γ := by |
| 84 | obtain ⟨u, ⟨-, hu_frame⟩, x, ⟨-, hx_frame⟩, rfl⟩ := mem_doubleCoset.1 hδ |
| 85 | obtain ⟨hu_bessel, hu_matrix⟩ := mem_besselU0_iff.1 (inv_mem hu_frame) |
| 86 | obtain ⟨hx_bessel, hx_matrix⟩ := mem_besselU0_iff.1 hx_frame |
| 87 | have h_gram : S.frameProducts (u⁻¹⁻¹ * γ * x) = |
| 88 | (frameMatrix u⁻¹)ᴴ * S.frameProducts γ * frameMatrix x := |
| 89 | frameGram_inv_mul_mul hu_bessel hx_bessel |
| 90 | simpa [hu_matrix, hx_matrix] using h_gram |
| 91 | |
| 92 | omit [S.IsAdmissible] in |
| 93 | /-- The terms of an orbit lie over the same block `(c, s, c')`: if `γ ∈ S.termsOver c s c'` (its |
| 94 | translate by the class representatives is integral with residue `s`), then so is every `δ` in the |
| 95 | double coset of `γ` under `classUnipotent₀ c` and `classUnipotent₀ c'`. -/ |
| 96 | lemma termsOver.of_mem_doubleCoset {δ : S.G E} |
| 97 | (hδ : δ ∈ doubleCoset γ (S.classUnipotent₀ c) (S.classUnipotent₀ c')) |
| 98 | (h_over : γ ∈ S.termsOver c s c') : δ ∈ S.termsOver c s c' := by |
| 99 | obtain ⟨u, ⟨⟨-, hu_over⟩, -⟩, x, ⟨⟨-, hx_over⟩, -⟩, rfl⟩ := mem_doubleCoset.1 hδ |
| 100 | simpa using termsOver.mul (termsOver.mul hu_over h_over) hx_over |
| 101 | |
| 102 | omit [S.IsAdmissible] in |
| 103 | /-- For `δ` in the orbit of `γ`, the conjugate of each row `i` of middle coordinates of the frame |
| 104 | moved by `translateByClassReps c c' δ` differs from that for `γ` by `M` times an `Ô`-combination of |
| 105 | the conjugates of the isotropic rows of the products (`frameGram`) of the frame with its image under |
| 106 | `translateByClassReps c c' γ`. -/ |
| 107 | lemma col_frameMiddle_sub_mem {δ : S.G E} |
| 108 | (hδ : δ ∈ doubleCoset γ (S.classUnipotent₀ c) (S.classUnipotent₀ c')) (i : 𝔰.MiddleIndex) : |
| 109 | (frameMiddle (S.translateByClassReps c c' δ) - frameMiddle (S.translateByClassReps c c' γ))ᴴ.col |
| 110 | i ∈ |
| 111 | S.ideleM • colLattice (Ô E) |
| 112 | (isotropicRows ((S.latticeMiddle (𝔸f E)).frameGram (S.translateByClassReps c c' γ)))ᴴ := by |
| 113 | -- Write `δ = u γ x`. The new frame is `u'` times the old one, where |
| 114 | -- `u' = translateByClassReps c c u` is `u` in the basis of the lattice, and `M⁻¹ (u' - 1)` is |
| 115 | -- integral. |
| 116 | obtain ⟨u, ⟨hu_over, hu_frame⟩, x, ⟨-, hx_frame⟩, rfl⟩ := mem_doubleCoset.1 hδ |
| 117 | let u' : Matrix 𝔰.BesselIndex 𝔰.BesselIndex (𝔸f E) := (S.translateByClassReps c c u).val.val |
| 118 | have h_frame : frameImage (S.translateByClassReps c c' (u * γ * x)).val.val = |
| 119 | frameImage (S.translateByClassReps c c u * S.translateByClassReps c c' γ).val.val := by |
| 120 | -- `↓`: these rules must act before the products are reassociated. |
| 121 | simp [↓frameImage_translateByClassReps, coe_translateByClassReps, classCoord, |
| 122 | ↓frameImage_mul_of_mem_besselU0 hx_frame, ↓frameImage_mul, Matrix.mul_assoc] |
| 123 | have h_int : IsIntMatrix (Ô E) (S.ideleM⁻¹ • (u' - 1)) := |
| 124 | (S.principalLevel_eq_unitaryLevel.le hu_over.2).2 |
| 125 | have h_star : star S.ideleM = S.ideleM := Units.ext (by simp [ideleM]) |
| 126 | -- The coefficients are the conjugates of row `i` of `M⁻¹ (u' - 1)` in the last block of columns; |
| 127 | -- off this block the row agrees with the identity, as `u'` is unipotent. |
| 128 | let row : Fin 𝔰.ϱ → 𝔸f E := fun a ↦ star ((S.ideleM⁻¹ • (u' - 1)) (.inr (.inl i)) (eStar a)) |
| 129 | refine ⟨_, ⟨row, fun a ↦ star_mem_Ô (h_int (.inr (.inl i)) (eStar a)), rfl⟩, ?_⟩ |
| 130 | let g : Matrix 𝔰.BesselIndex 𝔰.BesselIndex (𝔸f E) := (S.translateByClassReps c c' γ).val.val |
| 131 | have h_unipotent (b : 𝔰.BesselIndex) (hb : ∀ a : Fin 𝔰.ϱ, b ≠ eStar a) : |
| 132 | u' (.inr (.inl i)) b = if .inr (.inl i) = b then 1 else 0 := |
| 133 | apply_inr_of_mem_besselU (hu_frame.1.translateByClassReps_mem_besselU c) (.inl i) b hb |
| 134 | -- The products of `e_a` with the frame of `g` are the coordinates of that frame along `e*_a`. |
| 135 | have h_diff (b : Fin (𝔰.ϱ + 1)) : (frameMiddle (u' * g) - frameMiddle g) i b = |
| 136 | ∑ a : Fin 𝔰.ϱ, u' (.inr (.inl i)) (eStar a) * |
| 137 | isotropicRows ((S.latticeMiddle (𝔸f E)).frameGram g) a b := by |
| 138 | simp [Matrix.mul_apply, frameGram, splitGram, h_unipotent, Matrix.one_apply] |
| 139 | rw [frameMiddle, h_frame] |
| 140 | funext b |
| 141 | change _ = star ((frameMiddle (u' * g) - frameMiddle g) i b) |
| 142 | rw [h_diff] |
| 143 | simp [row, g, mulVec_eq_sum, h_star, ← Units.smul_def, mul_comm] |
| 144 | |
| 145 | variable [HasPrimitiveRoot5040 E] |
| 146 | |
| 147 | section |
| 148 | |
| 149 | omit [HasPrimitiveRoot5040 E] [S.IsAdmissible] |
| 150 | /-- Two elements `δ`, `γ` of `S.G E` with the same matrix `frameProducts` have, at every infinite |
| 151 | place `v`, images `S.ratToInf δ v` and `S.ratToInf γ v` in `G₁` with the same matrix |
| 152 | `realFrameGram`. -/ |
| 153 | lemma realFrameGram_ratToInf_congr {δ : S.G E} (hδ : S.frameProducts δ = S.frameProducts γ) |
| 154 | {v : InfinitePlace E} : realFrameGram (S.ratToInf δ v) = realFrameGram (S.ratToInf γ v) := by |
| 155 | ext a b |
| 156 | simp [hδ] |
| 157 | |
| 158 | /-- If `δ` has the same matrix `frameProducts` as `γ` and `u ∈ besselU0` (a unipotent element of |
| 159 | `G₁` fixing each frame vector), then at every infinite place `v`, `u⁻¹ * S.ratToInf δ v` has the |
| 160 | same matrix `realFrameGram` as `S.ratToInf γ v`. -/ |
| 161 | lemma realFrameGram_inv_mul_ratToInf {u : 𝔰.G₁} (hu : u ∈ besselU0) {δ : S.G E} |
| 162 | (hδ : S.frameProducts δ = S.frameProducts γ) {v : InfinitePlace E} : |
| 163 | realFrameGram (u⁻¹ * S.ratToInf δ v) = realFrameGram (S.ratToInf γ v) := by |
| 164 | simp [← realFrameGram_ratToInf_congr hδ, realFrameGram_mul_of_mem_besselFixer, hu, |
| 165 | mem_besselFixer_of_mem_besselU0] |
| 166 | |
| 167 | /-- At the infinite place `v`, take the leading `j × j` minor of `realFrameGram (S.ratToInf γ v)`, |
| 168 | the matrix of products in the unit frame. Its modulus is |
| 169 | `(|realM v| ^ ∑_{a < j} (ϱ - a)) ^ 2 / N ^ j` times `‖Φ v (leadingMinor (frameProducts γ) j)‖`. So |
| 170 | each index `a < j` contributes the square of its scale `basisScale`, which is |
| 171 | `realM v ^ (ϱ - a) / √N`. -/ |
| 172 | lemma norm_det_submatrix_realFrameGram (v : InfinitePlace E) : |
| 173 | ‖((realFrameGram (S.ratToInf γ v)).submatrix (castLE j.is_le) (castLE j.is_le)).det‖ = |
| 174 | (|S.realM v| ^ ∑ a : Fin j, (𝔰.ϱ - a)) ^ 2 / S.N ^ j.val * |
| 175 | ‖Φ v (leadingMinor (S.frameProducts γ) j)‖ := by |
| 176 | rw [det_submatrix_realFrameGram_ratToInf, norm_mul, Complex.norm_real, Real.norm_eq_abs, |
| 177 | Finset.prod_div_distrib, abs_div, abs_prod] |
| 178 | simp [leadingMinor, prod_pow_eq_pow_sum, ← pow_mul, sum_mul, mul_comm 2] |
| 179 | |
| 180 | /-- If `γ` has cell rank `j`, the determinant of the products of `e₁, …, e_i, z` (`i = min ϱ j`) |
| 181 | with their images, in the unit frame at `v` (the matrix `subframeBlock`), has the modulus of the |
| 182 | rescaled leading minor of order `j` of `S.frameProducts γ`. -/ |
| 183 | lemma HasCellRank.norm_det_subframeBlock (h_rank : S.HasCellRank j γ) (v : InfinitePlace E) : |
| 184 | ‖(subframeBlock (min_le_left 𝔰.ϱ j) (realFrameGram (S.ratToInf γ v))).det‖ = |
| 185 | (|S.realM v| ^ ∑ a : Fin j, (𝔰.ϱ - a)) ^ 2 / S.N ^ j.val * |
| 186 | ‖Φ v (leadingMinor (S.frameProducts γ) j)‖ := by |
| 187 | have h_pair : NormOnePairOccursFrom j (S.ratToInf γ v) := h_rank.normOnePairOccursFrom.ratToInf v |
| 188 | rw [← norm_det_submatrix_realFrameGram] |
| 189 | exact RealPlace.norm_det_subframeBlock (min_le_left 𝔰.ϱ j) (hZ := rfl) h_pair j.is_le |
| 190 | (hij := rfl) |
| 191 | |
| 192 | omit [HasPrimitiveRoot5040 E] in |
| 193 | /-- A matrix product `P * M` with `P` integral has the conjugates of its rows in every `Ô`-module |
| 194 | that contains the conjugates of the rows of `M`. -/ |
| 195 | lemma col_conjTranspose_mul_mem {m m' n : Type} [Fintype m] |
| 196 | {M : Matrix m n (𝔸f E)} {P : Matrix m' m (𝔸f E)} (hP : IsIntMatrix (Ô E) P) |
| 197 | {K : Submodule (Ô E) (n → 𝔸f E)} (hM : ∀ r : m, Mᴴ.col r ∈ K) (i : m') : |
| 198 | (P * M)ᴴ.col i ∈ K := by |
| 199 | rw [conjTranspose_mul] |
| 200 | exact colLattice_le hM ⟨Pᴴ.col i, fun r ↦ hP.conjTranspose r i, rfl⟩ |
| 201 | |
| 202 | variable (S j) |
| 203 | |
| 204 | /-- The first `min ϱ j` indices of the isotropic vectors of the frame. -/ |
| 205 | abbrev initialIsotropicIndex : Fin (min 𝔰.ϱ j) ↪ Fin 𝔰.ϱ := castLEEmb (min_le_left 𝔰.ϱ j) |
| 206 | |
| 207 | /-- The diagonal matrix with entries `S.M / basisScale v (e_l)`, `l < min ϱ j`. It converts the |
| 208 | parameters of a shift, given in the rational frame, to the unit frame at the place `v`. -/ |
| 209 | noncomputable def shiftScaling (v : InfinitePlace E) : |
| 210 | Matrix (Fin (min 𝔰.ϱ j)) (Fin (min 𝔰.ϱ j)) ℂ := |
| 211 | diagonal fun l ↦ S.M / S.basisScale v (.inl (initialIsotropicIndex j l)) |
| 212 | |
| 213 | /-- The shift with parameter `x`: at each infinite place, the unipotent element with central |
| 214 | parameter `0` that acts on `X₀` as the product of the Eichler maps along `e₁, …, e_i`, |
| 215 | `i = min ϱ j`, with the parameters given by the rows of `(shiftScaling j v)ᴴ * x v`: the vectors |
| 216 | `x_l` multiplied by the conjugates of `S.M / basisScale v (e_l)`. -/ |
| 217 | noncomputable def eichlerShift (x : InfinitePlace E → Fin (min 𝔰.ϱ j) → 𝔰.κ → ℂ) |
| 218 | (v : InfinitePlace E) : 𝔰.G₁ := |
| 219 | unipotentOf (inclMatrix ℂ (initialIsotropicIndex j) * ((S.shiftScaling j v)ᴴ * of (x v)), 0) |
| 220 | |
| 221 | /-- The bound of `RealPlace.exists_majorant_volumeRatio_inv_pow` for the integral of the kernel at |
| 222 | the place `v`, times the Jacobian of the passage to the parameters of `eichlerShift`. -/ |
| 223 | noncomputable def kernelBound (γ : S.G E) (v : InfinitePlace E) : ℝ := |
| 224 | ‖(S.shiftScaling j v).det‖⁻¹ ^ (2 * 𝔰.k) * |
| 225 | ((2 * S.frameBoxRadius ^ 2) ^ ((min 𝔰.ϱ j + 1) * min 𝔰.ϱ j) * |
| 226 | (2 ^ (min 𝔰.ϱ j + 1) * (S.b ^ (6 * 𝔰.n + 2)) ^ (2 * (j - min 𝔰.ϱ j))) ^ 𝔰.k / |
| 227 | ‖(subframeBlock (min_le_left 𝔰.ϱ j) (realFrameGram (S.ratToInf γ v))).det‖ ^ |
| 228 | (𝔰.k + min 𝔰.ϱ j)) |
| 229 | |
| 230 | variable {S j} |
| 231 | |
| 232 | /-- The columns of `l` lie in `Λ ∩ X₀`, where `Λ` is the lattice of the class `c`, and modulo the |
| 233 | isotropic space the frame of `p` is that of `p₀` moved in `X₀` by `S.M • l` times the first |
| 234 | `min ϱ j` rows of the matrix of products of `γ`. -/ |
| 235 | def IsLatticeTranslate (c : S.Classes) (γ p₀ p : S.G E) (l : Matrix 𝔰.κ (Fin (min 𝔰.ϱ j)) E) : |
| 236 | Prop := |
| 237 | IsIntMatrix (Ô E) (S.classCoordX₀ c * finAdeleMatrix l) ∧ |
| 238 | (frameImage (p : Matrix 𝔰.BesselIndex 𝔰.BesselIndex E)).toRows₂ = |
| 239 | (frameImage (p₀ : Matrix 𝔰.BesselIndex 𝔰.BesselIndex E)).toRows₂ + |
| 240 | fromRows (fromRows (S.M • (l * (isotropicRows (S.frameProducts γ)).submatrix |
| 241 | (initialIsotropicIndex j) id)) 0) 0 |
| 242 | |
| 243 | @[fun_prop] |
| 244 | lemma measurable_eichlerShift : Measurable (S.eichlerShift j) := by |
| 245 | unfold eichlerShift |
| 246 | exact Continuous.measurable (by fun_prop) |
| 247 | |
| 248 | /-- At every place a shift `eichlerShift` is a unipotent element that fixes the frame. -/ |
| 249 | lemma eichlerShift_mem (x : InfinitePlace E → Fin (min 𝔰.ϱ j) → 𝔰.κ → ℂ) (v : InfinitePlace E) : |
| 250 | S.eichlerShift j x v ∈ besselU0 := |
| 251 | unipotentOf_mem_besselU0 _ |
| 252 | |
| 253 | /-- Let `p` be a lattice translate of `p₀` by `q`, for the lattice of the class `c` and the matrix |
| 254 | of products of `γ`. In the unit frame at the place `v`, the parts in `X₀` of the two frames |
| 255 | (`frameX₀Part`) differ by the conjugate transpose of the rescaled point `conjColumnsAtInfinity q` |
| 256 | times the first `min ϱ j` isotropic rows of products of `γ`. -/ |
| 257 | lemma IsLatticeTranslate.frameX₀Part_eq {p p₀ : S.G E} {q : Matrix 𝔰.κ (Fin (min 𝔰.ϱ j)) E} |
| 258 | (hq : IsLatticeTranslate c γ p₀ p q) (v : InfinitePlace E) : |
| 259 | frameX₀Part (S.ratToInf p v) = frameX₀Part (S.ratToInf p₀ v) + |
| 260 | ((S.shiftScaling j v)ᴴ * of (conjColumnsAtInfinity E 𝔰 (Fin (min 𝔰.ϱ j)) q v))ᴴ * |
| 261 | (isotropicRows (realFrameGram (S.ratToInf γ v))).submatrix (initialIsotropicIndex j) |
| 262 | id := by |
| 263 | ext a b |
| 264 | obtain ⟨-, hq_eq⟩ := hq |
| 265 | have h_entry : p.1.1 (𝔰.indexX₀ a) (𝔰.besselFrame b) = p₀.1.1 (𝔰.indexX₀ a) (𝔰.besselFrame b) + |
| 266 | S.M * ∑ l, q a l * S.frameProducts γ (initialIsotropicIndex j l).castSucc b := by |
| 267 | have h_translate_entry := congrFun₂ hq_eq (.inl (.inl a)) b |
| 268 | simpa [Matrix.mul_apply] using h_translate_entry |
| 269 | have h_term (l : Fin (min 𝔰.ϱ j)) : |
| 270 | S.M * (Φ v (q a l) * Φ v (S.frameProducts γ (initialIsotropicIndex j l).castSucc b)) * |
| 271 | S.basisScale v (𝔰.besselFrame b) = |
| 272 | Φ v (q a l) * (S.M / S.basisScale v (.inl (initialIsotropicIndex j l))) * |
| 273 | realFrameGram (S.ratToInf γ v) (initialIsotropicIndex j l).castSucc b := by |
| 274 | have h_scale : S.basisScale v (.inl (initialIsotropicIndex j l)) = |
| 275 | S.realM v ^ (𝔰.ϱ - initialIsotropicIndex j l) / √S.N := by simp [basisScale] |
| 276 | have h_sqrt : (S.N : ℂ) = √S.N * √S.N := by |
| 277 | rw [← Complex.ofReal_mul, mul_self_sqrt S.N.cast_nonneg, Complex.ofReal_natCast] |
| 278 | have h_ne : (√S.N : ℂ) ≠ 0 := by simp [Nat.Prime.ne_zero] |
| 279 | simp only [realFrameGram_ratToInf, basisScale_besselFrame, h_scale, val_castSucc] |
| 280 | push_cast |
| 281 | rw [h_sqrt] |
| 282 | field_simp |
| 283 | have h_one : S.basisScale v (𝔰.indexX₀ a) = 1 := by simp [basisScale] |
| 284 | rw [conjTranspose_mul, conjTranspose_conjTranspose, Matrix.add_apply, Matrix.mul_apply] |
| 285 | simp only [shiftScaling, mul_diagonal, conjTranspose_apply, of_apply, conjColumnsAtInfinity_apply, |
| 286 | star_star, submatrix_apply, id_eq, ← h_term] |
| 287 | simp [frameX₀Part, inclMatrix, Matrix.mul_apply, Matrix.one_apply, h_entry, add_mul, mul_sum, |
| 288 | sum_mul, h_one, -Nat.cast_mul] |
| 289 | |
| 290 | /-- **The shifted points.** Let `p` be a lattice translate of `p₀` by `q`, both with the matrix of |
| 291 | products `frameProducts γ`. Let `u` lie in `besselU0`, and let `s` be `eichlerShift j x v`. Then the |
| 292 | parts in `X₀` (`frameX₀Part`) of the frames of `(u s)⁻¹ p` and of `u⁻¹ p₀` at `v` differ by a |
| 293 | product. The first factor is the conjugate transpose of the point `conjColumnsAtInfinity q + x`, |
| 294 | rescaled by `shiftScaling j v`. The second factor is the first `min ϱ j` isotropic rows of products |
| 295 | of `γ`. -/ |
| 296 | lemma frameX₀Part_eichlerShift_inv_mul {p p₀ : S.G E} (hp : S.frameProducts p = S.frameProducts γ) |
| 297 | (hp₀ : S.frameProducts p₀ = S.frameProducts γ) {q : Matrix 𝔰.κ (Fin (min 𝔰.ϱ j)) E} |
| 298 | (hq : IsLatticeTranslate c γ p₀ p q) (v : InfinitePlace E) {u : 𝔰.G₁} (hu : u ∈ besselU0) |
| 299 | (x : InfinitePlace E → Fin (min 𝔰.ϱ j) → 𝔰.κ → ℂ) : |
| 300 | frameX₀Part ((u * S.eichlerShift j x v)⁻¹ * S.ratToInf p v) = |
| 301 | frameX₀Part (u⁻¹ * S.ratToInf p₀ v) + |
| 302 | ((S.shiftScaling j v)ᴴ * of ((conjColumnsAtInfinity E 𝔰 (Fin (min 𝔰.ϱ j)) q + x) v))ᴴ * |
| 303 | (isotropicRows (realFrameGram (S.ratToInf γ v))).submatrix (initialIsotropicIndex j) |
| 304 | id := by |
| 305 | obtain ⟨t, rfl⟩ : ∃ t : 𝔰.UnipotentParams, u = unipotentOf t := |
| 306 | mem_besselU0_iff_unipotentOf.1 hu |
| 307 | set Z : 𝔰.FrameMatrix := realFrameGram (S.ratToInf γ v) with hZ |
| 308 | have h_moved : frameX₀Part ((unipotentOf t * S.eichlerShift j x v)⁻¹ * S.ratToInf p v) = |
| 309 | frameX₀Part (S.ratToInf p v) + t.1ᴴ * isotropicRows Z + |
| 310 | ((S.shiftScaling j v)ᴴ * of (x v))ᴴ * (isotropicRows Z).submatrix (initialIsotropicIndex j) |
| 311 | id := by |
| 312 | rw [_root_.mul_inv_rev, mul_assoc, eichlerShift, frameX₀Part_unipotentOf_inv_mul, |
| 313 | realFrameGram_inv_mul_ratToInf hu hp, frameX₀Part_unipotentOf_inv_mul, |
| 314 | realFrameGram_ratToInf_congr hp, conjTranspose_mul (inclMatrix ℂ _), |
| 315 | Matrix.mul_assoc _ _ᴴ, conjTranspose_inclMatrix_mul] |
| 316 | have h_base : frameX₀Part ((unipotentOf t)⁻¹ * S.ratToInf p₀ v) = |
| 317 | frameX₀Part (S.ratToInf p₀ v) + t.1ᴴ * isotropicRows Z := by |
| 318 | rw [frameX₀Part_unipotentOf_inv_mul, realFrameGram_ratToInf_congr hp₀] |
| 319 | rw [h_moved, h_base, hq.frameX₀Part_eq, Pi.add_apply, ← of_add_of, Matrix.mul_add, |
| 320 | conjTranspose_add, Matrix.add_mul] |
| 321 | abel |
| 322 | |
| 323 | /-- Two terms with the same matrix of products differ, in the middle part of the frame, by vectors |
| 324 | of `X₀`: in the basis of the lattice of `c`, the difference is `S.classCoordX₀ c` times the |
| 325 | difference of the rational coordinates in `X₀`, taken as finite adeles. -/ |
| 326 | lemma frameMiddle_translateByClassReps_sub {p p' : S.G E} |
| 327 | (hZ : S.frameProducts p' = S.frameProducts p) : |
| 328 | frameMiddle (S.translateByClassReps c c' p') - frameMiddle (S.translateByClassReps c c' p) = |
| 329 | S.classCoordX₀ c * finAdeleMatrix |
| 330 | (frameMiddle (p' : Matrix 𝔰.BesselIndex 𝔰.BesselIndex E) - |
| 331 | frameMiddle (p : Matrix 𝔰.BesselIndex 𝔰.BesselIndex E)).toRows₁ := by |
| 332 | have hz_eq (b : Fin (𝔰.ϱ + 1)) : |
| 333 | (p' : Matrix 𝔰.BesselIndex 𝔰.BesselIndex E) 𝔰.z (𝔰.besselFrame b) = |
| 334 | (p : Matrix 𝔰.BesselIndex 𝔰.BesselIndex E) 𝔰.z (𝔰.besselFrame b) := by |
| 335 | simpa [frameGram, splitGram, middleGram, Matrix.mul_apply, Nat.Prime.ne_zero] using |
| 336 | congrFun₂ hZ 𝔰.top b |
| 337 | ext r b |
| 338 | simp [frameMiddle_translateByClassReps, hz_eq, Matrix.mul_apply, mul_sub] |
| 339 | |
| 340 | end |
| 341 | |
| 342 | omit [HasPrimitiveRoot5040 E] in |
| 343 | /-- If `γ` has cell rank `j`, the products of `e₁, …, e_i, z` (`i = min ϱ j`) with their images |
| 344 | form an invertible matrix at every infinite place. -/ |
| 345 | lemma HasCellRank.det_subframeBlock_ne_zero (h_rank : S.HasCellRank j γ) (v : InfinitePlace E) : |
| 346 | (subframeBlock (min_le_left 𝔰.ϱ j) (realFrameGram (S.ratToInf γ v))).det ≠ 0 := by |
| 347 | have hδ : 0 < ‖Φ v (leadingMinor (S.frameProducts γ) j)‖ := by |
| 348 | simpa using h_rank.leadingMinor_ne_zero |
| 349 | have hκ : 1 ≤ |S.realM v| := one_le_abs_realM v |
| 350 | have hN : 0 < S.N := S.N_prime.pos |
| 351 | rw [← norm_pos_iff, h_rank.norm_det_subframeBlock] |
| 352 | positivity |
| 353 | |
| 354 | omit [S.IsAdmissible] [HasPrimitiveRoot5040 E] in |
| 355 | /-- Let `γ` have cell rank `j` (`HasCellRank`), let `ξ` be the first `min ϱ j` isotropic rows of |
| 356 | `frameProducts γ`, and let `p₀`, `p` have the same matrix of products as `γ`. Suppose the middle |
| 357 | parts (`frameMiddle`) of the frames moved by `translateByClassReps c c' p` and |
| 358 | `translateByClassReps c c' p₀` differ row by row by `M` times `Ô`-linear combinations of the rows of |
| 359 | `ξ`, taken as finite adeles (`finAdeleMatrix`). Then `p` is a lattice translate of `p₀`. -/ |
| 360 | lemma HasCellRank.exists_isLatticeTranslate (h_rank : S.HasCellRank j γ) {p₀ p : S.G E} |
| 361 | (hZ₀ : S.frameProducts p₀ = S.frameProducts γ) (hZ : S.frameProducts p = S.frameProducts γ) |
| 362 | (h_rows : ∀ r : 𝔰.MiddleIndex, |
| 363 | (frameMiddle (S.translateByClassReps c c' p) - frameMiddle |
| 364 | (S.translateByClassReps c c' p₀))ᴴ.col r ∈ |
| 365 | S.ideleM • colLattice (Ô E) |
| 366 | (finAdeleMatrix ((isotropicRows (S.frameProducts γ)).submatrix (initialIsotropicIndex j) |
| 367 | id))ᴴ) : |
| 368 | ∃ l : Matrix 𝔰.κ (Fin (min 𝔰.ϱ j)) E, IsLatticeTranslate c γ p₀ p l := by |
| 369 | -- The rows of `ξ` are independent, so the adelic coefficients `W` come from a rational `l`. |
| 370 | set ξ : Matrix (Fin (min 𝔰.ϱ j)) (Fin (𝔰.ϱ + 1)) E := |
| 371 | (isotropicRows (S.frameProducts γ)).submatrix (initialIsotropicIndex j) id with hξ |
| 372 | let ξ' : Matrix (Fin (𝔰.ϱ + 1)) (Fin (min 𝔰.ϱ j)) E := |
| 373 | (paddedLeading j (S.frameProducts γ))⁻¹.submatrix id (castSucc ∘ initialIsotropicIndex j) |
| 374 | have h_inv : ξ * ξ' = 1 := by |
| 375 | ext a b |
| 376 | have ha : a.val < j.val := a.isLt.trans_le (min_le_right _ _) |
| 377 | simpa [hξ, ξ', paddedLeading, Matrix.mul_apply, ha, Matrix.one_apply, Fin.ext_iff] using |
| 378 | congrFun₂ h_rank.paddedLeading_mul_inv (initialIsotropicIndex j a).castSucc |
| 379 | (initialIsotropicIndex j b).castSucc |
| 380 | have h_eq : S.frameProducts p = S.frameProducts p₀ := hZ.trans hZ₀.symm |
| 381 | set x : Matrix 𝔰.κ (Fin (𝔰.ϱ + 1)) E := (frameMiddle p.1.1 - frameMiddle p₀.1.1).toRows₁ with hx |
| 382 | rw [frameMiddle_translateByClassReps_sub h_eq, ← colLattice_smul] at h_rows |
| 383 | obtain ⟨W, hW_int, hW⟩ := exists_isIntMatrix_mul_eq (colLattice_le h_rows) |
| 384 | have h_adelic : S.classCoordX₀ c * finAdeleMatrix x = (S.M : 𝔸f E) • (Wᴴ * finAdeleMatrix ξ) := by |
| 385 | rw [← conjTranspose_conjTranspose (S.classCoordX₀ c * finAdeleMatrix x), ← hW] |
| 386 | simp [Units.smul_def, ideleM_val] |
| 387 | let l : Matrix 𝔰.κ (Fin (min 𝔰.ϱ j)) E := (S.M : E)⁻¹ • (x * ξ') |
| 388 | have hl : S.classCoordX₀ c * finAdeleMatrix l = Wᴴ := by |
| 389 | have h_cancel : (((S.M : E)⁻¹ : E) : 𝔸f E) * (S.M : 𝔸f E) = 1 := by |
| 390 | simpa [Nat.Prime.ne_zero, -Nat.cast_mul] using |
| 391 | (map_mul (algebraMap E (𝔸f E)) (S.M : E)⁻¹ S.M).symm |
| 392 | rw [finAdeleMatrix_smul, finAdeleMatrix_mul, Matrix.mul_smul, ← Matrix.mul_assoc, h_adelic, |
| 393 | Matrix.smul_mul, Matrix.mul_assoc, ← finAdeleMatrix_mul, h_inv, smul_smul, h_cancel] |
| 394 | simp |
| 395 | have h_rational : x = S.M • (l * ξ) := by |
| 396 | -- `classCoordX₀ c` has a left inverse, so it is enough to compare coordinates. |
| 397 | have h_coords : S.classCoordX₀ c * finAdeleMatrix x = |
| 398 | S.classCoordX₀ c * finAdeleMatrix ((S.M : E) • (l * ξ)) := by |
| 399 | simp [h_adelic, finAdeleMatrix_smul, ← Matrix.mul_assoc, hl] |
| 400 | rw [← Nat.cast_smul_eq_nsmul E] |
| 401 | exact Matrix.map_injective (algebraMap E (𝔸f E)).injective |
| 402 | (mul_right_injective_of_inv _ _ (gram_classCoordX₀ c) h_coords) |
| 403 | refine ⟨l, by simpa only [hl] using hW_int.conjTranspose, ?_⟩ |
| 404 | rw [← hξ, ← h_rational] |
| 405 | ext (⟨i | i⟩ | i) b |
| 406 | · simp [hx] |
| 407 | · simpa [frameGram, splitGram, middleGram, Matrix.mul_apply, S.N_prime.ne_zero] using |
| 408 | congrFun₂ h_eq 𝔰.top b |
| 409 | · simpa [frameGram, Matrix.mul_apply, Matrix.one_apply] using congrFun₂ h_eq i.castSucc b |
| 410 | |
| 411 | omit [S.IsAdmissible] in |
| 412 | /-- Let `γ` have cell rank `j` and lie over the block `(c, s, c')`, let `Λ` be the lattice of the |
| 413 | class `c` and `A` the span of the isotropic vectors `e_a` of the frame. A term `p` is a lattice |
| 414 | translate of `p₀` by `l` if `l` has columns in `Λ ∩ X₀` and, modulo `A`, the frame of `p` is that of |
| 415 | `p₀` moved in `X₀` by `M l` times the first `min ϱ j` rows of products of `γ`. If the sum of `w` is |
| 416 | at most `bound` over every subset `B` of the orbit of `γ` that consists of translates of one of its |
| 417 | points, then the sum over the orbit is at most `isotropicRowsIndex ^ k * bound`, as the orbit falls |
| 418 | into at most `isotropicRowsIndex ^ k` such sets. -/ |
| 419 | lemma tsum_orbit_le_of_isLatticeTranslate (h_over : γ ∈ S.termsOver c s c') |
| 420 | (h_rank : S.HasCellRank j γ) (w : S.G E → ℝ≥0∞) (bound : ℝ≥0∞) |
| 421 | (h_coset : ∀ B : Set (S.G E), B ⊆ doubleCoset γ (S.classUnipotent₀ c) (S.classUnipotent₀ c') → |
| 422 | ∀ p₀ ∈ B, ∀ l : S.G E → Matrix 𝔰.κ (Fin (min 𝔰.ϱ j)) E, |
| 423 | (∀ p ∈ B, IsLatticeTranslate c γ p₀ p (l p)) → ∑' p : B, w p ≤ bound) : |
| 424 | ∑' p : doubleCoset γ (S.classUnipotent₀ c) (S.classUnipotent₀ c'), w p ≤ |
| 425 | .ofReal (S.isotropicRowsIndex j (S.translateByClassReps c c' γ) ^ 𝔰.k) * bound := by |
| 426 | -- The middle parts of the frames differ by `k` rows in a basis of `Λ ∩ X₀`. These rows lie in `M` |
| 427 | -- times the larger lattice in the definition of `isotropicRowsIndex`; colour them modulo `M` |
| 428 | -- times the smaller one. `a` is a basis of `Λ ∩ X₀`, and `Q` is an integral left inverse of its |
| 429 | -- coordinates. |
| 430 | obtain ⟨a, -, ha, Q, hQ, hQa⟩ := |
| 431 | exists_preimageLattice_eq_colLattice (R := Ô E) ⟨_, gram_classCoordX₀ c⟩ |
| 432 | -- `D p` is the change of the middle part of the frame from `γ` to `p`, and `Z` is the matrix of |
| 433 | -- products of `γ` in the basis of the lattice. |
| 434 | let D (p : S.G E) : Matrix 𝔰.MiddleIndex (Fin (𝔰.ϱ + 1)) (𝔸f E) := |
| 435 | frameMiddle (S.translateByClassReps c c' p) - frameMiddle (S.translateByClassReps c c' γ) |
| 436 | let Z : Matrix (Fin (𝔰.ϱ + 1)) (Fin (𝔰.ϱ + 1)) (𝔸f E) := |
| 437 | (S.latticeMiddle (𝔸f E)).frameGram (S.translateByClassReps c c' γ) |
| 438 | let latticeBelow : Submodule (Ô E) (Fin (𝔰.ϱ + 1) → 𝔸f E) := |
| 439 | colLattice (Ô E) (Z.submatrix (fun b : IndexBelow j ↦ b.val.castSucc) _root_.id)ᴴ |
| 440 | have h_index : relIndex (S.ideleM • latticeBelow.toAddSubgroup) |
| 441 | (S.ideleM • (colLattice (Ô E) (isotropicRows Z)ᴴ).toAddSubgroup) ≠ 0 := |
| 442 | ((relIndex_pointwise_smul S.ideleM ..).trans_gt (isotropicRowsIndex_pos h_over h_rank)).ne' |
| 443 | have h_mem_all (p : S.G E) (hp : p ∈ doubleCoset γ (S.classUnipotent₀ c) (S.classUnipotent₀ c')) |
| 444 | (i : 𝔰.κ) : (Q * D p)ᴴ.col i ∈ S.ideleM • colLattice (Ô E) (isotropicRows Z)ᴴ := |
| 445 | col_conjTranspose_mul_mem hQ (col_frameMiddle_sub_mem hp) i |
| 446 | have h_card : card 𝔰.κ = 𝔰.k := by simp |
| 447 | rw [isotropicRowsIndex, submoduleIndex, ← relIndex_pointwise_smul S.ideleM, ← h_card] |
| 448 | refine tsum_le_relIndex_pow_mul (fun p ↦ (Q * D p)ᴴ.col) h_index h_mem_all w bound |
| 449 | fun B hB p₀ hp₀ h_colour ↦ ?_ |
| 450 | have hZ {p : S.G E} (hp : p ∈ B) : S.frameProducts p = S.frameProducts γ := |
| 451 | frameProducts_eq_of_mem_doubleCoset (hB hp) |
| 452 | have h_basis {p : S.G E} (hp : p ∈ B) : S.classCoordX₀ c * a.val * (Q * D p) = D p := by |
| 453 | have hQ_inv : Q * S.classCoordX₀ c = (a⁻¹).val := |
| 454 | (Units.inv_eq_of_mul_eq_one_left (by rw [Matrix.mul_assoc, hQa])).symm |
| 455 | simp [D, frameMiddle_translateByClassReps_sub (hZ hp), ← Matrix.mul_assoc Q, hQ_inv, |
| 456 | Matrix.mul_assoc, |
| 457 | ← Matrix.mul_assoc a.val] |
| 458 | have h_rows_le : latticeBelow ≤ colLattice (Ô E) |
| 459 | ((isotropicRows Z).submatrix (initialIsotropicIndex j) _root_.id)ᴴ := |
| 460 | colLattice_le fun ⟨b, hb⟩ ↦ col_mem_colLattice (⟨b, lt_min b.isLt hb⟩ : Fin (min 𝔰.ϱ j)) |
| 461 | -- Two terms of one colour differ by `M` times the smaller lattice, so are lattice translates. |
| 462 | have h_translate (p : S.G E) (hp : p ∈ B) : |
| 463 | ∃ l : Matrix 𝔰.κ (Fin (min 𝔰.ϱ j)) E, IsLatticeTranslate c γ p₀ p l := by |
| 464 | refine h_rank.exists_isLatticeTranslate (c' := c') (hZ hp₀) (hZ hp) fun r ↦ ?_ |
| 465 | have h_diff : frameMiddle (S.translateByClassReps c c' p) - frameMiddle |
| 466 | (S.translateByClassReps c c' p₀) = |
| 467 | S.classCoordX₀ c * a.val * (Q * D p - Q * D p₀) := by |
| 468 | rw [Matrix.mul_sub, h_basis hp, h_basis hp₀, sub_sub_sub_cancel_right] |
| 469 | have h_mem (i : 𝔰.κ) : (Q * D p - Q * D p₀)ᴴ.col i ∈ |
| 470 | S.ideleM • colLattice (Ô E) ((isotropicRows Z).submatrix (initialIsotropicIndex j) |
| 471 | _root_.id)ᴴ := by |
| 472 | rw [conjTranspose_sub] |
| 473 | exact Set.smul_set_mono h_rows_le (h_colour p hp p₀ hp₀ i) |
| 474 | rw [h_diff] |
| 475 | simpa [Z, frameGram_translateByClassReps] using! col_conjTranspose_mul_mem ha h_mem r |
| 476 | choose! l hl using h_translate |
| 477 | exact h_coset B hB p₀ hp₀ l hl |
| 478 | |
| 479 | /-- Let the terms of `B` lie in the orbit of `γ` and be lattice translates of `p₀` with parameters |
| 480 | `l`. The frames of the terms with one lattice point `q` differ by vectors of the isotropic space. So |
| 481 | by packing, for `γ` over the block `(c, s, c')` and any exponent `i`, the sum of their weights |
| 482 | `schurWeight` at `y` is at most `tailScale` times a common bound `C` for the products over the |
| 483 | places of the powers `-(k + i)` of the ratios of the volumes (`volumeRatio`). -/ |
| 484 | lemma tsum_schurWeight_fibre_le {B : Set (S.G E)} |
| 485 | (hB : B ⊆ doubleCoset γ (S.classUnipotent₀ c) (S.classUnipotent₀ c')) {p₀ : S.G E} |
| 486 | {l : S.G E → Matrix 𝔰.κ (Fin (min 𝔰.ϱ j)) E} |
| 487 | (hl : ∀ p ∈ B, IsLatticeTranslate c γ p₀ p (l p)) |
| 488 | {y : NumberField.InfinitePlace E → 𝔰.G₁} (h_over : γ ∈ S.termsOver c s c') |
| 489 | (q : Matrix 𝔰.κ (Fin (min 𝔰.ϱ j)) E) {i : ℕ} {C : ℝ≥0∞} |
| 490 | (hC : ∀ p ∈ B, l p = q → |
| 491 | ∏ v : NumberField.InfinitePlace E, |
| 492 | ENNReal.ofReal ((volumeRatio (S.ratToInf p v) (y v))⁻¹ ^ (𝔰.k + i)) ≤ C) : |
| 493 | ∑' p : {p ∈ B | l p = q}, S.schurWeight c' p i y ≤ .ofReal S.tailScale * C := by |
| 494 | have h_term (p : {p ∈ B | l p = q}) (_ : S.schurWeight c' p i y ≠ 0) : |
| 495 | S.schurWeight c' p i y ≤ S.classCutoff c' ((S.ratToInf p)⁻¹ * y) * C := by |
| 496 | obtain ⟨p, hp_mem, hp_point⟩ := p |
| 497 | grw [schurWeight, boxCutoff, Set.indicator_le_self .., hC p hp_mem hp_point] |
| 498 | have h_box (p : {p ∈ B | l p = q}) (hp : S.schurWeight c' p i y ≠ 0) : |
| 499 | (S.ratToInf p)⁻¹ * y ∈ S.boxedPoints := |
| 500 | Set.mem_of_indicator_ne_zero (left_ne_zero_of_mul hp) |
| 501 | -- `V` is the space of `n`-tuples of vectors of the isotropic space, seen from `y`. |
| 502 | let V : Submodule ℝ (NumberField.InfinitePlace E → Fin 𝔰.n → EuclideanSpace ℂ 𝔰.BesselIndex) := |
| 503 | (piMap fun v ↦ Fintype.linearCombination ℂ (fun a : Fin 𝔰.ϱ ↦ frameVector (y v) a.castSucc) |
| 504 | |>.restrictScalars ℝ |>.compLeft (Fin 𝔰.n)).range |
| 505 | -- `10 ^ 5 * n ^ 9 * numInfPlaces E` is the exponent of `b` up to which `pow_le_tailScale` bounds |
| 506 | -- by `S.tailScale`. |
| 507 | have h_dim : 6 * 𝔰.n ^ 2 * Module.finrank ℝ V ≤ 10 ^ 5 * 𝔰.n ^ 9 * numInfPlaces E := by |
| 508 | grw [finrank_range_le] |
| 509 | simp [Module.finrank_pi_fintype] |
| 510 | lia |
| 511 | have h_differ (p : {p ∈ B | l p = q}) (_ : S.schurWeight c' p i y ≠ 0) (p₁ : {p ∈ B | l p = q}) |
| 512 | (_ : S.schurWeight c' p₁ i y ≠ 0) : |
| 513 | (fun v ↦ frameVector ((S.ratToInf p v)⁻¹ * y v)) - |
| 514 | (fun v ↦ frameVector ((S.ratToInf p₁ v)⁻¹ * y v)) ∈ V := by |
| 515 | obtain ⟨p, hp_mem, hp_point⟩ := p |
| 516 | obtain ⟨p₁, hp₁_mem, hp₁_point⟩ := p₁ |
| 517 | obtain ⟨-, hp_eq⟩ := hl p hp_mem |
| 518 | obtain ⟨-, hp₁_eq⟩ := hl p₁ hp₁_mem |
| 519 | have h_rows : (frameImage p.val.val).toRows₂ = (frameImage p₁.val.val).toRows₂ := by |
| 520 | rw [hp_eq, hp₁_eq, hp_point, hp₁_point] |
| 521 | exact ⟨_, funext₂ fun v _ ↦ (frameVector_sub_eq_sum h_rows ..).symm⟩ |
| 522 | have h_lie (p : {p ∈ B | l p = q}) (_ : S.schurWeight c' p i y ≠ 0) : |
| 523 | p.val ∈ S.termsOver c s c' := |
| 524 | termsOver.of_mem_doubleCoset (hB p.property.1) h_over |
| 525 | have h_size (p : {p ∈ B | l p = q}) (hp : S.schurWeight c' p i y ≠ 0) |
| 526 | (v : NumberField.InfinitePlace E) : |
| 527 | besselLength (((S.ratToInf p)⁻¹ * y) v) ≤ S.b ^ (6 * 𝔰.n + 2) * 1 := |
| 528 | (inCut_of_mem_boxedPoints (h_box p hp) v).trans_eq (mul_one _).symm |
| 529 | refine (tsum_le_of_le_classCutoff_mul le_rfl (fun _ ↦ Subtype.ext) h_lie h_size h_term |
| 530 | h_differ).trans ?_ |
| 531 | grw [one_pow, mul_one, ← pow_mul, pow_le_tailScale h_dim] |
| 532 | |
| 533 | omit [HasPrimitiveRoot5040 E] in |
| 534 | /-- **The kernel at one place.** Let `γ` have cell rank `j`, let `i = min ϱ j`, let `y` be boxed, |
| 535 | and let `Z` be the matrix of products of `γ` in the unit frame at `v`. Let `g₀` have the products |
| 536 | `Z`, with a norm-one pair from `j`. There is a measurable `φ` on `X₀ ^ i` with integral at most |
| 537 | `kernelBound j γ v` such that `volumeRatio g (y v) ^ (-(k + i)) ≤ φ A` for every `g` with the same |
| 538 | two properties whose frame differs in `X₀` from that of `g₀` by the rescaled point `A` times the |
| 539 | first `i` rows of `Z`. -/ |
| 540 | lemma HasCellRank.exists_majorant_lintegral_le_kernelBound (h_rank : S.HasCellRank j γ) |
| 541 | {y : InfinitePlace E → 𝔰.G₁} (hy : y ∈ S.boxedPoints) (v : InfinitePlace E) {g₀ : 𝔰.G₁} |
| 542 | (hg₀_gram : realFrameGram g₀ = realFrameGram (S.ratToInf γ v)) |
| 543 | (hg₀_pair : NormOnePairOccursFrom j g₀) : |
| 544 | ∃ φ : (Fin (min 𝔰.ϱ j) → 𝔰.κ → ℂ) → ℝ≥0∞, Measurable φ ∧ |
| 545 | ∫⁻ A : Fin (min 𝔰.ϱ j) → 𝔰.κ → ℂ, φ A ≤ .ofReal (S.kernelBound j γ v) ∧ |
| 546 | ∀ (g : 𝔰.G₁) (A : Fin (min 𝔰.ϱ j) → 𝔰.κ → ℂ), |
| 547 | realFrameGram g = realFrameGram (S.ratToInf γ v) → NormOnePairOccursFrom j g → |
| 548 | frameX₀Part g = frameX₀Part g₀ + ((S.shiftScaling j v)ᴴ * of A)ᴴ * |
| 549 | (isotropicRows (realFrameGram (S.ratToInf γ v))).submatrix (initialIsotropicIndex j) id → |
| 550 | .ofReal ((volumeRatio g (y v))⁻¹ ^ (𝔰.k + min 𝔰.ϱ j)) ≤ φ A := by |
| 551 | have h_box : y v ∈ frameBox S.frameBoxRadius := mem_frameBox_of_mem_boxedPoints hy v |
| 552 | have h_cut : InCut (y v) S.b := inCut_of_mem_boxedPoints hy v |
| 553 | have h_seven : 7 ≤ 𝔰.k := by |
| 554 | have h_base : 2 ^ 9 ≤ (2 * 𝔰.ϱ + 2) ^ 9 := Nat.pow_le_pow_left (by lia) 9 |
| 555 | grind [S.pow_le_k] |
| 556 | obtain ⟨φ₀, h_meas, h_int, h_le⟩ := exists_majorant_volumeRatio_inv_pow (min_le_left 𝔰.ϱ j) |
| 557 | h_box h_cut j.is_le (hij := rfl) h_seven hg₀_gram hg₀_pair (h_rank.det_subframeBlock_ne_zero v) |
| 558 | -- Pass to the parameters of the shift; the term `+ 0` is the form that |
| 559 | -- `lintegral_comp_matrix_mul_add` takes. |
| 560 | refine ⟨fun A ↦ φ₀ ((S.shiftScaling j v)ᴴ * of A + 0), h_meas.comp (Continuous.measurable ?_), |
| 561 | ?_, fun g A hg_gram hg_pair hg_part ↦ h_le g _ hg_gram hg_pair ?_⟩ |
| 562 | · fun_prop |
| 563 | · -- The change of variables brings in the Jacobian that `kernelBound` carries. |
| 564 | have h_det : (S.shiftScaling j v)ᴴ.det ≠ 0 := by |
| 565 | simp [shiftScaling, prod_eq_zero_iff, Nat.Prime.ne_zero] |
| 566 | have h_card : card 𝔰.κ = 𝔰.k := by simp |
| 567 | refine (lintegral_comp_matrix_mul_add h_det 0 φ₀).trans_le ?_ |
| 568 | grw [h_int, det_conjTranspose, norm_star, h_card, kernelBound, ofReal_mul (by positivity)] |
| 569 | · rw [hg_part, Matrix.add_mul, Matrix.mul_assoc, mul_inclMatrix ((isotropicRows _).submatrix _ _)] |
| 570 | congr 2 |
| 571 | · exact congrArg conjTranspose (add_zero _).symm |
| 572 | · ext a b |
| 573 | simp |
| 574 | |
| 575 | /-- **From cosets to a lattice.** Let `γ` be a term of cell rank `j` over the block `(c, s, c')`, |
| 576 | let `i = min ϱ j` and let `Λ` be the lattice of `c`. Let `B` be a set of terms of the orbit of `γ`, |
| 577 | each a lattice translate of `p₀ ∈ B`: the matrix `l p` has columns in `Λ ∩ X₀` and, modulo the |
| 578 | isotropic space, the frame of `p` is that of `p₀` moved in `X₀` by `M * l p` times the first `i` |
| 579 | rows of products of `γ`. Let `u v` be unipotent and fix the frame at every place `v`, and let `y` be |
| 580 | boxed. There is a measurable `φ` whose integral is at most the product of the explicit numbers |
| 581 | `kernelBound j γ v`, which bound the integrals of its local factors, such that for every `x` the sum |
| 582 | over `B` of the weights `schurWeight` at `u * eichlerShift j x * y` is at most `S.tailScale` times |
| 583 | the sum of `φ` over the translate by `x` of the lattice `(Λ ∩ X₀) ^ i` (`columnLattice`). -/ |
| 584 | lemma exists_tsum_schurWeight_le {B : Set (S.G E)} |
| 585 | (hB : B ⊆ doubleCoset γ (S.classUnipotent₀ c) (S.classUnipotent₀ c')) {p₀ : S.G E} |
| 586 | (hp₀ : p₀ ∈ B) {l : S.G E → Matrix 𝔰.κ (Fin (min 𝔰.ϱ j)) E} |
| 587 | (hl : ∀ p ∈ B, IsLatticeTranslate c γ p₀ p (l p)) {u y : NumberField.InfinitePlace E → 𝔰.G₁} |
| 588 | (hu : ∀ v : NumberField.InfinitePlace E, u v ∈ besselU0) |
| 589 | (h_over : γ ∈ S.termsOver c s c') (h_rank : S.HasCellRank j γ) (hy : y ∈ S.boxedPoints) : |
| 590 | ∃ φ : (NumberField.InfinitePlace E → Fin (min 𝔰.ϱ j) → 𝔰.κ → ℂ) → ℝ≥0∞, Measurable φ ∧ |
| 591 | ∫⁻ x : NumberField.InfinitePlace E → Fin (min 𝔰.ϱ j) → 𝔰.κ → ℂ, φ x ≤ |
| 592 | ∏ v : NumberField.InfinitePlace E, .ofReal (S.kernelBound j γ v) ∧ |
| 593 | ∀ x : NumberField.InfinitePlace E → Fin (min 𝔰.ϱ j) → 𝔰.κ → ℂ, |
| 594 | ∑' p : B, S.schurWeight c' p (min 𝔰.ϱ j) (u * S.eichlerShift j x * y) ≤ |
| 595 | .ofReal S.tailScale * ∑' w : S.columnLattice (Fin (min 𝔰.ϱ j)) c, φ (w +ᵥ x) := by |
| 596 | -- `φ` is the product of the kernels at the places for the base point `u⁻¹ p₀`. The terms with one |
| 597 | -- lattice point are then summed by packing. |
| 598 | have hZ {p : S.G E} (hp : p ∈ B) : S.frameProducts p = S.frameProducts γ := |
| 599 | frameProducts_eq_of_mem_doubleCoset (hB hp) |
| 600 | have h_pair {p : S.G E} (hp : p ∈ B) (v : InfinitePlace E) {g : 𝔰.G₁} (hg : g ∈ besselU0) : |
| 601 | NormOnePairOccursFrom j (g⁻¹ * S.ratToInf p v) := |
| 602 | ((h_rank.of_mem_doubleCoset (hB hp)).normOnePairOccursFrom.ratToInf v).besselU_mul |
| 603 | (inv_mem hg.1) |
| 604 | choose φ₀ hφ₀_meas hφ₀_int hφ₀_le using fun v : InfinitePlace E ↦ |
| 605 | h_rank.exists_majorant_lintegral_le_kernelBound hy v |
| 606 | (realFrameGram_inv_mul_ratToInf (hu v) (hZ hp₀)) (h_pair hp₀ v (hu v)) |
| 607 | refine ⟨fun x ↦ ∏ v : InfinitePlace E, φ₀ v (x v), |
| 608 | Finset.measurable_prod _ fun v _ ↦ (hφ₀_meas v).comp (measurable_pi_apply v), ?_, fun x ↦ ?_⟩ |
| 609 | · rw [volume_pi, TauCeti.lintegral_fintype_prod_eq_prod _ hφ₀_meas] |
| 610 | exact Finset.prod_le_prod fun v _ ↦ hφ₀_int v |
| 611 | -- The kernel at the shifted lattice point of `p` bounds the ratio of the volumes of `p`. |
| 612 | have h_ratio {p : S.G E} (hp : p ∈ B) (v : InfinitePlace E) : |
| 613 | .ofReal ((volumeRatio (S.ratToInf p v) (u v * S.eichlerShift j x v * y v))⁻¹ ^ |
| 614 | (𝔰.k + min 𝔰.ϱ j)) ≤ φ₀ v ((conjColumnsAtInfinity E 𝔰 _ (l p) + x) v) := by |
| 615 | have h_shift : u v * S.eichlerShift j x v ∈ besselU0 := mul_mem (hu v) (eichlerShift_mem x v) |
| 616 | rw [volumeRatio_mul_left _ h_shift] |
| 617 | exact hφ₀_le v _ _ (realFrameGram_inv_mul_ratToInf h_shift (hZ hp)) (h_pair hp v h_shift) |
| 618 | (frameX₀Part_eichlerShift_inv_mul (hZ hp) (hZ hp₀) (hl p hp) v (hu v) x) |
| 619 | -- Sort the terms by their lattice point and sum each fibre by packing. |
| 620 | let point (p : B) : S.columnLattice (Fin (min 𝔰.ϱ j)) c := |
| 621 | ⟨conjColumnsAtInfinity E 𝔰 _ (l p), mem_columnLattice.2 ⟨l p, (hl p p.property).1, rfl⟩⟩ |
| 622 | rw [← tsum_fiberwise _ point, ← ENNReal.tsum_mul_left] |
| 623 | refine tsum_le_tsum fun ⟨_, q, hq_int, rfl⟩ ↦ ?_ |
| 624 | let f (p : point ⁻¹' {⟨conjColumnsAtInfinity E 𝔰 _ q, ⟨q, hq_int, rfl⟩⟩}) : {p ∈ B | l p = q} := |
| 625 | ⟨p.val, p.val.property, conjColumnsAtInfinity_injective (congrArg Subtype.val p.property)⟩ |
| 626 | have hf : Function.Injective f := fun _ _ h_eq ↦ |
| 627 | Subtype.ext (Subtype.ext (congrArg Subtype.val h_eq :)) |
| 628 | refine (tsum_comp_le_tsum_of_injective (f := f) hf |
| 629 | fun r ↦ S.schurWeight c' r (min 𝔰.ϱ j) (u * S.eichlerShift j x * y)).trans ?_ |
| 630 | refine tsum_schurWeight_fibre_le hB hl h_over q fun p hp hq ↦ ?_ |
| 631 | subst hq |
| 632 | exact Finset.prod_le_prod fun v _ ↦ h_ratio hp v |
| 633 | |
| 634 | omit [S.IsAdmissible] [HasPrimitiveRoot5040 E] in |
| 635 | /-- The matrix `shiftScaling j v` is diagonal with entries `M / basisScale v (e_l)` for `l < i`. The |
| 636 | absolute value of its determinant is `(M √N) ^ i / |realM v| ^ ∑_{a < j} (ϱ - a)`, where |
| 637 | `i = min ϱ j`, `M = S.M` is the level, `N = S.N` is the number with `h(z, z) = -N`, and `S.realM v` |
| 638 | is the ratio of consecutive scales `basisScale` of the isotropic vectors. -/ |
| 639 | lemma norm_det_shiftScaling (v : NumberField.InfinitePlace E) : |
| 640 | ‖(S.shiftScaling j v).det‖ = |
| 641 | (S.M * √S.N) ^ min 𝔰.ϱ j / |S.realM v| ^ ∑ a : Fin j, (𝔰.ϱ - a) := by |
| 642 | -- The index `ϱ`, if it is below `j`, contributes `0` to the exponent. |
| 643 | have h_exp : ∑ l : Fin (min 𝔰.ϱ j), (𝔰.ϱ - l) = ∑ a : Fin j, (𝔰.ϱ - a) := by |
| 644 | refine sum_of_injective (castLE (min_le_right 𝔰.ϱ j)) (castLE_injective _) _ _ |
| 645 | (fun a ha ↦ ?_) fun _ ↦ rfl |
| 646 | by_contra h_ne |
| 647 | have ha_lt : a.val < min 𝔰.ϱ j := by lia |
| 648 | exact ha ⟨⟨a, ha_lt⟩, rfl⟩ |
| 649 | have h_entry (l : Fin (min 𝔰.ϱ j)) : |
| 650 | ‖(S.M / S.basisScale v (.inl (initialIsotropicIndex j l)) : ℂ)‖ = |
| 651 | S.M * √S.N / |S.realM v| ^ (𝔰.ϱ - l) := by |
| 652 | simp [basisScale, abs_of_nonneg, div_div_eq_mul_div, -Nat.cast_mul] |
| 653 | rw [shiftScaling, det_diagonal, norm_prod, ← h_exp] |
| 654 | simp only [h_entry] |
| 655 | simp [prod_pow_eq_pow_sum, -Nat.cast_mul] |
| 656 | |
| 657 | omit [HasPrimitiveRoot5040 E] in |
| 658 | /-- Let `γ` have cell rank `j ≥ 1`, let `i = min ϱ j`, and let `δ` be the image of the leading minor |
| 659 | of order `j` of `S.frameProducts γ` under the chosen embedding `Φ v` at the place `v`. The number |
| 660 | `kernelBound j γ v`, which bounds the integral over `X₀ ^ i` of the kernel of Schur's test at `v`, |
| 661 | is at most `((2 ρ²) ^ (i + 1) N ^ j / |δ|) ^ i` times the main factor |
| 662 | `((b ^ 13 / M²) ^ i N ^ (j - ϱ) / |δ|) ^ k`. Here `ρ = frameBoxRadius = b ^ (37 n)`, and the |
| 663 | truncated difference `j - ϱ` is `1` at the top rank `j = ϱ + 1` and `0` below. -/ |
| 664 | lemma kernelBound_le (h_rank : S.HasCellRank j γ) (hj : j ≠ 0) (v : NumberField.InfinitePlace E) : |
| 665 | S.kernelBound j γ v ≤ |
| 666 | ((2 * S.frameBoxRadius ^ 2) ^ (min 𝔰.ϱ j + 1) * S.N ^ j.val / |
| 667 | ‖Φ v (leadingMinor (S.frameProducts γ) j)‖) ^ min 𝔰.ϱ j * |
| 668 | ((S.b ^ 13 / S.M ^ 2) ^ min 𝔰.ϱ j * S.N ^ (j - 𝔰.ϱ) / |
| 669 | ‖Φ v (leadingMinor (S.frameProducts γ) j)‖) ^ 𝔰.k := by |
| 670 | have hb : 2 ≤ S.b := two_le_b |
| 671 | have hM : 2 ≤ S.M := two_le_M |
| 672 | have hN : 0 < S.N := S.N_prime.pos |
| 673 | have hδ : 0 < ‖Φ v (leadingMinor (S.frameProducts γ) j)‖ := by |
| 674 | simpa using h_rank.leadingMinor_ne_zero |
| 675 | rw [kernelBound, h_rank.norm_det_subframeBlock, norm_det_shiftScaling] |
| 676 | set δ : ℝ := ‖Φ v (leadingMinor (S.frameProducts γ) j)‖ |
| 677 | set θ : ℝ := S.b ^ (6 * 𝔰.n + 2) with hθ |
| 678 | set w : ℝ := |S.realM v| ^ ∑ a : Fin j, (𝔰.ϱ - a) |
| 679 | set i : ℕ := min 𝔰.ϱ j with hi |
| 680 | have hw : 1 ≤ w := one_le_pow₀ (one_le_abs_realM v) |
| 681 | have h_extra : j - i = j - 𝔰.ϱ := by lia |
| 682 | -- The last column: `2 ^ (i + 1) θ ^ (2 (j - i)) ≤ b ^ (13 i)`, as `i ≥ 1`, and `i = ϱ` is |
| 683 | -- large if `j > i`: then `2 ^ (i + 1) ≤ b ^ (i - 17)`, as `2 ^ 2 ≤ b`. |
| 684 | have h_last : 2 ^ (i + 1) * θ ^ (2 * (j - 𝔰.ϱ)) ≤ (S.b ^ 13) ^ i := by |
| 685 | have h_four : 2 ^ 2 ≤ S.b := by linarith [S.thousand_le_b] |
| 686 | have h_exp : i - 17 * (j - 𝔰.ϱ) + (6 * 𝔰.n + 2) * (2 * (j - 𝔰.ϱ)) ≤ 13 * i := by |
| 687 | obtain h_zero | h_one : j - 𝔰.ϱ = 0 ∨ j - 𝔰.ϱ = 1 := by lia |
| 688 | · grind |
| 689 | · grind [S.ten_pow_five_le_varrho] |
| 690 | have h_two : i + 1 ≤ 2 * (i - 17 * (j - 𝔰.ϱ)) := by |
| 691 | grind [S.ten_pow_five_le_varrho, val_ne_zero_iff.2 hj] |
| 692 | calc 2 ^ (i + 1) * θ ^ (2 * (j - 𝔰.ϱ)) |
| 693 | ≤ (2 ^ 2) ^ (i - 17 * (j - 𝔰.ϱ)) * θ ^ (2 * (j - 𝔰.ϱ)) := by |
| 694 | grw [pow_le_pow_right₀ one_le_two h_two, pow_mul 2] |
| 695 | _ ≤ S.b ^ (i - 17 * (j - 𝔰.ϱ)) * θ ^ (2 * (j - 𝔰.ϱ)) := by gcongr |
| 696 | _ = S.b ^ (i - 17 * (j - 𝔰.ϱ) + (6 * 𝔰.n + 2) * (2 * (j - 𝔰.ϱ))) := by |
| 697 | rw [hθ, ← pow_mul, ← pow_add] |
| 698 | _ ≤ (S.b ^ 13) ^ i := by grw [← pow_mul, pow_le_pow_right₀ S.one_le_b h_exp] |
| 699 | -- The power `w` of `|realM v|` from the scales of the unit frame cancels in the `k`-th power and |
| 700 | -- is dropped in the `i`-th power. |
| 701 | have h_power : (S.N : ℝ) ^ j.val = S.N ^ (j - 𝔰.ϱ) * S.N ^ i := by |
| 702 | rw [← pow_add, ← h_extra, Nat.sub_add_cancel (min_le_right _ _)] |
| 703 | have h_jacobian : ((S.M * √S.N) ^ i / w)⁻¹ ^ 2 = w ^ 2 / ((S.M ^ 2) ^ i * S.N ^ i) := by |
| 704 | rw [inv_div, div_pow, pow_right_comm _ i 2, mul_pow, sq_sqrt (by positivity), mul_pow] |
| 705 | calc ((S.M * √S.N) ^ i / w)⁻¹ ^ (2 * 𝔰.k) * |
| 706 | ((2 * S.frameBoxRadius ^ 2) ^ ((i + 1) * i) * (2 ^ (i + 1) * θ ^ (2 * (j - i))) ^ 𝔰.k / |
| 707 | (w ^ 2 / S.N ^ j.val * δ) ^ (𝔰.k + i)) |
| 708 | _ = ((2 * S.frameBoxRadius ^ 2) ^ (i + 1) * S.N ^ j.val / (w ^ 2 * δ)) ^ i * |
| 709 | (2 ^ (i + 1) * θ ^ (2 * (j - 𝔰.ϱ)) * S.N ^ (j - 𝔰.ϱ) / ((S.M ^ 2) ^ i * δ)) ^ 𝔰.k := by |
| 710 | rw [h_extra, pow_mul _ 2 𝔰.k, h_jacobian, pow_mul _ (i + 1), pow_add _ 𝔰.k, h_power] |
| 711 | simp only [div_pow, mul_pow] |
| 712 | field_simp |
| 713 | _ ≤ ((2 * S.frameBoxRadius ^ 2) ^ (i + 1) * S.N ^ j.val / (1 ^ 2 * δ)) ^ i * |
| 714 | ((S.b ^ 13) ^ i * S.N ^ (j - 𝔰.ϱ) / ((S.M ^ 2) ^ i * δ)) ^ 𝔰.k := by gcongr |
| 715 | _ = _ := by ring |
| 716 | |
| 717 | omit [S.IsAdmissible] [HasPrimitiveRoot5040 E] in |
| 718 | lemma kernelBound_nonneg (hb : 0 ≤ S.b) (v : NumberField.InfinitePlace E) : |
| 719 | 0 ≤ S.kernelBound j γ v := by |
| 720 | unfold kernelBound |
| 721 | positivity |
| 722 | |
| 723 | omit [HasPrimitiveRoot5040 E] in |
| 724 | /-- For an admissible filling datum `S` of shape `𝔰` over `E` and `j ≤ 𝔰.ϱ + 1`, the power |
| 725 | `(((2 * S.frameBoxRadius ^ 2) ^ (min 𝔰.ϱ j + 1) * S.N ^ j) ^ f) ^ min 𝔰.ϱ j`, where |
| 726 | `f = numInfPlaces E`, is at most `S.tailScale`. -/ |
| 727 | private lemma pow_frameBoxRadius_mul_N_pow_le_tailScale : |
| 728 | (((2 * S.frameBoxRadius ^ 2) ^ (min 𝔰.ϱ j + 1) * S.N ^ j.val) ^ numInfPlaces E) ^ |
| 729 | min 𝔰.ϱ j ≤ S.tailScale := by |
| 730 | have hb : 2 ≤ S.b := two_le_b |
| 731 | have h_exp : (37 * 𝔰.n * 2 + 1) * (min 𝔰.ϱ j + 1) + 60 * 𝔰.n * j ≤ 135 * 𝔰.n ^ 2 := by |
| 732 | have h_min : min 𝔰.ϱ j + 1 ≤ 𝔰.n := Nat.succ_le_succ (min_le_left 𝔰.ϱ j) |
| 733 | have h_le : j.val ≤ 𝔰.n := j.is_le |
| 734 | have h_sq : 𝔰.n ≤ 𝔰.n ^ 2 := Nat.le_self_pow two_ne_zero 𝔰.n |
| 735 | calc _ ≤ (37 * 𝔰.n * 2 + 1) * 𝔰.n + 60 * 𝔰.n * 𝔰.n := by gcongr |
| 736 | _ = 134 * 𝔰.n ^ 2 + 𝔰.n := by ring |
| 737 | _ ≤ 135 * 𝔰.n ^ 2 := by linarith |
| 738 | -- Here `frameBoxRadius = b ^ (37 n)`, `2 ≤ b` and `N ≤ b ^ (60 n)`. |
| 739 | have h_base : (2 * S.frameBoxRadius ^ 2) ^ (min 𝔰.ϱ j + 1) * S.N ^ j.val ≤ |
| 740 | S.b ^ (135 * 𝔰.n ^ 2) := by |
| 741 | grw [frameBoxRadius, hb, N_le, ← pow_mul, ← pow_succ', ← pow_mul, ← pow_mul, ← pow_add] |
| 742 | exact pow_le_pow_right₀ S.one_le_b h_exp |
| 743 | calc _ ≤ ((S.b ^ (135 * 𝔰.n ^ 2)) ^ numInfPlaces E) ^ min 𝔰.ϱ j := by grw [h_base] |
| 744 | _ ≤ S.b ^ (135 * 𝔰.n ^ 2 * numInfPlaces E * 𝔰.ϱ) := by |
| 745 | rw [← pow_mul, ← pow_mul, ← mul_assoc] |
| 746 | exact pow_le_pow_right₀ S.one_le_b (by grw [min_le_left]) |
| 747 | _ ≤ S.tailScale := pow_le_tailScale (by lia) |
| 748 | |
| 749 | omit [HasPrimitiveRoot5040 E] in |
| 750 | /-- Let `γ` be a term of cell rank `j ≥ 1` over the block `(c, s, c')` and let `i = min ϱ j`. The |
| 751 | number `kernelBound j γ v` bounds the integral over `X₀ ^ i` of the kernel of Schur's test at the |
| 752 | place `v`. Its product over the `f` infinite places is at most |
| 753 | `tailScale * (b ^ 13 / M²) ^ (i k f) * minorNorm ^ (-k / 2)`, where `minorNorm` is the absolute norm |
| 754 | of the leading minor of order `j` of `S.frameProducts γ`, divided by `N ^ (2 f)` if `j = ϱ + 1`. -/ |
| 755 | lemma prod_kernelBound_le (h_over : γ ∈ S.termsOver c s c') (h_rank : S.HasCellRank j γ) |
| 756 | (hj : j ≠ 0) : |
| 757 | ∏ v : NumberField.InfinitePlace E, S.kernelBound j γ v ≤ |
| 758 | S.tailScale * (S.b ^ 13 / S.M ^ 2) ^ (min 𝔰.ϱ j * 𝔰.k * numInfPlaces E) * |
| 759 | (√(S.minorNorm j γ))⁻¹ ^ 𝔰.k := by |
| 760 | have hN : 0 < S.N := S.N_prime.pos |
| 761 | set P : ℝ := ∏ v, ‖Φ v (leadingMinor (S.frameProducts γ) j)‖ with hP |
| 762 | -- The minor is a nonzero integer of `E`. |
| 763 | have h_one_le : 1 ≤ P := one_le_prod_norm_Φ (.det fun a b ↦ isIntegral_frameProducts h_over ..) |
| 764 | h_rank.leadingMinor_ne_zero |
| 765 | have h_sqrt : √(S.minorNorm j γ) = P / (S.N ^ (j - 𝔰.ϱ)) ^ numInfPlaces E := by |
| 766 | rw [minorNorm, abs_norm_eq_prod_norm_sq, prod_pow, mul_assoc, pow_mul', ← div_pow, |
| 767 | sqrt_sq (by positivity), pow_mul] |
| 768 | have h_small : (((2 * S.frameBoxRadius ^ 2) ^ (min 𝔰.ϱ j + 1) * S.N ^ j.1) ^ numInfPlaces E / P) ^ |
| 769 | min 𝔰.ϱ j ≤ S.tailScale := by |
| 770 | grw [← h_one_le, div_one] |
| 771 | exact pow_frameBoxRadius_mul_N_pow_le_tailScale (S := S) (j := j) |
| 772 | calc ∏ v : InfinitePlace E, S.kernelBound j γ v |
| 773 | ≤ ∏ v : InfinitePlace E, ((2 * S.frameBoxRadius ^ 2) ^ (min 𝔰.ϱ j + 1) * S.N ^ j.val / |
| 774 | ‖Φ v (leadingMinor (S.frameProducts γ) j)‖) ^ min 𝔰.ϱ j * |
| 775 | ((S.b ^ 13 / S.M ^ 2) ^ min 𝔰.ϱ j * S.N ^ (j - 𝔰.ϱ) / |
| 776 | ‖Φ v (leadingMinor (S.frameProducts γ) j)‖) ^ 𝔰.k := |
| 777 | prod_le_prod₀ (fun v _ ↦ kernelBound_nonneg b_pos.le v) fun v _ ↦ kernelBound_le h_rank hj v |
| 778 | _ = (((2 * S.frameBoxRadius ^ 2) ^ (min 𝔰.ϱ j + 1) * S.N ^ j.val) ^ numInfPlaces E / P) ^ |
| 779 | min 𝔰.ϱ j * (((S.b ^ 13 / S.M ^ 2) ^ min 𝔰.ϱ j * S.N ^ (j - 𝔰.ϱ)) ^ |
| 780 | numInfPlaces E / P) ^ 𝔰.k := by |
| 781 | rw [prod_mul_distrib, prod_pow, prod_pow, Finset.prod_div_distrib, Finset.prod_div_distrib, |
| 782 | Finset.prod_const, Finset.prod_const, card_univ] |
| 783 | _ ≤ S.tailScale * (((S.b ^ 13 / S.M ^ 2) ^ min 𝔰.ϱ j * S.N ^ (j - 𝔰.ϱ)) ^ |
| 784 | numInfPlaces E / P) ^ 𝔰.k := by have := S.b_pos; grw [h_small] |
| 785 | _ = _ := by |
| 786 | rw [h_sqrt, inv_div] |
| 787 | ring |
| 788 | |
| 789 | omit [S.IsAdmissible] [HasPrimitiveRoot5040 E] in |
| 790 | /-- The sum of the weights `schurWeight` over the orbit of `γ` is left invariant under the |
| 791 | subgroup `classUnipotent₀ c`, which permutes the orbit and fixes the frame. -/ |
| 792 | lemma tsum_schurWeight_ratToInf_mul {i : ℕ} {u : S.G E} (hu : u ∈ S.classUnipotent₀ c) |
| 793 | (y : NumberField.InfinitePlace E → 𝔰.G₁) : |
| 794 | ∑' p : doubleCoset γ (S.classUnipotent₀ c) (S.classUnipotent₀ c'), |
| 795 | S.schurWeight c' p i (S.ratToInf u * y) = |
| 796 | ∑' p : doubleCoset γ (S.classUnipotent₀ c) (S.classUnipotent₀ c'), |
| 797 | S.schurWeight c' p i y := by |
| 798 | set orbit : Set (S.G E) := doubleCoset γ (S.classUnipotent₀ c) (S.classUnipotent₀ c') with h_orbit |
| 799 | have h_image : (fun p : S.G E ↦ u • p) '' orbit = orbit := by |
| 800 | rw [Set.image_smul, h_orbit, doubleCoset, ← smul_mul_assoc, ← smul_mul_assoc, smul_coe_set hu] |
| 801 | conv_lhs => rw [← h_image, tsum_image (S.schurWeight c' · _ _) (by simp)] |
| 802 | simp [schurWeight, volumeRatio, frameVolume_mul_left, ratToInf_mem_besselU0 hu.2] |
| 803 | |
| 804 | /-- **From the lattice to an integral.** Let `γ` have cell rank `j ≥ 1` (`HasCellRank`) and lie in |
| 805 | `termsOver c s c'`. |
| 806 | |
| 807 | One factor `schurIntegral` of Schur's test (the integral of the box cutoff of `c` times the squared |
| 808 | norm of the cut Bessel function times `schurWeight`), summed over the orbit of `γ`, is at most |
| 809 | `unipotentCovolume * #BesselCoord` times `tailScale² (b ^ 13 / M²) ^ (i k f) |
| 810 | (isotropicRowsIndex / √minorNorm) ^ k`. Here `i = min ϱ j`, `k = |κ|` and `f` is the number of |
| 811 | infinite places. Let `Λ` be the lattice of `c` and `A` the span of the isotropic vectors `e_a`. Then |
| 812 | `isotropicRowsIndex` is the index, in the lattice of the rows of products of `Λ ∩ A` with the frame |
| 813 | of `translateByClassReps c c' γ = h_c⁻¹ γ h_c'`, of the part that comes from the `e_a` with |
| 814 | `a < j`. -/ |
| 815 | lemma tsum_schurIntegral_le (h_over : γ ∈ S.termsOver c s c') (h_rank : S.HasCellRank j γ) |
| 816 | (hj : j ≠ 0) : |
| 817 | ∑' δ : doubleCoset γ (S.classUnipotent₀ c) (S.classUnipotent₀ c'), |
| 818 | S.schurIntegral c c' δ (min 𝔰.ϱ j) ≤ |
| 819 | .ofReal (S.unipotentCovolume * (card S.BesselCoord * S.tailScale ^ 2 * |
| 820 | (S.b ^ 13 / S.M ^ 2) ^ (min 𝔰.ϱ j * 𝔰.k * numInfPlaces E) * |
| 821 | (S.isotropicRowsIndex j (S.translateByClassReps c c' γ) / √(S.minorNorm j γ)) ^ 𝔰.k)) := by |
| 822 | -- Integrate in stages, averaging over the shifts with parameter in a fundamental domain `D` of |
| 823 | -- the lattice. On each of the `isotropicRowsIndex ^ k` cosets the mean of the sum of the weights |
| 824 | -- is at most `tailScale` times the integral of the kernel divided by the volume of `D`, which is |
| 825 | -- at least `1`. |
| 826 | have hτ : 2 ≤ S.tailScale := two_le_tailScale |
| 827 | have hV : 0 < S.unipotentCovolume := S.unipotentCovolume_pos |
| 828 | have hb : 0 < S.b := b_pos |
| 829 | obtain ⟨D, -, hD, hD_vol, hD_finite⟩ := |
| 830 | S.exists_isAddFundamentalDomain_columnLattice (Fin (min 𝔰.ϱ j)) c |
| 831 | set d : ℕ := min 𝔰.ϱ j * 𝔰.k * numInfPlaces E with hd |
| 832 | set orbit : Set (S.G E) := doubleCoset γ (S.classUnipotent₀ c) (S.classUnipotent₀ c') |
| 833 | set index : ℕ := S.isotropicRowsIndex j (S.translateByClassReps c c' γ) |
| 834 | -- Instance search finds this only when it is asked directly. |
| 835 | have : Measure.IsAddHaarMeasure |
| 836 | (volume : Measure (NumberField.InfinitePlace E → Fin (min 𝔰.ϱ j) → 𝔰.κ → ℂ)) := inferInstance |
| 837 | let F (y : NumberField.InfinitePlace E → 𝔰.G₁) : ℝ≥0∞ := |
| 838 | ∑' p : orbit, S.schurWeight c' p (min 𝔰.ϱ j) y |
| 839 | set C : ℝ≥0∞ := |
| 840 | .ofReal (index ^ 𝔰.k) * (.ofReal S.tailScale * ∏ v, .ofReal (S.kernelBound j γ v)) with hC |
| 841 | have h_mean (u : NumberField.InfinitePlace E → 𝔰.G₁) (hu : ∀ v, u v ∈ besselU0) |
| 842 | (y : NumberField.InfinitePlace E → 𝔰.G₁) (hy : y ∈ S.boxedPoints) : |
| 843 | ∫⁻ x in D, F (u * S.eichlerShift j x * y) ≤ volume D * C := by |
| 844 | refine le_trans ?_ (le_mul_of_one_le_left' hD_vol) |
| 845 | rw [hC, lintegral_tsum fun _ ↦ Measurable.aemeasurable (by fun_prop)] |
| 846 | refine tsum_orbit_le_of_isLatticeTranslate h_over h_rank |
| 847 | (fun p ↦ ∫⁻ x in D, S.schurWeight c' p _ (u * S.eichlerShift j x * y)) _ |
| 848 | fun B hB p₀ hp₀ l hl ↦ ?_ |
| 849 | obtain ⟨φ, hφ_meas, hφ_int, hφ_le⟩ := exists_tsum_schurWeight_le hB hp₀ hl hu h_over h_rank hy |
| 850 | have h_unfold : ∫⁻ x in D, ∑' w : S.columnLattice (Fin (min 𝔰.ϱ j)) c, φ (w +ᵥ x) = |
| 851 | ∫⁻ x, φ x := by |
| 852 | rw [hD.lintegral_eq_tsum'' φ, lintegral_tsum fun _ ↦ Measurable.aemeasurable (by fun_prop)] |
| 853 | grw [← lintegral_tsum fun _ ↦ Measurable.aemeasurable (by fun_prop), lintegral_mono hφ_le, |
| 854 | lintegral_const_mul' _ _ ofReal_ne_top, h_unfold, hφ_int] |
| 855 | have h_inv (u : S.G E) (hu : u ∈ S.classUnipotent₀ c) (y : NumberField.InfinitePlace E → 𝔰.G₁) : |
| 856 | F (S.ratToInf u * y) = F y := tsum_schurWeight_ratToInf_mul hu y |
| 857 | have h_pos : volume D ≠ 0 := (zero_lt_one.trans_le hD_vol).ne' |
| 858 | calc |
| 859 | _ = ∫⁻ y : NumberField.InfinitePlace E → 𝔰.G₁, |
| 860 | S.boxCutoff c y * S.besselCutNormSq y * F y := by |
| 861 | simp (disch := fun_prop) only [schurIntegral, ← lintegral_tsum, ENNReal.tsum_mul_left, F] |
| 862 | _ ≤ C * (.ofReal S.unipotentCovolume * card S.BesselCoord) := |
| 863 | lintegral_boxCutoff_le_of_average c volume measurable_eichlerShift eichlerShift_mem |
| 864 | (by fun_prop) h_inv D h_pos hD_finite h_mean |
| 865 | _ ≤ .ofReal (index ^ 𝔰.k * (S.tailScale * (S.tailScale * |
| 866 | (S.b ^ 13 / S.M ^ 2) ^ d * (√(S.minorNorm j γ))⁻¹ ^ 𝔰.k)) * |
| 867 | (S.unipotentCovolume * card S.BesselCoord)) := by |
| 868 | grw [hC, ← ofReal_prod_of_nonneg fun v _ ↦ kernelBound_nonneg hb.le v, |
| 869 | prod_kernelBound_le h_over h_rank hj, ← ofReal_natCast] |
| 870 | simp (disch := positivity) only [← ofReal_mul, ← hd, le_refl] |
| 871 | _ = _ := by |
| 872 | simp only [div_pow, inv_pow] |
| 873 | congr 1 |
| 874 | field_simp |
| 875 | |
| 876 | /-- **Schur's test.** Let `S` be admissible data over a CM field `E` with a primitive 5040th root of |
| 877 | unity, with size parameter `b`, `M = p₀ p₁` and `k = dim X₀`. Let `γ` have cell rank `j ≥ 1` and lie |
| 878 | over the block `(c, s, c')`. The square of the sum over its orbit of the absolute amplitudes, taken |
| 879 | with the cut Bessel functions `W♭` (`.cut`), is at most |
| 880 | `(V d τ² (b ^ 13 / M²) ^ (i k f))² (N ^ f / minorGauge) ^ k`. |
| 881 | Here `i = min ϱ j`, `V` is `unipotentCovolume`, the common covolume of the |
| 882 | unipotent groups of the classes, `d` is the number of Bessel coordinates, `τ = tailScale`, `f` is |
| 883 | the number of infinite places, and the gauge `minorGauge` is `N ^ f * minorNorm` divided by the two |
| 884 | indices `isotropicRowsIndex` of the term. -/ |
| 885 | theorem sq_tsum_amplitudeMajorant_doubleCoset_le (h_over : γ ∈ S.termsOver c s c') |
| 886 | (h_rank : S.HasCellRank j γ) (hj : j ≠ 0) : |
| 887 | (∑' δ : doubleCoset γ (S.classUnipotent₀ c) (S.classUnipotent₀ c'), |
| 888 | S.amplitudeMajorant .cut c c' δ) ^ 2 ≤ |
| 889 | .ofReal ((S.unipotentCovolume * card S.BesselCoord * S.tailScale ^ 2 * |
| 890 | (S.b ^ 13 / S.M ^ 2) ^ (min 𝔰.ϱ j * 𝔰.k * numInfPlaces E)) ^ 2 * |
| 891 | (S.N ^ numInfPlaces E / S.minorGauge j c c' γ) ^ 𝔰.k) := by |
| 892 | -- By Cauchy–Schwarz the square is at most the product of the sums of the two factors, for `γ` |
| 893 | -- and for `γ⁻¹`. |
| 894 | have hN : 0 < S.N := S.N_prime.pos |
| 895 | have hV : 0 < S.unipotentCovolume := S.unipotentCovolume_pos |
| 896 | have hb : 0 < S.b := b_pos |
| 897 | set orbit : Set (S.G E) := doubleCoset γ (S.classUnipotent₀ c) (S.classUnipotent₀ c') with h_orbit |
| 898 | have h_schur : (∑' δ : orbit, S.amplitudeMajorant .cut c c' δ) ^ 2 ≤ |
| 899 | (∑' δ : orbit, S.schurIntegral c c' δ (min 𝔰.ϱ j)) * |
| 900 | ∑' δ : orbit, S.schurIntegral c' c δ.val⁻¹ (min 𝔰.ϱ j) := by |
| 901 | -- With every set measurable, a sum over the orbit is an integral for the counting measure. |
| 902 | let : MeasurableSpace (S.G E) := ⊤ |
| 903 | simp only [← lintegral_count] |
| 904 | exact sq_lintegral_le .of_discrete .of_discrete fun δ ↦ amplitudeMajorant_sq_le _ |
| 905 | -- Inversion maps the orbit of `γ` into that of `γ⁻¹`, which has the same cell rank and minor. |
| 906 | have h_inverse : ∑' δ : orbit, S.schurIntegral c' c δ.val⁻¹ (min 𝔰.ϱ j) ≤ |
| 907 | ∑' δ : doubleCoset γ⁻¹ (S.classUnipotent₀ c') (S.classUnipotent₀ c), |
| 908 | S.schurIntegral c' c δ (min 𝔰.ϱ j) := by |
| 909 | rw [← tsum_image (S.schurIntegral c' c · (min 𝔰.ϱ j)) inv_injective.injOn] |
| 910 | refine tsum_mono_subtype (S.schurIntegral c' c · (min 𝔰.ϱ j)) ?_ |
| 911 | simp [h_orbit, doubleCoset, mul_assoc, -Set.mul_singleton, -Set.singleton_mul] |
| 912 | have h_translate_inv : S.translateByClassReps c' c γ⁻¹ = (S.translateByClassReps c c' γ)⁻¹ := by |
| 913 | simp [translateByClassReps, mul_assoc] |
| 914 | have h_ratio : S.N ^ numInfPlaces E / S.minorGauge j c c' γ = |
| 915 | S.isotropicRowsIndex j (S.translateByClassReps c c' γ) / √(S.minorNorm j γ) * |
| 916 | (S.isotropicRowsIndex j (S.translateByClassReps c c' γ)⁻¹ / √(S.minorNorm j γ)) := by |
| 917 | rw [h_rank.minorGauge_eq, div_mul_div_comm, mul_self_sqrt h_rank.minorNorm_pos.le, |
| 918 | div_div_eq_mul_div, mul_div_mul_left _ _ (by positivity)] |
| 919 | grw [h_schur, h_inverse, tsum_schurIntegral_le h_over h_rank hj, |
| 920 | tsum_schurIntegral_le (termsOver.inv h_over) h_rank.inv hj, minorNorm_inv, h_translate_inv, |
| 921 | ← ofReal_mul (by positivity), h_ratio, mul_pow _ _ 𝔰.k] |
| 922 | exact ofReal_le_ofReal (le_of_eq (by ring)) |
| 923 | |
| 924 | omit [HasPrimitiveRoot5040 E] in |
| 925 | /-- At cell rank `j ≥ 1`, the second moment `cellRankSecondMoment j` is at least `α ^ (8 - 32 i)` |
| 926 | times `identitySecondMoment`. Here `identitySecondMoment` is the order of the reduced image of the |
| 927 | Bessel subgroup `besselS` times the dimension `sourceDim` of the space of source forms, and |
| 928 | `cellRankSecondMoment j` is `mainSecondMoment` for `j = ϱ + 1` and `α ^ (-16)` times |
| 929 | `identitySecondMoment` for `j ≤ ϱ`. -/ |
| 930 | lemma div_tailScale_pow_mul_identitySecondMoment_le_cellRankSecondMoment (hj : j ≠ 0) : |
| 931 | S.tailScale ^ 8 / (S.tailScale ^ 32) ^ min 𝔰.ϱ j * S.identitySecondMoment ≤ |
| 932 | S.cellRankSecondMoment j := by |
| 933 | have hτ : 1 ≤ S.tailScale := one_le_two.trans two_le_tailScale |
| 934 | have h_id : 0 ≤ S.identitySecondMoment := identitySecondMoment_nonneg |
| 935 | unfold cellRankSecondMoment |
| 936 | split_ifs with h_top |
| 937 | · refine le_trans ?_ tailScale_pow_mul_identitySecondMoment_le |
| 938 | grw [div_le_self (by positivity) (by bound)] |
| 939 | gcongr |
| 940 | lia |
| 941 | · grw [← le_self_pow₀ (by bound) |
| 942 | ((min_eq_right (not_lt.1 h_top)).trans_ne (val_ne_zero_iff.2 hj))] |
| 943 | rw [show S.tailScale ^ 8 / S.tailScale ^ 32 * S.identitySecondMoment = |
| 944 | S.identitySecondMoment / S.tailScale ^ 24 by field_simp] |
| 945 | gcongr |
| 946 | lia |
| 947 | |
| 948 | omit [HasPrimitiveRoot5040 E] [S.IsAdmissible] in |
| 949 | /-- The field `le_M` of `S` gives `S.b ^ 19 ≤ S.M`, so the factor `S.b ^ 13 / S.M²` is at most |
| 950 | `1 / (S.b ^ 4 S.M)`. -/ |
| 951 | lemma b_pow_div_M_sq_le : S.b ^ 13 / (S.M : ℝ) ^ 2 ≤ (S.b ^ 4 * S.M)⁻¹ := by |
| 952 | have hb_pos : 0 < S.b := b_pos |
| 953 | have h_pow : S.b ^ 17 ≤ (S.M : ℝ) := (pow_le_pow_right₀ S.one_le_b (by norm_num)).trans S.le_M |
| 954 | have hM_pos : 0 < (S.M : ℝ) := (pow_pos hb_pos 17).trans_le h_pow |
| 955 | field_simp |
| 956 | exact h_pow |
| 957 | |
| 958 | /-- Let `γ` lie over the block `(c, s, c')` and have cell rank `j ≥ 1`, and let |
| 959 | `termDiscNorm γ ≤ N ^ f * minorNorm j γ`, so that `maxGauge` equals `minorGauge` at `γ`. Then the |
| 960 | absolute amplitudes of the terms of its orbit, taken with the cut Bessel functions `W♭` (`.cut`), |
| 961 | add up to at most `unipotentCovolume` times `orbitBound`, which is |
| 962 | `α² √(D_j / (n_p (M ^ (2 i f) x) ^ k))` at the gauge `x = maxGauge`. Here `i = min ϱ j`, |
| 963 | `k = dim X₀`, `D_j` is the second moment `cellRankSecondMoment j`, `n_p = pairCountScale` and |
| 964 | `α = tailScale`. -/ |
| 965 | lemma tsum_amplitudeMajorant_orbit_le (h_over : γ ∈ S.termsOver c s c') |
| 966 | (h_rank : S.HasCellRank j γ) (hj : j ≠ 0) |
| 967 | (h_disc_le : S.termDiscNorm γ ≤ S.N ^ numInfPlaces E * S.minorNorm j γ) : |
| 968 | ∑' δ : doubleCoset γ (S.classUnipotent₀ c) (S.classUnipotent₀ c'), |
| 969 | S.amplitudeMajorant .cut c c' δ ≤ |
| 970 | .ofReal (S.unipotentCovolume * S.orbitBound j (S.maxGauge j c c' γ)) := by |
| 971 | classical |
| 972 | have hτ : 2 ≤ S.tailScale := two_le_tailScale |
| 973 | have h_identityMoment_nonneg : 0 ≤ S.identitySecondMoment := identitySecondMoment_nonneg |
| 974 | have h_rankMoment_nonneg : 0 ≤ S.cellRankSecondMoment j := cellRankSecondMoment_nonneg j |
| 975 | have hV : 0 < S.unipotentCovolume := S.unipotentCovolume_pos |
| 976 | have hb_pos : 0 < S.b := b_pos |
| 977 | have h_gauge : S.maxGauge j c c' γ = S.minorGauge j c c' γ := by |
| 978 | rw [h_rank.maxGauge_eq, max_eq_right h_disc_le, h_rank.minorGauge_eq] |
| 979 | have h_pos : 0 < S.minorGauge j c c' γ := (maxGauge_pos h_over h_rank).trans_eq h_gauge |
| 980 | rw [← ENNReal.pow_le_pow_left_iff two_ne_zero, orbitBound, ← ofReal_pow (by positivity)] |
| 981 | refine (sq_tsum_amplitudeMajorant_doubleCoset_le h_over h_rank hj).trans (ofReal_le_ofReal ?_) |
| 982 | -- One factor `card S.BesselCoord` is at most `b ^ (2 k f) = tailScale ^ 8`; the other is part |
| 983 | -- of `identitySecondMoment`. |
| 984 | have h_dim : (card S.BesselCoord : ℝ) ≤ S.tailScale ^ 8 := by |
| 985 | grw [IsAdmissible.card_besselCoord_le, pow_mul _ 4 2, tailScale_pow_four] |
| 986 | exact le_of_eq (by ring) |
| 987 | have h_gain : (S.tailScale ^ 32) ^ min 𝔰.ϱ j = |
| 988 | ((S.b ^ 4) ^ (min 𝔰.ϱ j * 𝔰.k * numInfPlaces E)) ^ 2 := by |
| 989 | rw [pow_mul _ 4 8, tailScale_pow_four] |
| 990 | ring |
| 991 | rw [h_gauge, mul_pow S.unipotentCovolume, mul_pow (S.tailScale ^ 2), sq_sqrt (by positivity)] |
| 992 | -- Insert the bounds for `b ^ 13 / M²`, the second moment and the number of coordinates. What is |
| 993 | -- left is an identity, by the definitions of `identitySecondMoment` and `pairCountScale`. |
| 994 | have h_moment_le : S.tailScale ^ 8 / (S.tailScale ^ 32) ^ min 𝔰.ϱ j * S.identitySecondMoment ≤ |
| 995 | S.cellRankSecondMoment j := |
| 996 | div_tailScale_pow_mul_identitySecondMoment_le_cellRankSecondMoment hj |
| 997 | have h_ratio_le : S.b ^ 13 / (S.M : ℝ) ^ 2 ≤ (S.b ^ 4 * S.M)⁻¹ := b_pow_div_M_sq_le |
| 998 | grw [h_ratio_le, ← h_moment_le, ← h_dim, h_gain] |
| 999 | refine le_of_eq ?_ |
| 1000 | simp only [identitySecondMoment, sourceDim, pairCountScale, Nat.cast_mul, div_pow, inv_pow, |
| 1001 | mul_inv, mul_pow] |
| 1002 | field |
| 1003 | |
| 1004 | end New.Filling |