Weak duality
ProvedConvexOptimization.weak_dualityWeak duality — inequality (5.2) of Boyd & Vandenberghe: the dual function is a lower bound on the primal objective at every feasible point.
For the standard problem with objective , inequality constraints and equality constraints , write and . Let with for all , let be arbitrary, and let be feasible. Then
Taking the infimum over feasible gives : every dual-feasible pair certifies a lower bound on the optimal value, at the cost of a single evaluation and with no convexity assumption on the problem. The difference is the duality gap, and an equality therefore proves simultaneously that is primal optimal and dual optimal — the mechanism behind every statement later in this mission.
Formalization Note The inequality is between EReal values, so the vacuous case needs no separate treatment; feasibility of is membership in the mission's feasible-set definition. Source: B&V §5.2.2, p. 225, eq. (5.2).
import Mathlib import Definitions.Def_ConvexOptimization_lagrangeDuality open scoped RealInnerProductSpace ENNReal open MeasureTheory
theorem ConvexOptimization.weak_duality {n mm p : ℕ}
(f₀ : EuclideanSpace ℝ (Fin n) → ℝ)
(fc : Fin mm → EuclideanSpace ℝ (Fin n) → ℝ)
(a : Fin p → EuclideanSpace ℝ (Fin n)) (b : Fin p → ℝ)
(lam : Fin mm → ℝ) (hlam : ∀ i, 0 ≤ lam i) (nu : Fin p → ℝ)
(x : EuclideanSpace ℝ (Fin n)) (hx : x ∈ feasibleSet fc a b) :
dualFunction f₀ fc a b lam nu ≤ (f₀ x : EReal) := by
sorry
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Theorem. Fix data (implicit ; no convexity or continuity assumed anywhere), multipliers with for every , completely unrestricted, and a point that is feasible, meaning for every and for every . The conclusion is the inequality, in the extended reals,
where is the extended-real dual function and is coerced from . If the Lagrangian is unbounded below, and the inequality is automatic. Edge cases: when the hypothesis on and the inequality constraints are vacuous; when feasibility is vacuous and reduces to .
Confirmed by the mission captain (proposal self-audit).