RH Lean Explorer Sernau readable · Comparator passedChecked

Readable edition · 803 Lean files

A prime `d` in a class whose quadratic twists have no zero in a box

Lib.Analytic.QuadraticTwist.lean

Open interactive viewer Raw Lean source · Pinned source

Reading

Upstream documentation written by Claude

Fix a class modulo N whose primes are ≡ 7 modulo 8 and prime to N, and a box re s ≥ β = 1/2 + 9 δ, |im s| ≤ H. A prime d of the class is bad (IsBadPrime) if some L(s, ξ (·/d)), with ξ modulo N, has a zero in the box. The main estimate is the count zero_density_quadTwist: there are O(X ^ (1 - δ / 2)) bad primes up to X. Such a count also follows from the large sieve inequality for real characters; the proof here needs only the Pólya–Vinogradov inequality, because theta series keep all sums short.

Copyright 2026 Anthropic, PBC. Apache License 2.0 · Upstream notice.

Rest of upstream introduction

Rest of upstream introduction
  1. For a primitive character χ ≠ 1 of conductor q ≤ T² let J(χ, T) be the integral over u ≥ 1 / T of |θ_χ(u)| + |θ_{μχ}(u)| against du / u (thetaTailIntegral). If χ has parity j, the Mellin transform of θ_χ at s - 1/2 is Γ_j L, and by the functional equation the integral of |θ_χ(u)| du / u over u < q ^ (-1/2) equals that over u > q ^ (-1/2). The truncated transform 𝓜 of θ_{μχ} (mollifier) approximates Γ_j / L on re s = 2.
  2. For large T a zero in the box forces J(χ, T) > T ^ (2 δ) (eventually_rpow_lt_thetaTailIntegral). Otherwise Γ_j L 𝓜 - Γ_j² is ≪ T ^ (4 δ) on re s = 1/2 and ≪ 1 / T on re s = 2, so it is small at the zero by the three-lines theorem, while it equals -Γ_j² there.
  3. In the mean over v ≤ T² the theta series with coefficients αₙ (-v/n°), where n° is the odd part of n, are small (sum_sq_thetaSeries_jacobiSym_le): expand the square, bound the pairs with (n n')° a square trivially and the others by Pólya–Vinogradov. So the sum of the J is ≪ T ^ (2 + δ).
  4. By reciprocity (n/d) = (-d/n°), so 2 and 3 give the count, with T² = N X, after passing from ξ to the primitive character that induces it.
  5. If all primes of an invertible class were bad, the sum of log p / p over the class would converge; it diverges, so some prime of the class is not bad (exists_entireL_quadTwist_ne_zero).

Notions from other files:

  • gaussianMonomial j is the weight w(z) = z ^ j e^(-π z²) of parity j, and gaussianMellin j is its Mellin transform Γ_j(s) = ∫_0^∞ w(z) z ^ s dz / z.
  • thetaSeries j c u is θ_c(u) = u ^ (1/2) ∑_{n ≥ 1} c(n) w(n u).
  • quadTwist χ d is the character χ (·/d) modulo N d, for χ modulo N and a prime d.

Relation to the literature

Known result: zero density for quadratic twists by mean values over real characters. Sources: Jutila, On mean values of Dirichlet polynomials with real characters, Acta Arith. 27 (1975); Heath-Brown, A mean value estimate for real character sums, Acta Arith. 72 (1995). Form here: a weak density bound for the twists of the characters of a fixed modulus, by a smoothed mean square of Jacobi symbol sums.

Pinned source lines

Declarations

  • lemma exists_entireL_quadTwist_ne_zero {N : ℕ} [NeZero N] {β : ℝ} (H : ℝ) {a : ZMod N}
        (hβ : 1 / 2 < β) (ha : IsUnit a)
        (h_class : ∀ d : Primes, ((d : ℕ) : ZMod N) = a → (d : ℕ) % 8 = 7 ∧ N.Coprime d) :
        ∃ d : Primes, ((d : ℕ) : ZMod N) = a ∧ ∀ (ξ : DirichletCharacter ℂ N) (s : ℂ),
          β ≤ s.re → |s.im| ≤ H → entireL (quadTwist ξ d) s ≠ 0
    

Import route to Main

Lib.Analytic.QuadraticTwist → New.Reduction.Zeros.Criterion (pinned import) → New.Reduction.OneSidedBound (pinned import) → New.Main (pinned import) → Main (pinned import)

X Reddit Email LinkedIn