Documentation

CslibFrontier.Foundations.BooleanAnalysis.KahnKalaiLinial

The Kahn–Kalai–Linial theorem and Talagrand's inequality #

Read a Boolean function f as the function F = (-1) ^ f with values ±1, and write Ĩ = I[F] / Var[F]. By the Poincaré inequality the influences of F on its n coordinates average at least Var[F] / n, and Ĩ ≥ 1. The KKL Edge-Isoperimetric Theorem of O'Donnell, Section 9.6, says that a nonconstant F has a coordinate of influence at least (9 / Ĩ²) 9^{-Ĩ} (BitString.exists_nine_div_sq_mul_one_ninth_rpow_le_influence). We prove it with the book's constants, in the general-variance form asked for in its Exercise 9.29; the book's remark Ĩ ≥ 1 is not a hypothesis. As in the book, splitting on whether Ĩ ≥ log n / 4 turns it into the Kahn–Kalai–Linial theorem [KKL88]: some coordinate has influence at least Var[F] · log n / (4 n) (BitString.exists_expect_sub_expect_sq_mul_log_card_div_le_influence). Here Var[F] is written 𝔼 x, (F x - 𝔼 y, F y) ^ 2, the Fourier weight of F on the nonempty sets.

For a monotone f the influence of i is the degree-one coefficient F̂({i}) O'Donnell, Proposition 2.21, and (9 / Ĩ²) 9^{-Ĩ} ≥ exp(-5 Ĩ), so a nonconstant monotone function has a coordinate with F̂({i})² ≥ exp(-10 Ĩ): O'Donnell's Exercise 9.33 (BitString.exists_exp_neg_le_fourierCoeff_singleton_sq_of_monotone).

The same use of hypercontractivity, run separately on each coordinate, proves Talagrand's inequality Var[F] ≤ 6 ∑ᵢ Infᵢ[F] / log (1 / Infᵢ[F]), for functions whose influences are all less than one (BitString.expect_sub_expect_sq_le_six_mul_sum_influence_div_log) [Tal94]; the form Var[F] ≤ 7 ∑ᵢ Infᵢ[F] / (1 + log (1 / Infᵢ[F])) holds for every Boolean function (BitString.expect_sub_expect_sq_le_seven_mul_sum_influence_div_one_add_log).

Proof #

The derivative Dᵢ F takes the values 0 and ±1, so ‖Dᵢ F‖_{4/3} ^ 2 = Infᵢ[F] ^ (3/2), and the (4/3, 2)-Hypercontractivity Theorem bounds the stable influence Infᵢ^{(1/3)}[F] = Stab_{1/3}[Dᵢ F] ≤ ‖Dᵢ F‖_{4/3} ^ 2: this is Corollary 9.12 of the book, the case ρ = 1/3 of Infᵢ^{(ρ)}[F] ≤ Infᵢ[F] ^ (2 / (1 + ρ)) (BitString.stableInfluence_signVal_le_influence_rpow, Corollary 9.25, in CslibFrontier.Foundations.BooleanAnalysis.StableInfluenceBound). It bounds the low-degree part of the Fourier weight on the sets containing i (BitString.mul_noiseStability_derivative, BitString.sum_filter_mem_one_third_pow_mul_fourierCoeff_sq_le):

∑_{S ∋ i} 3 ^ (-|S|) F̂(S) ^ 2 = 1/3 · Infᵢ^{(1/3)}[F] ≤ 1/3 · Infᵢ[F] ^ (3/2).

For the Edge-Isoperimetric Theorem, with M the largest influence, this gives the book's chain Var[F] 3^{-Ĩ} ≤ ∑_{S ≠ ∅} 3^{-|S|} F̂(S)² ≤ ∑ᵢ ∑_{S ∋ i} 3^{-|S|} F̂(S)² ≤ ∑ᵢ Infᵢ[F]^{3/2} / 3 ≤ √M I[F] / 3. Its first step is the hint of Exercise 9.29: Jensen's inequality for the convex function s ↦ 3^{-s} and the weights F̂(S)² on the nonempty sets (BitString.expect_sub_expect_sq_mul_one_third_rpow_le).

