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.Order.Star.Real |
| 5 | import Mathlib.Analysis.Complex.ExponentialBounds |
| 6 | import Mathlib.Analysis.LocallyConvex.AbsConvexOpen |
| 7 | import Mathlib.NumberTheory.NumberField.Discriminant.Different |
| 8 | import TauCeti.NumberTheory.NumberField.Countable |
| 9 | public import TauCeti.NumberTheory.NumberField.FrequencySum |
| 10 | public import New.Spanning.Unfolding.BesselLevelStructure |
| 11 | public import Lib.Adelic.Adeles.SemilocalProducts |
| 12 | import Lib.Cohomology.Etale.Basic |
| 13 | import New.Spanning.RemainingTerms.Box |
| 14 | |
| 15 | /-! |
| 16 | # One-sided Poisson summation, sums over frequencies, and the sieve over all places |
| 17 | |
| 18 | The sieve over the infinite places of the CM field `E` and a finite set `T` of finite places, which |
| 19 | bounds the main term. |
| 20 | |
| 21 | * `New.Filling.charOnPlaces`, `New.Filling.globalChar`: the character of the product of the |
| 22 | completions at `T`, and its product with the characters at the infinite places. |
| 23 | * `New.Filling.sum_ratPoint_le_mul_add_integral_of_fourier_le`: one-sided Poisson summation over the |
| 24 | infinite places and `T`, at rational points integral off `T`. |
| 25 | * `New.Filling.entryDensity`, `New.Filling.densitySum`: the sum of densities at a common next entry, |
| 26 | and the sums of densities in which the first `i` entries are summed over `A`. |
| 27 | * `New.Filling.densitySum_succ_le_mul_densitySum_add`: each sum of densities is bounded by the one |
| 28 | before plus an error, up to the constant of Poisson summation (`New.Filling.poissonConst`). |
| 29 | * `New.Filling.densitySum_le`: the bound after all entries are removed in turn. |
| 30 | * `New.Filling.sieve`: the sieve for the product of one system for each infinite place and one |
| 31 | system at `T`, read at rational points (`New.Filling.ratPoint`). |
| 32 | |
| 33 | Conventions: `𝔰.k` and `𝔰.n = 𝔰.ϱ + 1` are parameters of the shape `𝔰`; in |
| 34 | `New.Filling.frequency_term_le` and `New.Filling.sum_frequencies_le`, `k` is any natural number. |
| 35 | `Φ v` is the chosen embedding of `E` at the infinite place `v`. |
| 36 | |
| 37 | Notions from other files: |
| 38 | * `New.Filling`: the data `S`, among them the size parameter `b = S.b`, the level `M = S.M`, the |
| 39 | prime `N = S.N` and a generator `ϖ = S.deltaE` of the different of `E`. |
| 40 | * `New.Filling.IsAdmissible`: the standing hypotheses on `S`, among them `1 ≤ |S.realM v| ≤ b ^ 23` |
| 41 | and `N ≤ b ^ (60 n)`. |
| 42 | * `New.ψf E`, written `ψ_f`: the character of the finite adeles with `ψ_f(x) = exp (2πi Tr a)` for |
| 43 | any `a ∈ E` with `x - a` integral. For totally complex `E`, `New.stdAddChar E` is the standard |
| 44 | character of the adeles. `New.Filling.selfDualChar` is `x ↦ ψ_f(-x / ϖ)`. |
| 45 | * `New.LocProd T`: the product of the completions at `T`, with integers `New.SemilocalField.O`; |
| 46 | `New.evalPlaces T` and `New.ratToPlaces T` map the finite adeles and `E` to it. |
| 47 | * `New.integralOff T`, `New.Filling.ratIntegralOff T`: the finite adeles and the elements of `E` |
| 48 | (the `T`-integers) that are integral at every finite place outside `T`. |
| 49 | * `New.genIndex a`, `New.denomIndex O a`: the generalised index `[O : a O]` and the denominator |
| 50 | `[O : O ∩ a⁻¹ O]`. |
| 51 | * `New.SieveSystem`: the axioms of the sieve for a family of forms `J i` on pairs of heads, at a |
| 52 | place or a product of places. |
| 53 | |
| 54 | ## Relation to the literature |
| 55 | |
| 56 | A system of positive kernels, of one kind at archimedean and finite places, has each kernel the |
| 57 | integral of the next over a common last entry. Systems multiply over places, and one-sided Poisson |
| 58 | summation, entry by entry, bounds the sum over rational points by the mass times a factor near 1, up |
| 59 | to the constants of summation and a small error, as the main term of the second moment requires. |
| 60 | Inductive Fourier transforms of Kloosterman integrals and spectral large sieves losing a constant or |
| 61 | X^ε are known in the literature. Related work: Jacquet, Smooth transfer of Kloosterman integrals, |
| 62 | 2003; Jacquet, Kloosterman identities over a quadratic extension, 2004; Blomer–Buttcane, Global |
| 63 | decomposition of GL(3) Kloosterman sums and the spectral large sieve, 2015; Deshouillers–Iwaniec, |
| 64 | Kloosterman sums and Fourier coefficients of cusp forms, 1982. |
| 65 | -/ |
| 66 | |
| 67 | @[expose] public section |
| 68 | |
| 69 | namespace New.Filling |
| 70 | |
| 71 | open NumberField ENNReal Finset Fintype MeasureTheory Measure Real AddSubgroup Matrix ComplexOrder |
| 72 | SemilocalField Complex |
| 73 | |
| 74 | /-- The character `S.selfDualChar` is `x ↦ ψ_f(-x / ϖ)`, where `ψ_f = ψf E` is the standard |
| 75 | character of the finite adeles and `ϖ = S.deltaE` generates the different of `E`. -/ |
| 76 | lemma selfDualChar_apply {E : Type} [Field E] [CMType E] {𝔰 : Shape} (S : Filling E 𝔰) |
| 77 | (x : 𝔸f E) : S.selfDualChar x = ψf E (algebraMap E (𝔸f E) (-(S.deltaE : E)⁻¹) * x) := rfl |
| 78 | |
| 79 | variable {E : Type} [Field E] [CMType E] [WeilData E] {𝔰 : Shape} (S : Filling E 𝔰) |
| 80 | (T : Finset (FinPlace E)) [T.StarStable] |
| 81 | |
| 82 | /-- The character `S.selfDualChar` of the finite adeles, `x ↦ ψ_f(-x / ϖ)`, read on the product of |
| 83 | the completions at `T` through extension by zero (`adeleOfLocal`). Here `ψ_f = ψf E` is the standard |
| 84 | character of the finite adeles, and `ϖ = S.deltaE` generates the different of `E`. -/ |
| 85 | noncomputable def charOnPlaces : AddChar (LocProd T) ℂ := |
| 86 | S.selfDualChar.compAddMonoidHom (adeleOfLocal T) |
| 87 | |
| 88 | section |
| 89 | |
| 90 | omit [WeilData E] [T.StarStable] |
| 91 | |
| 92 | /-- At a finite adele that is integral off `T`, the character `S.selfDualChar` depends only on the |
| 93 | components at `T`: it equals `S.charOnPlaces T` there. -/ |
| 94 | lemma charOnPlaces_evalPlaces {x : 𝔸f E} (hx : x ∈ integralOff T) : |
| 95 | S.charOnPlaces T (evalPlaces T x) = S.selfDualChar x := by |
| 96 | refine (eq_of_div_eq_one ?_).symm |
| 97 | rw [charOnPlaces, AddChar.compAddMonoidHom_apply, ← S.selfDualChar.map_sub_eq_div] |
| 98 | exact S.selfDualChar_eq_one_of_mem _ ((sub_adeleOfLocal_mem_iff T).2 hx) |
| 99 | |
| 100 | /-- The sieve character evaluated over the designated places is continuous. -/ |
| 101 | lemma continuous_charOnPlaces : Continuous (S.charOnPlaces T) := |
| 102 | continuous_ψf.subtypeVal.comp ((continuous_adeleOfLocal T).const_mul _) |
| 103 | |
| 104 | /-- The character of the product of the infinite places and the completions at `T`: the product of |
| 105 | the characters `wave c = exp (c - conj c)` at the infinite places and of `S.charOnPlaces T`. -/ |
| 106 | noncomputable def globalChar (x : (InfinitePlace E → ℂ) × LocProd T) : ℂ := |
| 107 | (∏ v : InfinitePlace E, wave (x.1 v)) * S.charOnPlaces T x.2 |
| 108 | |
| 109 | /-- The character `S.globalChar T` of the product of the infinite places |
| 110 | and the completions at `T` is continuous. -/ |
| 111 | lemma continuous_globalChar : Continuous (S.globalChar T) := |
| 112 | .mul (by fun_prop [wave]) ((S.continuous_charOnPlaces T).comp continuous_snd) |
| 113 | |
| 114 | /-- The decay factor at the places of `T` for a transform at the frequency `ξ`: the number |
| 115 | `[O : ξ O] ^ ((k - n⁷) / 2) / [O : O ∩ ξ⁻¹ O] ^ 3 * b ^ (n⁹ f)`, with `f` the number of infinite |
| 116 | places of `E`. -/ |
| 117 | noncomputable def frequencyDecay (ξ : LocProd T) : ℝ := |
| 118 | √(genIndex ξ) ^ (𝔰.k - 𝔰.n ^ 7) / denomIndex O ξ ^ 3 * S.b ^ (𝔰.n ^ 9 * numInfPlaces E) |
| 119 | |
| 120 | /-- The number `t`, read at the infinite places with the scales `l v` and at `T`: the point with |
| 121 | components `l v * Φ v t` and the image of `t` in the product of the completions at `T`. -/ |
| 122 | noncomputable def ratPoint (l : InfinitePlace E → ℂ) (t : E) : (InfinitePlace E → ℂ) × LocProd T := |
| 123 | (fun v : InfinitePlace E ↦ l v * Φ v t, ratToPlaces T t) |
| 124 | |
| 125 | /-- For `y` integral off `T`, the norm of the denominator ideal `{a ∈ 𝓞 E | a y ∈ 𝓞 E}` is at most |
| 126 | the index `[O : O ∩ y⁻¹ O]`, where `O` is the ring of integers of the completions at `T`. -/ |
| 127 | lemma absNorm_denIdeal_le {y : E} (hy : y ∈ ratIntegralOff T) : |
| 128 | Ideal.absNorm (Algebra.denIdeal (R := 𝓞 E) E y) ≤ denomIndex O (ratToPlaces T y) := by |
| 129 | -- The denominator of `y` is the preimage of the local one under `𝓞 E → O`. |
| 130 | let f : 𝓞 E →+ LocProd T := ((ratToPlaces T).comp (algebraMap (𝓞 E) E)).toAddMonoidHom |
| 131 | let D : AddSubgroup (LocProd T) := O.toAddSubgroup.comap (.mulLeft (ratToPlaces T y)) |
| 132 | have h_integral (a : 𝓞 E) : algebraMap E (𝔸f E) (algebraMap (𝓞 E) E a) ∈ Ô E := |
| 133 | algebraMap_mem_Ô.2 a.isIntegral_coe |
| 134 | have h_comap : (Algebra.denIdeal (R := 𝓞 E) E y).toAddSubgroup = D.comap f := by |
| 135 | ext a |
| 136 | have h_off : algebraMap E (𝔸f E) (algebraMap (𝓞 E) E a * y) ∈ integralOff T := by |
| 137 | simpa only [map_mul] using mul_mem ((mem_Ô_iff T).1 (h_integral a)).right hy |
| 138 | have h_mem : a ∈ Algebra.denIdeal (R := 𝓞 E) E y ↔ |
| 139 | IsIntegral ℤ (algebraMap (𝓞 E) E a * y) := by |
| 140 | simp [IsIntegralClosure.isIntegral_iff (A := 𝓞 E), eq_comm] |
| 141 | rw [Submodule.mem_toAddSubgroup, h_mem, ← algebraMap_mem_Ô, mem_Ô_iff T, |
| 142 | and_iff_left h_off] |
| 143 | simp [D, f, mul_comm] |
| 144 | have h_range : f.range ≤ O.toAddSubgroup := by |
| 145 | rintro _ ⟨a, rfl⟩ |
| 146 | exact ((mem_Ô_iff T).1 (h_integral a)).left |
| 147 | calc |
| 148 | _ = (Algebra.denIdeal (R := 𝓞 E) E y).toAddSubgroup.index := Ideal.absNorm_eq_natCard _ |
| 149 | _ = D.relIndex f.range := by rw [h_comap, index_comap] |
| 150 | _ ≤ _ := relIndex_le_of_le_right h_range (denomIndex_ne_zero T _) |
| 151 | |
| 152 | /-- Let `y ≠ 0` be integral off `T`, and let `‖c v‖⁻¹ ≤ |x v| ≤ B` with `1 ≤ B`. Take the product of |
| 153 | the decay factors of `y` at the infinite places (`dampedPower k r = r ^ k * min 1 r ^ 6` at |
| 154 | `r = ‖c v * Φ v y‖⁻¹`, `Φ v` the embedding at `v`) and at `T`. It is at most |
| 155 | `∏ v, |x v| ^ k * B ^ 6` times the inverse cube of the height of `y`, whose finite part is the norm |
| 156 | of the denominator ideal. -/ |
| 157 | lemma frequency_term_le {B : ℝ} (k : ℕ) {c : InfinitePlace E → ℂ} {x : InfinitePlace E → ℝ} |
| 158 | (hB : 1 ≤ B) (h_lower : ∀ v : InfinitePlace E, ‖c v‖⁻¹ ≤ |x v|) |
| 159 | (h_upper : ∀ v : InfinitePlace E, |x v| ≤ B) {y : E} (hy₀ : y ≠ 0) |
| 160 | (hyT : y ∈ ratIntegralOff T) : |
| 161 | (∏ v : InfinitePlace E, dampedPower k ‖c v * Φ v y‖⁻¹) * |
| 162 | (√(genIndex (ratToPlaces T y)) ^ k / denomIndex O (ratToPlaces T y) ^ 3) ≤ |
| 163 | (∏ v : InfinitePlace E, |x v| ^ k * B ^ 6) * |
| 164 | ((∏ v : InfinitePlace E, (max 1 ‖Φ v y‖)⁻¹ ^ 6) * |
| 165 | (Ideal.absNorm (Algebra.denIdeal (R := 𝓞 E) E y) : ℝ)⁻¹ ^ 3) := by |
| 166 | have h_inf (v : InfinitePlace E) : dampedPower k ‖c v * Φ v y‖⁻¹ * ‖Φ v y‖ ^ k ≤ |
| 167 | |x v| ^ k * B ^ 6 * (max 1 ‖Φ v y‖)⁻¹ ^ 6 := by |
| 168 | have h_min : min 1 (‖c v‖⁻¹ * ‖Φ v y‖⁻¹) ≤ B * (max 1 ‖Φ v y‖)⁻¹ := by |
| 169 | rcases le_total 1 ‖Φ v y‖ with h_ge | h_le |
| 170 | · grw [min_le_right, h_lower v, h_upper v, max_eq_right h_ge] |
| 171 | · grw [min_le_left, max_eq_left h_le, inv_one, mul_one, hB] |
| 172 | have h_cancel : (‖c v‖⁻¹ * ‖Φ v y‖⁻¹) ^ k * ‖Φ v y‖ ^ k = ‖c v‖⁻¹ ^ k := by |
| 173 | rw [← mul_pow, inv_mul_cancel_right₀ (by simpa using hy₀)] |
| 174 | rw [dampedPower, norm_mul, mul_inv, mul_right_comm, h_cancel, mul_assoc, ← mul_pow] |
| 175 | gcongr |
| 176 | exact h_lower v |
| 177 | set d : ℝ := (Ideal.absNorm (Algebra.denIdeal (R := 𝓞 E) E y) : ℝ) |
| 178 | have h_one_le : 1 ≤ d := by |
| 179 | simpa [d, Nat.one_le_iff_ne_zero, Ideal.absNorm_eq_zero_iff] using |
| 180 | Algebra.denIdeal_ne_bot E (nonZeroDivisors (𝓞 E)) y |
| 181 | have h_finite : ((denomIndex O (ratToPlaces T y) : ℝ) ^ 3)⁻¹ ≤ d⁻¹ ^ 3 := by |
| 182 | grw [← absNorm_denIdeal_le T hyT, inv_pow] |
| 183 | unfold dampedPower at h_inf ⊢ |
| 184 | calc |
| 185 | _ ≤ (∏ v, ‖c v * Φ v y‖⁻¹ ^ k * min 1 ‖c v * Φ v y‖⁻¹ ^ 6) * |
| 186 | ((∏ v, ‖Φ v y‖) ^ k * d⁻¹ ^ 3) := by |
| 187 | grw [div_eq_mul_inv, h_finite, sqrt_genIndex_le_prod_norm T hy₀ hyT] |
| 188 | _ = (∏ v, ‖c v * Φ v y‖⁻¹ ^ k * min 1 ‖c v * Φ v y‖⁻¹ ^ 6 * ‖Φ v y‖ ^ k) * d⁻¹ ^ 3 := by |
| 189 | rw [← mul_assoc, ← prod_pow, ← prod_mul_distrib] |
| 190 | _ ≤ _ := by grw [h_inf, prod_mul_distrib, mul_assoc] |
| 191 | |
| 192 | /-- Let `X` be a finite set of nonzero elements of `E` that are integral off `T`, and let |
| 193 | `‖c v‖⁻¹ ≤ |x v| ≤ B` with `1 ≤ B`. The sum over `y ∈ X` of the product of the decay factors at the |
| 194 | infinite places and at `T` is at most `∏ v, (|x v| ^ k * (b B²)³)`. -/ |
| 195 | theorem sum_frequencies_le (B : ℝ) (k : ℕ) (X : Finset E) (c : InfinitePlace E → ℂ) |
| 196 | (x : InfinitePlace E → ℝ) (hB : 1 ≤ B) (h_lower : ∀ v : InfinitePlace E, ‖c v‖⁻¹ ≤ |x v|) |
| 197 | (h_upper : ∀ v : InfinitePlace E, |x v| ≤ B) (hX₀ : ∀ y ∈ X, y ≠ 0) |
| 198 | (hXT : ∀ y ∈ X, y ∈ ratIntegralOff T) : |
| 199 | ∑ y ∈ X, (∏ v : InfinitePlace E, dampedPower k ‖c v * Φ v y‖⁻¹) * |
| 200 | (√(genIndex (ratToPlaces T y)) ^ k / denomIndex O (ratToPlaces T y) ^ 3) ≤ |
| 201 | ∏ v : InfinitePlace E, |x v| ^ k * (S.b * B ^ 2) ^ 3 := by |
| 202 | -- The inverse cubes of the heights have sum at most `64 * 38 * exp 4` per infinite place. |
| 203 | have h_const : 64 * 38 * Real.exp 4 ≤ S.b ^ 3 := by |
| 204 | have h_exp : Real.exp 4 = Real.exp 1 ^ 4 := by simp [← Real.exp_natCast_mul] |
| 205 | grw [h_exp, Real.exp_one_lt_three.le, ← S.thousand_le_b] |
| 206 | norm_num |
| 207 | calc |
| 208 | _ ≤ ∑ y ∈ X, (∏ v, |x v| ^ k * B ^ 6) * |
| 209 | ((∏ v, (max 1 ‖Φ v y‖)⁻¹ ^ 6) * |
| 210 | (Ideal.absNorm (Algebra.denIdeal (R := 𝓞 E) E y) : ℝ)⁻¹ ^ 3) := |
| 211 | sum_le_sum fun y hy ↦ frequency_term_le T k hB h_lower h_upper (hX₀ y hy) (hXT y hy) |
| 212 | _ ≤ (∏ v, |x v| ^ k * B ^ 6) * (64 * 38 * Real.exp 4) ^ numInfPlaces E := by |
| 213 | have h_norm (v : InfinitePlace E) (y : E) : ‖Φ v y‖ = v y := by |
| 214 | rw [← InfinitePlace.apply, mk_Φ] |
| 215 | simp_rw [h_norm] |
| 216 | grw [← mul_sum, sum_prod_inv_max_one_pow_six_mul_inv_absNorm_denIdeal_pow_three_le] |
| 217 | _ ≤ ∏ v, |x v| ^ k * B ^ 6 * S.b ^ 3 := by |
| 218 | grw [h_const, prod_mul_distrib (g := fun _ ↦ S.b ^ 3), prod_const, card_univ] |
| 219 | _ = _ := prod_congr rfl fun v _ ↦ by ring |
| 220 | |
| 221 | /-- Scaling by `r > 0` at the infinite places and projecting to `T` maps the measure on the adeles |
| 222 | that are integral off `T` to `volÔ E / ∏ v, r v ^ 2` times the product measure, where `volÔ E` is |
| 223 | the volume of the integral finite adeles. -/ |
| 224 | lemma measurePreserving_scale_evalPlaces {r : InfinitePlace E → ℝ} |
| 225 | (hr : ∀ v : InfinitePlace E, 0 < r v) : |
| 226 | MeasurePreserving (fun z : 𝔸 E ↦ (fun v : InfinitePlace E ↦ r v * z.1 v, evalPlaces T z.2)) |
| 227 | (volume.restrict (Set.univ ×ˢ (integralOff T : Set (𝔸f E)))) |
| 228 | (ENNReal.ofReal (volÔ E / ∏ v : InfinitePlace E, r v ^ 2) • volume) := by |
| 229 | -- Scaling by `r` has determinant `∏ v, r v ^ 2`. |
| 230 | let L : (InfinitePlace E → ℂ) →ₗ[ℝ] InfinitePlace E → ℂ := |
| 231 | .pi fun v ↦ (r v • (1 : ℂ →ₗ[ℝ] ℂ)).comp (.proj v) |
| 232 | have h_det : LinearMap.det L = ∏ v, r v ^ 2 := by simp [L, LinearMap.det_pi] |
| 233 | have h_pos : 0 < ∏ v, r v ^ 2 := prod_pos fun v _ ↦ pow_pos (hr v) 2 |
| 234 | have h_inf : MeasurePreserving L volume (ENNReal.ofReal (∏ v, r v ^ 2)⁻¹ • volume) := |
| 235 | ⟨by fun_prop, by rw [map_linearMap_addHaar_eq_smul_addHaar _ (h_det.trans_ne h_pos.ne'), h_det, |
| 236 | abs_of_pos (inv_pos.2 h_pos)]⟩ |
| 237 | have h_fin : MeasurePreserving (evalPlaces T) (volume.restrict (integralOff T)) |
| 238 | (volÔ E • volume) := ⟨by fun_prop, map_evalPlaces_restrict_volume T⟩ |
| 239 | have h_map : (fun z : 𝔸 E ↦ (fun v ↦ r v * z.1 v, evalPlaces T z.2)) = |
| 240 | Prod.map L (evalPlaces T) := by ext <;> simp [L] |
| 241 | rw [h_map] |
| 242 | simpa [volume_eq_prod, ← prod_restrict, prod_smul_left, prod_smul_right, div_eq_mul_inv, |
| 243 | mul_smul] using h_inf.prod h_fin |
| 244 | |
| 245 | end |
| 246 | |
| 247 | /-- On `New.𝔸 E`, `stdAddChar E x` is `exp (-2πi ∑ v, 2 Re x_v)` times `ψf E x.2`, where |
| 248 | `x_v = x.1 v` is the complex coordinate at the infinite place `v`. For totally complex `E`, this is |
| 249 | the standard additive character of the adeles. -/ |
| 250 | lemma coe_stdAddChar_apply {E : Type*} [Field E] [NumberField E] (x : 𝔸 E) : |
| 251 | (New.stdAddChar E x : ℂ) = fourierChar (-∑ v : InfinitePlace E, 2 * (x.1 v).re) * ψf E x.2 := |
| 252 | Circle.coe_mul _ _ |
| 253 | |
| 254 | /-- The character `wave c = exp (c - conj c)` at `c = 2πi w` is `exp (2πi * 2 Re w)`. -/ |
| 255 | lemma wave_two_pi_I_mul (w : ℂ) : wave (2 * π * .I * w) = fourierChar (2 * w.re) := by |
| 256 | have h_im : (2 * π * .I * w : ℂ).im = 2 * π * w.re := by simp |
| 257 | rw [wave, sub_conj, h_im, fourierChar_apply, mul_left_comm (2 * π)] |
| 258 | |
| 259 | omit [WeilData E] [T.StarStable] in |
| 260 | /-- Let `ϖ = S.deltaE` be the generator of the different of `E` in the filling data `S`. For `y ∈ E` |
| 261 | and an adele `z`, both integral off `T`, the standard adelic character at `-y z / ϖ` is the product |
| 262 | of the characters `wave c = exp (c - conj c)` at the infinite places and of `S.charOnPlaces T`, the |
| 263 | character `x ↦ ψ_f(-x / ϖ)` on the product of the completions at `T`. -/ |
| 264 | lemma stdAddChar_div_deltaE {y : E} (hy : y ∈ ratIntegralOff T) {z : 𝔸 E} |
| 265 | (hz : z.2 ∈ integralOff T) : |
| 266 | (New.stdAddChar E (toAdele (y / S.deltaE) * -z) : ℂ) = |
| 267 | (∏ v : InfinitePlace E, wave (2 * π * .I / Φ v S.deltaE * Φ v y * z.1 v)) * |
| 268 | S.charOnPlaces T (ratToPlaces T y * evalPlaces T z.2) := by |
| 269 | let w (v : InfinitePlace E) : ℂ := Φ v y / Φ v S.deltaE * z.1 v |
| 270 | have h_inf : (fourierChar (-∑ v, 2 * ((toAdele (y / S.deltaE) * -z).1 v).re) : ℂ) = |
| 271 | ∏ v : InfinitePlace E, wave (2 * π * .I / Φ v S.deltaE * Φ v y * z.1 v) := by |
| 272 | have h_arg (v : InfinitePlace E) : (toAdele (y / S.deltaE) * -z).1 v = -w v := by simp [w] |
| 273 | have h_wave (v : InfinitePlace E) : |
| 274 | 2 * π * .I / Φ v S.deltaE * Φ v y * z.1 v = 2 * π * .I * w v := by ring |
| 275 | calc |
| 276 | _ = (fourierChar (∑ v, 2 * (w v).re) : ℂ) := by |
| 277 | simp_rw [h_arg, neg_re, mul_neg, sum_neg_distrib, neg_neg] |
| 278 | _ = ∏ v, (fourierChar (2 * (w v).re) : ℂ) := by |
| 279 | simp only [fourierChar_apply, mul_sum, ofReal_sum, sum_mul, Complex.exp_sum] |
| 280 | _ = _ := by simp only [h_wave, wave_two_pi_I_mul] |
| 281 | have h_fin : (ψf E (toAdele (y / S.deltaE) * -z).2 : ℂ) = |
| 282 | S.charOnPlaces T (evalPlaces T (algebraMap E (𝔸f E) y * z.2)) := by |
| 283 | rw [S.charOnPlaces_evalPlaces T (mul_mem hy hz), selfDualChar_apply] |
| 284 | simp [div_eq_mul_inv, mul_assoc, mul_left_comm] |
| 285 | rw [coe_stdAddChar_apply, h_inf, h_fin, map_mul (evalPlaces T), ratToPlaces, RingHom.comp_apply] |
| 286 | |
| 287 | omit [WeilData E] [T.StarStable] in |
| 288 | /-- Let `G` be a function on the adeles that is invariant under the integral finite adeles that |
| 289 | vanish at `T`, written `a - adeleOfLocal T (evalPlaces T a)` (`a ∈ Ô E` integral, with its |
| 290 | components at `T` removed). If the Fourier transform of `G` at `y / ϖ` is not zero, then `y` is |
| 291 | integral off `T`. -/ |
| 292 | lemma mem_ratIntegralOff_of_transform_ne_zero {G : 𝔸 E → ℂ} |
| 293 | (hG : ∀ a ∈ Ô E, ∀ z : 𝔸 E, G ((0, a - adeleOfLocal T (evalPlaces T a)) + z) = G z) {y : E} |
| 294 | (hy : ∫ z : 𝔸 E, New.stdAddChar E (toAdele (y / S.deltaE) * -z) * G z ≠ 0) : |
| 295 | y ∈ ratIntegralOff T := by |
| 296 | rw [ratIntegralOff, Subring.mem_comap, ← sub_adeleOfLocal_mem_iff, |
| 297 | ← S.forall_selfDualChar_mul_eq_one_iff] |
| 298 | rintro ⟨a, ha⟩ |
| 299 | let a' : 𝔸 E := (0, a - adeleOfLocal T (evalPlaces T a)) |
| 300 | -- Translation by `a'` multiplies the transform by a character value, which must be `1`. |
| 301 | suffices (New.stdAddChar E (toAdele (y / S.deltaE) * -a') : ℂ) = 1 by |
| 302 | rw [← this, selfDualChar_apply] |
| 303 | simp [New.stdAddChar, a', adeleOfLocal_evalPlaces, div_eq_mul_inv] |
| 304 | exact congrArg _ (by ring_nf) |
| 305 | refine (mul_eq_right₀ hy).1 (Eq.symm ?_) |
| 306 | rw [← integral_const_mul, ← integral_add_left_eq_self _ a'] |
| 307 | congr with z |
| 308 | rw [hG a ha, neg_add, mul_add, AddChar.map_add_eq_mul, Circle.coe_mul, mul_assoc] |
| 309 | |
| 310 | /-- The function on the adeles that reads `F` after scaling by `r` at the infinite places and |
| 311 | projecting to `T`, on the adeles that are integral off `T`, and is zero elsewhere. -/ |
| 312 | noncomputable def extendToAdeles (r : InfinitePlace E → ℝ) |
| 313 | (F : (InfinitePlace E → ℂ) × LocProd T → ℝ) : 𝔸 E → ℝ := |
| 314 | (Set.univ ×ˢ (integralOff T : Set (𝔸f E))).indicator fun z : 𝔸 E ↦ |
| 315 | F (fun v : InfinitePlace E ↦ r v * z.1 v, evalPlaces T z.2) |
| 316 | |
| 317 | section ExtendToAdeles |
| 318 | |
| 319 | variable {r : InfinitePlace E → ℝ} {F : (InfinitePlace E → ℂ) × LocProd T → ℝ} |
| 320 | |
| 321 | section |
| 322 | |
| 323 | omit [WeilData E] [T.StarStable] |
| 324 | |
| 325 | /-- On an adele `z` whose finite part is integral off `T`, |
| 326 | `extendToAdeles T r F` is `F` at `(r · z_∞, evalPlaces T z_f)`. -/ |
| 327 | lemma extendToAdeles_of_mem {z : 𝔸 E} (hz : z.2 ∈ integralOff T) : |
| 328 | extendToAdeles T r F z = F (fun v : InfinitePlace E ↦ r v * z.1 v, evalPlaces T z.2) := by |
| 329 | simp [extendToAdeles, hz] |
| 330 | |
| 331 | lemma extendToAdeles_of_notMem {z : 𝔸 E} (hz : z.2 ∉ integralOff T) : |
| 332 | extendToAdeles T r F z = 0 := by simp [extendToAdeles, hz] |
| 333 | |
| 334 | /-- At the diagonal image `toAdele y` of a number `y` that is integral off `T`, the extension of `F` |
| 335 | is the value of `F` at the point with components `r v * Φ v y` and the image of `y` at `T`. -/ |
| 336 | lemma extendToAdeles_toAdele {y : E} (hy : y ∈ ratIntegralOff T) : |
| 337 | extendToAdeles T r F (toAdele y) = F (ratPoint T (fun v : InfinitePlace E ↦ (r v : ℂ)) y) := |
| 338 | extendToAdeles_of_mem T hy |
| 339 | |
| 340 | /-- Let `F` be a real function on the product of the infinite places and the completions at `T`, and |
| 341 | let `r v` be real scales. The extension `extendToAdeles T r F` reads `F` after scaling by `r` at |
| 342 | infinity and projecting to `T`, and is zero at adeles that are not integral off `T`. It is invariant |
| 343 | under the integral finite adeles that vanish at `T`, written `a - adeleOfLocal T (evalPlaces T a)` |
| 344 | with `a ∈ Ô E` integral. -/ |
| 345 | lemma extendToAdeles_sub_adeleOfLocal_add {a : 𝔸f E} (ha : a ∈ Ô E) (z : 𝔸 E) : |
| 346 | extendToAdeles T r F ((0, a - adeleOfLocal T (evalPlaces T a)) + z) = |
| 347 | extendToAdeles T r F z := by |
| 348 | have h_off : a - adeleOfLocal T (evalPlaces T a) ∈ integralOff T := |
| 349 | sub_mem ((mem_Ô_iff T).1 ha).right (adeleOfLocal_mem_integralOff T _) |
| 350 | by_cases hz : z.2 ∈ integralOff T |
| 351 | · rw [extendToAdeles_of_mem T hz, extendToAdeles_of_mem T (add_mem h_off hz)] |
| 352 | simp |
| 353 | · rw [extendToAdeles_of_notMem T hz, |
| 354 | extendToAdeles_of_notMem T (mt (add_mem_cancel_left h_off).1 hz)] |
| 355 | |
| 356 | /-- For positive scales `r`, the extension of an integrable function to the adeles is integrable. -/ |
| 357 | lemma integrable_extendToAdeles (hr : ∀ v : InfinitePlace E, 0 < r v) (hF : Integrable F) : |
| 358 | Integrable (extendToAdeles T r F) := |
| 359 | (integrable_indicator_iff (isOpen_univ.prod (isOpen_integralOff T)).measurableSet).2 |
| 360 | ((measurePreserving_scale_evalPlaces T hr).integrable_comp_of_integrable |
| 361 | (hF.smul_measure ofReal_ne_top)) |
| 362 | |
| 363 | /-- Let `F` be a real function on the product of the infinite places and the completions at `T`, let |
| 364 | `r v` be real scales, and let `y ∈ E` be integral off `T`. Suppose `F` is lower semicontinuous at |
| 365 | the point (`ratPoint`) with components `r v * Φ v y` and the image of `y` at `T`. Then the extension |
| 366 | of `F` to the adeles is lower semicontinuous at the diagonal image `toAdele y`. -/ |
| 367 | lemma lowerSemicontinuousAt_extendToAdeles {y : E} (hy : y ∈ ratIntegralOff T) |
| 368 | (hF : LowerSemicontinuousAt F (ratPoint T (fun v : InfinitePlace E ↦ (r v : ℂ)) y)) : |
| 369 | LowerSemicontinuousAt (extendToAdeles T r F) (toAdele y) := by |
| 370 | have h_comp : LowerSemicontinuousAt |
| 371 | (F ∘ fun z : 𝔸 E ↦ (fun v ↦ r v * z.1 v, evalPlaces T z.2)) (toAdele y) := |
| 372 | .comp hF (by fun_prop) |
| 373 | intro s hs |
| 374 | filter_upwards [((isOpen_integralOff T).preimage continuous_snd).mem_nhds hy, |
| 375 | h_comp s (hs.trans_eq (extendToAdeles_toAdele T hy))] with z hz_mem hz_lt |
| 376 | rwa [extendToAdeles_of_mem T hz_mem] |
| 377 | |
| 378 | /-- Let `T` be a finite set of finite places of `E`, let `r > 0`, let `F` be integrable and let `y` |
| 379 | be integral off `T`. Extend `F` to the adeles. The Fourier transform of the extension at `y / ϖ`, |
| 380 | with `ϖ = S.deltaE` the generator of the different, is `volÔ E / ∏ v, r v ^ 2` times the transform |
| 381 | of `F` at the point `ξ` given by `y` and the scales `2πi / (Φ v ϖ * r v)`. -/ |
| 382 | lemma integral_stdAddChar_mul_extendToAdeles (hr : ∀ v : InfinitePlace E, 0 < r v) |
| 383 | (hF : Integrable F) {y : E} (hy : y ∈ ratIntegralOff T) {ξ : (InfinitePlace E → ℂ) × LocProd T} |
| 384 | (hξ : ξ = ratPoint T (fun v : InfinitePlace E ↦ 2 * π * .I / Φ v S.deltaE / r v) y) : |
| 385 | ∫ z : 𝔸 E, New.stdAddChar E (toAdele (y / S.deltaE) * -z) * (extendToAdeles T r F z : ℂ) = |
| 386 | (volÔ E / ∏ v : InfinitePlace E, r v ^ 2 : ℝ) • |
| 387 | ∫ x : (InfinitePlace E → ℂ) × LocProd T, S.globalChar T (ξ * x) * F x := by |
| 388 | -- Pull the right side back along `m` to an integral over `U`, and compare the integrands. |
| 389 | let U : Set (𝔸 E) := Set.univ ×ˢ (integralOff T : Set (𝔸f E)) |
| 390 | let m (z : 𝔸 E) : (InfinitePlace E → ℂ) × LocProd T := (fun v ↦ r v * z.1 v, evalPlaces T z.2) |
| 391 | let ψ (x : (InfinitePlace E → ℂ) × LocProd T) : ℂ := S.globalChar T (ξ * x) |
| 392 | set c : ℝ := volÔ E / ∏ v, r v ^ 2 |
| 393 | have hU : MeasurableSet U := (isOpen_univ.prod (isOpen_integralOff T)).measurableSet |
| 394 | have hm : MeasurePreserving m (volume.restrict U) (ENNReal.ofReal c • volume) := |
| 395 | measurePreserving_scale_evalPlaces T hr |
| 396 | have hψ_cont : Continuous ψ := (S.continuous_globalChar T).comp (continuous_const_mul ξ) |
| 397 | have h_char {z : 𝔸 E} (hz : z.2 ∈ integralOff T) : |
| 398 | New.stdAddChar E (toAdele (y / S.deltaE) * -z) = ψ (m z) := by |
| 399 | have h_arg (v : InfinitePlace E) : |
| 400 | (ξ * m z).1 v = 2 * π * .I / Φ v S.deltaE * Φ v y * z.1 v := by |
| 401 | have h_ne : (r v : ℂ) ≠ 0 := ofReal_ne_zero.2 (hr v).ne' |
| 402 | simp [hξ, ratPoint, field] |
| 403 | have h_snd : (ξ * m z).2 = ratToPlaces T y * evalPlaces T z.2 := by simp [hξ, m, ratPoint] |
| 404 | simp only [ψ, globalChar, h_arg, h_snd, S.stdAddChar_div_deltaE T hy hz] |
| 405 | calc |
| 406 | _ = ∫ z in U, ψ (m z) * F (m z) := by |
| 407 | rw [← integral_indicator hU] |
| 408 | congr with z |
| 409 | by_cases hz : z.2 ∈ integralOff T |
| 410 | · rw [h_char hz, extendToAdeles_of_mem T hz] |
| 411 | simp [U, m, hz] |
| 412 | · simp [extendToAdeles_of_notMem T hz, U, hz] |
| 413 | _ = ∫ x, ψ x * F x ∂(ENNReal.ofReal c • volume) := hm.hasLaw.integral_comp |
| 414 | ((hψ_cont.aestronglyMeasurable.mul hF.ofReal.aestronglyMeasurable).smul_measure _) |
| 415 | _ = c • ∫ x, ψ x * F x := by rw [integral_smul_measure, toReal_ofReal (by positivity)] |
| 416 | |
| 417 | end |
| 418 | |
| 419 | end ExtendToAdeles |
| 420 | |
| 421 | omit [WeilData E] [T.StarStable] in |
| 422 | /-- Let `T` be a finite set of finite places of the CM field `E`, let `S : Filling E 𝔰` for a |
| 423 | shape `𝔰`, and let `r v > 0` at every infinite place `v` of `E`. Let `ε` bound the sums of `β` |
| 424 | over finite sets of nonzero `T`-integers `y` at the points |
| 425 | `ratPoint T (fun v ↦ 2 * π * .I / Φ v S.deltaE / r v) y`. Let `F ≥ 0` be integrable with Fourier |
| 426 | transform against `S.globalChar T` at each unit `ξ` of modulus at most `β ξ * M`, where `0 ≤ M`. |
| 427 | Then for every finite set `Y ⊆ E`, the sum over `y ∈ Y` of the norms of the adelic Fourier |
| 428 | transform of `extendToAdeles T r F` at `y` is at most `volÔ E / (∏ v, r v ^ 2)` times |
| 429 | `ε * M + ∫ F`, with `volÔ E` the volume of the integral finite adeles. -/ |
| 430 | private lemma sum_norm_integral_stdAddChar_mul_extendToAdeles_le {r : InfinitePlace E → ℝ} |
| 431 | (hr : ∀ v : InfinitePlace E, 0 < r v) {β : (InfinitePlace E → ℂ) × LocProd T → ℝ} {ε M : ℝ} |
| 432 | (hβ : ∀ X : Finset E, (∀ y ∈ X, y ≠ 0) → (∀ y ∈ X, y ∈ ratIntegralOff T) → |
| 433 | ∑ y ∈ X, β (ratPoint T (fun v : InfinitePlace E ↦ 2 * π * .I / Φ v S.deltaE / r v) y) ≤ ε) |
| 434 | {F : (InfinitePlace E → ℂ) × LocProd T → ℝ} (hF : Integrable F) (hF_nonneg : 0 ≤ F) |
| 435 | (hM_nonneg : 0 ≤ M) |
| 436 | (hF_hat : ∀ ξ : (InfinitePlace E → ℂ) × LocProd T, IsUnit ξ → |
| 437 | ‖∫ x : (InfinitePlace E → ℂ) × LocProd T, S.globalChar T (ξ * x) * F x‖ ≤ β ξ * M) |
| 438 | (Y : Finset E) : |
| 439 | ∑ y ∈ Y, ‖∫ z : 𝔸 E, New.stdAddChar E (toAdele y * -z) * (extendToAdeles T r F z : ℂ)‖ ≤ |
| 440 | volÔ E / (∏ v : InfinitePlace E, r v ^ 2) * |
| 441 | (ε * M + ∫ x : (InfinitePlace E → ℂ) × LocProd T, F x) := by |
| 442 | classical |
| 443 | -- The transform `FG y` of `G = extendToAdeles T r F` at `y / ϖ` is zero unless `y` is a |
| 444 | -- `T`-integer, and then it is `c` times the transform `FF y` of `F` at the matching frequency |
| 445 | -- `f y`. |
| 446 | set c : ℝ := volÔ E / ∏ v, r v ^ 2 |
| 447 | let G : 𝔸 E → ℝ := extendToAdeles T r F |
| 448 | let f : E → (InfinitePlace E → ℂ) × LocProd T := ratPoint T fun v ↦ |
| 449 | 2 * π * .I / Φ v S.deltaE / r v |
| 450 | let FG (y : E) : ℂ := ∫ z, New.stdAddChar E (toAdele (y / S.deltaE) * -z) * (G z : ℂ) |
| 451 | let FF (y : E) : ℂ := ∫ x, S.globalChar T (f y * x) * F x |
| 452 | have h_supp (y : E) (hy : ‖FG y‖ ≠ 0) : y ∈ ratIntegralOff T := |
| 453 | S.mem_ratIntegralOff_of_transform_ne_zero T |
| 454 | (fun a ha z ↦ congrArg Complex.ofReal (extendToAdeles_sub_adeleOfLocal_add T ha z)) |
| 455 | (norm_ne_zero_iff.1 hy) |
| 456 | have h_norm (y : E) (hy : y ∈ ratIntegralOff T) : ‖FG y‖ = c * ‖FF y‖ := by |
| 457 | rw [show FG y = c • FF y from S.integral_stdAddChar_mul_extendToAdeles T hr hF hy rfl, |
| 458 | norm_smul, |
| 459 | Real.norm_of_nonneg (by positivity)] |
| 460 | have h_zero : ‖FF 0‖ = ∫ x, F x := by |
| 461 | simp [FF, f, ratPoint, globalChar, wave, integral_complex_ofReal, integral_nonneg hF_nonneg] |
| 462 | have h_unit {y : E} (hy : y ≠ 0) : IsUnit (f y) := by |
| 463 | simp [f, ratPoint, Prod.isUnit_iff, Pi.isUnit_iff, IsUnit.map, ne_of_gt, hr, hy] |
| 464 | have h_bound (Y : Finset E) : ∑ y ∈ Y, ‖FG y‖ ≤ c * (ε * M + ∫ x, F x) := by |
| 465 | let X : Finset E := {y ∈ Y | y ∈ ratIntegralOff T}.erase 0 |
| 466 | have h_freq : ∑ y ∈ X, β (f y) ≤ ε := hβ X (fun y hy ↦ ne_of_mem_erase hy) |
| 467 | fun y hy ↦ (mem_filter.1 (mem_of_mem_erase hy)).2 |
| 468 | calc |
| 469 | _ = ∑ y ∈ Y with y ∈ ratIntegralOff T, c * ‖FF y‖ := by |
| 470 | rw [← sum_filter_of_ne fun y _ ↦ h_supp y] |
| 471 | exact sum_congr rfl fun y hy ↦ h_norm y (mem_filter.1 hy).2 |
| 472 | _ ≤ ∑ y ∈ insert 0 X, c * ‖FF y‖ := by |
| 473 | gcongr |
| 474 | exact insert_erase_subset 0 _ |
| 475 | _ = c * (∫ x, F x) + ∑ y ∈ X, c * ‖FF y‖ := by rw [sum_insert (notMem_erase 0 _), h_zero] |
| 476 | _ ≤ c * (∫ x, F x) + ∑ y ∈ X, c * (β (f y) * M) := by |
| 477 | gcongr with y hy |
| 478 | exact hF_hat (f y) (h_unit (ne_of_mem_erase hy)) |
| 479 | _ ≤ _ := by grw [← mul_sum, ← sum_mul, h_freq, mul_add, add_comm] |
| 480 | -- The frequencies are reindexed by `y ↦ y / ϖ`. |
| 481 | simpa [FG, S.deltaE_ne_zero] using |
| 482 | h_bound (Y.map (Equiv.mulRight₀ _ S.deltaE_ne_zero).toEmbedding) |
| 483 | |
| 484 | omit [WeilData E] [T.StarStable] in |
| 485 | /-- One-sided Poisson summation over the infinite places and a finite set `T` of finite places. Let |
| 486 | the elements of `V` be integral off `T`, read as points (`ratPoint`) scaled by `r > 0` at infinity. |
| 487 | Let `F ≥ 0` be integrable and lower semicontinuous at these points. Let its Fourier transform at |
| 488 | each unit `ξ` have modulus at most `β ξ * M` with `0 ≤ M`. Let `ε` bound the finite sums of `β` over |
| 489 | nonzero `T`-integers, scaled by `2πi / (Φ v ϖ * r v)`. Then the sum of `F` over the points is at |
| 490 | most `volÔ E / ∏ v, r v ^ 2` times `ε * M + ∫ F`, with `volÔ E` the volume of the integral finite |
| 491 | adeles. -/ |
| 492 | lemma sum_ratPoint_le_mul_add_integral_of_fourier_le {r : InfinitePlace E → ℝ} |
| 493 | (hr : ∀ v : InfinitePlace E, 0 < r v) |
| 494 | {V : Finset Eˣ} (hV : ∀ t ∈ V, (t : E) ∈ ratIntegralOff T) |
| 495 | {β : (InfinitePlace E → ℂ) × LocProd T → ℝ} {ε M : ℝ} |
| 496 | (hβ : ∀ X : Finset E, (∀ y ∈ X, y ≠ 0) → (∀ y ∈ X, y ∈ ratIntegralOff T) → |
| 497 | ∑ y ∈ X, β (ratPoint T (fun v : InfinitePlace E ↦ 2 * π * .I / Φ v S.deltaE / r v) y) ≤ ε) |
| 498 | {F : (InfinitePlace E → ℂ) × LocProd T → ℝ} (hF : Integrable F) (hF_nonneg : 0 ≤ F) |
| 499 | (hM_nonneg : 0 ≤ M) (hF_lsc : ∀ t ∈ V, |
| 500 | LowerSemicontinuousAt F (ratPoint T (fun v : InfinitePlace E ↦ (r v : ℂ)) (t : E))) |
| 501 | (hF_hat : ∀ ξ : (InfinitePlace E → ℂ) × LocProd T, IsUnit ξ → |
| 502 | ‖∫ x : (InfinitePlace E → ℂ) × LocProd T, S.globalChar T (ξ * x) * F x‖ ≤ β ξ * M) : |
| 503 | ∑ t ∈ V, F (ratPoint T (fun v : InfinitePlace E ↦ (r v : ℂ)) (t : E)) ≤ |
| 504 | volÔ E / (∏ v : InfinitePlace E, r v ^ 2) * |
| 505 | (ε * M + ∫ x : (InfinitePlace E → ℂ) × LocProd T, F x) := by |
| 506 | -- Apply Poisson summation on the adeles to the extension `G` of `F`. |
| 507 | let G : 𝔸 E → ℝ := extendToAdeles T r F |
| 508 | let ι : Eˣ ↪ ratAdeles E := |
| 509 | ⟨fun t ↦ ⟨toAdele (t : E), t, rfl⟩, fun t ↦ by simp [toAdele, Units.val_inj]⟩ |
| 510 | calc |
| 511 | _ = ∑ t ∈ V.map ι, G t := by |
| 512 | rw [sum_map] |
| 513 | exact sum_congr rfl fun t ht ↦ (extendToAdeles_toAdele T (hV t ht)).symm |
| 514 | _ ≤ _ := IsDualFamily.sum_le_of_fourier (integrable_extendToAdeles T hr hF) |
| 515 | (Set.indicator_nonneg fun z _ ↦ hF_nonneg _) (V.map ι) (forall_mem_map.2 fun t ht ↦ |
| 516 | lowerSemicontinuousAt_extendToAdeles T (hV t ht) (hF_lsc t ht)) |
| 517 | (S.sum_norm_integral_stdAddChar_mul_extendToAdeles_le T hr hβ hF hF_nonneg hM_nonneg hF_hat) |
| 518 | |
| 519 | /-- A head is a sequence of entries on which the forms of the sieve are evaluated. Here each entry |
| 520 | is a unit at every infinite place together with a unit of the product of the completions at `T`. -/ |
| 521 | abbrev GlobalHead : Type := ℕ → (InfinitePlace E → ℂˣ) × (LocProd T)ˣ |
| 522 | |
| 523 | /-- A point of the product of the infinite places and `T` as a unit. A component at an infinite |
| 524 | place that is zero is replaced by `1`, and so is the component in `LocProd T` if it is not a |
| 525 | unit. -/ |
| 526 | noncomputable abbrev unitOrOneAtPlaces (x : (InfinitePlace E → ℂ) × LocProd T) : |
| 527 | (InfinitePlace E → ℂˣ) × (LocProd T)ˣ := |
| 528 | Prod.map (unitOrOne ∘ ·) unitOrOne x |
| 529 | |
| 530 | /-- A sieve system on the product of the infinite places and `T`, for the character |
| 531 | `S.globalChar T`. The density `J i` pairs two heads and, for `i ≤ n`, is the integral of `J (i + 1)` |
| 532 | over a common entry at position `i`. The density at the last entry `J (n + 1)` is continuous, and |
| 533 | positive semidefinite on heads with a common entry at position `n`; the mass `J 0` has modulus at |
| 534 | most `En`. The transform of `J (i + 1)` in the common entry at a unit `ξ` has modulus at most the |
| 535 | decay `β ξ` times the weights `Λ i` of the two heads. For `i < n`, the same bound with weights |
| 536 | `Λ (i + 1)` holds for `J (i + 1)` at two heads with entries `t`, `s` at position `i`, if |
| 537 | `ξ = 1 / t - 1 / s` (divided by the level `M = S.M` at `T`) is a unit. -/ |
| 538 | abbrev IsGlobalSieveSystem (n : ℕ) (J : ℕ → GlobalHead T → GlobalHead T → ℂ) (En : ℝ) |
| 539 | (Λ : ℕ → GlobalHead T → ℝ) (β : (InfinitePlace E → ℂ) × LocProd T → ℝ) : Prop := |
| 540 | SieveSystem (unitOrOneAtPlaces T) |
| 541 | (Prod.map (fun z : InfinitePlace E → ℂˣ ↦ (fun w : ℂˣ ↦ ((w⁻¹ : ℂˣ) : ℂ)) ∘ z) |
| 542 | fun w : (LocProd T)ˣ ↦ ratToPlaces T (S.M : E)⁻¹ * ((w⁻¹ : (LocProd T)ˣ) : LocProd T)) |
| 543 | n J (S.globalChar T) En Λ β |
| 544 | |
| 545 | /-- `ε` bounds the sums of the decay `β` over nonzero frequencies that are integral off `T`, at all |
| 546 | scales `c v / frameScaleSq v a` with `‖c v‖⁻¹ ≤ |realM v| / M`. These cover the frequencies of |
| 547 | Poisson summation (`c v = 2πi / Φ v ϖ`) and, when `1 ≤ |realM v|`, of two heads with different last |
| 548 | entries (`c v = M`). Here `M` is the level, `realM v` is the real number `M * Φ v ϖ / (2πi)`, and |
| 549 | `frameScaleSq v a = realM v ^ (2 (ϱ - a)) / N` scales the entry `a`. -/ |
| 550 | def BoundsDecay (β : (InfinitePlace E → ℂ) × LocProd T → ℝ) (ε : ℝ) : Prop := |
| 551 | ∀ (a : ℕ) (c : InfinitePlace E → ℂ), (∀ v : InfinitePlace E, ‖c v‖⁻¹ ≤ |S.realM v| / S.M) → |
| 552 | ∀ X : Finset E, (∀ y ∈ X, y ≠ 0) → (∀ y ∈ X, y ∈ ratIntegralOff T) → |
| 553 | ∑ y ∈ X, β (ratPoint T (fun v : InfinitePlace E ↦ c v / S.frameScaleSq v a) y) ≤ ε |
| 554 | |
| 555 | /-- The number `t` as the entry `a` of a head: scaled at the infinite place `v` by |
| 556 | `S.frameScaleSq v a = κ_v ^ (2 (ϱ - a)) / N`, with `κ_v = S.realM v`, and read at `T`. -/ |
| 557 | noncomputable def scaledEntry (a : ℕ) (t : Eˣ) : (InfinitePlace E → ℂ) × LocProd T := |
| 558 | ratPoint T (fun v : InfinitePlace E ↦ (S.frameScaleSq v a : ℂ)) (t : E) |
| 559 | |
| 560 | /-- The head with first entries `p`, next entry `t` and later entries `1`, read in the scaled frame |
| 561 | at the infinite places and at `T`. -/ |
| 562 | noncomputable def scaledHead {A : Finset Eˣ} {i : ℕ} (p : Fin i → A) (t : Eˣ) : GlobalHead T := |
| 563 | fun a : ℕ ↦ unitOrOneAtPlaces T (S.scaledEntry T a (padTuple (fun j : Fin i ↦ (p j : Eˣ)) t a)) |
| 564 | |
| 565 | /-- The constant of Poisson summation in the entry `a`: the volume of the integral finite adeles |
| 566 | divided by the Jacobian of the scaling at the infinite places. -/ |
| 567 | noncomputable def poissonConst (a : ℕ) : ℝ := |
| 568 | volÔ E / ∏ v : InfinitePlace E, S.frameScaleSq v a ^ 2 |
| 569 | |
| 570 | omit [WeilData E] in |
| 571 | lemma poissonConst_nonneg (a : ℕ) : 0 ≤ S.poissonConst a := |
| 572 | div_nonneg (by positivity) (by positivity) |
| 573 | |
| 574 | /-- The sum of the densities `J (i + 1)` over the pairs of heads of length `i` with entries in `A`, |
| 575 | at the common next entry `x`. -/ |
| 576 | noncomputable def entryDensity (A : Finset Eˣ) (J : ℕ → GlobalHead T → GlobalHead T → ℂ) (i : ℕ) |
| 577 | (x : (InfinitePlace E → ℂ) × LocProd T) : ℂ := |
| 578 | ∑ p : Fin i → A, ∑ q : Fin i → A, J (i + 1) |
| 579 | (Function.update (S.scaledHead T p 1) i (unitOrOneAtPlaces T x)) |
| 580 | (Function.update (S.scaledHead T q 1) i (unitOrOneAtPlaces T x)) |
| 581 | |
| 582 | /-- The sum of densities in which `i` entries are still summed over `A`, the last of them common |
| 583 | to the two heads: the real part of the mass for `i = 0`, and of the sum of `entryDensity (i - 1)` |
| 584 | over `A` for `i > 0`. -/ |
| 585 | noncomputable def densitySum (A : Finset Eˣ) (J : ℕ → GlobalHead T → GlobalHead T → ℂ) : ℕ → ℝ |
| 586 | | 0 => (J 0 (S.scaledHead T (A := A) ![] 1) (S.scaledHead T (A := A) ![] 1)).re |
| 587 | | i + 1 => ∑ t ∈ A, (S.entryDensity T A J i (S.scaledEntry T i t)).re |
| 588 | |
| 589 | section OneEntryFewer |
| 590 | |
| 591 | variable {A : Finset Eˣ} {n : ℕ} {J : ℕ → GlobalHead T → GlobalHead T → ℂ} {massBound ε : ℝ} |
| 592 | {Λ : ℕ → GlobalHead T → ℝ} {β : (InfinitePlace E → ℂ) × LocProd T → ℝ} |
| 593 | |
| 594 | omit [WeilData E] [T.StarStable] |
| 595 | |
| 596 | /-- At the point `scaledEntry T i t` (the unit `t` as entry `i`, scaled at each infinite place `v` |
| 597 | by `frameScaleSq v i` and read at `T`), the entry density `entryDensity T A J i` is the sum of |
| 598 | `J (i + 1)` over the pairs of heads `scaledHead T p t`, `scaledHead T q t`. These heads have first |
| 599 | entries `p`, `q : Fin i → A`, common next entry `t`, and later entries `1`. -/ |
| 600 | lemma entryDensity_scaledEntry (i : ℕ) (t : Eˣ) : |
| 601 | S.entryDensity T A J i (S.scaledEntry T i t) = |
| 602 | ∑ p : Fin i → A, ∑ q : Fin i → A, J (i + 1) (S.scaledHead T p t) (S.scaledHead T q t) := by |
| 603 | have h_update (p : Fin i → A) : Function.update (S.scaledHead T p 1) i |
| 604 | (unitOrOneAtPlaces T (S.scaledEntry T i t)) = S.scaledHead T p t := by |
| 605 | simp +contextual [scaledHead, padTuple, Function.update_eq_iff] |
| 606 | simp only [entryDensity, h_update] |
| 607 | |
| 608 | /-- A head whose first entries are `p` followed by `t`, and whose later entries are `1`, is the head |
| 609 | with first entries `p` and next entry `t`. -/ |
| 610 | lemma scaledHead_snoc {i : ℕ} (p : Fin i → A) (t : A) : |
| 611 | S.scaledHead T (Fin.snoc p t : Fin (i + 1) → A) 1 = S.scaledHead T p t := |
| 612 | funext fun a ↦ by grind [scaledHead, padTuple, Fin.snoc, Fin.castLT] |
| 613 | |
| 614 | /-- For a sieve system of length `n` with densities `J` and `i ≤ n`, the sum of `J (i + 1)` over the |
| 615 | pairs of heads with a common entry at position `i` is a nonnegative real number. -/ |
| 616 | lemma entryDensity_nonneg (K : S.IsGlobalSieveSystem T n J massBound Λ β) {i : ℕ} (hi : i ≤ n) : |
| 617 | 0 ≤ S.entryDensity T A J i := |
| 618 | fun _ ↦ K.sum_nonneg hi _ fun _ ↦ Function.update_self .. |
| 619 | |
| 620 | /-- Let `K` be a sieve system of length `n` with densities `J`, let `A` be a finite set of units of |
| 621 | `E`, and let `i ≤ n`. The entry density at `x` (`entryDensity`) is the sum of `J (i + 1)` over the |
| 622 | pairs of heads with first `i` entries in `A` and common entry `x` at position `i`. Its real part is |
| 623 | lower semicontinuous in `x` at each point `scaledEntry T i t`, which is the unit `t` scaled at each |
| 624 | infinite place `v` by `frameScaleSq v i = κ_v ^ (2 (ϱ - i)) / N` and read at `T`. -/ |
| 625 | lemma lowerSemicontinuousAt_entryDensity (K : S.IsGlobalSieveSystem T n J massBound Λ β) {i : ℕ} |
| 626 | (hi : i ≤ n) (t : Eˣ) : |
| 627 | LowerSemicontinuousAt |
| 628 | (fun x : (InfinitePlace E → ℂ) × LocProd T ↦ (S.entryDensity T A J i x).re) |
| 629 | (S.scaledEntry T i t) := by |
| 630 | -- The rational point is a unit, where passing to units is continuous. |
| 631 | have h_cont : ContinuousAt (unitOrOneAtPlaces T) (S.scaledEntry T i t) := |
| 632 | .prodMap (.piMap fun v ↦ continuousAt_unitOrOne |
| 633 | (.mk0 (S.frameScaleSq v i * Φ v t) (by simp [(S.frameScaleSq_pos v i).ne']))) |
| 634 | (continuousAt_unitOrOne (t.map (ratToPlaces T).toMonoidHom)) |
| 635 | have h_lsc : LowerSemicontinuousAt |
| 636 | (fun x ↦ ENNReal.ofReal (S.entryDensity T A J i x).re) (S.scaledEntry T i t) := |
| 637 | K.lowerSemicontinuousAt_sum hi _ (fun _ _ ↦ Function.update_self ..) |
| 638 | fun _ ↦ continuousAt_const.update i h_cont |
| 639 | -- The density is nonnegative, so `ENNReal.ofReal` loses nothing. |
| 640 | intro y hy |
| 641 | obtain hy_neg | hy_nonneg := lt_or_ge y 0 |
| 642 | · exact .of_forall fun x ↦ hy_neg.trans_le (S.entryDensity_nonneg T K hi x).1 |
| 643 | · simpa only [ofReal_lt_ofReal_iff_of_nonneg hy_nonneg] using |
| 644 | h_lsc _ ((ofReal_lt_ofReal_iff_of_nonneg hy_nonneg).2 hy) |
| 645 | |
| 646 | /-- Poisson summation in the entry `i ≤ n`. Let `S` satisfy the standing hypotheses |
| 647 | (`IsAdmissible`). Let `J` be the densities of a sieve system of length `n` with weights `Λ` and |
| 648 | decay `β`, summed to at most `ε` over nonzero frequencies (`BoundsDecay`), and let the elements of |
| 649 | `A` be integral off `T`. The head `scaledHead T p 1` has first entries `p` and later entries `1`, |
| 650 | with the entry `a` scaled at the infinite place `v` by `frameScaleSq v a = κ_v ^ (2 (ϱ - a)) / N`. |
| 651 | The left side is the real part of the sum of `J (i + 1)` over the pairs of heads of length `i + 1` |
| 652 | with entries in `A` and a common last entry. Up to the constant `poissonConst i = volÔ E / ∏ v, |
| 653 | frameScaleSq v i ^ 2`, with `volÔ E` the volume of the integral finite adeles, the frequency `0` |
| 654 | gives the sum of `J i` over all pairs of heads of length `i`, and the other frequencies give at most |
| 655 | `ε` times the squared sum of the weights of these heads. -/ |
| 656 | lemma densitySum_succ_le (hA : ∀ t ∈ A, (t : E) ∈ ratIntegralOff T) |
| 657 | (K : S.IsGlobalSieveSystem T n J massBound Λ β) (hβ : S.BoundsDecay T β ε) {i : ℕ} |
| 658 | (hi : i ≤ n) : |
| 659 | S.densitySum T A J (i + 1) ≤ S.poissonConst i * |
| 660 | (ε * (∑ p : Fin i → A, Λ i (S.scaledHead T p 1)) ^ 2 + |
| 661 | (∑ p : Fin i → A, ∑ q : Fin i → A, J i (S.scaledHead T p 1) (S.scaledHead T q 1)).re) := by |
| 662 | set density : (InfinitePlace E → ℂ) × LocProd T → ℂ := S.entryDensity T A J i |
| 663 | have h_nonneg : 0 ≤ density := S.entryDensity_nonneg T K hi |
| 664 | have h_int : Integrable density := K.integrable_sum_update hi (S.scaledHead T · 1) |
| 665 | have h_integral : ∫ x, (density x).re = |
| 666 | (∑ p : Fin i → A, ∑ q : Fin i → A, J i (S.scaledHead T p 1) (S.scaledHead T q 1)).re := |
| 667 | (integral_re h_int).trans (congrArg re (K.integral_sum_update hi (S.scaledHead T · 1))) |
| 668 | have h_hat (ξ : (InfinitePlace E → ℂ) × LocProd T) (hξ : IsUnit ξ) : |
| 669 | ‖∫ x, S.globalChar T (ξ * x) * ((density x).re : ℂ)‖ ≤ |
| 670 | β ξ * (∑ p : Fin i → A, Λ i (S.scaledHead T p 1)) ^ 2 := by |
| 671 | -- The density is real. |
| 672 | simp only [← eq_re_of_ofReal_le (h_nonneg _)] |
| 673 | exact K.norm_integral_mul_sum_update_le hi (S.scaledHead T · 1) hξ |
| 674 | have h_scale (v : InfinitePlace E) : ‖2 * π * .I / Φ v S.deltaE‖⁻¹ ≤ |S.realM v| / S.M := by |
| 675 | simp [abs_realM_eq, div_right_comm _ (2 * π), abs_of_pos pi_pos, Nat.Prime.ne_zero] |
| 676 | rw [← h_integral] |
| 677 | exact S.sum_ratPoint_le_mul_add_integral_of_fourier_le T (F := fun x ↦ (density x).re) |
| 678 | (S.frameScaleSq_pos · i) hA |
| 679 | (hβ i _ h_scale) h_int.re (fun x ↦ (h_nonneg x).1) (sq_nonneg _) |
| 680 | (fun t _ ↦ S.lowerSemicontinuousAt_entryDensity T K hi t) h_hat |
| 681 | |
| 682 | /-- Let `J`, `Λ ≥ 0`, `β` be the densities, weights and decay of a sieve system of length `n`: for |
| 683 | `i < n`, the modulus of `J (i + 1)` at two heads is at most `β ξ` times their weights `Λ (i + 1)` if |
| 684 | the difference `ξ` of the inverses of their entries at position `i` (divided by the level `M = S.M` |
| 685 | at `T`) is a unit. Let `β` sum to at most `ε` over nonzero frequencies (`BoundsDecay`), and let the |
| 686 | inverses of `M` and of the elements of `A` be integral off `T`. At two heads with different entries |
| 687 | `t`, `s` at position `i < n`, the frequency comes from the nonzero `T`-integer |
| 688 | `(1 / t - 1 / s) / M`, so the real part of `J (i + 1)` is at most `ε` times the two weights. -/ |
| 689 | lemma re_le_of_last_entries_ne [S.IsAdmissible] |
| 690 | (hA : ∀ t ∈ A, ((t⁻¹ : Eˣ) : E) ∈ ratIntegralOff T) |
| 691 | (hM_inv : (S.M : E)⁻¹ ∈ ratIntegralOff T) (K : S.IsGlobalSieveSystem T n J massBound Λ β) |
| 692 | (hβ : S.BoundsDecay T β ε) (hΛ : ∀ (i : ℕ) (p : GlobalHead T), 0 ≤ Λ i p) {i : ℕ} (hi : i < n) |
| 693 | {t s : A} (hts : t ≠ s) (p q : Fin i → A) : |
| 694 | (J (i + 1) (S.scaledHead T p t) (S.scaledHead T q s)).re ≤ |
| 695 | ε * (Λ (i + 1) (S.scaledHead T p t) * Λ (i + 1) (S.scaledHead T q s)) := by |
| 696 | let y : E := (S.M : E)⁻¹ * (t.val⁻¹.val - s.val⁻¹.val) |
| 697 | let ξ : (InfinitePlace E → ℂ) × LocProd T := ratPoint T (fun v ↦ S.M / S.frameScaleSq v i) y |
| 698 | have y_ne : y ≠ 0 := by |
| 699 | simp [y, sub_eq_zero, Units.val_inj, hts, Nat.Prime.ne_zero] |
| 700 | have y_mem : y ∈ ratIntegralOff T := mul_mem hM_inv (sub_mem (hA t t.property) (hA s s.property)) |
| 701 | have ξ_unit : IsUnit ξ := by |
| 702 | simp [ξ, y_ne, ratPoint, Prod.isUnit_iff, Pi.isUnit_iff, IsUnit.map, |
| 703 | (S.frameScaleSq_pos _ i).ne', Nat.Prime.ne_zero] |
| 704 | have h_scale (v : InfinitePlace E) : ‖(S.M : ℂ)‖⁻¹ ≤ |S.realM v| / S.M := by |
| 705 | grw [← one_le_abs_realM, Complex.norm_natCast, one_div] |
| 706 | have hβ_le : β ξ ≤ ε := by |
| 707 | simpa [ξ] using hβ i (fun _ ↦ S.M) h_scale {y} (by simpa using y_ne) (by simpa using y_mem) |
| 708 | have h_off : ‖J (i + 1) (S.scaledHead T p t) (S.scaledHead T q s)‖ ≤ |
| 709 | β ξ * (Λ (i + 1) (S.scaledHead T p t) * Λ (i + 1) (S.scaledHead T q s)) := by |
| 710 | have h_raw := K.norm_le_of_isUnit_sub i (S.scaledHead T p t) (S.scaledHead T q s) hi |
| 711 | -- The frequency `ξ'` of the sieve system at these two heads is `ξ`. |
| 712 | extract_lets ξ' at h_raw |
| 713 | have hξ : ξ' = ξ := by |
| 714 | simp [ξ', ξ, scaledHead, scaledEntry, ratPoint, padTuple, unitOrOne, y, field, funext_iff, |
| 715 | IsUnit.map, (S.frameScaleSq_pos _ i).ne', ↓map_sub, ↓map_mul, ↓map_units_inv] |
| 716 | intro v |
| 717 | field [Nat.Prime.ne_zero] |
| 718 | rw [hξ] at h_raw |
| 719 | exact h_raw ξ_unit |
| 720 | grw [re_le_norm, h_off, hβ_le] |
| 721 | exact mul_nonneg (hΛ _ _) (hΛ _ _) |
| 722 | |
| 723 | /-- Let `J`, `Λ ≥ 0`, `β` be the densities, weights and decay of a sieve system of length `n`. Let |
| 724 | `β` sum to at most `ε ≥ 0` over nonzero frequencies (`BoundsDecay`), and let the inverses of the |
| 725 | level `M = S.M` and of the elements of `A` be integral off `T`. For `i ≤ n`, sum the real part of |
| 726 | `J i` over the pairs of heads of length `i` with entries in `A`. The pairs with equal last entries |
| 727 | give `densitySum T A J i`, by definition, and the others give at most `ε` times the squared sum of |
| 728 | the weights. -/ |
| 729 | lemma re_sum_sum_le_densitySum_add [S.IsAdmissible] |
| 730 | (hA : ∀ t ∈ A, ((t⁻¹ : Eˣ) : E) ∈ ratIntegralOff T) |
| 731 | (hM_inv : (S.M : E)⁻¹ ∈ ratIntegralOff T) (K : S.IsGlobalSieveSystem T n J massBound Λ β) |
| 732 | (hβ : S.BoundsDecay T β ε) (hε : 0 ≤ ε) (hΛ : ∀ (i : ℕ) (p : GlobalHead T), 0 ≤ Λ i p) {i : ℕ} |
| 733 | (hi : i ≤ n) : |
| 734 | (∑ p : Fin i → A, ∑ q : Fin i → A, J i (S.scaledHead T p 1) (S.scaledHead T q 1)).re ≤ |
| 735 | S.densitySum T A J i + ε * (∑ p : Fin i → A, Λ i (S.scaledHead T p 1)) ^ 2 := by |
| 736 | classical |
| 737 | obtain _ | i := i |
| 738 | · -- There is a single pair of empty heads. |
| 739 | simpa [densitySum, Subsingleton.elim default ![]] using mul_nonneg hε (sq_nonneg _) |
| 740 | -- Write each head as its first entries and its last entry, and separate equal last entries. |
| 741 | have h_split (f : (Fin (i + 1) → A) → ℝ) : |
| 742 | ∑ p, f p = ∑ t : A, ∑ p : Fin i → A, f (Fin.snoc p t) := by |
| 743 | simp [← (Fin.snocEquiv fun _ ↦ A).sum_comp, sum_prod_type, Fin.snocEquiv] |
| 744 | let w (t : A) (p : Fin i → A) : ℝ := Λ (i + 1) (S.scaledHead T p t) |
| 745 | let d (t s : A) (p q : Fin i → A) : ℝ := |
| 746 | (J (i + 1) (S.scaledHead T p t) (S.scaledHead T q s)).re |
| 747 | calc |
| 748 | _ = ∑ t, ∑ p, ∑ s, ∑ q, d t s p q := by simp only [d, re_sum, h_split, scaledHead_snoc] |
| 749 | _ ≤ ∑ t, ∑ p, (∑ q, d t t p q + ∑ s ∈ univ.erase t, ∑ q, ε * (w t p * w s q)) := by |
| 750 | gcongr with t _ p |
| 751 | rw [← add_sum_erase _ _ (mem_univ t)] |
| 752 | gcongr with s hs q |
| 753 | exact S.re_le_of_last_entries_ne T hA hM_inv K hβ hΛ hi (ne_of_mem_erase hs).symm p q |
| 754 | _ ≤ ∑ t, ∑ p, (∑ q, d t t p q + ∑ s, ∑ q, ε * (w t p * w s q)) := by |
| 755 | gcongr |
| 756 | · exact fun s _ _ ↦ Finset.sum_nonneg fun q _ ↦ mul_nonneg hε (mul_nonneg (hΛ _ _) (hΛ _ _)) |
| 757 | · exact erase_subset _ _ |
| 758 | _ = _ := by |
| 759 | simp only [d, w, densitySum, entryDensity_scaledEntry, re_sum, h_split, scaledHead_snoc, |
| 760 | sum_add_distrib, ← mul_sum, ← sum_mul, sq, ← A.sum_coe_sort] |
| 761 | |
| 762 | /-- Let `J` be the densities of a sieve system with weights `Λ` and decay `β`, summed to at most |
| 763 | `ε`, and let `1 / M` and both `t` and `1 / t` for `t ∈ A` be integral off `T`. Up to the constant of |
| 764 | Poisson summation, each sum of densities is at most the one before plus an error from the nonzero |
| 765 | frequencies and from the pairs of heads with different last entries; each part of the error is at |
| 766 | most `ε` times the squared sum of the weights. -/ |
| 767 | lemma densitySum_succ_le_mul_densitySum_add [S.IsAdmissible] |
| 768 | (hA : ∀ t ∈ A, (t : E) ∈ ratIntegralOff T ∧ ((t⁻¹ : Eˣ) : E) ∈ ratIntegralOff T) |
| 769 | (hM_inv : (S.M : E)⁻¹ ∈ ratIntegralOff T) (K : S.IsGlobalSieveSystem T n J massBound Λ β) |
| 770 | (hβ : S.BoundsDecay T β ε) (hε : 0 ≤ ε) (hΛ : ∀ (i : ℕ) (p : GlobalHead T), 0 ≤ Λ i p) {i : ℕ} |
| 771 | (hi : i ≤ n) : |
| 772 | S.densitySum T A J (i + 1) ≤ S.poissonConst i * |
| 773 | (S.densitySum T A J i + 2 * (ε * (∑ p : Fin i → A, Λ i (S.scaledHead T p 1)) ^ 2)) := by |
| 774 | have hc : 0 ≤ S.poissonConst i := S.poissonConst_nonneg i |
| 775 | grw [S.densitySum_succ_le T (fun t ht ↦ (hA t ht).1) K hβ hi, |
| 776 | S.re_sum_sum_le_densitySum_add T (fun t ht ↦ (hA t ht).2) hM_inv K hβ hε hΛ hi, two_mul, |
| 777 | add_left_comm] |
| 778 | |
| 779 | /-- Let `J` be the densities of a sieve system `K` (`IsGlobalSieveSystem`, so `massBound` bounds the |
| 780 | mass `J 0`) with weights `Λ` and decay `β` summed to at most `ε` (`BoundsDecay`), and let `1 / M` |
| 781 | and `t`, `1 / t` for `t ∈ A` be integral off `T`. Let `Γ` bound the squared sums of the weights, |
| 782 | relative to the constants of Poisson summation. Then the `i`-th sum of densities is at most the |
| 783 | product of the first `i` constants times `massBound + 2 i Γ ε`. -/ |
| 784 | lemma densitySum_le [S.IsAdmissible] |
| 785 | (hA : ∀ t ∈ A, (t : E) ∈ ratIntegralOff T ∧ ((t⁻¹ : Eˣ) : E) ∈ ratIntegralOff T) |
| 786 | (hM_inv : (S.M : E)⁻¹ ∈ ratIntegralOff T) (K : S.IsGlobalSieveSystem T n J massBound Λ β) |
| 787 | (hβ : S.BoundsDecay T β ε) (hε : 0 ≤ ε) (hΛ : ∀ (i : ℕ) (p : GlobalHead T), 0 ≤ Λ i p) {Γ : ℝ} |
| 788 | (hΓ : ∀ i ≤ n, (∑ p : Fin i → A, Λ i (S.scaledHead T p 1)) ^ 2 ≤ |
| 789 | Γ * ∏ a ∈ range i, S.poissonConst a) {i : ℕ} (hi : i ≤ n + 1) : |
| 790 | S.densitySum T A J i ≤ (∏ a ∈ range i, S.poissonConst a) * (massBound + 2 * i * Γ * ε) := by |
| 791 | induction i with |
| 792 | | zero => simpa [densitySum] using (re_le_norm _).trans (K.norm_bot_le _ _) |
| 793 | | succ i ih => |
| 794 | have hc : 0 ≤ S.poissonConst i := S.poissonConst_nonneg i |
| 795 | have hi_le : i ≤ n := Nat.le_of_succ_le_succ hi |
| 796 | grw [S.densitySum_succ_le_mul_densitySum_add T hA hM_inv K hβ hε hΛ hi_le, |
| 797 | ih (Nat.le_succ_of_le hi_le), hΓ i hi_le, prod_range_succ, Nat.cast_succ] |
| 798 | exact le_of_eq (by ring) |
| 799 | |
| 800 | end OneEntryFewer |
| 801 | |
| 802 | section |
| 803 | |
| 804 | omit [WeilData E] |
| 805 | |
| 806 | /-- Under the standing hypotheses `IsAdmissible`, each scale |
| 807 | `frameScaleSq v a = κ_v ^ (2 (ϱ - a)) / N`, where κ_v is the real number `realM v`, is at most |
| 808 | `|realM v| ^ (2 ϱ) / N`. -/ |
| 809 | lemma frameScaleSq_le_realM_pow [S.IsAdmissible] (v : InfinitePlace E) (a : ℕ) : |
| 810 | S.frameScaleSq v a ≤ |S.realM v| ^ (2 * 𝔰.ϱ) / S.N := by |
| 811 | rw [frameScaleSq, ← pow_abs_two_mul] |
| 812 | gcongr |
| 813 | exacts [S.one_le_abs_realM v, Nat.sub_le _ _] |
| 814 | |
| 815 | /-- The product of the absolute values of the numbers `κ_v = M Φ v ϖ / (2πi)` over the infinite |
| 816 | places is `(M rd / (2π)) ^ f`, because `ϖ` generates the different. Here `rd` is the root |
| 817 | discriminant of `E`, and `f` is the number of infinite places. -/ |
| 818 | lemma prod_abs_realM : ∏ v : InfinitePlace E, |S.realM v| = |
| 819 | (S.M * rootDiscr E / (2 * π)) ^ numInfPlaces E := by |
| 820 | -- The square of `∏ ‖Φ v ϖ‖` is the norm of the different, that is `|discr E| = rd ^ (2 f)`. |
| 821 | have h_absNorm : Ideal.absNorm (Ideal.span {S.deltaE}) = (discr E).natAbs := by |
| 822 | rw [← S.span_deltaE, absNorm_differentIdeal E] |
| 823 | have h_norm : |(Algebra.norm ℚ S.deltaE.val : ℝ)| = |(discr E : ℝ)| := by |
| 824 | simpa [← Algebra.coe_norm_int] using congrArg (Nat.cast : ℕ → ℝ) h_absNorm |
| 825 | have h_varpi : ∏ v : InfinitePlace E, v S.deltaE.val = rootDiscr E ^ numInfPlaces E := by |
| 826 | rw [← sq_eq_sq₀ (by positivity) (pow_pos (rootDiscr_pos E) _).le, |
| 827 | ← abs_discr_eq_rootDiscr_pow, ← h_norm] |
| 828 | simpa [prod_pow] using InfinitePlace.prod_eq_abs_norm S.deltaE.val |
| 829 | simp only [abs_realM_eq, ← InfinitePlace.apply, mk_Φ, Finset.prod_div_distrib, |
| 830 | prod_mul_distrib, prod_const, card_univ, h_varpi, div_pow, mul_pow] |
| 831 | |
| 832 | /-- The product over the infinite places of the constants in the decay: `scaledVolumeRatio`, a |
| 833 | constant of the shape, times the power `k - n⁷` of `|κ_v| ^ (2 ϱ + 1) / (M N)`, where |
| 834 | `κ_v = S.realM v` is the real number `M * Φ v ϖ / (2πi)`. For admissible `S`, the base of this power |
| 835 | bounds the inverses of the scales of the frequencies in `BoundsDecay`. -/ |
| 836 | noncomputable def decayConst : ℝ := |
| 837 | ∏ v : InfinitePlace E, |
| 838 | 𝔰.scaledVolumeRatio * (|S.realM v| ^ (2 * 𝔰.ϱ + 1) / (S.M * S.N)) ^ (𝔰.k - 𝔰.n ^ 7) |
| 839 | |
| 840 | lemma decayConst_nonneg : 0 ≤ S.decayConst := by |
| 841 | have ratio_pos : 0 < 𝔰.scaledVolumeRatio := by simp [Shape.scaledVolumeRatio, pi_pos] |
| 842 | unfold decayConst |
| 843 | positivity |
| 844 | |
| 845 | omit [T.StarStable] in |
| 846 | /-- Let `κ_v = S.realM v` be the real number `M Φ v ϖ / (2πi)`, with `ϖ` the generator of the |
| 847 | different. Let `S` satisfy the standing hypotheses (`IsAdmissible`), among them |
| 848 | `1 ≤ |κ_v| ≤ b ^ 23`. For a frequency `ξ`, with components `ξ.1 v` at the infinite places `v` and |
| 849 | `ξ.2` in `LocProd T`, the product of the completions at `T`, let the decay at `ξ` be the product |
| 850 | over `v` of `scaledVolumeRatio * b ^ (2000 n⁹) * dampedPower (k - n⁷) ‖ξ.1 v‖⁻¹`, times |
| 851 | `frequencyDecay T ξ.2`. Its sum over any finite set of nonzero `T`-integers, read with the scales |
| 852 | `c v / frameScaleSq v a` for any entry `a` and any `c` with `‖c v‖⁻¹ ≤ |κ_v| / M` (`BoundsDecay`), |
| 853 | is at most `decayConst` times `b ^ (2002 n⁹ f)`, with `f` the number of infinite places. -/ |
| 854 | lemma boundsDecay_prod [S.IsAdmissible] : |
| 855 | S.BoundsDecay T |
| 856 | (fun ξ : (InfinitePlace E → ℂ) × LocProd T ↦ |
| 857 | (∏ v : InfinitePlace E, 𝔰.scaledVolumeRatio * S.b ^ (2000 * 𝔰.n ^ 9) * |
| 858 | dampedPower (𝔰.k - 𝔰.n ^ 7) ‖ξ.1 v‖⁻¹) * S.frequencyDecay T ξ.2) |
| 859 | (S.decayConst * S.b ^ (2002 * 𝔰.n ^ 9 * numInfPlaces E)) := by |
| 860 | -- Sum the frequencies with `x v = realM v ^ (2 * ϱ + 1) / (M * N)`, where `|x v| ≤ B`. |
| 861 | intro a c hc X hX₀ hXT |
| 862 | have hb : 1 ≤ S.b := S.one_le_b |
| 863 | have MN_pos : 0 < S.M * S.N := by simp [Nat.pos_iff_ne_zero, Nat.Prime.ne_zero, S.N_prime.ne_zero] |
| 864 | have ratio_pos : 0 < 𝔰.scaledVolumeRatio := by simp [Shape.scaledVolumeRatio, pi_pos] |
| 865 | let x (v : InfinitePlace E) : ℝ := S.realM v ^ (2 * 𝔰.ϱ + 1) / (S.M * S.N) |
| 866 | let B : ℝ := (S.b ^ 23) ^ (2 * 𝔰.ϱ + 1) |
| 867 | have abs_x (v : InfinitePlace E) : |x v| = |S.realM v| ^ (2 * 𝔰.ϱ + 1) / (S.M * S.N) := by |
| 868 | simp [x, abs_div] |
| 869 | have lower (v : InfinitePlace E) : ‖c v / S.frameScaleSq v a‖⁻¹ ≤ |x v| := by |
| 870 | have h_pos : 0 < S.frameScaleSq v a := S.frameScaleSq_pos v a |
| 871 | calc |
| 872 | _ = ‖c v‖⁻¹ * S.frameScaleSq v a := by simp [div_eq_inv_mul, abs_of_pos h_pos] |
| 873 | _ ≤ |S.realM v| / S.M * (|S.realM v| ^ (2 * 𝔰.ϱ) / S.N) := by |
| 874 | grw [hc v, S.frameScaleSq_le_realM_pow v a] |
| 875 | _ = |x v| := by rw [abs_x, pow_succ', div_mul_div_comm] |
| 876 | have upper (v : InfinitePlace E) : |x v| ≤ B := by |
| 877 | grw [abs_x, div_le_self (by positivity) (mod_cast MN_pos), S.abs_realM_le] |
| 878 | have hB : (S.b * B ^ 2) ^ 3 ≤ S.b ^ 𝔰.n ^ 9 := by |
| 879 | -- Compare the exponents of `b`, using `n² ≤ n⁹` and that `ϱ` is large. |
| 880 | simp only [B, ← pow_mul, ← pow_succ'] |
| 881 | gcongr |
| 882 | grw [← Nat.pow_le_pow_right 𝔰.ϱ.succ_pos (by norm_num : 2 ≤ 9)] |
| 883 | nlinarith only [S.ten_pow_five_le_varrho] |
| 884 | have h_sum : ∑ y ∈ X, |
| 885 | (∏ v, dampedPower (𝔰.k - 𝔰.n ^ 7) ‖c v / S.frameScaleSq v a * Φ v y‖⁻¹) * |
| 886 | (√(genIndex (ratToPlaces T y)) ^ (𝔰.k - 𝔰.n ^ 7) / denomIndex O (ratToPlaces T y) ^ 3) ≤ |
| 887 | ∏ v, |x v| ^ (𝔰.k - 𝔰.n ^ 7) * S.b ^ 𝔰.n ^ 9 := by |
| 888 | grw [S.sum_frequencies_le T B _ X _ x (by bound) lower upper hX₀ hXT, hB] |
| 889 | -- Take the constants out of the sum; after the bound for it the two sides are equal. |
| 890 | simp_rw [ratPoint, frequencyDecay, prod_mul_distrib, mul_assoc, ← mul_sum, ← mul_assoc, ← sum_mul] |
| 891 | grw [h_sum] |
| 892 | simp only [decayConst, abs_x, prod_mul_distrib, prod_const, card_univ] |
| 893 | exact le_of_eq (by ring) |
| 894 | |
| 895 | end |
| 896 | |
| 897 | /-- The product of the first `j` entries of a head `p` with entries in `A`. -/ |
| 898 | noncomputable def headProduct {A : Finset Eˣ} {i : ℕ} (p : Fin i → A) (j : ℕ) : E := |
| 899 | ∏ a ∈ range j, (padTuple (fun l : Fin i ↦ (p l : Eˣ)) 1 a : Eˣ) |
| 900 | |
| 901 | omit [CMType E] [WeilData E] in |
| 902 | lemma headProduct_ne_zero {A : Finset Eˣ} {i : ℕ} (p : Fin i → A) (j : ℕ) : headProduct p j ≠ 0 := |
| 903 | prod_ne_zero_iff.2 fun _ _ ↦ Units.ne_zero _ |
| 904 | |
| 905 | omit [WeilData E] [T.StarStable] in |
| 906 | lemma headProduct_mem_ratIntegralOff {A : Finset Eˣ} (hA : ∀ t ∈ A, (t : E) ∈ ratIntegralOff T) |
| 907 | {i : ℕ} (p : Fin i → A) (j : ℕ) : headProduct p j ∈ ratIntegralOff T := by |
| 908 | simp [headProduct, hA, padTuple, prod_mem, apply_dite, -Subring.mem_comap] |
| 909 | |
| 910 | omit [CMType E] [WeilData E] in |
| 911 | /-- A head `p : Fin i → A` (a tuple of `i` units from `A`) is determined by the products |
| 912 | `headProduct p (j + 1)` of its first `j + 1` entries, for `j < i`. -/ |
| 913 | lemma headProduct_injective {A : Finset Eˣ} {i : ℕ} : |
| 914 | Function.Injective fun (p : Fin i → A) (j : Fin i) ↦ headProduct p (j + 1) := by |
| 915 | intro p q h_eq |
| 916 | have h_all : ∀ k ≤ i, headProduct p k = headProduct q k |
| 917 | | 0, _ => by simp [headProduct] |
| 918 | | k + 1, hk => congrFun h_eq ⟨k, hk⟩ |
| 919 | -- `p j` is the quotient of two consecutive products. |
| 920 | funext j |
| 921 | have h_quot : headProduct p (j + 1) / headProduct p j = |
| 922 | headProduct q (j + 1) / headProduct q j := by rw [h_all (j + 1) j.isLt, h_all j j.isLt.le] |
| 923 | simpa [headProduct, prod_range_succ, padTuple, prod_eq_zero_iff, Units.val_inj] using h_quot |
| 924 | |
| 925 | omit [WeilData E] [T.StarStable] in |
| 926 | /-- The product formula for the weights. Let `δ ≠ 0` be integral off `T`, and let `r` bound |
| 927 | `‖Φ v δ‖` and `‖c v‖⁻¹` at all infinite places. Then the product of the numbers |
| 928 | `max 1 ‖c v * Φ v δ‖⁻¹` and of the square root of the index `[O : δ O]` at `T` is at most `r ^ f`, |
| 929 | with `f` the number of infinite places. -/ |
| 930 | lemma prod_max_inv_norm_mul_sqrt_genIndex_le {δ : E} (hδ₀ : δ ≠ 0) (hδT : δ ∈ ratIntegralOff T) |
| 931 | {c : InfinitePlace E → ℂ} {r : ℝ} (hc : ∀ v : InfinitePlace E, ‖c v‖⁻¹ ≤ r) |
| 932 | (hδ : ∀ v : InfinitePlace E, ‖Φ v δ‖ ≤ r) : |
| 933 | (∏ v : InfinitePlace E, max 1 ‖c v * Φ v δ‖⁻¹) * √(genIndex (ratToPlaces T δ)) ≤ |
| 934 | r ^ numInfPlaces E := by |
| 935 | have h_place (v : InfinitePlace E) : max 1 ‖c v * Φ v δ‖⁻¹ * ‖Φ v δ‖ ≤ r := by |
| 936 | rw [max_mul_of_nonneg _ _ (norm_nonneg _), one_mul, norm_mul, mul_inv, |
| 937 | inv_mul_cancel_right₀ (by simpa using hδ₀)] |
| 938 | exact max_le (hδ v) (hc v) |
| 939 | grw [sqrt_genIndex_le_prod_norm T hδ₀ hδT, ← prod_mul_distrib, h_place, prod_const, card_univ] |
| 940 | |
| 941 | section |
| 942 | |
| 943 | omit [WeilData E] |
| 944 | |
| 945 | /-- Let `S` satisfy the standing hypotheses (`IsAdmissible`), among them `1 ≤ |κ_v|` and |
| 946 | `N ≤ b ^ (60 n)` for the prime `N = S.N`, the size parameter `b = S.b` and `n = ϱ + 1`. For `j ≤ ϱ`, |
| 947 | the inverse of the product of the scales `frameScaleSq v a = κ_v ^ (2 (ϱ - a)) / N`, `a < j`, is at |
| 948 | most `b ^ (60 n²)`. -/ |
| 949 | lemma inv_norm_prod_frameScaleSq_le [S.IsAdmissible] (v : InfinitePlace E) {j : ℕ} (hj : j ≤ 𝔰.ϱ) : |
| 950 | ‖(∏ a ∈ range j, S.frameScaleSq v a : ℂ)‖⁻¹ ≤ S.b ^ (60 * 𝔰.n ^ 2) := |
| 951 | calc |
| 952 | _ = (S.N : ℝ) ^ j / ∏ a ∈ range j, |S.realM v| ^ (2 * (𝔰.ϱ - a)) := by simp [frameScaleSq] |
| 953 | _ ≤ (S.N : ℝ) ^ j := div_le_self (by positivity) |
| 954 | (Finset.one_le_prod₀ fun a _ ↦ one_le_pow₀ (S.one_le_abs_realM v)) |
| 955 | _ ≤ (S.b ^ (60 * 𝔰.n)) ^ 𝔰.n := by |
| 956 | grw [N_le, pow_le_pow_right₀ (one_le_pow₀ S.one_le_b) (hj.trans 𝔰.ϱ.le_succ)] |
| 957 | _ = _ := by ring |
| 958 | |
| 959 | /-- The weight of a head `p` of length `i`, read at the infinite places and at `T`: a product over |
| 960 | the partial products `δ = p 0 * ⋯ * p l`, `l < i`. At an infinite place the factor (`headWeight`) is |
| 961 | `max 1 ‖δ‖⁻¹ ^ n⁶` if `‖δ‖ ≤ b ^ (60 n²)` and `0` otherwise. At `T` the factor (`finHeadWeight`) is |
| 962 | `[O : δ O] ^ (n⁶ / 2)` if `δ` lies in `O` and `0` otherwise. -/ |
| 963 | noncomputable def globalWeight (i : ℕ) (p : GlobalHead T) : ℝ := |
| 964 | (∏ v : InfinitePlace E, headWeight (S.b ^ (60 * 𝔰.n ^ 2)) (𝔰.n ^ 6) i ((·.1 v) ∘ p)) * |
| 965 | finHeadWeight (𝔰.n ^ 6) i ((·.2) ∘ p) |
| 966 | |
| 967 | omit [T.StarStable] in |
| 968 | lemma globalWeight_nonneg (i : ℕ) (p : GlobalHead T) : 0 ≤ S.globalWeight T i p := by |
| 969 | unfold globalWeight headWeight finHeadWeight |
| 970 | positivity |
| 971 | |
| 972 | open scoped Classical in |
| 973 | omit [T.StarStable] in |
| 974 | /-- Let `S` satisfy the standing hypotheses (`IsAdmissible`), with size parameter `b = S.b` and |
| 975 | `n = ϱ + 1`. The head `scaledHead T p 1` has first entries `p` and later entries `1`. The entry `a` |
| 976 | is scaled at the infinite place `v` by `frameScaleSq v a = κ_v ^ (2 (ϱ - a)) / N`, where |
| 977 | `κ_v = S.realM v` and `N = S.N`. Its weight (`globalWeight`) is a product over the products |
| 978 | `δ = headProduct p (j + 1)` of the first entries of `p`. At an infinite place `v`, let `Φ v` be the |
| 979 | chosen complex embedding inducing `v`, and let `c j v` be the product of the scales of these |
| 980 | entries. There the factor is `max 1 ‖c j v * Φ v δ‖⁻¹ ^ n⁶` if `‖c j v * Φ v δ‖ ≤ b ^ (60 n²)`, and |
| 981 | `0` otherwise. At `T` the factor is `[O : δ O] ^ (n⁶ / 2)` if `ratToPlaces T δ` lies in `O`, and `0` |
| 982 | otherwise. Here `O` is the ring of integers of the product of the completions at `T`. -/ |
| 983 | lemma globalWeight_scaledHead {A : Finset Eˣ} {i : ℕ} (p : Fin i → A) : |
| 984 | let c (j : Fin i) (v : InfinitePlace E) : ℂ := ∏ a ∈ range (j + 1), S.frameScaleSq v a |
| 985 | S.globalWeight T i (S.scaledHead T p 1) = ∏ j : Fin i, |
| 986 | (∏ v : InfinitePlace E, |
| 987 | if ‖c j v * Φ v (headProduct p (j + 1))‖ ≤ S.b ^ (60 * 𝔰.n ^ 2) then |
| 988 | max 1 ‖c j v * Φ v (headProduct p (j + 1))‖⁻¹ ^ 𝔰.n ^ 6 else 0) * |
| 989 | if ratToPlaces T (headProduct p (j + 1)) ∈ O then |
| 990 | √(genIndex (ratToPlaces T (headProduct p (j + 1)))) ^ 𝔰.n ^ 6 else 0 := by |
| 991 | intro c |
| 992 | have h_inf (j : Fin i) (v : InfinitePlace E) : |
| 993 | ∏ a ∈ range (j + 1), ((S.scaledHead T p 1 a).1 v : ℂ) = |
| 994 | c j v * Φ v (headProduct p (j + 1)) := by |
| 995 | simp [c, headProduct, scaledHead, scaledEntry, ratPoint, unitOrOne, |
| 996 | (S.frameScaleSq_pos _ _).ne', prod_mul_distrib] |
| 997 | have h_fin (j : Fin i) : ∏ a ∈ range (j + 1), ((S.scaledHead T p 1 a).2 : LocProd T) = |
| 998 | ratToPlaces T (headProduct p (j + 1)) := by |
| 999 | simp [headProduct, scaledHead, scaledEntry, ratPoint, unitOrOne, IsUnit.map] |
| 1000 | simp only [globalWeight, headWeight, finHeadWeight, prod_range (n := i), Function.comp_apply, |
| 1001 | h_inf, h_fin] |
| 1002 | rw [Finset.prod_comm, ← prod_mul_distrib] |
| 1003 | |
| 1004 | omit [T.StarStable] in |
| 1005 | /-- Let `S` satisfy the standing hypotheses (`IsAdmissible`), and let `p` be a head of length |
| 1006 | `i ≤ ϱ` with entries in a finite set `A` of numbers integral off `T`. Suppose the weight |
| 1007 | (`globalWeight`) of `scaledHead T p 1`, the head with first entries `p` and later entries `1` read |
| 1008 | in the scaled frame, is not zero. Then the products of the first entries of `p` are integers of `E` |
| 1009 | of modulus at most `b ^ (120 n²)` at all infinite places. -/ |
| 1010 | lemma isIntegral_headProduct_and_norm_le [S.IsAdmissible] {A : Finset Eˣ} |
| 1011 | (hA : ∀ t ∈ A, (t : E) ∈ ratIntegralOff T) {i : ℕ} (hi : i ≤ 𝔰.ϱ) {p : Fin i → A} |
| 1012 | (hp : S.globalWeight T i (S.scaledHead T p 1) ≠ 0) (j : Fin i) : |
| 1013 | IsIntegral ℤ (headProduct p (j + 1)) ∧ |
| 1014 | ∀ v : InfinitePlace E, ‖Φ v (headProduct p (j + 1))‖ ≤ S.b ^ (120 * 𝔰.n ^ 2) := by |
| 1015 | classical |
| 1016 | rw [globalWeight_scaledHead] at hp |
| 1017 | obtain ⟨h_inf, h_fin⟩ := mul_ne_zero_iff.1 (prod_ne_zero_iff.1 hp j (mem_univ j)) |
| 1018 | refine ⟨?_, fun v ↦ ?_⟩ |
| 1019 | · -- integral at `T` and off `T` |
| 1020 | rw [← algebraMap_mem_Ô, mem_Ô_iff T] |
| 1021 | exact ⟨(ite_ne_right_iff.1 h_fin).1, headProduct_mem_ratIntegralOff T hA p (j + 1)⟩ |
| 1022 | · have hb : 1 ≤ S.b := S.one_le_b |
| 1023 | let c : ℂ := ∏ a ∈ range (j + 1), S.frameScaleSq v a |
| 1024 | have h_small : ‖c * Φ v (headProduct p (j + 1))‖ ≤ S.b ^ (60 * 𝔰.n ^ 2) := |
| 1025 | (ite_ne_right_iff.1 (prod_ne_zero_iff.1 h_inf v (mem_univ v))).1 |
| 1026 | calc |
| 1027 | _ = ‖c‖⁻¹ * ‖c * Φ v (headProduct p (j + 1))‖ := by |
| 1028 | simp [c, prod_ne_zero_iff, (S.frameScaleSq_pos v _).ne'] |
| 1029 | _ ≤ S.b ^ (60 * 𝔰.n ^ 2) * S.b ^ (60 * 𝔰.n ^ 2) := by |
| 1030 | grw [h_small, S.inv_norm_prod_frameScaleSq_le v (j.isLt.trans_le hi)] |
| 1031 | _ = _ := by ring |
| 1032 | |
| 1033 | omit [T.StarStable] in |
| 1034 | /-- The largest weight. Let `S` satisfy the standing hypotheses (`IsAdmissible`), and let `p` be a |
| 1035 | tuple of length `i ≤ ϱ` with entries integral off `T`. The head `scaledHead T p 1` has first entries |
| 1036 | `p` and later entries `1`, with the entry `a` scaled at the infinite place `v` by |
| 1037 | `frameScaleSq v a = κ_v ^ (2 (ϱ - a)) / N` (`κ_v = S.realM v`, `N = S.N`). Its weight |
| 1038 | (`globalWeight`) is a product over the partial products `δ` of its first `i` entries, of |
| 1039 | `max 1 ‖δ‖⁻¹ ^ n⁶` or `0` at each infinite place and of `[O : δ O] ^ (n⁶ / 2)` or `0` at `T`, with |
| 1040 | `O` the integers at `T`. This weight is at most `b ^ (120 n⁸ f i)`. Here `b = S.b` is the size |
| 1041 | parameter, `n = ϱ + 1`, and `f` is the number of infinite places. -/ |
| 1042 | lemma globalWeight_scaledHead_le [S.IsAdmissible] {A : Finset Eˣ} |
| 1043 | (hA : ∀ t ∈ A, (t : E) ∈ ratIntegralOff T) {i : ℕ} (hi : i ≤ 𝔰.ϱ) (p : Fin i → A) : |
| 1044 | S.globalWeight T i (S.scaledHead T p 1) ≤ S.b ^ (120 * 𝔰.n ^ 8 * numInfPlaces E * i) := by |
| 1045 | have hb : 1 ≤ S.b := S.one_le_b |
| 1046 | by_cases hp : S.globalWeight T i (S.scaledHead T p 1) = 0 |
| 1047 | · exact hp.trans_le (by positivity) |
| 1048 | -- Each product `δ j` is small, so it contributes at most `(b ^ (120 n²)) ^ (f n⁶)`. |
| 1049 | let c (j : Fin i) (v : InfinitePlace E) : ℂ := ∏ a ∈ range (j + 1), S.frameScaleSq v a |
| 1050 | let δ (j : Fin i) : E := headProduct p (j + 1) |
| 1051 | have h_factor (j : Fin i) : (∏ v, max 1 ‖c j v * Φ v (δ j)‖⁻¹) * |
| 1052 | √(genIndex (ratToPlaces T (δ j))) ≤ (S.b ^ (120 * 𝔰.n ^ 2)) ^ numInfPlaces E := |
| 1053 | prod_max_inv_norm_mul_sqrt_genIndex_le T (headProduct_ne_zero p _) |
| 1054 | (headProduct_mem_ratIntegralOff T hA p _) |
| 1055 | (fun v ↦ (S.inv_norm_prod_frameScaleSq_le v (j.isLt.trans_le hi)).trans |
| 1056 | (pow_le_pow_right₀ hb (by lia))) |
| 1057 | (S.isIntegral_headProduct_and_norm_le T hA hi hp j).2 |
| 1058 | rw [globalWeight_scaledHead] |
| 1059 | calc |
| 1060 | _ ≤ ∏ j : Fin i, (∏ v, max 1 ‖c j v * Φ v (δ j)‖⁻¹ ^ 𝔰.n ^ 6) * |
| 1061 | √(genIndex (ratToPlaces T (δ j))) ^ 𝔰.n ^ 6 := by |
| 1062 | gcongr ∏ j, (∏ v, ?_) * ?_ with j _ v |
| 1063 | all_goals |
| 1064 | split_ifs |
| 1065 | exacts [le_rfl, by positivity] |
| 1066 | _ ≤ ∏ _j : Fin i, ((S.b ^ (120 * 𝔰.n ^ 2)) ^ numInfPlaces E) ^ 𝔰.n ^ 6 := by |
| 1067 | simp only [prod_pow (univ : Finset (InfinitePlace E)), ← mul_pow] |
| 1068 | grw [h_factor] |
| 1069 | _ = _ := by |
| 1070 | rw [prod_const, card_univ, Fintype.card_fin] |
| 1071 | ring |
| 1072 | |
| 1073 | omit [T.StarStable] in |
| 1074 | /-- The sum of the weights of the heads of length `i ≤ ϱ` with entries in a finite set `A` of |
| 1075 | numbers integral off `T` is at most `b ^ (130 n⁹ f)`: the number of heads whose products are small |
| 1076 | integers, times the largest weight. Here `b = S.b` is the size parameter of the admissible filling |
| 1077 | data `S`, `n = ϱ + 1`, and `f` is the number of infinite places. -/ |
| 1078 | lemma sum_globalWeight_le [S.IsAdmissible] {A : Finset Eˣ} |
| 1079 | (hA : ∀ t ∈ A, (t : E) ∈ ratIntegralOff T) {i : ℕ} (hi : i ≤ 𝔰.ϱ) : |
| 1080 | ∑ p : Fin i → A, S.globalWeight T i (S.scaledHead T p 1) ≤ |
| 1081 | S.b ^ (130 * 𝔰.n ^ 9 * numInfPlaces E) := by |
| 1082 | have hb : 1 ≤ S.b := S.one_le_b |
| 1083 | let P : Finset (Fin i → A) := {p | S.globalWeight T i (S.scaledHead T p 1) ≠ 0} |
| 1084 | have h_card : (#P : ℝ) ≤ (1 + 2 * S.b ^ (120 * 𝔰.n ^ 2)) ^ (i * numInfPlaces E * 2) := by |
| 1085 | rw [← ofReal_le_ofReal_iff (by positivity), ENNReal.ofReal_natCast] |
| 1086 | simpa using encard_le_of_isIntegral_norm_le (A := (P : Set (Fin i → A))) |
| 1087 | (fun p (j : Fin i) ↦ headProduct p (j + 1)) |
| 1088 | (fun p hp ↦ S.isIntegral_headProduct_and_norm_le T hA hi (mem_filter.1 hp).2) |
| 1089 | headProduct_injective.injOn |
| 1090 | have h_base : 1 + 2 * S.b ^ (120 * 𝔰.n ^ 2) ≤ S.b ^ (120 * 𝔰.n ^ 2 + 1) := by |
| 1091 | rw [pow_succ S.b] |
| 1092 | nlinarith only [S.thousand_le_b, one_le_pow₀ hb (n := 120 * 𝔰.n ^ 2)] |
| 1093 | calc |
| 1094 | _ = ∑ p ∈ P, S.globalWeight T i (S.scaledHead T p 1) := (sum_filter_ne_zero univ).symm |
| 1095 | _ ≤ #P * S.b ^ (120 * 𝔰.n ^ 8 * numInfPlaces E * i) := by |
| 1096 | grw [S.globalWeight_scaledHead_le T hA hi, sum_const, nsmul_eq_mul] |
| 1097 | _ ≤ (S.b ^ (120 * 𝔰.n ^ 2 + 1)) ^ (𝔰.n * numInfPlaces E * 2) * |
| 1098 | S.b ^ (120 * 𝔰.n ^ 8 * numInfPlaces E * 𝔰.n) := by |
| 1099 | grw [h_card, h_base, hi.trans 𝔰.ϱ.le_succ, hi.trans 𝔰.ϱ.le_succ] |
| 1100 | exact one_le_pow₀ hb |
| 1101 | _ ≤ _ := by |
| 1102 | rw [← pow_mul, ← pow_add] |
| 1103 | gcongr |
| 1104 | obtain ⟨m, hm⟩ : ∃ m : ℕ, 𝔰.ϱ = 10 ^ 5 + m := exists_add_of_le S.ten_pow_five_le_varrho |
| 1105 | simp only [Shape.n, hm] |
| 1106 | lia |
| 1107 | |
| 1108 | /-- For `i ≤ ϱ`, the product of the first `i` constants of Poisson summation is at least |
| 1109 | `b ^ (-100 n² f)`, with `f` the number of infinite places. -/ |
| 1110 | lemma one_le_pow_mul_prod_poissonConst [S.IsAdmissible] {i : ℕ} (hi : i ≤ 𝔰.ϱ) : |
| 1111 | 1 ≤ S.b ^ (100 * 𝔰.n ^ 2 * numInfPlaces E) * ∏ a ∈ range i, S.poissonConst a := by |
| 1112 | -- Use `frameScaleSq v a ≤ b ^ (46 * ϱ)` and the value `(2 / rd) ^ f` of `volÔ E`. |
| 1113 | have hb : 1 ≤ S.b := S.one_le_b |
| 1114 | have rd_pos : 0 < rootDiscr E := rootDiscr_pos E |
| 1115 | have scale_le (v : InfinitePlace E) (a : ℕ) : S.frameScaleSq v a ≤ (S.b ^ 23) ^ (2 * 𝔰.ϱ) := by |
| 1116 | grw [S.frameScaleSq_le_realM_pow, div_le_self (by positivity) (mod_cast S.N_prime.pos), |
| 1117 | S.abs_realM_le] |
| 1118 | calc |
| 1119 | _ ≤ S.b ^ (100 * 𝔰.n ^ 2 * numInfPlaces E) * ∏ _a ∈ range i, |
| 1120 | (S.b ^ numInfPlaces E)⁻¹ / ∏ _v : InfinitePlace E, ((S.b ^ 23) ^ (2 * 𝔰.ϱ)) ^ 2 := by |
| 1121 | simp only [← pow_mul, prod_const, card_univ, Finset.card_range, div_pow, inv_pow, field, |
| 1122 | ← pow_add] |
| 1123 | gcongr |
| 1124 | grw [hi] |
| 1125 | lia |
| 1126 | _ ≤ _ := by |
| 1127 | simp only [poissonConst] |
| 1128 | grw [volÔ_eq, scale_le, half_le_self (by bound), S.rootDiscr_le_b] |
| 1129 | exacts [(S.frameScaleSq_pos _ _).le, prod_pos fun v _ ↦ pow_pos (S.frameScaleSq_pos v _) 2] |
| 1130 | |
| 1131 | omit [T.StarStable] in |
| 1132 | /-- Let `S` satisfy the standing hypotheses `IsAdmissible`. Let `b = S.b`, `ϱ = 𝔰.ϱ`, `n = ϱ + 1`, |
| 1133 | and let `f` be the number of infinite places. Let `A` be a finite set of units of `E` integral off |
| 1134 | `T`, and let `i ≤ ϱ`. Sum, over heads `p` of length `i` with entries in `A`, the weight |
| 1135 | `globalWeight T i` of the head `scaledHead T p 1`. The square of this sum is at most |
| 1136 | `b ^ (400 n⁹ f)` times the product of the first `i` constants `poissonConst a` of Poisson |
| 1137 | summation. -/ |
| 1138 | lemma sq_sum_globalWeight_le [S.IsAdmissible] {A : Finset Eˣ} |
| 1139 | (hA : ∀ t ∈ A, (t : E) ∈ ratIntegralOff T) {i : ℕ} (hi : i ≤ 𝔰.ϱ) : |
| 1140 | (∑ p : Fin i → A, S.globalWeight T i (S.scaledHead T p 1)) ^ 2 ≤ |
| 1141 | S.b ^ (400 * 𝔰.n ^ 9 * numInfPlaces E) * ∏ a ∈ range i, S.poissonConst a := by |
| 1142 | have hb : 1 ≤ S.b := S.one_le_b |
| 1143 | have h_prod : 0 ≤ ∏ a ∈ range i, S.poissonConst a := |
| 1144 | prod_nonneg fun a _ ↦ S.poissonConst_nonneg a |
| 1145 | have h_exp : 130 * 𝔰.n ^ 9 * numInfPlaces E * 2 + 100 * 𝔰.n ^ 2 * numInfPlaces E ≤ |
| 1146 | 400 * 𝔰.n ^ 9 * numInfPlaces E := by |
| 1147 | grw [Nat.pow_le_pow_right 𝔰.ϱ.succ_pos (by norm_num : 2 ≤ 9)] |
| 1148 | lia |
| 1149 | calc |
| 1150 | _ ≤ (S.b ^ (130 * 𝔰.n ^ 9 * numInfPlaces E)) ^ 2 * |
| 1151 | (S.b ^ (100 * 𝔰.n ^ 2 * numInfPlaces E) * ∏ a ∈ range i, S.poissonConst a) := by |
| 1152 | grw [← S.one_le_pow_mul_prod_poissonConst hi, mul_one, S.sum_globalWeight_le T hA hi] |
| 1153 | exact Finset.sum_nonneg fun p _ ↦ S.globalWeight_nonneg T i _ |
| 1154 | _ ≤ _ := by grw [← mul_assoc, ← pow_mul, ← pow_add, h_exp] |
| 1155 | |
| 1156 | end |
| 1157 | |
| 1158 | omit [WeilData E] [T.StarStable] in |
| 1159 | /-- The sieve. Let `b = S.b`, `M = S.M` and `N = S.N` be the size parameter, the level and the prime |
| 1160 | of the admissible filling data `S`, let `k`, `ϱ`, `n = ϱ + 1` be the parameters of its shape `𝔰`, |
| 1161 | and let `f` be the number of infinite places. Let `U ⊆ A`, and let `1 / M` and `t`, `1 / t` for |
| 1162 | `t ∈ A` be integral off `T`. Let the forms `J_T i` on pairs of heads (sequences of units) at `T` |
| 1163 | satisfy the axioms of the sieve (`SieveSystem`) in length `ϱ`: for `i ≤ ϱ`, `J_T i` is the integral |
| 1164 | of `J_T (i + 1)` over a common entry at position `i`, read as a unit (`unitOrOne`); the top form |
| 1165 | `J_T n` is continuous, and positive semidefinite on heads with a common entry at position `ϱ`; the |
| 1166 | mass `J_T 0` has modulus at most `mass_T`; and the decay `frequencyDecay` times the weights |
| 1167 | `finHeadWeight` bounds the transforms for `S.charOnPlaces T` and the forms at heads with entries |
| 1168 | `w`, `w'` whose frequency `(1 / w - 1 / w') / M` is a unit. Multiply `J_T` by the forms `bandLimit` |
| 1169 | that are part of the Bessel systems `S.besselSystem v` at the infinite places: they satisfy the same |
| 1170 | axioms over `ℂ`, with mass at most `(1 + b ^ (-10)) / deg`. |
| 1171 | |
| 1172 | The real part of the sum of the products of the top forms `bandLimit n` and `J_T n` over all pairs |
| 1173 | of heads with entries in `A` and a common last entry in `U` is at most the product of the constants |
| 1174 | of Poisson summation times the sum of the product of the bounds for the masses and of the error |
| 1175 | `b ^ (2403 n⁹ f) * decayConst`. The heads have first entries `p`, then `t`, then `1` (`padTuple`). |
| 1176 | At `T` they are `y p t`; at the infinite place `v` they are `x v p t`, with the entry `i` scaled by |
| 1177 | `frameScaleSq v i = κ_v ^ (2 (ϱ - i)) / N`, where `κ_v = S.realM v`. The constants are `poissonConst |
| 1178 | i = volÔ E / ∏ v, frameScaleSq v i ^ 2`, with `volÔ E` the volume of the integral finite adeles, and |
| 1179 | `decayConst = ∏ v, scaledVolumeRatio * (|κ_v| ^ (2 ϱ + 1) / (M N)) ^ (k - n⁷)`. -/ |
| 1180 | theorem sieve [S.IsAdmissible] {A : Finset Eˣ} |
| 1181 | (hA : ∀ t ∈ A, (t : E) ∈ ratIntegralOff T ∧ ((t⁻¹ : Eˣ) : E) ∈ ratIntegralOff T) |
| 1182 | (hM_inv : (S.M : E)⁻¹ ∈ ratIntegralOff T) |
| 1183 | {J_T : ℕ → (ℕ → (LocProd T)ˣ) → (ℕ → (LocProd T)ˣ) → ℂ} {mass_T : ℝ} {U : Finset Eˣ} |
| 1184 | (hJ_T : SieveSystem unitOrOne |
| 1185 | (fun w : (LocProd T)ˣ ↦ ratToPlaces T (S.M : E)⁻¹ * ((w⁻¹ : (LocProd T)ˣ) : LocProd T)) |
| 1186 | 𝔰.ϱ J_T (S.charOnPlaces T) mass_T (finHeadWeight (𝔰.n ^ 6)) (S.frequencyDecay T)) |
| 1187 | (hU : U ⊆ A) : |
| 1188 | -- the heads at the infinite place `v` |
| 1189 | let x (v : InfinitePlace E) (p : Fin 𝔰.ϱ → A) (t : Eˣ) (i : ℕ) : ℂˣ := |
| 1190 | unitOrOne (S.frameScaleSq v i * Φ v (padTuple (fun j : Fin 𝔰.ϱ ↦ (p j : Eˣ)) t i : Eˣ)) |
| 1191 | -- the heads at `T` |
| 1192 | let y (p : Fin 𝔰.ϱ → A) (t : Eˣ) : ℕ → (LocProd T)ˣ := |
| 1193 | Units.map (ratToPlaces T) ∘ padTuple (fun j : Fin 𝔰.ϱ ↦ (p j : Eˣ)) t |
| 1194 | (∑ t ∈ U, ∑ p : Fin 𝔰.ϱ → A, ∑ q : Fin 𝔰.ϱ → A, |
| 1195 | (∏ v : InfinitePlace E, (S.besselSystem v).bandLimit 𝔰.n (x v p t) (x v q t)) * |
| 1196 | J_T 𝔰.n (y p t) (y q t)).re ≤ |
| 1197 | (∏ i ∈ range 𝔰.n, S.poissonConst i) * |
| 1198 | ((∏ v : InfinitePlace E, (1 + S.b⁻¹ ^ 10) / (S.besselSystem v).deg) * mass_T + |
| 1199 | S.b ^ (2403 * 𝔰.n ^ 9 * numInfPlaces E) * S.decayConst) := by |
| 1200 | -- Remove all entries in the product system. The error is `2 n Γ ε`: here `ε` bounds the decay |
| 1201 | -- summed over the nonzero frequencies, and `Γ` times the product of the first `i` constants of |
| 1202 | -- Poisson summation bounds the squared sum of the weights of the heads of length `i`. |
| 1203 | have hb : 1 ≤ S.b := S.one_le_b |
| 1204 | have h_decay : 0 ≤ S.decayConst := S.decayConst_nonneg |
| 1205 | intro x y |
| 1206 | let J (i : ℕ) (p q : GlobalHead T) : ℂ := |
| 1207 | (∏ v, (S.besselSystem v).bandLimit i ((·.1 v) ∘ p) ((·.1 v) ∘ q)) * |
| 1208 | J_T i ((·.2) ∘ p) ((·.2) ∘ q) |
| 1209 | let massBound : ℝ := (∏ v, (1 + S.b⁻¹ ^ 10) / (S.besselSystem v).deg) * mass_T |
| 1210 | let Γ : ℝ := S.b ^ (400 * 𝔰.n ^ 9 * numInfPlaces E) |
| 1211 | let ε : ℝ := S.decayConst * S.b ^ (2002 * 𝔰.n ^ 9 * numInfPlaces E) |
| 1212 | have K : S.IsGlobalSieveSystem T 𝔰.ϱ J massBound (S.globalWeight T) fun ξ ↦ |
| 1213 | (∏ v, 𝔰.scaledVolumeRatio * S.b ^ (2000 * 𝔰.n ^ 9) * dampedPower (𝔰.k - 𝔰.n ^ 7) ‖ξ.1 v‖⁻¹) * |
| 1214 | S.frequencyDecay T ξ.2 := |
| 1215 | hJ_T.pi fun v ↦ (S.besselSystem v).hasLocalBounds.1 |
| 1216 | have hx (v : InfinitePlace E) (p : Fin 𝔰.ϱ → A) (t : Eˣ) : |
| 1217 | (·.1 v) ∘ S.scaledHead T p t = x v p t := rfl |
| 1218 | have hy (p : Fin 𝔰.ϱ → A) (t : Eˣ) : (·.2) ∘ S.scaledHead T p t = y p t := by |
| 1219 | ext |
| 1220 | simp [y, scaledHead, scaledEntry, ratPoint, unitOrOne, IsUnit.map] |
| 1221 | have len_le : 2 * (𝔰.ϱ + 1 : ℕ) ≤ S.b ^ (𝔰.n ^ 9 * numInfPlaces E) := by |
| 1222 | have h_nat : 2 * (𝔰.ϱ + 1) ≤ 𝔰.k := by linarith [S.thousand_mul_le_k] |
| 1223 | calc |
| 1224 | _ ≤ (𝔰.k : ℝ) := mod_cast h_nat |
| 1225 | _ ≤ S.b := S.k_le_b |
| 1226 | _ ≤ _ := le_self_pow₀ hb (by simp [Fintype.card_ne_zero]) |
| 1227 | calc |
| 1228 | _ = ∑ t ∈ U, (S.entryDensity T A J 𝔰.ϱ (S.scaledEntry T 𝔰.ϱ t)).re := by |
| 1229 | simp only [re_sum, entryDensity_scaledEntry, J, hx, hy] |
| 1230 | _ ≤ S.densitySum T A J 𝔰.n := |
| 1231 | sum_le_sum_of_subset_of_nonneg hU fun t _ _ ↦ (S.entryDensity_nonneg T K le_rfl _).1 |
| 1232 | _ ≤ (∏ a ∈ range 𝔰.n, S.poissonConst a) * (massBound + 2 * (𝔰.ϱ + 1 : ℕ) * Γ * ε) := |
| 1233 | S.densitySum_le T hA hM_inv K (S.boundsDecay_prod T) (by positivity) (S.globalWeight_nonneg T) |
| 1234 | (fun i ↦ S.sq_sum_globalWeight_le T fun t ht ↦ (hA t ht).1) le_rfl |
| 1235 | _ ≤ (∏ a ∈ range 𝔰.n, S.poissonConst a) * |
| 1236 | (massBound + S.b ^ (𝔰.n ^ 9 * numInfPlaces E) * Γ * ε) := by |
| 1237 | grw [len_le] |
| 1238 | exact prod_nonneg fun a _ ↦ S.poissonConst_nonneg a |
| 1239 | _ = _ := by ring |
| 1240 | |
| 1241 | end New.Filling |