Documentation

CslibFrontier.Foundations.BooleanAnalysis.FriedgutJunta

Friedgut's junta theorem #

A Boolean function of small total influence is close to a function of few coordinates: if I[F] ≤ K for a Boolean function f read as signs F, then for every ε > 0, f agrees with a function of at most 4 K ^ 3 / (9 ε ^ 2) · 81 ^ (K / ε) coordinates outside a fraction ε of the inputs (BitString.exists_dependsOn_hammingDist_div_le_of_totalInfluence_le), so, for ε ≤ 1, with a function of at most 3 · 2 ^ (8 K / ε) coordinates (BitString.exists_card_le_three_mul_two_rpow_dependsOn_hammingDist_div_le) [Fri98] O'Donnell, Section 9.6. A function of the coordinates in J is a J-junta, written with Mathlib's DependsOn.

In the form of O'Donnell, Theorem 9.28, where the book takes K = I[F]: at most K / τ coordinates have influence at least τ > 0 (BitString.card_filter_le_influence_le_div_of_totalInfluence_le), which is K³ 9ᵏ / ε² for τ = ε² / (K² 9ᵏ); for any J containing the coordinates of influence more than τ, the spectrum of F is ε-concentrated on {S ⊆ J} ∪ {|S| > k} (BitString.sum_filter_not_subset_and_card_le_fourierCoeff_sq_le_of_totalInfluence_le, from BitString.sum_filter_not_subset_and_card_le_fourierCoeff_sq_le for every threshold τ); and if it is also ε-concentrated on degree up to k, it is 2ε-concentrated on {S ⊆ J : |S| ≤ k} (BitString.sum_filter_not_subset_or_lt_card_fourierCoeff_sq_le) and f is ε-close to a J-junta (BitString.exists_dependsOn_hammingDist_div_le_of_sum_lt_card_fourierCoeff_sq_le).

Proof #

Averaging out the coordinates outside a set J keeps the Fourier coefficients on the subsets of J and kills the others (BitString.fourierCoeff_expect_piecewise), so f is within mean square distance ∑_{S ⊄ J} F̂(S) ^ 2 of a function of the coordinates in J; rounding it to a sign on each fiber of the coordinates in J costs at most half the variance on the fiber (BitString.two_mul_min_le_expect_sub_expect_sq_signVal) [O'Donnell, Proposition 1.15] [OD14], which gives a Boolean J-junta at relative Hamming distance at most half that weight (BitString.exists_dependsOn_two_mul_hammingDist_div_le_sum_not_subset_fourierCoeff_sq) O'Donnell, Exercise 3.34. If every coordinate outside J has influence at most τ, the hypercontractive bound of the Kahn–Kalai–Linial theorem, ∑_{S ∋ i} 3 ^ (-|S|) F̂(S) ^ 2 ≤ Infᵢ[F] ^ (3/2) / 3, summed over the coordinates i ∉ J, bounds the weight on the sets of size at most k that are not subsets of J by 3ᵏ / 3 · √τ · I[F] (Theorem 9.28). The sets of size more than k carry weight at most I[F] / (k + 1), so for every A > 1 the weight outside the subsets of J is at most log 3 / log A · I[F] + A / 3 · √τ · I[F] (BitString.sum_filter_not_subset_fourierCoeff_sq_le). Taking A = 9 ^ (K / ε) and √τ = 3 ε / (2 K A) makes both terms at most ε / 2 (BitString.exists_sum_filter_not_subset_fourierCoeff_sq_le_of_totalInfluence_le), and J has at most K / τ elements.

Main results #

Usage #

Open Cslib.BitString. Theorem 9.28 is stated for any bound K ≥ I[f] in place of the book's I[f]. Write F for fun x => signVal (f x) and hI : totalInfluence F ≤ K. For ht : 0 < t, card_filter_le_influence_le_div_of_totalInfluence_le F ht hI bounds the number of coordinates of influence at least t by K / t; at the book's threshold t = ε ^ 2 / (K ^ 2 * 9 ^ k) this is its K³ 9ᵏ / ε². If every coordinate outside J has influence at most t (hJ), sum_filter_not_subset_and_card_le_fourierCoeff_sq_le f hJ k bounds the Fourier weight on the sets of size at most k that are not subsets of J by 3 ^ k / 3 * √t * totalInfluence F. When hJ uses the book's threshold and hε : 0 ≤ ε, sum_filter_not_subset_and_card_le_fourierCoeff_sq_le_of_totalInfluence_le f hε hI k hJ turns this into ε / 3, so the spectrum is ε-concentrated on the subsets of J and the sets of size more than k. If moreover the weight above degree k is at most ε (hk), sum_filter_not_subset_or_lt_card_fourierCoeff_sq_le f hI k hJ hk gives 2 ε-concentration on the subsets of J of size at most k, and exists_dependsOn_hammingDist_div_le_of_sum_lt_card_fourierCoeff_sq_le f hI k hJ hk gives a J-junta at relative Hamming distance at most ε.

That last step is the sharp form of Proposition 3.31 that the book takes from Exercise 3.34: exists_dependsOn_two_mul_hammingDist_div_le_sum_not_subset_fourierCoeff_sq f J gives a J-junta, the sign of the average of F over the other coordinates, at relative distance at most half the weight outside the subsets of J. The exercise rounds an L¹ approximation at a random threshold. The deterministic sign suffices here because the average over the other coordinates is the conditional mean: on each fiber the sign misses the smaller of the two values, at most half the variance on the fiber by Proposition 1.15 (two_mul_min_le_expect_sub_expect_sq_signVal in CslibFrontier.Foundations.BooleanAnalysis.Variance). The checked examples in CslibFrontierTests/BooleanAnalysisFriedgutConcentration.lean apply all of these to the dictator on two bits, where the count and the threshold weight bound are attained.

References #

Juntas from spectral concentration #

theorem Cslib.BitString.exists_dependsOn_two_mul_hammingDist_div_le_sum_not_subset_fourierCoeff_sq {ι : Type u_1} [Fintype ι] [DecidableEq ι] (f : (ι → Bool) → Bool) (J : Finset ι) :
∃ (g : (ι → Bool) → Bool), DependsOn g ↑J ∧ 2 * (↑(hammingDist f g) / 2 ^ Fintype.card ι) ≤ ∑ S : Finset ι with ¬S ⊆ J, fourierCoeff (fun (x : ι → Bool) => signVal (f x)) S ^ 2

Spectral concentration gives a junta O'Donnell, Proposition 3.31 and Exercises 3.28 and 3.34: a Boolean function is at relative Hamming distance at most (1/2) ∑_{S ⊄ J} F̂(S) ^ 2 from a Boolean function of the coordinates in J, the sign of its average over the other coordinates. This is the conclusion of Exercise 3.34 for g(x) = 𝔼_z F(x_J, z) = F^{⊆J}(x), with deterministic rounding in place of the random threshold: the weight outside the subsets of J is ‖F - g‖₂² = 𝔼_x Var_z F(x_J, z), which for this conditional mean is also the L¹ distance ‖F - g‖₁ of the exercise, and on each fiber of the coordinates in J rounding g to a sign disagrees with F on the smaller of the fractions of the two values, which is at most half the variance on the fiber O'Donnell, Fact 1.14 and Proposition 1.15.

theorem Cslib.BitString.exists_dependsOn_hammingDist_div_le_two_mul_expect_piecewise_ne {ι : Type u_1} [Fintype ι] [DecidableEq ι] (f : (ι → Bool) → Bool) (J : Finset ι) :
∃ (g : (ι → Bool) → Bool), DependsOn g ↑J ∧ ↑(hammingDist f g) / 2 ^ Fintype.card ι ≤ 2 * Finset.univ.expect fun (x : ι → Bool) => Finset.univ.expect fun (z : ι → Bool) => if f x = f (J.piecewise x z) then 0 else 1

Small variation outside J gives a J-junta: a Boolean function is at relative Hamming distance at most twice the probability that resampling the coordinates outside J changes its value from a Boolean function of the coordinates in J O'Donnell, Proposition 3.31 and Exercise 3.28 Arora–Barak, Chapter 19, Exercise 4.

theorem Cslib.BitString.exists_dependsOn_compl_hammingDist_div_le_two_mul_expect_piecewise_ne {ι : Type u_1} [Fintype ι] [DecidableEq ι] (f : (ι → Bool) → Bool) (I : Finset ι) :
∃ (g : (ι → Bool) → Bool), DependsOn g ↑Iᶜ ∧ ↑(hammingDist f g) / 2 ^ Fintype.card ι ≤ 2 * Finset.univ.expect fun (x : ι → Bool) => Finset.univ.expect fun (z : ι → Bool) => if f x = f (I.piecewise z x) then 0 else 1

Small variation on I gives a junta outside I: a Boolean function is at relative Hamming distance at most twice the probability that resampling the coordinates in I changes its value from a Boolean function of the coordinates outside I Arora–Barak, Chapter 19, Exercise 4.

The weight outside the influential coordinates #

theorem Cslib.BitString.card_filter_le_influence_le_div_of_totalInfluence_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] (F : (ι → Bool) → ℝ) {K τ : ℝ} (hτ : 0 < τ) (hI : totalInfluence F ≤ K) :
↑{i : ι | τ ≤ influence i F}.card ≤ K / τ

Few coordinates are influential O'Donnell, Theorem 9.28: if I[F] ≤ K, then at most K / τ coordinates have influence at least τ > 0. For the theorem's τ = ε² / (K² 9ᵏ) this is its bound K³ 9ᵏ / ε² on the influential coordinates.

theorem Cslib.BitString.sum_filter_not_subset_and_card_le_fourierCoeff_sq_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] (f : (ι → Bool) → Bool) {J : Finset ι} {τ : ℝ} (hJ : ∀ i ∉ J, (influence i fun (x : ι → Bool) => signVal (f x)) ≤ τ) (k : ℕ) :
∑ S : Finset ι with ¬S ⊆ J ∧ S.card ≤ k, fourierCoeff (fun (x : ι → Bool) => signVal (f x)) S ^ 2 ≤ 3 ^ k / 3 * √τ * totalInfluence fun (x : ι → Bool) => signVal (f x)

Concentration on the influential coordinates and high degree [O'Donnell, Theorem 9.28] [OD14]: if every coordinate outside J has influence at most τ on a Boolean function read as signs F, then for every k the Fourier weight on the sets of size at most k that are not subsets of J is at most 3ᵏ / 3 · √τ · I[F]. For the theorem's τ = ε² / (I[F]² 9ᵏ) the bound is ε / 3, so the spectrum of F is ε-concentrated on {S ⊆ J} ∪ {|S| > k}. The proof is the book's: such a set S has F̂(S)² ≤ 3^{k - 1} |S \ J| 3^{1 - |S|} F̂(S)², and the sum over S of the right side is 3^{k - 1} ∑_{i ∉ J} Infᵢ^{(1/3)}[F] ≤ 3^{k - 1} √τ I[F] by the hypercontractive bound of the Kahn–Kalai–Linial theorem.

theorem Cslib.BitString.sum_filter_not_subset_and_card_le_fourierCoeff_sq_le_of_totalInfluence_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] (f : (ι → Bool) → Bool) {K ε : ℝ} (hε : 0 ≤ ε) (hI : (totalInfluence fun (x : ι → Bool) => signVal (f x)) ≤ K) (k : ℕ) {J : Finset ι} (hJ : ∀ i ∉ J, (influence i fun (x : ι → Bool) => signVal (f x)) ≤ ε ^ 2 / (K ^ 2 * 9 ^ k)) :
∑ S : Finset ι with ¬S ⊆ J ∧ S.card ≤ k, fourierCoeff (fun (x : ι → Bool) => signVal (f x)) S ^ 2 ≤ ε / 3

Concentration on the influential coordinates and high degree, with the book's threshold O'Donnell, Theorem 9.28: if a Boolean function read as signs F has I[F] ≤ K, ε ≥ 0 and every coordinate outside J has influence at most τ = ε² / (K² 9ᵏ), then the Fourier weight outside {S ⊆ J} ∪ {|S| > k} is at most ε / 3. The book takes K = I[F] and J the set of coordinates of influence at least τ, and states the bound ε.

theorem Cslib.BitString.sum_filter_not_subset_fourierCoeff_sq_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] (f : (ι → Bool) → Bool) {J : Finset ι} {τ : ℝ} (hJ : ∀ i ∉ J, (influence i fun (x : ι → Bool) => signVal (f x)) ≤ τ) {A : ℝ} (hA : 1 < A) :
∑ S : Finset ι with ¬S ⊆ J, fourierCoeff (fun (x : ι → Bool) => signVal (f x)) S ^ 2 ≤ (Real.log 3 / Real.log A * totalInfluence fun (x : ι → Bool) => signVal (f x)) + A / 3 * √τ * totalInfluence fun (x : ι → Bool) => signVal (f x)

The Fourier weight outside the influential coordinates: if every coordinate outside J has influence at most τ on a Boolean function read as signs F, then for every A > 1, ∑_{S ⊄ J} F̂(S) ^ 2 ≤ log 3 / log A · I[F] + A / 3 · √τ · I[F], adapting the proof of O'Donnell, Theorem 9.28: with 3ᵏ ≤ A < 3ᵏ⁺¹, the sets of size at most k carry at most A / 3 · √τ · I[F] of this weight (BitString.sum_filter_not_subset_and_card_le_fourierCoeff_sq_le), and the larger ones at most I[F] / (k + 1) ≤ log 3 / log A · I[F].

Concentration on the influential coordinates of low degree #

theorem Cslib.BitString.sum_filter_not_subset_or_lt_card_fourierCoeff_sq_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] (f : (ι → Bool) → Bool) {K ε : ℝ} (hI : (totalInfluence fun (x : ι → Bool) => signVal (f x)) ≤ K) (k : ℕ) {J : Finset ι} (hJ : ∀ i ∉ J, (influence i fun (x : ι → Bool) => signVal (f x)) ≤ ε ^ 2 / (K ^ 2 * 9 ^ k)) (hk : ∑ S : Finset ι with k < S.card, fourierCoeff (fun (x : ι → Bool) => signVal (f x)) S ^ 2 ≤ ε) :
∑ S : Finset ι with ¬S ⊆ J ∨ k < S.card, fourierCoeff (fun (x : ι → Bool) => signVal (f x)) S ^ 2 ≤ 2 * ε

Concentration on the influential coordinates of low degree [O'Donnell, Theorem 9.28] [OD14]: if a Boolean function read as signs F has I[F] ≤ K and its Fourier spectrum is ε-concentrated on degree up to k, then, for any J containing every coordinate of influence more than τ = ε² / (K² 9ᵏ), the spectrum is 2ε-concentrated on {S ⊆ J : |S| ≤ k}. The book takes K = I[F] and J the set of coordinates of influence at least τ.

theorem Cslib.BitString.exists_dependsOn_hammingDist_div_le_of_sum_lt_card_fourierCoeff_sq_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] (f : (ι → Bool) → Bool) {K ε : ℝ} (hI : (totalInfluence fun (x : ι → Bool) => signVal (f x)) ≤ K) (k : ℕ) {J : Finset ι} (hJ : ∀ i ∉ J, (influence i fun (x : ι → Bool) => signVal (f x)) ≤ ε ^ 2 / (K ^ 2 * 9 ^ k)) (hk : ∑ S : Finset ι with k < S.card, fourierCoeff (fun (x : ι → Bool) => signVal (f x)) S ^ 2 ≤ ε) :
∃ (g : (ι → Bool) → Bool), DependsOn g ↑J ∧ ↑(hammingDist f g) / 2 ^ Fintype.card ι ≤ ε

