Documentation

CslibFrontier.Foundations.BooleanAnalysis.LevelK

The Level-k Inequalities and the sharp Level-1 Inequality #

Let A be a set of the cube ι → Bool with indicator 1_A = A.indicator 1 and volume α = 𝔼 x, 1_A x, and write W^{≤k}[1_A] = ∑_{|S| ≤ k} 1̂_A(S) ^ 2 for its Fourier weight up to degree k, the empty set included as in the book. Since ρ ^ |S| ≥ ρ ^ k for |S| ≤ k, the Fourier formula for the noise stability gives ρ ^ k W^{≤k}[f] ≤ Stab_ρ[f] for 0 ≤ ρ ≤ 1 (BitString.pow_mul_sum_filter_card_le_le_noiseStability). Small-set expansion bounds Stab_ρ[1_A], so indicators of small sets have little Fourier weight at low degrees:

The logarithm is natural, as in the book's ln. Sets stand for the book's {0, 1}-valued functions f = 1_A. Remark 5.28 also asserts the sharp bound for [-1, 1]-valued functions with α = 𝔼 |f|; that extension is not formalized here and is tracked on #2131, as is Exercise 9.19. For [-1, 1]-valued functions, the Level-1 Inequality with the constant 16, proved by the book's Section 5.4 argument, is BitString.levelWeight_one_le_of_abs_le_one in CslibFrontier.Foundations.BooleanAnalysis.LevelOneInequality.

Usage #

Open Cslib and Cslib.BitString. A set A : Set (ι → Bool) enters through its indicator A.indicator 1, with volume 𝔼 x, A.indicator 1 x; the degree-one weight is levelWeight 1 (A.indicator 1), and the weight up to degree k is written as the sum ∑ S with #S ≤ k, fourierCoeff (A.indicator 1) S ^ 2. For a Boolean function f, take A = {x | f x = true}. The hypothesis k ≤ 2 * log (𝔼 x, A.indicator 1 x)⁻¹ of the Level-k Inequalities forces 0 < α < 1: at α = 1 the logarithm is 0, and at α = 0 it is Lean's log 0 = 0, where the book's ln (1 / α) is undefined. The general bound ρ ^ k W^{≤k}[f] ≤ Stab_ρ[f] holds for every real function. Checked clients on the one-bit subcube of volume 1 / 2, where Exercise 9.18(a) is attained at ρ = 1, on a point of the three-bit cube at k = 2, and on a point of the seven-bit cube (α = 1 / 128), where the sharp bound and the k = 1 bound beat the trivial W¹[1_A] ≤ α (1 - α) and W^{≤1}[1_A] ≤ α, are in CslibFrontierTests/BooleanAnalysisLevelK.lean.

Main results #

References #

