RH Lean Explorer Sernau readable · Comparator passedChecked

Readable edition · 803 Lean files

A weighted prime-counting error term and its poles at zeros of L-functions

New.Reduction.Zeros.PrimeError.lean

Open interactive viewer Raw Lean source · Pinned source

Reading

Upstream documentation written by Claude

Let d be a prime and χ_K = (·/d) the Legendre symbol. We study the remainder R_q of a weighted sum over the prime powers n ≡ 1 modulo q with χ_K(n) ≠ 1. Its Laplace transform sees the zeros of the Dirichlet L-functions modulo q and of their twists by χ_K.

  • New.lambdaKResidueClass: the weight λ(n) = Λ(n) (1 - χ_K(n)) on n ≡ 1 modulo q; it is nonnegative.

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

Rest of upstream introduction

Rest of upstream introduction
  • New.logDerivMean: the mean G_q over the characters ψ modulo q of the differences of the logarithmic derivatives of New.entireL (New.quadTwist ψ d) and New.entireL ψ, less 1 / φ(q).
  • New.primeRemainder: R_q(x) = ∑_{n ≤ x} λ(n) (1/n - 1/x) - log x / φ(q) - re G_q(1).
  • New.LSeries_lambdaKResidueClass_eq_add_logDerivMean: for odd d prime to q, the Dirichlet series of λ is s / (φ(q) (s - 1)) + G_q(s) in re s > 1.
  • New.isPolar_primeRemainder: for d ≡ 7 modulo 8 prime to q, the transform of v ↦ R_q(e ^ v) has at most simple poles in re s > 0, none at 1, and at s ≠ 1 with the residue (n(s) - n'(s)) / (φ(q) s (1 - s)), where n(s) and n'(s) are the sums of the orders at s of these L-functions and of their twists.

Here New.entireL ψ is L(s, ψ), times s - 1 if ψ is principal, New.quadTwist ψ d is the character ψ χ_K, and New.chowlaSelbergConst d is, for odd d, γ - re L'/L(1, χ_K), with γ Euler's constant.

Relation to the literature

The transform of a weighted prime sum in a residue class is computed by orthogonality of characters and partial summation. Source: Davenport, Multiplicative Number Theory.

Pinned source lines

Declarations

  • lemma isPolar_primeRemainder (hd : d % 8 = 7) (h_cop : q.Coprime d) :
        IsPolar (fun v : ℝ ↦ primeRemainder d q (Real.exp v)) fun s : ℂ ↦
          (∑ ψ : DirichletCharacter ℂ q,
            (analyticOrderNatAt (entireL ψ) s - analyticOrderNatAt (entireL (quadTwist ψ d)) s : ℂ)) /
            φ q / (s * (1 - s))
    

Import route to Main

New.Reduction.Zeros.PrimeError → New.Reduction.Zeros.Criterion (pinned import) → New.Reduction.OneSidedBound (pinned import) → New.Main (pinned import) → Main (pinned import)

X Reddit Email LinkedIn