For Talagrand's inequality, the variance is ∑ᵢ ∑_{S ∋ i} F̂(S) ^ 2 / |S|. For A > 1 and every m ≥ 1, 1 / m ≤ log 3 / log A + A 3 ^ (-m), according as 3 ^ m ≥ A or not, so the weight on the sets containing i is at most log 3 / log A · Infᵢ[F] + A / 3 · Infᵢ[F] ^ (3/2). If Infᵢ[F] ≤ δ < 1, the choice A = δ ^ (-1/4) and the bound δ ^ (1/4) log (1 / δ) < 4 turn this into 6 Infᵢ[F] / log (1 / δ); taking δ = Infᵢ[F] gives Talagrand's inequality.

Main results #

Usage #

For f : (ι → Bool) → Bool over a finite coordinate type ι, pass a proof hV that the variance 𝔼 x, (signVal (f x) - 𝔼 y, signVal (f y)) ^ 2 is positive (that is, f is nonconstant) to exists_nine_div_sq_mul_one_ninth_rpow_le_influence f hV; it returns a coordinate i with (9 / Ĩ²) 9^{-Ĩ} ≤ influence i (fun x => signVal (f x)), where Ĩ is written out as totalInfluence (fun x => signVal (f x)) divided by the variance. Rewriting the variance and the total influence of a concrete function turns the bound into a number. With [Nonempty ι], exists_expect_sub_expect_sq_mul_log_card_div_le_influence f needs no hypothesis; a lower bound on the variance, such as three_div_four_le_expect_sub_expect_sq_tribes, makes it explicit. The checked clients in CslibFrontierTests/KahnKalaiLinial.lean compute variances and total influences from Fourier weights, apply the convexity step to χ_{0} + χ_{0,1} on two bits (Var = 2, I = 3, giving 2 · 3^{-3/2} ≤ 4 / 9), apply the theorem to a dictator (Ĩ = 1, giving influence 1, the maximum possible), and apply the Kahn–Kalai–Linial bound to the nearly balanced Tribes function.

expect_sub_expect_sq_signVal_pos in CslibFrontier.Foundations.BooleanAnalysis.Variance turns a nonconstancy witness hc : ∃ x y, f x ≠ f y into the hypothesis hV. For a monotone f (hf : Monotone f), exists_exp_neg_le_fourierCoeff_singleton_sq_of_monotone hf hc returns a coordinate i with exp (-(10 * I / V)) ≤ fourierCoeff (fun x => signVal (f x)) {i} ^ 2, where I = totalInfluence (fun x => signVal (f x)) and V is the variance. Both hypotheses are needed: a constant function has V = 0, so the bound reads exp 0 = 1, while every degree-one coefficient is 0; the parity of two bits is nonconstant and has no nonzero degree-one coefficient. The checked client CslibFrontierTests/BooleanAnalysisMonotoneCoefficient.lean applies it to the conjunction of two bits, with V = 3 / 4 and I ≤ 2, and gets a squared degree-one coefficient of at least exp(-27).

References #

Hypercontractivity on the derivatives #

theorem Cslib.BitString.sum_filter_mem_one_third_pow_mul_fourierCoeff_sq_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] (f : (ι → Bool) → Bool) (i : ι) :
∑ S : Finset ι with i ∈ S, (1 / 3) ^ S.card * fourierCoeff (fun (x : ι → Bool) => signVal (f x)) S ^ 2 ≤ (influence i fun (x : ι → Bool) => signVal (f x)) * √(influence i fun (x : ι → Bool) => signVal (f x)) / 3

Hypercontractivity bounds the low-degree weight on the sets containing a coordinate: for a Boolean function read as signs, ∑_{S ∋ i} 3 ^ (-|S|) F̂(S) ^ 2 = 1/3 · Infᵢ^{(1/3)}[F], which is at most 1/3 · Infᵢ[F] ^ (3/2) by stableInfluence_signVal_le_influence_rpow at ρ = 1/3 O'Donnell, Corollary 9.12.

