Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1 — copositivity is tested on vectors with last entry 1

Proved
WassTwoStage.Copositive.lemma_1

by mikedeng1 · Oct 9, 2026 · Mathlib 0df444a (Lean v4.33.1)

copositive-programmingp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let MMM be a real symmetric K×KK\times KK×K matrix. Then MMM is copositive, i.e. ξ⊤Mξ≥0\xi^\top M\xi \ge 0ξ⊤Mξ≥0 for all ξ∈R+K\xi\in\mathbb R^K_+ξ∈R+K​, if and only if

[z⊤ 1] M [z⊤ 1]⊤≥0∀z∈R+K−1.(9)[z^\top\ 1]\, M\, [z^\top\ 1]^\top \ge 0 \qquad \forall z \in \mathbb R^{K-1}_+. \qquad (9)[z⊤ 1]M[z⊤ 1]⊤≥0∀z∈R+K−1​.(9)

This dehomogenization turns the semi-infinite constraints arising from the Lagrangian reformulation (13) into the copositive constraints of program (10).

Formalization Note The index set of MMM is Fin k ⊕ Unit, i.e. K=k+1K = k + 1K=k+1 with the last coordinate (the Unit one) set to 111; this avoids the natural-number subtraction K−1K - 1K−1. Copositivity is the platform definition MurtyKabadi.Reduction.Copositive.

Preamble
import Mathlib
import Definitions.Def_MurtyKabadi_Reduction_QuadraticProblems

open Matrix
Formal statement
namespace WassTwoStage.Copositive

/-- Lemma 1, Hanasusanto–Kuhn, arXiv:1609.07505v3, p. 8: a symmetric matrix `M ∈ 𝕊^K` is
copositive if and only if `[zᵀ 1] M [zᵀ 1]ᵀ ≥ 0` for all `z ∈ ℝ^{K−1}_+` (9). The index type
`Fin k ⊕ Unit` stands for `[K]` with `K = k + 1`; the `Unit` coordinate is the last one, set
to `1`. -/
theorem lemma_1 {k : ℕ} (Mt : Matrix (Fin k ⊕ Unit) (Fin k ⊕ Unit) ℝ) (hM : Mt.IsSymm) :
    MurtyKabadi.Reduction.Copositive Mt ↔
      ∀ z : Fin k → ℝ, 0 ≤ z →
        0 ≤ Sum.elim z (fun _ => (1 : ℝ)) ⬝ᵥ (Mt *ᵥ Sum.elim z (fun _ => (1 : ℝ))) := by sorry

end WassTwoStage.Copositive
Source
Hanasusanto, Kuhn, Conic Programming Reformulations of Two-Stage Distributionally Robust Linear Programs over Wasserstein Balls, arXiv:1609.07505v3, p. 8, Lemma 1, (9)
Human review
  • Endorsed by Shuze Chen · Oct 9, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 9, 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