Documentation

CslibFrontier.Logics.Propositional.Algebraic.SumOfSquares.Parity

Sum-of-squares degree lower bounds for parity systems #

Over ±1 variables the parity equation ⊕_{i ∈ S} xᵢ = b reads ∏_{i ∈ S} xᵢ = (-1) ^ b. The ±1 encoding ParitySystem.toPolys R P of a parity system P has, for every equation, the polynomial ∏_{i ∈ S} Xᵢ - (-1) ^ b (ParitySystem.parityPoly), and for every variable the axiom Xᵢ ^ 2 - 1. Its common zeros in an ordered field are the ±1 points of the satisfying assignments (ParitySystem.exists_eval_eq_zero_iff).

Schoenebeck's lemma. If width-d derivations from P do not reach 0 = 1, the encoding has a pseudo-expectation of degree d (ParitySystem.pseudoExpectation), so it has no sum-of-squares refutation of degree at most d (ParitySystem.not_sos_refutableInDegree_toPolys). This is the main lemma of Schoenebeck, Lemma 13, in the sum-of-squares form of [Barak and Steurer, lecture "Higher-degree integrality gaps", Lemma 7 and the proof of Theorem 2] [BS16a], for an arbitrary parity system: no expansion or randomness is assumed. Schoenebeck states it for width-w resolution on XOR formulas and a round of the Lasserre hierarchy proportional to w. In the author's copy consulted (TeX output dated December 2008, p. 8) that round is w/2; versions of the paper differ on this constant, and the Lasserre vector solution is not constructed here. Round r of Schoenebeck, Definition 5 has a vector for every r-junta, so it constrains moments of degree up to 2 r; degree-d sum-of-squares corresponds to roughly round d/2. Here degree d plays the role of w, and width counts the variables of every line, axioms included (Cslib.Logic.PL.ParitySystem.Derives), which makes the hypothesis weaker than the source's. The construction is that of the sources:

Main definitions #

Main results #

References #

The ±1 encoding #

noncomputable def Cslib.Logic.PL.ParitySystem.parityPoly {σ : Type u_1} (R : Type u_2) [CommRing R] (S : Finset σ) (b : Bool) :

The ±1 polynomial ∏_{i ∈ S} Xᵢ - (-1) ^ b of the parity equation ⊕_{i ∈ S} xᵢ = b.

noncomputable def Cslib.Logic.PL.ParitySystem.toPolys {σ : Type u_1} (R : Type u_2) [CommRing R] [Fintype σ] (P : ParitySystem σ) :

The ±1 encoding of a parity system: the polynomial of every equation, followed by the axioms Xᵢ ^ 2 - 1 for all variables.

theorem Cslib.Logic.PL.ParitySystem.mem_toPolys {σ : Type u_1} {R : Type u_2} [CommRing R] [Fintype σ] {P : ParitySystem σ} {f : MvPolynomial σ R} :
f ∈ toPolys R P ↔ (∃ e ∈ P, parityPoly R e.vars e.rhs = f) ∨ ∃ (i : σ), MvPolynomial.X i ^ 2 - 1 = f

The members of the ±1 encoding.

theorem Cslib.Logic.PL.ParitySystem.parityPoly_mem_toPolys {σ : Type u_1} {R : Type u_2} [CommRing R] [Fintype σ] {P : ParitySystem σ} {S : Finset σ} {b : Bool} (h : { vars := S, rhs := b } ∈ P) :

The polynomial of an equation of P belongs to the encoding.

theorem Cslib.Logic.PL.ParitySystem.X_sq_sub_one_mem_toPolys {σ : Type u_1} {R : Type u_2} [CommRing R] [Fintype σ] (P : ParitySystem σ) (i : σ) :

The axiom Xᵢ ^ 2 - 1 belongs to the encoding.

The polynomial of an equation with k variables has total degree at most k.

Over a nontrivial ring, the polynomial of an equation with k variables has total degree exactly k.

theorem Cslib.Logic.PL.ParitySystem.exists_eval_eq_zero_iff {σ : Type u_1} {R : Type u_2} [Field R] [LinearOrder R] [IsStrictOrderedRing R] [Fintype σ] (P : ParitySystem σ) :
(∃ (x : σ → R), ∀ f ∈ toPolys R P, (MvPolynomial.eval x) f = 0) ↔ ∃ (a : σ → Bool), P.Holds a

