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

| 1 | module |
| 2 | |
| 3 | import Mathlib.Algebra.Order.Star.Int |
| 4 | public import New.Spanning.RemainingTerms.Box |
| 5 | import Lib.General.Analysis.PackingAndSobolev |
| 6 | import Lib.General.NumberTheory.SUnitsAndClassNumber |
| 7 | import New.Spanning.Unfolding.ReducedPoints |
| 8 | |
| 9 | /-! |
| 10 | # Class cutoffs and counting frames in boxes |
| 11 | |
| 12 | The translates of the cutoff `S.classCutoff c` of a class `c` are shown to add up to one, and |
| 13 | weights bounded by cutoffs are shown to add up to at most a bound for the number of frames in a box. |
| 14 | |
| 15 | ## Main definitions and results |
| 16 | |
| 17 | * `New.Filling.frameImage_eq_frameImage_one_of_close`: a term that moves the frame vectors of a |
| 18 | point in a box very little fixes the frame. |
| 19 | * `New.Filling.encard_image_frameImage_le`: terms `γ` with `γ⁻¹ y` in a box have few images of the |
| 20 | frame, since the frame vectors of the points `γ⁻¹ y` lie in a ball and are separated. |
| 21 | * `New.Filling.tsum_le_of_le_classCutoff_mul`: weights bounded by cutoffs add up to at most that |
| 22 | bound for the number of frames. |
| 23 | |
| 24 | Notions from other files: |
| 25 | * `New.frameImage`, `New.frameVector`: the image `γ f` of the frame `f = (e₁, …, e_ϱ, z)` under a |
| 26 | matrix `γ`, and the vector `y⁻¹ f_a` in Euclidean space. |
| 27 | * `New.frameBox`, `New.besselLength`: the points whose frame vectors have norm at most `ρ`, and the |
| 28 | infimum of `‖s y‖ + 1` (operator norm) over `s` in the Bessel subgroup. |
| 29 | * `New.Filling.frameBoxRadius`, `New.Filling.basisScale`: the number `S.b ^ (37 n)`, and the scales |
| 30 | of the normalised basis at an infinite place. |
| 31 | * `New.Filling.classUnipotent`, `New.Filling.classCutoff`: the congruence group of rational |
| 32 | unipotent elements attached to a class `c`, and a cutoff for its subgroup fixing the frame times |
| 33 | the indicator of the reduced points. |
| 34 | * `New.Filling.termsOver`: the rational `γ` with `h_c⁻¹ γ h_c'` integral and of reduction `s`, where |
| 35 | `h_c` is the representative `New.Filling.classRep` of the class `c`. |
| 36 | * `New.Filling.IsAdmissible`: the standing hypotheses, among them the size inequalities between |
| 37 | `S.b`, `S.realM v` and `S.N`. |
| 38 | -/ |
| 39 | |
| 40 | @[expose] public section |
| 41 | |
| 42 | section BoxPartition |
| 43 | |
| 44 | open ENNReal Fin Matrix Module Set Norms.L2Operator Subgroup |
| 45 | |
| 46 | namespace New.Filling |
| 47 | |
| 48 | variable {E : Type} [Field E] [CMType E] {𝔰 : Shape} {S : Filling E 𝔰} |
| 49 | /-- Let `γ`, `γ'` be rational elements of the unitary group whose images `γ f`, `γ' f` of the frame |
| 50 | `f = (e₁, …, e_ϱ, z)` differ only in the coordinates along the `e_a`. At an infinite place `v`, the |
| 51 | `b`-th frame vectors of `γ⁻¹ y` and `γ'⁻¹ y` then differ by a combination of the vectors `y⁻¹ e_a`. |
| 52 | The coefficient of `y⁻¹ e_a` is the difference of the coordinates along `e_a`, embedded by `Φ v` and |
| 53 | multiplied by the ratio of the scales of `f_b` and `e_a` in the normalised basis at `v` |
| 54 | (`S.basisScale v`). -/ |
| 55 | lemma frameVector_sub_eq_sum {γ γ' : S.G E} |
| 56 | (h_rows : (frameImage (γ : Matrix 𝔰.BesselIndex 𝔰.BesselIndex E)).toRows₂ = |
| 57 | (frameImage (γ' : Matrix 𝔰.BesselIndex 𝔰.BesselIndex E)).toRows₂) |
| 58 | (y : 𝔰.G₁) (v : NumberField.InfinitePlace E) (b : Fin (𝔰.ϱ + 1)) : |
| 59 | frameVector ((S.ratToInf γ v)⁻¹ * y) b - frameVector ((S.ratToInf γ' v)⁻¹ * y) b = |
| 60 | ∑ a : Fin 𝔰.ϱ, |
| 61 | (Φ v ((γ - γ' : Matrix 𝔰.BesselIndex 𝔰.BesselIndex E) (Sum.inl a) (𝔰.besselFrame b)) * |
| 62 | (S.basisScale v (𝔰.besselFrame b) / S.basisScale v (𝔰.besselFrame a.castSucc))) • |
| 63 | frameVector y a.castSucc := by |
| 64 | ext i |
| 65 | -- The coordinates of `(u⁻¹ y)⁻¹ f_b = y⁻¹ (u f_b)`. |
| 66 | have h_coord (u : S.G E) : frameVector ((S.ratToInf u v)⁻¹ * y) b i = |
| 67 | ∑ j : 𝔰.BesselIndex, y⁻¹.val i j * (Φ v (u.val j (𝔰.besselFrame b)) * |
| 68 | (S.basisScale v (𝔰.besselFrame b) / S.basisScale v j)) := by |
| 69 | simp [frameVector, Matrix.mul_apply] |
| 70 | have h_lower (j : 𝔰.MiddleIndex ⊕ Fin 𝔰.ϱ) : |
| 71 | γ.val (Sum.inr j) (𝔰.besselFrame b) = γ'.val (Sum.inr j) (𝔰.besselFrame b) := |
| 72 | congr_fun₂ h_rows j b |
| 73 | rw [PiLp.sub_apply, h_coord, h_coord, Fintype.sum_sum_type, Fintype.sum_sum_type] |
| 74 | simp only [h_lower] |
| 75 | simp [frameVector, mul_sub, mul_comm] |
| 76 | |
| 77 | /-- The indicator of the reduced points for the chosen set of representatives is a partition of |
| 78 | unity in boxes (`IsBoxPartitionOfUnity`) for every class `c`. -/ |
| 79 | lemma isBoxPartitionOfUnity_reducedIndicator [HasPrimitiveRoot5040 E] [S.IsAdmissible] |
| 80 | (c : S.Classes) : |
| 81 | S.IsBoxPartitionOfUnity c S.reducedIndicator := |
| 82 | IsResidueDomain.isBoxPartitionOfUnity (Classical.epsilon_spec S.exists_isResidueDomain) c |
| 83 | |
| 84 | /-- Let `ω` be a partition of unity in boxes for the class `c`: a weight whose translates under |
| 85 | `S.classUnipotent c` add up to one modulo the subgroup fixing the frame, and which vanishes unless |
| 86 | the frame vectors `(y v)⁻¹ f_a` have norm at most `b ^ 27` times `besselLength (y v)`, the infimum |
| 87 | of `‖s (y v)‖ + 1` over `s` in the Bessel subgroup. Here `b = S.b`. If `ω y ≠ 0` and |
| 88 | `besselLength (y v)` is at most `b ^ (6 n + 2) R` with `n = 𝔰.n`, then the frame vectors of `y v` |
| 89 | have norm at most `frameBoxRadius * R`. -/ |
| 90 | lemma IsBoxPartitionOfUnity.mem_frameBox {c : S.Classes} |
| 91 | {ω : (NumberField.InfinitePlace E → 𝔰.G₁) → ℝ≥0∞} |
| 92 | (hω : S.IsBoxPartitionOfUnity c ω) {y : NumberField.InfinitePlace E → 𝔰.G₁} (hy : ω y ≠ 0) |
| 93 | {v : NumberField.InfinitePlace E} {R : ℝ} |
| 94 | (h_size : besselLength (y v) ≤ S.b ^ (6 * 𝔰.n + 2) * R) : |
| 95 | y v ∈ frameBox (S.frameBoxRadius * R) := by |
| 96 | intro a |
| 97 | have hb : 1 ≤ S.b := S.one_le_b |
| 98 | have hb_pos : 0 < S.b := zero_lt_one.trans_le hb |
| 99 | have hR : 0 ≤ R := |
| 100 | nonneg_of_mul_nonneg_right ((besselLength_nonneg (y v)).trans h_size) (pow_pos hb_pos _) |
| 101 | grw [hω.mem_frameBox_besselLength y v hy a, h_size, frameBoxRadius, ← mul_assoc, ← pow_add] |
| 102 | -- Exponents of `b`: `27 + 6 n + 2 ≤ 37 n`. |
| 103 | gcongr |
| 104 | linarith only [S.ten_pow_five_le_varrho] |
| 105 | |
| 106 | /-- The cutoff `S.classCutoff c` of a class `c` is a cutoff for the rational unipotent elements |
| 107 | fixing the frame, times the indicator of the reduced points. If it is not zero at `y` and |
| 108 | `besselLength (y v)`, the infimum of `‖s (y v)‖ + 1` over `s` in the Bessel subgroup, is at most |
| 109 | `b ^ (6 n + 2) R`, with `b = S.b` and `n = 𝔰.n`, then the frame vectors `(y v)⁻¹ f_a` have norm at |
| 110 | most `frameBoxRadius * R`, where `frameBoxRadius = b ^ (37 n)`. -/ |
| 111 | lemma mem_frameBox_of_classCutoff_ne_zero [HasPrimitiveRoot5040 E] [S.IsAdmissible] {c : S.Classes} |
| 112 | {y : NumberField.InfinitePlace E → 𝔰.G₁} (hy : S.classCutoff c y ≠ 0) |
| 113 | {v : NumberField.InfinitePlace E} {R : ℝ} |
| 114 | (h_size : besselLength (y v) ≤ S.b ^ (6 * 𝔰.n + 2) * R) : |
| 115 | y v ∈ frameBox (S.frameBoxRadius * R) := by |
| 116 | rw [classCutoff] at hy |
| 117 | exact (isBoxPartitionOfUnity_reducedIndicator c).mem_frameBox (right_ne_zero_of_mul hy) h_size |
| 118 | |
| 119 | /-- If the cutoff of the class `c` is not zero at `y` and all components of `y` have length at most |
| 120 | `S.b ^ (6 n + 2)` with `n = 𝔰.n` (`InCut`), then `y` lies in the set `boxedPoints` of reduced points |
| 121 | in the cut. -/ |
| 122 | lemma mem_boxedPoints_of_classCutoff_ne_zero {c : S.Classes} |
| 123 | {y : NumberField.InfinitePlace E → 𝔰.G₁} (hy : S.classCutoff c y ≠ 0) |
| 124 | (h_cut : ∀ v : NumberField.InfinitePlace E, InCut (y v) S.b) : y ∈ S.boxedPoints := by |
| 125 | rw [classCutoff] at hy |
| 126 | exact mem_boxedPoints_of_reducedIndicator_ne_zero (right_ne_zero_of_mul hy) h_cut |
| 127 | |
| 128 | /-- The translates of `S.classCutoff c` under the congruence group `S.classUnipotent c` of rational |
| 129 | unipotent elements add up to one at every point `y`. -/ |
| 130 | lemma tsum_classCutoff_eq_one [HasPrimitiveRoot5040 E] [S.IsAdmissible] |
| 131 | (c : S.Classes) (y : NumberField.InfinitePlace E → 𝔰.G₁) : |
| 132 | ∑' u : S.classUnipotent c, S.classCutoff c (S.ratToInf u * y) = 1 := by |
| 133 | obtain ⟨β, hβ, -, hβ_sum⟩ := S.exists_classCutoff_eq_mul c |
| 134 | -- The translates of `β` add up to one on each coset of `S.classUnipotent₀ c`. |
| 135 | rw [hβ] |
| 136 | refine (isBoxPartitionOfUnity_reducedIndicator c).tsum_mul_eq_one y |
| 137 | (fun u ↦ β (S.ratToInf u * y)) fun γ ↦ ?_ |
| 138 | simpa [mul_assoc] using hβ_sum (S.ratToInf γ * y) |
| 139 | |
| 140 | /-- Let `f = (e₁, …, e_ϱ, z)` be the frame. If the hermitian products `S.frameProducts g b a` of |
| 141 | `f_b` with `g f_a` equal those of `f_b` with `f_a` for all `b`, then `g` moves `f_a` only along the |
| 142 | vectors `e_i`: all other coordinates of `g f_a` and `f_a` agree. -/ |
| 143 | lemma frameImage_inr_eq_of_frameProducts_eq {g : S.G E} {a : Fin (𝔰.ϱ + 1)} |
| 144 | (h : ∀ b : Fin (𝔰.ϱ + 1), S.frameProducts g b a = S.frameProducts 1 b a) : |
| 145 | ∀ i : 𝔰.MiddleIndex ⊕ Fin 𝔰.ϱ, |
| 146 | frameImage (g : Matrix 𝔰.BesselIndex 𝔰.BesselIndex E) (Sum.inr i) a = |
| 147 | frameImage 1 (Sum.inr i) a := by |
| 148 | -- `h` gives the coordinates along `e*_i` and `z`. Unitarity then says that the middle part of |
| 149 | -- `g f_a - f_a` is isotropic for `S.ratMiddle E`, which is anisotropic off `z`, so that part |
| 150 | -- vanishes too. |
| 151 | let w (i : 𝔰.MiddleIndex ⊕ Fin 𝔰.ϱ) : E := |
| 152 | (g - 1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex E) (Sum.inr i) (𝔰.besselFrame a) |
| 153 | have h_dual (i : Fin 𝔰.ϱ) : w (Sum.inr i) = 0 := by |
| 154 | cases a using lastCases <;> |
| 155 | simpa [w, frameGram, Matrix.mul_apply, Matrix.one_apply] using h i.castSucc |
| 156 | have h_z : w (Sum.inl (Sum.inr ())) = 0 := by |
| 157 | cases a using lastCases <;> |
| 158 | simpa [w, frameGram, splitGram, middleGram, Matrix.mul_apply, Matrix.one_apply, sub_eq_zero, |
| 159 | S.N_prime.ne_zero] using h (last 𝔰.ϱ) |
| 160 | have h_unitary : |
| 161 | ((g : Matrix 𝔰.BesselIndex 𝔰.BesselIndex E)ᴴ * (S.ratMiddle E).splitGram * g).diag |
| 162 | (𝔰.besselFrame a) = (S.ratMiddle E).splitGram.diag (𝔰.besselFrame a) := |
| 163 | congr_fun₂ (mem_unitaryGroupOf_iff.1 g.prop) (𝔰.besselFrame a) (𝔰.besselFrame a) |
| 164 | have h_isotropic : star (w ∘ Sum.inl) ⬝ᵥ S.ratMiddle E *ᵥ (w ∘ Sum.inl) = 0 := by |
| 165 | -- Expand `h_unitary`; the terms pairing `e_i` with `e*_i` vanish by `h_dual`. |
| 166 | cases a using lastCases with |
| 167 | | last => |
| 168 | have h_dual_zero (i : Fin 𝔰.ϱ) : g.val (Sum.inr (Sum.inr i)) 𝔰.z = 0 := by |
| 169 | simpa [w, Matrix.one_apply] using h_dual i |
| 170 | have h_z_one : g.val 𝔰.z 𝔰.z = 1 := by simpa [w, sub_eq_zero] using h_z |
| 171 | simpa [w, splitGram, middleGram, mulVec, dotProduct, Matrix.mul_apply, Matrix.one_apply, |
| 172 | h_dual_zero, h_z_one] using h_unitary |
| 173 | | cast a => |
| 174 | have h_dual_zero (i : Fin 𝔰.ϱ) : g.val (Sum.inr (Sum.inr i)) (Sum.inl a) = 0 := by |
| 175 | simpa [w, Matrix.one_apply] using h_dual i |
| 176 | simpa [w, splitGram, middleGram, mulVec, dotProduct, Matrix.mul_apply, Matrix.one_apply, |
| 177 | h_dual_zero, mul_assoc] using h_unitary |
| 178 | have h_middle : w ∘ Sum.inl = 0 := S.eq_zero_of_ratMiddle_form_eq_zero _ h_z h_isotropic |
| 179 | rintro (j | i) |
| 180 | · exact sub_eq_zero.1 (congr_fun h_middle j) |
| 181 | · exact sub_eq_zero.1 (h_dual i) |
| 182 | |
| 183 | /-- The hermitian products `S.frameProducts` of the frame vector `f_b` with `γ f_a` and with |
| 184 | `γ' f_a` differ, under the embedding `Φ v` at the place `v`, by at most `S.N` times the norm of |
| 185 | `y⁻¹ f_b` times the distance of the `a`-th frame vectors of `γ⁻¹ y` and `γ'⁻¹ y`. -/ |
| 186 | lemma norm_Φ_frameProducts_sub_le [S.IsAdmissible] |
| 187 | (γ γ' : S.G E) (y : 𝔰.G₁) (v : NumberField.InfinitePlace E) (a b : Fin (𝔰.ϱ + 1)) : |
| 188 | ‖Φ v (S.frameProducts γ b a - S.frameProducts γ' b a)‖ ≤ |
| 189 | S.N * (‖frameVector y b‖ * |
| 190 | ‖frameVector ((S.ratToInf γ v)⁻¹ * y) a - frameVector ((S.ratToInf γ' v)⁻¹ * y) a‖) := by |
| 191 | let F (u : S.G E) : EuclideanSpace ℂ 𝔰.BesselIndex := frameVector ((S.ratToInf u v)⁻¹ * y) a |
| 192 | let t : ℝ := S.realM v ^ (𝔰.ϱ - b) * S.realM v ^ (𝔰.ϱ - a) |
| 193 | have ht : 1 ≤ |t| := by |
| 194 | rw [abs_mul, abs_pow, abs_pow] |
| 195 | bound [S.one_le_abs_realM] |
| 196 | have hN : (S.N : ℝ) ≠ 0 := mod_cast S.N_prime.ne_zero |
| 197 | have h_inner (u : S.G E) : inner ℂ (frameVector y b) (toEuclideanLin 𝔰.J₁ (F u)) = |
| 198 | (t / S.N : ℝ) * Φ v (S.frameProducts u b a) := by |
| 199 | rw [← realFrameGram_eq_inner, realFrameGram_ratToInf] |
| 200 | have h_sub : inner ℂ (frameVector y b) (toEuclideanLin 𝔰.J₁ (F γ - F γ')) = |
| 201 | (t / S.N : ℝ) * Φ v (S.frameProducts γ b a - S.frameProducts γ' b a) := by |
| 202 | rw [map_sub, inner_sub_right, h_inner, h_inner, map_sub, mul_sub] |
| 203 | calc _ ≤ |t| * ‖Φ v (S.frameProducts γ b a - S.frameProducts γ' b a)‖ := |
| 204 | le_mul_of_one_le_left (norm_nonneg _) ht |
| 205 | _ = S.N * ‖inner ℂ (frameVector y b) (toEuclideanLin 𝔰.J₁ (F γ - F γ'))‖ := by |
| 206 | rw [h_sub, norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_div, Nat.abs_cast] |
| 207 | field |
| 208 | _ ≤ S.N * (‖frameVector y b‖ * ‖F γ - F γ'‖) := by grw [norm_inner_J₁_le] |
| 209 | |
| 210 | /-- For a term `γ` over `(c, s, c')`, the coordinates along the `e_a` of the images `γ f_b` of the |
| 211 | frame vectors `e₁, …, e_ϱ, z` are algebraic integers. -/ |
| 212 | lemma termsOver.isIntegral_inl_besselFrame {c c' : S.Classes} {s : S.ResidueGL} {γ : S.G E} |
| 213 | (hγ : γ ∈ S.termsOver c s c') (a : Fin 𝔰.ϱ) (b : Fin (𝔰.ϱ + 1)) : |
| 214 | IsIntegral ℤ (γ.val (Sum.inl a) (𝔰.besselFrame b)) := by |
| 215 | have h_int : (S.translateByClassReps c c' γ).val (Sum.inl a) (𝔰.besselFrame b) ∈ Ô E := |
| 216 | termsOver.isIntMatrix_translateByClassReps hγ (Sum.inl a) (𝔰.besselFrame b) |
| 217 | -- The change to the lattice bases of `c` and `c'` keeps this entry. |
| 218 | cases b using lastCases <;> |
| 219 | simpa [coe_translateByClassReps, classBasis, toBesselH, besselLatticeBasis, Matrix.mul_apply, |
| 220 | Matrix.one_apply] using h_int |
| 221 | |
| 222 | /-- The scales `S.basisScale v` that normalise the basis at the place `v` |
| 223 | (`S.realM v ^ (ϱ - a + 1) / √N` on `e_a`, `1 / √N` on `z`) of two frame vectors differ by a factor |
| 224 | of at most `S.b ^ (23 ϱ)`. -/ |
| 225 | lemma one_le_pow_mul_norm_basisScale_div [S.IsAdmissible] |
| 226 | (v : NumberField.InfinitePlace E) (a b : Fin (𝔰.ϱ + 1)) : |
| 227 | 1 ≤ S.b ^ (23 * 𝔰.ϱ) * |
| 228 | ‖S.basisScale v (𝔰.besselFrame b) / S.basisScale v (𝔰.besselFrame a)‖ := by |
| 229 | have h_realM : 1 ≤ |S.realM v| := S.one_le_abs_realM v |
| 230 | have hN : (√S.N : ℂ) ≠ 0 := by simp [S.N_prime.ne_zero] |
| 231 | have h_quot : ‖S.basisScale v (𝔰.besselFrame b) / S.basisScale v (𝔰.besselFrame a)‖ = |
| 232 | |S.realM v| ^ (𝔰.ϱ - b) / |S.realM v| ^ (𝔰.ϱ - a) := by |
| 233 | rw [basisScale_besselFrame, basisScale_besselFrame, div_div_div_cancel_right₀ hN] |
| 234 | simp |
| 235 | rw [h_quot, ← mul_div_assoc, one_le_div₀ (by positivity)] |
| 236 | calc |S.realM v| ^ (𝔰.ϱ - a) ≤ (S.b ^ 23) ^ 𝔰.ϱ := by grw [Nat.sub_le, abs_realM_le] |
| 237 | _ ≤ S.b ^ (23 * 𝔰.ϱ) * |S.realM v| ^ (𝔰.ϱ - b) := by |
| 238 | rw [← pow_mul] |
| 239 | exact le_mul_of_one_le_right (pow_nonneg (zero_le_one.trans S.one_le_b) _) |
| 240 | (one_le_pow₀ h_realM) |
| 241 | |
| 242 | /-- Let `f = (e₁, …, e_ϱ, z)` be the frame. Suppose that `γ f` and `γ' f` differ only along the |
| 243 | `e_x`, and that `γ f_b` and `γ' f_b` have the same coordinates along `e_x` for `x > a`. Then the |
| 244 | difference of their coordinates along `e_a`, times the ratio of the scales of `f_b` and `e_a` in |
| 245 | the normalised basis at `v` (`S.basisScale v`), is at most the operator norm `‖w y‖` times the |
| 246 | distance of the `b`-th frame vectors of `γ⁻¹ y` and `γ'⁻¹ y`, for every `w` in the unipotent |
| 247 | subgroup `besselU`, whose rows along the `e_a` are unitriangular. -/ |
| 248 | lemma norm_Φ_sub_mul_norm_basisScale_div_le {γ γ' : S.G E} |
| 249 | (h_rows : (frameImage (γ : Matrix 𝔰.BesselIndex 𝔰.BesselIndex E)).toRows₂ = |
| 250 | (frameImage (γ' : Matrix 𝔰.BesselIndex 𝔰.BesselIndex E)).toRows₂) |
| 251 | {a : Fin 𝔰.ϱ} {b : Fin (𝔰.ϱ + 1)} |
| 252 | (h_later : ∀ x : Fin 𝔰.ϱ, a < x → |
| 253 | γ.val (Sum.inl x) (𝔰.besselFrame b) = γ'.val (Sum.inl x) (𝔰.besselFrame b)) |
| 254 | {w : 𝔰.G₁} (hw : w ∈ besselU) (y : 𝔰.G₁) (v : NumberField.InfinitePlace E) : |
| 255 | ‖Φ v (γ.val (Sum.inl a) (𝔰.besselFrame b) - γ'.val (Sum.inl a) (𝔰.besselFrame b))‖ * |
| 256 | ‖S.basisScale v (𝔰.besselFrame b) / S.basisScale v (𝔰.besselFrame a.castSucc)‖ ≤ |
| 257 | ‖((w * y : 𝔰.G₁) : Matrix 𝔰.BesselIndex 𝔰.BesselIndex ℂ)‖ * |
| 258 | ‖frameVector ((S.ratToInf γ v)⁻¹ * y) b - frameVector ((S.ratToInf γ' v)⁻¹ * y) b‖ := by |
| 259 | have h_triangular (x : Fin 𝔰.ϱ) (hx : x ≤ a) : |
| 260 | w.val (Sum.inl a) (𝔰.besselFrame x.castSucc) = if a = x then 1 else 0 := by |
| 261 | simpa [Matrix.one_apply] using mem_besselU.1 hw (Sum.inl a) (Sum.inl x) hx |
| 262 | rw [frameVector_sub_eq_sum h_rows, ← norm_mul] |
| 263 | refine Eq.trans_le ?_ (norm_sum_le_mul_norm_sum_frameVector castSucc _ (Sum.inl a)) |
| 264 | -- Only the term `x = a` is left in row `a` of `w` applied to the combination. |
| 265 | rw [Fintype.sum_eq_single a, h_triangular a le_rfl, ite_eq_left rfl, mul_one, Matrix.sub_apply] |
| 266 | intro x hx |
| 267 | rcases hx.lt_or_gt with h_lt | h_gt |
| 268 | · rw [h_triangular x h_lt.le, ite_eq_right hx.symm, mul_zero] |
| 269 | · rw [Matrix.sub_apply, h_later x h_gt, sub_self, map_zero, zero_mul, zero_mul] |
| 270 | |
| 271 | variable [S.IsAdmissible] |
| 272 | |
| 273 | /-- **Rigidity of frames.** Let `E` be a CM field and `S` admissible filling data over `E` |
| 274 | (`IsAdmissible`), with parameters `b = S.b` and `N = S.N`, a prime. Let `g` be a term over some |
| 275 | `(d, r, d')`: a rational element with `h_d⁻¹ g h_d'` integral and of reduction `r`, where `h_d` is |
| 276 | the representative of the class `d` (`termsOver`). Let `R ≥ 1`, `n = 𝔰.n` and |
| 277 | `ρ = frameBoxRadius * R` with `frameBoxRadius = b ^ (37 n)`. The frame is `f = (e₁, …, e_ϱ, 𝔰.z)`. |
| 278 | Let `z` be a point at the infinite places such that at every place the infimum `besselLength` of |
| 279 | `‖s z‖ + 1` over the Bessel subgroup is at most `b ^ (6 n + 2) R` and the frame vectors `z⁻¹ f_a` |
| 280 | have norm at most `ρ`. If the frame vectors of `g⁻¹ z` and `z` are at distance less than `(N ρ)⁻¹` |
| 281 | at every place, then `g` fixes the frame, that is, `g f = f`. -/ |
| 282 | lemma frameImage_eq_frameImage_one_of_close {g : S.G E} {d : S.Classes} {r : S.ResidueGL} |
| 283 | {d' : S.Classes} |
| 284 | (hg : g ∈ S.termsOver d r d') {z : NumberField.InfinitePlace E → 𝔰.G₁} {R : ℝ} (hR : 1 ≤ R) |
| 285 | (h_box : ∀ v : NumberField.InfinitePlace E, z v ∈ frameBox (S.frameBoxRadius * R)) |
| 286 | (h_size : ∀ v : NumberField.InfinitePlace E, besselLength (z v) ≤ S.b ^ (6 * 𝔰.n + 2) * R) |
| 287 | (h_close : ∀ (v : NumberField.InfinitePlace E) (a : Fin (𝔰.ϱ + 1)), |
| 288 | ‖frameVector ((S.ratToInf g v)⁻¹ * z v) a - frameVector (z v) a‖ < |
| 289 | (S.N * (S.frameBoxRadius * R))⁻¹) : |
| 290 | frameImage (g : Matrix 𝔰.BesselIndex 𝔰.BesselIndex E) = frameImage 1 := by |
| 291 | have hb_one : 1 ≤ S.b := S.one_le_b |
| 292 | have hρ : 0 < S.frameBoxRadius * R := by |
| 293 | rw [frameBoxRadius] |
| 294 | positivity |
| 295 | have hNρ : 0 < S.N * (S.frameBoxRadius * R) := mul_pos (mod_cast S.N_prime.pos) hρ |
| 296 | let δ (v : NumberField.InfinitePlace E) (a : Fin (𝔰.ϱ + 1)) : ℝ := |
| 297 | ‖frameVector ((S.ratToInf g v)⁻¹ * z v) a - frameVector ((S.ratToInf 1 v)⁻¹ * z v) a‖ |
| 298 | -- An integral function whose change from `1` to `g` is at most `N ρ` times the move `δ` of a |
| 299 | -- frame vector does not change: the change is an algebraic integer of norm `< 1` at all places. |
| 300 | have h_rigid {f : S.G E → E} |
| 301 | (h_int : ∀ {c : S.Classes} {s : S.ResidueGL} {c' : S.Classes} {γ : S.G E}, |
| 302 | γ ∈ S.termsOver c s c' → IsIntegral ℤ (f γ)) |
| 303 | (a : Fin (𝔰.ϱ + 1)) |
| 304 | (h_le : ∀ v : NumberField.InfinitePlace E, |
| 305 | ‖Φ v (f g - f 1)‖ ≤ S.N * (S.frameBoxRadius * R) * δ v a) : f g = f 1 := by |
| 306 | have h_sub : IsIntegral ℤ (f g - f 1) := (h_int hg).sub (h_int (S.classUnipotent d).one_mem.2) |
| 307 | refine sub_eq_zero.1 (eq_zero_of_forall_norm_lt_one h_sub fun v ↦ (h_le v).trans_lt ?_) |
| 308 | rw [← lt_div_iff₀' hNρ] |
| 309 | simpa [δ] using h_close v a |
| 310 | have h_gram (a b : Fin (𝔰.ϱ + 1)) : S.frameProducts g b a = S.frameProducts 1 b a := by |
| 311 | refine h_rigid (fun hγ ↦ isIntegral_frameProducts hγ b a) a fun v ↦ ?_ |
| 312 | grw [norm_Φ_frameProducts_sub_le g 1 (z v), h_box v b, ← mul_assoc] |
| 313 | have h_lower (i : 𝔰.MiddleIndex ⊕ Fin 𝔰.ϱ) (b : Fin (𝔰.ϱ + 1)) : |
| 314 | frameImage (g : Matrix 𝔰.BesselIndex 𝔰.BesselIndex E) (Sum.inr i) b = |
| 315 | frameImage 1 (Sum.inr i) b := |
| 316 | frameImage_inr_eq_of_frameProducts_eq (h_gram b) i |
| 317 | -- The coordinates along the `e_a` remain: downward induction on `a`. |
| 318 | refine Matrix.ext (Sum.forall.2 ⟨fun a b ↦ ?_, h_lower⟩) |
| 319 | induction a using WellFoundedGT.induction with | ind a ih => ?_ |
| 320 | refine h_rigid (f := fun γ ↦ γ.val (Sum.inl a) (𝔰.besselFrame b)) |
| 321 | (fun hγ ↦ termsOver.isIntegral_inl_besselFrame hγ a b) b fun v ↦ ?_ |
| 322 | obtain ⟨w, hw, hw_norm⟩ : ∃ w ∈ besselU, |
| 323 | ‖((w * z v : 𝔰.G₁) : Matrix 𝔰.BesselIndex 𝔰.BesselIndex ℂ)‖ ≤ S.b ^ (6 * 𝔰.n + 2) * R := |
| 324 | RealPlace.exists_norm_le_of_besselLength_le (h_size v) |
| 325 | have h_exp : S.b ^ (23 * 𝔰.ϱ) * S.b ^ (6 * 𝔰.n + 2) ≤ S.frameBoxRadius := by |
| 326 | rw [frameBoxRadius, ← pow_add] |
| 327 | gcongr |
| 328 | linarith only [S.ten_pow_five_le_varrho] |
| 329 | set ε : ℝ := ‖Φ v (g.val (Sum.inl a) (𝔰.besselFrame b) - |
| 330 | (1 : S.G E).val (Sum.inl a) (𝔰.besselFrame b))‖ |
| 331 | calc ε ≤ ε * (S.b ^ (23 * 𝔰.ϱ) * |
| 332 | ‖S.basisScale v (𝔰.besselFrame b) / S.basisScale v (𝔰.besselFrame a.castSucc)‖) := |
| 333 | le_mul_of_one_le_right (norm_nonneg _) (one_le_pow_mul_norm_basisScale_div v _ b) |
| 334 | _ ≤ S.b ^ (23 * 𝔰.ϱ) * (S.b ^ (6 * 𝔰.n + 2) * R * δ v b) := by |
| 335 | grw [mul_left_comm, norm_Φ_sub_mul_norm_basisScale_div_le (Matrix.ext h_lower) ih hw (z v), |
| 336 | hw_norm] |
| 337 | _ = S.b ^ (23 * 𝔰.ϱ) * S.b ^ (6 * 𝔰.n + 2) * R * δ v b := by ring |
| 338 | _ ≤ S.N * (S.frameBoxRadius * R) * δ v b := by |
| 339 | grw [h_exp, ← S.N_prime.one_le, Nat.cast_one, one_mul] |
| 340 | |
| 341 | variable [HasPrimitiveRoot5040 E] |
| 342 | |
| 343 | omit [HasPrimitiveRoot5040 E] in |
| 344 | /-- **Packing of frames.** Let `E` be a CM field, `𝔰` a shape (`𝔰.ϱ` hyperbolic planes), and `S` |
| 345 | admissible data of the filling theorem over `E` (`IsAdmissible`), with parameter `b = S.b`. Let |
| 346 | `n = 𝔰.n`, `R ≥ 1` and `frameBoxRadius = b ^ (37 n)`. The frame is `f = (e₁, …, e_ϱ, z)`, and the |
| 347 | frame vectors of `x ∈ 𝔰.G₁` are the `x⁻¹ f_a` (`frameVector x a`). Let `A` be a set of rational `γ`, |
| 348 | each in `termsOver c s c'` for the given class `c` and some `s`, `c'`. Let `y` be a point of `𝔰.G₁` |
| 349 | at each infinite place. Suppose that for `γ ∈ A` the point `x = (S.ratToInf γ)⁻¹ y` has, at every |
| 350 | place, infimum of `‖s x‖ + 1` over the Bessel subgroup (`besselLength`) at most `b ^ (6 n + 2) R`. |
| 351 | Suppose also that it has frame vectors of norm at most `frameBoxRadius * R` (`frameBox`), and that |
| 352 | the frame vectors of any two of these points differ by an element of the real subspace `V`. Then the |
| 353 | images `γ f` (`frameImage`) of the frame take at most `(b ^ (6 n ^ 2) R ^ 2) ^ dim V` values on |
| 354 | `A`. -/ |
| 355 | theorem encard_image_frameImage_le {c : S.Classes} {y : NumberField.InfinitePlace E → 𝔰.G₁} |
| 356 | {R : ℝ} (hR : 1 ≤ R) {A : Set (S.G E)} |
| 357 | (h_over : ∀ γ ∈ A, ∃ (s : S.ResidueGL) (c' : S.Classes), γ ∈ S.termsOver c s c') |
| 358 | (h_size : ∀ γ ∈ A, ∀ v : NumberField.InfinitePlace E, |
| 359 | besselLength (((S.ratToInf γ)⁻¹ * y) v) ≤ S.b ^ (6 * 𝔰.n + 2) * R) |
| 360 | (h_box : ∀ γ ∈ A, ∀ v : NumberField.InfinitePlace E, |
| 361 | ((S.ratToInf γ)⁻¹ * y) v ∈ frameBox (S.frameBoxRadius * R)) |
| 362 | {V : Submodule ℝ |
| 363 | (NumberField.InfinitePlace E → Fin (𝔰.ϱ + 1) → EuclideanSpace ℂ 𝔰.BesselIndex)} |
| 364 | (hV : ∀ γ ∈ A, ∀ γ' ∈ A, |
| 365 | (fun v : NumberField.InfinitePlace E ↦ frameVector (((S.ratToInf γ)⁻¹ * y) v)) - |
| 366 | (fun v : NumberField.InfinitePlace E ↦ frameVector (((S.ratToInf γ')⁻¹ * y) v)) ∈ V) : |
| 367 | ((fun γ : S.G E ↦ frameImage (γ : Matrix 𝔰.BesselIndex 𝔰.BesselIndex E)) '' A).encard ≤ |
| 368 | ENNReal.ofReal ((S.b ^ (6 * 𝔰.n ^ 2) * R ^ 2) ^ finrank ℝ V) := by |
| 369 | -- With `ρ = frameBoxRadius * R`, terms with different frames give points of `V` at distance at |
| 370 | -- least `(N ρ)⁻¹` (`frameImage_eq_frameImage_one_of_close`) in the ball of radius `2 ρ`; |
| 371 | -- `encard_le_of_separated` compares volumes. |
| 372 | rcases A.eq_empty_or_nonempty with rfl | ⟨γ₀, hγ₀⟩ |
| 373 | · simp |
| 374 | have hb : 1000 ≤ S.b := S.thousand_le_b |
| 375 | set ρ : ℝ := S.frameBoxRadius * R with hρ_eq |
| 376 | have hρ : 0 < ρ := by |
| 377 | rw [hρ_eq, frameBoxRadius] |
| 378 | positivity |
| 379 | have hNρ : 0 < S.N * ρ := mul_pos (mod_cast S.N_prime.pos) hρ |
| 380 | let frame (p : A) : Matrix 𝔰.BesselIndex (Fin (𝔰.ϱ + 1)) E := |
| 381 | frameImage (p.val : Matrix 𝔰.BesselIndex 𝔰.BesselIndex E) |
| 382 | obtain ⟨u, h_image, h_inj⟩ : ∃ u : Set A, frame '' u = range frame ∧ InjOn frame u := |
| 383 | exists_image_eq_injOn_of_subset_range le_rfl |
| 384 | let F (γ : S.G E) (v : NumberField.InfinitePlace E) : |
| 385 | Fin (𝔰.ϱ + 1) → EuclideanSpace ℂ 𝔰.BesselIndex := |
| 386 | frameVector (((S.ratToInf γ)⁻¹ * y) v) |
| 387 | let f (p : A) : V := ⟨F γ₀ - F p, hV γ₀ hγ₀ p p.property⟩ |
| 388 | have h_sep : u.Pairwise fun p q ↦ (S.N * ρ)⁻¹ ≤ ‖f p - f q‖ := by |
| 389 | refine fun p hp q hq h_ne ↦ not_lt.1 fun h_close ↦ h_ne (h_inj hp hq ?_) |
| 390 | obtain ⟨s, d, hp_over⟩ : ∃ (s : S.ResidueGL) (d : S.Classes), p.val ∈ S.termsOver c s d := |
| 391 | h_over p p.property |
| 392 | obtain ⟨s', d', hq_over⟩ : ∃ (s : S.ResidueGL) (d : S.Classes), q.val ∈ S.termsOver c s d := |
| 393 | h_over q q.property |
| 394 | -- The inverse of the term `p⁻¹ q` sends `p⁻¹ y` to `q⁻¹ y`, whose frame vectors are close. |
| 395 | refine frameImage_inv_mul_eq_iff.1 (frameImage_eq_frameImage_one_of_close |
| 396 | (termsOver.mul (termsOver.inv hp_over) hq_over) hR |
| 397 | (h_box p p.property) (h_size p p.property) fun v a ↦ lt_of_le_of_lt ?_ h_close) |
| 398 | have h_point : (S.ratToInf (p.val⁻¹ * q.val) v)⁻¹ * ((S.ratToInf p.val)⁻¹ * y) v = |
| 399 | ((S.ratToInf q.val)⁻¹ * y) v := by |
| 400 | simp [mul_assoc] |
| 401 | have h_diff : ‖f p - f q‖ = ‖F q - F p‖ := by |
| 402 | rw [← Submodule.norm_coe, Submodule.coe_sub, ← sub_sub_sub_cancel_left (F p) (F q) (F γ₀)] |
| 403 | rw [h_point, h_diff] |
| 404 | exact (norm_le_pi_norm ((F q - F p) v) a).trans (norm_le_pi_norm (F q - F p) v) |
| 405 | have h_norm (γ : S.G E) (hγ : γ ∈ A) : ‖F γ‖ ≤ ρ := |
| 406 | (pi_norm_le_iff_of_nonneg hρ.le).2 fun v ↦ (pi_norm_le_iff_of_nonneg hρ.le).2 (h_box γ hγ v) |
| 407 | have h_ball (p : A) (_ : p ∈ u) : ‖f p‖ ≤ ρ + ρ := |
| 408 | (norm_sub_le_of_le (h_norm γ₀ hγ₀) (h_norm p p.property) : ‖F γ₀ - F p‖ ≤ ρ + ρ) |
| 409 | have h_one : 1 ≤ S.b ^ (60 * 𝔰.n) * ρ ^ 2 := by |
| 410 | have hb_one : 1 ≤ S.b := S.one_le_b |
| 411 | rw [hρ_eq, frameBoxRadius] |
| 412 | bound |
| 413 | have h_ratio : 1 + 2 * (ρ + ρ) / (S.N * ρ)⁻¹ ≤ S.b ^ (6 * 𝔰.n ^ 2) * R ^ 2 := |
| 414 | calc 1 + 2 * (ρ + ρ) / (S.N * ρ)⁻¹ = 1 + 4 * (S.N * ρ ^ 2) := by |
| 415 | rw [div_inv_eq_mul] |
| 416 | ring |
| 417 | _ ≤ 5 * (S.b ^ (60 * 𝔰.n) * ρ ^ 2) := by |
| 418 | grw [IsAdmissible.N_le] |
| 419 | linarith |
| 420 | _ ≤ S.b * (S.b ^ (60 * 𝔰.n) * ρ ^ 2) := by |
| 421 | gcongr |
| 422 | linarith |
| 423 | _ = S.b ^ (74 * 𝔰.n + 60 * 𝔰.n + 1) * R ^ 2 := by |
| 424 | rw [hρ_eq, frameBoxRadius] |
| 425 | ring |
| 426 | _ ≤ S.b ^ (6 * 𝔰.n ^ 2) * R ^ 2 := by |
| 427 | gcongr |
| 428 | · exact S.one_le_b |
| 429 | · have h_large : 23 ≤ 𝔰.n := by linarith [S.ten_pow_five_le_varrho] |
| 430 | nlinarith |
| 431 | rw [image_eq_range, ← h_image, h_inj.encard_image] |
| 432 | grw [encard_le_of_separated (inv_pos.2 hNρ) h_sep h_ball, h_ratio] |
| 433 | |
| 434 | /-- Let `k p` be classes and `γ p` rational elements with `p ↦ (k p, γ p)` injective, and let `B` |
| 435 | be a nonempty set of indices with `k a = k b` and `(γ a)⁻¹ * γ b` in `S.classUnipotent₀ (k a)` for |
| 436 | all `a`, `b` in `B`. If each weight `w q` with `q ∈ B` is at most `x` times `S.classCutoff (k q)` |
| 437 | at `(γ q)⁻¹ y`, then the weights on `B` add up to at most `x`. -/ |
| 438 | private lemma tsum_le_of_forall_mem_classUnipotent₀ {α : Type*} |
| 439 | {y : NumberField.InfinitePlace E → 𝔰.G₁} {x : ℝ≥0∞} {k : α → S.Classes} {γ : α → S.G E} |
| 440 | {w : α → ℝ≥0∞} (h_inj : ∀ {p q : α}, k p = k q → γ p = γ q → p = q) {B : Set α} {p : α} |
| 441 | (hp : p ∈ B) |
| 442 | (h_rel : ∀ a ∈ B, ∀ b ∈ B, k a = k b ∧ (γ a)⁻¹ * γ b ∈ S.classUnipotent₀ (k a)) |
| 443 | (h_le : ∀ q ∈ B, w q ≤ S.classCutoff (k q) ((S.ratToInf (γ q))⁻¹ * y) * x) : |
| 444 | ∑' q : B, w q ≤ x := by |
| 445 | -- `q ↦ (γ q)⁻¹ * γ p` injects `B` into the unipotent group, over which the cutoffs sum to one. |
| 446 | have h_class (q : B) : k q = k p := (h_rel q q.property p hp).1 |
| 447 | have h_mem (q : B) : (γ q)⁻¹ * γ p ∈ S.classUnipotent (k p) := by |
| 448 | obtain ⟨h_unipotent, -⟩ : (γ q)⁻¹ * γ p ∈ S.classUnipotent₀ (k q) := (h_rel q q.2 p hp).2 |
| 449 | rwa [← h_class q] |
| 450 | let ι (q : B) : S.classUnipotent (k p) := ⟨(γ q)⁻¹ * γ p, h_mem q⟩ |
| 451 | have hι : ι.Injective := fun q q' h_eq ↦ |
| 452 | Subtype.ext (h_inj ((h_class q).trans (h_class q').symm) (by simpa [ι] using h_eq)) |
| 453 | let β (u : S.classUnipotent (k p)) : ℝ≥0∞ := |
| 454 | S.classCutoff (k p) (S.ratToInf u * (S.ratToInf (γ p)⁻¹ * y)) |
| 455 | calc |
| 456 | ∑' q : B, w q ≤ ∑' q : B, β (ι q) * x := by |
| 457 | gcongr with q |
| 458 | simpa [β, ι, h_class q] using h_le q q.property |
| 459 | _ ≤ (∑' u : S.classUnipotent (k p), β u) * x := by |
| 460 | grw [← tsum_comp_le_tsum_of_injective hι, ENNReal.tsum_mul_right] |
| 461 | _ = x := by rw [tsum_classCutoff_eq_one, one_mul] |
| 462 | |
| 463 | /-- **Packing of weights.** Let `E` be a CM field with a primitive 5040-th root of unity and `S` |
| 464 | admissible filling data over `E` (`IsAdmissible`). Let `k p` be classes and `γ p` rational elements |
| 465 | with `p ↦ (k p, γ p)` injective, `w p` weights, `y` a point at the infinite places, `R ≥ 1`, |
| 466 | `b = S.b` and `n = 𝔰.n`. Suppose that for `p` in the support of `w` the element `γ p` is a term |
| 467 | over `(c, s, k p)` (`termsOver`), the point `x_p = (γ p)⁻¹ y` has at every place infimum of |
| 468 | `‖s x_p‖ + 1` over the Bessel subgroup (`besselLength`) at most `b ^ (6 n + 2) R`, and `w p` is at |
| 469 | most `x` times `S.classCutoff (k p)` at `x_p`, a cutoff for the rational unipotent elements fixing |
| 470 | the frame `f = (e₁, …, e_ϱ, z)` times the indicator of the reduced points. If the frame vectors |
| 471 | `x_p⁻¹ f_a` of any two of these points differ by an element of the real subspace `V`, then the |
| 472 | weights add up to at most `(b ^ (6 n ^ 2) R ^ 2) ^ dim V * x`. -/ |
| 473 | lemma tsum_le_of_le_classCutoff_mul {c : S.Classes} {s : S.ResidueGL} {α : Type*} |
| 474 | {y : NumberField.InfinitePlace E → 𝔰.G₁} {x : ℝ≥0∞} {R : ℝ} |
| 475 | {k : α → S.Classes} {γ : α → S.G E} {w : α → ℝ≥0∞} (hR : 1 ≤ R) |
| 476 | (h_inj : ∀ {p q : α}, k p = k q → γ p = γ q → p = q) |
| 477 | (h_over : ∀ p ∈ w.support, γ p ∈ S.termsOver c s (k p)) |
| 478 | (h_size : ∀ p ∈ w.support, ∀ v : NumberField.InfinitePlace E, |
| 479 | besselLength (((S.ratToInf (γ p))⁻¹ * y) v) ≤ S.b ^ (6 * 𝔰.n + 2) * R) |
| 480 | (h_le : ∀ p ∈ w.support, w p ≤ S.classCutoff (k p) ((S.ratToInf (γ p))⁻¹ * y) * x) |
| 481 | {V : Submodule ℝ |
| 482 | (NumberField.InfinitePlace E → Fin (𝔰.ϱ + 1) → EuclideanSpace ℂ 𝔰.BesselIndex)} |
| 483 | (hV : ∀ p ∈ w.support, ∀ q ∈ w.support, |
| 484 | (fun v : NumberField.InfinitePlace E ↦ frameVector (((S.ratToInf (γ p))⁻¹ * y) v)) - |
| 485 | (fun v : NumberField.InfinitePlace E ↦ frameVector (((S.ratToInf (γ q))⁻¹ * y) v)) ∈ V) : |
| 486 | ∑' p : α, w p ≤ ENNReal.ofReal ((S.b ^ (6 * 𝔰.n ^ 2) * R ^ 2) ^ finrank ℝ V) * x := by |
| 487 | -- Colour the terms by their frames. Terms with the same frame differ by an element of |
| 488 | -- `S.classUnipotent₀`, so their weights are at most `x` times terms of a partition of unity and |
| 489 | -- add up to at most `x`. The number of frames is bounded by `encard_image_frameImage_le`. |
| 490 | have h_box (p : α) (hp : p ∈ w.support) (v : NumberField.InfinitePlace E) : |
| 491 | ((S.ratToInf (γ p))⁻¹ * y) v ∈ frameBox (S.frameBoxRadius * R) := by |
| 492 | have h_pos : 0 < S.classCutoff (k p) ((S.ratToInf (γ p))⁻¹ * y) * x := |
| 493 | (pos_iff_ne_zero.2 hp).trans_le (h_le p hp) |
| 494 | exact mem_frameBox_of_classCutoff_ne_zero (left_ne_zero_of_mul h_pos.ne') |
| 495 | (h_size p hp v) |
| 496 | rw [← tsum_subtype_support] |
| 497 | generalize w.support = A at * |
| 498 | let frame (p : A) : Matrix 𝔰.BesselIndex (Fin (𝔰.ϱ + 1)) E := |
| 499 | frameImage (γ p : Matrix 𝔰.BesselIndex 𝔰.BesselIndex E) |
| 500 | refine tsum_le_of_encard_range_le |
| 501 | (R := fun p q : α ↦ k p = k q ∧ (γ p)⁻¹ * γ q ∈ S.classUnipotent₀ (k p)) frame ?_ |
| 502 | (fun p q ↦ termsOver.eq_and_mem_classUnipotent₀ (h_over p p.property) (h_over q q.property)) |
| 503 | fun B hBA p hp h_rel ↦ ?_ |
| 504 | · -- The frames are those of the terms `γ p` with `p` in the support. |
| 505 | have h_range : range frame = |
| 506 | (fun g : S.G E ↦ frameImage (g : Matrix 𝔰.BesselIndex 𝔰.BesselIndex E)) '' (γ '' A) := by |
| 507 | rw [image_image, image_eq_range] |
| 508 | rw [h_range] |
| 509 | exact encard_image_frameImage_le hR |
| 510 | (forall_mem_image.2 fun p hp ↦ ⟨s, k p, h_over p hp⟩) (forall_mem_image.2 h_size) |
| 511 | (forall_mem_image.2 h_box) |
| 512 | (forall_mem_image.2 fun p hp ↦ forall_mem_image.2 fun q hq ↦ hV p hp q hq) |
| 513 | · -- The terms `B` with the same frame are related by the unipotent group. |
| 514 | exact tsum_le_of_forall_mem_classUnipotent₀ h_inj hp h_rel fun q hq ↦ h_le q (hBA hq) |
| 515 | |
| 516 | /-- Let `E` be a CM field with a primitive 5040-th root of unity, `S` admissible filling data over |
| 517 | `E` for the shape `𝔰` (`IsAdmissible`), and `c` a class in `S.Classes`. Suppose a point `y` |
| 518 | satisfies `InCut` at every infinite place `v`: `besselLength (y v)`, the infimum of ‖s (y v)‖ + 1 |
| 519 | over `s` in the Bessel subgroup, is at most `S.b ^ (6 n + 2)`, where `n = 𝔰.n`. Then some `u` in |
| 520 | `S.classUnipotent c`, the congruence group of rational unipotent elements attached to `c`, has |
| 521 | `S.ratToInf u * y` in `boxedPoints`. The boxed points are those satisfying the same bound that are |
| 522 | reduced: the entries above the diagonal of their triangular matrices of Gram–Schmidt coefficients, |
| 523 | read in the rational frame, lie in a chosen residue domain. -/ |
| 524 | lemma exists_classUnipotent_mul_mem_boxedPoints (c : S.Classes) |
| 525 | {y : NumberField.InfinitePlace E → 𝔰.G₁} |
| 526 | (h_cut : ∀ v : NumberField.InfinitePlace E, InCut (y v) S.b) : |
| 527 | ∃ u ∈ S.classUnipotent c, S.ratToInf u * y ∈ S.boxedPoints := by |
| 528 | -- The cutoffs of the translates add up to `1`, so one of them is not zero. |
| 529 | obtain ⟨u, hu⟩ : ∃ u : S.classUnipotent c, S.classCutoff c (S.ratToInf u * y) ≠ 0 := |
| 530 | CompleteLattice.summable.tsum_ne_zero_iff.1 ((tsum_classCutoff_eq_one c y).trans_ne one_ne_zero) |
| 531 | -- Left translation by the unipotent `u` keeps `besselLength`. |
| 532 | obtain ⟨hu_unipotent, -⟩ : u.val ∈ S.classUnipotent c := u.property |
| 533 | have h_cut_mul (v : NumberField.InfinitePlace E) : InCut ((S.ratToInf u * y) v) S.b := |
| 534 | (besselLength_besselS_mul (mem_partialUnitriangularGroup_of_mem_besselU |
| 535 | (hu_unipotent.ratToInf_mem_agreeWithOneOn v))).trans_le (h_cut v) |
| 536 | exact ⟨u, u.property, mem_boxedPoints_of_classCutoff_ne_zero hu h_cut_mul⟩ |
| 537 | |
| 538 | /-- The cutoff of a class is measurable. -/ |
| 539 | @[fun_prop] |
| 540 | lemma measurable_classCutoff (c : S.Classes) : Measurable (S.classCutoff c) := by |
| 541 | obtain ⟨β, hβ, hβ_meas, -⟩ := S.exists_classCutoff_eq_mul c |
| 542 | rw [hβ] |
| 543 | exact hβ_meas.mul (isBoxPartitionOfUnity_reducedIndicator c).measurable |
| 544 | |
| 545 | end New.Filling |
| 546 | |
| 547 | end BoxPartition |