The Kahn–Kalai–Linial theorem #

theorem Cslib.BitString.expect_sub_expect_sq_mul_one_third_rpow_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] (F : (ι → Bool) → ℝ) :
(Finset.univ.expect fun (x : ι → Bool) => (F x - Finset.univ.expect fun (y : ι → Bool) => F y) ^ 2) * (1 / 3) ^ (totalInfluence F / Finset.univ.expect fun (x : ι → Bool) => (F x - Finset.univ.expect fun (y : ι → Bool) => F y) ^ 2) ≤ ∑ S : Finset ι with S ≠ ∅, (1 / 3) ^ S.card * fourierCoeff F S ^ 2

The convexity step of O'Donnell, Exercise 9.29: for every real F with variance V and total influence I, V 3^{-I / V} ≤ ∑_{S ≠ ∅} 3^{-|S|} F̂(S)², by Jensen's inequality for s ↦ 3^{-s} and the weights F̂(S)². For V = 0 the left side is zero.

theorem Cslib.BitString.exists_nine_div_sq_mul_one_ninth_rpow_le_influence {ι : Type u_1} [Fintype ι] [DecidableEq ι] (f : (ι → Bool) → Bool) (hV : 0 < Finset.univ.expect fun (x : ι → Bool) => (signVal (f x) - Finset.univ.expect fun (y : ι → Bool) => signVal (f y)) ^ 2) :
∃ (i : ι), 9 / ((totalInfluence fun (x : ι → Bool) => signVal (f x)) / Finset.univ.expect fun (x : ι → Bool) => (signVal (f x) - Finset.univ.expect fun (y : ι → Bool) => signVal (f y)) ^ 2) ^ 2 * (1 / 9) ^ ((totalInfluence fun (x : ι → Bool) => signVal (f x)) / Finset.univ.expect fun (x : ι → Bool) => (signVal (f x) - Finset.univ.expect fun (y : ι → Bool) => signVal (f y)) ^ 2) ≤ influence i fun (x : ι → Bool) => signVal (f x)

The KKL Edge-Isoperimetric Theorem of O'Donnell, Section 9.6, in the general-variance form of its Exercise 9.29: for a nonconstant Boolean function f, read as signs, with Ĩ = I[f] / Var[f], some coordinate has influence at least (9 / Ĩ²) 9^{-Ĩ}.

theorem Cslib.BitString.exists_expect_sub_expect_sq_mul_log_card_div_le_influence {ι : Type u_1} [Fintype ι] [DecidableEq ι] [Nonempty ι] (f : (ι → Bool) → Bool) :
∃ (i : ι), (Finset.univ.expect fun (x : ι → Bool) => (signVal (f x) - Finset.univ.expect fun (y : ι → Bool) => signVal (f y)) ^ 2) * Real.log ↑(Fintype.card ι) / (4 * ↑(Fintype.card ι)) ≤ influence i fun (x : ι → Bool) => signVal (f x)

The Kahn–Kalai–Linial theorem [KKL88], derived from the Edge-Isoperimetric version as in O'Donnell, Section 9.6: some coordinate has influence at least Var[F] · log n / (4 n) on a Boolean function read as signs F of n ≥ 1 coordinates. If Ĩ ≥ log n / 4, the average influence I[F] / n is large enough; otherwise the KKL Edge-Isoperimetric Theorem gives MaxInf ≥ 144 / log² n · n^{-log 9 / 4}, which is larger.

Monotone functions #

