Theta series of Dirichlet characters, Poisson summation, and `L(s, χ)` as a Mellin transform
Lib.Analytic.DirichletTheta.lean
Reading
Upstream documentation written by Claude
For a parity
j ∈ {0, 1}, the weightw(z) = z ^ j e^(-π z²)and coefficientsc(n), this file studies the theta seriesθ(u) = u ^ (1/2) ∑_{n ≥ 1} c(n) w(n u). It boundsθand expresses its Mellin transform through the Dirichlet series ofc. For a Dirichlet characterχ ≠ 1of parityj, Poisson summation bounds the series near0and so gives the formula forL(s, χ)inre s > 0(hasMellin_thetaSeries_char); ifχis also primitive, it gives the transformation formula of|θ|(norm_thetaSeries_inv).
Copyright 2026 Anthropic, PBC. Apache License 2.0 · Upstream notice.
Rest of upstream introduction
Relation to the literature
Known result: the transformation formula and the Mellin transform of the theta series of a Dirichlet character. Sources: Davenport, Multiplicative Number Theory; Montgomery–Vaughan, Multiplicative Number Theory I, ch. 10. Form here: the transformation is proved in absolute value only, so no root number appears.
Declarations
theorem hasMellin_thetaSeries_char (hχ_ne : χ ≠ 1) (hχ_parity : χ (-1) = (-1) ^ j.val) (hs : 0 < s.re) : HasMellin (thetaSeries j fun n : ℕ ↦ χ n) (s - 2⁻¹) (gaussianMellin j s * χ.LFunction s)
Import route to Main
Lib.Analytic.DirichletTheta → Lib.Analytic.QuadraticTwist (pinned import) → New.Reduction.Zeros.Criterion (pinned import) → New.Reduction.OneSidedBound (pinned import) → New.Main (pinned import) → Main (pinned import)