Documentation

CslibFrontier.Foundations.BooleanAnalysis.NoiseSensitivityInfluence

Noise sensitivity from total influence #

For a Boolean function f on ι, a string z and a map π : ι → Fin m partitioning the coordinates into m blocks, let g_{z, π}(w) = f (z + w ∘ π) on m bits: f with the variables of each block identified and those selected by z negated. Negating the block of a uniformly random j in a uniformly random w flips each coordinate of z + w ∘ π independently with probability 1 / m when z and π are uniformly random as well, so the noise sensitivity of f at 1 / m is the average over z and π of the average influence I[g_{z, π}] / m (BitString.noiseSensitivity_inv_eq_expect_totalInfluence). The mask i ↦ φ (π i) of a uniformly random map π has independent coordinates, each selected with probability Pr_c [φ c] (BitString.expect_comp_eq_bernoulliAverage).

Consequently, if every g_{z, π} with m = ⌊1 / δ⌋ blocks has total influence at most A, then NS_δ[f] ≤ A / m for 0 < δ ≤ 1 / 2 (BitString.noiseSensitivity_le_div_of_totalInfluence_le). For a class of functions closed under negating input variables, identifying them and adding dummy variables, each of whose members on m bits has total influence at most A(m), the functions g_{z, π} of a member are members, so every member has NS_δ[f] ≤ A(m) / m (BitString.noiseSensitivity_le_div_of_comp_add_comp_mem) O'Donnell, Theorem 5.35. The book states Theorem 5.35 for classes closed under negation and identification only; its proof also uses the functions g_{z, π} with π not onto, which have dummy variables, so it uses closure under adding dummy variables implicitly. Without it the statement fails: the class {χ₁, -χ₁} of functions on one bit is closed under negation and identification, and with A(1) = 1 and A(m) = 0 for m ≥ 2 it would give NS_{1/4}[χ₁] ≤ 0, while NS_{1/4}[χ₁] = 1/4.

Main results #

Usage #

Open Cslib.BitString. The function g_{z, π} is written fun w => f (z + fun i => w (π i)) for z : ι → Bool and π : ι → Fin m; Cslib.BitString.IsPTF.comp_add_comp shows that it is again a polynomial threshold function of the same degree. In Cslib.BitString.noiseSensitivity_le_div_of_comp_add_comp_mem the class is a family B n of functions on Fin n → Bool, closed under every f ↦ g_{z, π}, including maps π that are not surjective (the unused variables are dummies). Negation (π the identity) and identification (z = 0, π onto) are special cases; composing them gives g_{z, π} only for π onto, and the remaining maps also add dummy variables. For a single function on any finite type, with a bound on its own functions g_{z, π}, use Cslib.BitString.noiseSensitivity_le_div_of_totalInfluence_le. CslibFrontier.Foundations.BooleanAnalysis.Peres applies the class form to linear threshold functions.

The checked clients in CslibFrontierTests/BooleanAnalysisPeres.lean apply the exact identity to the majority of three bits at m = 2, the class form with A(m) = √m at δ = 1 / 3, the single-function form to ¬x₀ ∧ x₁, and check that a random map to Fin 4 puts a coordinate in block 0 with probability 1 / 4.

References #

theorem Cslib.BitString.expect_comp_eq_bernoulliAverage {ι : Type u_1} [Fintype ι] [DecidableEq ι] {κ : Type u_2} [Fintype κ] [Nonempty κ] (φ : κ → Bool) (h : (ι → Bool) → ℝ) :
(Finset.univ.expect fun (π : ι → κ) => h fun (i : ι) => φ (π i)) = bernoulliAverage (↑{c : κ | φ c = true}.dens) h

A predicate of a uniformly random map is a Bernoulli mask: for a uniformly random map π : ι → κ, the mask i ↦ φ (π i) selects the coordinates independently, each with the probability Pr_c [φ c] that φ holds at a uniformly random c.

theorem Cslib.BitString.noiseSensitivity_inv_eq_expect_totalInfluence {ι : Type u_1} [Fintype ι] [DecidableEq ι] (f : (ι → Bool) → Bool) (m : ℕ) :
noiseSensitivity (↑m)⁻¹ f = (↑m)⁻¹ * Finset.univ.expect fun (z : ι → Bool) => Finset.univ.expect fun (π : ι → Fin m) => totalInfluence fun (w : Fin m → Bool) => signVal (f (z + fun (i : ι) => w (π i)))

Noise sensitivity as average influence O'Donnell, proof of Theorem 5.35: the noise sensitivity of f at 1 / m is the average, over uniformly random strings z and maps π : ι → Fin m, of 1 / m times the total influence of g_{z, π}(w) = f (z + w ∘ π), the function of m bits obtained from f by identifying the variables in each block of π and negating those selected by z.

theorem Cslib.BitString.noiseSensitivity_le_div_of_totalInfluence_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] {δ A : ℝ} (hδ : 0 < δ) (hδ' : δ ≤ 1 / 2) (f : (ι → Bool) → Bool) (hA : ∀ (z : ι → Bool) (π : ι → Fin ⌊δ⁻¹⌋₊), (totalInfluence fun (w : Fin ⌊δ⁻¹⌋₊ → Bool) => signVal (f (z + fun (i : ι) => w (π i)))) ≤ A) :

Noise sensitivity from the total influence of the functions g_{z, π}: for 0 < δ ≤ 1 / 2 and m = ⌊1 / δ⌋, if each function g_{z, π}(w) = f (z + w ∘ π) of m bits, obtained from f by negating and identifying input variables, has total influence at most A, then NS_δ[f] ≤ A / m. This is the argument of O'Donnell, Theorem 5.35 for a single function; the book's statement for a class is BitString.noiseSensitivity_le_div_of_comp_add_comp_mem.

theorem Cslib.BitString.noiseSensitivity_le_div_of_comp_add_comp_mem {B : (n : ℕ) → ((Fin n → Bool) → Bool) → Prop} {A : ℕ → ℝ} (hB : ∀ {n m : ℕ} {f : (Fin n → Bool) → Bool} (z : Fin n → Bool) (π : Fin n → Fin m), B n f → B m fun (w : Fin m → Bool) => f (z + fun (i : Fin n) => w (π i))) (hA : ∀ {n : ℕ} {f : (Fin n → Bool) → Bool}, B n f → (totalInfluence fun (x : Fin n → Bool) => signVal (f x)) ≤ A n) {δ : ℝ} (hδ : 0 < δ) (hδ' : δ ≤ 1 / 2) {n : ℕ} {f : (Fin n → Bool) → Bool} (hf : B n f) :

Noise sensitivity from total influence O'Donnell, Theorem 5.35: let B be a class of Boolean functions, B n on n bits, closed under negating, identifying and adding dummy input variables, whose members on n bits have total influence at most A n. Then for 0 < δ ≤ 1 / 2 and m = ⌊1 / δ⌋, every member f of B has NS_δ[f] ≤ A(m) / m. Closure is asked for the maps f ↦ (w ↦ f (z + w ∘ π)) with arbitrary z and π : Fin n → Fin m; π need not be surjective, so the unused variables of w are dummies. The book asks only for closure under negation and identification, but its proof uses these maps for every π, and the statement fails without closure under adding dummy variables (see the module docstring).