Documentation

CslibFrontier.Probability.PlantedClique.CommonNeighborSize

Concentration of a planted seed's common neighborhood #

For a seed T ⊆ S, every vertex of S \ T survives. Each outside vertex survives exactly when all of its T.card seed-edge coins are true. These blocks are disjoint across outside vertices, so pulling back the uniform coin table gives a uniform product of independent rows. The finite Hoeffding inequality then controls the number of surviving outside vertices.

theorem Cslib.Probability.PlantedClique.uniform_seedEdgeRows {n : ℕ} (S T : Finset (Fin n)) (hT : T ⊆ S) :
PMF.map (fun (ω : Coins n) (v : ↥Sᶜ) (t : ↥T) => ω (min ↑t ↑v, max ↑t ↑v)) (PMF.uniformOfFintype (Coins n)) = PMF.uniformOfFintype (↥Sᶜ → ↥T → Bool)

The seed-edge rows for distinct outside vertices are independent uniform Boolean rows. This proves the independence used in the common-neighborhood count from the sampler itself.

theorem Cslib.Probability.PlantedClique.commonNeighborhood_card_eq {n : ℕ} (S T : Finset (Fin n)) (hT : T ⊆ S) (ω : Coins n) :
((sample S ω).commonNeighborhood T).card = S.card - T.card + ∑ v : ↥Sᶜ, if ∀ (t : ↥T), ω (min ↑t ↑v, max ↑t ↑v) = true then 1 else 0

The common neighborhood consists of the surviving planted vertices and one independent all-true-row indicator for every outside vertex.

theorem Cslib.Probability.PlantedClique.prob_commonNeighborhood_card_ge_mean_add {n : ℕ} (S T : Finset (Fin n)) (hT : T ⊆ S) {ε : ℝ} (hε : 0 ≤ ε) :
((PMF.uniformOfFintype (Coins n)).toOuterMeasure {ω : Coins n | ↑(S.card - T.card) + ↑(n - S.card) * (2 ^ T.card)⁻¹ + ε ≤ ↑((sample S ω).commonNeighborhood T).card}).toReal ≤ Real.exp (-2 * ε ^ 2 / ↑(n - S.card))

Hoeffding's upper tail for the seed's common-neighborhood size. The mean is |S| - |T| + (n - |S|) / 2^|T|, and no distributional premise is supplied by the caller.

theorem Cslib.Probability.PlantedClique.prob_commonNeighborhood_card_ge_twice {n : ℕ} (S T : Finset (Fin n)) (hT : T ⊆ S) (hn : 1 ≤ n) :
((PMF.uniformOfFintype (Coins n)).toOuterMeasure {ω : Coins n | ↑S.card + 2 * ↑n * (2 ^ T.card)⁻¹ ≤ ↑((sample S ω).commonNeighborhood T).card}).toReal ≤ Real.exp (-2 * ↑n * (2 ^ T.card)⁻¹ ^ 2)

A convenient uniform upper-tail bound for the common-neighbor reduction: except with probability exp (-2 n / 4^|T|), the neighborhood has fewer than |S| + 2 n / 2^|T| vertices. The exponent is independent of the size of the planted set.