Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2.7 — 2m2m2m real quadratic equations in 2n2n2n unknowns encode mmm complex ones in nnn unknowns

Proved
TensorNP.Eigen.lemma_2_7

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

p2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1quadratic-feasibilityrealification

Let A1,…,Am∈Qn×nA_1,\dots,A_m\in\mathbb Q^{n\times n}A1​,…,Am​∈Qn×n (not necessarily symmetric) and Gi(z)=z⊤AizG_i(\mathbf z)=\mathbf z^\top A_i\mathbf zGi​(z)=z⊤Ai​z. Define the 2m2m2m matrices of size 2n×2n2n\times 2n2n×2n

Bi=[Ai00−Ai],Bm+i=[0AiAi0],i=1,…,m,B_i=\begin{bmatrix}A_i&0\\0&-A_i\end{bmatrix},\qquad B_{m+i}=\begin{bmatrix}0&A_i\\A_i&0\end{bmatrix},\qquad i=1,\dots,m,Bi​=[Ai​0​0−Ai​​],Bm+i​=[0Ai​​Ai​0​],i=1,…,m,

and Hj(x)=x⊤BjxH_j(\mathbf x)=\mathbf x^\top B_j\mathbf xHj​(x)=x⊤Bj​x. Then the equations {Hj(x)=0}j=12m\{H_j(\mathbf x)=0\}_{j=1}^{2m}{Hj​(x)=0}j=12m​ have a nonzero real solution x∈R2n\mathbf x\in\mathbb R^{2n}x∈R2n if and only if the equations {Gi(z)=0}i=1m\{G_i(\mathbf z)=0\}_{i=1}^{m}{Gi​(z)=0}i=1m​ have a nonzero complex solution z∈Cn\mathbf z\in\mathbb C^nz∈Cn.

The lemma transfers complex feasibility of a quadratic system to real feasibility of a system twice the size, which is how the reduction reaches the real numbers.

Formalization Note The matrices are rational, as in Problem 2.2, and are cast to R\mathbb RR and to C\mathbb CC. The unknowns x=[u⊤,v⊤]⊤\mathbf x=[\mathbf u^\top,\mathbf v^\top]^\topx=[u⊤,v⊤]⊤ list u\mathbf uu first, and the equations list B1,…,BmB_1,\dots,B_mB1​,…,Bm​ first.

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

open Matrix

/-- Lemma 2.7: for rational `A_1, …, A_m ∈ ℚ^{n×n}`, the `2m` real equations `xᵀ B_j x = 0` with
`B_i = [A_i 0; 0 −A_i]`, `B_{m+i} = [0 A_i; A_i 0]` have a nonzero real solution `x ∈ ℝ^{2n}`
if and only if the equations `zᵀ A_i z = 0` have a nonzero complex solution `z ∈ ℂ^n`. -/
theorem lemma_2_7 {m n : ℕ} (A : Fin m → Matrix (Fin n) (Fin n) ℚ) :
    QuadSolvable (castMatrices ℝ (realSplit A)) ↔ QuadSolvable (castMatrices ℂ A) := 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.7
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