quadratic twist
Also known as: Legendre symbol.
Multiplying a Dirichlet character χ modulo N by the Legendre symbol (·/d) of an odd prime d coprime to N, yielding a non-principal character modulo N·d whose L-function family admits zero-density control.
Level 1 — First-Principles
Fix an odd integer greater than
For
Now take a periodic multiplicative weight
Stage 01 relies on quadratic twists to keep its prime-power remainder nonnegative while avoiding accidental pole cancellations. On
Limits of the intuition
Treating the quadratic twist as a single static filter misses two essential requirements. First, for a poorly chosen prime
Level 2 — Undergrad Bridge
For a Dirichlet character quadTwist_ne_one): choosing a quadratic non-residue
In the Stage 01 error term primeRemainder, the factor
Accordingly, the Laplace transform of
where
To make Lib.Analytic.QuadraticTwist proves a zero-density estimate in the spirit of Jutila (1975) and Heath-Brown (1995), replacing the full real-character large sieve by a smoothed theta-series mean square bounded via the Pólya–Vinogradov inequality:
- For a primitive character
of conductor , a zero in the box forces the theta-series tail integral to exceed , via a truncated mollifier and Hadamard's three-lines theorem. - When
, quadratic reciprocity rewrites in terms of the odd part of ; averaging the squared theta series over bounds by , showing that at most primes in the class are "bad" (possess a twisted zero in the box). - Since
diverges by Dirichlet's theorem, not all primes of the invertible class can be bad, yielding a prime with throughout the box.
Level 3 — Formal Lean Contract
In Mathlib4 (Mathlib.NumberTheory.LegendreSymbol.Basic), legendreSym d n : ℤ implements [Fact d.Prime] via quadraticChar (ZMod d), and quadraticChar_isQuadratic certifies that legendreSym d n ∈ {0, 1, -1}.
Upstream formalizes the quadratic twist and its zero-density selection across three modules:
src/Lib/Analytic/EntireLFunction.lean:New.quadTwist_apply : quadTwist χ d n = χ n * legendreSym d nandNew.quadTwist_ne_one(ford ≠ 2andN.Coprime d).src/Lib/Analytic/QuadraticTwist.lean:New.zero_density_quadTwist(thebound on IsBadPrime) andNew.exists_entireL_quadTwist_ne_zero, which producesd : Primesin the residue class withentireL (quadTwist ξ d) s ≠ 0onβ ≤ s.re,|s.im| ≤ H.src/New/Reduction/Zeros/PrimeError.lean:New.one_sub_chiK_mem_Icc(1 - (chiK d n : ℝ) ∈ Set.Icc 0 2) andNew.isPolar_primeRemainder.
Stage 01 anchors the twist in both top-level reduction theorems:
01_reduction/criterion.lean#New.LFunction_ne_zero_of_primeRemainder_le(upstreamsrc/New/Reduction/Zeros/Criterion.lean:35-90):leantheorem New.LFunction_ne_zero_of_primeRemainder_le {q₀ : ℕ} [NeZero q₀] (hq₀ : 8 ∣ q₀) {d₀ : ℕ} (hd₀_mod : d₀ % 8 = 7) (hd₀_cop : d₀.Coprime q₀) {β : ℝ} (hβ : 1 / 2 < β) (h_bound : ∀ d : Primes, (d : ℕ) ≡ d₀ [MOD q₀] → ∃ A : ℝ, ∀ᶠ x : ℝ in atTop, primeRemainder d q₀ x ≤ A * x ^ (β - 1)) (ψ : DirichletCharacter ℂ q₀) {ρ : ℂ} (hρ_ne : ρ ≠ 1) (hρ_re : β < ρ.re) : ψ.LFunction ρ ≠ 001_reduction/one_sided_bound.lean#New.eventually_primeRemainder_le_mul_rpow(upstreamsrc/New/Reduction/OneSidedBound.lean:201-235):leantheorem New.eventually_primeRemainder_le_mul_rpow {q₀ : ℕ} [NeZero q₀] (hq₀ : 18480 ∣ q₀) {d : ℕ} [hd_prime : Fact d.Prime] (hd : d ≡ q₀ / 2 - 1 [MOD q₀]) {ε : ℝ} (hε : 0 < ε) : ∀ᶠ y : ℝ in atTop, primeRemainder d q₀ y ≤ (128 * q₀.totient + 32) * y ^ (-1 / 2 + ε)
See the page's live verification banner (audit/verification-status.json) for the currently pinned upstream snapshot and local Lean build status (build_status: unverified-locally).
Where this analogy breaks
A quadratic twist
Formal Lean Anchors
theorem New.LFunction_ne_zero_of_primeRemainder_le — Upstream source (src/New/Reduction/Zeros/Criterion.lean L35-L90)
/-- **One-sided criterion.** Let `q₀` be a positive multiple of `8`, let `d₀ ≡ 7` mod `8` be prime
to `q₀`, and let `β > 1/2`. Suppose that for each prime `d ≡ d₀` mod `q₀` the remainder
`primeRemainder d q₀ x = ∑_{n ≤ x} λ(n) (1/n - 1/x) - log x / φ(q₀) - c` is at most `A * x ^ (β - 1)`
for some `A` and all large `x`. Here `λ(n) = Λ(n) (1 - (n/d))` for `n ≡ 1` mod `q₀` and `0` otherwise,
and `c` is the constant for which the remainder tends to `0`. Then `L(ρ, ψ) ≠ 0` for every
character `ψ` modulo `q₀` and every `ρ ≠ 1` with `re ρ > β`. -/
theorem New.LFunction_ne_zero_of_primeRemainder_le {q₀ : ℕ} [NeZero q₀] (hq₀ : 8 ∣ q₀) {d₀ : ℕ}
(hd₀_mod : d₀ % 8 = 7) (hd₀_cop : d₀.Coprime q₀) {β : ℝ} (hβ : 1 / 2 < β)
(h_bound : ∀ d : Primes, (d : ℕ) ≡ d₀ [MOD q₀] →
∃ A : ℝ, ∀ᶠ x : ℝ in atTop, primeRemainder d q₀ x ≤ A * x ^ (β - 1))
(ψ : DirichletCharacter ℂ q₀) {ρ : ℂ} (hρ_ne : ρ ≠ 1) (hρ_re : β < ρ.re) :
ψ.LFunction ρ ≠ 0 := by
sorry -- [EXTRACTED_STUB upstream=src/New/Reduction/Zeros/Criterion.lean:35-90 commit=41c2716658c42ba08eb0648994a2efe83082a95c body_lines=45 body_sha256=dee53546115f07956df438a6dd34a213cb6cb1775d14fde132a1c579e7a308de]theorem New.eventually_primeRemainder_le_mul_rpow — Upstream source (src/New/Reduction/OneSidedBound.lean L201-L235)
/-- **One-sided bound.** Let `q₀ > 0` be a multiple of `18480`, let `d ≡ q₀ / 2 - 1` modulo `q₀` be
a prime, and let `ε > 0`. Then `R = primeRemainder d q₀` satisfies
`R(y) ≤ (128 φ(q₀) + 32) y ^ (-1/2 + ε)` for all large real `y`. -/
theorem New.eventually_primeRemainder_le_mul_rpow {q₀ : ℕ} [NeZero q₀] (hq₀ : 18480 ∣ q₀) {d : ℕ}
[hd_prime : Fact d.Prime] (hd : d ≡ q₀ / 2 - 1 [MOD q₀]) {ε : ℝ} (hε : 0 < ε) :
∀ᶠ y : ℝ in atTop, primeRemainder d q₀ y ≤ (128 * q₀.totient + 32) * y ^ (-1 / 2 + ε) := by
sorry -- [EXTRACTED_STUB upstream=src/New/Reduction/OneSidedBound.lean:201-235 commit=41c2716658c42ba08eb0648994a2efe83082a95c body_lines=30 body_sha256=3c83f57c4fd982274a17d7539635c9b9dde4053c2c86ead0a79ed97a76a8f4d8]Related Concepts
- prime number — A whole number greater than 1 whose only positive whole-number divisors are 1 and itself; every integer above 1 factors uniquely into a product of them.
- Dirichlet character — A periodic multiplicative label χ : ℤ → ℂ modulo N that equals 0 when gcd(n, N) > 1, takes roots of unity when gcd(n, N) = 1, and satisfies χ(ab) = χ(a)χ(b).
- Dirichlet L-function — The meromorphic continuation of ∑ χ(n) n⁻ˢ associated to a Dirichlet character χ, generalizing ζ(s) to track primes across residue classes modulo N.
- von Mangoldt function — The arithmetic weight Λ(n) equal to log p when n is a prime power pᵏ (k ≥ 1) and 0 otherwise, converting multiplicative prime factorizations into additive logarithms.
- Landau's lemma — A complex-analytic theorem stating that the Laplace or Dirichlet transform of a nonnegative function must have a singularity on the real axis at its abscissa of convergence, turning one-sided error bounds into zero-free half-planes.
Referenced By
- Stage: Formal Groups, Theta Normal Form & Prime-Counting Divisibility
- Stage: From a One-Sided Prime Bound to a Zero-Free Half-Plane
- Stage: Prime-by-Prime Divisibility & Elementary Divisors of Edge Hecke Operators
- Stage: Stage 01 — The Theorem and Its Reduction
- Stage: Stage 02 — Derivatives of Theta Functions
- Stage: The Main Inequality & Theorems A and B
- Concept: complex multiplication
- Concept: Landau's lemma
- Concept: von Mangoldt function
Authoritative Sources
- Multiplicative Number Theory (book) — H. Davenport, 3rd ed., Springer Graduate Texts in Mathematics 74 (2000), Chapters 5 and 9.
- On mean values of Dirichlet polynomials with real characters (paper) — M. Jutila, Acta Arithmetica 27 (1975), pp. 191–198.
- A mean value estimate for real character sums (paper) — D. R. Heath-Brown, Acta Arithmetica 72 (1995), pp. 235–275.
- Mathlib4: legendreSym (mathlib) — Mathlib.NumberTheory.LegendreSymbol.Basic (
legendreSym,quadraticChar_isQuadratic).
Page Glossary
- prime number
- A whole number greater than 1 whose only positive whole-number divisors are 1 and itself; every integer above 1 factors uniquely into a product of them.
- Dirichlet character
- A periodic multiplicative label χ : ℤ → ℂ modulo N that equals 0 when gcd(n, N) > 1, takes roots of unity when gcd(n, N) = 1, and satisfies χ(ab) = χ(a)χ(b).
- Dirichlet L-function
- The meromorphic continuation of ∑ χ(n) n⁻ˢ associated to a Dirichlet character χ, generalizing ζ(s) to track primes across residue classes modulo N.
- von Mangoldt function
- The arithmetic weight Λ(n) equal to log p when n is a prime power pᵏ (k ≥ 1) and 0 otherwise, converting multiplicative prime factorizations into additive logarithms.
- Landau's lemma
- A complex-analytic theorem stating that the Laplace or Dirichlet transform of a nonnegative function must have a singularity on the real axis at its abscissa of convergence, turning one-sided error bounds into zero-free half-planes.