Documentation

CslibFrontier.Foundations.BooleanAnalysis.ParityPTF

The PTF degree of parity (Minsky–Papert) #

Every polynomial threshold representation of the parity parityOn S of a set S of coordinates, over a family T of monomials, must include S in T, and in particular any polynomial threshold function computing parity n has degree at least n Minsky and Papert (1969); 1988 expanded edition, Theorem 3.1.1, §3.1, pp. 56–57 O'Donnell, Exercise 5.10(a) (the locator in the 1969 printing remains unverified). Since signVal (parityOn S x) = χ_S(x), parityOn S is a polynomial threshold function over {S}, so the degree bound n is tight, including the constant case n = 0 (Cslib.BitString.isPTF_parity_iff).

Following CslibFrontier.Foundations.BooleanAnalysis.PolynomialThreshold, the lower bound is stated both for nowhere-vanishing representations (Cslib.BitString.IsPTFOn, Cslib.BitString.IsPTF) and for any nonzero real function p satisfying 0 ≤ signVal (parityOn S x) * p x everywhere (Cslib.BitString.fourierCoeff_pos_of_nonneg_mul_parityOn, Cslib.BitString.le_of_nonneg_mul_parity). The latter allows zeros of p, covering f = sgn(p) with sgn(0) = 1, provided p ≠ 0; this hypothesis is necessary since p = 0 meets the sign condition for every f and every T.

Main results #

References #

theorem Cslib.BitString.fourierCoeff_pos_of_nonneg_mul_parityOn {ι : Type u_1} [Fintype ι] [DecidableEq ι] {S : Finset ι} {p : (ι → Bool) → ℝ} (hp₀ : p ≠ 0) (hp : ∀ (x : ι → Bool), 0 ≤ signVal (parityOn S x) * p x) :

Minsky–Papert correlation positivity for parity: if p is not identically zero and 0 ≤ signVal (parityOn S x) * p x for every x, then p has strictly positive Fourier coefficient on S, because 𝔼 x, χ_S(x) p(x) = 𝔼 x, |p(x)| > 0 Minsky and Papert (1969); 1988 expanded edition, Theorem 3.1.1, §3.1, pp. 56–57 O'Donnell, Exercise 5.10(a).

theorem Cslib.BitString.mem_of_nonneg_mul_parityOn {ι : Type u_1} [Fintype ι] [DecidableEq ι] {T : Finset (Finset ι)} {S : Finset ι} {p : (ι → Bool) → ℝ} (hpT : ∀ U ∉ T, fourierCoeff p U = 0) (hp₀ : p ≠ 0) (hp : ∀ (x : ι → Bool), 0 ≤ signVal (parityOn S x) * p x) :
S ∈ T

Monomial-support lower bound for parity (zeros allowed): if a nonzero p whose Fourier coefficients vanish outside T satisfies 0 ≤ signVal (parityOn S x) * p x everywhere, then S ∈ T Minsky and Papert (1969); 1988 expanded edition, Theorem 3.1.1, §3.1, pp. 56–57 O'Donnell, Exercise 5.10(a).

theorem Cslib.BitString.card_le_of_nonneg_mul_parityOn {ι : Type u_1} [Fintype ι] [DecidableEq ι] {S : Finset ι} {k : ℕ} {p : (ι → Bool) → ℝ} (hpk : ∀ (U : Finset ι), k < U.card → fourierCoeff p U = 0) (hp₀ : p ≠ 0) (hp : ∀ (x : ι → Bool), 0 ≤ signVal (parityOn S x) * p x) :
S.card ≤ k

Minsky–Papert degree lower bound for parityOn S (zeros allowed): if a nonzero p of Fourier degree at most k satisfies 0 ≤ signVal (parityOn S x) * p x everywhere, then #S ≤ k Minsky and Papert (1969); 1988 expanded edition, Theorem 3.1.1, §3.1, pp. 56–57 O'Donnell, Exercise 5.10(a).

theorem Cslib.BitString.le_of_nonneg_mul_parity {n k : ℕ} {p : BitString n → ℝ} (hpk : ∀ (S : Finset (Fin n)), k < S.card → fourierCoeff p S = 0) (hp₀ : p ≠ 0) (hp : ∀ (x : BitString n), 0 ≤ signVal (parity n x) * p x) :
n ≤ k

Minsky–Papert degree-n PTF lower bound for parity (zeros allowed): if a nonzero p : BitString n → ℝ of Fourier degree at most k satisfies 0 ≤ signVal (parity n x) * p x for every x, then n ≤ k Minsky and Papert (1969); 1988 expanded edition, Theorem 3.1.1, §3.1, pp. 56–57 O'Donnell, Exercise 5.10(a).

theorem Cslib.BitString.isPTFOn_parityOn_iff {ι : Type u_1} [Fintype ι] [DecidableEq ι] {T : Finset (Finset ι)} {S : Finset ι} :

Exact PTF family characterization for parityOn S: parityOn S is a polynomial threshold function over T if and only if S ∈ T Minsky and Papert (1969); 1988 expanded edition, Theorem 3.1.1, §3.1, pp. 56–57 O'Donnell, Exercise 5.10(a).

theorem Cslib.BitString.isPTF_parityOn_iff {ι : Type u_1} [Fintype ι] [DecidableEq ι] {k : ℕ} {S : Finset ι} :

Tight PTF degree characterization for parityOn S: parityOn S is a polynomial threshold function of degree at most k if and only if #S ≤ k Minsky and Papert (1969); 1988 expanded edition, Theorem 3.1.1, §3.1, pp. 56–57 O'Donnell, Exercise 5.10(a).

Minsky–Papert theorem: the n-bit parity function is a polynomial threshold function of degree at most k if and only if n ≤ k Minsky and Papert (1969); 1988 expanded edition, Theorem 3.1.1, §3.1, pp. 56–57 O'Donnell, Exercise 5.10(a).