Documentation

CslibFrontier.Foundations.BooleanAnalysis.HammingBallWeight

The degree-one weight of Hamming balls #

Fix t : ℝ and let fₙ : {-1, 1}ⁿ → {0, 1} be fₙ(x) = 1 iff ∑ᵢ xᵢ / √n > t, the indicator of a Hamming ball centered at the all-ones point. Then E[fₙ] → 1 - Φ(t) and W¹[fₙ] → φ(t)² as n → ∞, where φ and Φ are the density and cdf of a standard Gaussian O'Donnell, Proposition 5.25. Here a point of the cube is x : Fin n → Bool with xᵢ = signVal (x i), so false ↦ 1 and true ↦ -1; fₙ is the real function if t < (√n)⁻¹ * ∑ i, signVal (x i) then 1 else 0, φ = gaussianPDFReal 0 1 and Φ = cdf (gaussianReal 0 1).

The proof is the one of O'Donnell, Exercise 5.30.

The book goes on to read the result as W¹[fₙ] → U(α)² with α = lim E[fₙ] and the Gaussian isoperimetric function U = φ ∘ Φ⁻¹ (Definition 5.26); that form is not stated here.

Main results #

Usage #

The limits are Tendsto … atTop (𝓝 _) in n for fₙ written exactly as above. The book writes the limit of the mean as the complementary cdf Φ̄(t) (Notation 5.14), which is 1 - Φ(t) here. For another function invariant under permutations of the coordinates, apply levelWeight_one_eq_sq_expect_mul_of_comp_perm directly. The checked clients in CslibFrontierTests/BooleanAnalysisHammingBallWeight.lean evaluate the exact identity at n = 2, t = 0 against the two degree-one coefficients, and specialize the limits at t = 0 and t = 1.

References #

Hamming balls #

The mean of a Hamming ball indicator O'Donnell, Proposition 5.25. For fₙ(x) = 1 iff ∑ᵢ xᵢ / √n > t, where xᵢ = signVal (x i), E[fₙ] → 1 - Φ(t).

theorem Cslib.BitString.levelWeight_one_hammingBall (n : ℕ) (t : ℝ) :
(levelWeight 1 fun (x : Fin n → Bool) => if t < (√↑n)⁻¹ * ∑ i : Fin n, signVal (x i) then 1 else 0) = (Finset.univ.expect fun (x : Fin n → Bool) => (if t < (√↑n)⁻¹ * ∑ i : Fin n, signVal (x i) then 1 else 0) * ((√↑n)⁻¹ * ∑ i : Fin n, signVal (x i))) ^ 2

The degree-one weight of a Hamming ball indicator, exactly. For fₙ(x) = 1 iff ∑ᵢ xᵢ / √n > t, where xᵢ = signVal (x i), W¹[fₙ] = E[fₙ(x) ∑ᵢ xᵢ / √n]² O'Donnell, Exercise 5.30.

The degree-one weight of a Hamming ball indicator O'Donnell, Proposition 5.25. For fₙ(x) = 1 iff ∑ᵢ xᵢ / √n > t, where xᵢ = signVal (x i), W¹[fₙ] → φ(t)². By symmetry W¹[fₙ] = E[fₙ(x) ∑ᵢ xᵢ / √n]² O'Donnell, Exercise 5.30, and the central limit theorem sends this to E[Z · 1{Z > t}]² = φ(t)².