Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Strong alternatives for strict convex inequality systems

Proved
ConvexOptimization.strong_alternatives_strict_convex

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

convex-optimizations-proceduresemidefinite-programming

Strong alternatives for a system of strict convex inequalities.

Let f1,…,fm:Rn→Rf_1,\dots,f_m : \mathbb{R}^n \to \mathbb{R}f1​,…,fm​:Rn→R be convex, let a1,…,ap∈Rna_1,\dots,a_p \in \mathbb{R}^na1​,…,ap​∈Rn be linearly independent, let b∈Rpb \in \mathbb{R}^pb∈Rp, and assume the affine system ⟨aj,x⟩=bj\langle a_j, x\rangle = b_j⟨aj​,x⟩=bj​ has a solution. Write g(λ,ν)=inf⁡x[∑iλifi(x)+∑jνj(⟨aj,x⟩−bj)]g(\lambda,\nu) = \inf_x\bigl[\sum_i \lambda_i f_i(x) + \sum_j \nu_j(\langle a_j,x\rangle - b_j)\bigr]g(λ,ν)=infx​[∑i​λi​fi​(x)+∑j​νj​(⟨aj​,x⟩−bj​)] for the dual function of the feasibility problem, i.e. of the problem with zero objective. Then

(∃x: fi(x)<0 ∀i, ⟨aj,x⟩=bj ∀j)⟺¬(∃λ⪰0, λ≠0, ν: g(λ,ν)≥0).\bigl(\exists x:\ f_i(x) < 0 \ \forall i,\ \langle a_j,x\rangle = b_j \ \forall j\bigr) \qquad\Longleftrightarrow\qquad \neg\bigl(\exists \lambda \succeq 0,\ \lambda \ne 0,\ \nu:\ g(\lambda,\nu) \ge 0\bigr).(∃x: fi​(x)<0 ∀i, ⟨aj​,x⟩=bj​ ∀j)⟺¬(∃λ⪰0, λ=0, ν: g(λ,ν)≥0).

The two systems are strong alternatives: exactly one of them is feasible, with no gap between them. The second is the certificate of infeasibility — a nonnegative, nonzero combination of the constraints that is bounded below by zero, i.e. a proof that no strictly feasible point exists.

Theorems of the alternative are the infeasibility counterpart of duality: rather than certifying optimality, they certify that a system has no solution. Farkas' lemma is the linear case, and the LMI alternatives used later in this mission are the semidefinite specializations of this result.

Formalization Note The dual function is the mission's dualFunction applied with objective 0, so the statement reuses the Lagrange-duality interface of Mission II; the constraint qualification is stated as solvability of the equality system together with linear independence of the a j. Source: B&V §5.8.2, pp. 260–261, systems (5.79)/(5.80).

Preamble
import Mathlib
import Definitions.Def_ConvexOptimization_lagrangeDuality

open scoped RealInnerProductSpace ENNReal
open MeasureTheory

Formal statement
theorem ConvexOptimization.strong_alternatives_strict_convex {n mm p : ℕ}
    (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 → ℝ) (hCQ : ∃ x, ∀ j, ⟪a j, x⟫ = b j) :
    (∃ x, (∀ i, fc i x < 0) ∧ ∀ j, ⟪a j, x⟫ = b j) ↔
      ¬∃ (lam : Fin mm → ℝ) (nu : Fin p → ℝ), (∀ i, 0 ≤ lam i) ∧ lam ≠ 0 ∧
        0 ≤ dualFunction 0 fc a b lam nu := by
  sorry
Source
Boyd & Vandenberghe 2004, Convex Optimization, Cambridge University Press (seventh printing with corrections, 2009), https://web.stanford.edu/~boyd/cvxbook/, pp. 260-261, §5.8.2 eq. (5.79)/(5.80) (strong alternatives for strict convex inequalities)

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