Documentation

CslibFrontier.Foundations.BooleanAnalysis.FriedgutKalaiNaor

The Friedgut–Kalai–Naor Theorem #

A Boolean function f whose Fourier weight at degree one is W^1[f] ≥ 1 - δ is O(δ)-close to a dictator or a negated dictator x ↦ ±x_i: this is the Friedgut–Kalai–Naor (FKN) Theorem [FKN02] O'Donnell, Section 2.5. We prove it with the explicit constants of O'Donnell's proof via the anticoncentration of low-degree functions O'Donnell, Section 9.1: if δ ≤ 1 / 1600, some degree-one coefficient has |f̂({i})| ≥ 1 - 3202 δ (BitString.exists_one_sub_le_abs_fourierCoeff_singleton), and in general f agrees with x ↦ b ⊕ x_i for some i and b except on a fraction at most 1601 δ of the inputs (BitString.exists_hammingDist_xor_div_le_of_le_levelWeight_one). With δ = 0, a Boolean function with W^1[f] = 1 is a dictator or a negated dictator (BitString.exists_eq_xor_of_levelWeight_one_eq_one) O'Donnell, Exercise 1.19(a).

The proof, following O'Donnell, writes ℓ = f^{=1} = ∑ᵢ f̂({i}) χ_{i}, so 𝔼 ℓ ^ 2 = W^1[f] and 𝔼 (f - ℓ) ^ 2 = 1 - W^1[f] ≤ δ. The variance of ℓ ^ 2 is 2 ((∑ᵢ f̂({i}) ^ 2) ^ 2 - ∑ᵢ f̂({i}) ^ 4) (BitString.expect_sum_mul_signVal_sq_sub_expect_sq) O'Donnell, Exercise 1.20; this is the variance of the tug-of-war estimator (Probability.IsKWiseIndependentHash.expect_sq_sum_mul_sign_sub_sq) for the identity hash family. If it exceeded 6400 δ, then by the anticoncentration of the degree-two function ℓ ^ 2 (BitString.nine_div_sixteen_div_nine_pow_le_dens), with probability at least 1 / 144 we would have |ℓ ^ 2 - 1| > 39 √δ, hence (f - ℓ) ^ 2 ≥ 169 δ (BitString.mul_le_sq_sub_of_sq_eq_one, O'Donnell, Exercise 9.5), so 𝔼 (f - ℓ) ^ 2 ≥ 169 δ / 144 > δ. Thus ∑ᵢ f̂({i}) ^ 4 ≥ 1 - 3202 δ, which bounds the largest |f̂({i})| from below. The distance bound 1601 δ = (1 - (1 - 3202 δ)) / 2 follows since f̂({i}) = 1 - 2 dist(f, x ↦ x_i); for δ > 1 / 1600 it is trivial.

Main results #

References #

theorem Cslib.BitString.mul_le_sq_sub_of_sq_eq_one {f l δ : ℝ} (hf : f ^ 2 = 1) (hδ₀ : 0 ≤ δ) (hδ₁ : δ ≤ 1 / 1600) (hl : 39 * √δ < |l ^ 2 - 1|) :
169 * δ ≤ (f - l) ^ 2

A sign far from a near-unit square: if f ^ 2 = 1, 0 ≤ δ ≤ 1 / 1600 and |ℓ ^ 2 - 1| > 39 √δ, then (f - ℓ) ^ 2 ≥ 169 δ O'Donnell, Exercise 9.5.

theorem Cslib.BitString.expect_sum_mul_signVal_sq_sub_expect_sq {ι : Type u_1} [Fintype ι] [DecidableEq ι] (a : ι → ℝ) :
(Finset.univ.expect fun (x : ι → Bool) => ((∑ i : ι, a i * signVal (x i)) ^ 2 - Finset.univ.expect fun (y : ι → Bool) => (∑ i : ι, a i * signVal (y i)) ^ 2) ^ 2) = 2 * ((∑ i : ι, a i ^ 2) ^ 2 - ∑ i : ι, a i ^ 4)

The variance of the square of a homogeneous degree-one function: for ℓ = ∑ᵢ aᵢ xᵢ, Var[ℓ ^ 2] = 2 ∑_{i ≠ j} aᵢ ^ 2 aⱼ ^ 2 = 2 ((∑ᵢ aᵢ ^ 2) ^ 2 - ∑ᵢ aᵢ ^ 4) O'Donnell, Exercise 1.20. This is the variance of the tug-of-war estimator (Probability.IsKWiseIndependentHash.expect_sq_sum_mul_sign_sub_sq) for the identity hash family.

theorem Cslib.BitString.exists_one_sub_le_abs_fourierCoeff_singleton {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : (ι → Bool) → Bool} {δ : ℝ} (hδ : δ ≤ 1 / 1600) (hW : 1 - δ ≤ levelWeight 1 fun (x : ι → Bool) => signVal (f x)) :
∃ (i : ι), 1 - 3202 * δ ≤ |fourierCoeff (fun (x : ι → Bool) => signVal (f x)) {i}|

The FKN Theorem, coefficient form: if a Boolean function f, read as signs, has W^1[f] ≥ 1 - δ with δ ≤ 1 / 1600, then some degree-one coefficient has |f̂({i})| ≥ 1 - 3202 δ [FKN02] O'Donnell, Section 9.1. The constants are those of O'Donnell's proof.

theorem Cslib.BitString.exists_hammingDist_xor_div_le_of_le_levelWeight_one {ι : Type u_1} [Fintype ι] [DecidableEq ι] [Nonempty ι] {f : (ι → Bool) → Bool} {δ : ℝ} (hW : 1 - δ ≤ levelWeight 1 fun (x : ι → Bool) => signVal (f x)) :
∃ (i : ι) (b : Bool), ↑(hammingDist f fun (x : ι → Bool) => b ^^ x i) / 2 ^ Fintype.card ι ≤ 1601 * δ

The Friedgut–Kalai–Naor (FKN) Theorem: if a Boolean function f, read as signs, has Fourier weight W^1[f] ≥ 1 - δ at degree one, then f is 1601 δ-close to a dictator or a negated dictator: for some coordinate i and bit b, f x = b ⊕ x_i except on a fraction at most 1601 δ of the inputs [FKN02] O'Donnell, Section 2.5. The proof is O'Donnell's O'Donnell, Section 9.1; the constant 1601 is 3202 / 2, from his bound |f̂({i})| ≥ 1 - 3202 δ.

theorem Cslib.BitString.exists_eq_xor_of_levelWeight_one_eq_one {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : (ι → Bool) → Bool} (hW : (levelWeight 1 fun (x : ι → Bool) => signVal (f x)) = 1) :
∃ (i : ι) (b : Bool), f = fun (x : ι → Bool) => b ^^ x i

Boolean functions of degree-one weight one are signed dictators: if W^1[f] = 1, then f x = b ⊕ x_i for some coordinate i and bit b O'Donnell, Exercise 1.19(a). This is the FKN Theorem with δ = 0.