Documentation

CslibFrontier.Foundations.BooleanAnalysis.StableInfluence

Stable influences #

The ρ-stable influence of coordinate i on a real function f is the noise stability of its derivative, Infᵢ^{(ρ)}[f] = Stab_ρ[Dᵢ f] (BitString.stableInfluence), and the total ρ-stable influence is their sum (BitString.totalStableInfluence) O'Donnell, Definition 2.52. In Fourier terms, Infᵢ^{(ρ)}[f] = ∑_{S ∋ i} ρ ^ (|S| - 1) f̂(S) ^ 2 (BitString.stableInfluence_eq_sum) and I^{(ρ)}[f] = ∑_S |S| ρ ^ (|S| - 1) f̂(S) ^ 2 (BitString.totalStableInfluence_eq_sum) O'Donnell, Fact 2.53, so at ρ = 1 they are the influence and the total influence (BitString.stableInfluence_one, BitString.totalStableInfluence_one). The total stable influence is the derivative of the noise stability in ρ (BitString.hasDerivAt_noiseStability, the rest of Fact 2.53); at ρ = 0 that derivative is the level-one weight and at ρ = 1 the total influence (BitString.hasDerivAt_noiseStability_zero, BitString.hasDerivAt_noiseStability_one) O'Donnell, Proposition 2.51.

Damping the high degrees caps the total: since k δ (1 - δ) ^ (k - 1) ≤ 1 for every k O'Donnell, Exercise 2.45, δ I^{(1 - δ)}[f] ≤ Var[f] for 0 ≤ δ ≤ 1 (BitString.mul_totalStableInfluence_le). Hence δ ε N ≤ Var[f], where N counts the coordinates of (1 - δ)-stable influence at least ε (BitString.mul_card_filter_le_stableInfluence_le); for a function of variance at most one, such as a Boolean function read as signs, at most 1 / (δ ε) coordinates have (1 - δ)-stable influence at least ε O'Donnell, Proposition 2.54, in contrast with ordinary influences, which can all be large at once.

Usage #

The derivative of the noise stability in its rate is stated as HasDerivAt of fun r => noiseStability r f: BitString.hasDerivAt_noiseStability f ρ gives the derivative totalStableInfluence ρ f at every real ρ (two-sided, although Definition 2.52 takes ρ ∈ [0, 1]), and BitString.hasDerivAt_noiseStability_zero f and BitString.hasDerivAt_noiseStability_one f give levelWeight 1 f at 0 and totalInfluence f at 1. HasDerivAt.deriv turns each into an equation for deriv (fun r => noiseStability r f). To evaluate the derivative on a concrete function, rewrite with BitString.totalStableInfluence_eq_sum and compute its Fourier coefficients. The restatement of Proposition 2.51 for noise sensitivity, d/dδ NS_δ[f] = I[f] at δ = 0, is not stated separately. Its claim that NS_δ[f] increases on [0, 1/2] for Boolean f is BitString.noiseSensitivity_mono (Noise.lean). The checked clients in CslibFrontierTests/BooleanAnalysisStableInfluence.lean compute these for the character χ_{0,1} on three coordinates, whose stability ρ ^ 2 has derivative 2ρ: zero, its level-one weight, at 0 and two, its total influence, at 1.

Main definitions #

Main results #

References #

noncomputable def Cslib.BitString.stableInfluence {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ρ : ℝ) (i : ι) (f : (ι → Bool) → ℝ) :

The ρ-stable influence Infᵢ^{(ρ)}[f] = Stab_ρ[Dᵢ f] of coordinate i on f O'Donnell, Definition 2.52.

noncomputable def Cslib.BitString.totalStableInfluence {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ρ : ℝ) (f : (ι → Bool) → ℝ) :

The total ρ-stable influence I^{(ρ)}[f] = ∑ᵢ Infᵢ^{(ρ)}[f] O'Donnell, Definition 2.52.

theorem Cslib.BitString.stableInfluence_eq_noiseStability_derivative {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ρ : ℝ) (i : ι) (f : (ι → Bool) → ℝ) :

The stable influence is the noise stability of the derivative, Infᵢ^{(ρ)}[f] = Stab_ρ[Dᵢ f] O'Donnell, Definition 2.52, unfolding stableInfluence for other modules.

