Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
โ† Formalpedia

ยง2.5 โ€” ๐’žโ‚–, ๐’ฐโ‚–, ๐’ฒโ‚– are unchanged when Qโ‚€ is replaced by Q(xฬ„), xฬ„ โˆˆ G

Proved
ExactSDPDuality.ELSD.translation_invariance

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 and xห‰โˆˆG={xโˆฃQ(x)โชฐ0}\bar x\in G = \{x\mid Q(x)\succeq 0\}xห‰โˆˆG={xโˆฃQ(x)โชฐ0}. Translating the primal by xห‰\bar xxห‰ replaces Q0Q_0Q0โ€‹ by Q(xห‰)=Q0โˆ’โˆ‘ixห‰iQiQ(\bar x) = Q_0 - \sum_i\bar x_iQ_iQ(xห‰)=Q0โ€‹โˆ’โˆ‘iโ€‹xห‰iโ€‹Qiโ€‹ and leaves Q1,โ€ฆ,QmQ_1,\dots,Q_mQ1โ€‹,โ€ฆ,Qmโ€‹ unchanged. For every kkk, the sets

Ck,Uk,Wk\mathcal C_k,\qquad \mathcal U_k,\qquad \mathcal W_kCkโ€‹,Ukโ€‹,Wkโ€‹

built from the data (Q(xห‰),Q1,โ€ฆ,Qm)(Q(\bar x), Q_1,\dots,Q_m)(Q(xห‰),Q1โ€‹,โ€ฆ,Qmโ€‹) coincide with those built from (Q0,Q1,โ€ฆ,Qm)(Q_0, Q_1,\dots,Q_m)(Q0โ€‹,Q1โ€‹,โ€ฆ,Qmโ€‹).

This is the reduction that lets the proof of the Duality Theorem assume that the origin is primal feasible.

Preamble
import Mathlib
import Definitions.Def_ExactSDPDuality_ELSD_Model

open Matrix
Formal statement
namespace ExactSDPDuality.ELSD

/-- Translation invariance (Ramana 1997, ยง2.5, p. 150): for `xฬ„ โˆˆ G`, the sets `๐’žโ‚–`, `๐’ฐโ‚–` and
`๐’ฒโ‚–` built from the data `(Q(xฬ„), Qโ‚, โ€ฆ, Qโ‚˜)` coincide with those built from
`(Qโ‚€, Qโ‚, โ€ฆ, Qโ‚˜)`, for every `k`. -/
theorem translation_invariance {n m : โ„•} (Q0 : Matrix (Fin n) (Fin n) โ„)
    (Q : Fin m โ†’ Matrix (Fin n) (Fin n) โ„)
    (hQ0 : Q0.IsSymm) (hQ : โˆ€ i, (Q i).IsSymm)
    (xbar : Fin m โ†’ โ„) (hx : xbar โˆˆ feasibleSet Q0 Q) (k : โ„•) :
    (โˆ€ U W : โ„• โ†’ Matrix (Fin n) (Fin n) โ„,
        IsCSeq (Qaff Q0 Q xbar) Q k U W โ†” IsCSeq Q0 Q k U W) โˆง
      Uset (Qaff Q0 Q xbar) Q k = Uset Q0 Q k โˆง
      Wset (Qaff Q0 Q xbar) Q k = Wset Q0 Q k := by sorry

end ExactSDPDuality.ELSD
Source
Ramana, An exact duality theory for semidefinite programming and its complexity implications, Math. Program. 77 (1997), p. 150, ยง2.5, last paragraph
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. 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_ix_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โ€‹).

Chains with a general constant matrix. For any matrix PPP in place of Q0Q_0Q0โ€‹, call a pair of real matrix sequences (Ui)iโ‰ฅ0,(Wi)iโ‰ฅ0(U_i)_{i\ge0},(W_i)_{i\ge0}(Uiโ€‹)iโ‰ฅ0โ€‹,(Wiโ€‹)iโ‰ฅ0โ€‹ a (P,k)(P,k)(P,k)-chain if U0=W0=0U_0=W_0=0U0โ€‹=W0โ€‹=0 and, for 1โ‰คiโ‰คk1\le i\le k1โ‰คiโ‰คk,

Pโˆ™(Ui+Wiโˆ’1)=0,Qโˆ—(Ui+Wiโˆ’1)=0,Uiโˆ’WiWiโŠคโชฐ0.P\bullet(U_i+W_{i-1})=0,\qquad Q^*(U_i+W_{i-1})=0,\qquad U_i-W_iW_i^\top\succeq0 .Pโˆ™(Uiโ€‹+Wiโˆ’1โ€‹)=0,Qโˆ—(Uiโ€‹+Wiโˆ’1โ€‹)=0,Uiโ€‹โˆ’Wiโ€‹WiโŠคโ€‹โชฐ0.

Let Uk(P)\mathcal U_k(P)Ukโ€‹(P) and Wk(P)\mathcal W_k(P)Wkโ€‹(P) be the sets of all UkU_kUkโ€‹ and all WkW_kWkโ€‹ over (P,k)(P,k)(P,k)-chains.

The statement. Let xห‰โˆˆG\bar x\in Gxห‰โˆˆG and kโˆˆNk\in\mathbb NkโˆˆN. There is no bound relating kkk to mmm. Then:

  1. For every pair of sequences (Ui),(Wi)(U_i),(W_i)(Uiโ€‹),(Wiโ€‹): it is a (Q(xห‰),k)(Q(\bar x),k)(Q(xห‰),k)-chain if and only if it is a (Q0,k)(Q_0,k)(Q0โ€‹,k)-chain.
  2. Uk(Q(xห‰))=Uk(Q0)\mathcal U_k(Q(\bar x))=\mathcal U_k(Q_0)Ukโ€‹(Q(xห‰))=Ukโ€‹(Q0โ€‹).
  3. Wk(Q(xห‰))=Wk(Q0)\mathcal W_k(Q(\bar x))=\mathcal W_k(Q_0)Wkโ€‹(Q(xห‰))=Wkโ€‹(Q0โ€‹).

The matrices Q1,โ€ฆ,QmQ_1,\dots,Q_mQ1โ€‹,โ€ฆ,Qmโ€‹, and hence Qโˆ—Q^*Qโˆ—, are the same on both sides.

Degenerate cases. If G=โˆ…G=\varnothingG=โˆ… the statement is vacuous. For k=0k=0k=0 both chain conditions reduce to U0=W0=0U_0=W_0=0U0โ€‹=W0โ€‹=0, and all sets are {0}\{0\}{0}.

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