Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Tao Section 5: the dyadic representation of the Type II sum

Proved
TaoFivePrimes.theorem51_typeII_dyadic_representation

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

analytic-number-theoryexponential-sumsgoldbachmeasure-theorynumber-theory

The dyadic representation of the Type II sum. Let U,V≥40U,V\ge40U,V≥40 with U,V<xU,V<xU,V<x, UV≤x4UV\le\frac x4UV≤4x​ and UV2≥xUV^2\ge xUV2≥x, and for W>0W>0W>0 let

G(W)=∣∑d>U, w>Vd,w oddμ(d) g(w) 1[x/2W, x/W](d) 1[W/2, W](w) e(αdw)∣G(W)=\Bigl|\sum_{\substack{d>U,\ w>V\\ d,w\text{ odd}}}\mu(d)\,g(w)\,\mathbf 1_{[x/2W,\,x/W]}(d)\,\mathbf 1_{[W/2,\,W]}(w)\,e(\alpha dw)\Bigr|G(W)=​d>U, w>Vd,w odd​∑​μ(d)g(w)1[x/2W,x/W]​(d)1[W/2,W]​(w)e(αdw)​

be the dyadic block of the bilinear sum, with g(w)=∑b∣w, b>VΛ(b)−12log⁡wg(w)=\sum_{b\mid w,\,b>V}\Lambda(b)-\frac12\log wg(w)=∑b∣w,b>V​Λ(b)−21​logw the centred divisor coefficient. Then GGG vanishes off [V,xU][V,\frac xU][V,Ux​], the function W↦G(W)WW\mapsto\frac{G(W)}WW↦WG(W)​ is integrable on (0,∞)(0,\infty)(0,∞), and

TII(x,α,U,V) ≤ 4∫0∞G(W) dWW.T_{II}(x,\alpha,U,V)\ \le\ 4\int_0^\infty G(W)\,\frac{dW}{W}.TII​(x,α,U,V) ≤ 4∫0∞​G(W)WdW​.

This is the measure-theoretic half of the source's Type II estimate. The inequality comes from the dyadic integral representation of the cutoff,

η0(dwx)=4∫0∞1[x/2W, x/W](d) 1[W/2, W](w) dWW,\eta_0\Bigl(\frac{dw}{x}\Bigr)=4\int_0^\infty\mathbf 1_{[x/2W,\,x/W]}(d)\,\mathbf 1_{[W/2,\,W]}(w)\,\frac{dW}{W},η0​(xdw​)=4∫0∞​1[x/2W,x/W]​(d)1[W/2,W]​(w)WdW​,

which is public and proved on the platform as TaoFivePrimes.eta0_dyadic_integral, together with an interchange of the double sum with the integral and the triangle inequality. The support statement is the observation that both dyadic blocks are nonempty only when V≤W≤xUV\le W\le\frac xUV≤W≤Ux​: the www-block forces w≤Ww\le Ww≤W against w>Vw>Vw>V, and the ddd-block forces d≤xWd\le\frac xWd≤Wx​ against d>Ud>Ud>U.

Formalization Note The Type II sum and the centred coefficient are the platform definitions imported from Def_TaoFivePrimes_Theorem51Sums; the double sum is over all natural numbers and is finite because of the indicators. GGG is written out explicitly rather than existentially, so that the pointwise large-sieve bound can be stated for the same function.

Preamble
import Mathlib
import Definitions.Def_TaoFivePrimes_Theorem51Sums

open MeasureTheory
Formal statement
theorem TaoFivePrimes.theorem51_typeII_dyadic_representation
    (x alpha U V : ℝ) (hx : 0 < x) (hU40 : 40 ≤ U) (hV40 : 40 ≤ V) (hUx : U < x) (hVx : V < x)
    (hUV : U * V ≤ x / 4) (hUV2 : x ≤ U * V ^ 2) :
    (∀ W : ℝ, W ∉ Set.Icc V (x / U) → ‖∑' d : ℕ, ∑' w : ℕ,
            (if U < (d : ℝ) ∧ V < (w : ℝ) ∧ d.Coprime 2 ∧ w.Coprime 2
                ∧ x / (2 * W) ≤ (d : ℝ) ∧ (d : ℝ) ≤ x / W
                ∧ W / 2 ≤ (w : ℝ) ∧ (w : ℝ) ≤ W then
              ((ArithmeticFunction.moebius d : ℤ) : ℂ)
                * ((TaoFivePrimes.theorem51Centered V w : ℝ) : ℂ)
                * TaoFivePrimes.expCircle (alpha * d * w)
            else 0)‖ = 0)
      ∧ MeasureTheory.IntegrableOn (fun W : ℝ => ‖∑' d : ℕ, ∑' w : ℕ,
            (if U < (d : ℝ) ∧ V < (w : ℝ) ∧ d.Coprime 2 ∧ w.Coprime 2
                ∧ x / (2 * W) ≤ (d : ℝ) ∧ (d : ℝ) ≤ x / W
                ∧ W / 2 ≤ (w : ℝ) ∧ (w : ℝ) ≤ W then
              ((ArithmeticFunction.moebius d : ℤ) : ℂ)
                * ((TaoFivePrimes.theorem51Centered V w : ℝ) : ℂ)
                * TaoFivePrimes.expCircle (alpha * d * w)
            else 0)‖ / W) (Set.Ioi 0)
      ∧ TaoFivePrimes.theorem51TypeII x alpha U V
          ≤ 4 * ∫ W in Set.Ioi (0:ℝ), ‖∑' d : ℕ, ∑' w : ℕ,
            (if U < (d : ℝ) ∧ V < (w : ℝ) ∧ d.Coprime 2 ∧ w.Coprime 2
                ∧ x / (2 * W) ≤ (d : ℝ) ∧ (d : ℝ) ≤ x / W
                ∧ W / 2 ≤ (w : ℝ) ∧ (w : ℝ) ≤ W then
              ((ArithmeticFunction.moebius d : ℤ) : ℂ)
                * ((TaoFivePrimes.theorem51Centered V w : ℝ) : ℂ)
                * TaoFivePrimes.expCircle (alpha * d * w)
            else 0)‖ / W := 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 5, the passage from T_II to the integral of its dyadic blocks

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, licensed under Apache 2.0.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTermsJoin SlackJoin Zulip© 2026 Prove2Me