Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§4.2 — P(∅)P(\emptyset)P(∅) is the set of sums of squares and the smallest cone

Proved
SemialgebraicSDP.Psatz.cone_empty_eq_isSumSq

by mikedeng1 · Oct 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

conep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1positivstellensatzsum-of-squares

In R[x1,…,xn]\mathbb R[x_1,\dots,x_n]R[x1​,…,xn​], the cone generated by the empty set consists exactly of the polynomials that are sums of squares:

P(∅)={∑ipi2:pi∈R[x1,…,xn]},P(\emptyset)=\Big\{\textstyle\sum_i p_i^2 : p_i\in\mathbb R[x_1,\dots,x_n]\Big\},P(∅)={∑i​pi2​:pi​∈R[x1​,…,xn​]},

and it is the smallest cone: P(∅)⊆PP(\emptyset)\subseteq PP(∅)⊆P for every cone PPP of R[x1,…,xn]\mathbb R[x_1,\dots,x_n]R[x1​,…,xn​], i.e. every subset PPP with a,b∈P⇒a+b∈Pa,b\in P\Rightarrow a+b\in Pa,b∈P⇒a+b∈P, a,b∈P⇒ab∈Pa,b\in P\Rightarrow ab\in Pa,b∈P⇒ab∈P, and a2∈Pa^2\in Pa2∈P for every polynomial aaa.

This identifies the "sum of squares" multipliers of the Positivstellensatz with the elements of P(∅)P(\emptyset)P(∅).

Formalization Note Cones are those of Definition 4.5 (closed under sums, products and containing all squares). "Smallest cone" is rendered as inclusion in every subset satisfying the three properties of Definition 4.5.

Preamble
import Mathlib
import Definitions.Def_SemialgebraicSDP_Psatz_Cone
Formal statement
namespace SemialgebraicSDP.Psatz

open MvPolynomial

theorem cone_empty_eq_isSumSq (n : ℕ) :
    cone (∅ : Set (MvPolynomial (Fin n) ℝ)) = {a | IsSumSq a} ∧
      ∀ P : Set (MvPolynomial (Fin n) ℝ),
        (∀ a ∈ P, ∀ b ∈ P, a + b ∈ P) → (∀ a ∈ P, ∀ b ∈ P, a * b ∈ P) →
        (∀ a : MvPolynomial (Fin n) ℝ, a ^ 2 ∈ P) → cone ∅ ⊆ P := by sorry

end SemialgebraicSDP.Psatz
Source
Parrilo, Semidefinite programming relaxations for semialgebraic problems, Math. Program. Ser. B 96 (2003) 293–320, p. 304, §4.2, after Definition 4.5
Human review
  • Endorsed by Shuze Chen · Oct 7, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 7, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me