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 | public import Mathlib.Topology.Algebra.Group.Units |
| 4 | import Mathlib.Algebra.Order.Star.Real |
| 5 | import Mathlib.AlgebraicTopology.FundamentalGroupoid.SimplyConnected |
| 6 | import Mathlib.Analysis.Complex.HalfPlane |
| 7 | import Mathlib.Analysis.Convex.Contractible |
| 8 | import Mathlib.Order.CompletePartialOrder |
| 9 | import Mathlib.RingTheory.TotallySplit |
| 10 | import Mathlib.Topology.UniformSpace.Uniformizable |
| 11 | import TauCeti.Topology.Algebra.Group.Units |
| 12 | public import Lib.ClassField.HeckeL.EulerProduct |
| 13 | public import Lib.ClassField.HeckeL.IdelicThetaSum |
| 14 | import Lib.Adelic.Adeles.StrongApproximation |
| 15 | import Lib.General.Analysis.HolomorphicIntegrals |
| 16 | |
| 17 | /-! |
| 18 | # Analyticity at 1 of L-functions of nontrivial Hecke characters |
| 19 | |
| 20 | This file proves that partial Hecke `L`-functions `New.eulerProd (heckeCoeff ψ S)` of nontrivial |
| 21 | characters extend analytically to `s = 1`. Here `ψ` satisfies `New.IsHeckeOfType ψ n`, `S` is a |
| 22 | finite set of primes, and only real `s ≥ 1` is treated. The file combines the theta-sum estimate |
| 23 | of `Lib.ClassField.HeckeL.IdelicThetaSum` with the finite-place half of Tate's thesis. This yields |
| 24 | three results: analyticity at `1`, a prime density statement and, for `ψ ^ 2 ≠ 1`, nonvanishing |
| 25 | on `[1, ∞)`. Valuations are multiplicative: `v x ≤ 1` means integral. |
| 26 | |
| 27 | ## Main definitions and results |
| 28 | |
| 29 | * `New.IsHeckeOfType.integral_mul_finIdeleAbs_rpow_eq_eulerProd_mul`: the integral of `f ψ |·| ^ s` |
| 30 | over the finite ideles is the partial `L`-function of `ψ` times a volume; |
| 31 | `New.IsHeckeOfType.tate_integral` adds that this volume is nonzero. |
| 32 | * `New.IsHeckeOfType.exists_analyticAt_one_eulerProd`: for `ψ ≠ 1` the partial `L`-function extends |
| 33 | analytically to a neighbourhood of `1`. |
| 34 | * `New.IsHeckeOfType.continuousOn_eulerProd`, |
| 35 | `New.IsHeckeOfType.exists_hasPrimeDensity_neg_natCast`: for `ψ ≠ 1` the partial `L`-function is |
| 36 | continuous on `[1, ∞)`, and the values of `ψ` have mean `-m` over the primes of degree one, for |
| 37 | some natural number `m`. |
| 38 | * `New.IsHeckeOfType.eulerProd_ne_zero`: for `ψ ^ 2 ≠ 1` the partial `L`-function has no zero on |
| 39 | `[1, ∞)`. |
| 40 | |
| 41 | Notions from other files: |
| 42 | * `New.finIdeleAbs`: The module |x| of a finite idele x: the adelic absolute value of the idele with |
| 43 | finite part x and component 1 at infinity. `New.ZetaIntegral.ideleModule`: the module of an idele. |
| 44 | * `New.Ô`: The subring Ô of finite adeles of K that are integral at every finite place. |
| 45 | `New.ZetaIntegral.adelicTent r d`: a tent of radius `r` at `1` times the indicator of |
| 46 | `d * (x - 1) ∈ Ô`. |
| 47 | * `New.eulerProd`: The Euler product `∏ (1 - a v * q ^ (-s))⁻¹` over the primes `v` of `K`, with |
| 48 | `q = v.q` the norm of `v`, as a function of real `s > 1`; at `s = 1` it is the limit from the |
| 49 | right, if that exists. |
| 50 | * `New.IsHeckeOfType ψ n`: the character `ψ` of the finite ideles is the finite part of a Hecke |
| 51 | character of type `n`: its kernel is open and `ψ x * ∏_w (Φ_w x / |Φ_w x|) ^ (n w) = 1` on `Kˣ`. |
| 52 | * `New.heckeCoeff ψ S`: the function on finite places sending `v ∉ S` to the value of `ψ` at the |
| 53 | local idele of the chosen uniformiser at `v`, and `v ∈ S` to `0`. |
| 54 | |
| 55 | ## Relation to the literature |
| 56 | |
| 57 | Known result: Hecke L-functions with Euler product, continuation to s = 1, non-vanishing and prime |
| 58 | densities. Only real s is treated, and a non-trivial character of integral angular type is continued |
| 59 | to a neighbourhood of 1 from Tate's integral by a Riemann sum instead of Poisson summation. |
| 60 | Non-vanishing is proved only when the square of the character is non-trivial, and densities are |
| 61 | taken over primes of degree one, with bounded error. Source: J. Tate, Fourier analysis in number |
| 62 | fields and Hecke's zeta-functions, 1950, in Cassels–Fröhlich ch. XV, §4.4–4.5; J. Milne, Class Field |
| 63 | Theory, VI 4.8–4.9 (finite order); S. Lang, Algebraic Number Theory (non-vanishing); Titchmarsh, |
| 64 | Theory of the Riemann zeta-function, §2.11 (the Riemann-sum continuation is Müntz's formula over ℚ). |
| 65 | -/ |
| 66 | |
| 67 | @[expose] public section |
| 68 | |
| 69 | noncomputable section |
| 70 | |
| 71 | section HeckeContinuation |
| 72 | |
| 73 | open NumberField Complex MeasureTheory Valued Function IsDedekindDomain |
| 74 | |
| 75 | namespace New |
| 76 | |
| 77 | variable {K : Type*} [Field K] [NumberField K] {ψ : (𝔸f K)ˣ →* ℂˣ} |
| 78 | |
| 79 | /-- If `ψ` is unramified at `w`, its value at the local idele of `x` is its value at the uniformiser |
| 80 | raised to the order `-log (v x)` of `x`. -/ |
| 81 | lemma CharUnramifiedAt.apply_locIdele_eq_zpow {w : FinPlace K} (hψ : CharUnramifiedAt ψ w) |
| 82 | (x : (LocField w)ˣ) : |
| 83 | ψ (locIdele w x) = ψ (locIdele w (uniformizer w)) ^ (-(v x.val).log) := by |
| 84 | have h_unit := v_mul_uniformizer_zpow_log_eq_one x (v_uniformizer w) |
| 85 | simpa [← div_eq_one] using hψ (x * uniformizer w ^ (v x.val).log) h_unit |
| 86 | |
| 87 | /-- For a Haar measure `μ` and an open set `V` containing `1`, the volume of `Ô^× ∩ V` is nonzero. |
| 88 | Here `Ô^× = idelesUnitOff ∅` is the group of unit ideles. -/ |
| 89 | lemma measureReal_idelesUnitOff_empty_inter_ne_zero (μ : Measure (𝔸f K)ˣ) [μ.IsHaarMeasure] |
| 90 | {V : Set (𝔸f K)ˣ} (hV : IsOpen V) (hV_one : 1 ∈ V) : |
| 91 | μ.real ((idelesUnitOff ∅ : Subgroup (𝔸f K)ˣ) ∩ V) ≠ 0 := by |
| 92 | -- The set is open, nonempty and inside a compact set, so its measure is finite and nonzero. |
| 93 | rw [measureReal_ne_zero_iff |
| 94 | (measure_inter_ne_top_of_left_ne_top isCompact_idelesUnitOff_empty.measure_ne_top)] |
| 95 | exact ((isOpen_idelesUnitOff ∅).inter hV).measure_ne_zero μ ⟨1, one_mem _, hV_one⟩ |
| 96 | |
| 97 | /-- Let `μ` be a left-invariant measure on a group `G`, and `W` a measurable set with |
| 98 | `μ.real W ≠ 0`. If `c` has sum `a` over a countable type `ι`, then for all `t : ι → G` the function |
| 99 | `x ↦ ∑' i, c i * W.indicator 1 (t i * x)` has integral `a * μ.real W`: every translate of the |
| 100 | indicator of `W` has integral `μ.real W`. -/ |
| 101 | theorem _root_.MeasureTheory.integral_tsum_mul_indicator_mul_left_of_hasSum {G ι : Type*} |
| 102 | [Group G] [MeasurableSpace G] [MeasurableMul G] (μ : Measure G) [μ.IsMulLeftInvariant] |
| 103 | [Countable ι] {W : Set G} (hW : MeasurableSet W) (hW_vol : μ.real W ≠ 0) {c : ι → ℂ} {a : ℂ} |
| 104 | (hc : HasSum c a) (t : ι → G) : |
| 105 | ∫ x : G, ∑' i : ι, c i * W.indicator 1 (t i * x) ∂μ = a * μ.real W := by |
| 106 | have h_translate (i : ι) : ∫ x, W.indicator (1 : G → ℂ) (t i * x) ∂μ = μ.real W := by |
| 107 | simp [hW, integral_mul_left_eq_self, Pi.one_def] |
| 108 | have h_int (i : ι) : Integrable (fun x ↦ c i * W.indicator (1 : G → ℂ) (t i * x)) μ := |
| 109 | .const_mul (.of_integral_ne_zero (by simp [h_translate, hW_vol])) (c i) |
| 110 | have h_sum : Summable fun i ↦ ∫ x, ‖c i * W.indicator (1 : G → ℂ) (t i * x)‖ ∂μ := by |
| 111 | simpa [hW, integral_const_mul, integral_mul_left_eq_self, Pi.one_def, |
| 112 | norm_indicator_eq_indicator_norm] using hc.summable.norm.mul_right (μ.real W) |
| 113 | rw [← integral_tsum_of_summable_integral_norm h_int h_sum] |
| 114 | simp [integral_const_mul, h_translate, hc.tsum_eq, tsum_mul_right] |
| 115 | |
| 116 | open scoped Classical in |
| 117 | open Real HeightOneSpectrum Set in |
| 118 | /-- Let `f` vanish unless `x` is integral outside `S` and a unit at `S`, let `f` take equal values |
| 119 | at integral ideles with the same components at `S`, and let `χ` take the value `heckeCoeff ψ S w` at |
| 120 | each prime `w`. Then multiplying an integral `x` by the uniformiser at `w` (keeping it integral) |
| 121 | multiplies `f x * ψ x * |x| ^ s` by `χ w * w.q ^ (-s)`. -/ |
| 122 | private lemma mul_finIdeleAbs_rpow_locIdele_uniformizer_mul {S : Set (FinPlace K)} {f : (𝔸f K)ˣ → ℂ} |
| 123 | (h_supp : ∀ x : (𝔸f K)ˣ, f x ≠ 0 → |
| 124 | (∀ w : FinPlace K, w ∉ S → v (x.val w) ≤ 1) ∧ ∀ w : FinPlace K, w ∈ S → v (x.val w) = 1) |
| 125 | (h_local : ∀ x y : (𝔸f K)ˣ, x.val ∈ Ô K → y.val ∈ Ô K → |
| 126 | (∀ w : FinPlace K, w ∈ S → y.val w = x.val w) → f y = f x) |
| 127 | {χ : Ideal (𝓞 K) →* ℂ} (hχ_prime : ∀ w : FinPlace K, χ w.asIdeal = heckeCoeff ψ S w) |
| 128 | (s : ℝ) (w : FinPlace K) {x : (𝔸f K)ˣ} (hx : x.val ∈ Ô K) |
| 129 | (hx_unif : (locIdele w (uniformizer w) * x).val ∈ Ô K) : |
| 130 | f (locIdele w (uniformizer w) * x) * ψ (locIdele w (uniformizer w) * x) * |
| 131 | (finIdeleAbs (locIdele w (uniformizer w) * x) ^ s : ℝ) = |
| 132 | χ w.asIdeal * w.q ^ (-s : ℂ) * (f x * ψ x * (finIdeleAbs x ^ s : ℝ)) := by |
| 133 | by_cases hw : w ∈ S |
| 134 | · -- At `w ∈ S` both sides vanish: `locIdele w (uniformizer w) * x` is not a unit at `w`, and |
| 135 | -- `χ w = 0`. |
| 136 | have h_lt : v ((locIdele w (uniformizer w) * x).val w) < 1 := by |
| 137 | -- `↓` applies the lemma before simp computes `v (uniformizer w * _)` as a product. |
| 138 | simpa [↓← v_uniformizer_inv_mul_le_one_iff] using mem_Ô.mp hx w |
| 139 | have h_zero : f (locIdele w (uniformizer w) * x) = 0 := by |
| 140 | by_contra h_ne |
| 141 | exact h_lt.ne ((h_supp _ h_ne).right w hw) |
| 142 | simp [h_zero, hχ_prime, heckeCoeff, hw] |
| 143 | · -- At `w ∉ S` the value of `f` does not change, and `|locIdele w (uniformizer w)| = w.q⁻¹`. |
| 144 | have h_same : f (locIdele w (uniformizer w) * x) = f x := |
| 145 | h_local x _ hx hx_unif fun u hu ↦ by simp [ne_of_mem_of_not_mem hu hw] |
| 146 | have h_abs : finIdeleAbs (locIdele w (uniformizer w)) = (w.q : ℝ)⁻¹ := by |
| 147 | simp [norm_locField_eq_q_zpow] |
| 148 | have h_abs_rpow : finIdeleAbs (locIdele w (uniformizer w) * x) ^ s = |
| 149 | (w.q : ℝ) ^ (-s) * finIdeleAbs x ^ s := by |
| 150 | rw [map_mul, h_abs, mul_rpow (by positivity) (by simp [finIdeleAbs]), |
| 151 | inv_rpow (by positivity), ← rpow_neg (by positivity)] |
| 152 | have h_coeff : χ w.asIdeal = ψ (locIdele w (uniformizer w)) := by |
| 153 | simp [hχ_prime, heckeCoeff, hw] |
| 154 | rw [h_same, h_abs_rpow, h_coeff, map_mul, ofReal_mul, ofReal_cpow (by positivity)] |
| 155 | push_cast |
| 156 | ring |
| 157 | |
| 158 | open scoped Classical in |
| 159 | open Real HeightOneSpectrum UniqueFactorizationMonoid FractionalIdeal Set in |
| 160 | /-- Let `d` be the divisor map on finite ideles (with kernel `Ô^× = idelesUnitOff ∅` and sending |
| 161 | the local uniformiser at each prime `w` to `w`), and let `Z` be a function on finite ideles that |
| 162 | agrees with the indicator of `V` on `Ô^×` and transforms by `χ w * w.q ^ (-s)` under multiplication |
| 163 | by the uniformiser at `w` on ideles of integral divisor. Then for every integral ideal `I`, the |
| 164 | part of `Z` supported on ideles of divisor `I` is `χ I * I.absNorm ^ (-s)` times a left translate |
| 165 | of the indicator of `Ô^× ∩ V`. -/ |
| 166 | private lemma exists_divisor_part_eq_mul_indicator |
| 167 | {d : (𝔸f K)ˣ →* (FractionalIdeal (nonZeroDivisors (𝓞 K)) K)ˣ} |
| 168 | (hd_ker : d.ker = idelesUnitOff ∅) |
| 169 | (hd_unif : ∀ w : FinPlace K, (d (locIdele w (uniformizer w))).val = w.asIdeal) |
| 170 | {χ : Ideal (𝓞 K) →* ℂ} (hχ_zero : χ ⊥ = 0) |
| 171 | {V : Set (𝔸f K)ˣ} {Z : (𝔸f K)ˣ → ℂ} {s : ℝ} |
| 172 | (h_units : ∀ u : (𝔸f K)ˣ, u ∈ idelesUnitOff ∅ → Z u = if u ∈ V then 1 else 0) |
| 173 | (h_unif : ∀ (w : FinPlace K) {x : (𝔸f K)ˣ} {I : Ideal (𝓞 K)}, (d x).val = I → |
| 174 | Z (locIdele w (uniformizer w) * x) = χ w.asIdeal * w.q ^ (-s : ℂ) * Z x) |
| 175 | (I : Ideal (𝓞 K)) : |
| 176 | ∃ t : (𝔸f K)ˣ, ∀ x : (𝔸f K)ˣ, |
| 177 | (if (d x).val = I then Z x else 0) = |
| 178 | χ I * I.absNorm ^ (-s : ℂ) * |
| 179 | (((idelesUnitOff ∅ : Subgroup (𝔸f K)ˣ) : Set (𝔸f K)ˣ) ∩ V).indicator 1 (t * x) := by |
| 180 | induction I using induction_on_prime with |
| 181 | | h₁ => simp [hχ_zero] |
| 182 | | h₂ u hu => |
| 183 | -- Divisor `1` means `x` is a unit idele; there `Z` is the indicator of `V`. |
| 184 | refine ⟨1, fun x ↦ ?_⟩ |
| 185 | rw [hu.eq_one] |
| 186 | have h_div_one : d x = 1 ↔ x ∈ idelesUnitOff ∅ := by rw [← MonoidHom.mem_ker, hd_ker] |
| 187 | by_cases hx : x ∈ idelesUnitOff ∅ |
| 188 | · -- `↓` applies `map_one` before simp rewrites the ideal `1` as `⊤`. |
| 189 | simp [h_div_one.mpr hx, h_units x hx, hx, indicator, ↓map_one] |
| 190 | · simp [h_div_one, hx, indicator] |
| 191 | | h₃ J p hJ_ne hp ih => |
| 192 | obtain ⟨t, ht⟩ := ih |
| 193 | obtain ⟨w, rfl⟩ : ∃ w : FinPlace K, w.asIdeal = p := ⟨ofPrime hp, rfl⟩ |
| 194 | -- Write a general idele as `u * x` with `u = locIdele w (uniformizer w)`. |
| 195 | refine ⟨t / locIdele w (uniformizer w), fun y ↦ ?_⟩ |
| 196 | obtain ⟨x, rfl⟩ := mul_left_surjective (locIdele w (uniformizer w)) y |
| 197 | have h_coeff : χ (w.asIdeal * J) * ((w.asIdeal * J).absNorm : ℂ) ^ (-s : ℂ) = |
| 198 | χ w.asIdeal * (w.asIdeal.absNorm : ℂ) ^ (-s : ℂ) * (χ J * J.absNorm ^ (-s : ℂ)) := by |
| 199 | rw [map_mul, map_mul, Nat.cast_mul, natCast_mul_cpow, mul_mul_mul_comm] |
| 200 | -- With `u = locIdele w (uniformizer w)`, the divisor of `u * x` is `w` times that of `x`, and |
| 201 | -- `(t / u) * (u * x) = t * x`; so `ht` gives the part of divisor `J` on the right, and |
| 202 | -- `h_unif` compares the two sides. |
| 203 | rw [map_mul, Units.val_mul, hd_unif w, ← mul_assoc, div_mul_cancel, h_coeff, mul_assoc, ← ht] |
| 204 | by_cases hx : (d x).val = J |
| 205 | · simp [hx, h_unif w hx] |
| 206 | · simp [ne_bot, hx] |
| 207 | |
| 208 | namespace IsHeckeOfType |
| 209 | |
| 210 | variable [PlaceEmbedding K] {n : InfinitePlace K → ℤ} {S : Set (FinPlace K)} |
| 211 | (h : IsHeckeOfType ψ n) (hS : S.Finite) |
| 212 | |
| 213 | attribute [local fun_prop] Continuous.rpow_const |
| 214 | |
| 215 | private lemma isOpen_ker (hψ : IsHeckeOfType ψ n) : ψ.ker.IsOpen := hψ.left |
| 216 | |
| 217 | /-- The defining identity of `IsHeckeOfType ψ n` at `x ∈ Kˣ`. -/ |
| 218 | private lemma apply_principalIdele_mul_prod_eq_one (hψ : IsHeckeOfType ψ n) (x : Kˣ) : |
| 219 | (ψ (principalIdele x) : ℂ) * ∏ w : InfinitePlace K, (Φ w x.val / ‖Φ w x‖) ^ n w = 1 := |
| 220 | hψ.right x |
| 221 | |
| 222 | /-- Let `ψ` satisfy `IsHeckeOfType ψ n`: its kernel is open, and |
| 223 | `ψ x * ∏ w, (Φ w x / ‖Φ w x‖) ^ n w = 1` for `x ∈ Kˣ`. Then `ψ x` has absolute value one for |
| 224 | every finite idele `x`. -/ |
| 225 | lemma norm_eq_one (hψ : IsHeckeOfType ψ n) (x : (𝔸f K)ˣ) : ‖(ψ x).val‖ = 1 := by |
| 226 | -- The kernel `H` of `|ψ|` is open and contains `K^×`, so has finite index |
| 227 | -- (`finiteIndex_idele_subgroup_of_isOpen`): `|ψ x|` is a nonnegative real root of unity. |
| 228 | let H : Subgroup (𝔸f K)ˣ := (normHom.toMonoidHom.comp (Units.coeHom ℂ)).ker.comap ψ |
| 229 | have h_ker_le : ψ.ker ≤ H := fun y hy ↦ by simp [H, MonoidHom.mem_ker.mp hy] |
| 230 | have h_principal (y : Kˣ) : principalIdele y ∈ H := by |
| 231 | -- Take norms in the defining identity; each factor `Φ w y / ‖Φ w y‖` has norm one. |
| 232 | simpa [H] using congrArg norm (hψ.apply_principalIdele_mul_prod_eq_one y) |
| 233 | have h_index : H.FiniteIndex := finiteIndex_idele_subgroup_of_isOpen H |
| 234 | (ψ.ker.isOpen_mono h_ker_le hψ.isOpen_ker) fun y _ ↦ h_principal y |
| 235 | have h_pow : ‖(ψ x : ℂ)‖ ^ H.index = 1 := by simpa [H] using H.pow_index_mem x |
| 236 | exact (pow_eq_one_iff_of_nonneg (norm_nonneg _) h_index.index_ne_zero).mp h_pow |
| 237 | |
| 238 | lemma norm_heckeCoeff_le (hψ : IsHeckeOfType ψ n) (v : FinPlace K) : ‖heckeCoeff ψ S v‖ ≤ 1 := by |
| 239 | rw [← hψ.norm_eq_one (locIdele v (uniformizer v))] |
| 240 | exact norm_indicator_le_norm_self (fun w : FinPlace K ↦ (ψ (locIdele w (uniformizer w)) : ℂ)) v |
| 241 | |
| 242 | /-- The `d`-th power of a Hecke character of type `n` is a Hecke character of type `d • n`. -/ |
| 243 | lemma pow (hψ : IsHeckeOfType ψ n) (d : ℕ) : IsHeckeOfType (ψ ^ d) (d • n) := by |
| 244 | have h_ker_le : ψ.ker ≤ (ψ ^ d).ker := fun y hy ↦ by simp [MonoidHom.mem_ker.mp hy] |
| 245 | refine ⟨Subgroup.isOpen_mono h_ker_le hψ.isOpen_ker, fun x ↦ ?_⟩ |
| 246 | -- Raise the defining identity of `ψ` to the power `d`. |
| 247 | simpa [Finset.prod_pow, zpow_mul', ← mul_pow] using |
| 248 | congrArg (· ^ d) (hψ.apply_principalIdele_mul_prod_eq_one x) |
| 249 | |
| 250 | /-- Over a CM field, a Hecke character of nonzero type `n` is nontrivial. -/ |
| 251 | lemma ne_one (hψ : IsHeckeOfType ψ n) [IsCMField K] (hn : n ≠ 0) : ψ ≠ 1 := by |
| 252 | -- If `ψ = 1`, the function `F y = ∏ (y u / ‖y u‖) ^ n u` on `∏ ℂ` is `1` on the dense set of |
| 253 | -- nonzero elements of `K`, so also at a point `y₀` of continuity; but we can arrange `F y₀ = -1`. |
| 254 | rintro rfl |
| 255 | obtain ⟨w, hw⟩ : ∃ w : InfinitePlace K, n w ≠ 0 := Function.ne_iff.mp hn |
| 256 | let F (y : InfinitePlace K → ℂ) : ℂ := ∏ u, (y u / ‖y u‖ : ℂ) ^ n u |
| 257 | -- The point `y₀` has component `exp (π i / n w)` at `w` and `1` elsewhere. |
| 258 | let y₀ : InfinitePlace K → ℂ := exp ∘ Pi.single w (log (-1) / n w) |
| 259 | have h_cont : ContinuousAt F y₀ := by fun_prop (disch := simp [y₀]) |
| 260 | have h_one : ∀ y ∈ Set.range (RingHom.pi Φ : K →+* InfinitePlace K → ℂ) \ {0}, F y = 1 := by |
| 261 | rintro _ ⟨⟨x, rfl⟩, hx_ne⟩ |
| 262 | have hx : x ≠ 0 := (map_ne_zero_iff _ (RingHom.injective _)).mp hx_ne |
| 263 | simpa [F] using hψ.apply_principalIdele_mul_prod_eq_one (.mk0 x hx) |
| 264 | have h_val_one : F y₀ = 1 := |
| 265 | h_cont.continuousWithinAt.eq_const_of_mem_closure (denseRange_Φ.sdiff_singleton 0 _) h_one |
| 266 | have h_val_neg : F y₀ = -1 := calc |
| 267 | F y₀ = (y₀ w / ‖y₀ w‖ : ℂ) ^ n w := Fintype.prod_eq_single w fun u hu ↦ by simp [y₀, hu] |
| 268 | -- The factor at `w` is `exp (π i / n w) ^ n w = exp (π i) = -1`. |
| 269 | _ = -1 := by simp [y₀, log, norm_exp, ← exp_intCast_mul, mul_div_cancel₀, hw] |
| 270 | norm_num [h_val_one] at h_val_neg |
| 271 | |
| 272 | open HeightOneSpectrum UniqueFactorizationMonoid in |
| 273 | /-- Let `ψ` satisfy `IsHeckeOfType ψ n`. The values `heckeCoeff ψ S` at the primes extend to a |
| 274 | completely multiplicative function `χ` on the ideals of `𝓞 K` with `χ ⊥ = 0` and `‖χ I‖ ≤ 1`. -/ |
| 275 | lemma exists_monoidHom_asIdeal_eq_heckeCoeff (hψ : IsHeckeOfType ψ n) (S : Set (FinPlace K)) : |
| 276 | ∃ χ : Ideal (𝓞 K) →* ℂ, χ ⊥ = 0 ∧ |
| 277 | (∀ w : FinPlace K, χ w.asIdeal = heckeCoeff ψ S w) ∧ ∀ I : Ideal (𝓞 K), ‖χ I‖ ≤ 1 := by |
| 278 | let χ : Ideal (𝓞 K) →* ℂ := |
| 279 | { toFun I := |
| 280 | if I = 0 then 0 else ((normalizedFactors I).map (asIdeal.extend (heckeCoeff ψ S) 0)).prod |
| 281 | map_one' := by |
| 282 | -- `↓` applies `normalizedFactors_one` before simp rewrites the ideal `1` as `⊤`. |
| 283 | simp [↓normalizedFactors_one] |
| 284 | map_mul' := by aesop (add simp normalizedFactors_mul) } |
| 285 | have hχ_prime (w : FinPlace K) : χ w.asIdeal = heckeCoeff ψ S w := by |
| 286 | simp [χ, ne_bot, asIdeal_injective, normalizedFactors_irreducible, irreducible] |
| 287 | refine ⟨χ, by simp [χ], hχ_prime, fun I ↦ ?_⟩ |
| 288 | -- The bound `‖χ I‖ ≤ 1` holds on the primes, so on all ideals by multiplicativity. |
| 289 | induction I using induction_on_prime with |
| 290 | | h₁ => simp [χ] |
| 291 | | h₂ u hu => rw [hu.eq_one, map_one, norm_one] |
| 292 | | h₃ J p hJ_ne hp hJ => |
| 293 | obtain ⟨w, rfl⟩ : ∃ w : FinPlace K, w.asIdeal = p := ⟨ofPrime hp, rfl⟩ |
| 294 | grw [map_mul, norm_mul, hJ, mul_one, hχ_prime, hψ.norm_heckeCoeff_le] |
| 295 | |
| 296 | open scoped Classical in |
| 297 | open Real HeightOneSpectrum UniqueFactorizationMonoid FractionalIdeal Set in |
| 298 | /-- Tate's zeta integral over the finite ideles. Let `ψ` be the finite part of a Hecke character of |
| 299 | type `n`, `μ` a Haar measure on the finite ideles, and `V ∋ 1` open. Let `f` be supported on the |
| 300 | ideles integral outside `S` and units at `S`, with `f ψ` the indicator of `V` on the unit ideles |
| 301 | `Ô^× = idelesUnitOff ∅`, and with `f` depending only on the components at `S` of integral ideles. |
| 302 | Then for real `s > 1` the function `f x * ψ x * |x| ^ s` is integrable, with integral |
| 303 | `eulerProd (heckeCoeff ψ S) s * μ (Ô^× ∩ V)`, where `|x| = finIdeleAbs x` and |
| 304 | `eulerProd (heckeCoeff ψ S) s` is the partial Euler product `∏_{v ∉ S} (1 - ψ(ϖ_v) q_v^(-s))⁻¹`, |
| 305 | with `ϖ_v` the chosen uniformiser and `q_v` the norm of `v`. -/ |
| 306 | lemma integral_mul_finIdeleAbs_rpow_eq_eulerProd_mul (hψ : IsHeckeOfType ψ n) |
| 307 | (S : Set (FinPlace K)) (f : (𝔸f K)ˣ → ℂ) (V : Set (𝔸f K)ˣ) (μ : Measure (𝔸f K)ˣ) |
| 308 | [μ.IsHaarMeasure] (hV : IsOpen V) (hV_one : 1 ∈ V) |
| 309 | (h_supp : ∀ x : (𝔸f K)ˣ, f x ≠ 0 → |
| 310 | (∀ w : FinPlace K, w ∉ S → v (x.val w) ≤ 1) ∧ ∀ w : FinPlace K, w ∈ S → v (x.val w) = 1) |
| 311 | (h_units : ∀ u : (𝔸f K)ˣ, u ∈ idelesUnitOff ∅ → f u * ψ u = if u ∈ V then 1 else 0) |
| 312 | (h_local : ∀ x y : (𝔸f K)ˣ, x.val ∈ Ô K → y.val ∈ Ô K → |
| 313 | (∀ w : FinPlace K, w ∈ S → y.val w = x.val w) → f y = f x) : |
| 314 | ∀ s : ℝ, 1 < s → |
| 315 | Integrable (fun x : (𝔸f K)ˣ ↦ f x * ψ x * (finIdeleAbs x ^ s : ℝ)) μ ∧ |
| 316 | ∫ x : (𝔸f K)ˣ, f x * ψ x * (finIdeleAbs x ^ s : ℝ) ∂μ = |
| 317 | eulerProd (heckeCoeff ψ S) s * μ.real ((idelesUnitOff ∅ : Subgroup (𝔸f K)ˣ) ∩ V) := by |
| 318 | -- Split the ideles by their divisor `ideleDivisor x`. The integrand vanishes unless this is an |
| 319 | -- integral ideal `I`, and on the ideles of divisor `I` it is `χ I * N I ^ (-s)` times a translate |
| 320 | -- of the indicator of `W = Ô^× ∩ V`. Summing over `I` gives the Euler product times the |
| 321 | -- volume of `W`. |
| 322 | obtain ⟨χ, hχ_zero, hχ_prime, hχ_norm⟩ := hψ.exists_monoidHom_asIdeal_eq_heckeCoeff S |
| 323 | have hd_unif (w : FinPlace K) : (ideleDivisor (locIdele w (uniformizer w))).val = w.asIdeal := by |
| 324 | simp [ideleDivisor_uniformizer] |
| 325 | have h_integral {x : (𝔸f K)ˣ} {I : Ideal (𝓞 K)} (hx : (ideleDivisor x).val = I) : x.val ∈ Ô K := |
| 326 | (ideleDivisor_le_one_iff x).mp (hx.le.trans FractionalIdeal.coeIdeal_le_one) |
| 327 | set W : Set (𝔸f K)ˣ := (idelesUnitOff ∅ : Subgroup (𝔸f K)ˣ) ∩ V with hW |
| 328 | have hW_vol : μ.real W ≠ 0 := measureReal_idelesUnitOff_empty_inter_ne_zero μ hV hV_one |
| 329 | intro s hs |
| 330 | let Z (x : (𝔸f K)ˣ) : ℂ := f x * ψ x * (finIdeleAbs x ^ s : ℝ) |
| 331 | change Integrable Z μ ∧ ∫ x, Z x ∂μ = eulerProd (heckeCoeff ψ S) s * μ.real W |
| 332 | -- On an idele of integral divisor, a uniformiser at `w` multiplies `Z` by `χ w * N w ^ (-s)`. |
| 333 | have h_unif (w : FinPlace K) {x : (𝔸f K)ˣ} {I : Ideal (𝓞 K)} (hx : (ideleDivisor x).val = I) : |
| 334 | Z (locIdele w (uniformizer w) * x) = χ w.asIdeal * w.q ^ (-s : ℂ) * Z x := |
| 335 | mul_finIdeleAbs_rpow_locIdele_uniformizer_mul h_supp h_local hχ_prime s w (h_integral hx) |
| 336 | (h_integral (I := w.asIdeal * I) (by simp [map_mul, hd_unif, hx])) |
| 337 | -- On the unit ideles `Ô^×`, `|x| = 1` and `f ψ` is the indicator of `V`. |
| 338 | have hZ_units (u : (𝔸f K)ˣ) (hu : u ∈ idelesUnitOff ∅) : Z u = if u ∈ V then 1 else 0 := by |
| 339 | have h_abs_one : finIdeleAbs u = 1 := by |
| 340 | simp [finIdeleAbs, ideleAbs_eq_prod_of_v_eq_one, mem_idelesUnitOff.mp hu] |
| 341 | simp [Z, h_abs_one, h_units u hu] |
| 342 | -- Split `Z` by divisor using prime factorisation of integral ideals. |
| 343 | choose t ht using exists_divisor_part_eq_mul_indicator |
| 344 | ker_ideleDivisor hd_unif hχ_zero hZ_units h_unif |
| 345 | -- Where `f x ≠ 0`, the divisor `ideleDivisor x` is integral, so `Z` is the sum of its parts. |
| 346 | have h_Z (x : (𝔸f K)ˣ) : |
| 347 | Z x = ∑' I : Ideal (𝓞 K), χ I * I.absNorm ^ (-s : ℂ) * W.indicator 1 (t I * x) := by |
| 348 | rw [← tsum_congr fun I ↦ ht I x] |
| 349 | by_cases hf : f x = 0 |
| 350 | · simp [Z, hf] |
| 351 | obtain ⟨hx_integral, hx_unit⟩ := h_supp x hf |
| 352 | have hx : x.val ∈ Ô K := mem_Ô.mpr fun w ↦ |
| 353 | if hw : w ∈ S then (hx_unit w hw).le else hx_integral w hw |
| 354 | obtain ⟨I, hI⟩ := FractionalIdeal.le_one_iff_exists_coeIdeal.mp |
| 355 | ((ideleDivisor_le_one_iff x).mpr hx) |
| 356 | simp [← hI, coeIdeal_inj] |
| 357 | have h_countable : Countable (Ideal (𝓞 K)) := |
| 358 | .of_preimage_singleton fun N ↦ |
| 359 | (Ring.HasFiniteQuotients.finite_absNorm_eq (S := 𝓞 K) N).countable |
| 360 | -- Integrate term by term; the coefficients `χ I * N I ^ (-s)` sum to the Euler product. |
| 361 | have h_value : ∫ x, Z x ∂μ = eulerProd (heckeCoeff ψ S) s * μ.real W := by |
| 362 | simp only [h_Z] |
| 363 | rw [integral_tsum_mul_indicator_mul_left_of_hasSum μ |
| 364 | ((isOpen_idelesUnitOff ∅).inter hV).measurableSet hW_vol (hasSum_eulerProd χ hχ_norm hs) t, |
| 365 | funext hχ_prime] |
| 366 | -- A function with nonzero integral is integrable, and the Euler product is an exponential. |
| 367 | refine ⟨.of_integral_ne_zero ?_, h_value⟩ |
| 368 | simp [h_value, hW_vol, eulerProd_eq_exp hψ.norm_heckeCoeff_le hs] |
| 369 | |
| 370 | open scoped Classical in |
| 371 | /-- Tate's zeta integral with the volume. Let `ψ` satisfy `IsHeckeOfType ψ n`, let `μ` be a Haar |
| 372 | measure on the finite ideles, and let `V` be an open set containing `1`. Let `f` satisfy three |
| 373 | conditions: it vanishes unless `x` is integral outside `S` and a unit at the places of `S`; |
| 374 | `f u * ψ u` is the indicator of `V` on the unit ideles `Ô^× = idelesUnitOff ∅`; and its value on |
| 375 | integral ideles depends only on their components at `S`. Then `μ (Ô^× ∩ V) ≠ 0`, and for every real |
| 376 | `s > 1` the function `f x * ψ x * |x| ^ s` is `μ`-integrable with integral |
| 377 | `eulerProd (heckeCoeff ψ S) s * μ (Ô^× ∩ V)`. -/ |
| 378 | lemma tate_integral (hψ : IsHeckeOfType ψ n) (S : Set (FinPlace K)) (f : (𝔸f K)ˣ → ℂ) |
| 379 | (V : Set (𝔸f K)ˣ) (μ : Measure (𝔸f K)ˣ) [μ.IsHaarMeasure] (hV : IsOpen V) (hV_one : 1 ∈ V) |
| 380 | (h_supp : ∀ x : (𝔸f K)ˣ, f x ≠ 0 → |
| 381 | (∀ w : FinPlace K, w ∉ S → v (x.val w) ≤ 1) ∧ ∀ w : FinPlace K, w ∈ S → v (x.val w) = 1) |
| 382 | (h_units : ∀ u : (𝔸f K)ˣ, u ∈ idelesUnitOff ∅ → f u * ψ u = if u ∈ V then 1 else 0) |
| 383 | (h_local : ∀ x y : (𝔸f K)ˣ, x.val ∈ Ô K → y.val ∈ Ô K → |
| 384 | (∀ w : FinPlace K, w ∈ S → y.val w = x.val w) → f y = f x) : |
| 385 | μ.real ((idelesUnitOff ∅ : Subgroup (𝔸f K)ˣ) ∩ V) ≠ 0 ∧ |
| 386 | ∀ s : ℝ, 1 < s → |
| 387 | Integrable (fun x : (𝔸f K)ˣ ↦ f x * ψ x * (finIdeleAbs x ^ s : ℝ)) μ ∧ |
| 388 | ∫ x : (𝔸f K)ˣ, f x * ψ x * (finIdeleAbs x ^ s : ℝ) ∂μ = |
| 389 | eulerProd (heckeCoeff ψ S) s * μ.real ((idelesUnitOff ∅ : Subgroup (𝔸f K)ˣ) ∩ V) := |
| 390 | ⟨measureReal_idelesUnitOff_empty_inter_ne_zero μ hV hV_one, |
| 391 | hψ.integral_mul_finIdeleAbs_rpow_eq_eulerProd_mul S f V μ hV hV_one h_supp h_units h_local⟩ |
| 392 | |
| 393 | open InfinitePlace Pi in |
| 394 | /-- The embedding `Φ w : K →+* ℂ` that `PlaceEmbedding K` chooses at the infinite place `w` extends |
| 395 | to a continuous `ℝ`-algebra map `p` on `K ⊗ ℝ = mixedEmbedding.mixedSpace K`: |
| 396 | `p (mixedEmbedding K x) = Φ w x` for `x : K`. -/ |
| 397 | lemma exists_continuousAlgHom_mixedEmbedding_eq (w : InfinitePlace K) : |
| 398 | ∃ p : mixedEmbedding.mixedSpace K →A[ℝ] ℂ, ∀ x : K, p (mixedEmbedding K x) = Φ w x := by |
| 399 | classical |
| 400 | -- Take the coordinate at `w`, conjugated if `Φ w` is not `w.embedding`. |
| 401 | let coord : mixedEmbedding.mixedSpace K →ₐ[ℝ] ℂ := |
| 402 | if hw : w.IsReal then ofRealAm.comp ((evalAlgHom _ _ ⟨w, hw⟩).comp (AlgHom.fst ℝ _ _)) |
| 403 | else (evalAlgHom _ _ ⟨w, not_isReal_iff_isComplex.mp hw⟩).comp (AlgHom.snd ℝ _ _) |
| 404 | have h_coord (x : K) : coord (mixedEmbedding K x) = w.embedding x := by |
| 405 | by_cases hw : w.IsReal <;> simp [coord, hw] |
| 406 | obtain ⟨σ, -, hσ⟩ := exists_measurePreserving_algEquiv_of_mk_eq w.embedding (Φ w) (by simp) |
| 407 | let p := σ.toAlgHom.comp coord |
| 408 | exact ⟨⟨p, p.toLinearMap.continuous_of_finiteDimensional⟩, fun x ↦ |
| 409 | (congrArg σ (h_coord x)).trans (hσ x)⟩ |
| 410 | |
| 411 | open Units in |
| 412 | /-- Let `ψ` satisfy `IsHeckeOfType ψ n`. There is a finite idele `d`, a level of `ψ`, such that |
| 413 | every idele `y` with `d * (y - 1) ∈ Ô K` is integral (`Ô K`: the finite adeles that are integral |
| 414 | everywhere) and, if `y` is a unit idele (`y ∈ idelesUnitOff ∅`), satisfies `ψ y = 1`. -/ |
| 415 | lemma exists_level (hψ : IsHeckeOfType ψ n) : |
| 416 | ∃ d : (𝔸f K)ˣ, ∀ y : (𝔸f K)ˣ, d * (y.val - 1) ∈ Ô K → |
| 417 | y.val ∈ Ô K ∧ (y ∈ idelesUnitOff ∅ → ψ y = 1) := by |
| 418 | -- The unit ideles outside the open kernel of `ψ` form a compact set that misses `1`, so its |
| 419 | -- complement in `Ô` contains `1 + M Ô` for some integer `M ≠ 0`. |
| 420 | let U : Set (𝔸f K) := |
| 421 | SetLike.coe (Ô K) \ val '' (SetLike.coe (idelesUnitOff ∅) \ (ψ.ker : Set (𝔸f K)ˣ)) |
| 422 | have h_closed : IsClosed (val '' (SetLike.coe (idelesUnitOff ∅) \ (ψ.ker : Set (𝔸f K)ˣ))) := |
| 423 | ((isCompact_idelesUnitOff_empty.diff hψ.isOpen_ker).image continuous_val).isClosed |
| 424 | have hU : U ∈ nhds 1 := (isOpen_Ô.sdiff h_closed).mem_nhds (by simp) |
| 425 | obtain ⟨M, hM, h_nhds⟩ : ∃ M : ℕ, M ≠ 0 ∧ ∀ x ∈ Ô K, M * x + 1 ∈ U := |
| 426 | mem_nhds_zero_finAdele_iff.mp ((map_add_right_nhds_zero 1).le hU) |
| 427 | let d : (𝔸f K)ˣ := (isUnit_natCast_finAdele (E := K) hM).unit⁻¹ |
| 428 | refine ⟨d, fun y hy ↦ ?_⟩ |
| 429 | -- With `d = M⁻¹`, the point `M * (d * (y - 1)) + 1` of `U` is `y` itself. |
| 430 | have h_mem : y.val ∈ U := by simpa [d, ← mul_assoc] using h_nhds (d * (y.val - 1)) hy |
| 431 | simpa [U, val_inj] using h_mem |
| 432 | |
| 433 | open InfinitePlace Units Real ZetaIntegral Module DFunLike in |
| 434 | /-- Let `ψ ≠ 1` be the finite part of a Hecke character of type `n` (`IsHeckeOfType ψ n`): its |
| 435 | kernel is open, and `ψ x * ∏ w, (Φ w x / ‖Φ w x‖) ^ n w = 1` for `x ∈ Kˣ`. Then `ψ` extends to a |
| 436 | homomorphism `X` to `ℂ` from the idele group `(K ⊗ ℝ)ˣ × (𝔸f K)ˣ` with four properties. `X` is |
| 437 | trivial on the principal ideles `principalIdeles K` (the diagonal image of `Kˣ`), |
| 438 | `X (t, a) = X (t, 1) * ψ a`, `X` is continuous in the infinite component, and `X c ≠ 1` for some |
| 439 | idele `c` with `ideleModule c = 1`. -/ |
| 440 | lemma exists_idele_character (hψ : IsHeckeOfType ψ n) (hψ_ne : ψ ≠ 1) : |
| 441 | ∃ X : (mixedEmbedding.mixedSpace K)ˣ × (𝔸f K)ˣ →* ℂ, |
| 442 | (∀ γ : principalIdeles K, X γ = 1) ∧ |
| 443 | (∀ (t : (mixedEmbedding.mixedSpace K)ˣ) (a : (𝔸f K)ˣ), X (t, a) = X (t, 1) * ψ a) ∧ |
| 444 | Continuous (fun t : (mixedEmbedding.mixedSpace K)ˣ ↦ X (t, 1)) ∧ |
| 445 | ∃ c : (mixedEmbedding.mixedSpace K)ˣ × (𝔸f K)ˣ, ideleModule c = 1 ∧ X c ≠ 1 := by |
| 446 | -- Take `X (t, a) = ∏ w, (p w t / ‖p w t‖) ^ n w * ψ a`, with `p w` the extension of `Φ w`. |
| 447 | choose p hp using exists_continuousAlgHom_mixedEmbedding_eq (K := K) |
| 448 | -- The homomorphism `arg` is `z ↦ z / ‖z‖`. |
| 449 | let arg : ℂˣ →* ℂˣ := .id ℂˣ / map (ofRealHom.toMonoidHom.comp normHom.toMonoidHom) |
| 450 | have h_arg (z : ℂˣ) : (arg z : ℂ) = z / ‖z.val‖ := by simp [arg] |
| 451 | let X : (mixedEmbedding.mixedSpace K)ˣ × (𝔸f K)ˣ →* ℂ := (coeHom ℂ).comp <| |
| 452 | .coprod (∏ w, (arg.comp (map (p w).toAlgHom.toRingHom.toMonoidHom)) ^ n w) ψ |
| 453 | have hX_apply (t : (mixedEmbedding.mixedSpace K)ˣ) (a : (𝔸f K)ˣ) : |
| 454 | X (t, a) = (∏ w : InfinitePlace K, (p w t.val / (‖p w t.val‖ : ℂ)) ^ n w) * ψ a := by |
| 455 | simp [X, h_arg] |
| 456 | refine ⟨X, ?_, fun t a ↦ by simp [hX_apply], ?_, ?_⟩ |
| 457 | · -- On the principal idele of `x`, `X` is the left side of the defining identity of `ψ`. |
| 458 | rintro ⟨_, x, rfl⟩ |
| 459 | simpa [hX_apply, hp, mul_comm] using hψ.apply_principalIdele_mul_prod_eq_one x |
| 460 | · -- At infinity `X` is a product of powers of the continuous maps `t ↦ p w t / ‖p w t‖`. |
| 461 | simp only [hX_apply] |
| 462 | -- `↓` applies `IsUnit.map` to `p w t` before simp unfolds the unit `t`. |
| 463 | fun_prop (disch := simp [IsUnit.ne_zero, ↓IsUnit.map]) |
| 464 | · -- Take `a` with `ψ a ≠ 1` and rescale it to module one by a positive real at infinity. |
| 465 | obtain ⟨a, ha⟩ : ∃ a : (𝔸f K)ˣ, ψ a ≠ 1 := exists_ne hψ_ne |
| 466 | have h_pos : 0 < ideleModule (1, a⁻¹) ^ (finrank ℚ K : ℝ)⁻¹ := |
| 467 | rpow_pos_of_pos (ideleModule_pos _) _ |
| 468 | refine ⟨(map (algebraMap ℝ _).toMonoidHom (mk0 _ h_pos.ne'), a), ?_, ?_⟩ |
| 469 | · -- The norm of the real number `r` at infinity is `r ^ [K : ℚ] = |a|⁻¹`, so the module is one. |
| 470 | -- `↓` uses `mixedEmbedding.finrank` before simp splits the dimension over the real and |
| 471 | -- complex places. |
| 472 | simp [ideleModule, finIdeleAbs, ↓mixedEmbedding.finrank, rpow_inv_natCast_pow, |
| 473 | finrank_pos.ne', abs_of_nonneg, -Prod.algebraMap_apply] |
| 474 | · -- A positive real number at infinity does not change `X`, so `X (r, a) = ψ a`. |
| 475 | simpa [X, arg, abs_of_pos h_pos, h_pos.ne', -Prod.algebraMap_apply] using ha |
| 476 | |
| 477 | open scoped Classical in |
| 478 | omit [PlaceEmbedding K] in |
| 479 | open Units Real ZetaIntegral in |
| 480 | /-- The zeta integral at infinity. Let `χ` be a continuous function on the units of `K ⊗ ℝ` (the |
| 481 | mixed space) with `χ 1 = 1`, and integrate `χ t * |t| ^ s` against the tent `max (ρ - dist t 1) 0`, |
| 482 | where `|t| = ideleModule (t, 1)` is the absolute value of the norm of `t`. There is `0 < r < 1` such |
| 483 | that for every `ρ ≤ r` the integrand is integrable for all real `s`, and for `0 < ρ ≤ r` the |
| 484 | integral does not vanish at `s = 1`. -/ |
| 485 | lemma exists_radius_tent_integral_ne_zero {χ : (mixedEmbedding.mixedSpace K)ˣ → ℂ} |
| 486 | (hχ_cont : Continuous χ) (hχ_one : χ 1 = 1) : |
| 487 | ∃ r : ℝ, 0 < r ∧ r < 1 ∧ ∀ ρ ≤ r, |
| 488 | (∀ s : ℝ, Integrable (fun t : (mixedEmbedding.mixedSpace K)ˣ ↦ |
| 489 | max (ρ - dist t.val 1) 0 * χ t * (ideleModule (t, 1) ^ s : ℝ)) .haar) ∧ |
| 490 | (0 < ρ → ∫ t : (mixedEmbedding.mixedSpace K)ˣ, |
| 491 | max (ρ - dist t.val 1) 0 * χ t * (ideleModule (t, 1) ^ (1 : ℝ) : ℝ) ∂.haar ≠ 0) := by |
| 492 | let A (ρ s : ℝ) (t : (mixedEmbedding.mixedSpace K)ˣ) : ℂ := |
| 493 | max (ρ - dist t.val 1) 0 * χ t * (ideleModule (t, 1) ^ s : ℝ) |
| 494 | have hA_cont (ρ s : ℝ) : Continuous (A ρ s) := by fun_prop (disch := simp [ne_of_gt]) |
| 495 | -- On a closed ball of radius `r` at `1` all points are units and `χ` has positive real part. |
| 496 | have h_nhds : val '' (χ ⁻¹' {z : ℂ | 0 < z.re}) ∈ nhds (1 : mixedEmbedding.mixedSpace K) := |
| 497 | isOpenMap_val.image_mem_nhds |
| 498 | (hχ_cont.tendsto 1 ((isOpen_re_gt 0).mem_nhds (by simp [hχ_one]))) |
| 499 | obtain ⟨r, hr, h_ball⟩ := Metric.nhds_basis_closedBall.mem_iff.mp h_nhds |
| 500 | -- As `0` is not a unit, it is not in the ball, so `r < 1`. |
| 501 | have hr_one : r < 1 := by |
| 502 | by_contra! h_le |
| 503 | obtain ⟨u, -, hu⟩ := h_ball (a := 0) (by simpa using h_le) |
| 504 | exact u.ne_zero hu |
| 505 | refine ⟨r, hr, hr_one, fun ρ hρ ↦ ?_⟩ |
| 506 | -- The tent of radius `ρ` is supported in the ball, which is compact in the units. |
| 507 | have h_compact : IsCompact (val ⁻¹' Metric.closedBall (1 : mixedEmbedding.mixedSpace K) r) := |
| 508 | isOpenEmbedding_val.isCompact_preimage' (isCompact_closedBall 1 r) |
| 509 | (h_ball.trans (Set.image_subset_range _ _)) |
| 510 | have hA_int (s : ℝ) : Integrable (A ρ s) .haar := by |
| 511 | refine (hA_cont ρ s).integrable_of_hasCompactSupport (.intro h_compact fun t ht ↦ ?_) |
| 512 | have h_le : ρ ≤ dist t.val 1 := hρ.trans (not_le.mp ht).le |
| 513 | simp [A, h_le] |
| 514 | refine ⟨hA_int, fun hρ_pos ↦ ?_⟩ |
| 515 | -- The real part of the integrand is nonnegative, and positive at `1`. |
| 516 | have h_nonneg (t : (mixedEmbedding.mixedSpace K)ˣ) : 0 ≤ (A ρ 1 t).re := by |
| 517 | by_cases! ht : ρ ≤ dist t.val 1 |
| 518 | · simp [A, ht] |
| 519 | have hχ_pos : 0 < (χ t).re := by simpa [val_inj] using h_ball (ht.le.trans hρ) |
| 520 | calc 0 ≤ max (ρ - dist t.val 1) 0 * (χ t).re * ideleModule (t, 1) := by |
| 521 | positivity [ideleModule_pos (t, 1)] |
| 522 | _ = (A ρ 1 t).re := by simp [A] |
| 523 | have h_pos : 0 < ∫ t, (A ρ 1 t).re ∂.haar := |
| 524 | integral_pos_of_integrable_nonneg_ne_zero (x := 1) (by fun_prop) (hA_int 1).re h_nonneg |
| 525 | (by simpa [A, hχ_one, Prod.mk_one_one, hρ_pos.le] using hρ_pos.ne') |
| 526 | exact ne_zero_of_re_pos (h_pos.trans_eq (integral_re (hA_int 1))) |
| 527 | |
| 528 | open NumberField.mixedEmbedding (mixedSpace) |
| 529 | |
| 530 | /-- Let `v` be a valuation and `a`, `x` elements with `1 < v a` and `v a * v (x - 1) ≤ 1`. Then |
| 531 | `v x = 1`, because the second hypothesis forces `v (x - 1) < 1`. -/ |
| 532 | private theorem _root_.Valuation.map_eq_one_of_one_lt_of_mul_map_sub_one_le {R Γ₀ : Type*} |
| 533 | [Ring R] [LinearOrderedCommGroupWithZero Γ₀] (v : Valuation R Γ₀) {a x : R} (ha : 1 < v a) |
| 534 | (h_mul : v a * v (x - 1) ≤ 1) : v x = 1 := by |
| 535 | have h_sub : v (x - 1) < 1 := lt_of_mul_lt_mul_of_le₀ |
| 536 | (h_mul.trans_lt (ha.trans_eq (mul_one _).symm)) (zero_lt_one.trans ha) le_rfl |
| 537 | exact (v.map_eq_of_sub_lt (h_sub.trans_eq v.map_one.symm)).trans v.map_one |
| 538 | |
| 539 | /-- Let `v` be a valuation and `a`, `x` elements with `v a ≤ 1` and `v x ≤ 1`. Then |
| 540 | `v a * v (x - 1) ≤ 1`. -/ |
| 541 | private theorem _root_.Valuation.mul_map_sub_one_le_one_of_map_le_one {R Γ₀ : Type*} [Ring R] |
| 542 | [LinearOrderedCommGroupWithZero Γ₀] (v : Valuation R Γ₀) {a x : R} (ha : v a ≤ 1) |
| 543 | (hx : v x ≤ 1) : v a * v (x - 1) ≤ 1 := |
| 544 | mul_le_one' ha (v.map_sub_le hx (map_one v).le) |
| 545 | |
| 546 | open Valuation ZetaIntegral in |
| 547 | /-- The zeta integral at the finite places. Let `ψ` be the finite part of a Hecke character of type |
| 548 | `n` (`IsHeckeOfType ψ n`). There are a level `d`, a finite set `T` of finite places and a constant |
| 549 | `κ ≠ 0` such that, for real `s > 1`, the function `ψ x * |x| ^ s` times the indicator |
| 550 | `adelicTent 1 d (1, x)` of `1 + d⁻¹ Ô` is integrable on the finite ideles, and its integral is `κ` |
| 551 | times the Euler product `eulerProd (heckeCoeff ψ T) s` over the places outside `T`. Here |
| 552 | `|x| = finIdeleAbs x` is the module of `x`. -/ |
| 553 | lemma exists_level_tate_integral (h : IsHeckeOfType ψ n) : |
| 554 | ∃ (d : (𝔸f K)ˣ) (T : Finset (FinPlace K)) (κ : ℂ), κ ≠ 0 ∧ ∀ s : ℝ, 1 < s → |
| 555 | Integrable (fun x : (𝔸f K)ˣ ↦ |
| 556 | (adelicTent 1 d (1, x.val) : ℂ) * ψ x * (finIdeleAbs x ^ s : ℝ)) .haar ∧ |
| 557 | ∫ x : (𝔸f K)ˣ, (adelicTent 1 d (1, x.val) : ℂ) * ψ x * (finIdeleAbs x ^ s : ℝ) ∂.haar = |
| 558 | eulerProd (heckeCoeff ψ T) s * κ := by |
| 559 | classical |
| 560 | -- Elements of `1 + d⁻¹ Ô` are integral, and `ψ = 1` on the units among them. Apply |
| 561 | -- `tate_integral` with `T` the places where `d` is not integral. |
| 562 | obtain ⟨d, h_level⟩ := h.exists_level |
| 563 | have h_fin : {w : FinPlace K | ¬v (d.val w) ≤ 1}.Finite := |
| 564 | Filter.eventually_cofinite.mp (d.val.property.mono fun w hw ↦ |
| 565 | (HeightOneSpectrum.mem_adicCompletionIntegers (𝓞 K) K w).mp hw) |
| 566 | obtain ⟨T, hT⟩ : ∃ T : Finset (FinPlace K), ∀ w : FinPlace K, w ∈ T ↔ ¬v (d.val w) ≤ 1 := |
| 567 | h_fin.exists_finset |
| 568 | let f (x : (𝔸f K)ˣ) : ℂ := adelicTent 1 d (1, x.val) |
| 569 | have h_mem (x : 𝔸f K) : d.val * (x - 1) ∈ Ô K ↔ ∀ w, v (d.val w) * v (x w - 1) ≤ 1 := by |
| 570 | simp only [mem_Ô, FiniteAdeleRing.mul_apply, FiniteAdeleRing.sub_apply, |
| 571 | FiniteAdeleRing.one_apply, map_mul] |
| 572 | have h_supp (x : (𝔸f K)ˣ) (hx : f x ≠ 0) : |
| 573 | (∀ w : FinPlace K, w ∉ T → v (x.val w) ≤ 1) ∧ ∀ w : FinPlace K, w ∈ T → v (x.val w) = 1 := by |
| 574 | obtain ⟨_, hx_mem⟩ := (adelicTent_ne_zero_iff 1 d).mp (ofReal_ne_zero.mp hx) |
| 575 | refine ⟨fun w _ ↦ mem_Ô.mp (h_level x hx_mem).1 w, fun w hw ↦ ?_⟩ |
| 576 | -- At `w ∈ T`, `1 < v (d w)` and `v (d w) * v (x w - 1) ≤ 1` give `v (x w) = 1`. |
| 577 | have hd : 1 < v (d.val w) := not_le.mp ((hT w).mp hw) |
| 578 | exact Valuation.map_eq_one_of_one_lt_of_mul_map_sub_one_le Valued.v hd |
| 579 | ((h_mem x).mp hx_mem w) |
| 580 | -- On a unit `u` with `d (u - 1) ∈ Ô` the tent is `1` and `ψ u = 1` (`h_level`); else it is `0`. |
| 581 | have h_units : ∀ u : (𝔸f K)ˣ, u ∈ idelesUnitOff ∅ → |
| 582 | f u * ψ u = if u ∈ {y : (𝔸f K)ˣ | d * (y.val - 1) ∈ Ô K} then 1 else 0 := by |
| 583 | simp +contextual [f, h_level, apply_ite ofReal] |
| 584 | have h_local (x y : (𝔸f K)ˣ) (hx : x.val ∈ Ô K) (hy : y.val ∈ Ô K) |
| 585 | (h_eq : ∀ w : FinPlace K, w ∈ T → y.val w = x.val w) : f y = f x := by |
| 586 | -- Outside `T` the condition `v (d w) * v (x w - 1) ≤ 1` holds for every integral `x`. |
| 587 | have h_off {z : 𝔸f K} (hz : z ∈ Ô K) {w : FinPlace K} (hw : w ∉ T) : |
| 588 | v (d.val w) * v (z w - 1) ≤ 1 := |
| 589 | Valued.v.mul_map_sub_one_le_one_of_map_le_one (by simpa [hT] using hw) (mem_Ô.mp hz w) |
| 590 | have h_cond : d.val * (y.val - 1) ∈ Ô K ↔ d.val * (x.val - 1) ∈ Ô K := by |
| 591 | rw [h_mem, h_mem] |
| 592 | refine forall_congr' fun w ↦ ?_ |
| 593 | by_cases hw : w ∈ T |
| 594 | · rw [h_eq w hw] |
| 595 | · exact iff_of_true (h_off hy hw) (h_off hx hw) |
| 596 | simp [f, h_cond] |
| 597 | -- `κ` is the volume of the unit ideles in `1 + d⁻¹ Ô`. |
| 598 | obtain ⟨h_vol, h_tate⟩ := h.tate_integral T f {y | d * (y.val - 1) ∈ Ô K} .haar |
| 599 | isOpen_Ô.preimage_of_continuous (by simp) h_supp h_units h_local |
| 600 | exact ⟨d, T, _, ofReal_ne_zero.mpr h_vol, h_tate⟩ |
| 601 | |
| 602 | omit [PlaceEmbedding K] in |
| 603 | open Units ZetaIntegral in |
| 604 | /-- Unfolding. Let `X` be a character of the ideles `a = (t, x)` (`t` at infinity, `x` at the |
| 605 | finite places) that is trivial on the principal ideles, and suppose that `X a` times the tent |
| 606 | `adelicTent ρ d a` times `|a| ^ s` is `A t * B x`, with `A` and `B` integrable. Here |
| 607 | `|a| = ideleModule a` is the module of `a`. Translate by an idele `g` of module one. |
| 608 | Then `X g * X a` times the theta sum `∑' γ, adelicTent ρ d (γ * g * a)` over the principal ideles |
| 609 | `γ` times `|a| ^ s` is integrable on the idele classes (the quotient of the Haar measure), with |
| 610 | integral `(∫ A) * ∫ B`. -/ |
| 611 | lemma integral_tsum_adelicTent_eq_mul [DiscreteTopology (principalIdeles K)] |
| 612 | {X : (mixedSpace K)ˣ × (𝔸f K)ˣ →* ℂ} (hX_principal : ∀ γ : principalIdeles K, X γ = 1) |
| 613 | {ρ s : ℝ} {d : (𝔸f K)ˣ} {A : (mixedSpace K)ˣ → ℂ} {B : (𝔸f K)ˣ → ℂ} |
| 614 | (hA : Integrable A .haar) (hB : Integrable B .haar) |
| 615 | (h_split : ∀ a : (mixedSpace K)ˣ × (𝔸f K)ˣ, |
| 616 | A a.fst * B a.snd = X a * adelicTent ρ d (a.map val val) * (ideleModule a ^ s : ℝ)) |
| 617 | {g : (mixedSpace K)ˣ × (𝔸f K)ˣ} (hg : ideleModule g = 1) : |
| 618 | Integrable (fun a : (mixedSpace K)ˣ × (𝔸f K)ˣ ↦ X g * X a * |
| 619 | (∑' γ : principalIdeles K, adelicTent ρ d ((γ.val * (g * a)).map val val) : ℝ) * |
| 620 | (ideleModule a ^ s : ℝ)) ((principalIdeles K).quotMeasure (Measure.haar.prod .haar)) ∧ |
| 621 | ∫ a : (mixedSpace K)ˣ × (𝔸f K)ˣ, X g * X a * |
| 622 | (∑' γ : principalIdeles K, adelicTent ρ d ((γ.val * (g * a)).map val val) : ℝ) * |
| 623 | (ideleModule a ^ s : ℝ) ∂(principalIdeles K).quotMeasure (Measure.haar.prod .haar) = |
| 624 | (∫ t : (mixedSpace K)ˣ, A t ∂.haar) * ∫ x : (𝔸f K)ˣ, B x ∂.haar := by |
| 625 | -- Apply Weil's formula for the principal ideles to `a ↦ A t * B x` at `g * a`. |
| 626 | obtain ⟨h_weil_int, h_weil_eq⟩ := |
| 627 | integral_quotMeasure_tsum (principalIdeles K) ((hA.mul_prod hB).comp_mul_left g) |
| 628 | -- As `X γ = 1` and `|γ| = 1` for principal `γ` and `|g| = 1`, the integrand is the sum of |
| 629 | -- `A t * B x` over the translates `g * γ * a`. |
| 630 | have h_integrand (a : (mixedSpace K)ˣ × (𝔸f K)ˣ) : X g * X a * |
| 631 | (∑' γ : principalIdeles K, adelicTent ρ d ((γ.val * (g * a)).map val val) : ℝ) * |
| 632 | (ideleModule a ^ s : ℝ) = |
| 633 | ∑' γ : principalIdeles K, A (g * (γ.val * a)).fst * B (g * (γ.val * a)).snd := by |
| 634 | simp only [h_split, mul_left_comm g, map_mul X, map_mul ideleModule, hX_principal, hg, |
| 635 | ideleModule_principal_eq_one, one_mul, tsum_mul_left, tsum_mul_right, ← ofReal_tsum] |
| 636 | simp only [h_integrand] |
| 637 | refine ⟨h_weil_int, h_weil_eq.trans ?_⟩ |
| 638 | rw [integral_mul_left_eq_self (fun a ↦ A a.fst * B a.snd) g, integral_prod_mul] |
| 639 | |
| 640 | open scoped Classical in |
| 641 | omit [PlaceEmbedding K] in |
| 642 | open Units Real ZetaIntegral in |
| 643 | /-- The character-weighted tent integrand factors into its infinite and finite parts. -/ |
| 644 | private lemma mul_adelicTent_factor {X : (mixedSpace K)ˣ × (𝔸f K)ˣ →* ℂ} |
| 645 | (hX_split : ∀ (t : (mixedSpace K)ˣ) (x : (𝔸f K)ˣ), X (t, x) = X (t, 1) * ψ x) |
| 646 | {ρ s : ℝ} {d : (𝔸f K)ˣ} (a : (mixedSpace K)ˣ × (𝔸f K)ˣ) : |
| 647 | max (ρ - dist a.fst.val 1) 0 * X (a.fst, 1) * (ideleModule (a.fst, 1) ^ s : ℝ) * |
| 648 | ((adelicTent 1 d (1, a.snd.val) : ℂ) * ψ a.snd * (finIdeleAbs a.snd ^ s : ℝ)) = |
| 649 | X a * adelicTent ρ d (a.map val val) * (ideleModule a ^ s : ℝ) := by |
| 650 | by_cases ha : d * (a.snd.val - 1) ∈ Ô K |
| 651 | · -- Split the module of `a` into its two factors; the sides then differ only in the order. |
| 652 | simp [ha, hX_split a.fst a.snd, ideleModule, mul_rpow, finIdeleAbs] |
| 653 | ring |
| 654 | · simp [ha] |
| 655 | |
| 656 | /-- Finite integral of a difference, for a Mellin-type integrand. Let `N > 0` and suppose that |
| 657 | `|θ₁ a - θ₂ a| ≤ C * N a ^ δ * (|φ₁ a| + |φ₂ a|)` for all `a`, and that `u * φ₁ * N ^ (σ + δ)` and |
| 658 | `u * φ₂ * N ^ (σ + δ)` are integrable. Then `u * (θ₁ - θ₂) * N ^ σ` has finite integral. -/ |
| 659 | private theorem _root_.MeasureTheory.hasFiniteIntegral_mul_sub_mul_rpow_of_abs_sub_le |
| 660 | {G : Type*} [MeasurableSpace G] {μ : Measure G} {N : G → ℝ} (hN_pos : ∀ a : G, 0 < N a) |
| 661 | {u : G → ℂ} {θ₁ θ₂ φ₁ φ₂ : G → ℝ} {C δ σ : ℝ} |
| 662 | (h₁ : Integrable (fun a : G ↦ u a * φ₁ a * (N a ^ (σ + δ) : ℝ)) μ) |
| 663 | (h₂ : Integrable (fun a : G ↦ u a * φ₂ a * (N a ^ (σ + δ) : ℝ)) μ) |
| 664 | (h_le : ∀ a : G, |θ₁ a - θ₂ a| ≤ C * N a ^ δ * (|φ₁ a| + |φ₂ a|)) : |
| 665 | HasFiniteIntegral (fun a : G ↦ u a * ((θ₁ a : ℂ) - θ₂ a) * (N a ^ σ : ℝ)) μ := by |
| 666 | refine ((h₁.norm.add h₂.norm).const_mul C).hasFiniteIntegral.mono' (.of_forall fun a ↦ ?_) |
| 667 | have h_norm (x τ : ℝ) : ‖u a * x * (N a ^ τ : ℝ)‖ = ‖u a‖ * |x| * N a ^ τ := by |
| 668 | simp [abs_of_pos (Real.rpow_pos_of_pos (hN_pos a) τ)] |
| 669 | calc ‖u a * ((θ₁ a : ℂ) - θ₂ a) * (N a ^ σ : ℝ)‖ |
| 670 | = ‖u a‖ * |θ₁ a - θ₂ a| * N a ^ σ := by rw [← Complex.ofReal_sub, h_norm] |
| 671 | _ ≤ ‖u a‖ * (C * N a ^ δ * (|φ₁ a| + |φ₂ a|)) * N a ^ σ := by |
| 672 | gcongr |
| 673 | exacts [Real.rpow_nonneg (hN_pos a).le σ, h_le a] |
| 674 | _ = C * (‖u a * φ₁ a * (N a ^ (σ + δ) : ℝ)‖ + ‖u a * φ₂ a * (N a ^ (σ + δ) : ℝ)‖) := by |
| 675 | rw [h_norm, h_norm, Real.rpow_add (hN_pos a)] |
| 676 | ring |
| 677 | |
| 678 | /-- Comparison through a common approximation. Suppose that for every `l > 0` some number `i` is |
| 679 | within `C * l ^ δ * |φ b|` of `θ b` for all `b` with `N b = l`. If `0 < N a` and `N b = N a`, then |
| 680 | `|θ a - θ b| ≤ C * N a ^ δ * (|φ a| + |φ b|)`. -/ |
| 681 | private theorem _root_.abs_sub_le_mul_rpow_of_forall_exists_abs_sub_le {G : Type*} |
| 682 | {N θ φ : G → ℝ} {C δ : ℝ} |
| 683 | (h_approx : ∀ l > (0 : ℝ), ∃ i : ℝ, ∀ b : G, N b = l → |i - θ b| ≤ C * l ^ δ * |φ b|) |
| 684 | {a b : G} (ha_pos : 0 < N a) (h_eq : N b = N a) : |
| 685 | |θ a - θ b| ≤ C * N a ^ δ * (|φ a| + |φ b|) := by |
| 686 | obtain ⟨i, hi⟩ := h_approx (N a) ha_pos |
| 687 | exact (dist_triangle_left (θ a) (θ b) i).trans |
| 688 | ((add_le_add (hi a rfl) (hi b h_eq)).trans_eq (mul_add _ _ _).symm) |
| 689 | |
| 690 | open scoped Classical in |
| 691 | omit [PlaceEmbedding K] in |
| 692 | open Units Real ZetaIntegral in |
| 693 | /-- Given an idele character `X` trivial on principal ideles splitting as |
| 694 | `X (t, x) = X (t, 1) * ψ x`, an idele `c` of module one, a tent radius `r ∈ (0, 1)` for which the |
| 695 | infinite tent integrand is integrable, and a finite-place Tate integral formula `h_tate` at level |
| 696 | `d` outside `T` with factor `κ`, the Mellin integral `F` of the difference between the theta sums |
| 697 | at `a` and `c * a` is analytic at `1` and equals |
| 698 | `(X c - 1) * κ * (∫ t, max (r / 3 - dist t.val 1) 0 * X (t, 1) * |t| ^ s) * eulerProd` for |
| 699 | `s > 1`. -/ |
| 700 | private lemma exists_analyticAt_one_thetaDiff |
| 701 | {X : (mixedSpace K)ˣ × (𝔸f K)ˣ →* ℂ} |
| 702 | (hX_principal : ∀ γ : principalIdeles K, X γ = 1) |
| 703 | (hX_split : ∀ (t : (mixedSpace K)ˣ) (x : (𝔸f K)ˣ), X (t, x) = X (t, 1) * ψ x) |
| 704 | {c : (mixedSpace K)ˣ × (𝔸f K)ˣ} (hc_mod : ideleModule c = 1) |
| 705 | {r : ℝ} (hr : 0 < r) (hr_one : r < 1) (h_third : r / 3 ≤ r) |
| 706 | (h_tent_int : ∀ ρ ≤ r, ∀ s : ℝ, Integrable (fun t : (mixedSpace K)ˣ ↦ |
| 707 | max (ρ - dist t.val 1) 0 * X (t, 1) * (ideleModule (t, 1) ^ s : ℝ)) .haar) |
| 708 | {d : (𝔸f K)ˣ} {T : Finset (FinPlace K)} {κ : ℂ} |
| 709 | (h_tate : ∀ s : ℝ, 1 < s → |
| 710 | Integrable (fun x : (𝔸f K)ˣ ↦ |
| 711 | (adelicTent 1 d (1, x.val) : ℂ) * ψ x * (finIdeleAbs x ^ s : ℝ)) .haar ∧ |
| 712 | ∫ x : (𝔸f K)ˣ, (adelicTent 1 d (1, x.val) : ℂ) * ψ x * (finIdeleAbs x ^ s : ℝ) ∂.haar = |
| 713 | eulerProd (heckeCoeff ψ T) s * κ) : |
| 714 | ∃ F : ℝ → ℂ, AnalyticAt ℝ F 1 ∧ |
| 715 | ∀ s : ℝ, 1 < s → F s = (X c - 1) * κ * |
| 716 | (∫ t : (mixedSpace K)ˣ, |
| 717 | max (r / 3 - dist t.val 1) 0 * X (t, 1) * (ideleModule (t, 1) ^ s : ℝ) ∂.haar) * |
| 718 | eulerProd (heckeCoeff ψ T) s := by |
| 719 | let A (ρ s : ℝ) (t : (mixedSpace K)ˣ) : ℂ := |
| 720 | max (ρ - dist t.val 1) 0 * X (t, 1) * (ideleModule (t, 1) ^ s : ℝ) |
| 721 | -- The theta sum of radius `r / 3` at an idele of module `l` is a number `i` depending only on |
| 722 | -- `l`, up to an error of `C * l ^ δ` times the theta sum of radius `r`. |
| 723 | let Θ (ρ : ℝ) (a : (mixedSpace K)ˣ × (𝔸f K)ˣ) : ℝ := |
| 724 | ∑' γ : principalIdeles K, adelicTent ρ d ((γ.val * a).map val val) |
| 725 | obtain ⟨h_discrete, δ, hδ, C, h_approx⟩ : DiscreteTopology (principalIdeles K) ∧ |
| 726 | ∃ δ > (0 : ℝ), ∃ C : ℝ, ∀ l > (0 : ℝ), ∃ i : ℝ, |
| 727 | ∀ a, ideleModule a = l → |i - Θ (r / 3) a| ≤ C * l ^ δ * |Θ r a| := |
| 728 | exists_abs_sub_thetaSum_le r d hr hr_one |
| 729 | -- As `a` and `c * a` have the same module, the main terms cancel in the difference. |
| 730 | have h_diff (a : (mixedSpace K)ˣ × (𝔸f K)ˣ) : |Θ (r / 3) a - Θ (r / 3) (c * a)| ≤ |
| 731 | C * ideleModule a ^ δ * (|Θ r a| + |Θ r (c * a)|) := |
| 732 | abs_sub_le_mul_rpow_of_forall_exists_abs_sub_le h_approx (ideleModule_pos a) (by simp [hc_mod]) |
| 733 | -- Unfolding: the integral of `X Θ ideleModule ^ s` over the idele classes, also after a |
| 734 | -- translation by an idele `g` of module one, is the product of the infinite and the finite part. |
| 735 | let μ : Measure ((mixedSpace K)ˣ × (𝔸f K)ˣ) := |
| 736 | (principalIdeles K).quotMeasure (Measure.haar.prod .haar) |
| 737 | have h_unfold {ρ : ℝ} (hρ : ρ ≤ r) {g : (mixedSpace K)ˣ × (𝔸f K)ˣ} (hg : ideleModule g = 1) |
| 738 | {s : ℝ} (hs : 1 < s) : |
| 739 | Integrable (fun a ↦ X g * X a * Θ ρ (g * a) * (ideleModule a ^ s : ℝ)) μ ∧ |
| 740 | ∫ a, X g * X a * Θ ρ (g * a) * (ideleModule a ^ s : ℝ) ∂μ = |
| 741 | (∫ t, A ρ s t ∂.haar) * (eulerProd (heckeCoeff ψ T) s * κ) := by |
| 742 | obtain ⟨hB_int, hB_eq⟩ := h_tate s hs |
| 743 | rw [← hB_eq] |
| 744 | exact integral_tsum_adelicTent_eq_mul hX_principal (h_tent_int ρ hρ s) hB_int |
| 745 | (mul_adelicTent_factor hX_split) hg |
| 746 | have h_one {ρ : ℝ} (hρ : ρ ≤ r) {s : ℝ} (hs : 1 < s) : |
| 747 | Integrable (fun a ↦ X a * Θ ρ a * (ideleModule a ^ s : ℝ)) μ ∧ |
| 748 | ∫ a, X a * Θ ρ a * (ideleModule a ^ s : ℝ) ∂μ = |
| 749 | (∫ t, A ρ s t ∂.haar) * (eulerProd (heckeCoeff ψ T) s * κ) := by |
| 750 | simpa only [map_one, one_mul] using h_unfold hρ (map_one ideleModule) hs |
| 751 | -- Compare the translates by `1` and `c`: the difference `D` has integral `(X c - 1)` times the |
| 752 | -- product above. |
| 753 | let D (s : ℝ) (a : (mixedSpace K)ˣ × (𝔸f K)ˣ) : ℂ := |
| 754 | X c * X a * (Θ (r / 3) a - Θ (r / 3) (c * a)) * (ideleModule a ^ s : ℝ) |
| 755 | have hD {s : ℝ} (hs : 1 < s) : Integrable (D s) μ ∧ ∫ a, D s a ∂μ = |
| 756 | (X c - 1) * κ * (∫ t, A (r / 3) s t ∂.haar) * eulerProd (heckeCoeff ψ T) s := by |
| 757 | obtain ⟨h_int_one, h_val_one⟩ := h_one h_third hs |
| 758 | obtain ⟨h_int_c, h_val_c⟩ := h_unfold h_third hc_mod hs |
| 759 | have h_eq : D s = fun a ↦ X c * (X a * Θ (r / 3) a * (ideleModule a ^ s : ℝ)) - |
| 760 | X c * X a * Θ (r / 3) (c * a) * (ideleModule a ^ s : ℝ) := |
| 761 | funext fun a ↦ by ring |
| 762 | rw [h_eq, integral_sub (h_int_one.const_mul _) h_int_c, integral_const_mul, h_val_one, h_val_c] |
| 763 | exact ⟨(h_int_one.const_mul _).sub h_int_c, by ring⟩ |
| 764 | -- Thanks to the gain `ideleModule a ^ δ` in `h_diff`, the integral of `D σ` converges for some |
| 765 | -- `σ < 1`. |
| 766 | obtain ⟨σ, hσ, hσ_one⟩ : ∃ σ : ℝ, 1 - δ < σ ∧ σ < 1 := exists_between (sub_lt_self 1 hδ) |
| 767 | have hD_fin : HasFiniteIntegral (D σ) μ := by |
| 768 | have hs : 1 < σ + δ := by linarith |
| 769 | refine hasFiniteIntegral_mul_sub_mul_rpow_of_abs_sub_le (u := fun a ↦ X c * X a) |
| 770 | ideleModule_pos ?_ (h_unfold le_rfl hc_mod hs).1 h_diff |
| 771 | simpa only [mul_assoc] using (h_one le_rfl hs).1.const_mul (X c) |
| 772 | -- A Mellin integral that converges at two points is analytic between them. |
| 773 | have hD_an : AnalyticAt ℝ (fun s ↦ ∫ a, D s a ∂μ) 1 := by |
| 774 | obtain ⟨-, -, h_an⟩ := |
| 775 | analyticOnNhd_integral_mul_rpow ideleModule_pos (by fun_prop) hD_fin (hD one_lt_two).1 |
| 776 | exact h_an 1 ⟨hσ_one, one_lt_two⟩ |
| 777 | exact ⟨fun s ↦ ∫ a, D s a ∂μ, hD_an, fun s hs ↦ (hD hs).2⟩ |
| 778 | |
| 779 | open Units Real ZetaIntegral in |
| 780 | /-- Let `ψ ≠ 1` be the finite part of a Hecke character of type `n` (`IsHeckeOfType ψ n`). There |
| 781 | are a finite set `T` of finite places and functions `F G : ℝ → ℂ`, both analytic at `1`, with |
| 782 | `G 1 ≠ 0` and `F s = G s * eulerProd (heckeCoeff ψ T) s` for real `s > 1`, where |
| 783 | `eulerProd (heckeCoeff ψ T)` is the Euler product of `ψ` over the places outside `T`. -/ |
| 784 | lemma exists_analyticAt_one_mul_eulerProd (h : IsHeckeOfType ψ n) (hψ_ne : ψ ≠ 1) : |
| 785 | ∃ (T : Finset (FinPlace K)) (F G : ℝ → ℂ), AnalyticAt ℝ F 1 ∧ AnalyticAt ℝ G 1 ∧ G 1 ≠ 0 ∧ |
| 786 | ∀ s : ℝ, 1 < s → F s = G s * eulerProd (heckeCoeff ψ T) s := by |
| 787 | classical |
| 788 | -- Unfold the zeta integral over the idele classes into an integral of a theta sum. The |
| 789 | -- difference of two translates converges a little to the left of `1`, so is analytic at `1`. |
| 790 | -- We translate by an idele `c` of module one with `X c ≠ 1`, for `X` the idele character. |
| 791 | obtain ⟨X, hX_principal, hX_split, hX_cont, c, hc_mod, hc⟩ := h.exists_idele_character hψ_ne |
| 792 | -- The integrand `A` at infinity, for a tent of radius `ρ` at `1`. |
| 793 | let A (ρ s : ℝ) (t : (mixedSpace K)ˣ) : ℂ := |
| 794 | max (ρ - dist t.val 1) 0 * X (t, 1) * (ideleModule (t, 1) ^ s : ℝ) |
| 795 | obtain ⟨r, hr, hr_one, h_tent⟩ : ∃ r : ℝ, 0 < r ∧ r < 1 ∧ ∀ ρ ≤ r, |
| 796 | (∀ s : ℝ, Integrable (A ρ s) .haar) ∧ (0 < ρ → ∫ t, A ρ 1 t ∂.haar ≠ 0) := |
| 797 | exists_radius_tent_integral_ne_zero hX_cont (map_one X) |
| 798 | have h_third : r / 3 ≤ r := div_le_self hr.le (by norm_num) |
| 799 | obtain ⟨hA_int, hA_ne⟩ := h_tent (r / 3) h_third |
| 800 | -- The integral at the finite places is the Euler product outside `T` times `κ ≠ 0`. |
| 801 | obtain ⟨d, T, κ, hκ, h_tate⟩ := h.exists_level_tate_integral |
| 802 | obtain ⟨F, hF_an, hF_eq⟩ := exists_analyticAt_one_thetaDiff hX_principal hX_split hc_mod hr |
| 803 | hr_one h_third (fun ρ hρ ↦ (h_tent ρ hρ).1) h_tate |
| 804 | have hA_an : AnalyticAt ℝ (fun s ↦ ∫ t, A (r / 3) s t ∂.haar) 1 := by |
| 805 | obtain ⟨-, -, h_an⟩ := analyticOnNhd_integral_mul_rpow (fun t ↦ ideleModule_pos (t, 1)) |
| 806 | (by fun_prop) (hA_int 0).hasFiniteIntegral (hA_int 2) |
| 807 | exact h_an 1 ⟨one_pos, one_lt_two⟩ |
| 808 | -- Take for `F` the difference integral and for `G` its factor in front of the Euler product. |
| 809 | refine ⟨T, F, fun s ↦ (X c - 1) * κ * ∫ t, A (r / 3) s t ∂.haar, hF_an, |
| 810 | analyticAt_const.fun_mul hA_an, ?_, hF_eq⟩ |
| 811 | have h_const_ne : (X c - 1) * κ ≠ 0 := mul_ne_zero (sub_ne_zero.mpr hc) hκ |
| 812 | exact mul_ne_zero h_const_ne (hA_ne (by positivity)) |
| 813 | |
| 814 | /-- Hecke's theorem at `s = 1`: let `ψ ≠ 1` be the finite part of a Hecke character of type `n` |
| 815 | (`IsHeckeOfType ψ n`) and `S` a finite set of finite places. Some function `F` of a real variable, |
| 816 | analytic at `1`, agrees with the partial `L`-function `eulerProd (heckeCoeff ψ S)` at all real |
| 817 | `s > 1` near `1`. -/ |
| 818 | lemma exists_analyticAt_one_eulerProd (h : IsHeckeOfType ψ n) (hS : S.Finite) (hψ_ne : ψ ≠ 1) : |
| 819 | ∃ F : ℝ → ℂ, AnalyticAt ℝ F 1 ∧ |
| 820 | ∀ᶠ s : ℝ in nhds 1, 1 < s → F s = eulerProd (heckeCoeff ψ S) s := by |
| 821 | obtain ⟨S, rfl⟩ := hS.exists_finset_coe |
| 822 | obtain ⟨T, F, G, hF, hG, hG_ne, h_eq⟩ := h.exists_analyticAt_one_mul_eulerProd hψ_ne |
| 823 | -- Exchange the Euler factors at `T` for those at `S` and divide. With `P Q s` the product of |
| 824 | -- `1 - ψ(ϖ_w) q_w ^ (-s)` over `w ∈ Q` (analytic and nonzero at `1` by `eulerProd_erase`), the |
| 825 | -- function is `F s * P S s / (G s * P T s)`. |
| 826 | let P (Q : Finset (FinPlace K)) (s : ℂ) : ℂ := |
| 827 | ∏ w ∈ Q, (1 - ψ (locIdele w (uniformizer w)) * w.q ^ (-s)) |
| 828 | choose hP_an hP_ne hP using |
| 829 | eulerProd_erase fun w ↦ (h.norm_eq_one (locIdele w (uniformizer w))).le |
| 830 | have h_den_an : AnalyticAt ℝ (fun s : ℝ ↦ G s * P T s) 1 := hG.fun_mul (hP_an T) |
| 831 | have h_den_ne : G 1 * P T (1 : ℝ) ≠ 0 := mul_ne_zero hG_ne (hP_ne T) |
| 832 | refine ⟨fun s ↦ F s * P S s / (G s * P T s), |
| 833 | (hF.fun_mul (hP_an S)).fun_div h_den_an h_den_ne, ?_⟩ |
| 834 | filter_upwards [h_den_an.continuousAt.eventually_ne h_den_ne] with s h_den hs |
| 835 | refine div_eq_of_eq_mul h_den ?_ |
| 836 | rw [h_eq s hs, heckeCoeff, heckeCoeff, hP T s hs, hP S s hs] |
| 837 | ring |
| 838 | |
| 839 | /-- Let `ψ ≠ 1` be the finite part of a Hecke character of type `n` (`IsHeckeOfType ψ n`: `ψ` has |
| 840 | open kernel and `ψ x * ∏ w, (Φ w x / ‖Φ w x‖) ^ n w = 1` for `x ∈ Kˣ`), and let `S` be a finite set |
| 841 | of finite places. The partial `L`-function `eulerProd (heckeCoeff ψ S)` is the Euler product |
| 842 | `∏ (1 - ψ(ϖ_v) * q_v ^ (-s))⁻¹` over `v ∉ S`, with `ϖ_v = uniformizer v`; its value at each `s ≥ 1` |
| 843 | is the limit of the product as `s' → s` with `s' > 1`. This function is continuous on `s ≥ 1`. -/ |
| 844 | lemma continuousOn_eulerProd (h : IsHeckeOfType ψ n) (hS : S.Finite) (hψ_ne : ψ ≠ 1) : |
| 845 | ContinuousOn (eulerProd (heckeCoeff ψ S)) (Set.Ici 1) := by |
| 846 | -- `eulerProd` is the extension by continuity of `E`, which has a limit at every `s ≥ 1`: at |
| 847 | -- `s = 1` because it agrees, to the right of `1`, with a function `F` analytic at `1`. |
| 848 | obtain ⟨F, hF, hF_eq⟩ := h.exists_analyticAt_one_eulerProd hS hψ_ne |
| 849 | let E (s : ℝ) : ℂ := exp (-∑' v : FinPlace K, log (1 + -(heckeCoeff ψ S v * v.q ^ (-s : ℂ)))) |
| 850 | have hE_eq {s : ℝ} (hs : 1 < s) : eulerProd (heckeCoeff ψ S) s = E s := |
| 851 | (eulerProd_eq_exp h.norm_heckeCoeff_le hs).1 |
| 852 | have hE_cont {s : ℝ} (hs : 1 < s) : ContinuousAt E s := by |
| 853 | obtain ⟨-, -, h_log⟩ := eulerProd_eq_exp (h.norm_heckeCoeff_le (S := S)) hs |
| 854 | exact h_log.cexp |
| 855 | have hE_lim : Filter.Tendsto E (nhdsWithin 1 (Set.Ioi 1)) (nhds (F 1)) := by |
| 856 | refine hF.continuousAt.continuousWithinAt.congr' (eventually_nhdsWithin_iff.mpr ?_) |
| 857 | filter_upwards [hF_eq] with s h_eq hs |
| 858 | rw [h_eq hs, hE_eq hs] |
| 859 | refine continuousOn_extendFrom (by simp) fun s hs ↦ ?_ |
| 860 | obtain rfl | hs := (Set.mem_Ici.mp hs).eq_or_lt |
| 861 | · exact ⟨F 1, hE_lim⟩ |
| 862 | · exact ⟨E s, (hE_cont hs).continuousWithinAt⟩ |
| 863 | |
| 864 | /-- Let `ψ ≠ 1` be the finite part of a Hecke character of type `n` (`IsHeckeOfType ψ n`), and let |
| 865 | `S` be a finite set of finite places. For some natural number `m`, the coefficients `heckeCoeff ψ S` |
| 866 | (the values of `ψ` at uniformisers) have mean `-m` over the primes of degree one outside `S` |
| 867 | (`HasPrimeDensity`: for `s → 1⁺`, `∑ heckeCoeff ψ S v * q ^ (-s) = -m * log (1 / (s - 1)) + O(1)`). |
| 868 | If `m = 0`, the partial `L`-function `eulerProd (heckeCoeff ψ S)` has no zero on real `s ≥ 1`, where |
| 869 | its value at `s = 1` is the limit of the Euler product as `s → 1⁺`. In the proof, `m` is the order |
| 870 | of vanishing at `1` of a function analytic at `1` that agrees with the `L`-function for `s > 1` near |
| 871 | `1`. -/ |
| 872 | lemma exists_hasPrimeDensity_neg_natCast (h : IsHeckeOfType ψ n) (hS : S.Finite) (hψ_ne : ψ ≠ 1) : |
| 873 | ∃ m : ℕ, (m = 0 → ∀ s : ℝ, 1 ≤ s → eulerProd (heckeCoeff ψ S) s ≠ 0) ∧ |
| 874 | HasPrimeDensity (heckeCoeff ψ S) (-m) := by |
| 875 | -- By Hecke's theorem the `L`-function agrees, to the right of `1`, with a function `F` analytic |
| 876 | -- at `1`. Write `F s = (s - 1) ^ m * f s` with `f 1 ≠ 0`. |
| 877 | obtain ⟨F, hF, hF_eq⟩ := h.exists_analyticAt_one_eulerProd hS hψ_ne |
| 878 | -- For `s > 1` the Euler product is an exponential, so `F` does not vanish identically near `1`. |
| 879 | have h_ne_zero {s : ℝ} (hs : 1 < s) : eulerProd (heckeCoeff ψ S) s ≠ 0 := by |
| 880 | rw [(eulerProd_eq_exp h.norm_heckeCoeff_le hs).1] |
| 881 | exact exp_ne_zero _ |
| 882 | have hF_ne : ¬∀ᶠ s in nhds 1, F s = 0 := by |
| 883 | intro h_zero |
| 884 | obtain ⟨s, hs, h_eq, hs_zero⟩ := |
| 885 | ((frequently_gt_nhds (1 : ℝ)).and_eventually (hF_eq.and h_zero)).exists |
| 886 | exact h_ne_zero hs ((h_eq hs).symm.trans hs_zero) |
| 887 | obtain ⟨m, f, hf, hf_ne, hF_fac⟩ : ∃ (m : ℕ) (f : ℝ → ℂ), AnalyticAt ℝ f 1 ∧ f 1 ≠ 0 ∧ |
| 888 | ∀ᶠ s : ℝ in nhds 1, F s = (s - 1) ^ m • f s := |
| 889 | hF.exists_eventuallyEq_pow_smul_ne_zero_iff.mpr hF_ne |
| 890 | -- The mean is `-m` once `(s - 1) ^ (-m)` times the `L`-function has a nonzero limit at `1⁺`. |
| 891 | refine ⟨m, ?_, hasPrimeDensity_of_tendsto h.norm_heckeCoeff_le hf_ne ?_⟩ |
| 892 | · rintro rfl s hs |
| 893 | obtain rfl | hs := hs.eq_or_lt |
| 894 | · -- The `L`-function and `F` are continuous at `1` from the right, so agree at `1`. |
| 895 | have h_one : F 1 = eulerProd (heckeCoeff ψ S) 1 := |
| 896 | tendsto_nhds_unique_of_eventuallyEq hF.continuousAt.continuousWithinAt |
| 897 | ((h.continuousOn_eulerProd hS hψ_ne 1 Set.self_mem_Ici).mono Set.Ioi_subset_Ici_self) |
| 898 | (eventually_nhdsWithin_iff.mpr hF_eq) |
| 899 | have hF_one : F 1 = f 1 := by simpa using hF_fac.self_of_nhds |
| 900 | rwa [← h_one, hF_one] |
| 901 | · exact h_ne_zero hs |
| 902 | · -- Just to the right of `1` that product is `f`. |
| 903 | refine hf.continuousAt.continuousWithinAt.congr' (eventually_nhdsWithin_iff.mpr ?_) |
| 904 | filter_upwards [hF_eq, hF_fac] with s h_eq h_fac hs |
| 905 | have hs_ne : (s : ℂ) - 1 ≠ 0 := mod_cast sub_ne_zero.mpr (Set.mem_Ioi.mp hs).ne' |
| 906 | rw [← h_eq hs, h_fac] |
| 907 | simp [cpow_neg, hs_ne] |
| 908 | |
| 909 | /-- Let `ψ` be the finite part of a Hecke character of type `n` (`IsHeckeOfType ψ n`) with |
| 910 | `ψ ^ 2 ≠ 1`, and let `S` be a finite set of finite places. The partial `L`-function |
| 911 | `eulerProd (heckeCoeff ψ S)` has no zero at real `s ≥ 1`, where its value at `s = 1` is the limit of |
| 912 | the Euler product as `s → 1⁺`. |
| 913 | |
| 914 | A special case of the non-vanishing of Hecke L-functions. Only real s is covered, and ψ² ≠ 1 is |
| 915 | assumed even for s > 1. -/ |
| 916 | lemma eulerProd_ne_zero (h : IsHeckeOfType ψ n) (hS : S.Finite) (hψ_sq : ψ ^ 2 ≠ 1) {s : ℝ} |
| 917 | (hs : 1 ≤ s) : eulerProd (heckeCoeff ψ S) s ≠ 0 := by |
| 918 | -- Let `-m₁` and `-m₂` be the means of `ψ` and `ψ ^ 2` over the primes of degree one. The |
| 919 | -- inequality `3 + 4 cos θ + cos 2θ ≥ 0` gives `4 * m₁ + m₂ ≤ 3`, so `m₁ = 0`. |
| 920 | have hψ_ne : ψ ≠ 1 := fun h_one ↦ hψ_sq (by rw [h_one, one_pow]) |
| 921 | obtain ⟨m₁, h_nonvanishing, h_dens₁⟩ := h.exists_hasPrimeDensity_neg_natCast hS hψ_ne |
| 922 | obtain ⟨m₂, -, h_dens₂⟩ := (h.pow 2).exists_hasPrimeDensity_neg_natCast hS hψ_sq |
| 923 | -- The two densities, as a family indexed by `Fin 2` for `HasPrimeDensity.sum`. |
| 924 | let a : Fin 2 → FinPlace K → ℂ := ![heckeCoeff ψ S, heckeCoeff (ψ ^ 2) S] |
| 925 | have h_dens : ∀ i : Fin 2, HasPrimeDensity (a i) (![-(m₁ : ℂ), -(m₂ : ℂ)] i) := by |
| 926 | simpa [a, Fin.forall_fin_two] using ⟨h_dens₁, h_dens₂⟩ |
| 927 | have h_re_sum_ge (v : FinPlace K) (hv : v ∉ S) : |
| 928 | (-3 : ℂ).re ≤ (∑ i : Fin 2, ![4, 1] i * a i v).re := by |
| 929 | -- With `z = x + i y` of norm one, `3 + 4 x + (x ^ 2 - y ^ 2) = 2 * (x + 1) ^ 2`. |
| 930 | let z : ℂ := ψ (locIdele v (uniformizer v)) |
| 931 | have h_unit : 1 ^ 2 - z.re ^ 2 = z.im ^ 2 := by rw [← sq_norm_sub_sq_re, h.norm_eq_one] |
| 932 | have h_sum_re : (∑ i : Fin 2, ![4, 1] i * a i v).re = 4 * z.re + (z.re ^ 2 - z.im ^ 2) := by |
| 933 | simp [a, sq, heckeCoeff, hv, z] |
| 934 | rw [h_sum_re, show (-3 : ℂ).re = -3 by norm_num] |
| 935 | linarith [sq_nonneg (z.re + 1)] |
| 936 | -- An inequality at almost all primes passes to the means. |
| 937 | have h_mean_re : (-3 : ℂ).re ≤ (∑ i : Fin 2, ![4, 1] i * ![-(m₁ : ℂ), -(m₂ : ℂ)] i).re := |
| 938 | (hasPrimeDensity_const (-3)).re_le_re (.sum ![4, 1] h_dens) |
| 939 | (.mono hS.compl_mem_cofinite fun v hv _ ↦ h_re_sum_ge v hv) |
| 940 | have h_mean : (m₂ + 4 * m₁ : ℝ) ≤ 3 := by simpa using h_mean_re |
| 941 | norm_cast at h_mean |
| 942 | exact h_nonvanishing (by lia) s hs |
| 943 | |
| 944 | end IsHeckeOfType |
| 945 | |
| 946 | end New |
| 947 | |
| 948 | end HeckeContinuation |
| 949 | |
| 950 | end |