Documentation

CslibFrontier.Foundations.BooleanAnalysis.DegreeOneWeight

Degree-one weight one and the extremes of noise stability #

A Boolean function f, read as signs F = signVal ∘ f, has squared Fourier coefficients summing to one, so its weight at degree k is W^k[F] = 1 exactly when its coefficients off the sets of size k vanish (BitString.levelWeight_signVal_eq_one_iff_fourierCoeff_eq_zero). The functions with W^1[F] = 1 are exactly the literals x ↦ b ⊕ x_i, the book's ±χ_i (BitString.levelWeight_one_signVal_eq_one_iff) O'Donnell, Exercise 1.19(a): the forward direction is the Friedgut–Kalai–Naor module's BitString.exists_eq_xor_of_levelWeight_one_eq_one, and every literal has W^1 = 1 since its only nonzero coefficient is ±1 on {i} (BitString.fourierCoeff_signVal_xor).

Since Stab_ρ[F] = ∑_S ρ ^ |S| F̂(S) ^ 2 and the squares sum to one, ρ - Stab_ρ[F] = ∑_S (ρ - ρ ^ |S|) F̂(S) ^ 2, so a function with W^1[F] = 1 has Stab_ρ[F] = ρ at every rate (BitString.noiseStability_signVal_eq_of_levelWeight_one_eq_one). This pins down the extremes of noise stability. For 0 ≤ ρ ≤ 1 an unbiased F has Stab_ρ[F] ≤ ρ (BitString.noiseStability_signVal_le_of_expect_eq_zero), and for 0 < ρ < 1 equality holds exactly for the literals (BitString.noiseStability_signVal_eq_iff_of_expect_eq_zero) O'Donnell, Proposition 2.50. For -1 ≤ ρ ≤ 0 every F has Stab_ρ[F] ≥ ρ, since ρ ^ k ≥ ρ for every k (BitString.le_noiseStability_signVal_of_nonpos), and for -1 < ρ < 0 equality holds exactly for the literals (BitString.noiseStability_signVal_eq_iff_of_neg). At ρ = -1/3 these are the two steps of the book's proof of Arrow's Theorem from Theorem 2.56 O'Donnell, Section 2.5.

Main results #

Usage #

Open Cslib.BitString. A Boolean function f : (ι → Bool) → Bool is read as signs through fun x => signVal (f x), the book's ±χ_i are the literals fun x => b ^^ x i, levelWeight 1 is W^1 and noiseStability ρ is Stab_ρ. Unbiasedness is 𝔼 x, signVal (f x) = 0. The forward direction of Cslib.BitString.levelWeight_one_signVal_eq_one_iff is the δ = 0 case Cslib.BitString.exists_eq_xor_of_levelWeight_one_eq_one of the Friedgut–Kalai–Naor theorem; for the coefficients of a single literal use Cslib.BitString.fourierCoeff_signVal_xor. The Proposition 2.50 bound is stated on 0 ≤ ρ ≤ 1, the book's on 0 < ρ < 1; its equality case keeps the open interval, since every unbiased f has Stab_0 = 0 and every f has Stab_1 = 1. At negative rates no unbiasedness is needed; at ρ = 0 equality holds for every unbiased f, and at ρ = -1 for every function with only odd-degree weight, such as the majority of three bits. Theorem 2.56, the Condorcet formula 3/4 - 3/4 Stab_{-1/3}[f], and Arrow's Theorem are proved in CslibFrontier.Foundations.BooleanAnalysis.CondorcetElection.

The checked clients in CslibFrontierTests/BooleanAnalysisDegreeOneWeight.lean apply these statements to the negated dictator on three bits and the parity of two bits, at ρ = 1/2, -1/3 and the endpoints, and check that the majority of three bits has Stab_{-1} = -1.

References #

Weight one at a single degree #

theorem Cslib.BitString.levelWeight_signVal_eq_one_iff_fourierCoeff_eq_zero {ι : Type u_1} [Fintype ι] [DecidableEq ι] (k : ℕ) (f : (ι → Bool) → Bool) :
(levelWeight k fun (x : ι → Bool) => signVal (f x)) = 1 ↔ ∀ (S : Finset ι), S.card ≠ k → fourierCoeff (fun (x : ι → Bool) => signVal (f x)) S = 0

All the weight at one degree, by coefficients: a Boolean function read as signs has W^k[F] = 1 exactly when its Fourier coefficients on the sets of size other than k vanish.

