Documentation

CslibFrontier.Foundations.BooleanAnalysis.SpectralConcentration

Spectral concentration on collections of sets #

The spectrum of f is ε-concentrated on a collection F of sets when its Fourier weight off F is at most ε, ∑_{S ∉ F} f̂(S) ^ 2 ≤ ε O'Donnell, Definition 3.28. The results here bound the weight on an arbitrary collection T of sets, so they apply to T = Fᶜ and to the degree tails T = {S | k < |S|} of O'Donnell, Definition 3.1 alike; CslibFrontier.Foundations.BooleanAnalysis.Concentration bounds the degree tails from total influence and noise sensitivity instead. By Parseval's identity the weight of any f on T is at most ‖f‖₂ ^ 2 (BitString.sum_fourierCoeff_sq_le_expect_sq), and applied to f - g:

Coefficients of absolute value at most θ on T weigh at most θ ‖f̂‖₁ there (BitString.sum_fourierCoeff_sq_le_mul_sum_abs), the estimate behind the Kushilevitz–Mansour algorithm (UniformLearning.uniformError_kmHypothesis_le). So a function with small spectral 1-norm is ε-concentrated on a collection of at most ‖f̂‖₁ ^ 2 / ε sets (BitString.exists_card_le_sum_fourierCoeff_sq_le) O'Donnell, Exercise 3.16; the proof takes the sets S with ε ≤ ‖f̂‖₁ |f̂(S)|. Against any collection F, the coefficients of absolute value at most θ on T weigh at most their weight off F plus #F θ² (BitString.sum_fourierCoeff_sq_le_sum_compl_add), the estimate behind learning concentrated classes (UniformLearning.kmLearner_learns_concentrated).

Usage #

