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.
def Cslib.Probability.PlantedClique.sample {n : ℕ} (S : Finset (Fin n)) (ω : Coins n) :
SimpleGraph (Fin n)
Plant S in the graph whose independent upper-triangular edge bits are ω.
@[instance_reducible]
instance Cslib.Probability.PlantedClique.instDecidableRelFinAdjSample {n : ℕ} (S : Finset (Fin n)) (ω : Coins n) :