Documentation

LeanPool.ArithmeticTriangleRemovalInVectorSpaces.DisjointTriangles.Sampling

Few triangles when all degrees are small #

This file proves Lemma 5 of Fox and Lovász: if every vertex of X × Y × Z lies in at most R = ρ * N triangles, then there are at most 125 * p ^ 2 * ρ ^ (1 + c p) * N ^ 2 triangles. As in the paper, the first two vertices of each triangle are linearly independent, and no plane contains the first two vertices of two triangles. The paper intersects X, Y and Z with a uniformly random subspace of dimension d; we use the kernel of a uniformly random linear map A : V →ₗ[ZMod p] W. Its kernel contains r given independent vectors with probability #W ^ (-r), and the expected value of #(ker A) ^ (1 - c p) is at most (1 + #V / #W) ^ (1 - c p) by Jensen's inequality.

Main definitions #

Main statements #

theorem ArithmeticTriangleRemovalInVectorSpaces.card_triangles_le_of_degree_le {p : ℕ} [Fact (Nat.Prime p)] {V : Type u_1} [AddCommGroup V] [Module (ZMod p) V] [Fintype V] [DecidableEq V] {X Y Z : Finset V} {ρ : ℝ} (hli : ∀ (x y z : V), (x, y, z) ∈ triangles X Y Z → LinearIndependent (ZMod p) ![x, y]) (hspan : ∀ (x y z : V), (x, y, z) ∈ triangles X Y Z → ∀ (x' y' z' : V), (x', y', z') ∈ triangles X Y Z → x' ∈ Submodule.span (ZMod p) {x, y} → y' ∈ Submodule.span (ZMod p) {x, y} → x' = x ∧ y' = y) (hX : ∀ (v : V), ↑{x ∈ triangles X Y Z | match x with | (x, fst, snd) => x = v}.card ≤ ρ * ↑(Fintype.card V)) (hY : ∀ (v : V), ↑{x ∈ triangles X Y Z | match x with | (fst, y, snd) => y = v}.card ≤ ρ * ↑(Fintype.card V)) (hZ : ∀ (v : V), ↑{x ∈ triangles X Y Z | match x with | (fst, fst_1, z) => z = v}.card ≤ ρ * ↑(Fintype.card V)) :
↑(triangles X Y Z).card ≤ 125 * ↑p ^ 2 * ρ ^ (1 + c p) * ↑(Fintype.card V) ^ 2

Lemma 5 of Fox and Lovász. Let X, Y and Z be sets in a finite vector space V over ZMod p such that the first two vertices of each triangle are linearly independent and their span contains the first two vertices of no other triangle. If every vertex lies in at most ρ * #V triangles, then there are at most 125 * p ^ 2 * ρ ^ (1 + c p) * #V ^ 2 triangles.