Documentation

CslibFrontier.Foundations.BooleanAnalysis.Invariance

The Basic Invariance Principle on the Boolean cube #

A uniform random sign has law rademacher, the image of a uniform bit under signVal (false ↦ 1, true ↦ -1); it satisfies Hypothesis 11.65 of O'Donnell (hasInvarianceMoments_rademacher), and the product of n copies is the uniform distribution on the signs of the cube (integral_pi_rademacher). Evaluating the Fourier expansion of f : (ι → Bool) → ℝ at the signs of x gives f x, and the influences of the formal polynomial are those of f (multilinearEval_fourierCoeff_signVal, multilinearInfluence_fourierCoeff).

So the Basic Invariance Principle compares a function of degree at most k on uniformly random bits with its Fourier expansion on any independent variables satisfying Hypothesis 11.65, for instance standard Gaussians: for ψ with ‖ψ⁗‖_∞ ≤ C, |𝔼_x ψ(f x) - E[ψ(F(y))]| ≤ C / 12 · 9 ^ k · ∑_i Inf_i[f] ^ 2 (abs_expect_comp_sub_integral_comp_multilinearEval_le) O'Donnell, Section 11.6, Basic Invariance Principle, and if moreover Var[f] ≤ 1 and every Inf_i[f] ≤ ε, the bound is C / 12 · k 9 ^ k · ε (abs_expect_comp_sub_integral_comp_multilinearEval_le_of_influence_le, Corollary 11.67).

Main definitions #

Main results #

References #

Uniform random signs #

The law of a uniform random sign: the image of a uniform bit under signVal.

