Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2.10 — CGC_GCG​ has a nonzero complex solution iff GGG is 3-colorable

Proved
TensorNP.Eigen.lemma_2_10

by mikedeng1 · Oct 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

graph-coloringp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1quadratic-feasibilityroots-of-unity

Let G=(V,E)G=(V,E)G=(V,E) be a simple graph with vertices 1,…,v1,\dots,v1,…,v, and let CGC_GCG​ be its color encoding (Definition 2.9): the 4v4v4v quadratic polynomials

xiyi−z2,yiz−xi2,xiz−yi2,∑j:{i,j}∈E(xi2+xixj+xj2),i=1,…,v,x_iy_i-z^2,\quad y_iz-x_i^2,\quad x_iz-y_i^2,\quad \sum_{j:\{i,j\}\in E}(x_i^2+x_ix_j+x_j^2),\qquad i=1,\dots,v,xi​yi​−z2,yi​z−xi2​,xi​z−yi2​,j:{i,j}∈E∑​(xi2​+xi​xj​+xj2​),i=1,…,v,

in the 2v+12v+12v+1 unknowns x1,…,xv,y1,…,yv,zx_1,\dots,x_v,y_1,\dots,y_v,zx1​,…,xv​,y1​,…,yv​,z. Then the polynomials of CGC_GCG​ have a common zero 0≠(x1,…,xv,y1,…,yv,z)∈C2v+1\mathbf 0\ne(x_1,\dots,x_v,y_1,\dots,y_v,z)\in\mathbb C^{2v+1}0=(x1​,…,xv​,y1​,…,yv​,z)∈C2v+1 if and only if GGG is 3-colorable.

This is the algebraic heart of the reduction: a proper 3-coloring corresponds to assigning cube roots of unity to the vertices.

Formalization Note Each polynomial is a rational matrix MMM evaluated as w⊤Mw\mathbf w^\top M\mathbf ww⊤Mw after casting to C\mathbb CC. For v=0v=0v=0 the system has no equations and the single unknown zzz, and both sides hold.

Preamble
import Mathlib
import Definitions.Def_TensorNP_Eigen_Construction
Formal statement
namespace TensorNP.Eigen

open Matrix

/-- Lemma 2.10: the color encoding `C_G` of a simple graph `G` on `v` vertices has a nonzero
complex solution `w ∈ ℂ^{2v+1}` if and only if `G` is 3-colorable. -/
theorem lemma_2_10 {v : ℕ} (G : SimpleGraph (Fin v)) :
    QuadSolvable (castMatrices ℂ (colorEncoding G)) ↔ G.Colorable 3 := by sorry

end TensorNP.Eigen
Source
Hillar & Lim, Most Tensor Problems Are NP-Hard, J. ACM 60(6) (2013), Art. 45 (final version, arXiv:0911.1393v5), p. 0:14, Lemma 2.10 (proof pp. 0:14–0:15)
Human review
  • Endorsed by Shuze Chen · Oct 8, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 8, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me