Theorems 1–3 and §4 (reduction): subset sum is solvable iff is not a local min of on , iff is not copositive, iff …
ProvedMurtyKabadi.Reduction.subsetSum_tfaeLet be positive integers, the data of a subset sum instance, and let be the total number of decimal digits in these data. Let be an integer and a rational number with
Let be the symmetric matrix of the quadratic form in the variables , and . The following are equivalent:
- the subset sum instance is solvable (some subset of sums to );
- is not a local minimum of on (Problem 1);
- is not bounded below on (Problem 2);
- there is with (Problem 3);
- is not copositive;
- there is with and (Problem 4 with );
- is not a local minimum of on (Problem 11);
- is not bounded below on (Problem 12).
This is the mathematical content of the paper's Theorems 1–3 and §4: the explicit map from to is a reduction from subset sum to each of these questions, so each of them is NP-hard; in particular deciding whether a feasible point of a quadratic program is a local minimum, and deciding copositivity, are NP-hard.
Formalization Note Only the correctness of the reduction is formalized. Not formalized: membership in NP (Lemma 1), the polynomial-time computability of from the data, the encoding size of , and the NP-completeness of subset sum (cited in the paper from Garey–Johnson). has rational entries ( is rational and need not be an integer); a positive integer multiple of it is the integer matrix of Theorem 3, has the same answer to every question in the list, and this rescaling is not formalized. The paper's §3 standing assumption " is not PSD" is not imposed ( can be PSD, e.g. , , ), and the equivalence holds without it. The bound on is written in ; counts decimal digits. For all eight statements are false, so no hypothesis is needed.
import Mathlib import Definitions.Def_MurtyKabadi_Reduction_QuadraticProblems import Definitions.Def_MurtyKabadi_Reduction_SubsetSum import Definitions.Def_MurtyKabadi_Reduction_Construction
namespace MurtyKabadi.Reduction
theorem subsetSum_tfae {n : ℕ} (d : Fin n → ℕ) (d0 δ : ℕ) (ε : ℚ)
(hd : ∀ j, 0 < d j) (hd0 : 0 < d0)
(hδ : 4 * (d0 * ∑ j, d j) ^ 2 * n ^ 3 < δ)
(hε0 : 0 < ε) (hε : ε * (2 : ℚ) ^ (n * digitCount d d0 ^ 2) < 1) :
List.TFAE
[SubsetSumSolvable d d0,
Problem1 (mkMatrix d d0 δ ε),
Problem2 (mkMatrix d d0 δ ε),
Problem3 (mkMatrix d d0 δ ε),
¬ Copositive (mkMatrix d d0 δ ε),
Problem4 (mkMatrix d d0 δ ε) n,
Problem11 (mkMatrix d d0 δ ε),
Problem12 (mkMatrix d d0 δ ε)] := by sorry
end MurtyKabadi.Reduction
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.