Instances For
    theorem Cslib.BitString.integral_rademacher (g : ℝ → ℝ) :
    ∫ (s : ℝ), g s ∂rademacher = (g 1 + g (-1)) / 2

    The expectation of g at a uniform random sign is (g 1 + g (-1)) / 2.

    Uniform random signs satisfy Hypothesis 11.65 of O'Donnell, with E[s⁴] = 1.

    theorem Cslib.BitString.integral_pi_rademacher {ι : Type u_1} [Fintype ι] [DecidableEq ι] (g : (ι → ℝ) → ℝ) :
    (∫ (z : ι → ℝ), g z ∂MeasureTheory.Measure.pi fun (x : ι) => rademacher) = Finset.univ.expect fun (x : ι → Bool) => g fun (i : ι) => signVal (x i)

    The product of uniform random signs is uniform on the signs of the cube: the expectation of g at independent uniform signs is 𝔼_x g(signVal ∘ x).

    theorem Cslib.BitString.measureReal_pi_rademacher {ι : Type u_1} [Fintype ι] [DecidableEq ι] {s : Set (ι → ℝ)} (hs : MeasurableSet s) [DecidablePred fun (x : ι → Bool) => (fun (i : ι) => signVal (x i)) ∈ s] :
    (MeasureTheory.Measure.pi fun (x : ι) => rademacher).real s = ↑{x : ι → Bool | (fun (i : ι) => signVal (x i)) ∈ s}.dens

    The probability of a set under independent uniform signs is the density of the points of the cube whose signs lie in the set.

    Functions on the cube as multilinear polynomials #

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

    The Fourier expansion of f, evaluated at the signs of x, is f x.

    The influences of the Fourier expansion of f are the influences of f.

    theorem Cslib.BitString.measureReal_pi_rademacher_multilinearEval_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] (f : (ι → Bool) → ℝ) (u : ℝ) :
    (MeasureTheory.Measure.pi fun (x : ι) => rademacher).real {z : ι → ℝ | ProbabilityTheory.multilinearEval (fourierCoeff f) z ≤ u} = ↑{x : ι → Bool | f x ≤ u}.dens

    Under uniform random signs, the probability that the Fourier expansion of f is at most u is the density Pr_x[f(x) ≤ u] of {x | f x ≤ u}.

    The Basic Invariance Principle on the cube #

    theorem Cslib.BitString.abs_expect_comp_sub_integral_comp_multilinearEval_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] (μ : ι → MeasureTheory.Measure ℝ) [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] (hμ : ∀ (i : ι), ProbabilityTheory.HasInvarianceMoments (μ i)) {f : (ι → Bool) → ℝ} {k : ℕ} (hf : totalDegree f ≤ k) {ψ : ℝ → ℝ} (hψ : ContDiff ℝ 4 ψ) {C : ℝ} (hC : ∀ (y : ℝ), |iteratedDeriv 4 ψ y| ≤ C) :
    |(Finset.univ.expect fun (x : ι → Bool) => ψ (f x)) - ∫ (y : ι → ℝ), ψ (ProbabilityTheory.multilinearEval (fourierCoeff f) y) ∂MeasureTheory.Measure.pi μ| ≤ C / 12 * 9 ^ k * ∑ i : ι, influence i f ^ 2

    The Basic Invariance Principle on the cube O'Donnell, Section 11.6, equation (11.29). Let f : (ι → Bool) → ℝ have degree at most k, and let y be a vector of independent random variables with laws μ i, each satisfying Hypothesis 11.65 (for instance standard Gaussians, hasInvarianceMoments_gaussianReal). If ψ : ℝ → ℝ is C⁴ with |ψ⁗| ≤ C, then the expectation of ψ ∘ f at uniformly random bits differs from that of ψ applied to the Fourier expansion of f at y by at most C / 12 · 9 ^ k · ∑_i Inf_i[f] ^ 2.

    theorem Cslib.BitString.abs_expect_comp_sub_integral_comp_multilinearEval_le_of_influence_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] (μ : ι → MeasureTheory.Measure ℝ) [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] (hμ : ∀ (i : ι), ProbabilityTheory.HasInvarianceMoments (μ i)) {f : (ι → Bool) → ℝ} {k : ℕ} (hf : totalDegree f ≤ k) (hvar : (Finset.univ.expect fun (x : ι → Bool) => (f x - Finset.univ.expect fun (y : ι → Bool) => f y) ^ 2) ≤ 1) {ε : ℝ} (hε0 : 0 ≤ ε) (hε : ∀ (i : ι), influence i f ≤ ε) {ψ : ℝ → ℝ} (hψ : ContDiff ℝ 4 ψ) {C : ℝ} (hC : ∀ (y : ℝ), |iteratedDeriv 4 ψ y| ≤ C) :
    |(Finset.univ.expect fun (x : ι → Bool) => ψ (f x)) - ∫ (y : ι → ℝ), ψ (ProbabilityTheory.multilinearEval (fourierCoeff f) y) ∂MeasureTheory.Measure.pi μ| ≤ C / 12 * ↑k * 9 ^ k * ε

    Invariance for functions with small influences O'Donnell, Corollary 11.67. In the setting of abs_expect_comp_sub_integral_comp_multilinearEval_le, if moreover Var[f] ≤ 1 and Inf_i[f] ≤ ε for every i, the bound is C / 12 · k 9 ^ k · ε. The hypothesis 0 ≤ ε only matters when there are no coordinates.

    theorem Cslib.BitString.abs_expect_comp_sub_integral_comp_multilinearEval_le_of_contDiff_three {ι : Type u_1} [Fintype ι] [DecidableEq ι] (μ : ι → MeasureTheory.Measure ℝ) [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] (hμ : ∀ (i : ι), ProbabilityTheory.HasInvarianceMoments (μ i)) {f : (ι → Bool) → ℝ} {k : ℕ} (hf : totalDegree f ≤ k) {ψ : ℝ → ℝ} (hψ : ContDiff ℝ 3 ψ) {C : ℝ} (hC : ∀ (y : ℝ), |iteratedDeriv 3 ψ y| ≤ C) :
    |(Finset.univ.expect fun (x : ι → Bool) => ψ (f x)) - ∫ (y : ι → ℝ), ψ (ProbabilityTheory.multilinearEval (fourierCoeff f) y) ∂MeasureTheory.Measure.pi μ| ≤ C / 3 * 3 ^ k * ∑ i : ι, influence i f ^ (3 / 2)

    The Basic Invariance Principle on the cube, C³ form: in the setting of abs_expect_comp_sub_integral_comp_multilinearEval_le, if ψ is only C³ with |ψ‴| ≤ C, the bound is C / 3 · 3 ^ k · ∑_i Inf_i[f] ^ (3 / 2) (the analogue under Hypothesis 11.65 of O'Donnell, Remark 11.66).