Skip to content

Dirichlet L-function ​

Also known as: Dirichlet L-series.

The meromorphic continuation of ∑ χ(n) n⁻ˢ associated to a Dirichlet character χ, generalizing ζ(s) to track primes across residue classes modulo N.

Diagram illustrating Dirichlet L-function
Diagram illustrating Dirichlet L-function.

Level 1 — First-Principles ​

Take the sum ∑n=1∞n−s over all positive integersRiemann zeta function and multiply each term by a periodic multiplicative weight χ(n) modulo NDirichlet character:

L(χ,s)=∑n=1∞χ(n)ns=χ(1)1s+χ(2)2s+χ(3)3s+…

This weighted unending suminfinite series converges whenever Re(s)>1 (and for any non-principal weight χ≠1—one that is not equal to 1 on all numbers coprime to N—its cancellations make the sum converge all the way down to Re(s)>0). Extending the function to the whole plane via the unique complex-differentiable extension beyond the convergence boundaryanalytic continuation produces the Dirichlet L-function (or Dirichlet L-series in its sum form).

When N=1, χ(n)=1 for every n, so L(χ,s) collapses back to the Riemann zeta function. For general moduli N, these functions act like tuned receivers isolating primes in each residue class amodN. The Generalized Riemann Hypothesis predicts that for every character χ, every zero inside the open vertical band 0<Re(s)<1critical strip lies on the central line Re(s)=1/2critical line. In fact, the upstream submission is structured to establish this broader claim for all characters—reducing each character to its underlying minimal-period characterprimitive character—and derive the classical Riemann Hypothesis as the N=1 special case.

Limits of the intuition ​

Thinking of L(χ,s) as merely a "tinted copy" of ζ(s) blurs two vital analytic distinctions. First, ζ(s) has a pole at s=1, whereas every non-principal L(χ,s) (χ≠1) is holomorphic across the entire two-dimensional grid of real and imaginary coordinatescomplex plane—even at s=1, where its nonvanishing L(χ,1)≠0 is the heart of Dirichlet's theorem on primes in arithmetic progressions. Second, if χ is imprimitive, L(χ,s) differs from its primitive companion by finitely many Euler factors (1−χ∗(p)p−s), which introduce extra zeros along the left edge Re(s)=0.

Level 2 — Undergrad Bridge ​

Because χ is completely multiplicative, L(χ,s) factors as an Euler product for Re(s)>1:

L(χ,s)=∏p prime(1−χ(p)p−s)−1.

Taking the logarithmic derivative and summing over all characters modulo N via orthogonality yields the prime-counting generator for any residue class amodN with gcd(a,N)=1:

∑n=1n≡a(modN)∞Λ(n)ns=−1φ(N)∑χmodNχ(a)―L′(χ,s)L(χ,s).

For a primitive character χmodq, the completed function Λ(χ,s)=(q/π)(s+a)/2Γ((s+a)/2)L(χ,s) satisfies the functional equation

Λ(χ,s)=ε(χ)Λ(χ―,1−s),|ε(χ)|=1,

where ε(χ) is the root number built from the Gauss sum of χ. Note the crucial twist: reflection sends a zero s of L(χ,s) to a zero 1−s of L(χ―,s) (not L(χ,s) itself when χ is non-real). That is why Stage 00's nonvanishing hypothesis DirichletLNonvanishingRightOfHalf quantifies over all characters χ simultaneously: ruling out zeros of L(χ−1,1−s) for Re(1−s)>1/2 rules out zeros of L(χ,s) for Re(s)<1/2.

Level 3 — Formal Lean Contract ​

In Mathlib4 (Mathlib.NumberTheory.LSeries.DirichletContinuation), DirichletCharacter.LFunction χ s defines the meromorphic continuation of ∑χ(n)n−s for every χ : DirichletCharacter ℂ N. For N = 1, Mathlib proves LFunction_modOne_eq : LFunction (1 : DirichletCharacter ℂ 1) = riemannZeta.

Stage 00 anchors Dirichlet L-functions in:

  • 00_statement/statements.lean#DirichletLZerosOnLine (upstream src/Statements.lean:14-16):
    lean
    def DirichletLZerosOnLine : Prop :=
      ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N) (s : ℂ),
        0 < s.re → s.re < 1 → DirichletCharacter.LFunction χ s = 0 → s.re = 1 / 2
  • 00_statement/main.lean#LFunction_eq_zero_re (upstream src/Main.lean:19-21), proved via New.zeros_on_line New.grh.

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 ​

