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.
- Symmetry. A function invariant under permutations of the coordinates has equal degree-one
coefficients, so
W¹[f] = E[f(x) ∑ᵢ xᵢ / √n]²(levelWeight_one_eq_sq_expect_mul_of_comp_perm, inBooleanAnalysis.LevelWeight). - Central limit theorem. Write
z · 1{z > t} = (z - t)⁺ + t · 1{z > t}. The central limit theorem on the cube (CslibFrontier.Foundations.BooleanAnalysis.CentralLimit) takes the expectation of the event (tendsto_expect_indicator_inv_sqrt_mul_sum_signVal) and of(z - t)⁺, which grows at most linearly (tendsto_expect_inv_sqrt_mul_sum_signVal_of_sq_le), to their Gaussian limits. - Limit. The limit is
E[Z · 1{Z > t}] = φ(t)(ProbabilityTheory.setIntegral_Ioi_id_gaussianReal).
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 #
Cslib.BitString.levelWeight_one_hammingBall:W¹[fₙ] = E[fₙ(x) ∑ᵢ xᵢ / √n]²exactly.Cslib.BitString.tendsto_expect_hammingBall:E[fₙ] → 1 - Φ(t).Cslib.BitString.tendsto_levelWeight_one_hammingBall:W¹[fₙ] → φ(t)².
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 #
- R. O'Donnell, Analysis of Boolean Functions, Section 5.4.
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).
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)².