Partial sum of logarithm… to Integral form for second error…

LemmaPartial sum of logarithm identity#

For any \(x \geq 1\), one has

\[ \sum_{n \leq x} \log n = x \log x - (\{ x \}-1/2) \log x - x + 1 + \int_1^x (\{ t \}-1/2) \frac{dt}{t} \]

(NOTE: this identity is not actually needed in the proof of Mertens' theorems, but may be worth recording nevertheless.)

Proof

Apply the Euler-Maclaurin formula.

Lean

Formalized as Mertens.sum_log_eq.

Sources

LemmaPartial sum of logarithm upper bound#

For any \(x \geq 1\), one has

\[ \sum_{n \leq x} \log n \leq x \log x. \]
Proof

Trivial since \(\log n \leq \log x\).

Lean

Formalized as Mertens.sum_log_le.

Sources
Used by 1

CorollaryPartial sum of logarithm lower bound#

For any \(x \geq 1\), one has

\[ \sum_{n \leq x} \log n \geq x \log x - 2 x. \]
Proof

We have

\[ \begin{aligned} \sum_{n \leq x} \log n &= \sum_{2 \leq n \leq \lfloor x \rfloor} \log n \\ &\geq \sum_{2 \leq n \leq \lfloor x \rfloor} \int_{n-1}^n \log t \, dt \\ &= \int_1^{\lfloor x \rfloor} \log t \, dt \\ &\geq \int_1^x \log t\ dt - \log x \\ &= x \log x - x - \log x \\ &\geq x \log x - 2 x. \end{aligned} \]

Here we use the monotonicity of \(\log n\) (and its vanishing at \(n=1\)) and the crude bound \(\log x \leq x\). Note: the tools at Mathlib.Analysis.SumIntegralComparisons may be useful.

Lean

Formalized as Mertens.sum_log_ge.

Sources
Used by 1

PropositionPartial sum of logarithm as logarithm of factorial#

For any \(x \geq 1\), one has

\[ \sum_{n \leq x} \log n = \log(\lfloor x \rfloor!). \]
Proof

Follows from the definition of the factorial function. Is not needed for the Mertens theorems, but is a natural fact to have.

Lean

Formalized as Mertens.sum_log_eq_log_factorial.

Sources

LemmaPartial sum of logarithm as sum of \(\Lambda(d)/d\)#

For any real \(x\), one has

\[ \sum_{n \leq x} \log n = \sum_{d \leq x} \Lambda(d) \lfloor \frac{x}{d} \rfloor. \]
Proof

We have

\[ \begin{aligned} \sum_{n \leq x} \log n &= \sum_{n \leq x} \sum_{d \mid n} \Lambda(d) = \sum_{d \leq x} \Lambda(d) \sum_{n \leq x, d \mid n} 1 = \sum_{d \leq x} \Lambda(d) \left\lfloor \frac{x}{d} \right\rfloor. \end{aligned} \]
Lean

Formalized as Mertens.sum_log_eq_sum_mangoldt.

Sources
Used by 2

CorollaryPartial sum of \(\Lambda(d)/d\) upper bound#

For any \(x \geq 1\), one has

\[ E_{1,\Lambda}(x) \leq \log 4 + 4. \]
Proof

Insert Lemma Partial sum of logarithm as sum of \(\Lambda(d)/d\) into Lemma Partial sum of logarithm upper bound and upper bound \(x/d\) by \(\lfloor x/d \rfloor + 1\), and use the Mathlib bound \(\psi(x) \leq (\log 4 + 4) x\).

Lean

Formalized as Mertens.E₁Λ.le.

Sources
Uses 3 · Used by 3

CorollaryMertens' first theorem (von Mangoldt form)#

For any \(x \geq 1\), one has

\[ \sum_{n \leq x} \frac{\Lambda(n)}{n} = \log x + O(1). \]
Proof

Immediate from previous two corollaries.

Lean

Formalized as Mertens.sum_mangoldt_div_eq_log.

Sources
Uses 3 · Used by 2

CorollaryPrime error for Mertens first theorem bounded by von Mangoldt error#

For any \(x \geq 1\), one has

\[ E_{1,p}(x) \leq E_{1,\Lambda}(x). \]
Proof

Drop all terms in Lemma Partial sum of logarithm as sum of \(\Lambda(d)/d\) arising from prime powers.

Lean

Formalized as Mertens.E₁p.le_E₁Λ.

Sources
Uses 2 · Used by 1

CorollaryPartial sum of \(\frac{\log p}{p}\) upper bound#

For any \(x \geq 1\), one has

\[ E_{1,p}(x) \leq \log 4 + 4. \]
Proof

Drop all terms in Lemma Mertens-sum-mangoldt-div-le arising from prime powers.

Lean

Formalized as Mertens.E₁p.le.

Sources
Uses 4 · Used by 3

Proposition\(E_1\) summable#

The series \(E_1 := \sum_p \frac{\log p}{p(p-1)}\) converges.

Proof

We have \(\sum_{n=2}^\infty \frac{\log n}{n(n-1)}\) converges by comparison with \(\sum_{n=2}^\infty \frac{2\log n}{n^2}\), which converges by the integral test. By a further application of comparison test we can conclude that \(E_1\) converges as well. Alternatively bound \(\log n\) by \(2\sqrt n\) and use the existing Mathlib API for \(\sum n^{-3/2}\).

Lean

Formalized as Mertens.E₁.summable.

Sources
Used by 2

PropositionUpper bound on \(E_1\)#

One has \(E_1 \leq \frac{5 \log 2 + 3}{4}\)

Proof

We can bound \(E_1 \leq \sum_{n=2}^\infty \frac{\log n}{n(n-1)} \leq \frac{\log 2}{2} + \frac{3}{2} \sum_{n=3}^\infty \frac{\log n}{n^2}\). Calculus shows that \(\log x / x^2\) is decreasing for \(x \geq 2 > e^{1/2}\), so we can bound \(\sum_{n=3}^\infty \frac{\log n}{n^2} \leq \int_2^\infty \frac{\log t}{t^2}\ dt = \frac{\log 2+1}{2}\).

Lean

Formalized as Mertens.E₁.le.

Sources
Uses 1 · Used by 1

CorollaryPartial sum of \(\frac{\log p}{p}\) lower bound#

For any \(x \geq 1\), one has

\[ E_{1,\Lambda}(x) \leq E_{1,p}(x) + E_1 \]

and thus

\[ E_{1,p}(x) \geq -2 - E_1 \]

where

\[ E_1 := \sum_{p} \frac{\log p}{p(p-1)}. \]
Proof

Use the triangle inequality and the geometric series formula to estimate in Lemma Mertens-sum-mangoldt-div-le arising from prime powers.

Lean

Formalized as Mertens.E₁Λ.le_E₁p_add_E₁.

Sources
Uses 3 · Used by 3

LemmaIntegral identity involving inverse log weight#

For any \(x \geq 2\) and any \(f : {\mathbb N} \mapsto {\mathbb R}\), one has

\[ \sum_{2 \leq n \leq x} \frac{f(n)}{\log n} = \frac{1}{\log x} \sum_{2 \leq n \leq x} f(n) + \int_2^x \frac{1}{t \log^2 t} \sum_{2 \leq n \leq t} f(n) \, dt \]
Proof

Establish the identity

\[ \frac{1}{\log n} = \frac{1}{\log x} + \int_2^x \frac{1}{t \log^2 t} 1_{t \geq n}\ dt \]

for \(2 \leq n \leq x\),multiply by \(f(n)\), then sum.

Lean

Formalized as _private.PrimeNumberTheoremAnd.IEANTN.Mertens.0.Mertens.sum_div_log_eq.

Sources
Used by 2

CorollaryIntegral form for second error (von Mangoldt form)#

For any \(x \geq 2\), one has

\[ E_{2,\Lambda}(x) = \frac{E_{1,\Lambda}(x)}{\log x} - \int_x^\infty \frac{E_{1,\Lambda}(t)}{t \log^2 t}\ dt \]
Proof

From Lemma Integral identity involving inverse log weight one has

\[ \sum_{n \leq x} \frac{\Lambda(n)}{n \log n} = \frac{1}{\log x} \sum_{n \leq x} \frac{\Lambda(n)}{n} + \int_2^x \frac{1}{t \log^2 t} \sum_{n \leq t} \frac{\Lambda(n)}{n} \, dt. \]

Now substitute the definitions of \(E_{1,\Lambda}\), \(E_{2,\Lambda}\), \(\gamma\) and simplify.

Lean

Formalized as Mertens.E₂Λ.eq.

Sources
Uses 5 · Used by 1

The dependency explorer needs JavaScript and its graph data.

Download the complete graph data.