Euler Product Formula for the Riemann Zeta Function #
Statement I (Lectures 21-22: The Prime Number Theorem) #
$$\frac{1}{\zeta(s)} = \prod_{n=1}^{\infty} (1 - p_n^{-s}) \quad \text{for } \operatorname{Re} s > 1$$
Equivalently, $\zeta(s) = \prod_p \frac{1}{1 - p^{-s}}$ where the product ranges over all primes.
Proof sketch (from the textbook) #
For each prime $p_n$, we have $(1 - p_n^{-s})^{-1} = \sum_{m=0}^{\infty} p_n^{-ms}$. Expanding the finite product $\prod_{n=1}^{N} (1 - p_n^{-s})^{-1}$ using unique prime factorization gives $\prod_{n=1}^{N} (1 - p_n^{-s})^{-1} = \sum_k n_k^{-s}$, where the sum is over all positive integers whose prime factors are among $p_1, \ldots, p_N$. Letting $N \to \infty$ yields $\zeta(s)$.
This is formalized using Mathlib's riemannZeta and Nat.Primes, building on the
Euler product machinery in Mathlib.NumberTheory.EulerProduct.
Statement II (Lectures 21-22) #
Statement II. $\zeta(s) - \frac{1}{s-1}$ extends to a holomorphic function in $\operatorname{Re} s > 0$.
This means that the Riemann zeta function ζ(s) has a meromorphic continuation to the half-plane
{s : ℂ | 0 < s.re} with a unique simple pole at s = 1 of residue 1.
Mathlib's riemannZeta is already defined on all of ℂ via analytic continuation and is
complex-differentiable away from s = 1 (differentiableAt_riemannZeta). The function
s ↦ ζ(s) - 1/(s-1) has a removable singularity at s = 1, as witnessed by the fact that
it tends to the Euler–Mascheroni constant γ as s → 1 (tendsto_riemannZeta_sub_one_div).
We apply the removable singularity theorem to produce a holomorphic extension to the full
half-plane.
Euler Product Formula for ζ (HasProd form) (Statement I, Lectures 21-22).
For Re(s) > 1, the Riemann zeta function equals the infinite product over all primes p
of (1 - p^(-s))⁻¹. This version is stated using HasProd, which asserts that the
partial products over finite sets of primes converge to ζ(s).
Euler Product Formula for ζ (tprod form) (Statement I, Lectures 21-22).
For Re(s) > 1, ζ(s) = ∏' p, (1 - p^(-s))⁻¹ where p ranges over all primes.
This is the standard Euler product identity for the Riemann zeta function. The textbook
writes this equivalently as 1/ζ(s) = ∏(1 - p^(-s)).
Euler Product Formula for ζ (Tendsto form) (Statement I, Lectures 21-22).
For Re(s) > 1, the finite partial products ∏_{p < n} (1 - p^(-s))⁻¹ converge to ζ(s)
as n → ∞. This is the form closest to the textbook proof, which expands finite products
and lets N → ∞.
Reciprocal Euler Product for ζ (Statement I, Lectures 21-22).
For Re(s) > 1, 1/ζ(s) = ∏' p, (1 - p^(-s)). This is the form stated in
the textbook as 1/ζ(s) = ∏(1 - p_n^{-s}), obtained by taking the reciprocal of
the Euler product ζ(s) = ∏' p, (1 - p^(-s))⁻¹ and distributing the inverse
through the absolutely convergent product.
The proof constructs HasProd (fun p => 1 - p^{-s}) (ζ(s))⁻¹ by applying
Tendsto.inv₀ (continuous inversion at a nonzero point) to the Euler product
HasProd (fun p => (1 - p^{-s})⁻¹) ζ(s) and using Finset.prod_inv_distrib
to commute finite products with inversion.
Newman's Analytic Theorem (Theorem 1, Lectures 21-22) #
Truncated Laplace transform and helper lemmas for the proof #
On the left semicircle, ∫ exp(R·exp(iθ)·T) * h(θ) dθ → 0 as T → ∞
by the Dominated Convergence Theorem. The key is that Re(R·exp(iθ)) = R·cos(θ) ≤ 0
on θ ∈ [π/2, 3π/2], so |exp(R·exp(iθ)·T)| ≤ 1 (domination), and for a.e. θ
in the interior, cos(θ) < 0 so |exp(R·exp(iθ)·T)| → 0 (pointwise convergence).
The truncated Laplace transform g_T(z) is continuous as a function of z.
This follows from the fact that it is an entire function (the integrand e^{-zt} f(t)
depends holomorphically on z), which the book treats as immediate.
g holomorphic everywhere is differentiable on closedBall 0 R.
Differentiability of the truncated Laplace transform (under the integral sign).
The truncated Laplace transform g_T(z) = ∫₀ᵀ e^{-zt} f(t) dt is an entire function of z:
for each fixed t, the integrand e^{-zt} f(t) is entire in z, and the integral is over
a bounded interval [0, T]. The book treats this as obvious; formally it requires
differentiation under the integral sign for a holomorphic parameter.
The function H(z) = e^{zT} · (1 + z²/R²) · (g(z) - g_T(z)) is differentiable on the
closed ball of radius R centered at the origin.
This combines three facts:
e^{zT}and1 + z²/R²are entire (trivially differentiable everywhere),gextends toclosedBall 0 Rby analytic continuation (newman_g_diffOn_closedBall),truncatedLaplaceTransform f Tvis entire (truncatedLaplaceTransform_differentiable).
Cauchy integral formula (equation (6) in the book).
The book states "By Cauchy's formula" that
g(0) - g_T(0) = (2πi)⁻¹ ∮_C (g(z) - g_T(z)) e^{zT} (1 + z²/R²) dz/z.
Parametrised over the circle w(θ) = R·e^{iθ} for θ ∈ [-π/2, 3π/2], this becomes
the integral stated below.
Note: the hypothesis is ∀ z, DifferentiableAt ℂ g z, modeling the book's assumption
that g extends to a holomorphic function (entire).
The proof applies Mathlib's Cauchy integral formula
(DifferentiableOn.circleIntegral_sub_inv_smul) to the auxiliary function
H(z) = e^{zT} · (1 + z²/R²) · (g(z) - g_T(z)), converts the circle integral to a
parametric integral, simplifies the integrand algebraically, and shifts the integration
interval from [0, 2π] to [-π/2, 3π/2] using periodicity of e^{iθ}.
The differentiability of H on the closed ball is provided by
newman_cif_H_diffOn_closedBall (proved by combining the two focused axioms
newman_g_diffOn_closedBall and truncatedLaplaceTransform_differentiable
with the entireness of the exponential and polynomial factors).
Integrability of the Newman integrand.
The integrand (2πi)⁻¹ · (e^{w(θ)T} · (1 + w(θ)²/R²) / w(θ)) · (I · w(θ)) · φ(θ)
is interval-integrable on any bounded interval, since it is a continuous function of θ
(being a composition of exponentials, polynomials, and continuous functions g, g_T).
The book treats this as obvious.
Continuity of g ∘ w on the circle |z| = R.
When g is globally continuous, θ ↦ g(R · exp(iθ)) is continuous as a composition
of continuous functions. In newman_analytic_theorem, g is replaced by the globally
continuous extension g ∘ halfPlaneProj to satisfy this hypothesis.
Cauchy integral formula identity for Newman's contour (equation (6) in the book).
By Cauchy's integral formula applied to the holomorphic function
h(z) = (1 + z²/R²) * (g(z) - g_T(z)) on the disk |z| ≤ R, we have
h(0) = (2πi)⁻¹ ∮ h(z)/z dz. Splitting the circle integral into right and left
semicircles and using the definitions of I_plus, I_minus_gT, I_minus_g yields:
I_minus_g T = ∫_{π/2}^{3π/2} integrand T θ * g(w θ) dθ.
Proof. By newman_cif_equation6 (CIF, cited as known in the book):
g(0) - g_T(0) = ∫_{-π/2}^{3π/2} integrand·(g - g_T)
Split the full circle into right [-π/2, π/2] and left [π/2, 3π/2] semicircles.
The right part equals I_plus. On the left part, split integrand·(g - g_T) into
integrand·g - integrand·g_T. The integrand·(-g_T) integral equals I_minus_gT.
Substituting and simplifying algebraically gives the result.
1 + exp(2iθ) = 2 cos(θ) · exp(iθ).
For Re(s) < 0, the product ‖exp(sT)‖ * ‖g_T(s)‖ is bounded by B / (-Re(s)).
This is because exp(sT) * g_T(s) = ∫₀ᵀ exp(s(T-t)) f(t) dt, and for Re(s) < 0,
|exp(s(T-t))| = exp(Re(s)(T-t)) ≤ 1 when T-t ≥ 0. The tighter bound uses the
precise integral of the exponential.
For Re(w) > 0, the product ‖exp(wT) * (g(w) - g_T(w))‖ is bounded by B / Re(w).
This is because g(w) - g_T(w) = ∫_T^∞ e^{-wt} f(t) dt (the tail of the Laplace transform),
and multiplying by e^{wT} gives ∫_T^∞ e^{w(T-t)} f(t) dt, whose norm is bounded by
B ∫_T^∞ e^{-Re(w)·(t-T)} dt = B / Re(w).
Newman's contour integral decomposition and bounds.
This axiom encapsulates the core of Newman's contour integral argument (book proof,
lines 2915–2989). For fixed R > 0, the proof constructs a contour C consisting of
semicircles C₊ (in Re(z) > 0) and C₋ (in Re(z) < 0), and uses Cauchy's integral
formula with the auxiliary kernel e^{zT}(1 + z²/R²)/z to decompose
g(0) - g_T(0) into three contour integral contributions:
I_plus T: the integral over the right semicircleC₊. Bounded byB/Rbecause the exponential factorse^{-Re(z)T}ande^{Re(z)T}cancel, and|1 + z²/R²|/|z| = 2·Re(z)/R²on the circle|z| = R.I_minus_gT T: theg_Tcontribution over the left semicircleC₋. Bounded byB/Rusing|g_T(z)| ≤ B·e^{-Re(z)·T}/|Re(z)|forRe(z) < 0, combined with the same weight function cancellation.I_minus_g T: thegcontribution over the left semicircleC₋. Tends to0asT → ∞by the Dominated Convergence Theorem, since|e^{zT}| → 0forRe(z) < 0whileg(z)(1+z²/R²)/zisT-independent and integrable onC₋.
This is a faithful encoding of the book's sub-steps: equation (6) (Cauchy's formula),
the right-semicircle bound (lines 2925–2950), the left-semicircle g_T-bound
(lines 2952–2971), and the dominated convergence argument (lines 2978–2989).
Combined contour estimate.
Combining the three bounds from newman_contour_decomposition with the
triangle inequality gives: for every R > 0 and ε > 0, eventually
‖g(0) - ∫₀ᵀ f(t) dt‖ < 2B/R + ε.
This is the key estimate before the final R → ∞ argument.
Theorem 1 (Analytic Theorem), Lectures 21–22.
Let f : ℝ → ℂ be bounded and locally integrable on [0, ∞), and define
$$g(z) = \int_0^\infty e^{-zt}\,f(t)\,dt \quad \text{for } \operatorname{Re}(z) > 0.$$
If g extends to a holomorphic (i.e., complex-differentiable) function on the
closed right half-plane {z : ℂ | 0 ≤ z.re}, then
$$\lim_{T \to \infty} \int_0^T f(t)\,dt$$
exists and equals g(0).
This is Newman's key analytic lemma used in his simplified proof of the
Prime Number Theorem. The proof (given in the book) proceeds by writing
g(0) - g_T(0) via Cauchy's integral formula with an auxiliary kernel
e^{zT}(1 + z²/R²)/z along a contour consisting of a large semicircle
in Re(z) > 0 and a slightly indented semicircle in Re(z) < 0.
Bounding each piece shows |g(0) - g_T(0)| ≤ 2B/R, and letting R → ∞
yields convergence.
Faithfulness to the textbook: This theorem faithfully captures all hypotheses and the conclusion of Newman's Analytic Theorem (Theorem 1, Lecture 21):
f : ℝ → ℂis bounded and locally integrable on[0, ∞)— matches "f(t) bounded and locally integrable"gis defined as the Laplace transform∫₀^∞ e^{-zt} f(t) dtforRe(z) > 0— matches the book's definitiongextends holomorphically to the closed right half-plane{z : ℂ | 0 ≤ z.re}— encoded as∀ z : ℂ, 0 ≤ z.re → DifferentiableAt ℂ g z, matching the book's assumption thatgextends to a holomorphic function onRe(z) ≥ 0- The conclusion
lim_{T→∞} ∫₀ᵀ f(t) dt = g(0)— exactly matches the book
Statement II: Holomorphic extension of ζ(s) - 1/(s-1) #
Statement II (Lectures 21–22): ζ(s) − 1/(s − 1) extends to a holomorphic function in the
half-plane {s : ℂ | 0 < s.re}. Equivalently, ζ has a meromorphic continuation to this
half-plane with a unique simple pole at s = 1 of residue 1.
More precisely, there exists a function f that is complex-differentiable on {s | 0 < s.re}
and agrees with s ↦ ζ(s) - 1/(s - 1) for every s in the half-plane with s ≠ 1.
Chebyshev's Bound on θ(x) #
Statement III (Lectures 21-22: The Prime Number Theorem) #
Statement III. 𝒱(x) = O(x)
where 𝒱(x) = θ(x) = ∑_{p ≤ x, prime} log p is the first Chebyshev function (sum of log p
over all primes p ≤ x). The book defines 𝒱(x) at line 2645 as ∑_{p ≤ x, prime} log p,
which is precisely θ(x).
Definitions #
chebyshevTheta xis the first Chebyshev functionθ(x) = ∑_{p ≤ x} log p, where the sum is over primesp ≤ x. This is the book's𝒱(x).
Main results #
chebyshevTheta_le_const_mul: the explicit boundθ(x) ≤ log(4) · xfor allx ≥ 0.chebyshevTheta_isBigO: the asymptotic statementθ(x) = O(x)asx → ∞.
Proof outline #
The proof follows from Chebyshev's classical argument using binomial coefficients, as developed
in Mathlib's Mathlib.NumberTheory.Chebyshev:
The first Chebyshev function θ(x) = ∑_{p ≤ x} log p satisfies θ(x) ≤ log(4) · x
because the primorial ∏_{p ≤ n} p divides 4^n (from C(2n, n) ≤ 4^n).
This directly gives the O(x) bound.
References #
- Statement III, Lectures 21-22 of the textbook.
The first Chebyshev function θ(x) = ∑_{p ≤ x, prime} log p, where the sum is over
all primes p ≤ x. This is the book's 𝒱(x), defined at line 2645 as ∑_{p ≤ x, prime} log p.
This is definitionally equal to Chebyshev.theta from Mathlib.
Instances For
chebyshevTheta agrees with Mathlib's Chebyshev.theta.
The first Chebyshev function is nonneg.
Chebyshev's bound (explicit form). The first Chebyshev function satisfies
θ(x) ≤ log(4) · x for all x ≥ 0.
This is Statement III from Lectures 21-22. The book's 𝒱(x) is θ(x).
Chebyshev's bound (big-O form). Statement III from Lectures 21-22:
the first Chebyshev function θ(x) = ∑_{p ≤ x} log p satisfies θ(x) = O(x) as x → ∞.
The book defines 𝒱(x) = ∑_{p ≤ x, prime} log p, which is the first Chebyshev function θ(x).
Statement III asserts 𝒱(x) = O(x). This follows directly from the classical bound
θ(x) ≤ log(4) · x for all x ≥ 0 (Chebyshev's argument via binomial coefficients).
Statement IV: Non-vanishing of ζ and holomorphic extension of Φ(s) - 1/(s-1) #
Statement IV (Lectures 21–22): $\zeta(s) \neq 0$ and $\Phi(s) - \frac{1}{s-1}$ is holomorphic for $\operatorname{Re} s \geq 1$, where $\Phi(s) = -\zeta'(s)/\zeta(s)$.
The non-vanishing of $\zeta$ on the closed half-plane $\operatorname{Re} s \geq 1$ is the key ingredient for the Prime Number Theorem. The proof uses the classical 3-4-1 trick: the inequality $3 + 4\cos\theta + \cos 2\theta \geq 0$ combined with positivity of Dirichlet series yields that any zero of $\zeta$ on $\operatorname{Re} s = 1$ would force $\zeta$ to have a zero of impossibly high order.
Statement IV(a) (Lectures 21–22): The Riemann zeta function does not vanish on the
closed half-plane {s : ℂ | 1 ≤ s.re}.
The proof uses the classical 3-4-1 trick: the trigonometric inequality
3 + 4 cos θ + cos 2θ ≥ 0 combined with the Euler product and positivity of Dirichlet
series shows that any zero of ζ on the line Re(s) = 1 would lead to a contradiction.
For Re(s) > 1, non-vanishing follows from the Euler product (Statement I).
Note: In Mathlib's convention, riemannZeta 1 is a junk value (since ζ has a pole at s = 1),
but this junk value happens to be nonzero, so the statement holds without excluding s = 1.
Statement IV(b) (Lectures 21–22): The function Φ(s) − 1/(s−1) extends to a
holomorphic function on {s : ℂ | 1 ≤ s.re}, where Φ(s) = −ζ′(s)/ζ(s) is the negative
logarithmic derivative of the Riemann zeta function.
Since ζ has a simple pole at s = 1 with residue 1, the logarithmic derivative
−ζ′/ζ has a simple pole at s = 1 with residue 1, so −ζ′/ζ − 1/(s−1) has a
removable singularity at s = 1.
More precisely, we construct a holomorphic extension using the function (s−1)·ζ(s),
which extends to a holomorphic function Ψ on {s | 0 < s.re} with Ψ(1) = 1
(from Statement II). The identity −ζ′/ζ − 1/(s−1) = −Ψ′/Ψ holds for s ≠ 1,
and since Ψ(1) = 1 ≠ 0, the function −Ψ′/Ψ is holomorphic at s = 1.