Motivation
Nonlinear programming algorithms are routinely advertised as finding a local minimum. Most of them only certify first-order conditions (a KKT point), and the natural next question is whether a given feasible point is in fact a local minimum. For smooth problems where the Hessian is nonsingular this is a second-order test, but in the degenerate case the test itself becomes a combinatorial question about a quadratic form restricted to a cone.
K. G. Murty and S. N. Kabadi (Math. Programming 39 (1987) 117–129) showed that this question is intractable already in its simplest instance: deciding whether x=0 is a local minimum of a quadratic form xTDx on the nonnegative orthant is NP-complete, and so is deciding whether a square integer matrix is copositive. The paper is the standard reference for the hardness of copositivity testing, which matters for copositive programming, for second-order optimality checks in constrained optimization, and for the complexity of local search in nonconvex optimization.
Setting
Let D be a real square matrix of order n and Q(x)=xTDx. The matrix D is copositive if Q(x)≥0 for every x≥0 (coordinatewise). The paper considers the quadratic program
(7)minimize Q(x)subject to x≥0,
and the following questions, each phrased so that "yes" is the interesting answer:
- Problem 1. Is x=0 not a local minimum of (7)?
- Problem 2. Is Q not bounded below on {x≥0}?
- Problem 3. Is there an x≥0 with Q(x)<0 (is D not copositive)?
- Problem 4. Given a0>0, is there an x≥0 with eTx=a0 and Q(x)<0? Here e is the all-ones vector.
- Problems 11, 12. With h(u)=(u12,…,un2)D(u12,…,un2)T, the objective of the unconstrained problem (15): is u=0 not a local minimum of h on Rn, and is h not bounded below?
The source problem is subset sum (Problem 5): given positive integers d0;d1,…,dn, is there y∈{0,1}n with ∑jdjyj=d0? Let l be the total number of digits in the data. The paper fixes an integer δ>4(d0∑jdj)2n3 and a rational ε with 0<ε<2−nl2, and defines functions of 2n nonnegative variables (y,s):
f1(y,s)=(j∑djyj−d0)2+δj∑(yj+sj−1)2+j∑yjsj,
f2=f1+2d0∑jdjyj(1−yj), a homogeneous quadratic f4 that agrees with f2 on the set
P={(y,s):y≥0, s≥0, j∑(yj+sj)=n},
and f5=f4−(ε/n2)(∑j(yj+sj))2. The function f5 is a quadratic form xTMx in x=(y,s)∈R2n; the symmetric matrix M, with entries computed explicitly from d0,d,δ,ε, is the output of the reduction.
Formalization targets
Goal: the reduction is correct
For positive integer data d0;d1,…,dn and δ,ε as above, with M the matrix of f5, the following are equivalent:
subset sum is solvable⟺P1(M)⟺P2(M)⟺P3(M)⟺M not copositive⟺P4(M,n)⟺P11(M)⟺P12(M).
This is the mathematical content of Theorems 1–3 and §4: a polynomially computable map from subset sum instances to matrices under which every one of these questions has the answer of the subset sum instance.
Milestones along the paper's chain
- Problems 5 and 6 are equivalent: subset sum is solvable iff some (y,s)∈P has f1≤0.
- Problems 6 and 7 are equivalent (f1 vs. f2 on P).
- Problems 7 and 8 are equivalent (f2 vs. f4 on P).
- Lemma 2: for an integer symmetric D of size L, the minimum of Q over [0,1]n is 0 or at most −2−L.
- Problems 8 and 9 are equivalent: ∃(y,s)∈P with f4≤0 iff ∃(y,s)∈P with f5<0.
- Problem 9 is a special case of Problem 4: f5(y,s)=xTMx, and Problem 9 is Problem 4 for (M,a0=n).
- Problems 3 and 4 are equivalent, for any D and a0>0.
- Problems 1 and 2 are equivalent to Problem 3, for any D.
- Problems 11 and 12 are equivalent to Problems 1 and 2, for any D.
Significance
The result. The equivalence shows that checking local optimality of a feasible point, checking boundedness of a quadratic objective on a cone, and checking copositivity are all at least as hard as subset sum, hence NP-hard. Through (15) the same holds for local minimality and boundedness of a quartic polynomial with no constraints at all. These facts are the standard justification for why nonconvex solvers settle for KKT points, and the copositivity part underlies the hardness of copositive programming.
The formalization. The paper's claims are proved, and have been cited for decades, but the proof as printed is a sketch: several steps are stated as "clearly" or "it can be verified", and one step of the proof of Theorem 1 (p. 125) is false as written. The inequality (δ/2)(yj+sj−1)2+2d0djyj(1−yj)≥0 for yj>1 fails for yj slightly above 1, and the pointwise implication "f2≤0⇒f1≤0 on P" has an explicit counterexample. The equivalence of Problems 6 and 7 itself survives numerical checks. A machine-checked proof of the goal settles the correctness of the reduction with the paper's own constants. No machine-checked proof of these statements exists on the platform.
Difficulty
The combinatorial direction (a subset sum solution gives a point with f5<0) is a computation. The converse direction carries the content, in two places.
First, passing from f1 to f2 trades the linear penalty for a quadratic one. This is harmless on the box 0≤y≤1 but not for yj>1, where 2d0djyj(1−yj) is negative. The printed argument handles this coordinate by coordinate and is wrong there; a correct argument has to show that no point of P with f2≤0 exists unless a point with f1≤0 does, which requires a global use of the size of δ.
Second, passing from f4≤0 to f5<0 requires a quantitative gap: if f4>0 on P then minPf4≥ε with ε of only polynomially many bits. Lemma 2 provides such a gap for the unit box and integer matrices, but P is not the box and f4 has rational coefficients, so the lemma does not apply verbatim.
The remaining equivalences (Problems 1, 2, 3, 4, 11, 12 for a fixed matrix) follow from homogeneity of the quadratic form and the substitution xj=uj2, and are routine.
Formalization scope
The data d0,dj,δ are natural numbers and ε is rational; all are cast to R in f1,…,f5 and M. The index j=1,…,n is Fin n, and the 2n variables of M are indexed by Fin n ⊕ Fin n with x= Sum.elim y s. Standing hypotheses: dj>0 and d0>0 (the paper's "all positive integers"); δ>4(d0∑jdj)2n3 in N; ε>0 and ε⋅2nl2<1 in Q. The size l counts decimal digits. Problem 1 is local minimality relative to the orthant, Problem 11 is unconstrained local minimality, both in the Euclidean topology. Lemma 2 is stated for integer symmetric D (as §4 of the paper says, "as before … symmetric"), with L Schrijver's encoding size, since the paper does not define "the size of D"; the "optimum is 0 or ≤−2−L" is stated as a disjunction without an infimum. The milestones on f2,f4,f5 over P assume n≥1, which the paper assumes tacitly; the goal needs no such hypothesis.
Not formalized: membership in NP (Lemma 1), the polynomial-time computability of M and its encoding size, the NP-completeness of subset sum (cited by the paper from Garey–Johnson), Theorem 4, and any of the words "NP-complete" or "NP-hard". The platform's complexity layer (Turing machines over bitstrings) has no subset sum problem and no encoding of rational matrices. The matrix M has rational entries; a positive integer multiple of it is the integer matrix of Theorem 3, has the same answer to every question, and the rescaling is not formalized. The §3 standing assumption "D is not PSD" is not imposed; the constructed matrix can be PSD and the equivalence holds regardless.
The goal is about the explicit matrix M, whose entries are given in the definitions; it is not about "some matrix whose quadratic form is f5", and the constants δ and ε are the paper's explicit bounds, not "sufficiently large" or "for some ε". A formalization that quantifies existentially over the matrix or the precision would be trivially true and is ruled out.
Contributions welcome: proofs of the matrix identity and the homogeneity arguments (milestones 6–9), a proof of Lemma 2 (which needs a Cramer/Hadamard bound on basic solutions of the linear complementarity system (9)), and a correct proof of the f1↔f2 step. The copositivity definitions and milestones 7–9 are reusable for any later work on copositive programming.
Selected references
- K. G. Murty and S. N. Kabadi, Some NP-complete problems in quadratic and nonlinear programming, Mathematical Programming 39 (1987) 117–129. https://doi.org/10.1007/BF02592948
- M. R. Garey and D. S. Johnson, Computers and Intractability: A Guide to the Theory of NP-Completeness, W. H. Freeman, 1979 (subset sum, problem [SP13]).
- A. Schrijver, Theory of Linear and Integer Programming, Wiley, 1986 (encoding sizes, §2.1).