Adapted from PrimeNumberTheoremAnd/IEANTN/Mertens.lean, AlexKontorovich/PrimeNumberTheoremAnd revision c39a751132c88b6e8080b74c74023fd95b3d8be0 (Apache-2.0). The first Mertens theorem only; blueprint metadata and unused results omitted. The explicit error constant is relaxed to avoid unrelated integral estimates.
First Mertens theorem with a coefficient-independent bounded error. Adapted proofs retain the upstream theorem names inside a project namespace.
theorem
CCDN.Mertens.sum_log_eq_sum_mangoldt
{x : ℝ}
:
∑ n ∈ Finset.Ioc 0 ⌊x⌋₊, Real.log ↑n = ∑ d ∈ Finset.Ioc 0 ⌊x⌋₊, ArithmeticFunction.vonMangoldt d * ↑⌊x / ↑d⌋₊
@[reducible, inline]
The error in the logarithmically weighted von Mangoldt sum.
Equations
- CCDN.Mertens.E₁Λ x = ∑ d ∈ Finset.Ioc 0 ⌊x⌋₊, ArithmeticFunction.vonMangoldt d / ↑d - Real.log x
Instances For
theorem
CCDN.Mertens.sum_mangoldt_div_eq_log' :
Asymptotics.IsEquivalent Filter.atTop (fun (x : ℝ) => ∑ d ∈ Finset.Ioc 0 ⌊x⌋₊, ArithmeticFunction.vonMangoldt d / ↑d)
fun (x : ℝ) => Real.log x
@[reducible, inline]
The error in the prime sum of log p / p.
Equations
- CCDN.Mertens.E₁p x = ∑ p ∈ Finset.Ioc 0 ⌊x⌋₊ with Nat.Prime p, Real.log ↑p / ↑p - Real.log x