Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Tao Corollary 3.5: the Vinogradov-type lemma restricted to odd integers

Proved
TaoFivePrimes.vinogradov_odd

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

analytic-number-theoryexponential-sumsgoldbachnumber-theory

Let α,θ∈R\alpha,\theta\in\mathbb Rα,θ∈R and A,B>0A,B>0A,B>0, and suppose 2α=aq+β2\alpha=\frac aq+\beta2α=qa​+β for some integer aaa, some q≥1q\ge1q≥1 and some β\betaβ with ∣β∣≤1/q2|\beta|\le1/q^{2}∣β∣≤1/q2. Then for all reals x<yx<yx<y,

∑x<n≤yn oddmin⁡ ⁣(A, B∣sin⁡(παn+θ)∣)  ≤  (⌊y−x2q⌋+1)(2A+2π Bqlog⁡4q),\sum_{\substack{x<n\le y\\ n\ \text{odd}}}\min\!\left(A,\ \frac{B}{\bigl|\sin(\pi\alpha n+\theta)\bigr|}\right) \;\le\;\left(\left\lfloor\frac{y-x}{2q}\right\rfloor+1\right)\left(2A+\frac{2}{\pi}\,Bq\log 4q\right),x<n≤yn odd​∑​min(A, ​sin(παn+θ)​B​)≤(⌊2qy−x​⌋+1)(2A+π2​Bqlog4q),

the sum being over the odd integers of the interval (x,y](x,y](x,y] and the term at a zero of the sine being read as AAA, in accordance with the convention B/0=+∞B/0=+\inftyB/0=+∞.

This is the Vinogradov-type Lemma 3.4 with a factor of two saved in the block count, ⌊(y−x)/q⌋+1\lfloor(y-x)/q\rfloor+1⌊(y−x)/q⌋+1 becoming ⌊(y−x)/(2q)⌋+1\lfloor(y-x)/(2q)\rfloor+1⌊(y−x)/(2q)⌋+1, by restricting the summation to odd nnn. Together with the analogous saving in Corollary 3.2 it is what allows the exponential sums of Sections 5 and 6 to be summed over the odd integers only, which is where this paper improves on the classical treatment.

Quoted input Lemma 3.4 itself is attributed in the source to Davenport and Rademacher and is not available in the ambient library, so it appears here as a hypothesis, stated in the generality the deduction requires: for every frequency admitting a rational approximation with the same denominator qqq and error at most 1/q21/q^{2}1/q2, every phase, and every interval.

Formalization Note The summand is written with an explicit case distinction at sin⁡(παn+θ)=0\sin(\pi\alpha n+\theta)=0sin(παn+θ)=0, so that the value there is AAA; the ambient convention B/0=0B/0=0B/0=0 would otherwise make the term vanish and weaken both the hypothesis and the conclusion. The odd integers of (x,y](x,y](x,y] are described by integer floor bounds.

Preamble
import Mathlib

open Finset
Formal statement
theorem TaoFivePrimes.vinogradov_odd
    (A B : ℝ) (alpha beta theta : ℝ) (a : ℤ) (q : ℕ) (hq : 0 < q)
    (halpha : 2 * alpha = (a : ℝ) / q + beta) (hbeta : |beta| ≤ 1 / (q : ℝ) ^ 2)
    (x y : ℝ) (hxy : x < y)
    (hvino : ∀ (alpha' beta' theta' u v : ℝ) (a' : ℤ),
        alpha' = (a' : ℝ) / q + beta' → |beta'| ≤ 1 / (q : ℝ) ^ 2 → u < v →
        (∑ n ∈ Finset.Ioc ⌊u⌋ ⌊v⌋,
            (if Real.sin (Real.pi * alpha' * (n : ℝ) + theta') = 0 then A
              else min A (B / |Real.sin (Real.pi * alpha' * (n : ℝ) + theta')|)))
          ≤ ((⌊(v - u) / (q : ℝ)⌋ : ℤ) + 1)
              * (2 * A + (2 / Real.pi) * B * (q : ℝ) * Real.log (4 * q))) :
    (∑ n ∈ (Finset.Ioc ⌊x⌋ ⌊y⌋).filter (fun n : ℤ => Odd n),
        (if Real.sin (Real.pi * alpha * (n : ℝ) + theta) = 0 then A
          else min A (B / |Real.sin (Real.pi * alpha * (n : ℝ) + theta)|)))
      ≤ ((⌊(y - x) / (2 * (q : ℝ))⌋ : ℤ) + 1)
          * (2 * A + (2 / Real.pi) * B * (q : ℝ) * Real.log (4 * q)) := 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 3, Corollary 3.5 (Restricting to odd integers)

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