module import Mathlib.Algebra.Order.Star.Int import Mathlib.Algebra.Order.Star.Real import Mathlib.NumberTheory.LSeries.Nonvanishing import TauCeti.NumberTheory.DirichletCharacter.LFunction.Bounds public import Lib.Analytic.PrimeNumberTheorem.LFunctionGrowth import Lib.Analytic.EntireLFunction /-! # A zero-free region for Dirichlet L-functions For a Dirichlet character `χ` and large `l`, the function `L(s, χ)` has no zero with `re s ≥ 1 - l⁻²⁵` and `|s| ≤ e^l`, and its logarithmic derivative, with the pole removed, is at most `2 l²⁵` there. The inequality `|L(σ, 1)³ L(σ + i t, χ)⁴ L(σ + 2 i t, χ²)| ≥ 1` bounds `L` from below to the right of `re s = 1`, and the bound for the derivative carries this across the line. If `χ²` is principal, the points near `1` are treated by `𝖿_χ(1) ≠ 0` and continuity; so how large `l` must be depends on `χ`. Notions from other files: * `entireL χ`: the entire function `L(s, χ)`, or `(s - 1) L(s, χ)` if `χ` is principal; * `regularL χ`, written `𝖿_χ` in comments: `entireL χ`, divided by `s` if `χ` is principal. ## Relation to the literature Known result: the classical zero-free region, in the crude form with a power of the logarithm that the 3-4-1 inequality gives directly. Source: Montgomery and Vaughan, Multiplicative Number Theory I, 2007, ch. 11. -/ @[expose] public section open Complex Real Filter Topology Metric namespace New variable {N : ℕ} [NeZero N] /-- For all sufficiently small real `r`, the regularized L-function `regularL χ` (`L(s, χ)`, times `(s - 1) / s` if `χ` is principal) has absolute value at least `r` within distance `r` of `1`. -/ lemma eventually_le_norm_regularL (χ : DirichletCharacter ℂ N) : ∀ᶠ r : ℝ in 𝓝 0, ∀ s : ℂ, ‖s - 1‖ ≤ r → r ≤ ‖regularL χ s‖ := by have h_pos : 0 < ‖regularL χ 1‖ := by simp [regularL, entireL_ne_zero χ (s := 1) le_rfl] have h_near : ∀ᶠ s : ℂ in 𝓝 1, ‖regularL χ 1‖ / 2 ≤ ‖regularL χ s‖ := (differentiableAt_regularL χ one_pos).continuousAt.norm.eventually_const_le (half_lt_self h_pos) filter_upwards [eventually_le_nhds (half_pos h_pos), eventually_closedBall_subset h_near] with r hr h_ball s hs using hr.trans (h_ball (mem_closedBall_iff_norm.2 hs)) /-- A lower bound from the 3-4-1 inequality. Let `l ≥ 10¹⁰`, `N ≤ e^l` and `0 < η ≤ 1`, and write `𝖿_χ` for `regularL χ`, that is `L(s, χ)`, times `(s - 1) / s` if `χ` is principal. Then `η³ ≤ 256 l⁷ |𝖿_χ(s)|⁴` for `re s ≥ 1 + η` and `|s| ≤ 3 e^l / 2`, if `χ²` is not principal or `|s - 1| ≥ 1 / l`. -/ lemma pow_three_le_mul_norm_regularL_pow (χ : DirichletCharacter ℂ N) {s : ℂ} {l : ℝ} (hl : 10 ^ 10 ≤ l) (hN : N ≤ rexp l) {η : ℝ} (hη : 0 < η) (hη_le : η ≤ 1) (h_far : χ ^ 2 = 1 → 1 / l ≤ ‖s - 1‖) (h_re : 1 + η ≤ s.re) (h_norm : ‖s‖ ≤ 3 / 2 * rexp l) : η ^ 3 ≤ 256 * l ^ 7 * ‖regularL χ s‖ ^ 4 := by have hl_one : 1 ≤ l := by linarith -- the three points are `re s`, `s` and `s₂ = re s + 2 i im s` let s₂ : ℂ := s + s.im * I have re_s₂ : s₂.re = s.re := by simp [s₂] have norm_s₂ : ‖s₂‖ ≤ 3 * rexp l := by have h_im : ‖s.im * I‖ ≤ ‖s‖ := by simpa using abs_im_le_norm s linarith [norm_add_le s (s.im * I)] have dist_s₂ : ‖s - 1‖ ≤ ‖s₂ - 1‖ := by have h_sq : ‖s₂ - 1‖ ^ 2 = ‖s - 1‖ ^ 2 + 3 * s.im ^ 2 := by have im_s₂ : s₂.im = 2 * s.im := by simp [s₂, two_mul] simp only [Complex.sq_norm, normSq_apply, sub_re, sub_im, re_s₂, im_s₂, one_im] ring exact (sq_le_sq₀ (norm_nonneg _) (norm_nonneg _)).1 (by linarith [sq_nonneg s.im]) have product : 1 ≤ ‖LSeries ((1 : DirichletCharacter ℂ N) ·) s.re‖ ^ 3 * ‖LSeries (χ ·) s‖ ^ 4 * ‖LSeries ((χ ^ 2) ·) s₂‖ := by have at_re : (1 : ℂ) + (s.re - 1 : ℝ) = s.re := by simp have at_s : s.re + I * s.im = s := by rw [mul_comm, re_add_im] have at_s₂ : s.re + 2 * I * s.im = s₂ := by linear_combination at_s simpa only [at_re, at_s, at_s₂, norm_mul, norm_pow] using χ.norm_LSeries_product_ge_one (by linarith : 0 < s.re - 1) s.im have trivial_char_le : ‖LSeries ((1 : DirichletCharacter ℂ N) ·) s.re‖ ≤ 2 / η := calc _ ≤ 1 + 1 / η := DirichletCharacter.norm_LSeries_le_one_add 1 (one_div_pos.2 hη) (by simpa using h_re) _ ≤ 1 / η + 1 / η := by linarith [one_le_one_div hη hη_le] _ = 2 / η := by ring have char_le : ‖LSeries (χ ·) s‖ ≤ 2 * l * ‖regularL χ s‖ := norm_LSeries_le_mul_norm_regularL χ (by linarith) hl_one fun hχ ↦ h_far (by simp [hχ]) have sq_char_le : ‖LSeries ((χ ^ 2) ·) s₂‖ ≤ 2 * l * l ^ 2 := by have h_far₂ : χ ^ 2 = 1 → 1 / l ≤ ‖s₂ - 1‖ := fun hχ ↦ (h_far hχ).trans dist_s₂ have re_s₂_ge : 1 - 1 / l ≤ s₂.re := by linarith [one_div_pos.2 (one_pos.trans_le hl_one)] grw [norm_LSeries_le_mul_norm_regularL (χ ^ 2) (by linarith) hl_one h_far₂, norm_regularL_le_sq (χ ^ 2) hl hN re_s₂_ge norm_s₂] calc η ^ 3 ≤ η ^ 3 * ((2 / η) ^ 3 * (2 * l * ‖regularL χ s‖) ^ 4 * (2 * l * l ^ 2)) := by grw [← trivial_char_le, ← char_le, ← sq_char_le, ← product, mul_one] _ = 256 * l ^ 7 * ‖regularL χ s‖ ^ 4 := by field /-- Let `l ≥ 10¹⁰` and `N ≤ e^l`; if `χ²` is principal, let `|𝖿_χ| ≥ 1 / l` within `1 / l` of `1`, where `𝖿_χ = regularL χ` is `L(s, χ)`, times `(s - 1) / s` if `χ` is principal. Then `|𝖿_χ(s)| ≥ 12 / l²²` for `re s ≥ 1 + l⁻²⁵` and `|s| ≤ 3 e^l / 2`. -/ lemma div_pow_le_norm_regularL (χ : DirichletCharacter ℂ N) {s : ℂ} {l : ℝ} (hl : 10 ^ 10 ≤ l) (hN : N ≤ rexp l) (h_near : χ ^ 2 = 1 → ∀ z : ℂ, ‖z - 1‖ ≤ 1 / l → 1 / l ≤ ‖regularL χ z‖) (h_re : 1 + 1 / l ^ 25 ≤ s.re) (h_norm : ‖s‖ ≤ 3 / 2 * rexp l) : 12 / l ^ 22 ≤ ‖regularL χ s‖ := by have hl_one : 1 ≤ l := by linarith by_cases! h_far : χ ^ 2 = 1 → 1 / l ≤ ‖s - 1‖ · -- if `χ²` is not principal or `s` is not near `1`, the 3-4-1 bound with `η = l⁻²⁵` applies have hη_le : 1 / l ^ 25 ≤ 1 := div_le_one_of_le₀ (one_le_pow₀ hl_one) (by positivity) have h_const : 256 * 12 ^ 4 ≤ l ^ 6 := by linarith [le_self_pow₀ hl_one (by norm_num : 6 ≠ 0)] have h_mul : 256 * l ^ 7 * (12 / l ^ 22) ^ 4 ≤ 256 * l ^ 7 * ‖regularL χ s‖ ^ 4 := calc _ = 256 * 12 ^ 4 / l ^ 81 := by field _ ≤ l ^ 6 / l ^ 81 := by gcongr _ = (1 / l ^ 25) ^ 3 := by field _ ≤ _ := pow_three_le_mul_norm_regularL_pow χ hl hN (by positivity) hη_le h_far h_re h_norm exact le_of_pow_le_pow_left₀ four_ne_zero (norm_nonneg _) (le_of_mul_le_mul_left h_mul (by positivity)) · obtain ⟨hχ, h_close⟩ : χ ^ 2 = 1 ∧ ‖s - 1‖ < 1 / l := h_far calc 12 / l ^ 22 ≤ l / l ^ 2 := by gcongr <;> linarith _ = 1 / l := by field _ ≤ ‖regularL χ s‖ := h_near hχ s h_close.le /-- Let `χ` be a Dirichlet character modulo `N`, `l ≥ 10¹⁰` and `N ≤ e^l`; if `χ²` is principal, let `|𝖿_χ| ≥ 1 / l` within `1 / l` of `1`, where `𝖿_χ = regularL χ`. Then `|𝖿_χ(s)| ≥ 8 / l²²` and `|𝖿_χ'(s)| ≤ 2 l³` for `re s ≥ 1 - l⁻²⁵` and `|s| ≤ e^l`. -/ private lemma le_norm_regularL_and_norm_deriv_le (χ : DirichletCharacter ℂ N) {s : ℂ} {l : ℝ} (hl : 10 ^ 10 ≤ l) (hN : N ≤ rexp l) (h_near : χ ^ 2 = 1 → ∀ z : ℂ, ‖z - 1‖ ≤ 1 / l → 1 / l ≤ ‖regularL χ z‖) (h_re : 1 - 1 / l ^ 25 ≤ s.re) (h_norm : ‖s‖ ≤ rexp l) : 8 / l ^ 22 ≤ ‖regularL χ s‖ ∧ ‖deriv (regularL χ) s‖ ≤ 2 * l ^ 3 := by -- Compare `s` with `v = s + 2 η`, `η = l⁻²⁵`: between them `𝖿_χ` changes by at most -- `2 l³ · 2 η = 4 / l²²`, and `|𝖿_χ(v)| ≥ 12 / l²²`. have exp_ge : l + 1 ≤ rexp l := add_one_le_exp l have inv_le : 1 / l ≤ 1 / 6 := one_div_le_one_div_of_le (by norm_num) (by linarith) let η : ℝ := 1 / l ^ 25 have hη_pos : 0 < η := by positivity have hη_le : η ≤ 1 / l / 6 := calc 1 / l ^ 25 ≤ 1 / l ^ 2 := by gcongr <;> linarith _ = 1 / l * (1 / l) := by ring _ ≤ 1 / l / 6 := by grw [div_eq_mul_one_div (1 / l) 6, ← inv_le] have bounds (z : ℂ) (hz : z ∈ closedBall s (2 * η)) : 1 - 1 / l / 2 ≤ z.re ∧ ‖z‖ ≤ 2 * rexp l := by rw [mem_closedBall_iff_norm] at hz have h_dist : |z.re - s.re| ≤ ‖z - s‖ := by simpa using abs_re_le_norm (z - s) exact ⟨by linarith [(abs_le.1 h_dist).1], by linarith [norm_le_norm_sub_add z s]⟩ have deriv_le (z : ℂ) (hz : z ∈ closedBall s (2 * η)) : ‖deriv (regularL χ) z‖ ≤ 2 * l ^ 3 := norm_deriv_regularL_le χ hl hN (bounds z hz).1 (bounds z hz).2 have hs_mem : s ∈ closedBall s (2 * η) := mem_closedBall_self (by positivity) let v : ℂ := s + (2 * η : ℝ) have dist_v : ‖v - s‖ = 2 * η := by simp [v, hη_pos.le] have re_v : v.re = s.re + 2 * η := by simp [v] have change_le : ‖regularL χ v - regularL χ s‖ ≤ 4 / l ^ 22 := calc _ ≤ 2 * l ^ 3 * ‖v - s‖ := (convex_closedBall s (2 * η)).norm_image_sub_le_of_norm_deriv_le (fun z hz ↦ differentiableAt_regularL χ (by linarith [(bounds z hz).1])) deriv_le hs_mem (mem_closedBall_iff_norm.2 dist_v.le) _ = 4 / l ^ 22 := by rw [dist_v] field have large_v : 12 / l ^ 22 ≤ ‖regularL χ v‖ := div_pow_le_norm_regularL χ hl hN h_near (by linarith) (by linarith [norm_le_norm_sub_add v s]) have large_s : 8 / l ^ 22 ≤ ‖regularL χ s‖ := calc _ = 12 / l ^ 22 - 4 / l ^ 22 := by ring _ ≤ ‖regularL χ s‖ := by linarith [norm_sub_norm_le (regularL χ v) (regularL χ s)] exact ⟨large_s, deriv_le s hs_mem⟩ /-- Let `l ≥ 10¹⁰` and `N ≤ e^l`; if `χ²` is principal, let `|𝖿_χ| ≥ 1 / l` within `1 / l` of `1`, where `𝖿_χ = regularL χ` is `L(s, χ)`, times `(s - 1) / s` if `χ` is principal. Then `𝖿_χ(s) ≠ 0` and `|𝖿_χ'(s) / 𝖿_χ(s)| ≤ l²⁵` for `re s ≥ 1 - l⁻²⁵` and `|s| ≤ e^l`. -/ lemma norm_logDeriv_regularL_le (χ : DirichletCharacter ℂ N) {s : ℂ} {l : ℝ} (hl : 10 ^ 10 ≤ l) (hN : N ≤ rexp l) (h_near : χ ^ 2 = 1 → ∀ z : ℂ, ‖z - 1‖ ≤ 1 / l → 1 / l ≤ ‖regularL χ z‖) (h_re : 1 - 1 / l ^ 25 ≤ s.re) (h_norm : ‖s‖ ≤ rexp l) : regularL χ s ≠ 0 ∧ ‖logDeriv (regularL χ) s‖ ≤ l ^ 25 := by obtain ⟨large_s, deriv_s⟩ : 8 / l ^ 22 ≤ ‖regularL χ s‖ ∧ ‖deriv (regularL χ) s‖ ≤ 2 * l ^ 3 := le_norm_regularL_and_norm_deriv_le χ hl hN h_near h_re h_norm refine ⟨norm_pos_iff.1 (lt_of_lt_of_le (by positivity) large_s), ?_⟩ calc ‖logDeriv (regularL χ) s‖ ≤ 2 * l ^ 3 / (8 / l ^ 22) := by grw [logDeriv_apply, norm_div, deriv_s, ← large_s] _ = l ^ 25 / 4 := by field _ ≤ l ^ 25 := div_le_self (by positivity) (by norm_num) /-- Let `χ` be a Dirichlet character mod `N ≥ 1`, `l ≥ 10¹⁰` and `N ≤ e^l`. If `χ²` is principal, assume `|regularL χ z| ≥ 1 / l` whenever `|z - 1| ≤ 1 / l`, where `regularL χ` is `L(s, χ)` times `(s - 1) / s` if `χ` is principal and `L(s, χ)` otherwise. Then for `re s ≥ 1 - l⁻²⁵` and `|s| ≤ e^l`, the entire function `entireL χ` (equal to `L(s, χ)`, or to the continuation of `(s - 1) L(s, χ)` if `χ` is principal) does not vanish at `s`, and its logarithmic derivative there has norm at most `2 l²⁵`. -/ lemma norm_logDeriv_entireL_le (χ : DirichletCharacter ℂ N) {s : ℂ} {l : ℝ} (hl : 10 ^ 10 ≤ l) (hN : N ≤ rexp l) (h_near : χ ^ 2 = 1 → ∀ z : ℂ, ‖z - 1‖ ≤ 1 / l → 1 / l ≤ ‖regularL χ z‖) (h_re : 1 - 1 / l ^ 25 ≤ s.re) (h_norm : ‖s‖ ≤ rexp l) : entireL χ s ≠ 0 ∧ ‖logDeriv (entireL χ) s‖ ≤ 2 * l ^ 25 := by have two_le : 2 ≤ l ^ 25 := by linarith [le_self_pow₀ (by linarith : 1 ≤ l) (by norm_num : 25 ≠ 0)] obtain ⟨h_ne, h_bound⟩ := norm_logDeriv_regularL_le χ hl hN h_near h_re h_norm -- `regularL χ` is `entireL χ` divided by the factor `u`, which is `s` or `1` let u (z : ℂ) : ℂ := if χ = 1 then z else 1 have h_eq : regularL χ = fun z : ℂ ↦ entireL χ z / u z := by ext z by_cases hχ : χ = 1 <;> simp [regularL, u, hχ] obtain ⟨h_entire, hu⟩ : entireL χ s ≠ 0 ∧ u s ≠ 0 := by rwa [h_eq, div_ne_zero_iff] at h_ne have u_diff : DifferentiableAt ℂ u s := by by_cases hχ : χ = 1 <;> simp [u, hχ] have h_split : logDeriv (entireL χ) s = logDeriv (regularL χ) s + logDeriv u s := by have h_div : logDeriv (fun z : ℂ ↦ entireL χ z / u z) s = logDeriv (entireL χ) s - logDeriv u s := logDeriv_div s h_entire hu (analyticAt_entireL χ s).differentiableAt u_diff rw [h_eq, h_div, sub_add_cancel] have u_bound : ‖logDeriv u s‖ ≤ 2 := by have hs_norm : 1 / 2 ≤ ‖s‖ := by linarith [re_le_norm s, one_div_le_one_div_of_le two_pos two_le] by_cases hχ : χ = 1 · simpa [u, hχ] using (one_div_le (by linarith) two_pos).2 hs_norm · simp [u, hχ] refine ⟨h_entire, ?_⟩ rw [h_split] linarith [norm_add_le (logDeriv (regularL χ) s) (logDeriv u s)] /-- **Zero-free region** for a fixed character: for all large `l`, on `re s ≥ 1 - l⁻²⁵`, `|s| ≤ e^l` the function `entireL χ` (`L(s, χ)` with the pole removed) does not vanish and its logarithmic derivative is at most `2 l²⁵`. -/ theorem eventually_norm_logDeriv_entireL_le (χ : DirichletCharacter ℂ N) : ∀ᶠ l : ℝ in atTop, ∀ s : ℂ, 1 - 1 / l ^ 25 ≤ s.re → ‖s‖ ≤ rexp l → entireL χ s ≠ 0 ∧ ‖logDeriv (entireL χ) s‖ ≤ 2 * l ^ 25 := by have inv_tendsto : Tendsto (fun l : ℝ ↦ 1 / l) atTop (𝓝 0) := tendsto_const_nhds.div_atTop tendsto_id filter_upwards [eventually_ge_atTop (10 ^ 10), eventually_ge_atTop (N : ℝ), inv_tendsto.eventually (eventually_le_norm_regularL χ)] with l hl hN h_near s exact norm_logDeriv_entireL_le χ hl (by linarith [add_one_le_exp l]) fun _ ↦ h_near end New