Documentation

CslibFrontier.Algorithms.PlantedClique.Indicator

Indicator vectors and the rank-one clique signal #

The indicator of a nonempty finite set has norm equal to the square root of its cardinality. Its outer-product matrix is therefore its cardinality times the orthogonal projection onto the normalized indicator. This file connects that matrix description to coordinate rounding.

The final lemma removes the sign ambiguity in a spectral approximation and proves the overlap condition required by the deterministic degree cleanup step.

The zero-one indicator vector of a vertex set, with the Euclidean norm.

The indicator divided by the square root of the set cardinality.

The clique signal before subtracting the diagonal: the indicator outer product.

The norm of a zero-one indicator is the square root of its support size.

theorem Cslib.Algorithms.PlantedClique.unitIndicator_apply {ι : Type u_1} [DecidableEq ι] (S : Finset ι) (i : ι) :
(unitIndicator S).ofLp i = if i ∈ S then 1 / √↑S.card else 0

Coordinates of the normalized indicator.

Every coordinate of the normalized indicator is nonnegative.

theorem Cslib.Algorithms.PlantedClique.card_mul_unitIndicator_height_sq {ι : Type u_1} {S : Finset ι} (hS : S.Nonempty) :
↑S.card * (1 / √↑S.card) ^ 2 = 1

The normalization height has squared reciprocal equal to the cardinality.

A nonempty set has a unit normalized indicator.

Recover the original indicator from its normalized direction.

The clique signal acts as cardinality times projection onto its unit indicator.

The normalized indicator is an eigenvector of the clique signal with eigenvalue #S.

theorem Cslib.Algorithms.PlantedClique.sixteen_mul_card_sdiff_le_of_signed_norm_sub_sq_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] {S T : Finset ι} (hS : S.Nonempty) (hcard : S.card = T.card) {x : EuclideanSpace ℝ ι} {s : ℝ} (hs : s = 1 ∨ s = -1) (horder : ∀ i ∉ T, ∀ j ∈ T, |x.ofLp i| ≤ |x.ofLp j|) (herror : ‖x - s • unitIndicator S‖ ^ 2 ≤ 1 / 32) :
16 * (S \ T).card ≤ S.card

Rounding the largest absolute coordinates removes the sign ambiguity of a spectral approximation and loses at most a sixteenth of the target set when squared error is 1 / 32.