For a real symmetric matrix , set . Then
For sufficiency, factor . Its contribution is a sum of squares of linear combinations of , while the contribution of is . For necessity, use a homogeneous sum of squares representation and sign averaging of a sum of squares. Writing each quadratic summand with coefficients gives , and for . Comparing coefficients gives .
This is the basic semidefinite programming certificate of copositivity discussed in Parrilo's paper on matrix copositivity.
Vector coloring 2026-10-05
A vector -coloring, for , assigns a unit vector to each vertex of a graph, such that on every edge. A graph colouring with colors gives a vector -coloring by placing the colors at the vertices of a regular simplex. The Gram matrix of these vectors allows semidefinite programming to search for such a representation.