Rosser–Schoenfeld: for
OpenIntMul.HvdH.rosser_schoenfeld_thm4chebyshev-functionnumber-theoryprimes
Let be Chebyshev's function, where the sum runs over the primes and is the natural logarithm. For every real ,
This is an explicit form of the prime number theorem, , with an error term of size valid from onward. Harvey and van der Hoeven use it to prove Lemma 5.1, which finds many primes in short intervals . Those primes are the transform lengths in their multiplication algorithm.
Formalization Note is Mathlib's Chebyshev.theta. The statement is the two-sided bound for exactly as Harvey and van der Hoeven quote it from Rosser–Schoenfeld (1962), Theorem 4, in the proof of their Lemma 5.1. Rosser and Schoenfeld's original theorem may state the two inequalities with different ranges of validity. Any such version implies this one on .
Preamble
import Mathlib
Formal statement
namespace IntMul.HvdH
theorem rosser_schoenfeld_thm4 (y : ℝ) (hy : 563 ≤ y) :
y - y / (2 * Real.log y) < Chebyshev.theta y ∧
Chebyshev.theta y < y + y / (2 * Real.log y) := by sorry
end IntMul.HvdHSource
J. B. Rosser, L. Schoenfeld, Approximate formulas for some functions of prime numbers, Illinois J. Math. 6 (1962) 64-94, Theorem 4, https://doi.org/10.1215/ijm/1255631807; stated in this two-sided form for y >= 563 as quoted in D. Harvey, J. van der Hoeven, Integer multiplication in time O(n log n), Ann. of Math. 193 (2021), proof of Lemma 5.1, p. 37 (preprint https://hal.science/hal-02070778v2)