Documentation

CslibFrontier.Foundations.BooleanAnalysis.Hypercube

Huang's induced subgraph theorem #

Every set V of more than half of the points of the cube ι → Bool contains a point with at least √|ι| neighbors in V [Hua19]. More generally, for any set S of coordinates, some point of V has at least √|S| neighbors in V in the directions of S (BitString.exists_mem_sqrt_card_le_card_update_mem).

The theorem and its signed adjacency matrix, which squares to |ι|, are Huang's [Hua19]. Huang counts eigenvalues with Cauchy's interlacing theorem, which Mathlib lacks; here a dimension count replaces it. Mathlib's Archive/Sensitivity.lean formalizes the case S = univ, but the Archive cannot be imported.

Order the coordinates and sign the edge from x in direction i by the character of the coordinates of S below i. The resulting signed adjacency operator A along S (BitString.signedAdjacency) squares to |S| (BitString.signedAdjacency_signedAdjacency), because the two paths around every square of the cube carry opposite signs. So its eigenspaces for √|S| and -√|S| together span all functions on the cube, and one of them has dimension at least half the number of points. A function in that eigenspace vanishing outside V exists by counting dimensions. Its absolute value v satisfies √|S| v ≤ A_V v pointwise, where A_V is the adjacency operator of the subgraph induced by V along S (BitString.exists_nonneg_ne_zero_sqrt_card_mul_le_sum); [ABDK+21] read Huang's sensitivity theorem spectrally through this inequality. At a point where v is largest, it compares √|S| times the largest value with a sum of at most as many values as there are neighbors in V.

Main definitions #

Main results #

References #

theorem Cslib.BitString.chi_update_not_of_mem {ι : Type u_1} {R : Type u_2} [CommRing R] [DecidableEq ι] {T : Finset ι} {i : ι} (hi : i ∈ T) (x : ι → Bool) :
chi R T (Function.update x i !x i) = -chi R T x

Flipping a bit of T negates the character of T.

def Cslib.BitString.signedAdjacency {ι : Type u_1} [LinearOrder ι] (S : Finset ι) :
Module.End ℝ ((ι → Bool) → ℝ)

The signed adjacency operator of the cube along the coordinates of S: the value at x sums the values at the neighbors of x in the directions i ∈ S, the edge in direction i signed by the character of the coordinates of S below i.

theorem Cslib.BitString.signedAdjacency_apply {ι : Type u_1} [LinearOrder ι] (S : Finset ι) (v : (ι → Bool) → ℝ) (x : ι → Bool) :
(signedAdjacency S) v x = ∑ i ∈ S, chi ℝ ({j ∈ S | j < i}) x * v (Function.update x i !x i)

Pointwise evaluation of the signed adjacency operator signedAdjacency S.

theorem Cslib.BitString.signedAdjacency_signedAdjacency {ι : Type u_1} [LinearOrder ι] (S : Finset ι) (v : (ι → Bool) → ℝ) :

The signed adjacency operator squares to |S|: the diagonal terms each contribute the value at x, and the two paths around each square cancel.

theorem Cslib.BitString.exists_nonneg_ne_zero_sqrt_card_mul_le_sum {ι : Type u_1} [Fintype ι] [DecidableEq ι] {V : Finset (ι → Bool)} (hV : 2 ^ Fintype.card ι < 2 * V.card) (S : Finset ι) :
∃ (v : (ι → Bool) → ℝ), 0 ≤ v ∧ v ≠ 0 ∧ (∀ y ∉ V, v y = 0) ∧ ∀ (x : ι → Bool), √↑S.card * v x ≤ ∑ i ∈ S with (Function.update x i !x i) ∈ V, v (Function.update x i !x i)

Huang's eigenvector bound: if V contains more than half of the points of the cube, then for every set S of coordinates some nonzero nonnegative function v vanishing outside V satisfies √|S| v(x) ≤ ∑ v(x ⊕ eᵢ) at every point x, the sum over the directions i ∈ S whose neighbor x ⊕ eᵢ lies in V. So the adjacency matrix of the subgraph of the cube induced by V, restricted to the directions of S, has largest eigenvalue at least √|S|. The function is the absolute value of an eigenfunction for ±√|S| of the signed adjacency operator [Hua19]. For S the whole cube and V a fiber of f ⊕ parity, this is the step (7) in the proof of Theorem 1 of [ABDK+21] (arXiv:2010.12629v1) that bounds the spectral sensitivity of f below.

theorem Cslib.BitString.exists_mem_sqrt_card_le_card_update_mem {ι : Type u_1} [Fintype ι] [DecidableEq ι] {V : Finset (ι → Bool)} (hV : 2 ^ Fintype.card ι < 2 * V.card) (S : Finset ι) :
∃ x ∈ V, √↑S.card ≤ ↑{i ∈ S | (Function.update x i !x i) ∈ V}.card

Huang's induced subgraph theorem: if V contains more than half of the points of the cube, then for every set S of coordinates some point of V has at least √|S| neighbors in V in the directions of S. For S = univ, the subgraph of the cube induced by V has maximum degree at least √|ι| [Hua19].