Documentation

CslibFrontier.Algorithms.PlantedClique.CommonNeighborFinal

The common-neighbor algorithm's finite probability bound #

The executable wrapper enumerates every seed of a fixed size and returns the first verified clique of the requested size. For a fixed planted seed, the exposure and concentration argument controls reduced recovery. If the planted clique is unique, a successful planted seed forces the wrapper to return it, even when other seeds are tried first. A union bound combines these two proved random-graph estimates.

The last theorem averages the fixed-set bound over an arbitrary independent prior on hidden sets. The solver receives only the graph and the public target size.

References #

The executable common-neighbor wrapper recovers every fixed planted set with the stated finite failure bound. Its premises are numerical size conditions; all exposure, independence, concentration, reduced recovery, and uniqueness estimates are discharged in the proof.

theorem Cslib.Algorithms.PlantedClique.searchProblem_commonNeighborRecover_failure_le {n k : ℕ} (prior : PMF { S : Finset (Fin n) // S.card = k }) (s : ℕ) (hn : 1 ≤ n) (hk : 6 ≤ k - s) (hsize : 1024 * √(↑k + 2 * ↑n * (2 ^ s)⁻¹) ≤ ↑(k - s)) :
(((Probability.PlantedClique.searchProblem prior).experiment fun (G : SimpleGraph (Fin n)) => PMF.pure (vertexSet n (commonNeighborRecover recoverInput s (RecoveryInput.ofGraph G k)))) false).toReal ≤ Real.exp (-2 * ↑n * (2 ^ s)⁻¹ ^ 2) + (2 * Real.exp (-↑(k - s)) + ↑n * Real.exp (-↑(k - s) / 32)) + (↑n * Real.exp (-↑k / 32) + ↑(n.choose (k / 4)) * (2 ^ (k / 4).choose 2)⁻¹)

The same executable common-neighbor algorithm attains the finite recovery bound under any prior on hidden sets of the specified size, independent of the subsequent edge coins.