Documentation

LeanPool.ArithmeticTriangleRemovalInVectorSpaces.Construction.Hash

Hashing triples into a set without arithmetic progressions #

Let A, B and C be sets of vectors in Fin n → ℕ, and let V be the set of the triples (a, b, c) in A ×ˢ B ×ˢ C with a r + b r + c r = p - 1 for every r. A hash (h, α, β) with values in ZMod P sends a to β + h ⬝ᵥ a and c to α + h ⬝ᵥ c. The triples whose two hashes agree and lie in a set S without three-term arithmetic progressions, and which share no vector with another such triple, form a multicolored sum-free family. Averaging over all hashes gives one where this family is large. This is the construction of Section 4 of Kleinberg, Sawin and Speyer.

Main definitions #

Main statements #

def ArithmeticTriangleRemovalInVectorSpaces.vecSumTriples {n : ℕ} (p : ℕ) (A B C : Finset (Fin n → ℕ)) :
Finset ((Fin n → ℕ) × (Fin n → ℕ) × (Fin n → ℕ))

The triples (a, b, c) of A ×ˢ B ×ˢ C with a r + b r + c r = p - 1 for every r.

Equations
Instances For
    def ArithmeticTriangleRemovalInVectorSpaces.Shares {n : ℕ} :
    (Fin n → ℕ) × (Fin n → ℕ) × (Fin n → ℕ) → (Fin n → ℕ) × (Fin n → ℕ) × (Fin n → ℕ) → Prop

    Two triples share a vector if they agree in some coordinate.

    Equations
    Instances For
      @[instance_reducible]
      Equations
      • One or more equations did not get rendered due to their size.
      @[simp]
      theorem ArithmeticTriangleRemovalInVectorSpaces.mk_mem_vecSumTriples {n p : ℕ} {A B C : Finset (Fin n → ℕ)} {a b c : Fin n → ℕ} :
      (a, b, c) ∈ vecSumTriples p A B C ↔ a ∈ A ∧ b ∈ B ∧ c ∈ C ∧ ∀ (r : Fin n), a r + b r + c r = p - 1
      @[simp]
      theorem ArithmeticTriangleRemovalInVectorSpaces.shares_mk {n : ℕ} {a b c a' b' c' : Fin n → ℕ} :
      Shares (a, b, c) (a', b', c') ↔ a = a' ∨ b = b' ∨ c = c'
      theorem ArithmeticTriangleRemovalInVectorSpaces.exists_isMulticoloredSumFree_of_hash {n p P F : ℕ} {A B C : Finset (Fin n → ℕ)} {S : Finset (ZMod P)} [Fact (Nat.Prime P)] (hp : 2 ≤ p) (hpP : p < P) (hsum : ∀ a ∈ A, ∀ b ∈ B, ∀ c ∈ C, ∑ r : Fin n, (a r + b r + c r) = n * (p - 1)) (hF : ∀ v ∈ vecSumTriples p A B C, {v' ∈ vecSumTriples p A B C | Shares v v'}.card ≤ F) (hS : ThreeAPFree ↑S) :
      ∃ (m : ℕ) (x : Fin m → Fin n → ZMod p) (y : Fin m → Fin n → ZMod p) (z : Fin m → Fin n → ZMod p), IsMulticoloredSumFree x y z ∧ ↑(vecSumTriples p A B C).card * ↑S.card * (↑P - ↑F) ≤ ↑m * ↑P ^ 3

      Lemma 4.6 of Kleinberg, Sawin and Speyer. Some hash leaves at least #V * #S * (P - F) / P ^ 3 isolated triples, which form a multicolored sum-free family.