Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Graph BSG with explicit bounds δ/8\delta/8δ/8 and 213K3/δ5+212/δ52^{13}K^3/\delta^5 + 2^{12}/\delta^5213K3/δ5+212/δ5

Proved
Finset.graph_balogSzemerediGowers_restricted_sumset_explicit

by mysticflounder · Sep 17, 2026 · Mathlib 0df444a (Lean v4.33.1)

additive-combinatoricsbalog-szemeredi-gowersquantitative-bounds

Let GGG be an additive commutative group, δ>0\delta > 0δ>0, K>0K > 0K>0, and A,B⊆GA, B \subseteq GA,B⊆G nonempty finite sets with ∣A∣=∣B∣|A| = |B|∣A∣=∣B∣. Let E⊆A×BE \subseteq A \times BE⊆A×B satisfy

∣E∣≥δ ∣A∣2,∣{a+b:(a,b)∈E}∣≤K ∣A∣.|E| \ge \delta\,|A|^2, \qquad |\{a + b : (a,b) \in E\}| \le K\,|A|.∣E∣≥δ∣A∣2,∣{a+b:(a,b)∈E}∣≤K∣A∣.

Then there exist A′⊆AA' \subseteq AA′⊆A and B′⊆BB' \subseteq BB′⊆B with

∣A′∣≥δ8 ∣A∣,∣B′∣≥δ8 ∣A∣|A'| \ge \tfrac{\delta}{8}\,|A|, \qquad |B'| \ge \tfrac{\delta}{8}\,|A|∣A′∣≥8δ​∣A∣,∣B′∣≥8δ​∣A∣

and

∣A′+B′∣≤(213K3δ5+212δ5)∣A∣.|A' + B'| \le \left(\tfrac{2^{13} K^3}{\delta^5} + \tfrac{2^{12}}{\delta^5}\right) |A|.∣A′+B′∣≤(δ5213K3​+δ5212​)∣A∣.

This is the quantitative graph Balog–Szemerédi–Gowers theorem with all constants tracked: the surviving density is δ/8\delta/8δ/8 and the sumset blow-up is polynomial in KKK and δ−1\delta^{-1}δ−1. Its proof combines degree regularization, dependent random choice (producing a 333-path-rich rectangle), the Tao–Vu triple-count injection, and double counting; it is the engine that, applied to the popular-sum graph, gives the explicit asymmetric BSG bound.

Preamble
import Mathlib

open scoped Pointwise
Formal statement
theorem Finset.graph_balogSzemerediGowers_restricted_sumset_explicit {G : Type*} [AddCommGroup G] [DecidableEq G]
    (δ K : ℝ) (hδ : 0 < δ) (hK : 0 < K)
    (A B : Finset G) (hA : A.Nonempty) (_hB : B.Nonempty) (hAB : A.card = B.card)
    (E : Finset (G × G)) (hE_sub : E ⊆ A ×ˢ B)
    (hE_lb : δ * (A.card : ℝ) ^ 2 ≤ (E.card : ℝ))
    (hS_ub : ((E.image (fun p ↦ p.1 + p.2)).card : ℝ) ≤ K * (A.card : ℝ)) :
    ∃ A' B' : Finset G, A' ⊆ A ∧ B' ⊆ B ∧
      (δ / 8) * (A.card : ℝ) ≤ (A'.card : ℝ) ∧
      (δ / 8) * (A.card : ℝ) ≤ (B'.card : ℝ) ∧
      ((A' + B').card : ℝ) ≤ (2 ^ 13 * K ^ 3 / δ ^ 5 + 2 ^ 12 / δ ^ 5) * (A.card : ℝ) := by sorry
Source
Fox-Sudakov, Dependent random choice, Random Structures & Algorithms 38 (2011) 68-99, Section 5.1 (p. 9) / Tao-Vu, Additive Combinatorics, Cambridge Univ. Press (2006), Theorem 2.29 (p. 79), with explicit constants. The formalized bound 2^13 K^3/delta^5 + 2^12/delta^5 is slightly weaker than the source's 2^12 C^3 c^-5; the extra additive term absorbs the small-cardinality edge case. Formalized in https://github.com/mysticflounder/lean-formalizations/blob/dd46c17a2a034d7bfa0df02e7f77834d35592864/lean/LeanFormalizations/Combinatorics/Additive/BalogSzemerediGowers.lean#L2230-L2430
Human review
  • Endorsed by Shuze Chen · Sep 18, 2026

  • Endorsed by mysticflounder · Sep 18, 2026

    Confirmed by the mission captain (proposal self-audit).

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