Documentation

CslibFrontier.Foundations.Combinatorics.Additive.BalogSzemerediGowers

Balog–Szemerédi–Gowers Theorem and Freiman-Homomorphism Extraction #

This module establishes quantitative additive-combinatorics tools for finite abelian groups under standard Lean axioms (propext, Classical.choice, Quot.sound):

Provenance and Source Mapping #

Main definitions #

Main results #

Graph additive energy and {0, 2}^n ⊆ (ℤ/4ℤ)^n #

def Cslib.evenVecSet (n : ℕ) :
Set (Fin n → ZMod 4)

The subgroup {0, 2}^n ⊆ (ℤ/4ℤ)^n of vectors whose coordinates are even modulo 4.

theorem Cslib.mem_evenVecSet_iff {n : ℕ} {v : Fin n → ZMod 4} :
v ∈ evenVecSet n ↔ ∀ (i : Fin n), v i = 0 ∨ v i = 2

Coordinatewise characterization of evenVecSet n.

A vector v : Fin n → ZMod 4 lies in {0, 2}^n iff 2 • v = 0.

theorem Cslib.mem_vadd_evenVecSet_iff {n : ℕ} {s v : Fin n → ZMod 4} :
v ∈ s +ᵥ evenVecSet n ↔ 2 • (v - s) = 0

Membership in a coset s + {0, 2}^n is equivalent to 2 • (v - s) = 0.

@[instance_reducible]

Computable decidability of membership in a coset s + {0, 2}^n ⊆ (ℤ/4ℤ)^n.

Three-term additive equations to additive quadruples #

theorem Cslib.test_to_additive_nat {A : Type u_1} {B : Type u_2} [AddCommGroup A] [Fintype A] [DecidableEq A] [AddCommGroup B] [DecidableEq B] (F G H : A → B) :
{p : A × A | F p.1 + G p.2 + H (-(p.1 + p.2)) = 0}.card ^ 4 ≤ Fintype.card A ^ 5 * (Finset.image (fun (x : A) => (x, F x)) Finset.univ).addEnergy (Finset.image (fun (x : A) => (x, F x)) Finset.univ)

Pure counting Cauchy–Schwarz reduction for any finite abelian group A and abelian group B: (card {(x, y) | F x + G y + H (-(x + y)) = 0})⁴ ≤ |A|⁵ · E[graph(F)].

Balog–Szemerédi–Gowers theorem #

theorem Cslib.balog_szemeredi_gowers_explicit {G : Type u_1} [AddCommGroup G] [DecidableEq G] (Γ : Finset G) {ξ : ℝ} (hξ : 0 < ξ) (hE : ξ * ↑Γ.card ^ 3 ≤ ↑(Γ.addEnergy Γ)) :
∃ Γ' ⊆ Γ, 1 / 4 * ξ * ↑Γ.card ≤ ↑Γ'.card ∧ ↑(Γ' - Γ').card ≤ 16384 * ξ⁻¹ ^ 4 * ↑Γ'.card

Balog–Szemerédi–Gowers theorem with explicit constants: if Γ ⊆ G has additive energy at least ξ |Γ|³, then there is Γ' ⊆ Γ with |Γ'| ≥ (1 / 4) ξ |Γ| and |Γ' - Γ'| ≤ 16384 ξ⁻⁴ |Γ'|.

theorem Cslib.balog_szemeredi_gowers :
∃ (c₁ : ℝ), 0 < c₁ ∧ ∃ (c₂ : ℝ), 0 < c₂ ∧ ∀ {G : Type u_2} [inst : AddCommGroup G] [inst_1 : DecidableEq G] (Γ : Finset G) (ξ : ℝ), 0 < ξ → ξ * ↑Γ.card ^ 3 ≤ ↑(Γ.addEnergy Γ) → ∃ Γ' ⊆ Γ, c₁ * ξ * ↑Γ.card ≤ ↑Γ'.card ∧ ↑(Γ' - Γ').card ≤ c₂ * ξ⁻¹ ^ 4 * ↑Γ'.card

Balog–Szemerédi–Gowers theorem: universal-constant formulation with ξ⁻⁴ doubling exponent.

Plünnecke–Ruzsa sumset bound #

Extraction of an order-8 Freiman homomorphism #

theorem Cslib.gowers_freiman_hom_explicit (n : ℕ) (φ : (Fin n → ZMod 2) → Fin n → ZMod 4) {ξ : ℝ} (hξ : 0 < ξ) (hQ : ξ * ↑(2 ^ n) ^ 3 ≤ ↑((Finset.image (fun (x : Fin n → ZMod 2) => (x, φ x)) Finset.univ).addEnergy (Finset.image (fun (x : Fin n → ZMod 2) => (x, φ x)) Finset.univ))) :
∃ (A : Finset (Fin n → ZMod 2)), IsAddFreimanHom 8 (↑A) Set.univ φ ∧ 1 / 2 ^ 900 * ξ ^ 257 * ↑(2 ^ n) ≤ ↑A.card

Order-8 Freiman-homomorphism extraction with explicit constant 2⁻⁹⁰⁰: if the graph of φ : (ℤ/2ℤ)^n → (ℤ/4ℤ)^n has additive energy at least ξ (2^n)³ (ξ > 0), then there is a subset A ⊆ (ℤ/2ℤ)^n of cardinality at least 2⁻⁹⁰⁰ ξ²⁵⁷ 2^n on which φ is an order-8 Freiman homomorphism.

theorem Cslib.gowers_freiman_hom :
∃ (c : ℝ), 0 < c ∧ ∀ (n : ℕ) (φ : (Fin n → ZMod 2) → Fin n → ZMod 4) (ξ : ℝ), 0 < ξ → ξ * ↑(Fintype.card (Fin n → ZMod 2)) ^ 3 ≤ ↑((Finset.image (fun (x : Fin n → ZMod 2) => (x, φ x)) Finset.univ).addEnergy (Finset.image (fun (x : Fin n → ZMod 2) => (x, φ x)) Finset.univ)) → ∃ (A : Finset (Fin n → ZMod 2)), IsAddFreimanHom 8 (↑A) Set.univ φ ∧ c * ξ ^ 257 * ↑(Fintype.card (Fin n → ZMod 2)) ≤ ↑A.card

Order-8 Freiman-homomorphism extraction: universal-constant formulation.

Coset rigidity of order-4 Freiman homomorphisms #

theorem Cslib.freiman_hom_zmod2_zmod4_coset {n : ℕ} {A : Set (Fin n → ZMod 2)} {φ : (Fin n → ZMod 2) → Fin n → ZMod 4} (hφ : IsAddFreimanHom 4 A Set.univ φ) :
∃ (s : Fin n → ZMod 4), ∀ x ∈ A, φ x ∈ s +ᵥ evenVecSet n

Any order-4 Freiman homomorphism φ : A → (ℤ/4ℤ)^n on A ⊆ (ℤ/2ℤ)^n takes values inside a single coset s + {0, 2}^n.