Documentation

CslibFrontier.Computability.QueryComplexity.SpectralSensitivity

Spectral sensitivity #

The sensitivity graph G_f of a Boolean function f is the subgraph of the cube whose edges join neighbors x and x ⊕ eᵢ with f(x) ≠ f(x ⊕ eᵢ) (BitString.sensitivityGraph). The spectral sensitivity λ(f) is the spectral norm of its adjacency matrix A_f, the operator norm on ℓ² of the cube (BitString.spectralSensitivity) [ABDK+21]. A vertex of G_f has as many neighbors as f has sensitive coordinates there, so λ(f) ≤ s(f) (BitString.spectralSensitivity_le_sensitivity).

Huang's proof of the sensitivity theorem shows deg(f) ≤ λ(f)² (QueryComplexity.degree_le_spectralSensitivity_sq). A Fourier coefficient on a set S of deg(f) coordinates gives a set V of more than half of the points in which every edge in a direction of S is sensitive (BitString.exists_two_pow_lt_two_mul_card_forall_isSensitiveCoord). Huang's eigenvector bound (BitString.exists_nonneg_ne_zero_sqrt_card_mul_le_sum) gives a nonzero nonnegative v with √|S| v ≤ A_f v pointwise, so √deg(f) ‖v‖² ≤ ⟨v, A_f v⟩ ≤ λ(f) ‖v‖².

Two criteria bound λ(f) in terms of the bilinear form ⟨u, A_f w⟩ = ∑_x ∑_{i sensitive at x} u(x) w(x ⊕ eᵢ): from below by a nonnegative v with c v ≤ A_f v (BitString.le_spectralSensitivity_of_le_sum), and from above by its values at nonnegative unit vectors (BitString.spectralSensitivity_le_of_forall_sum_le), since A_f has nonnegative entries. The second is how the adversary bound Cslib.Quantum.one_sub_mul_spectralSensitivity_le bounds λ(f) by quantum queries.

Source mapping (numbering of arXiv:2010.12629v1). sensitivityGraph and spectralSensitivity are Definition 7. spectralSensitivity_le_sensitivity is the second step of Huang's proof as stated in §3 ("the spectral norm of an adjacency matrix is at most the maximum degree"), and degree_le_spectralSensitivity_sq is Theorem 1. The source restricts f to a subcube of dimension deg(f) and applies Huang's signing of the whole subcube; here the signing along the directions of S (BitString.signedAdjacency) avoids the restriction.

Main definitions #

Main results #

References #

A coordinate i is sensitive at x exactly when it is sensitive at x ⊕ eᵢ, the other end of the edge.

theorem Cslib.BitString.sum_sum_sensitiveCoords_update {n : ℕ} {M : Type u_1} [AddCommMonoid M] (f : BooleanFunction n) (g : Fin n → BitString n → M) :
∑ x : BitString n, ∑ i ∈ sensitiveCoords f x, g i (Function.update x i !x i) = ∑ x : BitString n, ∑ i ∈ sensitiveCoords f x, g i x

Summing over the sensitive edges from either end: each edge of the sensitivity graph in direction i is counted once from each of its ends.

The sensitivity graph G_f of f [ABDK+21]: the subgraph of the cube joining x and x ⊕ eᵢ when i is sensitive for f at x, that is, when f(x) ≠ f(x ⊕ eᵢ).

theorem Cslib.BitString.sensitivityGraph_adj {n : ℕ} {f : BooleanFunction n} {x y : BitString n} :
(sensitivityGraph f).Adj x y ↔ ∃ (i : Fin n), IsSensitiveCoord f x i ∧ (Function.update x i !x i) = y

x and y are adjacent in the sensitivity graph when y = x ⊕ eᵢ for a coordinate i sensitive at x.

@[instance_reducible]

Adjacency in the sensitivity graph is decidable.

The neighbors of x in the sensitivity graph are its neighbors across sensitive coordinates.

The adjacency matrix of the sensitivity graph sums over the neighbors across sensitive coordinates: (A_f v)(x) = ∑_{i sensitive at x} v(x ⊕ eᵢ).

The spectral sensitivity λ(f) [ABDK+21]: the spectral norm of the adjacency matrix A_f of the sensitivity graph, its operator norm on the Euclidean space of real functions on the cube. By Matrix.l2_opNorm_toEuclideanCLM it is the norm of A_f for the scoped ℓ² operator norm on matrices (Matrix.Norms.L2Operator).

Spectral sensitivity is nonnegative.

The bilinear form of A_f: ⟨u, A_f v⟩ = ∑_x ∑_{i sensitive at x} u(x) v(x ⊕ eᵢ).

theorem Cslib.BitString.le_spectralSensitivity_of_le_sum {n : ℕ} {f : BooleanFunction n} {v : BitString n → ℝ} {c : ℝ} (hv : 0 ≤ v) (hv0 : v ≠ 0) (h : ∀ (x : BitString n), c * v x ≤ ∑ i ∈ sensitiveCoords f x, v (Function.update x i !x i)) :

Lower criterion: a nonzero nonnegative v with c v(x) ≤ (A_f v)(x) at every point witnesses c ≤ λ(f).

theorem Cslib.BitString.spectralSensitivity_le_of_forall_sum_le {n : ℕ} {f : BooleanFunction n} {K : ℝ} (hK : 0 ≤ K) (h : ∀ (u w : BitString n → ℝ), 0 ≤ u → 0 ≤ w → ∑ x : BitString n, u x ^ 2 = 1 → ∑ x : BitString n, w x ^ 2 = 1 → ∑ x : BitString n, ∑ i ∈ sensitiveCoords f x, u x * w (Function.update x i !x i) ≤ K) :

Upper criterion: λ(f) ≤ K if ⟨u, A_f w⟩ ≤ K for all nonnegative unit vectors u and w. Since A_f has nonnegative entries, replacing a pair of unit vectors by their absolute values does not decrease the form.

Spectral sensitivity is at most sensitivity: λ(f) ≤ s(f), the second step of Huang's proof [ABDK+21]. By 2 u(x) w(y) ≤ u(x)² + w(y)², the form at unit vectors is at most half the sum of s_x(f) u(x)² and s_y(f) w(y)² over the points.

Huang's sensitivity theorem, spectral form: the degree of a Boolean function is at most the square of its spectral sensitivity, deg(f) ≤ λ(f)² [ABDK+21], Theorem 1, from the proof of [Hua19].