Open Cslib and Cslib.BitString. The weight W_T[f] of a real function on a collection T : Finset (Finset ι) is written ∑ S ∈ T, fourierCoeff f S ^ 2; take T = Fᶜ for concentration on F, T = {S | t < #S} (written ∑ S with t < #S) for the degree tail, and ∑ S with ¬S ⊆ J for the sets that are not subsets of J. The squared distance ‖f - g‖₂ ^ 2 is 𝔼 x, (f x - g x) ^ 2 and the spectral 1-norm ‖f̂‖₁ is ∑ S, |fourierCoeff f S|. A Boolean function enters through fun x => signVal (f x). For g of degree at most t ((fun x => signVal (g x)) ∈ lowDegree ℝ ι t), BitString.fourierCoeff_eq_zero_of_mem_lowDegree gives the vanishing hypothesis of BitString.sum_fourierCoeff_sq_le_expect_sub_sq on the degree tail, and BitString.expect_sq_signVal_sub_signVal rewrites the distance as 4 * (hammingDist f g / 2 ^ Fintype.card ι): a Boolean function at relative Hamming distance δ from one of degree at most t has weight at most 4 δ above degree t. The book's form of Exercise 3.17, with ε₁-concentration of f and ‖f - g‖₂ ^ 2 ≤ ε₂, follows from BitString.sum_fourierCoeff_sq_le_two_mul_add by linarith. The collection of Exercise 3.16 feeds BitString.hammingDist_signRound_sum_mul_chi_div_le: rounding the expansion of a Boolean function on that collection to signs errs on at most an ε fraction of inputs. Checked clients test each bound on characters of two and three bits, derive the close-to-low-degree corollary and the book's form of Exercise 3.17, and combine Exercise 3.16 with sign rounding, in CslibFrontierTests/BooleanAnalysisSpectralConcentration.lean.

Main results #

References #

theorem Cslib.BitString.sum_fourierCoeff_sq_le_expect_sq {ι : Type u_1} [Fintype ι] [DecidableEq ι] (T : Finset (Finset ι)) (f : (ι → Bool) → ℝ) :
∑ S ∈ T, fourierCoeff f S ^ 2 ≤ Finset.univ.expect fun (x : ι → Bool) => f x ^ 2

Bessel's inequality: the Fourier weight of f on any collection T of sets is at most ‖f‖₂ ^ 2 = 𝔼_x f(x) ^ 2, by Parseval's identity.

theorem Cslib.BitString.sum_fourierCoeff_sq_le_expect_sub_sq {ι : Type u_1} [Fintype ι] [DecidableEq ι] {T : Finset (Finset ι)} {f g : (ι → Bool) → ℝ} (hg : ∀ S ∈ T, fourierCoeff g S = 0) :
∑ S ∈ T, fourierCoeff f S ^ 2 ≤ Finset.univ.expect fun (x : ι → Bool) => (f x - g x) ^ 2

Approximation by a function with no weight on T: if ĝ vanishes on T then the weight of f on T is at most ‖f - g‖₂ ^ 2.

theorem Cslib.BitString.sum_fourierCoeff_sq_le_two_mul_add {ι : Type u_1} [Fintype ι] [DecidableEq ι] (T : Finset (Finset ι)) (f g : (ι → Bool) → ℝ) :
∑ S ∈ T, fourierCoeff g S ^ 2 ≤ 2 * (∑ S ∈ T, fourierCoeff f S ^ 2 + Finset.univ.expect fun (x : ι → Bool) => (f x - g x) ^ 2)

Concentration survives approximation: the weight of g on T is at most 2 (W_T[f] + ‖f - g‖₂ ^ 2); so if the spectrum of f is ε₁-concentrated on F and ‖f - g‖₂ ^ 2 ≤ ε₂, then the spectrum of g is 2 (ε₁ + ε₂)-concentrated on F, taking T = Fᶜ O'Donnell, Exercise 3.17.

theorem Cslib.BitString.sum_fourierCoeff_sq_le_mul_sum_abs {ι : Type u_1} [Fintype ι] [DecidableEq ι] {T : Finset (Finset ι)} {f : (ι → Bool) → ℝ} {θ : ℝ} (hθ : 0 ≤ θ) (h : ∀ S ∈ T, |fourierCoeff f S| ≤ θ) :
∑ S ∈ T, fourierCoeff f S ^ 2 ≤ θ * ∑ S : Finset ι, |fourierCoeff f S|

The weight of small coefficients: if every coefficient of f on T has absolute value at most θ, then the weight of f on T is at most θ ‖f̂‖₁.

theorem Cslib.BitString.sum_fourierCoeff_sq_le_sum_compl_add {ι : Type u_1} [Fintype ι] [DecidableEq ι] {T : Finset (Finset ι)} {f : (ι → Bool) → ℝ} {θ : ℝ} (h : ∀ S ∈ T, |fourierCoeff f S| ≤ θ) (F : Finset (Finset ι)) :
∑ S ∈ T, fourierCoeff f S ^ 2 ≤ ∑ S ∈ Fᶜ, fourierCoeff f S ^ 2 + ↑F.card * θ ^ 2

The weight of small coefficients against a collection: if every coefficient of f on T has absolute value at most θ, then the weight of f on T is at most its weight off any collection F plus #F θ². With T the sets whose coefficient is below θ, this bounds what the Kushilevitz–Mansour search misses for a function concentrated on F.

theorem Cslib.BitString.exists_card_le_sum_fourierCoeff_sq_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] (f : (ι → Bool) → ℝ) {ε : ℝ} (hε : 0 < ε) :
∃ (F : Finset (Finset ι)), ↑F.card ≤ (∑ S : Finset ι, |fourierCoeff f S|) ^ 2 / ε ∧ ∑ S ∈ Fᶜ, fourierCoeff f S ^ 2 ≤ ε

Small spectral 1-norm forces concentration on few sets: the spectrum of f is ε-concentrated on a collection of at most ‖f̂‖₁ ^ 2 / ε sets O'Donnell, Exercise 3.16.