Documentation

CslibFrontier.Probability.PlantedClique.CommonNeighbors

Exposing the common neighborhood of a planted seed #

The seed-touching edges determine the common neighborhood. All other edges may be resampled independently without changing it. Increasing enumeration of the neighborhood identifies the remaining graph with a fresh planted-clique experiment on the smaller vertex set.

The statements use an explicit exposure coupling, so no conditioning on a positive-probability event or unproved independence hypothesis is needed.

References #

theorem Cslib.Probability.PlantedClique.sample_comap_orderEmbedding {n m : ℕ} (S : Finset (Fin n)) (ω : Coins n) (e : Fin m ↪o Fin n) :
SimpleGraph.comap (⇑e) (sample S ω) = sample {i : Fin m | e i ∈ S} fun (p : Fin m × Fin m) => ω (e p.1, e p.2)

Restriction along an increasing vertex embedding preserves the planted-graph sampler.

A fixed induced subgraph of a planted graph has the planted law on the retained vertices.

def Cslib.Probability.PlantedClique.resampleOffSeed {n : ℕ} (T : Finset (Fin n)) (exposed fresh : Coins n) :

Retain the edges touching T from exposed, and use fresh on every other coordinate.

theorem Cslib.Probability.PlantedClique.uniform_bind_bind_resampleOffSeed {n : ℕ} {α : Type u_1} (T : Finset (Fin n)) (f : Coins n → PMF α) :
((PMF.uniformOfFintype (Coins n)).bind fun (ω : Coins n) => (PMF.uniformOfFintype (Coins n)).bind fun (η : Coins n) => f (resampleOffSeed T ω η)) = (PMF.uniformOfFintype (Coins n)).bind f

Resampling all coordinates away from a seed preserves the uniform coin law, even inside an arbitrary subsequent randomized experiment.

Exposing the seed-touching coordinates fixes the common neighborhood: subsequent fresh coins cannot change which vertices survive.

theorem Cslib.Probability.PlantedClique.sample_resampleOffSeed_comap {n m : ℕ} (S T : Finset (Fin n)) (ω η : Coins n) (e : Fin m ↪o Fin n) (he : ∀ (i : Fin m), e i ∉ T) :
SimpleGraph.comap (⇑e) (sample S (resampleOffSeed T ω η)) = sample {i : Fin m | e i ∈ S} fun (p : Fin m × Fin m) => η (e p.1, e p.2)

Away from the exposed seed, the graph reads only the fresh coins.

theorem Cslib.Probability.PlantedClique.uniform_sample_resampleOffSeed_comap {n m : ℕ} (S T : Finset (Fin n)) (ω : Coins n) (e : Fin m ↪o Fin n) (he : ∀ (i : Fin m), e i ∉ T) :
PMF.map (fun (η : Coins n) => SimpleGraph.comap (⇑e) (sample S (resampleOffSeed T ω η))) (PMF.uniformOfFintype (Coins n)) = PMF.map (sample {i : Fin m | e i ∈ S}) (PMF.uniformOfFintype (Coins m))

A fixed increasing enumeration of vertices away from the exposed seed has a fresh planted graph law. This version accepts any enumeration, including an executable list-based one.

theorem Cslib.Probability.PlantedClique.uniform_sample_commonNeighborhood {n : ℕ} (S T : Finset (Fin n)) (ω : Coins n) :
have U := (sample S ω).commonNeighborhood T; have e := U.orderEmbOfFin ⋯; PMF.map (fun (η : Coins n) => SimpleGraph.comap (⇑e) (sample S (resampleOffSeed T ω η))) (PMF.uniformOfFintype (Coins n)) = PMF.map (sample {i : Fin U.card | e i ∈ S}) (PMF.uniformOfFintype (Coins U.card))

After any fixed exposure, the graph induced on its common neighborhood is exactly a fresh planted-clique graph, with its planted vertices transported through the increasing enumeration.

theorem Cslib.Probability.PlantedClique.card_filter_commonNeighborhood {n m : ℕ} (S T : Finset (Fin n)) (hT : T ⊆ S) (ω : Coins n) (e : Fin m ↪ Fin n) (he : Finset.image (⇑e) Finset.univ = (sample S ω).commonNeighborhood T) :
{i : Fin m | e i ∈ S}.card = S.card - T.card

Any injective enumeration of the common neighborhood transports exactly |S| - |T| planted vertices. This permits both canonical and executable increasing enumerations.