Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 6.6: bad approximation implies energy decrement

Proved
GT.bad_ed_thm

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

additive-combinatoricsarithmetic-progressions

Let ppp be a prime, 0<η≤1/100<\eta\le1/100<η≤1/10 with p≥exp⁡(η−3C5)p\ge\exp(\eta^{-3C_5})p≥exp(η−3C5​), and f:Z/pZ→[0,1]f:\mathbb{Z}/p\mathbb{Z}\to[0,1]f:Z/pZ→[0,1]. Let vvv be a valid structured local approximant satisfying the bounds (6.4)–(6.7) with random triple (a,r,f)(\mathbf a,\mathbf r,\mathbf f)(a,r,f), and suppose that f\mathbf ff approximates fff badly in the sense that

∣Ef(a)−Ef(a)∣>ηor∣Λ(f)−Λ(f)∣>η.\big|\mathbb{E}\mathbf f(\mathbf a)-\mathbb{E}f(\mathbf a)\big|>\eta\quad\text{or}\quad\big|\Lambda(\mathbf f)-\Lambda(f)\big|>\eta.​Ef(a)−Ef(a)​>ηor​Λ(f)−Λ(f)​>η.

Then there is a valid structured local approximant v′v'v′ joined to vvv by an edge (Definition 6.3) whose energy has decreased: Ev′(f)≤Ev(f)−ηC2\mathcal{E}_{v'}(f)\le\mathcal{E}_v(f)-\eta^{C_2}Ev′​(f)≤Ev​(f)−ηC2​.

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
Formal statement
namespace GT

theorem bad_ed_thm {p : ℕ} [NeZero p] (hp : p.Prime) {η : ℝ} (hη0 : 0 < η) (hη1 : η ≤ 1 / 10)
    (hpη : Real.exp ((1 / η) ^ (3 * C5)) ≤ p) {f : ZMod p → ℝ} (hf : ∀ x, 0 ≤ f x ∧ f x ≤ 1)
    {v : SLA p} (hv : v.Valid) (hb : v.Bounds η)
    (hbad : η < |(v.triple η).exF - (v.triple η).ex f| ∨
      η < |(v.triple η).lamF - (v.triple η).lam f|) :
    ∃ v' : SLA p, v'.Valid ∧ v.Edge η f v' ∧
      (v'.triple η).energy f ≤ (v.triple η).energy f - η ^ C2 := 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 6, Theorem 6.6

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