Uniform real-cutoff error bound for the double harmonic sum
ProvedPrimePairSieve.double_harmonic_uniform_error_twoharmonic-sumsnumber-theorysieve-theory
Let and let be the Euler–Mascheroni constant. For every positive real , put
There is one real constant satisfying
such that every satisfies the explicit estimate
The same constant appears in the limit and the kernel estimate. The estimate covers noninteger cutoffs and the empty-sum range . This kernel controls the remainder when a dimension-two sieve denominator is written as a Dirichlet convolution with two reciprocal sequences. The coefficient is a coarser bound than the source's ; the latter is not asserted here.
Preamble
import Mathlib.NumberTheory.Harmonic.EulerMascheroni import Mathlib.Analysis.SpecialFunctions.Pow.Real set_option autoImplicit false open scoped BigOperators Topology
Formal statement
theorem PrimePairSieve.double_harmonic_uniform_error_two :
∃ c : ℝ, (-(1 / 6 : ℝ) ≤ c ∧ c ≤ 0) ∧
Filter.Tendsto
(fun n : ℕ =>
(∑ a ∈ Finset.Icc 1 n, Real.log (a : ℝ) / (a : ℝ)) -
Real.log (n : ℝ)^2 / 2)
Filter.atTop (𝓝 c) ∧
∀ t : ℝ, 0 < t →
|(∑ a ∈ Finset.Icc 1 ⌊t⌋₊,
(harmonic (⌊t⌋₊ / a) : ℝ) / (a : ℝ)) -
(Real.log t^2 / 2 + 2 * Real.eulerMascheroniConstant * Real.log t +
Real.eulerMascheroniConstant^2 - 2 * c)| ≤
2 * t ^ (-(1 / 3 : ℝ)) := by sorrySource
H. Riesel and R. C. Vaughan, On sums of primes, Arkiv för Matematik 21 (1983), 45–74, Lemma 1, printed pp. 48–50, with the logarithmically weighted harmonic limit in equation (2.1), p. 45. https://archive.ymsc.tsinghua.edu.cn/pacm_download/116/7384-11512_2006_Article_BF02384300.pdf . This is a coarser explicit remainder, not the source's numerical coefficient 1.641. Intended downstream use: the denominator estimate for TaoFivePrimes.siebert_prime_pair_bound.