A junta from low-degree concentration O'Donnell, Theorem 9.28: if a Boolean function read as signs F has I[F] ≤ K and its Fourier spectrum is ε-concentrated on degree up to k, then f is at relative Hamming distance at most ε from a Boolean function of the coordinates of any J containing every coordinate of influence more than τ = ε² / (K² 9ᵏ).

Friedgut's junta theorem #

theorem Cslib.BitString.exists_sum_filter_not_subset_fourierCoeff_sq_le_of_totalInfluence_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] (f : (ι → Bool) → Bool) {K ε : ℝ} (hε : 0 < ε) (hK : (totalInfluence fun (x : ι → Bool) => signVal (f x)) ≤ K) :
∃ (J : Finset ι), ↑J.card ≤ 4 * K ^ 3 / (9 * ε ^ 2) * 81 ^ (K / ε) ∧ ∑ S : Finset ι with ¬S ⊆ J, fourierCoeff (fun (x : ι → Bool) => signVal (f x)) S ^ 2 ≤ ε

Few coordinates carry the Fourier weight: if a Boolean function read as signs F has total influence at most K, then for every ε > 0 there is a set J of at most 4 K ^ 3 / (9 ε ^ 2) · 81 ^ (K / ε) coordinates with ∑_{S ⊄ J} F̂(S) ^ 2 ≤ ε, adapting the proof of O'Donnell, Theorem 9.28. Together with the bound on the weight above degree K / ε (BitString.sum_fourierCoeff_sq_le_of_totalInfluence_le) this is the spectral form of Friedgut's junta theorem O'Donnell, Section 9.6.

theorem Cslib.BitString.exists_dependsOn_hammingDist_div_le_of_totalInfluence_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] (f : (ι → Bool) → Bool) {K ε : ℝ} (hε : 0 < ε) (hK : (totalInfluence fun (x : ι → Bool) => signVal (f x)) ≤ K) :
∃ (J : Finset ι) (g : (ι → Bool) → Bool), ↑J.card ≤ 4 * K ^ 3 / (9 * ε ^ 2) * 81 ^ (K / ε) ∧ DependsOn g ↑J ∧ ↑(hammingDist f g) / 2 ^ Fintype.card ι ≤ ε

Friedgut's junta theorem: if a Boolean function read as signs F has total influence at most K, then for every ε > 0 it is at relative Hamming distance at most ε from a Boolean function of at most 4 K ^ 3 / (9 ε ^ 2) · 81 ^ (K / ε) coordinates [Fri98] O'Donnell, Section 9.6.

theorem Cslib.BitString.exists_card_le_three_mul_two_rpow_dependsOn_hammingDist_div_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] (f : (ι → Bool) → Bool) {K ε : ℝ} (hε : 0 < ε) (hε1 : ε ≤ 1) (hK : (totalInfluence fun (x : ι → Bool) => signVal (f x)) ≤ K) :
∃ (J : Finset ι) (g : (ι → Bool) → Bool), ↑J.card ≤ 3 * 2 ^ (8 * K / ε) ∧ DependsOn g ↑J ∧ ↑(hammingDist f g) / 2 ^ Fintype.card ι ≤ ε

Friedgut's junta theorem, exponential form: if a Boolean function read as signs F has total influence at most K, then for every 0 < ε ≤ 1 it is at relative Hamming distance at most ε from a Boolean function of at most 3 · 2 ^ (8 K / ε) coordinates [Fri98] O'Donnell, Section 9.6.