theorem Cslib.BitString.stableInfluence_eq_sum {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ρ : ℝ) (i : ι) (f : (ι → Bool) → ℝ) :
stableInfluence ρ i f = ∑ S : Finset ι with i ∈ S, ρ ^ (S.card - 1) * fourierCoeff f S ^ 2

The Fourier formula for the stable influence: Infᵢ^{(ρ)}[f] = ∑_{S ∋ i} ρ ^ (|S| - 1) f̂(S) ^ 2 O'Donnell, Definition 2.52.

theorem Cslib.BitString.stableInfluence_one {ι : Type u_1} [Fintype ι] [DecidableEq ι] (i : ι) (f : (ι → Bool) → ℝ) :

At ρ = 1 the stable influence is the influence.

theorem Cslib.BitString.stableInfluence_nonneg {ι : Type u_1} [Fintype ι] [DecidableEq ι] {ρ : ℝ} (hρ : 0 ≤ ρ) (i : ι) (f : (ι → Bool) → ℝ) :

Stable influences at a nonnegative rate are nonnegative.

theorem Cslib.BitString.pow_mul_fourierCoeff_sq_le_stableInfluence {ι : Type u_1} [Fintype ι] [DecidableEq ι] {ρ : ℝ} (hρ : 0 ≤ ρ) {i : ι} {S : Finset ι} (hi : i ∈ S) (f : (ι → Bool) → ℝ) :
ρ ^ (S.card - 1) * fourierCoeff f S ^ 2 ≤ stableInfluence ρ i f

A single term of the stable influence: for i ∈ S and 0 ≤ ρ, ρ ^ (|S| - 1) f̂(S) ^ 2 ≤ Infᵢ^{(ρ)}[f].

