Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Slater's theorem: strong duality with dual attainment

Proved
ConvexOptimization.slater_strong_duality

by Shuze Chen · Aug 12, 2026 · Mathlib 0df444a (Lean v4.33.1)

convexoptimizationdualitykkt

Slater's theorem: strong duality with dual attainment.

Consider the standard problem on Rn\mathbb{R}^nRn with objective f0f_0f0​, inequality constraints fi(x)≤0f_i(x) \le 0fi​(x)≤0 (i=1,…,m)(i = 1,\dots,m)(i=1,…,m) and equality constraints ⟨aj,x⟩=bj\langle a_j, x\rangle = b_j⟨aj​,x⟩=bj​ (j=1,…,p)(j = 1,\dots,p)(j=1,…,p), and assume

  • f0f_0f0​ and every fif_ifi​ are convex on Rn\mathbb{R}^nRn;
  • the vectors a1,…,apa_1,\dots,a_pa1​,…,ap​ are linearly independent (the full-rank condition on the equality constraints);
  • Slater's condition: there is a point x~\tilde{x}x~ with fi(x~)<0f_i(\tilde{x}) < 0fi​(x~)<0 for every iii and ⟨aj,x~⟩=bj\langle a_j,\tilde{x}\rangle = b_j⟨aj​,x~⟩=bj​ for every jjj;
  • the optimal value p⋆=inf⁡{f0(x):x feasible}p^{\star} = \inf\{f_0(x) : x \text{ feasible}\}p⋆=inf{f0​(x):x feasible} is finite (the objective is bounded below on the feasible set).

Then the dual optimum is attained and the duality gap is zero: there exist λ∈Rm\lambda \in \mathbb{R}^mλ∈Rm with λ⪰0\lambda \succeq 0λ⪰0 and ν∈Rp\nu \in \mathbb{R}^pν∈Rp such that

g(λ,ν)  =  p⋆.g(\lambda,\nu) \;=\; p^{\star} .g(λ,ν)=p⋆.

Strong duality is the deepest result of the chapter, and attainment is the part that matters here: the theorem does not merely close the gap in the limit, it produces an actual multiplier pair, and those multipliers are exactly the λ⋆,ν⋆\lambda^{\star},\nu^{\star}λ⋆,ν⋆ appearing in the KKT conditions. Slater's condition cannot simply be dropped — without an interior feasible point the gap can be strictly positive.

Formalization Note p⋆p^{\star}p⋆ appears as sInf (f₀ '' feasibleSet fc a b) and the boundedness hypothesis BddBelow is what makes that infimum meaningful rather than a junk value; the conclusion equates the EReal-valued dual function with the coercion of that real number, which also asserts finiteness of g(λ,ν)g(\lambda,\nu)g(λ,ν). Source: B&V §5.3.2, pp. 234–236, the book's separating-hyperplane proof.

Preamble
import Mathlib
import Definitions.Def_ConvexOptimization_lagrangeDuality

open scoped RealInnerProductSpace ENNReal
open MeasureTheory

Formal statement
theorem ConvexOptimization.slater_strong_duality {n mm p : ℕ}
    (f₀ : EuclideanSpace ℝ (Fin n) → ℝ) (hf₀ : ConvexOn ℝ Set.univ f₀)
    (fc : Fin mm → EuclideanSpace ℝ (Fin n) → ℝ)
    (hfc : ∀ i, ConvexOn ℝ Set.univ (fc i))
    (a : Fin p → EuclideanSpace ℝ (Fin n)) (ha : LinearIndependent ℝ a)
    (b : Fin p → ℝ)
    (xs : EuclideanSpace ℝ (Fin n)) (hxs_ineq : ∀ i, fc i xs < 0)
    (hxs_eq : ∀ j, ⟪a j, xs⟫ = b j)
    (hbdd : BddBelow (f₀ '' feasibleSet fc a b)) :
    ∃ (lam : Fin mm → ℝ) (nu : Fin p → ℝ), (∀ i, 0 ≤ lam i) ∧
      dualFunction f₀ fc a b lam nu =
        ((sInf (f₀ '' feasibleSet fc a b) : ℝ) : EReal) := by
  sorry
Source
Boyd & Vandenberghe 2004, Convex Optimization, Cambridge University Press (seventh printing with corrections, 2009), https://web.stanford.edu/~boyd/cvxbook/, pp. 234-236, §5.3.2 (Slater's condition; proof of strong duality via a separating hyperplane). Formalized with the hypotheses the book's proof actually uses: convex data total on R^n, linearly independent equality rows, and a finite optimal value

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me