Documentation

CslibFrontier.Foundations.Combinatorics.KovariSosTuran

The Kővári–Sós–Turán bound #

A set S ⊆ α × β of positions in a grid (equivalently, the edges of a bipartite graph between α and β) contains an s × s rectangle when I ×ˢ J ⊆ S for some s-element sets I ⊆ α and J ⊆ β. The Kővári–Sós–Turán theorem bounds the size of a set without such rectangles (Cslib.kovari_sos_turan): with m = |α| and n = |β|, n (|S| - (s - 1) n) ^ s ≤ (s - 1) (n (m + 1 - s)) ^ s, with truncated subtraction. For 1 ≤ s ≤ m + 1 this is |S| ≤ (s - 1) ^ (1 / s) (m - s + 1) n ^ (1 - 1 / s) + (s - 1) n; outside that range the real-root form can fail (a full 1 × 1 grid with s = 3), while the natural-number form still holds. The real-root form is Bollobás, §IV.2, Theorem 10 as quoted in [Lok09], Lemma 2.3 (for m = n). It is an upper bound for the Zarankiewicz problem (Mathlib's SimpleGraph.zarankiewicz counts the analogous quantity for simple graphs).

The proof double counts pairs (I, b) of an s-element set I ⊆ α and a column b with I × {b} ⊆ S: each I lies in fewer than s columns, so ∑_b C(d_b, s) ≤ (s - 1) C(m, s), where d_b is the number of positions of S in column b. The bound (d + 1 - s) ^ s C(m, s) ≤ C(d, s) (m + 1 - s) ^ s for d ≤ m (Nat.pow_mul_choose_le_choose_mul_pow) and the power-mean inequality (∑_b x_b) ^ s ≤ n ^ (s - 1) ∑_b x_b ^ s then finish the proof.

Main results #

References #

theorem Cslib.kovari_sos_turan {α : Type u_1} {β : Type u_2} [Fintype α] [Fintype β] (S : Finset (α × β)) {s : ℕ} (hS : ∀ (I : Finset α) (J : Finset β), I.card = s → J.card = s → ¬I ×ˢ J ⊆ S) :
Fintype.card β * (S.card - (s - 1) * Fintype.card β) ^ s ≤ (s - 1) * (Fintype.card β * (Fintype.card α + 1 - s)) ^ s

The Kővári–Sós–Turán theorem (Bollobás, §IV.2, Theorem 10; [Lok09], Lemma 2.3). If a set S of positions in an m × n grid (m = |α|, n = |β|) contains no s × s rectangle I ×ˢ J, then n (|S| - (s - 1) n) ^ s ≤ (s - 1) (n (m + 1 - s)) ^ s, with truncated subtraction. For 1 ≤ s ≤ m + 1, taking s-th roots gives the classical |S| ≤ (s - 1) ^ (1 / s) (m - s + 1) n ^ (1 - 1 / s) + (s - 1) n.