Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Steps one to three of the proof of Theorem 8.1

Proved
GT.u3_front

by LG · Sep 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

additive-combinatoricsarithmetic-progressions

Let ppp be prime, SSS non-empty, 0<η≤10<\eta\le10<η≤1, scales ρ0,…,ρ4,ρh,ρv\rho_0,\dots,\rho_4,\rho_h,\rho_vρ0​,…,ρ4​,ρh​,ρv​, L≥1L\ge1L≥1 and m≥1m\ge1m≥1 satisfying the separation conditions of the statement, and fff 111-bounded with η≤∣US;ρ0,ρ1,ρ23(f)∣\eta\le|\mathrm{U}^3_{S;\rho_0,\rho_1,\rho_2}(f)|η≤∣US;ρ0​,ρ1​,ρ2​3​(f)∣ (the local U3U^3U3 average). Then there are a set Ω⊆B(S,2ρ2)\Omega\subseteq B(S,2\rho_2)Ω⊆B(S,2ρ2​) of differences DDD, a frequency map ξ\xiξ with

η8≤∑n0PS,ρ0(n0)∣∑n1PS,ρ1(n1)f(n0+n1+D)f(n0+n1)‾ep(−ξ(D)n1)∣2(D∈Ω),\frac{\eta}{8}\le\sum_{n_0}P_{S,\rho_0}(n_0)\Big|\sum_{n_1}P_{S,\rho_1}(n_1)f(n_0+n_1+D)\overline{f(n_0+n_1)}e_p(-\xi(D)n_1)\Big|^2\quad(D\in\Omega),8η​≤n0​∑​PS,ρ0​​(n0​)​n1​∑​PS,ρ1​​(n1​)f(n0​+n1​+D)f(n0​+n1​)​ep​(−ξ(D)n1​)​2(D∈Ω),

sets A1,…,A4⊆ΩA_1,\dots,A_4\subseteq\OmegaA1​,…,A4​⊆Ω and a centre ccc such that the penalised weight W(q)=1q∈A (1−L 1σξ(q) not 1/ρv-good)W(q)=1_{q\in A}\,(1-L\,1_{\sigma_\xi(q)\text{ not }1/\rho_v\text{-good}})W(q)=1q∈A​(1−L1σξ​(q) not 1/ρv​-good​) has quadruple average at least 10−6mη82−26/410^{-6m}\eta^8 2^{-26}/410−6mη82−26/4.

Notation. Throughout, ppp is a positive integer (usually a prime) and we work in Z/pZ\mathbb{Z}/p\mathbb{Z}Z/pZ. For a finite frequency set S⊆Z/pZS\subseteq\mathbb{Z}/p\mathbb{Z}S⊆Z/pZ we write ∥h∥S⊥=max⁡s∈S∥sh/p∥R/Z\|h\|_{S^\perp}=\max_{s\in S}\|sh/p\|_{\mathbb{R}/\mathbb{Z}}∥h∥S⊥​=maxs∈S​∥sh/p∥R/Z​ (and 000 if S=∅S=\emptysetS=∅), B(S,ρ)={x:∥x∥S⊥≤ρ}B(S,\rho)=\{x:\|x\|_{S^\perp}\le\rho\}B(S,ρ)={x:∥x∥S⊥​≤ρ} for the Bohr set, and PS,ρ(a)=2∫1/21μB(S,tρ)(a) dtP_{S,\rho}(a)=2\int_{1/2}^{1}\mu_{B(S,t\rho)}(a)\,dtPS,ρ​(a)=2∫1/21​μB(S,tρ)​(a)dt for the regular probability distribution on B(S,ρ)B(S,\rho)B(S,ρ), where μB\mu_BμB​ is the uniform probability measure on BBB. We write e(x)=e2πixe(x)=e^{2\pi i x}e(x)=e2πix for x∈R/Zx\in\mathbb{R}/\mathbb{Z}x∈R/Z and ep(x)=e(x/p)e_p(x)=e(x/p)ep​(x)=e(x/p) for x∈Z/pZx\in\mathbb{Z}/p\mathbb{Z}x∈Z/pZ. A frequency ℓ\ellℓ is AAA-good for TTT if ∥ℓh/p∥R/Z≤A∥h∥T⊥\|\ell h/p\|_{\mathbb{R}/\mathbb{Z}}\le A\|h\|_{T^\perp}∥ℓh/p∥R/Z​≤A∥h∥T⊥​ for all hhh. All objects are those of the definition bundle GreenTaoFourCore.

