Documentation

CslibFrontier.Logics.Propositional.Algebraic.SubsetSum

A degree lower bound for subset sum #

The subset-sum polynomial m - ∑ᵢ cᵢ xᵢ (Cslib.Logic.PL.Algebraic.subsetSumPoly) over a field F, with the Boolean axioms, asks for a subset of the coefficients cᵢ summing to m. Theorem 5.1 of Impagliazzo, Pudlák and Sgall [IPS99] states that for nonzero real c₁, …, cₙ and arbitrary real m, this polynomial has no polynomial calculus refutation of degree ⌈n/2⌉. Here this is Cslib.Logic.PL.PC.not_refutableInDegree_subsetSumPoly, for the polynomial calculus proofs Cslib.Logic.PL.PC.IsProof with the Boolean axioms as inputs. Since the Nullstellensatz proofs Cslib.Logic.PL.NS.IsProof are simulated in the same degree (Cslib.Logic.PL.PC.RefutableInDegree.of_ns), the bound also holds for Nullstellensatz (Cslib.Logic.PL.NS.not_refutableInDegree_subsetSumPoly). When m is not a subset sum of the cᵢ, the system is refutable in degree n + 1 by completeness (Cslib.Logic.PL.PC.refutableInDegree_subsetSumPoly_iff), so this is a genuine degree lower bound. For c = 1 and m > n, Theorem 4.2 of the same paper gives a refutation of degree ⌈n/2⌉ + 1, under a condition on the characteristic. The source notes that this matches the lower bound over ℝ. That upper bound is not formalized here.

The statement here holds over every field in which ⌈n/2⌉! is nonzero, so in characteristic zero and in every characteristic larger than ⌈n/2⌉; the source states it over ℝ. This is a mild generalization of the source statement, with the same proof: Lemma 5.2 is applied only to functions of degree below ⌈n/2⌉, and needs 1, …, deg r + 1 to be nonzero.

The proof follows the source, through the invariant method (Cslib.Logic.PL.PC.IsProof.mem_of_degree_le). Let L x = m - ∑ᵢ cᵢ xᵢ, and let M be the polynomials that agree on the cube with L * r for a function r of degree at most d - 1.

Main definitions #

Main results #

References #

noncomputable def Cslib.Logic.PL.Algebraic.subsetSumPoly {ι : Type u_1} {F : Type u_2} [Field F] [Fintype ι] (c : ι → F) (m : F) :

The subset-sum polynomial m - ∑ᵢ cᵢ xᵢ, whose 0/1 zeros are the subsets of the coefficients cᵢ summing to m.

theorem Cslib.Logic.PL.Algebraic.totalDegree_subsetSumPoly_le {ι : Type u_1} {F : Type u_2} [Field F] [Fintype ι] (c : ι → F) (m : F) :

The subset-sum polynomial has degree at most one.

theorem Cslib.Logic.PL.Algebraic.isBoolSolution_subsetSumPoly_iff {ι : Type u_1} {F : Type u_2} [Field F] [Fintype ι] (c : ι → F) (m : F) (x : ι → Bool) :
IsBoolSolution [subsetSumPoly c m] x ↔ ∑ i : ι, c i * BitString.bitVal F (x i) = m

The 0/1 solutions of the subset-sum polynomial are the subsets of the coefficients summing to m.

theorem Cslib.Logic.PL.PC.not_refutableInDegree_subsetSumPoly {ι : Type u_1} {F : Type u_2} [Field F] [Fintype ι] [Nonempty ι] {c : ι → F} (hc : ∀ (i : ι), c i ≠ 0) (m : F) (hF : ↑((Fintype.card ι + 1) / 2).factorial ≠ 0) {d : ℕ} (hd : d ≤ (Fintype.card ι + 1) / 2) :

Theorem 5.1 of [IPS99]. Let c₁, …, cₙ be nonzero, n ≥ 1, and m arbitrary, over a field in which ⌈n/2⌉! is nonzero. Then the subset-sum polynomial m - ∑ᵢ cᵢ xᵢ, with the Boolean axioms, has no polynomial calculus refutation of degree ⌈n/2⌉ = (n + 1) / 2. The source states the theorem over ℝ. For n = 0 and m ≠ 0 the constant m refutes itself in degree 0.

theorem Cslib.Logic.PL.NS.not_refutableInDegree_subsetSumPoly {ι : Type u_1} {F : Type u_2} [Field F] [Fintype ι] [Nonempty ι] {c : ι → F} (hc : ∀ (i : ι), c i ≠ 0) (m : F) (hF : ↑((Fintype.card ι + 1) / 2).factorial ≠ 0) {d : ℕ} (hd : d ≤ (Fintype.card ι + 1) / 2) :

Theorem 5.1 of [IPS99] for Nullstellensatz. Under the hypotheses of Cslib.Logic.PL.PC.not_refutableInDegree_subsetSumPoly, the subset-sum polynomial, with the Boolean axioms, has no Nullstellensatz refutation of degree ⌈n/2⌉.

theorem Cslib.Logic.PL.PC.refutableInDegree_subsetSumPoly_iff {ι : Type u_1} {F : Type u_2} [Field F] [Fintype ι] (c : ι → F) (m : F) :
RefutableInDegree ([Algebraic.subsetSumPoly c m] ++ Algebraic.boolAxioms ι F) (Fintype.card ι + 1) ↔ ∀ (x : ι → Bool), ∑ i : ι, c i * BitString.bitVal F (x i) ≠ m

The subset-sum polynomial, with the Boolean axioms, has a polynomial calculus refutation of degree n + 1 exactly when no subset of the coefficients sums to m.