Documentation

CslibFrontier.Logics.Propositional.Algebraic.Boolean

Refuting polynomial systems over the Boolean cube #

A system of polynomial equations f = 0, f ∈ F, has a Boolean solution at a point x : σ → Bool of the cube, read in R by Cslib.BitString.bitPoint, when every f vanishes there (Cslib.Logic.PL.Algebraic.IsBoolSolution). Algebraic proof systems refute such a system by adding the Boolean axioms X i ^ 2 - X i (Cslib.Logic.PL.Algebraic.boolAxiom) to the inputs [BIK+96], [CEI96]. Here they are a list of inputs, F ++ Cslib.Logic.PL.Algebraic.boolAxioms σ R, for the Nullstellensatz and polynomial calculus proofs Cslib.Logic.PL.NS.IsProof and Cslib.Logic.PL.PC.IsProof of CslibFrontier.Logics.Propositional.Algebraic.Nullstellensatz.Proof and CslibFrontier.Logics.Propositional.Algebraic.PolynomialCalculus.Proof (#2887).

The proof of completeness picks, for every point x of the cube, an input f x that does not vanish at x, and scales the indicator polynomial of x so that ∑ₓ gₓ f x is 1 on the cube. The Combinatorial Nullstellensatz (combinatorial_nullstellensatz_exists_linearCombination) writes 1 - ∑ₓ gₓ f x as a combination of the Boolean axioms, with every product of degree at most n + D. The source states the existence of refutations: Impagliazzo, Pudlák and Sgall note in Section 2 that polynomial calculus refutes exactly the systems without 0/1 solutions [IPS99]. The bound n + D comes from this argument and is not optimized. For polynomial calculus, Lemma 4.1 of the same paper gives max(D, n + 1), which is not formalized here.

Main definitions #

Main results #

References #

noncomputable def Cslib.Logic.PL.Algebraic.boolAxiom {σ : Type u_1} {R : Type u_2} [CommRing R] (i : σ) :

The Boolean axiom X i ^ 2 - X i of the variable i, whose zeros are 0 and 1.

noncomputable def Cslib.Logic.PL.Algebraic.boolAxioms (σ : Type u_1) (R : Type u_2) [CommRing R] [Fintype σ] :

The list of the Boolean axioms of all variables of a finite type.

def Cslib.Logic.PL.Algebraic.IsBoolSolution {σ : Type u_1} {R : Type u_2} [CommRing R] (F : List (MvPolynomial σ R)) (x : σ → Bool) :

A point x of the cube is a Boolean solution of the system f = 0, f ∈ F, when every f ∈ F vanishes at x, read in R.

@[simp]
theorem Cslib.Logic.PL.Algebraic.eval_boolAxiom {σ : Type u_1} {R : Type u_2} [CommRing R] (x : σ → Bool) (i : σ) :

The Boolean axioms vanish at every point of the cube.

theorem Cslib.Logic.PL.Algebraic.mem_boolAxioms {σ : Type u_1} {R : Type u_2} [CommRing R] [Fintype σ] {p : MvPolynomial σ R} :
p ∈ boolAxioms σ R ↔ ∃ (i : σ), boolAxiom i = p

The members of boolAxioms σ R are the Boolean axioms.

The Boolean axiom of every variable is a member of boolAxioms σ R.

The members of the list boolAxioms σ R form the set SOS.Psatz.booleanAxioms σ R, the Boolean axioms that Positivstellensatz refutations take as equations: the two encodings of the Boolean axioms agree.

A Boolean axiom has total degree at most two.

theorem Cslib.Logic.PL.Algebraic.boolAxiom_ne_zero {σ : Type u_1} {R : Type u_2} [CommRing R] [Nontrivial R] (i : σ) :

Over a nontrivial ring, a Boolean axiom is nonzero: its coefficient at X i ^ 2 is 1.

A system has a Boolean solution at x together with the Boolean axioms exactly when it has one without them.

theorem Cslib.Logic.PL.NS.IsProof.not_isBoolSolution {σ : Type u_1} {R : Type u_2} [CommRing R] [Nontrivial R] [Fintype σ] {F : List (MvPolynomial σ R)} {P : Fin (F ++ Algebraic.boolAxioms σ R).length → MvPolynomial σ R} (h : IsProof (F ++ Algebraic.boolAxioms σ R) P 1) (x : σ → Bool) :

Soundness of Nullstellensatz. A Nullstellensatz refutation of F together with the Boolean axioms, over a nontrivial commutative ring, leaves F without Boolean solutions.

theorem Cslib.Logic.PL.PC.IsProof.not_isBoolSolution {σ : Type u_1} {R : Type u_2} [CommRing R] [Nontrivial R] [Fintype σ] {F ls : List (MvPolynomial σ R)} (h : IsProof (F ++ Algebraic.boolAxioms σ R) ls) (h1 : 1 ∈ ls) (x : σ → Bool) :

Soundness of polynomial calculus. A polynomial calculus refutation of F together with the Boolean axioms, over a nontrivial commutative ring, leaves F without Boolean solutions.

Soundness of Nullstellensatz, for refutability in some degree.

Soundness of polynomial calculus, for refutability in some degree.

theorem Cslib.Logic.PL.NS.refutableInDegree_of_forall_not_isBoolSolution {σ : Type u_1} [Fintype σ] {K : Type u_3} [Field K] {F : List (MvPolynomial σ K)} {D : ℕ} (hF : ∀ f ∈ F, f.totalDegree ≤ D) (h : ∀ (x : σ → Bool), ¬Algebraic.IsBoolSolution F x) :

Completeness of Nullstellensatz. Over a field, if every input has total degree at most D in the finitely many variables σ and there is no Boolean solution, then the inputs together with the Boolean axioms have a Nullstellensatz refutation of degree at most card σ + D.

theorem Cslib.Logic.PL.NS.refutableInDegree_iff {σ : Type u_1} [Fintype σ] {K : Type u_3} [Field K] {F : List (MvPolynomial σ K)} {D : ℕ} (hF : ∀ f ∈ F, f.totalDegree ≤ D) :

Over a field, inputs of total degree at most D in the variables σ, together with the Boolean axioms, have a Nullstellensatz refutation of degree at most card σ + D exactly when they have no Boolean solution.

theorem Cslib.Logic.PL.PC.refutableInDegree_iff {σ : Type u_1} [Fintype σ] {K : Type u_3} [Field K] {F : List (MvPolynomial σ K)} {D : ℕ} (hF : ∀ f ∈ F, f.totalDegree ≤ D) :

Completeness of polynomial calculus, through the simulation of Nullstellensatz: over a field, inputs of total degree at most D in the variables σ, together with the Boolean axioms, have a polynomial calculus refutation of degree at most card σ + D exactly when they have no Boolean solution.

theorem Cslib.Logic.PL.NS.exists_refutableInDegree_iff {σ : Type u_1} [Fintype σ] {K : Type u_3} [Field K] {F : List (MvPolynomial σ K)} :
(∃ (d : ℕ), RefutableInDegree (F ++ Algebraic.boolAxioms σ K) d) ↔ ∀ (x : σ → Bool), ¬Algebraic.IsBoolSolution F x

Over a field, inputs in finitely many variables, together with the Boolean axioms, are refutable by Nullstellensatz in some degree exactly when they have no Boolean solution.

theorem Cslib.Logic.PL.PC.exists_refutableInDegree_iff {σ : Type u_1} [Fintype σ] {K : Type u_3} [Field K] {F : List (MvPolynomial σ K)} :
(∃ (d : ℕ), RefutableInDegree (F ++ Algebraic.boolAxioms σ K) d) ↔ ∀ (x : σ → Bool), ¬Algebraic.IsBoolSolution F x

Over a field, inputs in finitely many variables, together with the Boolean axioms, are refutable by polynomial calculus in some degree exactly when they have no Boolean solution.