Schoenfeld's bounds for psi and theta from the formalized Riemann hypothesis

Schoenfeld's bounds for psi and theta from the formalized Riemann hypothesis This record announces a Lean 4 formalization of Schoenfeld's explicit bounds for the Chebyshev functions: for every real x at least 10^15, |psi(x) - x| is at most sqrt(x) log^2(x)/(8 pi), and the same holds for theta(x). Schoenfeld (Math. Comp. 30, 1976) proved these bounds under the Riemann hypothesis. Here they are proved in Lean 4 from the theorem riemannHypothesis of the community repository leanprover-community/riemann-hypothesis (proof by Levent Alpöge with Claude, condensed by the Lean community), with no further hypothesis. The Lean theorems are SchoenfeldS1.schoenfeld_psi and SchoenfeldS1.schoenfeld_theta; their only axioms are propext, Classical.choice and Quot.sound; no sorry and no native_decide are used. The proof ports the Schoenfeld-type argument of goldbach-lean (Steve Hubbard, Apache-2.0) and proves its zero-counting inputs: the Riemann-von Mangoldt identity N(T) = theta(T)/pi + 1 + S(T) by the argument principle (Tau Ceti), a Backlund-type bound |S(T)| at most 4.5 log T + 17.08 by Jensen's formula (Mathlib), an explicit Stirling bound for the Riemann-Siegel theta function, and a kernel-checked Euler-Maclaurin certificate (49 intervals, exact rational arithmetic) that zeta has no zero of height in (0, 14]. The cruder zero-counting constants are why the range starts at 10^15 rather than at Schoenfeld's 73.2 and 599. Caveat: the result is conditional on the correctness of the formalized proof of the Riemann hypothesis. That proof is machine-checked, but independent review is ongoing. Code: https://github.com/HaveMindHive/schoenfeld-lean (commit 8920d16, Apache-2.0). Environment: riemann-hypothesis commit 8c828ed, Lean v4.37.0-rc1, Mathlib 31ce06ea, Tau Ceti 2a9233e5. AI use: the formalization was carried out by Anthropic's Claude models (Opus, Fable) working under the author's direction; the author designed and directed the project. All proofs are checked by Lean's kernel. Files: the paper (CC BY 4.0) and a snapshot of the Lean code, github.com/HaveMindHive/schoenfeld-lean at commit 8920d16 (Apache-2.0; ported code keeps its original headers).

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-27
DOI
https://doi.org/10.5281/zenodo.24606896
Primary Topic
Analytic Number Theory Research
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Schoenfeld's bounds for psi and theta from the formalized Riemann hypothesis

Turaq Rayn-McLean
Zenodo (CERN European Organization for Nuclear Research)
Analytic Number Theory Research
preprint

Schoenfeld's bounds for psi and theta from the formalized Riemann hypothesis

Turaq Rayn-McLean
preprint en

Abstract

Schoenfeld's bounds for psi and theta from the formalized Riemann hypothesis This record announces a Lean 4 formalization of Schoenfeld's explicit bounds for the Chebyshev functions: for every real x at least 10^15, |psi(x) - x| is at most sqrt(x) log^2(x)/(8 pi), and the same holds for theta(x). Schoenfeld (Math. Comp. 30, 1976) proved these bounds under the Riemann hypothesis. Here they are proved in Lean 4 from the theorem riemannHypothesis of the community repository leanprover-community/riemann-hypothesis (proof by Levent Alpöge with Claude, condensed by the Lean community), with no further hypothesis. The Lean theorems are SchoenfeldS1.schoenfeld_psi and SchoenfeldS1.schoenfeld_theta; their only axioms are propext, Classical.choice and Quot.sound; no sorry and no native_decide are used. The proof ports the Schoenfeld-type argument of goldbach-lean (Steve Hubbard, Apache-2.0) and proves its zero-counting inputs: the Riemann-von Mangoldt identity N(T) = theta(T)/pi + 1 + S(T) by the argument principle (Tau Ceti), a Backlund-type bound |S(T)| at most 4.5 log T + 17.08 by Jensen's formula (Mathlib), an explicit Stirling bound for the Riemann-Siegel theta function, and a kernel-checked Euler-Maclaurin certificate (49 intervals, exact rational arithmetic) that zeta has no zero of height in (0, 14]. The cruder zero-counting constants are why the range starts at 10^15 rather than at Schoenfeld's 73.2 and 599. Caveat: the result is conditional on the correctness of the formalized proof of the Riemann hypothesis. That proof is machine-checked, but independent review is ongoing. Code: https://github.com/HaveMindHive/schoenfeld-lean (commit 8920d16, Apache-2.0). Environment: riemann-hypothesis commit 8c828ed, Lean v4.37.0-rc1, Mathlib 31ce06ea, Tau Ceti 2a9233e5. AI use: the formalization was carried out by Anthropic's Claude models (Opus, Fable) working under the author's direction; the author designed and directed the project. All proofs are checked by Lean's kernel. Files: the paper (CC BY 4.0) and a snapshot of the Lean code, github.com/HaveMindHive/schoenfeld-lean at commit 8920d16 (Apache-2.0; ported code keeps its original headers).

Zenodo (CERN European Organization for Nuclear Research)
Analytic Number Theory Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon