The Motzkin–Straus theorem #
For a finite simple graph G on a nonempty vertex type V with clique number ω(G), the
maximum of the quadratic form x ⬝ᵥ G.adjMatrix K *ᵥ x over the standard simplex
Convexity.StdSimplex K V equals 1 - 1 / ω(G) (note that [MS65] sums over
unordered edges ∑_{ij ∈ E} x_i x_j = (1 / 2) * (x ⬝ᵥ G.adjMatrix K *ᵥ x), differing by a factor
of 2). This generalizes the real Motzkin–Straus theorem (attributed to [MS65], cited
from bibliographic metadata only without inspecting the published text) to any linearly ordered
field K (including ℚ and ℝ); the K-generalization and the
SimpleGraph.copositiveCliqueMatrix packaging below are original formulations of this library:
- Upper bound (
SimpleGraph.quadraticForm_adjMatrix_le_stdSimplex): by strong induction on the support size ofx : Convexity.StdSimplex K V. Whenever two distinct verticesu, vin the support ofxare nonadjacent, shifting weight alonge_u - e_vchangesx ⬝ᵥ G.adjMatrix K *ᵥ xlinearly; moving all weight ofvontouor vice versa strictly shrinks the support without decreasing the quadratic form. Once the support is a cliqueS, Cauchy–Schwarz givesx ⬝ᵥ G.adjMatrix K *ᵥ x = 1 - ∑ v ∈ S, x v ^ 2 ≤ 1 - 1 / #S ≤ 1 - 1 / ω(G). - Attainment (
SimpleGraph.exists_stdSimplex_quadraticForm_adjMatrix_eq_of_isNClique): the uniform distribution on a maximum clique achieves1 - 1 / ω(G).
We also record the integer matrix SimpleGraph.copositiveCliqueMatrix G k with entries -1 on
edges and k - 2 on non-edges and the diagonal, which is non-copositive iff k ≤ G.cliqueNum
(SimpleGraph.exists_nonneg_dotProduct_copositiveCliqueMatrix_lt_zero_iff) for k ≥ 2 on a
nonempty finite graph.
Main definitions #
SimpleGraph.copositiveCliqueMatrix: the integer symmetric matrix(k - 2) J - (k - 1) A_G.
Main results #
SimpleGraph.quadraticForm_adjMatrix_le_stdSimplex: Motzkin–Straus upper bound over any linearly ordered field.SimpleGraph.isGreatest_quadraticForm_adjMatrix: Motzkin–Straus identitymax_{x : StdSimplex K V} xᵀ A_G x = 1 - 1 / ω(G)over any linearly ordered field.SimpleGraph.sSup_quadraticForm_adjMatrix: the realsSupform.SimpleGraph.exists_nonneg_dotProduct_copositiveCliqueMatrix_lt_zero_iff: non-copositivity ofcopositiveCliqueMatrix G kcharacterizesk ≤ G.cliqueNumfor2 ≤ k.
References #
- T. S. Motzkin, E. G. Straus, Maxima for graphs and a new proof of a theorem of Turán, Canadian Journal of Mathematics 17 (1965), 533–540 (bibliographic metadata only; the published article text is uninspected, and no internal theorem numbers are claimed).
Motzkin–Straus upper bound: on Convexity.StdSimplex K V, x ⬝ᵥ G.adjMatrix K *ᵥ x
is at most 1 - 1 / G.cliqueNum (library generalization over arbitrary linearly ordered fields K;
[MS65] was not inspected directly).
The uniform weight vector on a k-clique (1 ≤ k) gives a point of
Convexity.StdSimplex K V achieving 1 - 1 / k.
The Motzkin–Straus theorem (library generalization to arbitrary linearly ordered fields K;
[MS65] is cited at paper level without inspecting the published text): on a nonempty
finite graph, the maximum of x ⬝ᵥ G.adjMatrix K *ᵥ x over Convexity.StdSimplex K V equals
1 - 1 / G.cliqueNum. Note that [MS65] maximizes
∑_{ij ∈ E} x_i x_j = (1 / 2) * (x ⬝ᵥ G.adjMatrix K *ᵥ x), giving (1 / 2) * (1 - 1 / ω(G))
(differing by a factor of 2).
The Motzkin–Straus theorem over ℝ in sSup form (attributed to [MS65];
the published text is uninspected, and [MS65] includes a factor of 1 / 2 from
summing over unordered edges).
Copositive matrix characterization of the clique number #
The symmetric integer matrix (k - 2) J - (k - 1) A_G (library packaging for the clique
reduction): entries are -1 on edges of G and k - 2 on non-edges and the diagonal. For
k ≥ 2 on a nonempty finite graph, this matrix fails to be copositive iff G has a k-clique.
On any vector, x ⬝ᵥ M *ᵥ x = (k - 2) * (∑ x_v)^2 - (k - 1) * (x ⬝ᵥ A_G *ᵥ x).
For k ≥ 2 on a nonempty finite graph, copositiveCliqueMatrix G k is non-copositive iff
G has a clique of size k.