The areas / V12. Number theory
Mathlib.NumberTheory.Harmonic.ZetaAsymp
53 declarations and 6 deprecated aliases. Mathlib docs · Source
Asymptotics of ζ s as s → 1 or s → 0
The goal of this file is to evaluate the limit of ζ s - 1 / (s - 1) as s → 1.
Main results
tendsto_riemannZeta_sub_one_div: the limit ofζ s - 1 / (s - 1), at the filter of punctured neighbourhoods of 1 inℂ, exists and is equal to the Euler-Mascheroni constantγ.deriv_riemannZeta_zero:ζ'(0) = -log(2π) / 2, which derives from the above.riemannZeta_one_ne_zero: with our definition ofζ 1(which is characterised as the limit ofζ s - 1 / (s - 1) / Gammaℝ sass → 1), we haveζ 1 ≠ 0.- Representation of
riemannZeta sas(s-1)⁻¹ + riemannZeta₀ sor(s-1)⁻¹ * riemannZeta₁ sfor certain entire functionsriemannZeta₀andriemannZeta₁. - Asymptotics for
deriv riemannZeta s,log (riemannZeta s),(deriv riemannZeta s) / (riemannZeta s)and(riemannZeta s)⁻¹ass → 1. riemannZeta_conj: the conjugation symmetryζ (conj s) = conj (ζ s)(valid for alls, since the junk valueζ 1is real).
Outline of arguments
We consider the sum F s = ∑' n : ℕ, f (n + 1) s, where s is a real variable and
f n s = ∫ x in n..(n + 1), (x - n) / x ^ (s + 1). We show that F s is continuous on [1, ∞),
that F 1 = 1 - γ, and that F s = 1 / (s - 1) - ζ s / s for 1 < s.
By combining these formulae, one deduces that the limit of ζ s - 1 / (s - 1) at 𝓝[>] (1 : ℝ)
exists and is equal to γ. Finally, using this and the Riemann removable singularity criterion
we obtain the limit along punctured neighbourhoods of 1 in ℂ.
Definitions
Evaluation of the sum for s = 1
Evaluation of the sum for 1 < s
Continuity of the sum
More asymptotics near s = 1
To facilitate the analysis of riemannZeta near s = 1, we write riemannZeta s additively as
(s-1)⁻¹ + riemannZeta₀ s and multiplicatively as (s-1)⁻¹ * riemannZeta₁ s for certain
entire functions riemannZeta₀, riemannZeta₁.
def ZetaAsymptotics.term E1 #
ℕ → ℝ → ℝ
Auxiliary function used in studying zeta-function asymptotics.
def ZetaAsymptotics.termSum E1 #
ℝ → ℕ → ℝ
Sum of finitely many terms.
def ZetaAsymptotics.termTSum E1 #
ℝ → ℝ
Topological sum of terms.
theorem ZetaAsymptotics.term_nonneg E1 #
∀ (n : ℕ) (s : ℝ), 0 ≤ ZetaAsymptotics.term n s
theorem ZetaAsymptotics.term_welldef E1 #
∀ {n : ℕ},
0 < n → ∀ {s : ℝ}, 0 < s → IntervalIntegrable (fun x ↦ (x - ↑n) / x ^ (s + 1)) MeasureTheory.volume (↑n) (↑n + 1)
theorem ZetaAsymptotics.term_one E1 #
∀ {n : ℕ}, 0 < n → ZetaAsymptotics.term n 1 = Real.log (↑n + 1) - Real.log ↑n - 1 / (↑n + 1)
theorem ZetaAsymptotics.termSum_one E1 #
∀ (N : ℕ), ZetaAsymptotics.termSum 1 N = Real.log (↑N + 1) - ↑(harmonic (N + 1)) + 1
theorem ZetaAsymptotics.term_tsum_one E1 #
HasSum (fun n ↦ ZetaAsymptotics.term (n + 1) 1) (1 - Real.eulerMascheroniConstant)
The topological sum of ZetaAsymptotics.term (n + 1) 1 over all n : ℕ is 1 - γ. This is
proved by directly evaluating the sum of the first N terms and using the limit definition of γ.
theorem ZetaAsymptotics.term_of_lt E1 #
∀ {n : ℕ},
0 < n →
∀ {s : ℝ},
1 < s →
ZetaAsymptotics.term n s =
1 / (s - 1) * (1 / ↑n ^ (s - 1) - 1 / (↑n + 1) ^ (s - 1)) - ↑n / s * (1 / ↑n ^ s - 1 / (↑n + 1) ^ s)
theorem ZetaAsymptotics.termSum_of_lt E1 #
∀ (N : ℕ) {s : ℝ},
1 < s →
ZetaAsymptotics.termSum s N =
1 / (s - 1) * (1 - 1 / (↑N + 1) ^ (s - 1)) - 1 / s * (∑ n ∈ Finset.range N, 1 / (↑n + 1) ^ s - ↑N / (↑N + 1) ^ s)
theorem ZetaAsymptotics.termTSum_of_lt E1 #
∀ {s : ℝ}, 1 < s → ZetaAsymptotics.termTSum s = 1 / (s - 1) - 1 / s * ∑' (n : ℕ), 1 / (↑n + 1) ^ s
For 1 < s, the topological sum of ZetaAsymptotics.term (n + 1) s over all n : ℕ is
1 / (s - 1) - ζ s / s.
theorem ZetaAsymptotics.zeta_limit_aux1 E1 #
∀ {s : ℝ}, 1 < s → ∑' (n : ℕ), 1 / (↑n + 1) ^ s - 1 / (s - 1) = 1 - s * ZetaAsymptotics.termTSum s
Reformulation of ZetaAsymptotics.termTSum_of_lt which is useful for some computations
below.
theorem ZetaAsymptotics.continuousOn_term E1 #
∀ (n : ℕ), ContinuousOn (fun x ↦ ZetaAsymptotics.term (n + 1) x) (Set.Ici 1)
theorem ZetaAsymptotics.continuousOn_termTSum E1 #
ContinuousOn ZetaAsymptotics.termTSum (Set.Ici 1)
theorem ZetaAsymptotics.tendsto_riemannZeta_sub_one_div_nhds_right E1 #
Filter.Tendsto (fun s ↦ riemannZeta ↑s - 1 / (↑s - 1)) (nhdsWithin 1 (Set.Ioi 1)) (nhds ↑Real.eulerMascheroniConstant)
First version of the limit formula, with a limit over real numbers tending to 1 from above.
theorem tendsto_riemannZeta_sub_one_div E3 #
Filter.Tendsto (fun s ↦ riemannZeta s - 1 / (s - 1)) (nhdsWithin 1 {1}ᶜ) (nhds ↑Real.eulerMascheroniConstant)
The function ζ s - 1 / (s - 1) tends to γ as s → 1.
theorem isBigO_riemannZeta_sub_one_div E1 #
∀ {F : Type u_1} [inst : Norm F] [inst_1 : One F] [NormOneClass F],
(fun s ↦ riemannZeta s - 1 / (s - 1)) =O[nhds 1] fun x ↦ 1
theorem ZetaAsymptotics.tendsto_Gamma_term_aux E0 #
Filter.Tendsto (fun s ↦ 1 / (s - 1) - 1 / s.Gammaℝ / (s - 1)) (nhdsWithin 1 {1}ᶜ)
(nhds (-(↑Real.eulerMascheroniConstant + Complex.log (4 * ↑Real.pi)) / 2))
theorem ZetaAsymptotics.tendsto_riemannZeta_sub_one_div_Gammaℝ E1 #
Filter.Tendsto (fun s ↦ riemannZeta s - 1 / s.Gammaℝ / (s - 1)) (nhdsWithin 1 {1}ᶜ)
(nhds ((↑Real.eulerMascheroniConstant - Complex.log (4 * ↑Real.pi)) / 2))
theorem riemannZeta_one E1 #
riemannZeta 1 = (↑Real.eulerMascheroniConstant - Complex.log (4 * ↑Real.pi)) / 2
Formula for ζ 1. Note that mathematically ζ 1 is undefined, but our construction ascribes
this particular value to it.
theorem completedRiemannZeta_one E1 #
completedRiemannZeta 1 = (↑Real.eulerMascheroniConstant - Complex.log (4 * ↑Real.pi)) / 2
Formula for Λ 1. Note that mathematically Λ 1 is undefined, but our construction ascribes
this particular value to it.
theorem completedRiemannZeta₀_one E1 #
completedRiemannZeta₀ 1 = (↑Real.eulerMascheroniConstant - Complex.log (4 * ↑Real.pi)) / 2 + 1
Formula for Λ₀ 1, where Λ₀ is the entire function satisfying
Λ₀ s = π ^ (-s / 2) Γ(s / 2) ζ(s) + 1 / s + 1 / (1 - s) away from s = 0, 1.
Note that s = 1 is not a pole of Λ₀, so this statement (unlike riemannZeta_one) is
a mathematically meaningful statement and is not dependent on Mathlib's particular conventions for
division by zero.
theorem riemannZeta_one_ne_zero E3 #
riemannZeta 1 ≠ 0
With Mathlib's particular conventions, we have ζ 1 ≠ 0.
theorem riemannZeta_conj E3 #
∀ (s : ℂ), riemannZeta ((starRingEnd ℂ) s) = (starRingEnd ℂ) (riemannZeta s)
Conjugation symmetry of the Riemann zeta function: ζ (conj s) = conj (ζ s).
Since ζ has real Dirichlet coefficients, conj (ζ (conj z)) = ζ z holds termwise for
1 < re z, and the identity principle propagates this to all s ≠ 1; the junk value ζ 1 is
real, so the identity also holds at s = 1.
theorem completedRiemannZeta_conj E0 #
∀ (s : ℂ), completedRiemannZeta ((starRingEnd ℂ) s) = (starRingEnd ℂ) (completedRiemannZeta s)
Conjugation symmetry of the completed zeta function: Λ (conj s) = conj (Λ s).
For 0 < re s this is riemannZeta_conj together with Gammaℝ_conj; the remaining
half-plane follows from the functional equation completedRiemannZeta_one_sub.
theorem riemannZeta_eventually_ne_zero_nhds_one E1 #
∀ᶠ (s : ℂ) in nhds 1, riemannZeta s ≠ 0
theorem completedRiemannZeta₀_zero E1 #
completedRiemannZeta₀ 0 = (↑Real.eulerMascheroniConstant - Complex.log (4 * ↑Real.pi)) / 2 + 1
theorem deriv_riemannZeta_zero E3 #
deriv riemannZeta 0 = -Complex.log (2 * ↑Real.pi) / 2
The derivative of riemannZeta at s = 0 equals -log(2π) / 2.
def riemannZeta₀ E3 #
ℂ → ℂ
riemannZeta₀ s is the completion of riemannZeta s - (s-1)⁻¹ at s = 1.
def riemannZeta₁ E3 #
ℂ → ℂ
riemannZeta₁ s is the completion of (s-1) * riemannZeta s at s = 1.
theorem riemannZeta₀_one E0 #
riemannZeta₀ 1 = ↑Real.eulerMascheroniConstant
theorem riemannZeta₁_one E0 #
riemannZeta₁ 1 = 1
theorem riemannZeta_eq_inv_sub_add E1 #
∀ {s : ℂ}, s ≠ 1 → riemannZeta s = (s - 1)⁻¹ + riemannZeta₀ s
theorem riemannZeta_eq_inv_sub_mul E1 #
∀ {s : ℂ}, s ≠ 1 → riemannZeta s = (s - 1)⁻¹ * riemannZeta₁ s
theorem differentiable_riemannZeta₀ E1 #
Differentiable ℂ riemannZeta₀
theorem differentiable_riemannZeta₁ E1 #
Differentiable ℂ riemannZeta₁
theorem riemannZeta₁_ne_zero_of_near_one E1 #
∀ᶠ (s : ℂ) in nhds 1, riemannZeta₁ s ≠ 0
theorem deriv_riemannZeta₁_one E0 #
deriv riemannZeta₁ 1 = ↑Real.eulerMascheroniConstant
theorem deriv_riemannZeta_eq_neg_inv_sub_sq_add E1 #
∀ {s : ℂ}, s ≠ 1 → deriv riemannZeta s = -(s - 1)⁻¹ ^ 2 + deriv riemannZeta₀ s
theorem deriv_riemannZeta_eq_neg_inv_sub_sq_mul_add E1 #
∀ {s : ℂ}, s ≠ 1 → deriv riemannZeta s = -(s - 1)⁻¹ ^ 2 * riemannZeta₁ s + (s - 1)⁻¹ * deriv riemannZeta₁ s
theorem deriv_riemannZeta_add_inv_sub_sq_bounded E1 #
(fun s ↦ deriv riemannZeta s + (s - 1)⁻¹ ^ 2) =O[nhdsWithin 1 {1}ᶜ] fun x ↦ 1
theorem log_riemannZeta_eq_neg_log_sub_add_ofReal E1 #
∀ {s : ℝ}, s > 1 → Real.log (riemannZeta ↑s).re = -Real.log (s - 1) + Real.log (riemannZeta₁ ↑s).re
theorem log_riemannZeta_add_log_sub_isBigO_ofReal E1 #
(fun s ↦ Real.log (riemannZeta ↑s).re + Real.log (s - 1)) =O[nhdsWithin 1 (Set.Ioi 1)] fun x ↦ x - 1
theorem log_riemannZeta_add_log_sub_isLittleO_ofReal E1 #
(fun s ↦ Real.log (riemannZeta ↑s).re + Real.log (s - 1)) =o[nhdsWithin 1 (Set.Ioi 1)] fun x ↦ 1
theorem log_deriv_riemannZeta_eq_neg_inv_sub_add E1 #
∀ᶠ (s : ℂ) in nhdsWithin 1 {1}ᶜ,
deriv riemannZeta s / riemannZeta s = -(s - 1)⁻¹ + deriv riemannZeta₁ s / riemannZeta₁ s
theorem log_deriv_riemannZeta_add_inv_sub_sub_isBigO E1 #
(fun s ↦ deriv riemannZeta s / riemannZeta s + (s - 1)⁻¹ - ↑Real.eulerMascheroniConstant) =O[nhdsWithin 1 {1}ᶜ] fun x ↦
x - 1
theorem log_deriv_riemannZeta_add_inv_sub_sub_isLittleO E1 #
(fun s ↦ deriv riemannZeta s / riemannZeta s + (s - 1)⁻¹ - ↑Real.eulerMascheroniConstant) =o[nhdsWithin 1 {1}ᶜ] fun x ↦
1
theorem log_deriv_riemannZeta_add_inv_sub_bounded E1 #
(fun s ↦ deriv riemannZeta s / riemannZeta s + (s - 1)⁻¹) =O[nhdsWithin 1 {1}ᶜ] fun x ↦ 1
theorem inv_riemannZeta_eq_sub_mul_of_ne_one E1 #
∀ {s : ℂ}, s ≠ 1 → (riemannZeta s)⁻¹ = (s - 1) * (riemannZeta₁ s)⁻¹
theorem inv_riemannZeta_eq_sub_mul E1 #
∀ᶠ (s : ℂ) in nhdsWithin 1 {1}ᶜ, (riemannZeta s)⁻¹ = (s - 1) * (riemannZeta₁ s)⁻¹
theorem inv_riemannZeta_sub_sub_isBigO E1 #
(fun s ↦ (riemannZeta s)⁻¹ - (s - 1)) =O[nhdsWithin 1 {1}ᶜ] fun s ↦ (s - 1) ^ 2
theorem inv_riemannZeta_sub_sub_isLittleO E1 #
(fun s ↦ (riemannZeta s)⁻¹ - (s - 1)) =o[nhdsWithin 1 {1}ᶜ] fun x ↦ x - 1
theorem inv_riemannZeta_isBigO E1 #
(fun s ↦ (riemannZeta s)⁻¹) =O[nhdsWithin 1 {1}ᶜ] fun x ↦ x - 1
Deprecated aliases
| Name | New name | Since |
|---|---|---|
ZetaAsymptotics.continuousOn_term_tsum | ZetaAsymptotics.continuousOn_termTSum | 2026-05-27 |
ZetaAsymptotics.term_sum | ZetaAsymptotics.termSum | 2026-05-27 |
ZetaAsymptotics.term_sum_of_lt | ZetaAsymptotics.termSum_of_lt | 2026-05-27 |
ZetaAsymptotics.term_sum_one | ZetaAsymptotics.termSum_one | 2026-05-27 |
ZetaAsymptotics.term_tsum | ZetaAsymptotics.termTSum | 2026-05-27 |
ZetaAsymptotics.term_tsum_of_lt | ZetaAsymptotics.termTSum_of_lt | 2026-05-27 |