Documentation

CslibFrontier.Foundations.Combinatorics.SetFamily.PairwiseIntersection

Unions of sets with few pairwise intersections #

If the pairwise intersections of finite sets A₁, …, Aₙ are small compared with their sizes, ∑_{i<j} |Aᵢ ∩ Aⱼ| ≤ C ∑ᵢ |Aᵢ|, then their union is large: ∑ᵢ |Aᵢ| ≤ 4C |⋃ᵢ Aᵢ| Arora and Barak, Claim 18.34. The proof counts, for every element x of the union, the number kₓ of sets containing it: ∑ᵢ |Aᵢ| = ∑ₓ kₓ and ∑ₓ kₓ² = ∑ᵢ |Aᵢ| + 2 ∑_{i<j} |Aᵢ ∩ Aⱼ|, so Cauchy–Schwarz gives (∑ᵢ |Aᵢ|)² ≤ |⋃ᵢ Aᵢ| (2C + 1) ∑ᵢ |Aᵢ|. The draft instead keeps a random part of the family and applies the second Bonferroni inequality; the double count is shorter and gives the factor 2C + 1 ≤ 4C.

The double count holds for any family of sets inside a finite set U: (∑_c |B_c|)² ≤ |U| ∑_c ∑_{c'} |B_c ∩ B_{c'}| (Finset.sq_sum_card_le_card_mul_sum_sum_card_inter). The Johnson bound for codes (Cslib.Code.card_mul_sub_le_of_le_card_of_card_inter_le) uses it with equal-size sets and a bound on each pairwise intersection.

Main results #

References #

theorem Finset.sq_sum_card_le_card_mul_sum_sum_card_inter {α : Type u_1} [DecidableEq α] {κ : Type u_2} (L : Finset κ) (B : κ → Finset α) {U : Finset α} (hB : ∀ c ∈ L, B c ⊆ U) :
(∑ c ∈ L, (B c).card) ^ 2 ≤ U.card * ∑ c ∈ L, ∑ c' ∈ L, (B c ∩ B c').card

Incidence counting. If the sets B c for c ∈ L lie in a finite set U, then (∑_c |B c|)² ≤ |U| ∑_c ∑_{c'} |B c ∩ B c'|. With kₓ the number of sets containing x, ∑_c |B c| = ∑ₓ kₓ and ∑_c ∑_{c'} |B c ∩ B c'| = ∑ₓ kₓ², so this is Cauchy–Schwarz over U.

theorem Finset.sum_card_le_four_mul_card_biUnion {α : Type u_1} [DecidableEq α] {n : ℕ} (A : Fin n → Finset α) {C : ℕ} (hC : 0 < C) (h : ∑ i : Fin n, ∑ j > i, (A i ∩ A j).card ≤ C * ∑ i : Fin n, (A i).card) :
∑ i : Fin n, (A i).card ≤ 4 * C * (univ.biUnion A).card

Few pairwise intersections force a large union [Arora and Barak, Claim 18.34]. If finite sets A₁, …, Aₙ satisfy ∑_{i<j} |Aᵢ ∩ Aⱼ| ≤ C ∑ᵢ |Aᵢ| for a positive integer C, then |⋃ᵢ Aᵢ| ≥ ∑ᵢ |Aᵢ| / 4C. The draft takes C ∈ ℕ; the bound needs C > 0, which its proof uses.