Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 6(i) — weak duality: cᵀx ≤ (U + W) • Q₀ for W ∈ 𝒲ₖ, k ≤ m

Proved
ExactSDPDuality.ELSD.weak_duality

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

dualityp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1semidefinite-programming

Let Q0,…,QmQ_0,\dots,Q_mQ0​,…,Qm​ be real symmetric n×nn\times nn×n matrices, c∈Rmc\in\mathbb R^mc∈Rm, and G={x∣∑ixiQi⪯Q0}G = \{x\mid \sum_i x_iQ_i\preceq Q_0\}G={x∣∑i​xi​Qi​⪯Q0​}. Let k≤mk\le mk≤m, let x∈Gx\in Gx∈G, and let U,WU, WU,W be real n×nn\times nn×n matrices with

Q∗(U+W)=c,W∈Wk,U⪰0.Q^*(U+W) = c,\qquad W\in\mathcal W_k,\qquad U\succeq 0 .Q∗(U+W)=c,W∈Wk​,U⪰0.

Then

cTx≤(U+W)∙Q0.c^{\mathsf T}x \le (U+W)\bullet Q_0 .cTx≤(U+W)∙Q0​.

With k=mk = mk=m this is weak duality between (P) and (ELSD); with k=m−1k = m-1k=m−1 it is weak duality between (P) and (Weak-ELSD). This is the form in which the paper proves Theorem 6(i).

Preamble
import Mathlib
import Definitions.Def_ExactSDPDuality_ELSD_Model

open Matrix
Formal statement
namespace ExactSDPDuality.ELSD

/-- Theorem 6(i), weak duality, in the form proved on pp. 140–141 (Ramana 1997): if `x` is
primal feasible, `k ≤ m`, and `(U, W)` satisfies `Q*(U + W) = c`, `W ∈ 𝒲ₖ`, `U ⪰ 0`, then
`cᵀx ≤ (U + W) • Q₀`. With `k = m` this is weak duality for (ELSD), with `k = m − 1` for
(Weak-ELSD). -/
theorem weak_duality {n m : ℕ} (Q0 : Matrix (Fin n) (Fin n) ℝ)
    (Q : Fin m → Matrix (Fin n) (Fin n) ℝ) (c : Fin m → ℝ)
    (hQ0 : Q0.IsSymm) (hQ : ∀ i, (Q i).IsSymm) (k : ℕ) (hk : k ≤ m)
    (x : Fin m → ℝ) (hx : x ∈ feasibleSet Q0 Q)
    (U W : Matrix (Fin n) (Fin n) ℝ) (hc : Qstar Q (U + W) = c)
    (hW : W ∈ Wset Q0 Q k) (hU : U.PosSemidef) :
    c ⬝ᵥ x ≤ frob (U + W) Q0 := by sorry

end ExactSDPDuality.ELSD
Source
Ramana, An exact duality theory for semidefinite programming and its complexity implications, Math. Program. 77 (1997), p. 138, Theorem 6(i); proof on pp. 140–141
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting. Let n,m∈Nn,m\in\mathbb Nn,m∈N. Let Q0,Q1,…,QmQ_0,Q_1,\dots,Q_mQ0​,Q1​,…,Qm​ be real n×nn\times nn×n matrices, each assumed symmetric, and let c∈Rmc\in\mathbb R^mc∈Rm. Notation:

  • A∙B=∑i,jAijBijA\bullet B=\sum_{i,j}A_{ij}B_{ij}A∙B=∑i,j​Aij​Bij​;
  • Q(x)=Q0−∑ixiQiQ(x)=Q_0-\sum_i x_iQ_iQ(x)=Q0​−∑i​xi​Qi​;
  • M⪰0M\succeq0M⪰0 means symmetric with v⊤Mv≥0v^\top Mv\ge0v⊤Mv≥0 for all vvv;
  • G={x:Q(x)⪰0}G=\{x: Q(x)\succeq0\}G={x:Q(x)⪰0};
  • Q∗(X)=(X∙Q1,…,X∙Qm)Q^*(X)=(X\bullet Q_1,\dots,X\bullet Q_m)Q∗(X)=(X∙Q1​,…,X∙Qm​).

For k∈Nk\in\mathbb Nk∈N, Wk\mathcal W_kWk​ is the set of all WkW_kWk​ over pairs of matrix sequences (Ui)i≥0,(Wi)i≥0(U_i)_{i\ge0},(W_i)_{i\ge0}(Ui​)i≥0​,(Wi​)i≥0​ with U0=W0=0U_0=W_0=0U0​=W0​=0 and, for 1≤i≤k1\le i\le k1≤i≤k,

Q0∙(Ui+Wi−1)=0,Q∗(Ui+Wi−1)=0,Ui−WiWi⊤⪰0.Q_0\bullet(U_i+W_{i-1})=0,\qquad Q^*(U_i+W_{i-1})=0,\qquad U_i-W_iW_i^\top\succeq0 .Q0​∙(Ui​+Wi−1​)=0,Q∗(Ui​+Wi−1​)=0,Ui​−Wi​Wi⊤​⪰0.

The statement. Assume:

  • k≤mk\le mk≤m;
  • x∈Gx\in Gx∈G;
  • U,WU,WU,W are real n×nn\times nn×n matrices with Q∗(U+W)=cQ^*(U+W)=cQ∗(U+W)=c, W∈WkW\in\mathcal W_kW∈Wk​ and U⪰0U\succeq0U⪰0.

Then

c⊤x≤(U+W)∙Q0.c^\top x\le (U+W)\bullet Q_0 .c⊤x≤(U+W)∙Q0​.

Degenerate cases.

  • For k=0k=0k=0, WWW must be 000 and the claim reads c⊤x≤U∙Q0c^\top x\le U\bullet Q_0c⊤x≤U∙Q0​ whenever Q∗(U)=cQ^*(U)=cQ∗(U)=c and U⪰0U\succeq0U⪰0.
  • For m=0m=0m=0: k=0k=0k=0, c⊤x=0c^\top x=0c⊤x=0, the condition Q∗(U+W)=cQ^*(U+W)=cQ∗(U+W)=c holds automatically, and x∈Gx\in Gx∈G means Q0⪰0Q_0\succeq0Q0​⪰0. The claim is then 0≤U∙Q00\le U\bullet Q_00≤U∙Q0​ for every U⪰0U\succeq0U⪰0.
  • If G=∅G=\varnothingG=∅ the statement is vacuous.
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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