The common zeros of the ±1 encoding are the satisfying assignments: over a strictly ordered field, the encoding of P has a common zero exactly when P is satisfiable.

Schoenebeck's pseudo-moments #

noncomputable def Cslib.Logic.PL.ParitySystem.parityValue {σ : Type u_1} [DecidableEq σ] {R : Type u_2} [CommRing R] (P : ParitySystem σ) (w : ℕ) (T : Finset σ) :
R

Schoenebeck's pseudo-moments: parityValue P w T is 1 if width-w derivations reach ⊕_{i ∈ T} xᵢ = 0, -1 if they reach ⊕_{i ∈ T} xᵢ = 1 but not ⊕_{i ∈ T} xᵢ = 0, and 0 otherwise.

theorem Cslib.Logic.PL.ParitySystem.parityValue_eq_of_derives {σ : Type u_1} [DecidableEq σ] {P : ParitySystem σ} {w : ℕ} {R : Type u_2} [CommRing R] (hP : ¬P.Derives w ∅ true) {T : Finset σ} {c : Bool} (h : P.Derives w T c) :
P.parityValue w T = (-1) ^ c.toNat

If 0 = 1 is not derivable, parityValue is the sign of the derivable right-hand side.

theorem Cslib.Logic.PL.ParitySystem.parityValue_eq_zero {σ : Type u_1} [DecidableEq σ] {P : ParitySystem σ} {w : ℕ} {R : Type u_2} [CommRing R] {T : Finset σ} (h : ∀ (c : Bool), ¬P.Derives w T c) :
P.parityValue w T = 0

parityValue vanishes on sets of which no equation is derivable.

@[simp]
theorem Cslib.Logic.PL.ParitySystem.parityValue_empty {σ : Type u_1} [DecidableEq σ] {P : ParitySystem σ} {w : ℕ} {R : Type u_2} [CommRing R] :

parityValue P w ∅ = 1.

theorem Cslib.Logic.PL.ParitySystem.parityValue_symmDiff {σ : Type u_1} [DecidableEq σ] {P : ParitySystem σ} {w : ℕ} {R : Type u_2} [CommRing R] (hP : ¬P.Derives w ∅ true) {S T : Finset σ} {b : Bool} (hS : P.Derives w S b) (hST : T.card + S.card ≤ w) :
P.parityValue w (symmDiff T S) = (-1) ^ b.toNat * P.parityValue w T

The shift identity: if ⊕_{i ∈ S} xᵢ = b is derivable and #T + #S ≤ w, then parityValue (T ∆ S) = (-1) ^ b * parityValue T.

Positive semidefiniteness #

theorem Cslib.Logic.PL.ParitySystem.sum_sum_mul_parityValue_nonneg {σ : Type u_1} [DecidableEq σ] {P : ParitySystem σ} {w : ℕ} {R : Type u_2} [CommRing R] [LinearOrder R] [IsOrderedRing R] (hP : ¬P.Derives w ∅ true) {ι : Type u_3} (s : Finset ι) (A : ι → Finset σ) (hA : ∀ i ∈ s, 2 * (A i).card ≤ w) (a : ι → R) :
0 ≤ ∑ i ∈ s, ∑ j ∈ s, a i * a j * P.parityValue w (symmDiff (A i) (A j))

The moment matrix is positive semidefinite: if 0 = 1 is not derivable in width w, then for sets A i of size at most w / 2 and any coefficients a i, ∑ᵢ ∑ⱼ a i a j parityValue (A i ∆ A j) ≥ 0.

The pseudo-expectation #

Schoenebeck's pseudo-expectation: if width-w derivations from P do not reach 0 = 1, the map X ^ m ↦ parityValue P w (oddSupport m) is a pseudo-expectation of degree w for the ±1 encoding of P Schoenebeck, Lemma 13.

Schoenebeck's pseudo-expectation sends c X ^ m to c parityValue (oddSupport m).

Schoenebeck's pseudo-expectation sends ∏_{i ∈ T} Xᵢ to parityValue T.

Schoenebeck's lemma Schoenebeck, Lemma 13: over a strictly ordered ring, if width-d derivations from the parity system P do not reach 0 = 1, its ±1 encoding has no sum-of-squares refutation of degree at most d.