theorem Cslib.BitString.exists_exp_neg_le_fourierCoeff_singleton_sq_of_monotone {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : (ι → Bool) → Bool} (hf : Monotone f) (hc : ∃ (x : ι → Bool) (y : ι → Bool), f x ≠ f y) :
∃ (i : ι), Real.exp (-((10 * totalInfluence fun (x : ι → Bool) => signVal (f x)) / Finset.univ.expect fun (x : ι → Bool) => (signVal (f x) - Finset.univ.expect fun (y : ι → Bool) => signVal (f y)) ^ 2)) ≤ fourierCoeff (fun (x : ι → Bool) => signVal (f x)) {i} ^ 2

A monotone function has a large degree-one coefficient O'Donnell, Exercise 9.33: a nonconstant monotone Boolean function read as signs F has a coordinate i with F̂({i})² ≥ exp(-10 I[F] / Var[F]). The book asks for some S ≠ ∅ with F̂(S)² ≥ exp(-O(I[F] / Var[F])); this takes S = {i}, as the book's hint suggests. For monotone f the influence of i is F̂({i}) (Proposition 2.21), and the KKL Edge-Isoperimetric Theorem exists_nine_div_sq_mul_one_ninth_rpow_le_influence bounds the largest influence below by (9 / Ĩ²) 9^{-Ĩ} ≥ exp(-5 Ĩ).

The weight on the sets containing a coordinate #

theorem Cslib.BitString.sum_filter_mem_fourierCoeff_sq_div_card_le_influence {ι : Type u_1} [Fintype ι] [DecidableEq ι] (f : (ι → Bool) → ℝ) (i : ι) :
∑ S : Finset ι with i ∈ S, fourierCoeff f S ^ 2 / ↑S.card ≤ influence i f

The weight ∑_{S ∋ i} f̂(S) ^ 2 / |S| is at most the influence of i.

theorem Cslib.BitString.one_le_mul_log_three_div_log_or_one_lt_mul_one_third_pow {A : ℝ} (hA : 1 < A) (m : ℕ) :
1 ≤ ↑m * (Real.log 3 / Real.log A) ∨ 1 < A * (1 / 3) ^ m

The degree threshold: for A > 1, every m satisfies 1 ≤ m log 3 / log A or 1 < A 3 ^ (-m), according as 3 ^ m ≥ A or not.

Talagrand's inequality #

theorem Cslib.BitString.expect_sub_expect_sq_le_six_mul_sum_influence_div_log {ι : Type u_1} [Fintype ι] [DecidableEq ι] (f : (ι → Bool) → Bool) (hf : ∀ (i : ι), (influence i fun (x : ι → Bool) => signVal (f x)) < 1) :
(Finset.univ.expect fun (x : ι → Bool) => (signVal (f x) - Finset.univ.expect fun (y : ι → Bool) => signVal (f y)) ^ 2) ≤ 6 * ∑ i : ι, (influence i fun (x : ι → Bool) => signVal (f x)) / Real.log (influence i fun (x : ι → Bool) => signVal (f x))⁻¹

Talagrand's inequality: for a Boolean function read as signs F whose influences are all less than one, Var[F] ≤ 6 ∑ᵢ Infᵢ[F] / log (1 / Infᵢ[F]) [Tal94]. A coordinate of influence one contributes +∞ in the usual reading of the inequality; for an unconditional form see expect_sub_expect_sq_le_seven_mul_sum_influence_div_one_add_log.

theorem Cslib.BitString.expect_sub_expect_sq_le_seven_mul_sum_influence_div_one_add_log {ι : Type u_1} [Fintype ι] [DecidableEq ι] (f : (ι → Bool) → Bool) :
(Finset.univ.expect fun (x : ι → Bool) => (signVal (f x) - Finset.univ.expect fun (y : ι → Bool) => signVal (f y)) ^ 2) ≤ 7 * ∑ i : ι, (influence i fun (x : ι → Bool) => signVal (f x)) / (1 + Real.log (influence i fun (x : ι → Bool) => signVal (f x))⁻¹)

Talagrand's inequality, unconditional form: for every Boolean function read as signs F, Var[F] ≤ 7 ∑ᵢ Infᵢ[F] / (1 + log (1 / Infᵢ[F])) [Tal94].