Documentation

CslibFrontier.Probability.PlantedClique.Model

The planted-clique experiment #

For a fixed planted set S, sample S reads independent fair bits indexed by ordered pairs, using only the upper triangle, and makes every pair in S adjacent. This gives the conditional law of G(n, 1/2) with S planted. The unused lower-triangular and diagonal bits are harmless and allow the seed to have a simple finite product type.

noise S is the centered symmetric random matrix: it is zero on the diagonal and within S, and otherwise equals 1 for an edge and -1 for a nonedge.

@[reducible, inline]

Independent edge coins, of which only the upper triangle is read.

Plant S in the graph whose independent upper-triangular edge bits are ω.

@[instance_reducible]
theorem Cslib.Probability.PlantedClique.sample_adj_of_mem {n : ℕ} (S : Finset (Fin n)) (ω : Coins n) {i j : Fin n} (hi : i ∈ S) (hj : j ∈ S) (hij : i ≠ j) :
(sample S ω).Adj i j

The planted vertices are pairwise adjacent.

The independent upper-triangular part of the centered noise matrix.

def Cslib.Probability.PlantedClique.noise {n : ℕ} (S : Finset (Fin n)) (ω : Coins n) :
Matrix (Fin n) (Fin n) ℝ

The centered symmetric noise, zero on the planted block and the diagonal.

The noise is symmetric.

@[simp]
theorem Cslib.Probability.PlantedClique.noise_diag {n : ℕ} (S : Finset (Fin n)) (ω : Coins n) (i : Fin n) :
noise S ω i i = 0

The noise diagonal vanishes.

theorem Cslib.Probability.PlantedClique.noise_of_mem {n : ℕ} (S : Finset (Fin n)) (ω : Coins n) {i j : Fin n} (hi : i ∈ S) (hj : j ∈ S) :
noise S ω i j = 0

The noise vanishes on the planted block.

theorem Cslib.Probability.PlantedClique.noise_of_not_mem {n : ℕ} (S : Finset (Fin n)) (ω : Coins n) {i j : Fin n} (hij : i ≠ j) (hS : ¬(i ∈ S ∧ j ∈ S)) :
noise S ω i j = -BitString.signVal (ω (min i j, max i j))

Off the planted block, the centered noise reads the upper-triangular edge coin.