Documentation

CslibFrontier.Probability.PlantedClique.Problem

Planted clique as a distributional problem #

The joint law instanceDistribution samples a hidden set of size k from a supplied prior, then plants it using independent fair edge coins. searchProblem reveals only the resulting graph and accepts exactly the hidden set. The target size is a parameter of the problem and may be known to an algorithm; the sampled hidden set is not part of its input.

This is exact recovery of the latent planted set. It differs from the relation-search problem of finding any k-clique in the observed graph. The distinction is explicit in the success relation, which is allowed to inspect the state even though the algorithm cannot.

detectionProblem compares the graph marginal of the same planted law with the null law G(n, 1/2). Both problems are semantic specifications: a computational model and its resource or uniformity conditions are supplied separately to the generic game and solver predicates. uniformPlantedSet gives the usual uniform prior, while arbitrary priors allow fixed hidden sets and nonuniform planting laws without changing either specification.

searchProblem_failure_le_of_fixedSet transfers a uniform fixed-planted-set failure bound for any graph-only deterministic solver to the search experiment under an arbitrary hidden-set prior.

A complete planted-clique state, including the hidden set used to generate the graph.

  • planted : Finset (Fin n)

    The hidden vertex set planted as a clique.

  • graph : SimpleGraph (Fin n)

    The graph observed by a recovery algorithm or a test.

Sample a hidden k-set according to prior, then independent edge coins for its graph.

Exact planted-set recovery: the solver observes the graph and must return the hidden set.

theorem Cslib.Probability.PlantedClique.searchProblem_failure_le_of_fixedSet {n k : ℕ} (prior : PMF { S : Finset (Fin n) // S.card = k }) (solve : SimpleGraph (Fin n) → Finset (Fin n)) {error : ℝ} (herror : 0 ≤ error) (hsolve : ∀ (S : Finset (Fin n)), S.card = k → ((PMF.uniformOfFintype (Coins n)).toOuterMeasure {ω : Coins n | solve (sample S ω) ≠ S}).toReal ≤ error) :
(((searchProblem prior).experiment fun (G : SimpleGraph (Fin n)) => PMF.pure (solve G)) false).toReal ≤ error

A graph-only solver's uniform failure bound for every fixed planted set also bounds its failure under any independent prior on planted sets of the specified size.

Distinguish an unplanted fair random graph from the graph law planted according to prior. The hidden set is marginalized out before the distinguisher receives its observation.

noncomputable def Cslib.Probability.PlantedClique.uniformPlantedSet (n k : ℕ) (hkn : k ≤ n) :
PMF { S : Finset (Fin n) // S.card = k }

The uniform prior on all k-subsets of the n vertices.