Documentation

CslibFrontier.Foundations.BooleanAnalysis.FiberWeight

Degree-one weight of the fibers of a map from the cube #

A map f : (ι → Bool) → Γ to a finite alphabet splits the cube into the fibers f⁻¹(σ). The indicator of a fiber of density μ has variance μ - μ², which bounds its degree-one weight (BitString.sum_fourierCoeff_singleton_sq_le). By the Cauchy–Schwarz inequality, over ι and then over the alphabet, the degree-one coefficients of all the fiber indicators have total absolute value at most √(|ι| (|Γ| - 1)) (BitString.sq_sum_sum_abs_fourierCoeff_fiber_le), since the densities sum to one and so their squares sum to at least 1 / |Γ|. For a Boolean f this is the bound √|ι| on the degree-one coefficients of f read as signs, and in general it bounds how much a single symbol f x can reveal about the bits of a uniformly random x.

Main results #

theorem Cslib.BitString.expect_boole_sub_sq {ι : Type u_1} [Fintype ι] [DecidableEq ι] (p : (ι → Bool) → Prop) [DecidablePred p] :
(Finset.univ.expect fun (x : ι → Bool) => ((if p x then 1 else 0) - Finset.univ.expect fun (y : ι → Bool) => if p y then 1 else 0) ^ 2) = (Finset.univ.expect fun (y : ι → Bool) => if p y then 1 else 0) - (Finset.univ.expect fun (y : ι → Bool) => if p y then 1 else 0) ^ 2

The indicator of a set of density μ has variance μ - μ².

theorem Cslib.BitString.sq_sum_sum_abs_fourierCoeff_fiber_le {ι : Type u_1} {Γ : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype Γ] [DecidableEq Γ] (f : (ι → Bool) → Γ) :
(∑ σ : Γ, ∑ i : ι, |fourierCoeff (fun (x : ι → Bool) => if f x = σ then 1 else 0) {i}|) ^ 2 ≤ ↑(Fintype.card ι) * (↑(Fintype.card Γ) - 1)

The fibers of a map from the cube have little degree-one weight: the degree-one coefficients of the indicators of the fibers of f : (ι → Bool) → Γ have total absolute value at most √(|ι| (|Γ| - 1)).