Documentation

CslibFrontier.Foundations.BooleanAnalysis.CoordinateOperators

Coordinate expectations and Laplacians #

The expectation over coordinate i of a real function on the cube is its average over bit i, Eᵢ f x = (f (x with xᵢ = false) + f (x with xᵢ = true)) / 2 (BitString.coordExpect), and the coordinate Laplacian is Lᵢ f = f - Eᵢ f (BitString.coordLaplacian) O'Donnell, Definitions 2.23 and 2.25. The Laplacian is half the change from flipping bit i (BitString.coordLaplacian_eq_flip) and χ_{i} times the derivative in i (BitString.coordLaplacian_eq_chi_mul_derivative); in Fourier terms Eᵢ keeps the coefficients on the sets avoiding i and Lᵢ those on the sets containing i (BitString.fourierCoeff_coordExpect, BitString.fourierCoeff_coordLaplacian), and ⟨f, Lᵢ f⟩ = Infᵢ[f] (BitString.expect_mul_coordLaplacian); averaging over i preserves the expectation (BitString.expect_coordExpect) O'Donnell, Propositions 2.24 and 2.26.

The Laplacian L = ∑ᵢ Lᵢ (BitString.laplacian) multiplies the coefficient on S by |S| (BitString.fourierCoeff_laplacian), so ⟨f, L f⟩ = I[f] (BitString.expect_mul_laplacian) O'Donnell, Definition 2.36 and Proposition 2.37.

Main definitions #

Main results #

References #

noncomputable def Cslib.BitString.coordExpect {ι : Type u_1} [DecidableEq ι] (i : ι) (f : (ι → Bool) → ℝ) (x : ι → Bool) :

The expectation Eᵢ f of f over coordinate i: its average over bit i O'Donnell, Definition 2.23.

noncomputable def Cslib.BitString.coordLaplacian {ι : Type u_1} [DecidableEq ι] (i : ι) (f : (ι → Bool) → ℝ) (x : ι → Bool) :

The coordinate Laplacian Lᵢ f = f - Eᵢ f O'Donnell, Definition 2.25.

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

The coordinate Laplacian is χ_{i} times the derivative: Lᵢ f = χ_{i} Dᵢ f O'Donnell, Proposition 2.26.

theorem Cslib.BitString.coordLaplacian_eq_flip {ι : Type u_1} [DecidableEq ι] (i : ι) (f : (ι → Bool) → ℝ) (x : ι → Bool) :
coordLaplacian i f x = (f x - f (Function.update x i !x i)) / 2

The coordinate Laplacian is half the change from flipping the bit: Lᵢ f x = (f x - f x^{⊕i}) / 2 O'Donnell, Proposition 2.26.

theorem Cslib.BitString.coordExpect_add_coordLaplacian {ι : Type u_1} [DecidableEq ι] (i : ι) (f : (ι → Bool) → ℝ) (x : ι → Bool) :
coordExpect i f x + coordLaplacian i f x = f x

A function is the sum of its coordinate expectation and its coordinate Laplacian.

theorem Cslib.BitString.fourierCoeff_coordLaplacian {ι : Type u_1} [DecidableEq ι] [Fintype ι] (i : ι) (f : (ι → Bool) → ℝ) (S : Finset ι) :

The Fourier coefficients of a coordinate Laplacian: Lᵢ f keeps the coefficients of f on the sets containing i O'Donnell, Proposition 2.26.

theorem Cslib.BitString.fourierCoeff_coordExpect {ι : Type u_1} [DecidableEq ι] [Fintype ι] (i : ι) (f : (ι → Bool) → ℝ) (S : Finset ι) :

The Fourier coefficients of a coordinate expectation: Eᵢ f keeps the coefficients of f on the sets avoiding i O'Donnell, Proposition 2.24.

theorem Cslib.BitString.expect_coordExpect {ι : Type u_1} [DecidableEq ι] [Fintype ι] (i : ι) (f : (ι → Bool) → ℝ) :
(Finset.univ.expect fun (x : ι → Bool) => coordExpect i f x) = Finset.univ.expect fun (x : ι → Bool) => f x

Averaging over coordinate i preserves the expectation: 𝔼 Eᵢ f = 𝔼 f.

theorem Cslib.BitString.expect_mul_coordLaplacian {ι : Type u_1} [DecidableEq ι] [Fintype ι] (i : ι) (f : (ι → Bool) → ℝ) :
(Finset.univ.expect fun (x : ι → Bool) => f x * coordLaplacian i f x) = influence i f

The coordinate Laplacian and the influence: ⟨f, Lᵢ f⟩ = Infᵢ[f] O'Donnell, Proposition 2.26.

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

The Laplacian L f = ∑ᵢ Lᵢ f O'Donnell, Definition 2.36.

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

The Fourier coefficients of the Laplacian: L f multiplies the coefficient of f on S by |S| O'Donnell, Proposition 2.37.

theorem Cslib.BitString.expect_mul_laplacian {ι : Type u_1} [DecidableEq ι] [Fintype ι] (f : (ι → Bool) → ℝ) :
(Finset.univ.expect fun (x : ι → Bool) => f x * laplacian f x) = totalInfluence f

The Laplacian and the total influence: ⟨f, L f⟩ = I[f] O'Donnell, Proposition 2.37.