Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Two-sided Chebyshev psi error from 10^8 to exp(23)

Proved
TaoFivePrimes.schoenfeld_psi_error_to_exp23

by Johan Mercedes · Oct 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

chebyshev-functionsexplicit-boundsnumber-theory

Let ψ(y)=∑n≤yΛ(n)\psi(y)=\sum_{n\le y}\Lambda(n)ψ(y)=∑n≤y​Λ(n) be the second Chebyshev function. For every real yyy in the bounded interval 108≤y<e2310^8\le y<e^{23}108≤y<e23,

∣ψ(y)−y∣≤y40log⁡y.|\psi(y)-y|\le \frac{y}{40\log y}.∣ψ(y)−y∣≤40logyy​.

This is the bounded-range portion of the explicit Chebyshev estimate used in Tao’s Lemma 4.3. The endpoints are included at 10810^8108 and excluded at e23e^{23}e23; no Riemann hypothesis is assumed.

Preamble
import Mathlib.NumberTheory.Chebyshev
import Mathlib.Analysis.SpecialFunctions.Log.Basic
Formal statement
theorem TaoFivePrimes.schoenfeld_psi_error_to_exp23 (y : ℝ) (hy : 10 ^ 8 ≤ y) (hupper : y < Real.exp 23) : |Chebyshev.psi y - y| ≤ y / (40 * Real.log y) := by sorry
Source
Terence Tao, Every odd number greater than 1 is the sum of at most five primes, arXiv:1201.6656v4, Section 4, proof of Lemma 4.3, https://arxiv.org/html/1201.6656v4#S4, citing J. B. Rosser and L. Schoenfeld, Sharper bounds for the Chebyshev functions theta(x) and psi(x), Math. Comp. 29 (1975), Theorem 7. This is the restriction to 10^8 ≤ y < exp(23) of the estimate used there.

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