Fox–Sudakov dependent random choice for pairs
ProvedFinset.graph_pair_dependentRandomChoiceLet be nonempty finite sets and let have density
Let . Then there exists with
such that few ordered pairs in have small common neighbourhood: writing ,
In words, a random-neighbourhood (dependent random choice) argument finds a large in which all but an -fraction of ordered pairs share a large codegree.
This is the Fox-Sudakov form of dependent random choice used in the project. In the repository it is applied once, after degree pruning, to the pruned parts: Finset.dense_bipartite_has_path3_rectangle first prunes to the rows of degree at least and restricts to , then makes a single call to this lemma on with and . A Markov refinement on the rows of the resulting and a rare/popular split on the columns of then turn into the rectangle in which every pair is joined by many paths of length three.
import Mathlib open scoped Pointwise
theorem Finset.graph_pair_dependentRandomChoice {G : Type*} [DecidableEq G]
(X Y : Finset G) (hX : X.Nonempty) (hY : Y.Nonempty)
(F : Finset (G × G)) (hF_sub : F ⊆ X ×ˢ Y)
(c : ℝ) (hc_pos : 0 < c) (_hc_le : c ≤ 1)
(hF_dense : c * (X.card : ℝ) * (Y.card : ℝ) ≤ (F.card : ℝ))
(ε : ℝ) (hε_pos : 0 < ε) (_hε_le : ε ≤ 1) :
∃ U : Finset G, U ⊆ X ∧
(c / 2) * (X.card : ℝ) ≤ (U.card : ℝ) ∧
(((U ×ˢ U).filter fun p : G × G ↦
(((Y.filter (fun y ↦ (p.1, y) ∈ F)) ∩
(Y.filter (fun y ↦ (p.2, y) ∈ F))).card : ℝ) <
(ε * c ^ 2 / 2) * (Y.card : ℝ)).card : ℝ) ≤
ε * (U.card : ℝ) ^ 2 := by sorry
Confirmed by the mission captain (proposal self-audit).