Documentation

LeanPool.ArithmeticTriangleRemovalInVectorSpaces.ZMod

The arithmetic triangle removal lemma in Fin n → ZMod p #

This file states the main results of Fox and Lovász, "A tight bound for Green's arithmetic triangle removal lemma in vector spaces", in Fin n → ZMod p, where N = p ^ n. The three theorems write out the triangles and multicolored sum-freeness in terms of Mathlib definitions.

Main statements #

theorem ArithmeticTriangleRemovalInVectorSpaces.card_le_rpow_one_sub_c_mul {p n : ℕ} [Fact (Nat.Prime p)] {ι : Type u_1} [Fintype ι] {x y z : ι → Fin n → ZMod p} (h : ∀ (i j k : ι), x i + y j + z k = 0 ↔ i = j ∧ j = k) :
↑(Fintype.card ι) ≤ ↑p ^ ((1 - c p) * ↑n)

The Kleinberg–Sawin–Speyer bound (Theorem 2 of Fox and Lovász). If the triples (x i, y i, z i) in Fin n → ZMod p satisfy x i + y j + z k = 0 exactly when i = j = k, then there are at most p ^ ((1 - c p) * n) of them.

theorem ArithmeticTriangleRemovalInVectorSpaces.div_pow_rpow_C_mul_sq_le_card_triangles {p n : ℕ} [Fact (Nat.Prime p)] {ι : Type u_1} [Fintype ι] {x y z : ι → Fin n → ZMod p} {X Y Z : Finset (Fin n → ZMod p)} (hx : Function.Injective x) (hy : Function.Injective y) (hz : Function.Injective z) (hxX : ∀ (i : ι), x i ∈ X) (hyY : ∀ (i : ι), y i ∈ Y) (hzZ : ∀ (i : ι), z i ∈ Z) (hsum : ∀ (i : ι), x i + y i + z i = 0) :
(↑(Fintype.card ι) / ↑p ^ n) ^ C p * (↑p ^ n) ^ 2 ≤ ↑{x ∈ X ×ˢ Y ×ˢ Z | match x with | (u, v, w) => u + v + w = 0}.card

Theorem 3 of Fox and Lovász. If X × Y × Z contains m vertex-disjoint triangles (x i, y i, z i) in Fin n → ZMod p, then it contains at least (m / N) ^ C p * N ^ 2 triangles, where N = p ^ n.

theorem ArithmeticTriangleRemovalInVectorSpaces.exists_subset_card_sdiff_add_le_forall_add_ne_zero {p n : ℕ} [Fact (Nat.Prime p)] {ε : ℝ} (hε : 0 ≤ ε) {X Y Z : Finset (Fin n → ZMod p)} (h : ↑{x ∈ X ×ˢ Y ×ˢ Z | match x with | (x, y, z) => x + y + z = 0}.card < (ε / 3) ^ C p * (↑p ^ n) ^ 2) :
∃ X' ⊆ X, ∃ Y' ⊆ Y, ∃ Z' ⊆ Z, ↑(X \ X').card + ↑(Y \ Y').card + ↑(Z \ Z').card ≤ ε * ↑p ^ n ∧ ∀ x ∈ X', ∀ y ∈ Y', ∀ z ∈ Z', x + y + z ≠ 0

Theorem 1 of Fox and Lovász: the arithmetic triangle removal lemma. If X × Y × Z has fewer than (ε / 3) ^ C p * N ^ 2 triangles x + y + z = 0 in Fin n → ZMod p, where N = p ^ n, then removing at most ε * N elements from X, Y and Z leaves no triangle.

theorem ArithmeticTriangleRemovalInVectorSpaces.le_rpow_C_sub_of_forall_exists_subset {p : ℕ} [Fact (Nat.Prime p)] {η ε δ : ℝ} (hη : 0 < η) (hε : 0 < ε) (hε₀ : ε < ε₀ p η) (hδ : ∀ (n : ℕ) (X Y Z : Finset (Fin n → ZMod p)), ↑{x ∈ X ×ˢ Y ×ˢ Z | match x with | (u, v, w) => u + v + w = 0}.card < δ * (↑p ^ n) ^ 2 → ∃ X' ⊆ X, ∃ Y' ⊆ Y, ∃ Z' ⊆ Z, ↑(X \ X').card + ↑(Y \ Y').card + ↑(Z \ Z').card ≤ ε * ↑p ^ n ∧ ∀ x ∈ X', ∀ y ∈ Y', ∀ z ∈ Z', x + y + z ≠ 0) :
δ ≤ ε ^ (C p - η)

Asymptotic tightness of the arithmetic triangle removal lemma (the "Furthermore" part of Theorem 1 of Fox and Lovász). For every η > 0 and every 0 < ε < ε₀ p η, any δ that works with ε in the removal lemma in Fin n → ZMod p for every n satisfies δ ≤ ε ^ (C p - η). Here ε₀ p η = p ^ (-(n₀ p η' + 1)) with η' = c p * min (1 - c p) (c p * η / 2) / 2 and n₀ p η' = ⌈(2 ^ (p + 3) * p ^ 10 / η') ^ 2⌉ + p ^ 4 + 1. The proof combines the construction of Section 3 with the multicolored sum-free families of size p ^ ((1 - c p - η') * n) of Kleinberg, Sawin and Speyer.