theorem Cslib.BitString.stableInfluence_mono {ι : Type u_1} [Fintype ι] [DecidableEq ι] {ρ ρ' : ℝ} (hρ : 0 ≤ ρ) (hρρ' : ρ ≤ ρ') (i : ι) (f : (ι → Bool) → ℝ) :

Stable influences increase with the rate: Infᵢ^{(ρ)}[f] ≤ Infᵢ^{(ρ')}[f] for 0 ≤ ρ ≤ ρ'.

theorem Cslib.BitString.stableInfluence_noiseOp_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] {ρ σ : ℝ} (hρ : 0 ≤ ρ) (hσ : |σ| ≤ 1) (i : ι) (f : (ι → Bool) → ℝ) :

Noise does not increase stable influences: Infᵢ^{(ρ)}[T_σ f] ≤ Infᵢ^{(ρ)}[f] for 0 ≤ ρ and |σ| ≤ 1.

theorem Cslib.BitString.influence_noiseOp_le_stableInfluence {ι : Type u_1} [Fintype ι] [DecidableEq ι] {ρ : ℝ} (hρ₀ : 0 ≤ ρ) (hρ₁ : ρ ≤ 1) (i : ι) (f : (ι → Bool) → ℝ) :

The influence of i on T_ρ f is at most the ρ-stable influence of i on f for 0 ≤ ρ ≤ 1: Infᵢ[T_ρ f] = ∑_{S ∋ i} ρ ^ (2 |S|) f̂(S) ^ 2 ≤ Infᵢ^{(ρ)}[f] O'Donnell, proof of Corollary 11.69.

At ρ = 1 the total stable influence is the total influence.

theorem Cslib.BitString.totalStableInfluence_nonneg {ι : Type u_1} [Fintype ι] [DecidableEq ι] {ρ : ℝ} (hρ : 0 ≤ ρ) (f : (ι → Bool) → ℝ) :

The total stable influence at a nonnegative rate is nonnegative.

theorem Cslib.BitString.totalStableInfluence_eq_sum {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ρ : ℝ) (f : (ι → Bool) → ℝ) :
totalStableInfluence ρ f = ∑ S : Finset ι, ↑S.card * ρ ^ (S.card - 1) * fourierCoeff f S ^ 2

The Fourier formula for the total stable influence: I^{(ρ)}[f] = ∑_S |S| ρ ^ (|S| - 1) f̂(S) ^ 2, the second equality of O'Donnell, Fact 2.53 written per set rather than per degree.

theorem Cslib.BitString.hasDerivAt_noiseStability {ι : Type u_1} [Fintype ι] [DecidableEq ι] (f : (ι → Bool) → ℝ) (ρ : ℝ) :
HasDerivAt (fun (r : ℝ) => noiseStability r f) (totalStableInfluence ρ f) ρ

The derivative of the noise stability is the total stable influence O'Donnell, Fact 2.53: d/dρ Stab_ρ[f] = I^{(ρ)}[f] = ∑_S |S| ρ ^ (|S| - 1) f̂(S) ^ 2, since Stab_ρ[f] is the polynomial ∑_S ρ ^ |S| f̂(S) ^ 2 in ρ. Definition 2.52 takes ρ ∈ [0, 1]; this holds at every real ρ, as a two-sided derivative.

theorem Cslib.BitString.hasDerivAt_noiseStability_zero {ι : Type u_1} [Fintype ι] [DecidableEq ι] (f : (ι → Bool) → ℝ) :
HasDerivAt (fun (r : ℝ) => noiseStability r f) (levelWeight 1 f) 0

The derivative of the noise stability at 0 is the level-one weight O'Donnell, Proposition 2.51: d/dρ Stab_ρ[f] = W¹[f] at ρ = 0.

theorem Cslib.BitString.hasDerivAt_noiseStability_one {ι : Type u_1} [Fintype ι] [DecidableEq ι] (f : (ι → Bool) → ℝ) :
HasDerivAt (fun (r : ℝ) => noiseStability r f) (totalInfluence f) 1

The derivative of the noise stability at 1 is the total influence O'Donnell, Proposition 2.51: d/dρ Stab_ρ[f] = I[f] at ρ = 1.

theorem Cslib.BitString.mul_totalStableInfluence_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] {δ : ℝ} (h₀ : 0 ≤ δ) (h₁ : δ ≤ 1) (f : (ι → Bool) → ℝ) :
δ * totalStableInfluence (1 - δ) f ≤ Finset.univ.expect fun (x : ι → Bool) => (f x - Finset.univ.expect fun (y : ι → Bool) => f y) ^ 2

Damping caps the total stable influence: for 0 ≤ δ ≤ 1, δ I^{(1 - δ)}[f] is at most the variance of f O'Donnell, proof of Proposition 2.54.

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

Damping caps the total stable influence of a Boolean function: read as signs, with 0 ≤ δ ≤ 1, δ I^{(1 - δ)}[f] ≤ 1 O'Donnell, proof of Proposition 2.54.

theorem Cslib.BitString.mul_card_filter_le_stableInfluence_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] {δ : ℝ} (h₀ : 0 ≤ δ) (h₁ : δ ≤ 1) (ε : ℝ) (f : (ι → Bool) → ℝ) :
δ * ε * ↑{i : ι | ε ≤ stableInfluence (1 - δ) i f}.card ≤ Finset.univ.expect fun (x : ι → Bool) => (f x - Finset.univ.expect fun (y : ι → Bool) => f y) ^ 2

Few coordinates have large stable influence: for 0 ≤ δ ≤ 1 and any ε, the number N of coordinates of (1 - δ)-stable influence at least ε satisfies δ ε N ≤ Var[f]. For δ, ε > 0 and Var[f] ≤ 1 this is O'Donnell, Proposition 2.54, N ≤ 1 / (δ ε), under weaker hypotheses on δ and ε.

theorem Cslib.BitString.mul_card_filter_le_stableInfluence_signVal_le_one {ι : Type u_1} [Fintype ι] [DecidableEq ι] {δ : ℝ} (h₀ : 0 ≤ δ) (h₁ : δ ≤ 1) (ε : ℝ) (f : (ι → Bool) → Bool) :
δ * ε * ↑{i : ι | ε ≤ stableInfluence (1 - δ) i fun (x : ι → Bool) => signVal (f x)}.card ≤ 1

Few coordinates have large stable influence on a Boolean function: read as signs, with 0 ≤ δ ≤ 1, the number N of coordinates of (1 - δ)-stable influence at least ε satisfies δ ε N ≤ 1, so N ≤ 1 / (δ ε) for δ, ε > 0 O'Donnell, Proposition 2.54.