Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

The truncated Perron integral 12πi∫σ−iTσ+iTG(s) xs dss\frac{1}{2\pi i}\int_{\sigma-iT}^{\sigma+iT}G(s)\,x^{s}\,\frac{ds}{s}2πi1​∫σ−iTσ+iT​G(s)xssds​

Definition
Weil_perron

by tabbott · Sep 4, 2026 · Mathlib 0df444a (Lean v4.33.1)

analytic-number-theorynumber-theoryperron-formula

The vertical contour integral at the heart of Perron's formula. For a function GGG on C\mathbb{C}C, a real x>0x>0x>0, an abscissa σ\sigmaσ and a height T>0T>0T>0,

perronIntegral⁡(G,x,σ,T)  =  12πi∫σ−iTσ+iTG(s) xss ds.\operatorname{perronIntegral}(G,x,\sigma,T)\;=\;\frac{1}{2\pi i}\int_{\sigma-iT}^{\sigma+iT}G(s)\,\frac{x^{s}}{s}\,ds.perronIntegral(G,x,σ,T)=2πi1​∫σ−iTσ+iT​G(s)sxs​ds.

It is written here as an integral in the real variable ttt along the line s=σ+its=\sigma+its=σ+it: with ds=i dtds=i\,dtds=idt the factor iii cancels against the iii in 1/2πi1/2\pi i1/2πi, leaving

12π∫−TTG(σ+it) xσ+itσ+it dt.\frac{1}{2\pi}\int_{-T}^{T}G(\sigma+it)\,\frac{x^{\sigma+it}}{\sigma+it}\,dt.2π1​∫−TT​G(σ+it)σ+itxσ+it​dt.

No hypotheses are imposed on GGG or on the parameters. Where the integrand fails to be interval integrable the Bochner integral is 000 by convention, so any statement about this quantity carries its own analyticity or integrability hypotheses.

Perron's formula says that for σ\sigmaσ to the right of the abscissa of absolute convergence this integral approximates the partial sum ∑n<xa(n)\sum_{n<x}a(n)∑n<x​a(n) of the Dirichlet series G(s)=∑n≥1a(n)n−sG(s)=\sum_{n\ge1}a(n)n^{-s}G(s)=∑n≥1​a(n)n−s, with an error that decreases in TTT. Moving the line of integration to the left of σ=1\sigma=1σ=1 and collecting the residues released by the shift is what converts a zero-free region for GGG into an asymptotic formula for that partial sum.

Definition code
/-
# The truncated Perron integral

The vertical contour integral that carries the analytic content of the Perron formula,
`(1 / 2πi) ∫_{σ - iT}^{σ + iT} G(s) x^s / s ds`, parametrised by the real variable
`t` with `s = σ + it`, so that `ds = i dt` and the factor `i` cancels the `i` in `1/2πi`.
-/
import Mathlib.Analysis.SpecialFunctions.Pow.Complex
import Mathlib.MeasureTheory.Integral.IntervalIntegral.Basic

namespace Weil

/-- `perronIntegral G x σ T` is the truncated Perron integral
`(1 / 2πi) ∫_{σ - iT}^{σ + iT} G(s) · x ^ s / s ds`,
written as an integral in the real variable `t` along `s = σ + it`. -/
noncomputable def perronIntegral (G : ℂ → ℂ) (x σ T : ℝ) : ℂ :=
  (1 / (2 * Real.pi)) *
    ∫ t in (-T)..T,
      G ((σ : ℂ) + (t : ℂ) * Complex.I) * (x : ℂ) ^ ((σ : ℂ) + (t : ℂ) * Complex.I)
        / ((σ : ℂ) + (t : ℂ) * Complex.I)

end Weil
Source
H. Davenport, Multiplicative Number Theory, 3rd ed. (rev. H. L. Montgomery), GTM 74, Springer 2000, Section 17 (The truncated Perron formula, pp. 105-110); cf. Montgomery-Vaughan, Multiplicative Number Theory I, Theorem 5.2

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me