Treating every Dirichlet L-function as an exact copy of ζ(s) misses two crucial differences: for any non-principal character χ≠1, L(χ,s) has no pole at s=1 (it is entire on C), and its functional equation pairs χ with χ−1 rather than with itself unless χ is real.

Formal Lean Anchors ​

def DirichletLZerosOnLine — Upstream source (src/Statements.lean L14-L16)

lean
def DirichletLZerosOnLine : Prop :=
  ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N) (s : ℂ),
    0 < s.re → s.re < 1 → DirichletCharacter.LFunction χ s = 0 → s.re = 1 / 2

theorem LFunction_eq_zero_re — Upstream source (src/Main.lean L19-L21)

lean
/-- **The Generalized Riemann Hypothesis.** For every Dirichlet character χ, every zero of L(s, χ)
with 0 < re s < 1 has real part 1/2. -/
theorem LFunction_eq_zero_re : DirichletLZerosOnLine := by
  sorry -- [EXTRACTED_STUB upstream=src/Main.lean:19-21 commit=41c2716658c42ba08eb0648994a2efe83082a95c body_lines=1 body_sha256=7773691b674f0dbae2965ba30653c0763800339b89a38b9566afa1e5f38a6212]
  • infinite series — A limit of partial sums formed by adding infinitely many terms; in number theory, weighting terms by n⁻ˢ produces a Dirichlet series that turns integer arithmetic into a smooth function.
  • Riemann zeta function — The meromorphic function ζ(s) extending ∑ n⁻ˢ to all of ℂ ∖ {1}, linking prime numbers via its Euler product to zeros in the complex plane.
  • analytic continuation — The unique extension of a complex-differentiable function from a smaller region to a larger domain, locked in place by the identity theorem.
  • 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).
  • primitive character — A Dirichlet character modulo q whose pattern does not come from any strictly smaller dividing modulus; its modulus q equals its minimal period (conductor).
  • critical strip — The open vertical band 0 < Re(s) < 1 in the complex plane that contains every nontrivial zero of ζ(s) and of every Dirichlet L-function.
  • critical line — The vertical line Re(s) = 1/2 bisecting the critical strip—the axis of mirror symmetry s ↦ 1 − s where the Riemann Hypothesis asserts all nontrivial zeros lie.

Referenced By ​

Authoritative Sources ​

  • Multiplicative Number Theory (book) — H. Davenport, 3rd ed., Springer Graduate Texts in Mathematics 74 (2000), Chapters 4, 9, and 12.
  • Analytic Number Theory (book) — H. Iwaniec and E. Kowalski, AMS Colloquium Publications Vol. 53 (2004), Chapter 5, §§5.1–5.9.
  • Mathlib4: DirichletCharacter.LFunction (mathlib) — Mathlib.NumberTheory.LSeries.DirichletContinuation (DirichletCharacter.LFunction, DirichletCharacter.completedLFunction, pinned mathlib rev 31ce06eaadf4a200c0e1407c5f10953cf606b8f8).

Page Glossary ​

Riemann zeta function
The meromorphic function ζ(s) extending ∑ n⁻ˢ to all of ℂ ∖ {1}, linking prime numbers via its Euler product to zeros in the complex plane.
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).
infinite series
A limit of partial sums formed by adding infinitely many terms; in number theory, weighting terms by n⁻ˢ produces a Dirichlet series that turns integer arithmetic into a smooth function.
analytic continuation
The unique extension of a complex-differentiable function from a smaller region to a larger domain, locked in place by the identity theorem.
critical strip
The open vertical band 0 < Re(s) < 1 in the complex plane that contains every nontrivial zero of ζ(s) and of every Dirichlet L-function.
critical line
The vertical line Re(s) = 1/2 bisecting the critical strip—the axis of mirror symmetry s ↦ 1 − s where the Riemann Hypothesis asserts all nontrivial zeros lie.
primitive character
A Dirichlet character modulo q whose pattern does not come from any strictly smaller dividing modulus; its modulus q equals its minimal period (conductor).
complex plane
The two-dimensional coordinate plane of numbers s = σ + it, where the horizontal coordinate σ = Re(s) sets decay rate and the vertical coordinate t = Im(s) sets oscillation frequency.