theorem Cslib.BitString.levelWeight_one_signVal_eq_one_iff {ι : Type u_1} [Fintype ι] [DecidableEq ι] (f : (ι → Bool) → Bool) :
(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 the literals: a Boolean function read as signs has W^1[F] = 1 if and only if f x = b ⊕ x_i for some coordinate i and bit b O'Donnell, Exercise 1.19(a). The book states the forward direction, with f = ±χ_i in the ±1 encoding; the converse holds since the only nonzero coefficient of x ↦ b ⊕ x_i is ±1, on {i}.

Noise stability at degree one #

theorem Cslib.BitString.noiseStability_signVal_eq_of_levelWeight_one_eq_one {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : (ι → Bool) → Bool} (h : (levelWeight 1 fun (x : ι → Bool) => signVal (f x)) = 1) (ρ : ℝ) :
(noiseStability ρ fun (x : ι → Bool) => signVal (f x)) = ρ

Degree-one weight one gives noise stability ρ: a Boolean function read as signs with W^1[F] = 1 has Stab_ρ[F] = ρ at every rate ρ. With Cslib.BitString.levelWeight_one_signVal_eq_one_iff this gives Stab_ρ[±χ_i] = ρ O'Donnell, Example 2.44.

theorem Cslib.BitString.noiseStability_signVal_le_of_expect_eq_zero {ι : Type u_1} [Fintype ι] [DecidableEq ι] {ρ : ℝ} (h₀ : 0 ≤ ρ) (h₁ : ρ ≤ 1) {f : (ι → Bool) → Bool} (hf : (Finset.univ.expect fun (x : ι → Bool) => signVal (f x)) = 0) :
(noiseStability ρ fun (x : ι → Bool) => signVal (f x)) ≤ ρ

Unbiased functions are at most as noise-stable as the dictators: for 0 ≤ ρ ≤ 1, an unbiased Boolean function read as signs has Stab_ρ[F] ≤ ρ O'Donnell, Proposition 2.50. The book states it for 0 < ρ < 1; the bound holds on the closed interval.

theorem Cslib.BitString.noiseStability_signVal_eq_iff_of_expect_eq_zero {ι : Type u_1} [Fintype ι] [DecidableEq ι] {ρ : ℝ} (h₀ : 0 < ρ) (h₁ : ρ < 1) {f : (ι → Bool) → Bool} (hf : (Finset.univ.expect fun (x : ι → Bool) => signVal (f x)) = 0) :
(noiseStability ρ fun (x : ι → Bool) => signVal (f x)) = ρ ↔ ∃ (i : ι) (b : Bool), f = fun (x : ι → Bool) => b ^^ x i

The unbiased functions of largest noise stability are the literals: for 0 < ρ < 1, an unbiased Boolean function read as signs has Stab_ρ[F] = ρ exactly when f x = b ⊕ x_i for some coordinate i and bit b O'Donnell, Proposition 2.50. The book writes the literals as ±χ_i. The equality case needs the open interval: at ρ = 0 every unbiased F has Stab_0[F] = (𝔼 F) ^ 2 = 0, and at ρ = 1 every F has Stab_1[F] = 𝔼 F ^ 2 = 1.

theorem Cslib.BitString.le_noiseStability_signVal_of_nonpos {ι : Type u_1} [Fintype ι] [DecidableEq ι] {ρ : ℝ} (h₁ : -1 ≤ ρ) (h₀ : ρ ≤ 0) (f : (ι → Bool) → Bool) :
ρ ≤ noiseStability ρ fun (x : ι → Bool) => signVal (f x)

Noise stability at a nonpositive rate is at least the rate: for -1 ≤ ρ ≤ 0, a Boolean function read as signs has Stab_ρ[F] ≥ ρ. The book uses the case ρ = -1/3, through (-1/3) ^ k ≥ -1/3, in its proof of Arrow's Theorem O'Donnell, Section 2.5; no unbiasedness is needed.

theorem Cslib.BitString.noiseStability_signVal_eq_iff_of_neg {ι : Type u_1} [Fintype ι] [DecidableEq ι] {ρ : ℝ} (h₁ : -1 < ρ) (h₀ : ρ < 0) (f : (ι → Bool) → Bool) :
(noiseStability ρ fun (x : ι → Bool) => signVal (f x)) = ρ ↔ ∃ (i : ι) (b : Bool), f = fun (x : ι → Bool) => b ^^ x i

The functions of least noise stability at a negative rate are the literals: for -1 < ρ < 0, a Boolean function read as signs has Stab_ρ[F] = ρ exactly when f x = b ⊕ x_i for some coordinate i and bit b. The book uses the forward direction at ρ = -1/3, where Stab_{-1/3}[F] = -1/3 forces W^1[F] = 1 and then f = ±χ_i by Exercise 1.19(a), in its proof of Arrow's Theorem O'Donnell, Section 2.5. Both endpoints are excluded. At ρ = 0, Stab_0[F] = (𝔼 F) ^ 2, which is 0 exactly for the unbiased f, not only the literals. At ρ = -1, every function with only odd-degree weight, such as the majority of three bits, has Stab_{-1}[F] = -1.