Documentation

CslibFrontier.Logics.Propositional.Algebraic.PolynomialCalculus.Nullstellensatz

Simulating Nullstellensatz proofs in polynomial calculus #

An NS certificate for a nonzero polynomial q, of size at most s and degree at most d, yields a PC proof containing q, of size at most s ^ 2 + (d + 1) * s and degree at most d (Cslib.Logic.PL.PC.exists_isProof_of_ns). Both bounds hold for the same PC proof. The construction expands each multiplier into monomials, derives the corresponding monomial multiples of the inputs, and combines them with their coefficients. The refutation case q = 1 over nontrivial coefficients is Cslib.Logic.PL.PC.exists_refutation_of_ns.

A size bound alone uses a replacement certificate. If every input has total degree at most d₀, Cslib.Logic.PL.NS.IsProof.exists_degree_le_mul_size gives an NS refutation of no larger size and degree at most d₀ * s. Simulating it gives PC size at most (d₀ + 1) * s ^ 2 + s (Cslib.Logic.PL.PC.RefutableInSize.of_ns). The degree-only corollary preserves the NS degree bound (Cslib.Logic.PL.PC.RefutableInDegree.of_ns).

Relation to the source #

de Rezende et al., Fact 8.1, p. 218 states, over a field, that an NS proof of a polynomial from n-variate inputs yields a PC proof of size poly(s, n), preserving degree or block-degree. Here nonzero targets are handled for total degree over a commutative semiring, with the explicit degree-dependent bounds above. NS.size follows the source's size convention ∑ i, ‖p i‖ * ‖f i‖. The size-only corollary additionally uses an input-degree bound and the auxiliary gap-truncation lemma proved in CslibFrontier.Logics.Propositional.Algebraic.Nullstellensatz.Proof.

The refutation simulations assume nontrivial coefficients. Over the trivial semiring the empty input list has an NS refutation, since its empty sum equals 1, but no PC refutation, since a PC proof from no inputs has no lines.

Main results #

References #

theorem Cslib.Logic.PL.PC.exists_isProof_of_ns {V : Type u_1} {R : Type u_2} [CommSemiring R] {s d : ℕ} {F : List (MvPolynomial V R)} {P : Fin F.length → MvPolynomial V R} {q : MvPolynomial V R} (hP : NS.IsProof F P q) (hq : q ≠ 0) (hs : NS.size F P ≤ s) (hd : NS.degree F P ≤ d) :
∃ (ls : List (MvPolynomial V R)), IsProof F ls ∧ q ∈ ls ∧ size ls ≤ s ^ 2 + (d + 1) * s ∧ degree ls ≤ d

An NS certificate for a nonzero polynomial q, of size at most s and degree at most d, yields a PC proof containing q, of size at most s ^ 2 + (d + 1) * s and degree at most d. Both bounds hold for the same PC proof. This gives a simulation related to [DeRezendeEtAl2021, Fact 8.1], with an explicit degree-dependent size bound.

theorem Cslib.Logic.PL.PC.exists_refutation_of_ns {V : Type u_1} {R : Type u_2} [CommSemiring R] [Nontrivial R] {s d : ℕ} {F : List (MvPolynomial V R)} {P : Fin F.length → MvPolynomial V R} (hP : NS.IsProof F P 1) (hs : NS.size F P ≤ s) (hd : NS.degree F P ≤ d) :
∃ (ls : List (MvPolynomial V R)), IsProof F ls ∧ 1 ∈ ls ∧ size ls ≤ s ^ 2 + (d + 1) * s ∧ degree ls ≤ d

An NS refutation certificate of size at most s and degree at most d yields a PC refutation satisfying both bounds s ^ 2 + (d + 1) * s and d.

theorem Cslib.Logic.PL.PC.RefutableInSize.of_ns {V : Type u_1} {R : Type u_2} [CommSemiring R] [Nontrivial R] {s d₀ : ℕ} {F : List (MvPolynomial V R)} (hd₀ : ∀ f ∈ F, f.totalDegree ≤ d₀) (hs : NS.RefutableInSize F s) :
RefutableInSize F ((d₀ + 1) * s ^ 2 + s)

An NS refutation of size at most s yields a PC refutation of size at most (d₀ + 1) * s ^ 2 + s when every input polynomial has total degree at most d₀. The construction first replaces the NS certificate without increasing its size.

An NS refutation of degree at most d yields a PC refutation of degree at most d.