Formalization Note. This is one node of a machine-checked decomposition of the proof of Erdos142.green_tao_four (Green–Tao's bound r4(N)≪N(log⁡N)−cr_4(N)\ll N(\log N)^{-c}r4​(N)≪N(logN)−c). All explicit numerical constants and the precise quantitative side conditions are exactly those of the Lean statement; the notation above is only a reading guide.

Preamble
import Mathlib
import Definitions.Def_GreenTaoFourCore

open Finset KM
open scoped ComplexConjugate
open Classical
Formal statement
namespace GT

theorem u3_front {p : ℕ} [NeZero p] (hp : p.Prime) {S : Finset (ZMod p)} (hS : S.Nonempty)
    {η ρ0 ρ1 ρ2 ρ3 ρ4 ρh ρv L : ℝ} {m : ℕ} (hη : 0 < η) (hη1 : η ≤ 1)
    (hρ0 : 0 < ρ0) (hρ1 : 0 < ρ1) (hρ2 : 0 < ρ2) (hρ3 : 0 < ρ3) (hρ4 : 0 < ρ4)
    (h10 : 4 * ρ1 ≤ ρ0) (h20 : 4 * ρ2 ≤ ρ0) (h21 : 4 * ρ2 ≤ ρ1) (h32 : 8 * ρ3 ≤ ρ2)
    (h43 : ρ4 ≤ ρ3) (hρ21 : ρ2 ≤ 1)
    (hsep1 : 7200 * S.card * ρ1 ≤ (η / 4) ^ 2 * ρ0) (hsep2 : 100 * S.card * ρ2 ≤ η / 2 * ρ0)
    (hsep3 : 50 * S.card * ρ2 / ρ1 ≤ η ^ 2 / 64)
    (hsep4 : 150 * S.card * ρ3 / ρ2 ≤ η ^ 8 / 2 ^ 26)
    (hρh : 0 < ρh) (hρv : 0 < ρv) (h2v : 2 * ρv ≤ ρh)
    (hAρ : 13 * S.card / (ρ1 * (η ^ 8 / 2 ^ 25)) * ρh ≤ 1 / 1000)
    (hAv : 13 * S.card / (ρ1 * (η ^ 8 / 2 ^ 25)) ≤ 1 / ρv)
    (hL : 1 ≤ L) (hm : 1 ≤ m) (hpm : (10 : ℝ) ^ 60 * m ^ 10 ≤ p)
    (he : 50 * S.card * (ρv / 2) / ρh ≤ 1 / (4 * m))
    (hmL : 16 * L ≤ 2 ^ m * (η ^ 8 / 2 ^ 26))
    (hNG : (4 * (gM m : ℝ)) ^ 3 * (1 / (p * (ρ4 / 4) ^ S.card)) ≤
      (1 / 10 ^ 6) ^ m * (η ^ 8 / 2 ^ 26) / (8 * L))
    (f : ZMod p → ℂ) (hf : ∀ x, ‖f x‖ ≤ 1) (hU : η ≤ ‖u3avg S ρ0 ρ1 ρ2 f‖) :
    ∃ (Ω : Finset (ZMod p)) (ξ : ZMod p → ZMod p) (As : Fin 4 → Finset (ZMod p))
      (c : Fin 4 → ZMod p),
      (∀ D ∈ Ω, D ∈ bohr S (2 * ρ2)) ∧
      (∀ D ∈ Ω, η / 8 ≤ ∑ n0, regP S ρ0 n0 *
        ‖∑ n1, (regP S ρ1 n1 : ℂ) * (f (n0 + n1 + D) * conj (f (n0 + n1))) *
          ech (-(ξ D * n1))‖ ^ 2) ∧
      (∀ i, As i ⊆ Ω) ∧
      (1 / 10 ^ 6) ^ m * (η ^ 8 / 2 ^ 26) / 4 ≤ qavg S ρ4 ρ3 ρ2 c (Wt S ρv L ξ As) := by sorry

end GT
Source
B. Green and T. Tao, New bounds for Szemerédi's theorem, III: a polylogarithmic bound for r_4(N), Mathematika 63 (2017), https://arxiv.org/abs/1705.01703, Section 9 (steps one to three of the proof of Theorem 8.1)

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