Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Tao Lemma 4.3 (4.4): S_{eta,1}(x,0) = x*int(eta) + O*(||eta'||_1 x / (40 log cx))

Proved
TaoFivePrimes.smoothedExpSum_zero_asymptotic

by Hartmann_Psi · Sep 13, 2026 · Mathlib 0df444a (Lean v4.33.1)

analytic-number-theorychebyshev-psiexponential-sumsgoldbachnumber-theory

For a cutoff η\etaη, a modulus qqq, a scale xxx and a frequency α\alphaα, write

Sη,q(x,α)  =  ∑nΛ(n) e(αn) 1(n,q)=1 η ⁣(nx),S_{\eta,q}(x,\alpha)\;=\;\sum_{n}\Lambda(n)\,e(\alpha n)\,\mathbf 1_{(n,q)=1}\,\eta\!\left(\frac nx\right),Sη,q​(x,α)=n∑​Λ(n)e(αn)1(n,q)=1​η(xn​),

Λ\LambdaΛ being the von Mangoldt function. Let η\etaη be smooth and supported in [c,1][c,1][c,1] for some 0<c≤10<c\le 10<c≤1, and let x≥1x\ge1x≥1 satisfy cx≥108cx\ge10^{8}cx≥108. Then

Sη,1(x,0)  =  x∫Rη  +  O∗ ⁣(∥η′∥L1(R) x40log⁡(cx)),S_{\eta,1}(x,0)\;=\;x\int_{\mathbb R}\eta\;+\;\mathcal O^{*}\!\left(\frac{\|\eta'\|_{L^{1}(\mathbb R)}\,x}{40\log(cx)}\right),Sη,1​(x,0)=x∫R​η+O∗(40log(cx)∥η′∥L1(R)​x​),

where O∗(E)\mathcal O^{*}(E)O∗(E) denotes a quantity of absolute value at most EEE. For the non-negative cutoffs used in the paper the main term x∫Rηx\int_{\mathbb R}\etax∫R​η is the ∥η∥L1(R)x\|\eta\|_{L^{1}(\mathbb R)}x∥η∥L1(R)​x of the source.

The estimate is what converts the prime-counting content of Sη,1(x,0)S_{\eta,1}(x,0)Sη,1​(x,0) into the analytic quantity x∫ηx\int\etax∫η; together with the trivial bound (4.3) of the same lemma it underlies the mass computations of Sections 4 and 8.

Quoted input The proof in the source invokes the explicit Chebyshev estimate of Rosser and Schoenfeld, ψ(y)=y+O∗(y/(40log⁡cx))\psi(y)=y+\mathcal O^{*}\bigl(y/(40\log cx)\bigr)ψ(y)=y+O∗(y/(40logcx)) for cx≤y≤xcx\le y\le xcx≤y≤x, where ψ(y)=∑n≤yΛ(n)\psi(y)=\sum_{n\le y}\Lambda(n)ψ(y)=∑n≤y​Λ(n). That estimate is not available in the ambient library, so it appears as an explicit hypothesis, stated exactly in the range and the form in which it is used.

Formalization Note The sum Sη,q(x,α)S_{\eta,q}(x,\alpha)Sη,q​(x,α) is complex-valued; at α=0\alpha=0α=0 it is a real number embedded in C\mathbb CC, and the error is measured by the complex absolute value.

Preamble
import Mathlib
import Definitions.Def_TaoFivePrimes_SmoothedExpSum

open MeasureTheory
open scoped ArithmeticFunction.vonMangoldt
Formal statement
theorem TaoFivePrimes.smoothedExpSum_zero_asymptotic
    (eta : ℝ → ℝ) (hsm : ContDiff ℝ (⊤ : ℕ∞) eta) (c x : ℝ)
    (hc0 : 0 < c) (hc1 : c ≤ 1) (hx : 1 ≤ x)
    (hsupp : ∀ t : ℝ, t < c ∨ 1 < t → eta t = 0)
    (hcx : (10 : ℝ) ^ 8 ≤ c * x)
    (hpsi : ∀ y : ℝ, c * x ≤ y → y ≤ x →
      |Chebyshev.psi y - y| ≤ y / (40 * Real.log (c * x))) :
    ‖TaoFivePrimes.smoothedExpSum eta 1 x 0 - (((∫ t : ℝ, eta t) * x : ℝ) : ℂ)‖
      ≤ 1 / (40 * Real.log (c * x)) * (∫ t : ℝ, |deriv eta t|) * x := by sorry
Source
Terence Tao, "Every odd number greater than 1 is the sum of at most five primes", Mathematics of Computation 83 (2014), 997-1038; arXiv:1201.6656, https://arxiv.org/abs/1201.6656, Section 4, Lemma 4.3, equation (4.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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me