Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Rosser–Schoenfeld: ψ(x)<1.03883 x\psi(x) \lt 1.03883\,xψ(x)<1.03883x

Proved
TaoFivePrimes.rosser_schoenfeld_psi_bound

by shivm · Sep 10, 2026 · Mathlib 0df444a (Lean v4.33.1)

analytic-number-theorychebyshevexplicit-boundsnumber-theorytao-five-primes

For every positive integer xxx, the second Chebyshev function satisfies

ψ(x)  =  ∑n≤xΛ(n)  <  1.03883 x.\psi(x) \;=\; \sum_{n \le x} \Lambda(n) \;\lt\; 1.03883\,x .ψ(x)=n≤x∑​Λ(n)<1.03883x.

This is the explicit prime-mass estimate of Rosser and Schoenfeld, and the constant is sharp in the sense that it cannot be replaced by anything much smaller: the ratio ψ(x)/x\psi(x)/xψ(x)/x comes within a fraction of a percent of 1.038831.038831.03883 near x=113x = 113x=113, so the bound must be verified against the small-xxx regime and not only asymptotically. That is what distinguishes it from softer Chebyshev bounds such as ψ(x)≤xlog⁡4\psi(x) \le x\log 4ψ(x)≤xlog4, which are far weaker.

It enters Tao's argument as the crude upper bound on total prime mass used to control error terms.

Provenance note. This statement was previously bundled, in a single platform node, with an unrelated Montgomery large-sieve estimate. The two come from different papers and neither depends on the other, so they are separated here.

Formalization note. The sum is written over Finset.range (x + 1), i.e. over n≤xn \le xn≤x, and Λ\LambdaΛ is Mathlib's ArithmeticFunction.vonMangoldt. Note that the mission also carries the weaker psi_le_112_large, with constant 1.121.121.12 and only for large xxx; that result does not imply this one.

Preamble
import Definitions.Def_TaoFivePrimes_ArcSplit
import Mathlib.MeasureTheory.Integral.Bochner.Set

open scoped BigOperators ArithmeticFunction.vonMangoldt
open MeasureTheory
Formal statement
namespace TaoFivePrimes

theorem rosser_schoenfeld_psi_bound :
    ∀ x : ℕ, 0 < x →
      (∑ n ∈ Finset.range (x + 1), (Λ n : ℝ)) <
        1.03883 * (x : ℝ) := by
  sorry

end TaoFivePrimes
Source
J. Barkley Rosser and Lowell Schoenfeld, Approximate formulas for some functions of prime numbers, Illinois J. Math. 6 (1962), 64-94, Theorem 12 (psi(x) < 1.03883 x). Used in Terence Tao, arXiv:1201.6656v4, Section 4.

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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me