Copositive Matrices and Polynomial-Size Integer Witnesses #
A symmetric integer or rational matrix M is copositive if x ⬝ᵥ M *ᵥ x ≥ 0 for all
entrywise nonnegative vectors x. By minimizing the quadratic form x ⬝ᵥ M *ᵥ x over the
compact standard simplex (Convexity.StdSimplex), KKT stationarity forces M *ᵥ x* to be
constant and strictly negative on the support of any negative minimizer x*. Applying
Matrix.exists_int_nonneg_mulVec_eq to the principal submatrix on that support produces a
nonnegative integer vector p with p ⬝ᵥ M *ᵥ p < 0 whose entries are singly exponentially
bounded in the dimension and entry bit-length, hence of polynomial bit-length.
As a consequence, copositivity over ℝ, ℚ, and ℕ coincides for symmetric rational matrices.
[MK87] is cited at paper level from bibliographic metadata only without inspecting
the published text; the KKT + Matrix.exists_int_nonneg_mulVec_eq proof and the explicit witness
bound Nat.factorial (Fintype.card V) * (Fintype.card V * (max B 1) ^ 2 + 1) ^ Fintype.card V
are original to this library.
Main definitions #
Matrix.IsCopositive: entrywise nonnegative vectors have nonnegative quadratic form.
Main results #
Matrix.dotProduct_add_smul_symm: expansion ofx ⬝ᵥ M *ᵥ xalongx + t • dfor symmetric matrices.Matrix.dotProduct_submatrix_equiv,Matrix.IsCopositive.submatrix_equiv_iff: quadratic form and copositivity invariance under simultaneous row-and-column equivalence reindexing.Matrix.exists_nonneg_dotProduct_lt_zero_iff_stdSimplex: non-copositivity is witnessed onConvexity.StdSimplex.Matrix.dotProduct_scale_of_eq,Matrix.intCast_dotProduct_mulVec_nat,Rat.clearDenom_entry: quadratic form scaling and rational denominator clearing.Matrix.exists_nat_dotProduct_lt_zero_of_isSymm: a non-copositive symmetric integer matrix has a bounded nonnegative integer certificatepwithp ⬝ᵥ M *ᵥ p < 0.Matrix.isCopositive_int_real_iff_nat: copositivity overℝandℕcoincide for symmetric integer matrices.Matrix.exists_nat_dotProduct_lt_zero_of_rat: rational version via a cleared common denominator.Matrix.isCopositive_rat_iff_map_real: copositivity overℚandℝcoincide for symmetric rational matrices.Matrix.isCopositive_rat_iff_nat: copositivity overℚandℕcoincide for symmetric rational matrices.
References #
- [MK87] K. G. Murty and S. N. Kabadi, Some NP-complete problems in quadratic and nonlinear programming, Mathematical Programming 39(2), 1987, 117–129 (bibliographic metadata only; the published article text is uninspected, and no internal theorem numbers are claimed).
A square matrix M over an ordered commutative semiring is copositive if x ⬝ᵥ M *ᵥ x ≥ 0
for every entrywise nonnegative vector x.
Reindexing the quadratic form of a matrix along an equivalence e : W ≃ V.
Copositivity is invariant under simultaneous row-and-column reindexing by an equivalence.
Non-copositivity over a linearly ordered field is witnessed on the standard simplex
Convexity.StdSimplex K V.
If a symmetric integer matrix M has a nonnegative real vector with negative quadratic form,
then it has a nonnegative integer vector p with p ⬝ᵥ M *ᵥ p < 0 and entries bounded by
Nat.factorial (Fintype.card V) * (Fintype.card V * (max B 1) ^ 2 + 1) ^ Fintype.card V, where
B bounds |M i j|. (The KKT + Matrix.exists_int_nonneg_mulVec_eq proof and this explicit
bound are this library's formulation, not verified against [MK87].)
Given a symmetric rational matrix M and an integer scaling (d : ℚ) * M = M_Z with 0 < d
and |M_Z i j| ≤ B, non-copositivity of M yields a nonnegative integer certificate p with
p ⬝ᵥ M *ᵥ p < 0 and entries bounded by
Nat.factorial (Fintype.card V) * (Fintype.card V * (max B 1) ^ 2 + 1) ^ Fintype.card V
(library proof and bound, not verified against [MK87]).