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.Algebra.Ring.IsFormallyReal |
| 5 | import Mathlib.Analysis.CStarAlgebra.CStarMatrix |
| 6 | import Mathlib.LinearAlgebra.Matrix.Module |
| 7 | public import New.Spanning.RemainingTerms.Size |
| 8 | public import New.Spanning.Unfolding.Climbing |
| 9 | import Lib.General.LinearAlgebra.BlockEmbeddings |
| 10 | import New.Spanning.MainTerm.EnergyEstimate |
| 11 | import New.Spanning.RemainingTerms.Sum |
| 12 | import New.Spanning.SecondMoment.PositiveType |
| 13 | import New.Spanning.Unfolding.SquareExpansion |
| 14 | |
| 15 | /-! |
| 16 | # The second moment over the whole group |
| 17 | |
| 18 | This file proves the bound on the sum of the second moments of the operators `P_s = P* s P` over the |
| 19 | whole group, stated in terms of their blocks. It bounds the contribution of the cosets of `R̄₀` and |
| 20 | that of the elements that are not open. |
| 21 | |
| 22 | The blocks of `P_s` are the complex conjugates of the sums `amplitudeSum` over all terms, divided by |
| 23 | `unipotentCovolume`, so `‖P_s‖²` (Hilbert–Schmidt norm) is the `secondMoment` of these sums at `s`. |
| 24 | In the same way the terms in the Bessel subgroup `R₀ = besselS` give `r_ψ(s)`, and those off it give |
| 25 | `P_s - r_ψ(s)`. The operator `r_ψ(s)` is `New.Filling.besselTranslate`; the passage from operators |
| 26 | to blocks is `New.Filling.HasAmplitudeBlocks`. |
| 27 | |
| 28 | We write `R̄₀` for `reducedImage besselS`, `D_X` for `sourceDim`, `𝒟_id` for `identitySecondMoment`, |
| 29 | `𝒟_main` for `mainSecondMoment`, `b` for the parameter `S.b` of the filling, `p_i` for |
| 30 | `levelPrime i`, `M = p₀ p₁` for the level, `f` for the number of infinite places, `k = |κ|`, |
| 31 | `n = ϱ + 1` for the length of the frame, `e₁` for its vector of index `0` and `δ_l` for the leading |
| 32 | minors of `frameGram`. In `InScalarCoset ζ s` the scalar `ζ` is an integral adele, acting through |
| 33 | its residues. |
| 34 | |
| 35 | ## Main definitions and results |
| 36 | |
| 37 | * `New.Filling.sum_secondMoment_le`: `∑ ‖P_s‖² ≤ (1 + 9 b⁻⁴) 𝒟_main`, if `s ↦ ‖P_s‖²` has positive |
| 38 | type and `‖P_1‖² ≤ 2 D_X`. |
| 39 | * `New.Filling.secondMoment_univ_eq_secondMoment_compl_besselS`: if `Ω` is disjoint from the |
| 40 | reduction `R̄₀` of the Bessel subgroup, then the terms in the Bessel subgroup give `0` over `Ω`, |
| 41 | so all terms and the terms off the Bessel subgroup have the same second moment over `Ω`. |
| 42 | |
| 43 | Notions from other files: |
| 44 | * `termsOver c s c'`: the rational `γ` such that `h_c⁻¹ γ h_c'` (`translateByClassReps`) is integral |
| 45 | with reduction `s`; such a `γ` lies over the block `(c, s, c')`. |
| 46 | * `amplitudeSum side T c s c'`: the sum of the amplitudes of the elements of `T` over that block. |
| 47 | * `secondMoment A Ω`: the sum of `‖A c s c'‖² / unipotentCovolume²` over all classes `c`, `c'` and |
| 48 | `s ∈ Ω`. |
| 49 | * `reducedImage A`: the image in the finite group `ResidueGL` of the integral elements of `A`. |
| 50 | -/ |
| 51 | |
| 52 | @[expose] public section |
| 53 | |
| 54 | namespace New |
| 55 | |
| 56 | open Matrix Complex Module InnerProductSpace EuclideanSpace Finset Fintype |
| 57 | |
| 58 | attribute [local instance low] Fintype.ofFinite |
| 59 | |
| 60 | variable {E : Type} [Field E] [CMType E] {𝔰 : Shape} {S : Filling E 𝔰} |
| 61 | |
| 62 | namespace Filling |
| 63 | |
| 64 | /-! ### The second moment over the whole group -/ |
| 65 | |
| 66 | /-- The second moment of a family of blocks at one element `σ`: `unipotentCovolume⁻²` times the sum |
| 67 | of the squared norms of the blocks over `σ`. -/ |
| 68 | lemma secondMoment_singleton {V : Type} [NormedAddCommGroup V] |
| 69 | (A : S.Classes → S.ResidueGL → S.Classes → V) (σ : S.ResidueGL) : |
| 70 | secondMoment A {σ} = ∑ c : S.Classes, ∑ c' : S.Classes, |
| 71 | ‖A c σ c'‖ ^ 2 / S.unipotentCovolume ^ 2 := |
| 72 | sum_congr rfl fun c _ ↦ sum_congr rfl fun c' _ ↦ |
| 73 | sum_eq_single_of_mem σ (by simp) (by simp +contextual) |
| 74 | |
| 75 | /-- The second moment of a family of blocks over a set `Ω` is the sum of its second moments at the |
| 76 | elements of `Ω`. -/ |
| 77 | lemma secondMoment_eq_sum_secondMoment_singleton {V : Type} [NormedAddCommGroup V] |
| 78 | (A : S.Classes → S.ResidueGL → S.Classes → V) (Ω : Set S.ResidueGL) [DecidablePred (· ∈ Ω)] : |
| 79 | secondMoment A Ω = ∑ s : S.ResidueGL with s ∈ Ω, secondMoment A {s} := by |
| 80 | simp only [secondMoment_singleton] |
| 81 | rw [secondMoment, sum_comm_cycle] |
| 82 | congr! |
| 83 | |
| 84 | /-- If `Ω` is disjoint from the reduction `R̄₀` of the Bessel subgroup, then the terms in the Bessel |
| 85 | subgroup give `0` over `Ω`, so all terms and the terms off the Bessel subgroup have the same second |
| 86 | moment over `Ω`. -/ |
| 87 | lemma secondMoment_univ_eq_secondMoment_compl_besselS [HasPrimitiveRoot5040 E] [S.IsAdmissible] |
| 88 | {Ω : Set S.ResidueGL} (hΩ : ∀ s ∈ Ω, s ∉ S.reducedImage besselS) : |
| 89 | secondMoment (S.amplitudeSum .full Set.univ) Ω = |
| 90 | secondMoment (S.amplitudeSum .full (S.ratMiddle E).besselSᶜ) Ω := by |
| 91 | classical |
| 92 | rw [amplitudeSum_eq_inter_compl_add_inter Set.univ (S.ratMiddle E).besselS, Set.univ_inter, |
| 93 | Set.univ_inter] |
| 94 | refine sum_congr rfl fun c _ ↦ sum_congr rfl fun c' _ ↦ sum_congr rfl fun s hs ↦ ?_ |
| 95 | simp only [Pi.add_apply, amplitudeSum_besselS_eq_zero (hΩ s (mem_filter.1 hs).2), add_zero] |
| 96 | |
| 97 | open scoped Classical in |
| 98 | /-- At most `M ^ f #R̄₀` elements lie in a coset of the reduction `R̄₀` of the Bessel subgroup by an |
| 99 | integral scalar (`InScalarCoset`), as only the residues of the scalar at the chosen places |
| 100 | matter. -/ |
| 101 | lemma card_inScalarCoset_le : #{s : S.ResidueGL | ∃ ζ : Ô E, S.InScalarCoset ζ s} ≤ |
| 102 | S.M ^ Core.numInfPlaces E * Nat.card (S.reducedImage besselS) := by |
| 103 | -- An element `s = ζ t` is determined by the residues of `ζ` and by `t`. |
| 104 | have h_scalar (s : {s : S.ResidueGL // ∃ ζ : Ô E, S.InScalarCoset ζ s}) : |
| 105 | ∃ (ζ : Ô E) (t : S.ResidueGL), t ∈ S.reducedImage besselS ∧ ∀ (i : Fin 2) |
| 106 | (w : S.chosenPlaces i), |
| 107 | (s.val i w).val = New.reduceAt w.val ζ • (t i w).val := s.property |
| 108 | choose ζ t ht h_eq using h_scalar |
| 109 | let φ (s : {s : S.ResidueGL // ∃ ζ : Ô E, S.InScalarCoset ζ s}) : |
| 110 | (∀ (i : Fin 2) (w : S.chosenPlaces i), ResField w.val) × S.reducedImage besselS := |
| 111 | (fun _ w ↦ New.reduceAt w.val (ζ s), ⟨t s, ht s⟩) |
| 112 | have hφ : φ.Injective := fun s s' h ↦ by |
| 113 | obtain ⟨h_res, h_t⟩ := Prod.ext_iff.1 h |
| 114 | refine Subtype.ext (funext₂ fun i w ↦ Units.ext ?_) |
| 115 | rw [h_eq, h_eq, |
| 116 | show New.reduceAt w.val (ζ s) = New.reduceAt w.val (ζ s') from congrFun₂ h_res i w, |
| 117 | show t s = t s' from congrArg Subtype.val h_t] |
| 118 | rw [← Fintype.card_subtype, card_eq_nat_card] |
| 119 | refine (Nat.card_le_card_of_injective φ hφ).trans_eq ?_ |
| 120 | simp only [Nat.card_prod, Nat.card_pi, card_resField_eq_levelPrime, prod_const, card_univ, |
| 121 | S.card_chosenPlaces, Fin.prod_univ_two, mul_pow] |
| 122 | |
| 123 | /-- Let the filling `S` be admissible (`IsAdmissible`), which includes the bound |
| 124 | `b^(11kf) 𝒟_id ≤ 𝒟_main`. Then `b^(5kf) 𝒟_id ≤ b^(-6ka) 𝒟_main` for any set `places` of chosen |
| 125 | places above the level prime `p₀` (`chosenPlaces 0`), where `a = #places`. -/ |
| 126 | lemma pow_mul_identitySecondMoment_le_mul_mainSecondMoment [hS : S.IsAdmissible] |
| 127 | (places : Finset (S.chosenPlaces 0)) : |
| 128 | S.b ^ (5 * (𝔰.k * Core.numInfPlaces E)) * S.identitySecondMoment ≤ |
| 129 | (S.b ^ (6 * 𝔰.k))⁻¹ ^ #places * S.mainSecondMoment := by |
| 130 | have h_places : #places ≤ Core.numInfPlaces E := |
| 131 | places.card_le_univ.trans_eq (S.card_chosenPlaces 0) |
| 132 | apply pow_mul_identitySecondMoment_le_of_add_le |
| 133 | calc _ ≤ 5 * (𝔰.k * Core.numInfPlaces E) + 6 * 𝔰.k * Core.numInfPlaces E := |
| 134 | Nat.add_le_add_left (Nat.mul_le_mul_left _ h_places) _ |
| 135 | _ = _ := by ring |
| 136 | |
| 137 | /-- For each chosen place `w` above `p₀`, let `vectors w` be a nonzero vector of the span of the |
| 138 | frame modulo `w`. If its Boolean is `true`, it is taken modulo the conjugate of `w` instead. Let `s` |
| 139 | fix all of them. So `meetNorm s`, the product of the norms of the places at which `s` meets, is at |
| 140 | least `levelPrime 0 ^ numInfPlaces E`. -/ |
| 141 | lemma levelPrime_pow_le_meetNorm_of_mem_fixer |
| 142 | {vectors : ∀ w : S.chosenPlaces 0, S.FrameVector w} {s : S.ResidueGL} |
| 143 | (hs : s ∈ S.fixer univ vectors) : S.levelPrime 0 ^ Core.numInfPlaces E ≤ S.meetNorm s := by |
| 144 | classical |
| 145 | let φ (w : S.chosenPlaces 0) : (Σ j : Fin 2, S.chosenPlaces j) × Bool := (⟨0, w⟩, (vectors w).1) |
| 146 | have hφ : φ.Injective := fun w w' h ↦ by simpa [φ] using congrArg Prod.fst h |
| 147 | have h_meet : ∀ p ∈ univ.image φ, S.MeetsAt s p := |
| 148 | forall_mem_image.2 fun w hw ↦ meetsAt_of_mem_vectorFixer (mem_fixer.1 hs w hw) |
| 149 | refine le_trans ?_ (prod_le_meetNorm h_meet) |
| 150 | rw [prod_image hφ.injOn] |
| 151 | simp [φ, S.card_chosenPlaces] |
| 152 | |
| 153 | open scoped Classical in |
| 154 | /-- For `s` in `ResidueGL`, write `‖P_s‖²` for the `secondMoment` at `s` of the amplitude sums |
| 155 | of all terms. If `‖P_s‖² ≤ 2 D_X` for all `s`, with `D_X = sourceDim`, then the sum |
| 156 | of `‖P_s‖²` over the cosets of the reduction `R̄₀` of the Bessel subgroup by integral scalars |
| 157 | (`InScalarCoset`) is at most `2 M ^ f 𝒟_id`. -/ |
| 158 | lemma sum_secondMoment_inScalarCoset_le |
| 159 | (h_le : ∀ s : S.ResidueGL, secondMoment (S.amplitudeSum .full Set.univ) {s} ≤ 2 * S.sourceDim) : |
| 160 | ∑ s : S.ResidueGL with ∃ ζ : Ô E, S.InScalarCoset ζ s, |
| 161 | secondMoment (S.amplitudeSum .full Set.univ) {s} ≤ |
| 162 | 2 * S.M ^ Core.numInfPlaces E * S.identitySecondMoment := |
| 163 | calc _ ≤ #{s : S.ResidueGL | ∃ ζ : Ô E, S.InScalarCoset ζ s} • (2 * S.sourceDim : ℝ) := |
| 164 | sum_le_card_nsmul _ _ _ fun s _ ↦ h_le s |
| 165 | _ ≤ _ := by |
| 166 | grw [nsmul_eq_mul, card_inScalarCoset_le, identitySecondMoment] |
| 167 | exact le_of_eq (by push_cast; ring) |
| 168 | |
| 169 | /-- Let the filling `S` be admissible (`IsAdmissible`). Then `8 M ^ f 𝒟_id ≤ b^(-6kf) 𝒟_main`, as |
| 170 | `b^(11kf) 𝒟_id ≤ 𝒟_main`, `8 M ^ f ≤ b (b²³) ^ f` and `23 f + 1 ≤ 5 k f`. -/ |
| 171 | lemma eight_mul_M_pow_mul_identitySecondMoment_le [S.IsAdmissible] : |
| 172 | 8 * S.M ^ Core.numInfPlaces E * S.identitySecondMoment ≤ |
| 173 | (S.b ^ (6 * 𝔰.k))⁻¹ ^ #(univ : Finset (S.chosenPlaces 0)) * S.mainSecondMoment := by |
| 174 | have h_id_nonneg : 0 ≤ S.identitySecondMoment := identitySecondMoment_nonneg |
| 175 | have h_exp : 23 * Core.numInfPlaces E + 1 ≤ 5 * (𝔰.k * Core.numInfPlaces E) := by |
| 176 | nlinarith only [S.thousand_mul_le_k, NeZero.one_le (n := Core.numInfPlaces E)] |
| 177 | have hb : 1000 ≤ S.b := S.thousand_le_b |
| 178 | calc _ ≤ S.b * (S.b ^ 23) ^ Core.numInfPlaces E * S.identitySecondMoment := by |
| 179 | grw [M_le_b_pow, show (8 : ℝ) ≤ S.b by linarith] |
| 180 | _ ≤ S.b ^ (5 * (𝔰.k * Core.numInfPlaces E)) * S.identitySecondMoment := by |
| 181 | grw [← pow_mul, ← pow_succ', pow_le_pow_right₀ S.one_le_b h_exp] |
| 182 | _ ≤ _ := pow_mul_identitySecondMoment_le_mul_mainSecondMoment univ |
| 183 | |
| 184 | /-- The bound `(b^(2f) / p₀^f)^k 𝒟_main` on sums over links is at most an eighth of |
| 185 | `b^(-6kf) 𝒟_main`, as `b¹⁰ ≤ p₀` (`le_levelPrime`). -/ |
| 186 | lemma div_levelPrime_pow_mul_mainSecondMoment_le : |
| 187 | (S.b ^ (2 * Core.numInfPlaces E) / (S.levelPrime 0 ^ Core.numInfPlaces E : ℕ)) ^ 𝔰.k * |
| 188 | S.mainSecondMoment ≤ |
| 189 | (S.b ^ (6 * 𝔰.k))⁻¹ ^ #(univ : Finset (S.chosenPlaces 0)) * S.mainSecondMoment / 8 := by |
| 190 | have hb : 1 ≤ S.b := S.one_le_b |
| 191 | have h_main_nonneg : 0 ≤ S.mainSecondMoment := mainSecondMoment_nonneg |
| 192 | have h_eight : 8 ≤ S.b ^ (2 * (𝔰.k * Core.numInfPlaces E)) := by |
| 193 | grw [← S.forty_le_k_mul_numInfPlaces, ← two_le_b] |
| 194 | norm_num |
| 195 | calc _ ≤ (S.b ^ (2 * Core.numInfPlaces E) / (S.b ^ 10) ^ Core.numInfPlaces E) ^ 𝔰.k * |
| 196 | S.mainSecondMoment := by grw [Nat.cast_pow, ← le_levelPrime] |
| 197 | _ = (S.b ^ (2 * (𝔰.k * Core.numInfPlaces E)))⁻¹ * |
| 198 | ((S.b ^ (6 * 𝔰.k))⁻¹ ^ #(univ : Finset (S.chosenPlaces 0)) * S.mainSecondMoment) := by |
| 199 | rw [card_univ, S.card_chosenPlaces, inv_pow, div_pow] |
| 200 | field |
| 201 | _ ≤ _ := by grw [← div_eq_inv_mul, h_eight] |
| 202 | |
| 203 | /-- Suppose `Ω` avoids scalar cosets, is disjoint from `reducedImage besselS`, and satisfies |
| 204 | `p₀ ^ f ≤ S.meetNorm s` for every `s ∈ Ω`. Then the second moment of the full amplitude sum over `Ω` |
| 205 | is at most `2 * ((b ^ (2 * f) / p₀ ^ f) ^ k * 𝒟_main + b ^ (-30) * 𝒟_id)`. -/ |
| 206 | private lemma secondMoment_non_coset_le [HasPrimitiveRoot5040 E] [S.IsAdmissible] |
| 207 | {Ω : Set S.ResidueGL} |
| 208 | (h_avoid : S.AvoidsScalarCosets Ω) |
| 209 | (h_off : ∀ s ∈ Ω, s ∉ S.reducedImage besselS) |
| 210 | (h_meet : ∀ s ∈ Ω, |
| 211 | (S.levelPrime 0 ^ Core.numInfPlaces E : ℕ) ≤ S.meetNorm s) : |
| 212 | secondMoment (S.amplitudeSum .full Set.univ) Ω ≤ |
| 213 | 2 * ((S.b ^ (2 * Core.numInfPlaces E) / |
| 214 | (S.levelPrime 0 ^ Core.numInfPlaces E : ℕ)) ^ 𝔰.k * S.mainSecondMoment + |
| 215 | (S.b ^ 15)⁻¹ ^ 2 * S.identitySecondMoment) := by |
| 216 | have hb : 1 ≤ S.b := S.one_le_b |
| 217 | have h_id_nonneg : 0 ≤ S.identitySecondMoment := identitySecondMoment_nonneg |
| 218 | have h_main_nonneg : 0 ≤ S.mainSecondMoment := mainSecondMoment_nonneg |
| 219 | let linkBound : ℝ := (S.b ^ (2 * Core.numInfPlaces E) / |
| 220 | (S.levelPrime 0 ^ Core.numInfPlaces E : ℕ)) ^ 𝔰.k * S.mainSecondMoment |
| 221 | have h_link_nonneg : 0 ≤ linkBound := by |
| 222 | dsimp [linkBound] |
| 223 | positivity |
| 224 | calc _ = secondMoment (S.amplitudeSum .full (S.ratMiddle E).besselSᶜ) Ω := |
| 225 | secondMoment_univ_eq_secondMoment_compl_besselS h_off |
| 226 | _ ≤ (√linkBound + (S.b ^ 15)⁻¹ * √S.identitySecondMoment) ^ 2 := by |
| 227 | rw [← Real.sqrt_le_left (by positivity)] |
| 228 | exact sqrt_secondMoment_compl_besselS_le h_avoid h_link_nonneg |
| 229 | (linkSecondMoment_le_of_le_meetNorm |
| 230 | (pow_ne_zero _ (S.levelPrime_prime_and_ne 0).1.ne_zero) h_meet) |
| 231 | _ ≤ 2 * (linkBound + (S.b ^ 15)⁻¹ ^ 2 * S.identitySecondMoment) := by |
| 232 | grw [add_sq_le, mul_pow, Real.sq_sqrt h_link_nonneg, Real.sq_sqrt h_id_nonneg] |
| 233 | |
| 234 | /-- Let `E` contain a primitive `5040`-th root of unity and let the filling `S` be admissible |
| 235 | (`IsAdmissible`). Let `D_X = sourceDim` be the number of pairs of a class and a coordinate, and |
| 236 | suppose `‖P_s‖² ≤ 2 D_X` for all `s`. At each of the `f` chosen places `w` above `p₀`, `vectors w` |
| 237 | is a `FrameVector`: a nonzero vector in the span of the frame `e₁, …, e_ϱ, z`, taken modulo `w` or |
| 238 | modulo its conjugate. Then the sum over the group `fixer` of the `s` that fix all these vectors |
| 239 | satisfies `∑ ‖P_s‖² ≤ b^(-6kf) 𝒟_main`. -/ |
| 240 | lemma secondMoment_fixer_univ_le [HasPrimitiveRoot5040 E] [S.IsAdmissible] |
| 241 | (vectors : ∀ w : S.chosenPlaces 0, S.FrameVector w) |
| 242 | (h_le : ∀ s : S.ResidueGL, secondMoment (S.amplitudeSum .full Set.univ) {s} ≤ 2 * S.sourceDim) : |
| 243 | secondMoment (S.amplitudeSum .full Set.univ) (S.fixer univ vectors) ≤ |
| 244 | (S.b ^ (6 * 𝔰.k))⁻¹ ^ #(univ : Finset (S.chosenPlaces 0)) * S.mainSecondMoment := by |
| 245 | -- The scalar cosets are small. Off them the expansion of the squares applies, and its sums over |
| 246 | -- links are small because every `s` in the fixer meets at `f` places above `p₀`. |
| 247 | classical |
| 248 | have hb : 1 ≤ S.b := S.one_le_b |
| 249 | have h_id_nonneg : 0 ≤ S.identitySecondMoment := identitySecondMoment_nonneg |
| 250 | have h_main_nonneg : 0 ≤ S.mainSecondMoment := mainSecondMoment_nonneg |
| 251 | set target : ℝ := (S.b ^ (6 * 𝔰.k))⁻¹ ^ #(univ : Finset (S.chosenPlaces 0)) * S.mainSecondMoment |
| 252 | have h_id_le_target : 8 * S.M ^ Core.numInfPlaces E * S.identitySecondMoment ≤ target := |
| 253 | eight_mul_M_pow_mul_identitySecondMoment_le |
| 254 | let β (s : S.ResidueGL) : ℝ := secondMoment (S.amplitudeSum .full Set.univ) {s} |
| 255 | let Ω : Set S.ResidueGL := {s | s ∈ S.fixer univ vectors ∧ ¬∃ ζ : Ô E, S.InScalarCoset ζ s} |
| 256 | -- The scalar cosets have at most `M ^ f #R̄₀` elements, each with `β s ≤ 2 D_X`. |
| 257 | have h_cosets : ∑ s : S.ResidueGL with ∃ ζ : Ô E, S.InScalarCoset ζ s, β s ≤ target / 2 := |
| 258 | (sum_secondMoment_inScalarCoset_le h_le).trans (by linarith [show 0 ≤ target by positivity]) |
| 259 | -- On `Ω` the sums over links give at most `linkBound ≤ b^(-8kf) 𝒟_main`, as `b¹⁰ ≤ p₀`. |
| 260 | let linkBound : ℝ := (S.b ^ (2 * Core.numInfPlaces E) / |
| 261 | (S.levelPrime 0 ^ Core.numInfPlaces E : ℕ)) ^ 𝔰.k * S.mainSecondMoment |
| 262 | have h_links : linkBound ≤ target / 8 := div_levelPrime_pow_mul_mainSecondMoment_le |
| 263 | have h_id : (S.b ^ 15)⁻¹ ^ 2 * S.identitySecondMoment ≤ target / 8 := by |
| 264 | have h_inv : (S.b ^ 15)⁻¹ ^ 2 ≤ 1 := |
| 265 | pow_le_one₀ (by positivity) (inv_le_one_of_one_le₀ (one_le_pow₀ hb)) |
| 266 | grw [h_inv, ← h_id_le_target, ← one_le_pow₀ (Nat.one_le_cast.2 (one_le_two.trans two_le_M))] |
| 267 | linarith |
| 268 | have h_rest : ∑ s : S.ResidueGL with s ∈ Ω, β s ≤ target / 2 := by |
| 269 | have h_avoid : S.AvoidsScalarCosets Ω := fun ζ h_int _ _ s hs h ↦ hs.2 ⟨⟨ζ, h_int⟩, h⟩ |
| 270 | have h_off : ∀ s ∈ Ω, s ∉ S.reducedImage besselS := |
| 271 | fun s hs h ↦ hs.2 ⟨1, inScalarCoset_one h⟩ |
| 272 | have h_non_coset : secondMoment (S.amplitudeSum .full Set.univ) Ω ≤ |
| 273 | 2 * (linkBound + (S.b ^ 15)⁻¹ ^ 2 * S.identitySecondMoment) := |
| 274 | S.secondMoment_non_coset_le h_avoid h_off |
| 275 | fun s hs ↦ levelPrime_pow_le_meetNorm_of_mem_fixer hs.1 |
| 276 | calc _ = secondMoment (S.amplitudeSum .full Set.univ) Ω := |
| 277 | (secondMoment_eq_sum_secondMoment_singleton _ Ω).symm |
| 278 | _ ≤ 2 * (linkBound + (S.b ^ 15)⁻¹ ^ 2 * S.identitySecondMoment) := h_non_coset |
| 279 | _ ≤ target / 2 := by linarith [h_links, h_id] |
| 280 | calc _ = ∑ s : S.ResidueGL with s ∈ S.fixer univ vectors ∧ ∃ ζ : Ô E, S.InScalarCoset ζ s, β s + |
| 281 | ∑ s : S.ResidueGL with s ∈ Ω, β s := by |
| 282 | rw [secondMoment_eq_sum_secondMoment_singleton, |
| 283 | ← sum_filter_add_sum_filter_not _ fun s : S.ResidueGL ↦ ∃ ζ : Ô E, S.InScalarCoset ζ s, |
| 284 | filter_filter, filter_filter] |
| 285 | congr! |
| 286 | _ ≤ ∑ s : S.ResidueGL with ∃ ζ : Ô E, S.InScalarCoset ζ s, β s + ∑ s : S.ResidueGL with s ∈ Ω, |
| 287 | β s := by |
| 288 | gcongr |
| 289 | · exact fun s _ _ ↦ secondMoment_nonneg |
| 290 | · exact And.right |
| 291 | _ ≤ target := by linarith [h_cosets, h_rest] |
| 292 | |
| 293 | /-- Let the filling `S` be admissible (`IsAdmissible`) and assume Weil data on `E`. Over the open |
| 294 | `s` that fix the given nonzero vectors of the span of the frame at a set of `a` chosen places above |
| 295 | `p₀` (`fixer`) we have `∑ ‖P_s‖² ≤ (1 + 4 b⁻⁴) b^(-6ka) 𝒟_main`. The element `s` is open if at some |
| 296 | chosen place above `p₀` no leading minor of size less than `n = ϱ + 1` of `frameGram`, the matrix of |
| 297 | the products of the frame with its image under `s`, vanishes. -/ |
| 298 | lemma secondMoment_fixer_isOpenElement_le [S.IsAdmissible] [WeilData E] |
| 299 | (places : Finset (S.chosenPlaces 0)) |
| 300 | (vectors : ∀ w : S.chosenPlaces 0, S.FrameVector w) : |
| 301 | secondMoment (S.amplitudeSum .full Set.univ) |
| 302 | {s : S.ResidueGL | s ∈ S.fixer places vectors ∧ S.IsOpenElement s} ≤ |
| 303 | (1 + 4 / S.b ^ 4) * ((S.b ^ (6 * 𝔰.k))⁻¹ ^ #places * S.mainSecondMoment) := by |
| 304 | -- No open element lies in a scalar coset, so the expansion and the main term apply. |
| 305 | have hb : 1000 ≤ S.b := S.thousand_le_b |
| 306 | have hb₁ : 1 ≤ S.b := S.one_le_b |
| 307 | set target : ℝ := (S.b ^ (6 * 𝔰.k))⁻¹ ^ #places * S.mainSecondMoment with h_target_def |
| 308 | have h_id : S.identitySecondMoment ≤ target := (le_mul_of_one_le_left identitySecondMoment_nonneg |
| 309 | (one_le_pow₀ hb₁)).trans (pow_mul_identitySecondMoment_le_mul_mainSecondMoment places) |
| 310 | have h_target_nonneg : 0 ≤ target := identitySecondMoment_nonneg.trans h_id |
| 311 | set Ω : Set S.ResidueGL := {s | s ∈ S.fixer places vectors ∧ S.IsOpenElement s} |
| 312 | have h_avoid : S.AvoidsScalarCosets Ω := |
| 313 | fun ζ h_int _ _ s hs h_coset ↦ h_coset.not_isOpenElement hs.2 |
| 314 | have h_off : ∀ s ∈ Ω, s ∉ S.reducedImage besselS := |
| 315 | fun s hs h ↦ (inScalarCoset_one h).not_isOpenElement hs.2 |
| 316 | -- With `x = b⁻⁴` we have `(1 + x)^(1/2) ≤ 1 + x / 2` and `b⁻¹⁵ ≤ x / 2`. |
| 317 | have hx₀ : 0 ≤ (S.b ^ 4)⁻¹ := by positivity |
| 318 | have hx : (S.b ^ 4)⁻¹ ≤ 1 := inv_le_one_of_one_le₀ (one_le_pow₀ hb₁) |
| 319 | have h_small : (S.b ^ 15)⁻¹ ≤ (S.b ^ 4)⁻¹ / 2 := by |
| 320 | field_simp |
| 321 | linarith [le_self_pow₀ hb₁ (by norm_num : 11 ≠ 0)] |
| 322 | have h_bound : √(secondMoment (S.amplitudeSum .full (S.ratMiddle E).besselSᶜ) Ω) ≤ |
| 323 | (1 + (S.b ^ 4)⁻¹) * √target := |
| 324 | calc _ ≤ √((1 + (S.b ^ 4)⁻¹) * target) + (S.b ^ 15)⁻¹ * √S.identitySecondMoment := by |
| 325 | refine sqrt_secondMoment_compl_besselS_le h_avoid (by positivity) ?_ |
| 326 | rw [h_target_def, ← mul_assoc] |
| 327 | exact linkSecondMoment_isOpenElement_le places vectors |
| 328 | _ ≤ (1 + (S.b ^ 4)⁻¹ / 2) * √target + (S.b ^ 4)⁻¹ / 2 * √target := by |
| 329 | grw [Real.sqrt_mul (by positivity), Real.sqrt_one_add_le (by linarith), h_small, h_id] |
| 330 | _ = (1 + (S.b ^ 4)⁻¹) * √target := by ring |
| 331 | calc _ ≤ (1 + (S.b ^ 4)⁻¹) ^ 2 * target := by |
| 332 | grw [secondMoment_univ_eq_secondMoment_compl_besselS h_off, (Real.sqrt_le_iff.1 h_bound).2, |
| 333 | mul_pow, Real.sq_sqrt h_target_nonneg] |
| 334 | _ ≤ (1 + 4 / S.b ^ 4) * target := by |
| 335 | gcongr |
| 336 | rw [div_eq_mul_inv] |
| 337 | nlinarith |
| 338 | |
| 339 | /-- For `l < n = ϱ + 1` we have `p₀ ^ (l + r / 2) ≤ b ^ (6 k)`. Here `p₀ = levelPrime 0`, |
| 340 | `b = S.b`, `k = |κ|`, and `r` is the rank of the space, the number of indices in `𝔰.BesselIndex`. -/ |
| 341 | lemma levelPrime_pow_mul_sqrt_le (l : Fin 𝔰.n) : |
| 342 | (S.levelPrime 0 : ℝ) ^ l.val * √(S.levelPrime 0 ^ card 𝔰.BesselIndex) ≤ S.b ^ (6 * 𝔰.k) := by |
| 343 | -- Square, and use `p₀ ≤ b¹¹`, `r = k + 2 n - 1` and `2000 n ≤ k`. |
| 344 | have hb : 1 ≤ S.b := S.one_le_b |
| 345 | have h_exp : 11 * (l.val * 2 + card 𝔰.BesselIndex) ≤ 6 * 𝔰.k * 2 := by |
| 346 | have h_rank : card 𝔰.BesselIndex = 2 * 𝔰.ϱ + 𝔰.k + 1 := by simp +arith |
| 347 | linarith [S.thousand_mul_le_k, (l.isLt : l.val < 𝔰.ϱ + 1)] |
| 348 | rw [← sq_le_sq₀ (by positivity) (by positivity)] |
| 349 | calc _ = (S.levelPrime 0 : ℝ) ^ (l.val * 2 + card 𝔰.BesselIndex) := by |
| 350 | rw [mul_pow, Real.sq_sqrt (by positivity), ← pow_mul, ← pow_add] |
| 351 | _ ≤ S.b ^ (11 * (l.val * 2 + card 𝔰.BesselIndex)) := by grw [S.levelPrime_le 0, ← pow_mul] |
| 352 | _ ≤ (S.b ^ (6 * 𝔰.k)) ^ 2 := by grw [h_exp, ← pow_mul] |
| 353 | |
| 354 | open scoped Classical in |
| 355 | /-- Let the filling `S` be admissible (`IsAdmissible`), with large parameter `b = S.b` and with |
| 356 | `k = 𝔰.k` the rank of `X₀`. Let `β ≥ 0` on `ResidueGL` have positive type. Let `Γ` be a subgroup and |
| 357 | `w` a chosen place above `p₀`. The frame consists of the `ϱ + 1` basis vectors `e₁, …, e_ϱ, z`, and |
| 358 | a `FrameVector` at `w` is a nonzero vector of their span, taken modulo `w` or modulo its conjugate. |
| 359 | Suppose that the stabilizer in `Γ` of any such vector carries at most a proportion `b^(-6k)` of the |
| 360 | sum of `β` over `Γ`. Let `l < 𝔰.n`, and let `δ_l` be the leading minor of size `l` of the |
| 361 | `frameGram` of the component `s 0 w` over the residue field at `w`. Then the `s` in `Γ` with |
| 362 | `δ_l = 0` carry at most a proportion `3 / b¹⁰`. -/ |
| 363 | lemma sum_leadingMinor_eq_zero_le {V : Type*} [NormedAddCommGroup V] |
| 364 | [InnerProductSpace ℂ V] {β : S.ResidueGL → ℝ} (h_nonneg : ∀ s : S.ResidueGL, 0 ≤ β s) |
| 365 | {u : S.ResidueGL → V} |
| 366 | (h_posType : ∀ a b : S.ResidueGL, ⟪u a, u b⟫_ℂ = β (a⁻¹ * b)) {Γ : Subgroup S.ResidueGL} |
| 367 | {w : S.chosenPlaces 0} |
| 368 | (h_stab : ∀ d : S.FrameVector w, ∑ s : Γ with s.val ∈ S.vectorFixer w d, β s.val ≤ |
| 369 | (∑ s : Γ, β s.val) / S.b ^ (6 * 𝔰.k)) (l : Fin 𝔰.n) : |
| 370 | ∑ s : Γ with leadingMinor ((S.latticeMiddle (ResField (w : FinPlace E))).frameGram |
| 371 | (s.val 0 w).val) l.castSucc = 0, β s.val ≤ |
| 372 | 3 * (∑ s : Γ, β s.val) / S.b ^ 10 := by |
| 373 | -- `δ_l` is the determinant of the pairings of the first `l` frame vectors with their images. |
| 374 | have hb : 0 < S.b := b_pos |
| 375 | set total : ℝ := ∑ s : Γ, β s.val |
| 376 | set stabFactor : ℝ := S.b ^ (6 * 𝔰.k) |
| 377 | have h_total_nonneg : 0 ≤ total := sum_nonneg fun s _ ↦ h_nonneg s |
| 378 | -- The group `Γ` acts on the lattice modulo `w`; the residue field has `p₀` elements. |
| 379 | let π : Γ →* GL 𝔰.BesselIndex (ResField w.val) := MonoidHom.mk' (fun s ↦ s.val 0 w) (by simp) |
| 380 | have h_card : card (ResField w.val) = S.levelPrime 0 := |
| 381 | card_eq_nat_card.trans (card_resField_eq_levelPrime S 0 w) |
| 382 | -- The columns of `e` are the first `l` frame vectors, those of `J * e` their linear forms. |
| 383 | let J : Matrix 𝔰.BesselIndex 𝔰.BesselIndex (ResField w.val) := |
| 384 | (S.latticeMiddle (ResField w.val)).splitGram |
| 385 | let e : Matrix 𝔰.BesselIndex (Fin l.castSucc) (ResField w.val) := |
| 386 | frameImage 1 * inclMatrix (ResField w.val) (Fin.castLE l.castSucc.is_le) |
| 387 | have h_det (s : Γ) : ((J * e)ᵀ * (π s).val * e).det = |
| 388 | leadingMinor ((S.latticeMiddle (ResField w.val)).frameGram (s.val 0 w).val) l.castSucc := by |
| 389 | let ι : Fin l.castSucc → 𝔰.BesselIndex := 𝔰.besselFrame ∘ Fin.castLE l.castSucc.is_le |
| 390 | rw [show e = inclMatrix (ResField w.val) ι from mul_inclMatrix _ _, mul_inclMatrix, |
| 391 | mul_inclMatrix, transpose_submatrix, transpose_splitGram] |
| 392 | rfl |
| 393 | -- The stabilizer of a vector, or of a form, fixes a vector modulo `w`, or modulo its conjugate. |
| 394 | have h_le_of_fixes (d : S.FrameVector w) (p : Γ → Prop) [DecidablePred p] |
| 395 | (hp : ∀ s : Γ, p s → s.val ∈ S.vectorFixer w d) : |
| 396 | ∑ s : Γ with p s, β s.val ≤ total / stabFactor := |
| 397 | (sum_le_sum_of_subset_of_nonneg (monotone_filter_right _ fun s _ h ↦ hp s h) |
| 398 | fun s _ _ ↦ h_nonneg s).trans (h_stab d) |
| 399 | have h_coord (v : Fin l.castSucc → ResField w.val) (hv : v ≠ 0) : |
| 400 | inclMatrix (ResField w.val) (Fin.castLE l.castSucc.is_le) *ᵥ v ≠ 0 := |
| 401 | (map_ne_zero_iff _ (inclMatrix_mulVecLin_injective (Fin.castLEEmb l.castSucc.is_le) _)).2 hv |
| 402 | have h_fix_vector (v : Fin l.castSucc → ResField w.val) (hv : v ≠ 0) : |
| 403 | ∑ s with e *ᵥ v = π s • e *ᵥ v, β s.val ≤ total / stabFactor := by |
| 404 | refine h_le_of_fixes ⟨false, _, h_coord v hv⟩ _ fun s hs ↦ ?_ |
| 405 | rw [mem_vectorFixer_false, mulVec_mulVec v] |
| 406 | exact hs.symm |
| 407 | have h_fix_form (v : Fin l.castSucc → ResField w.val) (hv : v ≠ 0) : |
| 408 | ∑ s with (J * e) *ᵥ v = invTransposeGL (π s) • (J * e) *ᵥ v, β s.1 ≤ total / stabFactor := by |
| 409 | refine h_le_of_fixes ⟨true, _, h_coord v hv⟩ _ fun s hs ↦ ?_ |
| 410 | rw [mem_vectorFixer_true, mulVec_mulVec v, mulVec_mulVec v] |
| 411 | exact hs.symm |
| 412 | rw [le_div_iff₀' (by positivity)] |
| 413 | calc _ ≤ card (ResField w.val) * ∑ s with ((J * e)ᵀ * (π s).val * e).det = 0, β s.val := by |
| 414 | simp only [h_det, h_card] |
| 415 | exact mul_le_mul_of_nonneg_right (S.le_levelPrime 0) (sum_nonneg fun s _ ↦ h_nonneg s) |
| 416 | _ ≤ 2 * total + card (ResField w.val) ^ card (Fin l.castSucc) * |
| 417 | √(card (ResField w.val) ^ card 𝔰.BesselIndex) * (total / stabFactor) := |
| 418 | card_mul_sum_det_eq_zero_le π e (J * e) (fun s ↦ h_nonneg s) (fun a b ↦ h_posType a b) _ |
| 419 | (by positivity) h_fix_vector h_fix_form |
| 420 | _ ≤ 2 * total + stabFactor * (total / stabFactor) := by |
| 421 | grw [h_card, Fintype.card_fin, Fin.val_castSucc, levelPrime_pow_mul_sqrt_le] |
| 422 | _ = 3 * total := by field |
| 423 | |
| 424 | open scoped Classical in |
| 425 | /-- Let the filling `S` be admissible (`IsAdmissible`), with `k = 𝔰.k` the rank of `X₀` and `S.b` |
| 426 | its large parameter. Let `β ≥ 0` on `ResidueGL` have positive type: `β (a⁻¹ * b) = ⟪u a, u b⟫` for |
| 427 | all `a`, `b`, for a map `u` into an inner product space. Let `Γ` be a subgroup of `ResidueGL` and |
| 428 | `w` a chosen place above `p₀`. Suppose that for every nonzero vector of the span of the frame, |
| 429 | modulo `w` or its conjugate, the elements of `Γ` that fix it (`vectorFixer`) carry at most a |
| 430 | proportion `S.b^(-6k)` of the sum of `β` over `Γ`. Then the elements of `Γ` that are not open carry |
| 431 | at most a proportion `S.b⁻⁴` of that sum. -/ |
| 432 | lemma sum_not_isOpenElement_le {V : Type*} [NormedAddCommGroup V] |
| 433 | [InnerProductSpace ℂ V] {β : S.ResidueGL → ℝ} (h_nonneg : ∀ s : S.ResidueGL, 0 ≤ β s) |
| 434 | {u : S.ResidueGL → V} |
| 435 | (h_posType : ∀ a b : S.ResidueGL, ⟪u a, u b⟫_ℂ = β (a⁻¹ * b)) {Γ : Subgroup S.ResidueGL} |
| 436 | {w : S.chosenPlaces 0} |
| 437 | (h_stab : ∀ d : S.FrameVector w, ∑ s : Γ with s.val ∈ S.vectorFixer w d, β s.val ≤ |
| 438 | (∑ s : Γ, β s.val) / S.b ^ (6 * 𝔰.k)) : |
| 439 | ∑ s : Γ with ¬S.IsOpenElement s.val, β s.val ≤ (S.b ^ 4)⁻¹ * ∑ s : Γ, β s.val := by |
| 440 | have hb : 1000 ≤ S.b := S.thousand_le_b |
| 441 | have h_total_nonneg : 0 ≤ ∑ s : Γ, β s.val := sum_nonneg fun s _ ↦ h_nonneg s |
| 442 | let δ (l : Fin 𝔰.n) (s : S.ResidueGL) : ResField w.val := |
| 443 | leadingMinor ((S.latticeMiddle (ResField w.val)).frameGram (s 0 w).val) l.castSucc |
| 444 | calc |
| 445 | _ ≤ ∑ l : Fin 𝔰.n, ∑ s : Γ with δ l s.val = 0, β s.val := by |
| 446 | simp only [sum_filter] |
| 447 | rw [sum_comm] |
| 448 | refine sum_le_sum fun s _ ↦ ?_ |
| 449 | split_ifs with hs |
| 450 | · exact sum_nonneg fun l _ ↦ ite_nonneg (h_nonneg s) le_rfl |
| 451 | · obtain ⟨l, hl⟩ : ∃ l : Fin 𝔰.n, δ l s.val = 0 := by_contra fun h ↦ hs ⟨w, not_exists.1 h⟩ |
| 452 | refine le_trans ?_ (single_le_sum (fun l _ ↦ ite_nonneg (h_nonneg s) le_rfl) (mem_univ l)) |
| 453 | rw [ite_eq_left hl] |
| 454 | _ ≤ card (Fin 𝔰.n) • (3 * (∑ s : Γ, β s.val) / S.b ^ 10) := |
| 455 | sum_le_card_nsmul _ _ _ fun l _ ↦ sum_leadingMinor_eq_zero_le h_nonneg h_posType h_stab l |
| 456 | _ ≤ (S.b ^ 4)⁻¹ * ∑ s : Γ, β s.val := by |
| 457 | -- `3 n ≤ 3 b ≤ b⁶` |
| 458 | have h_three : 3 ≤ S.b ^ 5 := le_trans (by linarith) (le_self_pow₀ S.one_le_b (by norm_num)) |
| 459 | grw [Fintype.card_fin, nsmul_eq_mul, S.succ_le_b, h_three] |
| 460 | exact le_of_eq (by field) |
| 461 | |
| 462 | /-- If `M ≤ (1 + 4 x) C + x M` with `0 ≤ x ≤ 1/10` and `C ≥ 0`, then `M ≤ (1 + 9 x) C`. -/ |
| 463 | lemma le_one_add_nine_mul_of_le_add {R : Type*} [Field R] [LinearOrder R] [IsStrictOrderedRing R] |
| 464 | {x C M : R} (hx₀ : 0 ≤ x) (hx : x ≤ 1 / 10) (hC : 0 ≤ C) |
| 465 | (h : M ≤ (1 + 4 * x) * C + x * M) : M ≤ (1 + 9 * x) * C := by |
| 466 | -- `(1 - x) (1 + 9 x) - (1 + 4 x) = x (4 - 9 x)` |
| 467 | have h_gain : 0 ≤ x * (4 - 9 * x) * C := mul_nonneg (mul_nonneg hx₀ (by linarith)) hC |
| 468 | have h_mul : (1 - x) * M ≤ (1 - x) * ((1 + 9 * x) * C) := by linarith |
| 469 | exact le_of_mul_le_mul_left h_mul (by linarith) |
| 470 | |
| 471 | open scoped Classical in |
| 472 | /-- For an admissible filling `S` of shape `𝔰` over a CM field `E` with `WeilData E` and |
| 473 | `1000 ≤ S.b`, let `V` be a complex inner product space, let |
| 474 | `β s = secondMoment (S.amplitudeSum .full Set.univ) {s}`, and suppose `u : S.ResidueGL → V` |
| 475 | satisfies `⟪u a, u b⟫_ℂ = β (a⁻¹ * b)` for all `a b : S.ResidueGL` and `β 1 ≤ 2 * S.sourceDim`. If |
| 476 | `places : Finset (S.chosenPlaces 0)` and `vectors : ∀ w : S.chosenPlaces 0, S.FrameVector w` |
| 477 | maximize, over all `places' : Finset (S.chosenPlaces 0)` and |
| 478 | `vectors' : ∀ w : S.chosenPlaces 0, S.FrameVector w`, the quantity |
| 479 | `(S.b ^ (6 * 𝔰.k)) ^ #places' * ∑ s : S.ResidueGL with s ∈ S.fixer places' vectors', β s`, then |
| 480 | `∑ s : S.ResidueGL with s ∈ S.fixer places vectors, β s` is at most |
| 481 | `(1 + 9 / S.b ^ 4) * ((S.b ^ (6 * 𝔰.k))⁻¹ ^ #places * S.mainSecondMoment)`. -/ |
| 482 | private lemma sum_secondMoment_fixer_le [S.IsAdmissible] {V : Type*} [NormedAddCommGroup V] |
| 483 | [InnerProductSpace ℂ V] [WeilData E] (u : S.ResidueGL → V) (hb : 1000 ≤ S.b) |
| 484 | (h_posType : ∀ a b : S.ResidueGL, |
| 485 | ⟪u a, u b⟫_ℂ = (secondMoment (S.amplitudeSum .full Set.univ) {a⁻¹ * b} : ℝ)) |
| 486 | (h_one : secondMoment (S.amplitudeSum .full Set.univ) {1} ≤ 2 * S.sourceDim) |
| 487 | (places : Finset (S.chosenPlaces 0)) (vectors : ∀ w : S.chosenPlaces 0, S.FrameVector w) |
| 488 | (h_max_weighted : ∀ places' vectors', |
| 489 | (S.b ^ (6 * 𝔰.k)) ^ #places' * |
| 490 | ∑ s : S.ResidueGL with s ∈ S.fixer places' vectors', |
| 491 | secondMoment (S.amplitudeSum .full Set.univ) {s} ≤ |
| 492 | (S.b ^ (6 * 𝔰.k)) ^ #places * |
| 493 | ∑ s : S.ResidueGL with s ∈ S.fixer places vectors, |
| 494 | secondMoment (S.amplitudeSum .full Set.univ) {s}) : |
| 495 | ∑ s : S.ResidueGL with s ∈ S.fixer places vectors, |
| 496 | secondMoment (S.amplitudeSum .full Set.univ) {s} ≤ |
| 497 | (1 + 9 / S.b ^ 4) * ((S.b ^ (6 * 𝔰.k))⁻¹ ^ #places * S.mainSecondMoment) := by |
| 498 | have h_main_nonneg : 0 ≤ S.mainSecondMoment := mainSecondMoment_nonneg |
| 499 | let β (s : S.ResidueGL) : ℝ := secondMoment (S.amplitudeSum .full Set.univ) {s} |
| 500 | have h_nonneg (s : S.ResidueGL) : 0 ≤ β s := secondMoment_nonneg |
| 501 | set stabFactor : ℝ := S.b ^ (6 * 𝔰.k) |
| 502 | let fixerMass (places : Finset (S.chosenPlaces 0)) |
| 503 | (vectors : ∀ w : S.chosenPlaces 0, S.FrameVector w) : ℝ := |
| 504 | ∑ s : S.ResidueGL with s ∈ S.fixer places vectors, β s |
| 505 | -- If every place is fixed, positive type bounds each term by its value at the identity. |
| 506 | obtain rfl | h_places := eq_or_ne places univ |
| 507 | · calc _ = secondMoment (S.amplitudeSum .full Set.univ) (S.fixer univ vectors) := |
| 508 | (secondMoment_eq_sum_secondMoment_singleton _ |
| 509 | (S.fixer univ vectors : Set S.ResidueGL)).symm |
| 510 | _ ≤ stabFactor⁻¹ ^ #univ * S.mainSecondMoment := secondMoment_fixer_univ_le vectors fun s ↦ |
| 511 | (le_apply_one_of_inner_eq (β := β) h_posType s).trans h_one |
| 512 | _ ≤ _ := le_mul_of_one_le_left (by positivity) (le_add_of_nonneg_right (by positivity)) |
| 513 | -- Take `w ∉ places`. Stabilizers of vectors at `w` are fixers for `insert w places`, so they are |
| 514 | -- small by maximality. |
| 515 | obtain ⟨w, hw⟩ : ∃ w : S.chosenPlaces 0, w ∉ places := |
| 516 | not_forall.1 (mt eq_univ_iff_forall.2 h_places) |
| 517 | have fixerMass_eq : fixerMass places vectors = ∑ s : S.fixer places vectors, β s.val := |
| 518 | sum_subtype _ (by simp) β |
| 519 | have h_vector_fixer (d : S.FrameVector w) : |
| 520 | ∑ s : S.fixer places vectors with s.val ∈ S.vectorFixer w d, β s.val ≤ |
| 521 | fixerMass places vectors / stabFactor := by |
| 522 | have h_le := h_max_weighted (insert w places) (Function.update vectors w d) |
| 523 | rw [card_insert_of_notMem hw, pow_succ, mul_assoc, mul_le_mul_iff_right₀ (by positivity), |
| 524 | ← le_div_iff₀' (by positivity)] at h_le |
| 525 | rw [sum_subgroup_filter _ (· ∈ S.vectorFixer w d)] |
| 526 | simpa only [fixerMass, mem_fixer_insert hw] using h_le |
| 527 | have h_nonopen : ∑ s : S.fixer places vectors with ¬S.IsOpenElement s.val, β s.val ≤ |
| 528 | (S.b ^ 4)⁻¹ * fixerMass places vectors := by |
| 529 | rw [fixerMass_eq] at h_vector_fixer ⊢ |
| 530 | exact sum_not_isOpenElement_le h_nonneg h_posType h_vector_fixer |
| 531 | have h_open : ∑ s : S.fixer places vectors with S.IsOpenElement s.val, β s.val ≤ |
| 532 | (1 + 4 / S.b ^ 4) * (stabFactor⁻¹ ^ #places * S.mainSecondMoment) := by |
| 533 | refine le_trans (le_of_eq ?_) (secondMoment_fixer_isOpenElement_le places vectors) |
| 534 | rw [sum_subgroup_filter, secondMoment_eq_sum_secondMoment_singleton] |
| 535 | congr! |
| 536 | -- Absorb the non-open contribution, at most b⁻⁴ of the fixer mass itself. |
| 537 | have h_open_nonopen : fixerMass places vectors ≤ |
| 538 | (1 + 4 / S.b ^ 4) * (stabFactor⁻¹ ^ #places * S.mainSecondMoment) + |
| 539 | (S.b ^ 4)⁻¹ * fixerMass places vectors := by |
| 540 | grw [← h_open, ← h_nonopen, sum_filter_add_sum_filter_not, fixerMass_eq] |
| 541 | simp only [div_eq_mul_inv _ (S.b ^ 4)] at h_open_nonopen ⊢ |
| 542 | exact le_one_add_nine_mul_of_le_add (by positivity) (by grw [← hb]; norm_num) (by positivity) |
| 543 | h_open_nonopen |
| 544 | |
| 545 | /-- Let the filling `S` over the CM field `E` be admissible (`IsAdmissible`) and assume Weil data on |
| 546 | `E`, which include a primitive `5040`-th root of unity. If `s ↦ ‖P_s‖²` has positive type, that is, |
| 547 | `‖P_(x⁻¹ y)‖² = ⟪u x, u y⟫` for vectors `u x` of an inner product space, and `‖P_1‖² ≤ 2 D_X`, then |
| 548 | `∑ ‖P_s‖² ≤ (1 + 9 b⁻⁴) 𝒟_main`. -/ |
| 549 | theorem sum_secondMoment_le [S.IsAdmissible] {V : Type*} [NormedAddCommGroup V] |
| 550 | [InnerProductSpace ℂ V] [WeilData E] (u : S.ResidueGL → V) |
| 551 | (h_posType : ∀ a b : S.ResidueGL, |
| 552 | ⟪u a, u b⟫_ℂ = (secondMoment (S.amplitudeSum .full Set.univ) {a⁻¹ * b} : |
| 553 | ℝ)) |
| 554 | (h_one : secondMoment (S.amplitudeSum .full Set.univ) {1} ≤ 2 * S.sourceDim) : |
| 555 | ∑ s : S.ResidueGL, secondMoment (S.amplitudeSum .full Set.univ) {s} ≤ |
| 556 | (1 + 9 / S.b ^ 4) * S.mainSecondMoment := by |
| 557 | classical |
| 558 | -- Choose places and vectors maximizing `stabFactor ^ #places` times the sum over the fixer. |
| 559 | -- Comparison with the empty set of places shows that it suffices to bound the sum for this |
| 560 | -- choice (`sum_secondMoment_fixer_le`). |
| 561 | have hb : 1000 ≤ S.b := S.thousand_le_b |
| 562 | let β (s : S.ResidueGL) : ℝ := secondMoment (S.amplitudeSum .full Set.univ) {s} |
| 563 | set stabFactor : ℝ := S.b ^ (6 * 𝔰.k) |
| 564 | let fixerMass (places : Finset (S.chosenPlaces 0)) |
| 565 | (vectors : ∀ w : S.chosenPlaces 0, S.FrameVector w) : ℝ := |
| 566 | ∑ s : S.ResidueGL with s ∈ S.fixer places vectors, β s |
| 567 | have : Nonempty (∀ w : S.chosenPlaces 0, S.FrameVector w) := ⟨fun _ ↦ (true, ⟨1, one_ne_zero⟩)⟩ |
| 568 | obtain ⟨places, vectors, h_max_weighted⟩ : ∃ places vectors, ∀ places' vectors', |
| 569 | stabFactor ^ #places' * fixerMass places' vectors' ≤ |
| 570 | stabFactor ^ #places * fixerMass places vectors := by |
| 571 | simpa only [Prod.exists, Prod.forall, Function.uncurry_apply_pair] using Finite.exists_max |
| 572 | (Function.uncurry fun places vectors ↦ stabFactor ^ #places * fixerMass places vectors) |
| 573 | have h_fixer_bound : fixerMass places vectors ≤ |
| 574 | (1 + 9 / S.b ^ 4) * (stabFactor⁻¹ ^ #places * S.mainSecondMoment) := |
| 575 | sum_secondMoment_fixer_le u hb h_posType h_one places vectors h_max_weighted |
| 576 | calc _ = stabFactor ^ #(∅ : Finset (S.chosenPlaces 0)) * fixerMass ∅ vectors := by |
| 577 | simp [fixerMass, β, mem_fixer] |
| 578 | _ ≤ stabFactor ^ #places * fixerMass places vectors := h_max_weighted ∅ vectors |
| 579 | _ ≤ stabFactor ^ #places * |
| 580 | ((1 + 9 / S.b ^ 4) * (stabFactor⁻¹ ^ #places * S.mainSecondMoment)) := by gcongr |
| 581 | _ = (1 + 9 / S.b ^ 4) * S.mainSecondMoment := by |
| 582 | rw [inv_pow] |
| 583 | field |
| 584 | |
| 585 | end Filling |
| 586 | |
| 587 | end New |