Documentation

CslibFrontier.Foundations.BooleanAnalysis.KhintchineKahane

The Khintchine–Kahane inequality #

For vectors w₁, …, wₙ of a normed space and uniformly random signs xᵢ, the norm g(x) = ‖∑ᵢ xᵢ wᵢ‖ satisfies 𝔼 g ≥ √(𝔼 g² / 2): the Khintchine–Kahane inequality (BitString.expect_norm_sum_sq_le_two_mul_sq) O'Donnell, Exercise 2.55, with the optimal constant found by Latała and Oleszkiewicz [LO94], as the book's notes record. The proof is the book's. By the triangle inequality L g ≤ g pointwise, where L is the Laplacian (BitString.laplacian_norm_sum_le), so I[g] = 𝔼[g L g] ≤ 𝔼 g²; and g is even, so its Fourier weight lies on sets of even size (BitString.fourierCoeff_eq_zero_of_odd_card) and 2 Var[g] ≤ I[g] (BitString.two_mul_expect_sub_expect_sq_le_totalInfluence_of_even). The constant 2 is optimal (BitString.two_le_of_forall_expect_norm_sum_sq_le).

By an extra sign, an affine form a₀ + ∑ᵢ aᵢ xᵢ has the same absolute moments as the linear form a₀ x₀ + ∑ᵢ aᵢ xᵢ O'Donnell, Exercise 5.5, so the inequality holds for every real function of degree at most one (BitString.expect_sq_le_two_mul_expect_abs_sq_of_mem_lowDegree_one). This gives O'Donnell's Theorem 5.2, that linear threshold functions have Fourier weight at least 1/2 up to level one (BitString.one_half_le_sum_fourierCoeff_sq_of_nonneg_mul, in CslibFrontier.Foundations.BooleanAnalysis.PolynomialThresholdWeight).

Khintchine's inequality for real coefficients with the constants of hypercontractivity is BitString.sqrt_sum_sq_le_exp_mul_lpNorm in CslibFrontier.Foundations.BooleanAnalysis.LowDegreeMoments; its L^1 constant is e, not √2.

Main results #

Usage #

Open Cslib.BitString. Uniform random signs are signVal (x i) for a uniform x : ι → Bool, so 𝔼 x : ι → Bool, ‖∑ i, signVal (x i) • w i‖ is 𝔼 ‖∑ᵢ xᵢ wᵢ‖; the vectors w : ι → V may lie in any seminormed real space. The inequality says that Jensen's step 𝔼 ‖∑ᵢ xᵢ wᵢ‖ ≤ √(𝔼 ‖∑ᵢ xᵢ wᵢ‖²) loses at most a factor √2. In a real inner product space the right side is √(∑ᵢ ‖wᵢ‖²) (Cslib.BitString.expect_norm_sum_signVal_smul_sq in CslibFrontier.Probability.BitString.Rademacher), the bound that CslibFrontier.MachineLearning.Rademacher.Linear uses for the Rademacher complexity of linear predictors. For a real function ℓ on the cube, state degree at most one as ℓ ∈ lowDegree ℝ ι 1. A linear form fun x => ∑ i, a i * signVal (x i) gets there by sum_mul_signVal_mem_lowDegree_one (in CslibFrontier.Foundations.BooleanAnalysis.LowDegreeMoments), an affine form by adding const_mem_lowDegree, and any ℓ by mem_lowDegree_iff_fourierCoeff_eq_zero. For a linear threshold function f = sgn ℓ, Theorem 5.2 is one_half_le_sum_fourierCoeff_sq_of_nonneg_mul in CslibFrontier.Foundations.BooleanAnalysis.PolynomialThresholdWeight, which takes a nonzero ℓ ∈ lowDegree ℝ ι 1 and ∀ x, 0 ≤ signVal (f x) * ℓ x, so ℓ may vanish on the cube; for IsPTF 1 f use IsPTF.one_half_le_sum_fourierCoeff_sq. It improves the case k = 1 of the Gotsman–Linial bound e⁻² (IsPTF.exp_neg_two_mul_le_sum_fourierCoeff_sq), and both go through the Cauchy–Schwarz step sq_expect_abs_le_sum_fourierCoeff_sq_mul. The checked clients in CslibFrontierTests/BooleanAnalysisKhintchineKahane.lean show that 2 is the least constant for two real weights, apply the inequality in the sup norm of ℝ² and to the affine form 1 + x₀ + x₁, check that |x₀ + x₁| has no weight on {0}, and prove Theorem 5.2 for a dictator and for the AND of two bits.

References #

theorem Cslib.BitString.laplacian_norm_sum_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] {V : Type u_2} [SeminormedAddCommGroup V] [NormedSpace ℝ V] (w : ι → V) (x : ι → Bool) :
laplacian (fun (x : ι → Bool) => ‖∑ i : ι, signVal (x i) • w i‖) x ≤ ‖∑ i : ι, signVal (x i) • w i‖

