Positivstellensatz refutations with inequalities #
A Positivstellensatz refutation of the inequality constraints f ≥ 0, f ∈ I, and the
equations g = 0, g ∈ E, over an ordered commutative ring R is an identity
∑ⱼ hⱼ gⱼ + ∑ₖ cₖ sₖ ² ∏_{f ∈ Sₖ} f = -1
with gⱼ ∈ E, finite sets Sₖ ⊆ I and weights cₖ ≥ 0. No common solution of the constraints
can exist, since the left-hand side is nonnegative there
(Psatz.RefutableInDegree.not_exists_eval). Degree is counted per summand: a refutation has
degree at most d (Psatz.Refutation I E d) when every hⱼ gⱼ has total degree at most d
and every summand has formal degree 2 deg sₖ + ∑_{f ∈ Sₖ} deg f at most d
(Psatz.Summand.degree). The formal degree bounds the total degree
(Psatz.Summand.totalDegree_toPoly_le), and over a domain it is the total degree of every nonzero
summand (Psatz.Summand.totalDegree_toPoly).
This is the degree-d sum-of-squares refutation of Barak and Steurer, lecture "The sos
algorithm over general domains", Definition 1 and the remark after Theorem 2,
with each sum of squares p_S written as a sum of weighted squares, and with equations added. That
definition has inequalities only. Writing g = 0 there as the pair g ≥ 0, -g ≥ 0, every
summand that contains one of the two is a multiple h g of degree at most d, an equation term
here. Equation terms allow a multiplier h of any sign, as in SOS.Refutation, and a
sum-of-squares refutation of equations is the case without inequality factors
(SOS.RefutableInDegree.psatz, Psatz.refutableInDegree_empty_iff). The degree bound of Barak
and Steurer is on the total degree of p_S ∏_{f ∈ S} f. The formal degree here is at least that,
and the two agree on nonzero summands over a domain.
The dual objects are pseudo-expectations (Psatz.PseudoExpectation I E d): linear maps Ẽ
with Ẽ 1 = 1, Ẽ (s ^ 2 ∏_{f ∈ S} f) ≥ 0 for finite S ⊆ I of formal degree at most d,
and Ẽ (q g) = 0 for g ∈ E whenever deg (q g) ≤ d. This is the formal expectation of a
degree-d pseudo-distribution that satisfies the constraints Barak and Steurer, lecture "The sos
algorithm over general domains", Definitions 5 and 7 with ℓ = 0, given
directly as a linear functional. Applying Ẽ to a refutation gives 0 + (nonnegative) = -1, so
a degree-d pseudo-expectation rules out degree-d refutations
(Psatz.PseudoExpectation.not_refutableInDegree). This is the easy direction of the duality
Barak and Steurer, lecture "The sos algorithm over general domains", Theorem 8, case
f = -1. Evaluation at a point that satisfies the inequalities and makes the
equations vanish is a pseudo-expectation (Psatz.PseudoExpectation.ofEval). The converse of the
duality is not formalized.
Main definitions #
Cslib.Logic.PL.SOS.Psatz.Summand: a summandc · s ^ 2 · ∏_{f ∈ S} f.Cslib.Logic.PL.SOS.Psatz.Refutation: Positivstellensatz refutations of degree at mostd.Cslib.Logic.PL.SOS.Psatz.RefutableInDegree: a refutation of degree at mostdexists.Cslib.Logic.PL.SOS.Psatz.PseudoExpectation: pseudo-expectations of degreed.
Main results #
Cslib.Logic.PL.SOS.Psatz.PseudoExpectation.not_refutableInDegree: a degree-dpseudo-expectation rules out refutations of degree at mostd.Cslib.Logic.PL.SOS.Psatz.RefutableInDegree.not_exists_eval: soundness.Cslib.Logic.PL.SOS.Psatz.RefutableInDegree.of_sum: building refutations from finite families.Cslib.Logic.PL.SOS.RefutableInDegree.psatz,Cslib.Logic.PL.SOS.Psatz.refutableInDegree_empty_iff: sum-of-squares refutations of equations are the refutations without inequality factors.
References #
One summand c · s ^ 2 · ∏_{f ∈ S} f of a Positivstellensatz refutation: a finite set S
of inequality constraints, a weight c and a polynomial s.
- factors : Finset (MvPolynomial σ R)
The set
Sof inequality constraints multiplied together. - weight : R
The weight
c, nonnegative in a refutation. - base : MvPolynomial σ R
The polynomial
sthat is squared.
The polynomial c · s ^ 2 · ∏_{f ∈ S} f of a summand.
The formal degree of a summand bounds the total degree of its polynomial.
Over a domain, the formal degree of a summand with nonzero weight, base and factors is the total degree of its polynomial.
A Positivstellensatz refutation of degree at most d of the constraints f ≥ 0, f ∈ I,
and g = 0, g ∈ E: equation terms, pairs (h, g) with g ∈ E standing for h * g, and
summands c · s ^ 2 · ∏_{f ∈ S} f with S ⊆ I and c ≥ 0, such that
∑ h * g + ∑ c · s ^ 2 · ∏_{f ∈ S} f = -1, with every h * g of total degree at most d and every
summand of formal degree 2 deg s + ∑_{f ∈ S} deg f at most d.
The equation terms: a pair
(h, g)stands forh * g.The summands
c · s ^ 2 · ∏_{f ∈ S} f.- eq : (List.map (fun (p : MvPolynomial σ R × MvPolynomial σ R) => p.1 * p.2) self.eqTerms).sum + (List.map Summand.toPoly self.summands).sum = -1
The refutation identity.
Every equation term multiplies a member of
E.- totalDegree_eqTerm_le (p : MvPolynomial σ R × MvPolynomial σ R) : p ∈ self.eqTerms → (p.1 * p.2).totalDegree ≤ d
Every equation term has total degree at most
d. Every summand multiplies members of
I.Every weight is nonnegative.
Every summand has formal degree at most
d.
The constraints have a Positivstellensatz refutation of degree at most d.
RefutableInDegree I E d holds exactly when a refutation of degree at most d exists.
A refutation of degree at most d witnesses RefutableInDegree I E d.
Refutability is monotone in the constraints and in the degree.
Building a refutation from finite families: equation terms h i * g i and summands
t k.
A pseudo-expectation of degree d for the constraints f ≥ 0, f ∈ I, and g = 0,
g ∈ E: a linear map Ẽ from polynomials to R with Ẽ 1 = 1, Ẽ (s ^ 2 ∏_{f ∈ S} f) ≥ 0
for finite S ⊆ I with 2 deg s + ∑_{f ∈ S} deg f ≤ d, and Ẽ (q g) = 0 for g ∈ E whenever
deg (q g) ≤ d.
The pseudo-expectation, as a linear map.
- map_one : self.toLinearMap 1 = 1
Ẽ 1 = 1. - map_sq_mul_prod_nonneg (S : Finset (MvPolynomial σ R)) (s : MvPolynomial σ R) : ↑S ⊆ I → 2 * s.totalDegree + ∑ f ∈ S, f.totalDegree ≤ d → 0 ≤ self.toLinearMap (s ^ 2 * ∏ f ∈ S, f)
Ẽ (s ^ 2 ∏_{f ∈ S} f) ≥ 0forS ⊆ Iwhen the formal degree is at mostd. - map_mul_eq_zero (g : MvPolynomial σ R) : g ∈ E → ∀ (q : MvPolynomial σ R), (q * g).totalDegree ≤ d → self.toLinearMap (q * g) = 0
Ẽ (q g) = 0forg ∈ Ewhenq ghas total degree at mostd.
Evaluation at a point that satisfies the inequalities, and at which the multiples of the
equations of total degree at most d vanish, is a pseudo-expectation of degree d.
The pseudo-expectation ofEval x hI hE is evaluation at x.
Pseudo-expectations rule out refutations: over a strictly ordered ring, if a
pseudo-expectation of degree d exists, there is no Positivstellensatz refutation of degree at
most d.
Soundness of Positivstellensatz refutations: over a strictly ordered ring, refutable constraints have no common solution.
Equations only #
A sum-of-squares refutation of equations is a Positivstellensatz refutation without
inequality factors, for any set I of inequality constraints.
Without inequality constraints, Positivstellensatz refutations of the equations F are
sum-of-squares refutations.
A pseudo-expectation for the equations F is a pseudo-expectation for the same equations and
no inequality constraints.