Influences on the Boolean cube #
The derivative of a real function f on the cube in coordinate i is half the difference
between its values at bit i equal to false (sign 1) and to true (sign -1)
(BitString.derivative); it is
O'Donnell's Dᵢ f when bits are read as the signs BitString.signVal. The influence of
i on f is the mean square of this derivative (BitString.influence), and the total
influence of f is the sum of its influences (BitString.totalInfluence).
Differentiating in i removes i from the sets containing it and kills the others
(BitString.fourierCoeff_derivative), so the influence of i is the Fourier weight of f on the
sets containing i (BitString.influence_eq_sum_fourierCoeff_sq), and the total influence weighs
each squared coefficient by the size of its set
(BitString.totalInfluence_eq_sum_card_mul_fourierCoeff_sq). Since the variance is the weight on
the nonempty sets (BitString.expect_sub_expect_sq_eq_sum_fourierCoeff_sq), it is at most the
total influence (the Poincaré inequality, BitString.expect_sub_expect_sq_le_totalInfluence).
For a Boolean function read as signs, the derivative in i takes the values 0 and ±1
(BitString.sq_derivative_signVal) and is nonzero exactly where flipping bit i changes the value
(BitString.derivative_signVal_ne_zero_iff). So the influence of i is the probability that
flipping bit i changes the value (BitString.influence_signVal,
BitString.influence_signVal_eq_dens), it is nonzero exactly when some flip of bit i changes the
value (BitString.influence_signVal_ne_zero_iff), and the total influence is the expected number
of bits whose flip changes the value, the average sensitivity (BitString.totalInfluence_signVal)
[O'Donnell, Sections 2.2 and 2.3][ODonnell2014].
The gradient ∇f(x) is the vector of derivatives at x (BitString.gradient), and the total
influence is the mean squared norm of the gradient
(BitString.totalInfluence_eq_expect_sum_gradient_sq)
[O'Donnell, Definition 2.34 and Proposition 2.35][ODonnell2014]; for a Boolean function read as
signs the squared norm at x is the number of bits whose flip changes the value
(BitString.sum_gradient_signVal_sq).
Main definitions #
Cslib.BitString.derivative: the derivative in a coordinate.Cslib.BitString.influence: the influence of a coordinate.Cslib.BitString.totalInfluence: the total influence.Cslib.BitString.gradient: the gradient.
Main results #
Cslib.BitString.derivative_chi,Cslib.BitString.fourierCoeff_derivative: the derivative of a character, and the Fourier coefficients of a derivative.Cslib.BitString.influence_eq_sum_fourierCoeff_sq: the influence ofiis the Fourier weight on the sets containingi.Cslib.BitString.influence_signVal,Cslib.BitString.influence_signVal_eq_dens: the influence on a Boolean function is the probability that a flip changes its value.Cslib.BitString.influence_signVal_ne_zero_iff: a coordinate has nonzero influence on a Boolean function exactly when flipping it changes the value on some input.Cslib.BitString.totalInfluence_eq_sum_card_mul_fourierCoeff_sq: the spectral formula for the total influence.Cslib.BitString.totalInfluence_eq_expect_sum_gradient_sq: the total influence is the mean squared norm of the gradient.Cslib.BitString.sum_gradient_signVal_sq: for a Boolean function read as signs, the squared norm of the gradient is the sensitivity.Cslib.BitString.totalInfluence_signVal: the total influence of a Boolean function is the expected number of sensitive coordinates, for an arbitrary finite coordinate type.Cslib.BitString.expect_sub_expect_sq_eq_sum_fourierCoeff_sq: the variance is the Fourier weight on the nonempty sets.Cslib.BitString.expect_sub_expect_sq_le_totalInfluence: the Poincaré inequality.Cslib.BitString.influence_chi,Cslib.BitString.totalInfluence_chi: the influences of a character.Cslib.BitString.totalInfluence_le_mul_expect_sq: the total influence is at most the number of coordinates times the mean square.Cslib.BitString.expect_sub_expect_sq_signVal_le_one,Cslib.BitString.influence_signVal_le_one: a Boolean function read as signs has variance and influences at most one.
References #
- [R. O'Donnell, Analysis of Boolean Functions][ODonnell2014]
The derivative of f in coordinate i: half the difference between the values of f at
bit i equal to false, of sign 1, and to true, of sign -1.
Equations
- Cslib.BitString.derivative i f x = (f (Function.update x i false) - f (Function.update x i true)) / 2
Instances For
The derivative in i does not depend on bit i.
The derivative of a character: differentiating in i removes i from a set containing it,
and kills the characters of the other sets.
The derivative of a Boolean function read as signs takes the values 0 and ±1, so its
square is its absolute value.
The derivative in i of a Boolean function read as signs is nonzero exactly where flipping
bit i changes the value.
The squared derivative of a Boolean function read as signs is 1 where flipping bit i
changes the value and 0 elsewhere.
The Fourier expansion of a derivative: differentiating in i keeps the sets containing
i, with i removed.
The Fourier coefficients of a derivative: the coefficient of the derivative in i on a
set avoiding i is the coefficient of f on the set with i added, and it vanishes on the sets
containing i [O'Donnell, Section 2.2][ODonnell2014].
The influence of coordinate i on f: the mean square of the derivative of f in i.
Equations
- Cslib.BitString.influence i f = Finset.univ.expect fun (x : ι → Bool) => Cslib.BitString.derivative i f x ^ 2
Instances For
Influences are nonnegative.
The influence of i is the Fourier weight on the sets containing i
[O'Donnell, Section 2.2][ODonnell2014].
The influence of a coordinate is at most the mean square.
The influence on a Boolean function read as signs is the probability that flipping bit
i changes the value [O'Donnell, Section 2.2][ODonnell2014].
The influence of i on a Boolean function read as signs is the density of the points where
its derivative in i is nonzero.
Relevant coordinates: a coordinate has nonzero influence on a Boolean function read as signs exactly when flipping it changes the value of the function on some input.
The total influence of f: the sum of the influences of the coordinates.
Equations
- Cslib.BitString.totalInfluence f = ∑ i : ι, Cslib.BitString.influence i f
Instances For
The total influence is nonnegative.
The influence of a coordinate is at most the total influence.
The spectral formula for the total influence: each squared Fourier coefficient counts as many times as its set has elements [O'Donnell, Section 2.3][ODonnell2014].
The gradient of f at x: the vector of its derivatives (D₁ f(x), …, Dₙ f(x))
[O'Donnell, Definition 2.34][ODonnell2014]. Its squared Euclidean norm ‖∇f(x)‖₂² is written
∑ i, gradient f x i ^ 2; the norm of ι → ℝ is the sup norm.
Equations
- Cslib.BitString.gradient f x i = Cslib.BitString.derivative i f x
Instances For
The total influence is the mean squared norm of the gradient: I[f] = E[‖∇f(x)‖₂²]
[O'Donnell, Proposition 2.35][ODonnell2014].
For a Boolean function read as signs, the squared norm of the gradient at x is the
sensitivity of f at x, the number of bits whose flip changes the value
[O'Donnell, remark after Definition 2.34][ODonnell2014].
The total influence of a Boolean function read as signs is its average sensitivity: the expected number of bits whose flip changes the value [O'Donnell, Proposition 2.28][ODonnell2014].
A character has total influence the size of its set.
The variance is the Fourier weight on the nonempty sets [O'Donnell, Section 1.4][ODonnell2014].
The Poincaré inequality: the variance is at most the total influence [O'Donnell, Section 2.3][ODonnell2014].
The total influence is at most the number of coordinates times the mean square.
The variance of a Boolean function read as signs is at most one.