Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 1, p. 125 — Problem 9 is a special case of Problem 4

Proved
MurtyKabadi.Reduction.problem9_special_case_problem4

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

copositive-matrixp2o-batch-p200ap2o-gran-per-chapterp2o-plan-paperp2o-v1quadratic-programming

Let d0;d1,…,dnd_0; d_1, \dots, d_nd0​;d1​,…,dn​, δ\deltaδ and ε\varepsilonε be any data of the reduction and let MMM be the symmetric 2n×2n2n \times 2n2n×2n matrix of f5f_5f5​. Then:

  1. for all y,s∈Rny, s \in \mathbb R^ny,s∈Rn, with x=(y,s)∈R2nx = (y, s) \in \mathbb R^{2n}x=(y,s)∈R2n,
f5(y,s)=xTMx;f_5(y, s) = x^{\mathsf T} M x;f5​(y,s)=xTMx;
  1. there is (y,s)∈P(y,s) \in P(y,s)∈P with f5(y,s)<0f_5(y,s) < 0f5​(y,s)<0 if and only if Problem 4 for MMM with a0=na_0 = na0​=n has answer "yes", that is, there is x≥0x \ge 0x≥0 in R2n\mathbb R^{2n}R2n with eTx=ne^{\mathsf T}x = neTx=n and xTMx<0x^{\mathsf T}Mx < 0xTMx<0.

This identifies the output of the reduction: the subset sum instance has been turned into an instance (M,a0=n)(M, a_0 = n)(M,a0​=n) of Problem 4.

Formalization Note The coordinates of xxx are indexed by Fin n ⊕ Fin n, with x=x = x= Sum.elim y s; then eTx=∑j(yj+sj)e^{\mathsf T}x = \sum_j (y_j + s_j)eTx=∑j​(yj​+sj​). No hypothesis on the data is needed.

Preamble
import Mathlib
import Definitions.Def_MurtyKabadi_Reduction_QuadraticProblems
import Definitions.Def_MurtyKabadi_Reduction_Construction
Formal statement
namespace MurtyKabadi.Reduction

theorem problem9_special_case_problem4 {n : ℕ} (d : Fin n → ℕ) (d0 δ : ℕ) (ε : ℚ) :
    (∀ y s : Fin n → ℝ, f5 d d0 δ ε y s = Q (mkMatrix d d0 δ ε) (Sum.elim y s)) ∧
    ((∃ p ∈ P n, f5 d d0 δ ε p.1 p.2 < 0) ↔ Problem4 (mkMatrix d d0 δ ε) n) := by sorry

end MurtyKabadi.Reduction
Source
Murty and Kabadi, Some NP-complete problems in quadratic and nonlinear programming, Math. Programming 39 (1987), p. 125, proof of Theorem 1, third paragraph (Problem 9 is a special case of Problem 4)
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