Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Corollary 4.11: locally quadratic-free phases are close to linear phases

Proved
GT.loc_to_glob

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

additive-combinatoricsarithmetic-progressions

Let N≥1N\ge1N≥1, S⊆Z/NZS\subseteq\mathbb{Z}/N\mathbb{Z}S⊆Z/NZ non-empty, ρ>0\rho>0ρ>0, A≥1A\ge1A≥1, n0∈Z/NZn_0\in\mathbb{Z}/N\mathbb{Z}n0​∈Z/NZ and ϕ:Z/NZ→R/Z\phi:\mathbb{Z}/N\mathbb{Z}\to\mathbb{R}/\mathbb{Z}ϕ:Z/NZ→R/Z. Suppose that for all h,k∈B(S,ρ/2)h,k\in B(S,\rho/2)h,k∈B(S,ρ/2)

∥ϕ(n0+h+k)−ϕ(n0+h)−ϕ(n0+k)+ϕ(n0)∥≤A∥h∥S⊥∥k∥S⊥ρ2.\big\|\phi(n_0+h+k)-\phi(n_0+h)-\phi(n_0+k)+\phi(n_0)\big\|\le\frac{A\|h\|_{S^\perp}\|k\|_{S^\perp}}{\rho^2}.​ϕ(n0​+h+k)−ϕ(n0​+h)−ϕ(n0​+k)+ϕ(n0​)​≤ρ2A∥h∥S⊥​∥k∥S⊥​​.

Then there is ξ∈Z/NZ\xi\in\mathbb{Z}/N\mathbb{Z}ξ∈Z/NZ such that for all h∈B(S,ρ)h\in B(S,\rho)h∈B(S,ρ)

∥ϕ(n0+h)−ϕ(n0)−ξhN∥≤109A ∣S∣4 ∥h∥S⊥ρ.\Big\|\phi(n_0+h)-\phi(n_0)-\frac{\xi h}{N}\Big\|\le 10^9\sqrt A\,|S|^4\,\frac{\|h\|_{S^\perp}}{\rho}.​ϕ(n0​+h)−ϕ(n0​)−Nξh​​≤109A​∣S∣4ρ∥h∥S⊥​​.

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

theorem loc_to_glob {N : ℕ} [NeZero N] {S : Finset (ZMod N)} (hS : S.Nonempty) {ρ A : ℝ} (hρ : 0 < ρ) (hA : 1 ≤ A)
    (φ : ZMod N → UnitAddCircle) (n0 : ZMod N)
    (hφ : ∀ h k, h ∈ bohr S (ρ / 2) → k ∈ bohr S (ρ / 2) →
      ‖φ (n0 + h + k) - φ (n0 + h) - φ (n0 + k) + φ n0‖ ≤ A * snorm S h * snorm S k / ρ ^ 2) :
    ∃ ξ : ZMod N, ∀ h ∈ bohr S ρ,
      ‖φ (n0 + h) - φ n0 - ZMod.toAddCircle (ξ * h)‖ ≤
        10 ^ 9 * √A * (S.card : ℝ) ^ 4 * snorm S h / ρ := 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 4, Corollary 4.11

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