The Laplacian of a norm of a random signed sum is at most the norm O'Donnell, Exercise 2.55(a): for g(x) = ‖∑ᵢ xᵢ wᵢ‖, L g ≤ g pointwise, since by the triangle inequality ∑ᵢ g(x^{⊕i}) ≥ ‖∑ᵢ (v - 2 xᵢ wᵢ)‖ = |n - 2| g(x), where v = ∑ᵢ xᵢ wᵢ.

theorem Cslib.BitString.two_mul_expect_sub_expect_sq_le_totalInfluence_of_even {ι : Type u_1} [Fintype ι] [DecidableEq ι] {g : (ι → Bool) → ℝ} (hg : ∀ (x : ι → Bool), (g fun (i : ι) => !x i) = g x) :
(2 * Finset.univ.expect fun (x : ι → Bool) => (g x - Finset.univ.expect fun (y : ι → Bool) => g y) ^ 2) ≤ totalInfluence g

The improved Poincaré inequality for even functions O'Donnell, Exercise 2.28: if g is unchanged by flipping every bit, then 2 Var[g] ≤ I[g]. An even function has no weight on the sets of one coordinate, so its variance is its weight above level one, which is at most I[g] / 2 (add_one_mul_sum_fourierCoeff_sq_le_totalInfluence).

theorem Cslib.BitString.expect_norm_sum_sq_le_two_mul_sq {ι : Type u_1} [Fintype ι] [DecidableEq ι] {V : Type u_2} [SeminormedAddCommGroup V] [NormedSpace ℝ V] (w : ι → V) :
(Finset.univ.expect fun (x : ι → Bool) => ‖∑ i : ι, signVal (x i) • w i‖ ^ 2) ≤ 2 * (Finset.univ.expect fun (x : ι → Bool) => ‖∑ i : ι, signVal (x i) • w i‖) ^ 2

The Khintchine–Kahane inequality O'Donnell, Exercise 2.55: for vectors wᵢ of a normed space and uniformly random signs xᵢ, 𝔼 ‖∑ᵢ xᵢ wᵢ‖² ≤ 2 (𝔼 ‖∑ᵢ xᵢ wᵢ‖)², that is, 𝔼 ‖∑ᵢ xᵢ wᵢ‖ ≥ √(𝔼 ‖∑ᵢ xᵢ wᵢ‖² / 2).

theorem Cslib.BitString.two_le_of_forall_expect_norm_sum_sq_le {c : ℝ} (h : ∀ (w : Fin 2 → ℝ), (Finset.univ.expect fun (x : Fin 2 → Bool) => ‖∑ i : Fin 2, signVal (x i) • w i‖ ^ 2) ≤ c * (Finset.univ.expect fun (x : Fin 2 → Bool) => ‖∑ i : Fin 2, signVal (x i) • w i‖) ^ 2) :
2 ≤ c

The constant 2 in the Khintchine–Kahane inequality is optimal, even for V = ℝ O'Donnell, Exercise 2.55(c): it is attained by x₀ + x₁.

Affine forms #

theorem Cslib.BitString.expect_signVal_none_mul_add_sum_eq {ι : Type u_1} [Fintype ι] [DecidableEq ι] (h : ℝ → ℝ) (hh : ∀ (t : ℝ), h (-t) = h t) (b : ℝ) (a : ι → ℝ) :
(Finset.univ.expect fun (y : Option ι → Bool) => h (b * signVal (y none) + ∑ i : ι, a i * signVal (y (some i)))) = Finset.univ.expect fun (x : ι → Bool) => h (b + ∑ i : ι, a i * signVal (x i))

An affine form has the moments of a linear form with one more sign O'Donnell, Exercise 5.5(a): for an even h, 𝔼_y h(b x₀ + ∑ᵢ aᵢ yᵢ) over y on Option ι with x₀ = y none equals 𝔼_x h(b + ∑ᵢ aᵢ xᵢ).

theorem Cslib.BitString.expect_sq_le_two_mul_expect_abs_sq_of_mem_lowDegree_one {ι : Type u_1} [Fintype ι] [DecidableEq ι] {ℓ : (ι → Bool) → ℝ} (hℓ : ℓ ∈ lowDegree ℝ ι 1) :
(Finset.univ.expect fun (x : ι → Bool) => ℓ x ^ 2) ≤ 2 * (Finset.univ.expect fun (x : ι → Bool) => |ℓ x|) ^ 2

The Khintchine–Kahane inequality for functions of degree at most one O'Donnell, Exercises 2.55 and 5.5: if ℓ has Fourier degree at most one, then 𝔼 ℓ² ≤ 2 (𝔼 |ℓ|)².