Linear threshold functions are unate #
A Boolean function is unate (BitString.IsUnate, in
CslibFrontier.Foundations.BooleanAnalysis.Monotone) if in every direction i, raising bit i
either never lowers its value or never raises it O'Donnell, Exercise 2.5. Every
linear threshold function is unate (BitString.IsPTF.isUnate)
O'Donnell, Exercise 2.6: if F = (-1) ^ f is the sign of p of degree at most
one, the derivative of p in i is the constant p̂({i}), so flipping bit i moves p, and
with it its sign F, always in the same direction. Unate functions on n coordinates have total
influence at most √n (BitString.IsUnate.totalInfluence_le_sqrt_card)
O'Donnell, Exercise 2.23, so linear threshold functions do too
(BitString.IsPTF.totalInfluence_le_sqrt_card); this is the input to Peres's theorem in
CslibFrontier.Foundations.BooleanAnalysis.Peres.
Main results #
Cslib.BitString.IsPTF.isUnate: linear threshold functions are unate.Cslib.BitString.IsPTF.totalInfluence_le_sqrt_card: linear threshold functions have total influence at most√n.
Usage #
Open Cslib.BitString. A linear threshold function is IsPTF 1 f; IsUnateIn i f, IsUnate f,
the characterization Cslib.BitString.abs_fourierCoeff_singleton_eq_influence_iff
(Exercise 2.5(a)) and the unate bounds Cslib.BitString.IsUnate.totalInfluence_le_sqrt_card_mul
and Cslib.BitString.IsUnate.totalInfluence_le_sqrt_card (Exercise 2.23) are in
CslibFrontier.Foundations.BooleanAnalysis.Monotone. Exercise 2.5(b), the bound
I[f] ≤ √(2/π) √n + O(n^(-1/2)) for unate f through Theorem 2.33, which would improve the
constant of Peres's theorem to √(2/π), is not proved; tracked on
#2131.
The checked clients in
CslibFrontierTests/BooleanAnalysisPeres.lean
show that ¬x₀ ∧ x₁ is a linear threshold function that is unate but neither monotone nor
antitone, check that the majority of three bits is unate with I ≤ √3, and show that the parity
of two bits is not unate, hence not a linear threshold function.
References #
Linear threshold functions are unate O'Donnell, Exercise 2.6: if f, read
as signs, is the sign of p of degree at most one, flipping bit i from false to true changes
p by the constant -2 p̂({i}), so it moves the sign of p always in the same direction.
Linear threshold functions have total influence at most √n: a linear threshold function
on n coordinates, read as signs, has total influence at most √n
O'Donnell, Exercises 2.6 and 2.23.