Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

p. 3, (1.6) — under CQC the second order necessity condition holds at a local minimizer

Proved
LasserreFC.Generic.sonc_1_6

by tianyipeng · Nov 4, 2026 · Mathlib 0df444a (Lean v4.33.1)

lasserre-hierarchyoptimality-conditionspolynomial-optimizationsecond-order-conditions

Consider problem (1.1),

min⁡x∈Rnf(x)s.t.hi(x)=0 (i∈[m1]),gj(x)≥0 (j∈[m2]),\min_{x\in\mathbb R^n} f(x)\quad\text{s.t.}\quad h_i(x)=0\ (i\in[m_1]),\qquad g_j(x)\ge0\ (j\in[m_2]),x∈Rnmin​f(x)s.t.hi​(x)=0 (i∈[m1​]),gj​(x)≥0 (j∈[m2​]),

with f,hi,gj∈R[x]f,h_i,g_j\in\mathbb R[x]f,hi​,gj​∈R[x] and feasible set KKK. Let u∈Ku\in Ku∈K be a local minimizer of fff on KKK, let J(u)={j:gj(u)=0}J(u)=\{j: g_j(u)=0\}J(u)={j:gj​(u)=0} be the active set, and assume the constraint qualification condition (CQC): the gradients ∇h1(u),…,∇hm1(u)\nabla h_1(u),\dots,\nabla h_{m_1}(u)∇h1​(u),…,∇hm1​​(u), ∇gj(u)\nabla g_j(u)∇gj​(u) (j∈J(u))(j\in J(u))(j∈J(u)) are linearly independent. Let λ,μ\lambda,\muλ,μ satisfy (1.3)–(1.4) and let

L(x)=f(x)−∑i=1m1λihi(x)−∑j∈J(u)μjgj(x)L(x)=f(x)-\sum_{i=1}^{m_1}\lambda_ih_i(x)-\sum_{j\in J(u)}\mu_jg_j(x)L(x)=f(x)−i=1∑m1​​λi​hi​(x)−j∈J(u)∑​μj​gj​(x)

be the Lagrange function of p. 3. Then the second order necessity condition (1.6) holds:

vT∇x2L(u) v ≥ 0for all v∈G(u)⊥,v^T\nabla^2_xL(u)\,v\ \ge\ 0\qquad\text{for all } v\in G(u)^\perp,vT∇x2​L(u)v ≥ 0for all v∈G(u)⊥,

where G(u)⊥G(u)^\perpG(u)⊥ is the set of v∈Rnv\in\mathbb R^nv∈Rn with ∇hi(u)Tv=0\nabla h_i(u)^Tv=0∇hi​(u)Tv=0 for all iii and ∇gj(u)Tv=0\nabla g_j(u)^Tv=0∇gj​(u)Tv=0 for all j∈J(u)j\in J(u)j∈J(u).

This is the classical second order necessary condition for constrained minima (Bertsekas, Nonlinear Programming, §3.3), stated on p. 3 of the paper. It is used in the proof of Lemma 4.6 to show that det⁡H(u)≠0\det H(u)\ne0detH(u)=0 forces the second order sufficiency condition (1.7).

Preamble
import Mathlib
import Definitions.Def_LasserreFC_Generic_Setting
Formal statement
namespace LasserreFC.Generic

open MvPolynomial Matrix

/-- p. 3, (1.6) (second order necessity condition, cf. Bertsekas [1, §3.3]). Let `u` be a local
minimizer of (1.1) and `λ, μ` satisfy (1.3)–(1.4). If the constraint qualification condition
holds at `u`, then `vᵀ ∇²L(u) v ≥ 0` for every `v ∈ G(u)^⊥`, i.e. every `v` orthogonal to
`∇hᵢ(u)` for all `i` and to `∇gⱼ(u)` for all active `j`, where
`L(x) = f(x) − Σᵢ λᵢ hᵢ(x) − Σ_{j ∈ J(u)} μⱼ gⱼ(x)`. -/
theorem sonc_1_6 {n m1 m2 : ℕ} (P : POP n m1 m2) (u : Fin n → ℝ) (hu : u ∈ P.K)
    (hmin : IsLocalMinOn (fun x => eval x P.f) P.K u) (lam : Fin m1 → ℝ) (mu : Fin m2 → ℝ)
    (hkkt : IsKKTMult P u lam mu) (hcq : CQC P u) :
    ∀ v : Fin n → ℝ, (∀ i, grad (P.h i) u ⬝ᵥ v = 0) →
      (∀ j, eval u (P.g j) = 0 → grad (P.g j) u ⬝ᵥ v = 0) →
      0 ≤ v ⬝ᵥ (hess (lagr P u lam mu) u *ᵥ v) := by sorry

end LasserreFC.Generic
Source
J. Nie, Optimality conditions and finite convergence of Lasserre's hierarchy, arXiv:1206.0319v2, p. 3, (1.6) (citing D. Bertsekas, Nonlinear Programming, 2nd ed., §3.3); used in the proof of Lemma 4.6, pp. 15–16

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