theorem Cslib.BitString.pow_mul_sum_filter_card_le_le_noiseStability {ι : Type u_1} [Fintype ι] [DecidableEq ι] {ρ : ℝ} (hρ : 0 ≤ ρ) (hρ' : ρ ≤ 1) (k : ℕ) (f : (ι → Bool) → ℝ) :
ρ ^ k * ∑ S : Finset ι with S.card ≤ k, fourierCoeff f S ^ 2 ≤ noiseStability ρ f

Noise stability bounds the low-degree weight: for 0 ≤ ρ ≤ 1, ρ ^ k W^{≤k}[f] ≤ Stab_ρ[f], since Stab_ρ[f] = ∑_S ρ ^ |S| f̂(S) ^ 2 and ρ ^ |S| ≥ ρ ^ k for |S| ≤ k. A step of (9.7) (Section 9.2, p. 256) and of the proof of the Level-k Inequalities (Section 9.5, p. 264) O'Donnell.

theorem Cslib.BitString.sum_filter_card_le_fourierCoeff_indicator_sq_le_three_pow {ι : Type u_1} [Fintype ι] [DecidableEq ι] (A : Set (ι → Bool)) (k : ℕ) :
∑ S : Finset ι with S.card ≤ k, fourierCoeff (A.indicator 1) S ^ 2 ≤ 3 ^ k * (Finset.univ.expect fun (x : ι → Bool) => A.indicator 1 x) ^ (3 / 2)

Level-k inequalities from Corollary 9.8: for a set A of volume α and every k, W^{≤k}[1_A] ≤ 3 ^ k α ^ (3 / 2), since α ^ (3 / 2) ≥ Stab_{1/3}[1_A] ≥ 3 ^ (-k) W^{≤k}[1_A] O'Donnell, (9.7), Section 9.2, p. 256.

theorem Cslib.BitString.sum_filter_card_le_fourierCoeff_indicator_sq_le_log_pow {ι : Type u_1} [Fintype ι] [DecidableEq ι] {k : ℕ} (hk : 0 < k) (A : Set (ι → Bool)) (hkα : ↑k ≤ 2 * Real.log (Finset.univ.expect fun (x : ι → Bool) => A.indicator 1 x)⁻¹) :
∑ S : Finset ι with S.card ≤ k, fourierCoeff (A.indicator 1) S ^ 2 ≤ (2 * Real.exp 1 / ↑k * Real.log (Finset.univ.expect fun (x : ι → Bool) => A.indicator 1 x)⁻¹) ^ k * (Finset.univ.expect fun (x : ι → Bool) => A.indicator 1 x) ^ 2

The Level-k Inequalities: a set A of volume α has W^{≤k}[1_A] ≤ (2e / k · ln (1 / α)) ^ k α ^ 2 for 1 ≤ k ≤ 2 ln (1 / α) O'Donnell, Level-k Inequalities, Section 9.5, p. 264. The book's f : {-1, 1}ⁿ → {0, 1} is the indicator 1_A. By the Small-Set Expansion Theorem, W^{≤k}[1_A] ≤ ρ ^ (-k) Stab_ρ[1_A] ≤ ρ ^ (-k) α ^ (2 (1 - ρ)) for 0 < ρ ≤ 1, and ρ = k / (2 ln (1 / α)) makes the right side (2e / k · ln (1 / α)) ^ k α ^ 2.

theorem Cslib.BitString.levelWeight_one_indicator_le_rpow {ι : Type u_1} [Fintype ι] [DecidableEq ι] {ρ : ℝ} (hρ : 0 < ρ) (hρ' : ρ ≤ 1) (A : Set (ι → Bool)) :
levelWeight 1 (A.indicator 1) ≤ ((Finset.univ.expect fun (x : ι → Bool) => A.indicator 1 x) ^ (2 / (1 + ρ)) - (Finset.univ.expect fun (x : ι → Bool) => A.indicator 1 x) ^ 2) / ρ

The degree-one weight through noise stability: a set A of volume α has W¹[1_A] ≤ (α ^ (2 / (1 + ρ)) - α ^ 2) / ρ for 0 < ρ ≤ 1, since α ^ 2 + ρ W¹[1_A] ≤ Stab_ρ[1_A] ≤ α ^ (2 / (1 + ρ)) O'Donnell, Exercise 9.18(a), Section 9.7, p. 273.

theorem Cslib.BitString.levelWeight_one_indicator_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] (A : Set (ι → Bool)) :
levelWeight 1 (A.indicator 1) ≤ 2 * (Finset.univ.expect fun (x : ι → Bool) => A.indicator 1 x) ^ 2 * Real.log (Finset.univ.expect fun (x : ι → Bool) => A.indicator 1 x)⁻¹

The sharp Level-1 Inequality: a set A of volume α has W¹[1_A] ≤ 2 α ^ 2 ln (1 / α) O'Donnell, Exercise 9.18(b), Section 9.7, p. 273, the {0, 1}-valued case of O'Donnell, Remark 5.28, Section 5.4, p. 126. The book's f : {-1, 1}ⁿ → {0, 1} is the indicator 1_A, and every α is allowed, not only α ≤ 1 / 2. Remark 5.28's extension to [-1, 1]-valued functions is not formalized. As ρ → 0⁺ the bound of Exercise 9.18(a) tends to the derivative of ρ ↦ α ^ (2 / (1 + ρ)) at 0, which is 2 α ^ 2 ln (1 / α). Both sides vanish when α = 0.