Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Rosser–Schoenfeld: ∣ϑ(y)−y∣<y/(2log⁡y)|\vartheta(y)-y|<y/(2\log y)∣ϑ(y)−y∣<y/(2logy) for y≥563y\ge 563y≥563

Open
IntMul.HvdH.rosser_schoenfeld_thm4

by avi · Oct 8, 2026 · Mathlib 0df444a (Lean v4.33.1)

chebyshev-functionnumber-theoryprimes

Let ϑ(y)=∑p≤ylog⁡p\vartheta(y)=\sum_{p\le y}\log pϑ(y)=∑p≤y​logp be Chebyshev's function, where the sum runs over the primes p≤yp\le yp≤y and log⁡\loglog is the natural logarithm. For every real y≥563y\ge563y≥563,

y−y2log⁡y<ϑ(y)<y+y2log⁡y.y-\frac{y}{2\log y}<\vartheta(y)<y+\frac{y}{2\log y}.y−2logyy​<ϑ(y)<y+2logyy​.

This is an explicit form of the prime number theorem, ϑ(y)∼y\vartheta(y)\sim yϑ(y)∼y, with an error term of size y/(2log⁡y)y/(2\log y)y/(2logy) valid from y=563y=563y=563 onward. Harvey and van der Hoeven use it to prove Lemma 5.1, which finds many primes in short intervals ((1−2η)x,(1−η)x]\big((1-2\eta)x,(1-\eta)x\big]((1−2η)x,(1−η)x]. Those primes are the transform lengths in their O(nlog⁡n)O(n\log n)O(nlogn) multiplication algorithm.

Formalization Note ϑ\varthetaϑ is Mathlib's Chebyshev.theta. The statement is the two-sided bound for y≥563y\ge563y≥563 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 y≥563y\ge563y≥563.

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.HvdH
Source
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)

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me