- Boxes
- definitions
- Ellipses
- theorems and lemmas
- Blue border
- the statement of this result is ready to be formalized; all prerequisites are done
- Orange border
- the statement of this result is not ready to be formalized; the blueprint needs more work
- Blue background
- the proof of this result is ready to be formalized; all prerequisites are done
- Green border
- the statement of this result is formalized
- Green background
- the proof of this result is formalized
- Dark green background
- the proof of this result and all its ancestors are formalized
- Dark green border
- this is in Mathlib
For a subring \(R\subseteq {\mathbb {R}}\) with \(2H\) over \(R\), let \(\ell _R(H)\in \mathbb {N}\cup \{ \infty \} \) be the least \(r\) such that \(P_H\) is a sum of \(r\) squares of bilinear forms with coefficients in \(R\). For a graph \(G\) write \(\ell _R(G)=\ell _R(\tfrac 12 A_G)\).
The defect \(d_K(H)\) is the least rank of \(I-T^{\top }T\) over \(T\in K^{n\times n}\) with \({\operatorname {sym}}T=H\) and \(T^{\top }T\le I\).
For \(a=\pm 1\) and \(H=aI+bJ\) with \(c=a+nb\in [-1,1]\), the matrix \(T\) is forced to be \(a\) on \(e^{\perp }\) and \(c\) on \(e\). So \(\ell _{\mathbb {Q}}(H)=n+\tau (n(1-c^2))\), with \(\tau (0)=0\). This is the case \(m=1\), \(q=\langle n\rangle \), of Theorem 6.2. For \(n=4\), \(a=1\), \(b=-\frac18\) this gives \(c=\frac12\) and length \(7\).
The bound \(\ell _{\mathbb {Q}}(H_5)\le 8\) has a short certificate. With \(A=\binom {I_5}{0}\) and \(B=C/4\), where
one checks \(C^{\top }C=16I\) and that the top \(5\times 5\) block \(C_0\) has \(C_0+C_0^{\top }=2(J-I)\). The last three rows of \(C\) have rank two, so the Gram matrix of the columns of \((A\ B)\) has rank \(7\).
For prescribed rational weights Theorem 5.1 decides length \(n\). If the support is connected, the weights are positive and \(\rho (H){\lt}1\), then length \(n\) is impossible: the Perron eigenvalue is interior and simple. For a star with \(k\) leaves and positive rational weights \(w_i\) in \(H\), the eigenvalues are \(\pm \| w\| \) and \(0\) with multiplicity \(k-1\). So \(\ell _{\mathbb {Q}}(H)=n\) exactly when \(\| w\| =1\) and \(k\) is odd: the centre is swapped with the unit vector \(w\), and its complement in \({\mathbb {Q}}^k\) is \(I_{k-1}\) by cancellation, with quarter turns on pairs.
A spectral bound follows from Theorem 5.1. On each interior component extract planes until the rest is anisotropic over the totally imaginary field \(L_p\), of dimension at most \(4\) over \(F_p\) since \(u(L_p)=4\): a form of dimension \(5\) over \(L_p\) is isotropic at every non-archimedean completion, where the \(u\)-invariant is \(4\), and \(L_p\) has no real places, so it is isotropic by Hasse–Minkowski [ 26 ] . Take the rotation on the planes and \(T=H\) on the rest. A positive rational form of dimension \(b{\gt}0\) embeds in \(I_{b+3}\) by Lemma 6.1, so \(\ell _{\mathbb {Q}}(H)\le n+4\sum _p\deg p+3\), the sum over the interior factors of the characteristic polynomial. For \(n\ge 2\) this improves the general bound \(8n\) of [ 16 ] for these forms.
In Lewis’s Corollary [ 24 ] a form is the underlying form of a hermitian form over a quadratic extension if and only if it has even dimension \(2r\), becomes hyperbolic, and has the determinant \((-a)^r\). Here \(h\) is anisotropic, so the extraction of planes forces the determinant. Theorem 5.1 says that \(\ell _{\mathbb {Q}}(H)=n\) if and only if each \(h_p\) is the underlying form of a hermitian form over \(L_p/F\). Compare also [ 4 , Proposition 3.6 ] . The condition \(T+T^{-1}=2\lambda \) says that \(T\) has minimal polynomial \(x^2-2\lambda x+1\) over \(F_p\), so [ 4 , Corollary 9.2 ] applies on each component, and its determinant condition is the one above.
\(K_{1,4}\) and \(C_4\sqcup K_1\) have the same spectrum \(2,0,0,0,-2\) and the same real length \(6\), but \(\ell _{\mathbb {Z}}(K_{1,4})=\infty \) and \(\ell _{\mathbb {Z}}(C_4\sqcup K_1)=6\). Thus integer sums of squares separate some cospectral graphs. For \(K_{1,4}\) rational coefficients suffice: in the orthonormal basis given by a Hadamard matrix of order four divided by two, \(H\) is a swap plus three zeros, so \(\ell _{\mathbb {Q}}=6\).
Lengths_Local_Criterion.cor_bounded For \(H\) with one interior eigenvalue, of multiplicity \(m\),
So for one interior eigenvalue the excess is at most \(7\), which answers Question 1 in this case.
Real_Jump_Locale.cor_jump If \(\ell _{\mathbb {R}}(H)=n\) and \(\ell _{\mathbb {Q}}(H)\le n+1\), then \(\ell _{\mathbb {Q}}(H)=n\).
For \(n=1\) and \(H=(\lambda )\), Proposition 2.1 forces \(T=\lambda \), so \(\ell _{\mathbb {Q}}(\lambda )\) is one plus the number of rational squares needed for \(1-\lambda ^2\). For \(\lambda =\frac12\) the form is \(x_1^2+x_1x_2+x_2^2\) and \(\frac34\) needs three squares: \(\ell _{\mathbb {R}}=2\) and \(\ell _{\mathbb {Q}}=4\). For \(\lambda =\frac34\) the residue \(\frac7{16}\) needs four squares, so \(\ell _{\mathbb {Q}}=5\). In general \(T=H\) gives \(\ell _{\mathbb {Q}}(H)\le n+\ell (I-H^2)\), where \(\ell \) is the number of rational squares of linear forms needed for the positive semidefinite form \(I-H^2\).
For \(q=\langle 11,21,23,23\rangle \) and \(\lambda =\frac34\), \(L={\mathbb {Q}}(\sqrt{-7})\) and \(2\), \(23\) split. At \(23\), \(q_v=\langle 11,21\rangle \perp 23\langle 1,1\rangle \) has both residue forms anisotropic, as \(-231\equiv -1\) and \(-1\) are not squares modulo \(23\), so \(q_v\) is anisotropic of dimension \(4\) and \(d_{\mathbb {Q}}=4\). At \(2\), \(D=231\equiv 7\pmod8\), so \(-D\) is a square in \({\mathbb {Q}}_2\), and \(w_2(q)=-1\) (the symbols \((11,23)_2\) and \((23,23)_2\) are \(-1\), the others \(+1\)). The columns of
satisfy \(W^{\top }W=\operatorname {diag}(11,21,23,23)\), so for \(H=I_6-\frac14P_W\), with \(P_W\) the orthogonal projection on the column space, Theorem 3.1 gives \(\ell _{\mathbb {R}}(H)=6\), and Theorem 6.9 gives \(\ell _{\mathbb {Q}}(H)=13\). The same holds for \(\lambda =\frac78\), with \(L={\mathbb {Q}}(\sqrt{-15})\), where \(2\) and \(23\) split again.
Let \(V\subseteq {\mathbb {Q}}^5\) be spanned by \(e_1\), \((0,1,1,1,0)\) and \((0,1,-1,0,1)\), so that \(q=\langle 1,3,3\rangle \), and \(H=\frac13P_V+(I-P_V)\). Then \(\delta =\frac89\), \(L={\mathbb {Q}}(\sqrt{-2})\), and \(3\) splits in \(L\). Over \({\mathbb {Q}}_3\), \(q=\langle 1\rangle \perp 3\langle 1,1\rangle \) has both residue forms anisotropic, so it is anisotropic of dimension \(3\) and \(d_{\mathbb {Q}}(H)=3\). For \(h=5\) Theorem 6.7 leaves \(d\in \{ 3,5\} \), with \(D_3=2\) and \(D_5=1\), and \(w_3(q)=-1\). At \(3\), hyperbolicity of \((q\perp p)_{L_w}\) forces \(\epsilon _3(p)=-1\) in both cases. For \(d=3\) the complement \(b\) in \(I_5\) is binary of determinant \(2\) with \(w_3(b)=\epsilon _3(p)(2,2)_3=-1\), impossible since \(-2\) is a square in \({\mathbb {Q}}_3\) and \(b\) would be a hyperbolic plane, with \(w_3(b)=+1\); for \(d=5\) the complement is \(0\)-dimensional and needs \(+1\). For \(h=6\) and \(d=3\) the complement is ternary and both signs occur, so \(h=6\) is attained. These local signs are printed by the script tabla_local_sharpodd.py of the supplement. The procedure of Theorem 6.7 confirms \(\ell _{\mathbb {R}}(H)=6\), \(d_{\mathbb {Q}}(H)=3\) and \(\ell _{\mathbb {Q}}(H)=11\), an excess of \(6\). With \(n=4\), in \(552\) cases tried the excess was at most \(4\).
The determinant does not decide in general. Let \(H=\lambda I+(1-\lambda )vv^{\top }/|v|^2\) with \(v=(0,2,2)\) and \(\lambda =\frac58\), so \(q=v^{\perp }\), \(\det q\equiv 2\) and \(\delta \equiv 39\). Lemma 6.4 and Proposition 6.5 give \(\ell _{\mathbb {Q}}\ge 6\), while Theorem 6.7 gives \(\ell _{\mathbb {Q}}(H)=7\): the obstruction sits at the prime \(2\), which splits in \({\mathbb {Q}}(\sqrt{-39})\), through condition (2). The Springer residues of Theorem 4.1 at the primes of \({\mathbb {Q}}[t]\) also give \(7\). In \(120\) members of the family \(H=\lambda I+(\mu -\lambda )vv^{\top }/|v|^2\) with \(\mu =\pm 1\) (three of them \(H_n\), the others random with \(n\le 9\), \(v\in \{ -3,\dots ,3\} ^n\) and \(\lambda =a/b\), \(2\le b\le 8\)), the determinant bound is sharp in \(102\); in the other \(18\) the excess is \(4\) or \(5\) instead of at most \(3\), always through a split prime.
Local_Aux_Locale.aux Let \(D{\gt}0\) be rational, \(d,r\ge 0\), \(S\) a finite set of primes containing \(2\) and the primes dividing \(\delta \) and \(D\), and let signs \(\epsilon _v\in \mathcal R_v(d,D)\) with \(\epsilon _v(D,-1)_v\in \mathcal R_v(r,D)\) be given for \(v\in S\). Then they extend to signs at all primes, equal to \(1\) outside \(S\) except at most at one prime inert in \(L\), with the same two local conditions everywhere and \(\prod _v\epsilon _v=1\).
Level_Quadratic_Fields.level_one, Level_Quadratic_Fields.level_two, Level_Quadratic_Fields.level_ge3_le4, Level_Quadratic_Fields.level_four Let \(a\) be the positive squarefree integer with \(\delta \equiv a\), so \(L={\mathbb {Q}}(\sqrt{-a})\), and let \(s(L)\) be its level, the least number of squares with sum \(-1\). Then \(s(L)=1\) if \(a=1\), \(s(L)=4\) if \(a\equiv 7\pmod8\), and \(s(L)=2\) otherwise. Equivalently \(s=1,2,4\) according as \(\tau (\delta )=1\), \(\tau (\delta )\in \{ 2,3\} \), \(\tau (\delta )=4\). In \(W(L)\) the class of \(\langle 1\rangle \) has order \(2s\), and \(I_j\) is anisotropic over \(L\) for \(j\le s\).
Rational_SOS_Lengths_One_Eigenvalue.lagrange_three Let \(0\le d\le h\), \(a=\min (d,h-d)\) and \(c{\gt}0\) rational. There is a positive \(d\)-dimensional subspace of \(I_h\) with determinant \(c\) modulo squares if and only if: \(c\) is a square, when \(a=0\); \(c\) is a sum of \(h\) squares, when \(a=1\); \(c\) is a sum of three squares, when \(a=2\) and \(h=4\); and always, when \(a=2\) and \(h\ge 5\), or \(a\ge 3\).
Prop_Aux.prop_aux \(\ell _{\mathbb {Q}}(H_n)\le n+h\) if and only if there is a subspace \(p\subseteq I_h\) with \((q\perp p)_L\) hyperbolic. In that case one may take \(d_{\mathbb {Q}}(H_n)\le \dim p\).
Huckel_SOS.chain_needs_more_than_n_squares, Huckel_SOS.geometric_not_square If \(H={\operatorname {sym}}T\) with \(T\) orthogonal and \(H\) has a cyclic vector, then \(H^2=I\). In particular no path on \(n\ge 2\) vertices has \(\ell _{\mathbb {R}}=n\).
Huckel_SOS.det_pencil_square With \(M(t)=(1+t^2)I+2tH\): the cycle, \(n\ge 3\), gives \(\det M=(1-(-t)^n)^2\); the cycle with one negative bond gives \((1+(-t)^n)^2\); the path gives \(1+t^2+\dots +t^{2n}\), which is not a square for \(n\ge 1\).
Fields_Three_Quarter_I4.dilation_iff_seven, Fields_Three_Quarter_I4.no_rational_dilation, Fields_Three_Quarter_I4.real_dilation
For \(H=\frac34I_4\) we have \(\ell _{\mathbb {R}}(H)=4\), and for a subfield \(F\subseteq {\mathbb {R}}\), \(\ell _F(H)=4\) if and only if \(7\) is a sum of three squares in \(F\). So \({\mathbb {Q}}(\sqrt3)\) and \({\mathbb {Q}}(\sqrt7)\) both work, \({\mathbb {Q}}={\mathbb {Q}}(\sqrt3)\cap {\mathbb {Q}}(\sqrt7)\) does not, and there is no least such field with respect to inclusion.
Let \(p_1,\dots ,p_k\) be distinct primes and \(\lambda _j=(p_j-1)/(p_j+1)\). For \(H=\bigoplus _j\lambda _jI_2\), a field \(F\subseteq {\mathbb {R}}\) has \(\ell _F(H)=2k\) if and only if it contains all \(\sqrt{p_j}\).
For the forest \(\Gamma =4P_6\sqcup 3P_5\) on \(39\) vertices, \(\ell _{\mathbb {Q}}(\Gamma )=\ell _{\mathbb {Z}}(\Gamma )=46\), so excess \(7\) already occurs for \(H=\frac12A\).
Rational_Gap.witness_G For \(G=\operatorname {diag}(\frac14,\frac14,\frac14,\frac14,-\frac12)\): \(\ell _{\mathbb {R}}(G)=6\), \(d_{\mathbb {Q}}(G)=4\) and \(\ell _{\mathbb {Q}}(G)=12\).
Huckel_SOS.represents_iff Let \(K\subseteq {\mathbb {R}}\) be a field, \(H\) symmetric over \(K\) of size \(n\ge 1\), and \(r\ge n\). The following are equivalent:
\(\ell _K(H)\le r\);
there are \(A,B\in K^{r\times n}\) with \(A^{\top }A=B^{\top }B=I\) and \(A^{\top }B+B^{\top }A=2H\);
there is \(T\in K^{n\times n}\) with \({\operatorname {sym}}T=H\) such that \(I-T^{\top }T=D^{\top }D\) for some \(D\in K^{(r-n)\times n}\).
In particular \(\ell _K(H)=n\) if and only if \(H={\operatorname {sym}}T\) with \(T\in O_n(K)\).
Tournament_Orthogonal.bailey_craigen Let \(n-2=a^2\) and let \(S\) be the skew matrix of a doubly regular tournament on \(n\) vertices, so \(SS^{\top }=nI-J\) [ 33 , 14 ] and \(SJ=0\). Then
is rational orthogonal with \({\operatorname {sym}}T=H_n\).
Rational_SOS_Lengths_One_Eigenvalue.skew_two, Rational_SOS_Lengths_One_Eigenvalue.skew_three In the proof of Theorem 6.2, \(d=\dim W\) has the parity of \(m\), and with \(\epsilon \in \{ 0,1\} \), \(\epsilon \equiv d\pmod2\),
For \(\lambda \in (-1,1)\) rational and \(L={\mathbb {Q}}(\sqrt{\lambda ^2-1})\), \(d_{\mathbb {Q}}(\lambda I_n)\) is the dimension of the anisotropic part of \((I_n)_L\). For instance \(d_{\mathbb {Q}}(\frac34I_4)=4\).
There is a rational diagonal matrix \(H\) with interior eigenvalues and \(d_{\mathbb {Q}}(H)\ge 7\).
Let \(E_1=\langle e_1,e_2,e_3,e_4\rangle \) and \(E_2=\langle e_5,e_6,3e_7+e_8+e_9,-e_7+3e_8+e_{10}\rangle \) in \({\mathbb {Q}}^{10}\), and let \(H\) be \(\frac34\) on \(E_1\), \(\frac{57}{64}\) on \(E_2\) and \(1\) on the complement. Then \(d_{\mathbb {Q}}(H)=6\), while each component has anisotropic dimension \(4\).
Huckel_SOS.weighted_ring_identity Let \(S_a\) be the shift with \(S_ae_n=ae_1\) and \(H_a={\operatorname {sym}}S_a\), \(|a|\le 1\). Then \(M_a=(I+tS_a)^{\top }(I+tS_a)+(1-a^2)t^2e_ne_n^{\top }\), and \(\ell _{\mathbb {R}}(H_a)=n+1\) for \(|a|{\lt}1\), \(n\ge 3\), while \(\ell _{\mathbb {R}}(H_{\pm 1})=n\).
Is \(\ell _{\mathbb {Q}}(H)-n\) bounded, equivalently is \(d_{\mathbb {Q}}(H)\) bounded? For one interior eigenvalue it is at most \(7\), attained first in order \(6\) (Theorem 6.9, Proposition 6.11); for odd multiplicity it is at most \(6\), also attained (Example 6.12). In general the question is open. For the matrix \(G\) of Proposition 4.4, \(\ell _{\mathbb {Q}}(G)-5=7\), the forest of Proposition 9.5 has excess \(7\), and any bound on \(d_{\mathbb {Q}}\) is at least \(7\).
What is the rational length for two interior eigenvalues, for instance \(H=aI+bJ\) with both eigenvalues interior, or normalized strongly regular graphs? Section 6 settles one interior eigenvalue. The components interact (Proposition 4.5): for its matrix we only know \(16\le \ell _{\mathbb {Q}}\le 18\): the contraction of that proposition has a defect form of rank \(6\), with square determinant and nontrivial Hasse invariant, which embeds in \(I_8\) but not in \(I_7\).
Is there a closed form for \(d_{\mathbb {Q}}(H)\) in terms of the components \(h_p\)? The anisotropic dimensions of the \(h_p\) over \(L_p\) give bounds, but positive defect mixes components.
The condition on \(q\perp p\) is a theorem of Bayer-Fluckiger. By Milnor [ 31 ] and [ 4 , Proposition 3.6 ] , \((q\perp p)_L\) is hyperbolic exactly when \(q\perp p\) carries an isometry with minimal polynomial \(x^2-2\lambda x+1\), and by [ 4 , Theorem 9.1 and Corollary 9.2 ] this holds if and only if \(\dim (q\perp p)=2k\) is even, \(\det (q\perp p)=\delta ^k\) modulo squares, and \(q\perp p\) is hyperbolic over \({\mathbb {Q}}_v\) at every prime \(v\) that splits in \(L\); see also [ 5 , 6 ] . At the other primes there is no condition beyond the determinant, since \(L_w/{\mathbb {Q}}_v\) is quadratic and kills every quaternion class. What Theorem 6.2 adds is the constraint that \(p\) is a subform of a sum of squares, and the minimization over \(h\).
For \(H_n\), condition (2) is as weak as it can be. Here \(\det q\equiv n\) and \(w_v(q)=(n,-1)_v\), as \(q\perp \langle n\rangle \cong I_n\), and \(D_d\in \{ n,n-2\} \). If \(v\) splits in \(L={\mathbb {Q}}(\sqrt{-n(n-2)})\) then \((n,-1)_v=1\): for odd \(v\mid n\) the valuation of \(n\) is even, as \(v\nmid n-2\); for \(v=2\) the odd part of \(n\) is \(\equiv 1\pmod4\), by the square condition on \(-n(n-2)\). And \((n,-D_d)_v=1\), since \(-(n-2)\equiv n\) there. So (2) reads \(\epsilon _v=1\) at odd split primes and \(\epsilon _2=(-1,-1)_2^{k(k-1)/2}\) when \(2\) splits. This is consistent with the determinant bound being sharp for \(H_n\): the lower bounds of Theorem 7.1 are exactly the determinant bound, and Theorem 7.1 attains them for every \(n\), so the remaining sign at \(2\) never excludes a determinant-minimal candidate.
For the mere decision there is a shorter route. With \(D=\det M_H\), the complement of an embedding in \(I_{n+1}\) is a line of class \(\langle D\rangle \), so \(\ell _{\mathbb {Q}}(H)\le n+1\) if and only if \(M_H\perp \langle D\rangle \cong I_{n+1}\) over \(F\). The second residues at the factors of \(D\) are effective over number fields, and a class with zero residues is constant [ 30 , Theorem 5.3 ] , hence zero by specialization at \(t=0\). If moreover \(\ell _{\mathbb {R}}(H)=n\), then \(D\) is a square in \({\mathbb {Q}}[t]\), and cancellation gives Corollary 5.4 again. The proof below gives more: the possible characteristic polynomials of the bordered matrix, the border itself, and so explicit witnesses.
A rational rotation with \(\cos \theta =\lambda \) lives on a plane of discriminant class \(1-\lambda ^2=\sin ^2\theta \). A plane of class \(d\) needs the root \(\sqrt{d(1-\lambda ^2)}\). This is \(\sin \theta \) up to a rational factor only when \(d\) is a square: for \(\langle 1,2\rangle \) and \(\lambda =\frac12\) the root is \(\sqrt6\), not \(\sqrt3\).
With \((u,v)=(x_1,x_2)\) and \((A,B,C)=(y_1,y_2,y_3)\) the form of Theorem 9.1 is
five integer squares on a \(3\times 2\) strip. This is the display (18) of Lebedev [ 22 ] . That five such squares reduce to four real ones is the strip bound of Löfberg and Qi [ 25 , Lemma B.1 ] , and Lebedev’s formula (19) gives four explicit squares with coefficients in \({\mathbb {Q}}(\sqrt3)\). So \(\ell _{\mathbb {R}}\le 4\) is not new. Theorem 9.1 adds that \(\sqrt3\) cannot be avoided: every four-square representation has it, and over \({\mathbb {Q}}\) the five squares above are optimal. The two bounds are also checked in Lean: four real squares, and no four rational bilinear forms with nonnegative rational weights.
For rational \(H\) it is decidable whether \(\ell _{\mathbb {Q}}(H)\le n+1\). More precisely, let \(f\) be the characteristic polynomial of \(H\). There are at most two monic \(g\in {\mathbb {R}}[X]\) of degree \(n+1\) whose roots lie in \([-1,1]\), interlace those of \(f\), have even multiplicity in \((-1,1)\) and keep the multiplicities of \(\pm 1\) in \(f\) from dropping. Then \(\ell _{\mathbb {Q}}(H)\le n+1\) if and only if, for one such \(g\) with rational coefficients:
writing \(g/f=X-c-\sum _p\operatorname{Tr}_{F_p/{\mathbb {Q}}}\bigl(w_p/(X-\lambda _p)\bigr)\), each \(h_p\) represents \(w_p\) over \(F_p\), by some \(b_p\), with \(w_p=0\) for \(p=x\mp 1\);
the bordered matrix \(S=\bigl(\begin{smallmatrix} H & b \\ b^{\top } & c \end{smallmatrix}\bigr)\), \(b=\sum _pb_p\), has \(\ell _{\mathbb {Q}}(S)=n+1\).
The outcome of (2) does not depend on the choice of the \(b_p\). All steps are effective: real algebraic numbers are isolated, the rationality of the candidates is tested exactly, representations are decided by local invariants, and a representing vector is then found by enumeration.
For \(d\equiv m\pmod2\) put \(k=(m+d)/2\) and \(D_d=\det q\cdot \delta ^{k}\). Let \(S_d\) consist of \(2\) and the primes dividing \(\delta \), \(D_d\) and the entries of a diagonalization of \(q\). Then \(\ell _{\mathbb {Q}}(H)-n\) is the least \(h\le m+3\) for which there is \(d\equiv m\pmod2\) with \(0\le d\le h\) such that at every \(v\in S_d\) some sign \(\epsilon _v\) satisfies:
\(\epsilon _v\in \mathcal R_v(d,D_d)\) and \(\epsilon _v(D_d,-1)_v\in \mathcal R_v(h-d,D_d)\);
if \(v\) splits in \(L\), then \(\epsilon _v=w_v(q)\, (\det q,D_d)_v\, (-1,-1)_v^{k(k-1)/2}\).
The defect \(d_{\mathbb {Q}}(H)\) is the least \(d\le m\) for which (2) and the first condition in (1) hold; the condition on the complement, of dimension \(h-d\), is dropped. The procedure decides the two numbers; a witness needs an additional explicit embedding.
For \(H=\frac12A\) with \(G=P_2\sqcup K_1\): \(\ell _{\mathbb {R}}(G)=4\) and \(\ell _{\mathbb {Q}}(G)=5\). Every representation by four squares has \(T\) with an entry \(\pm \sqrt3/2\).
Let \(H\) be rational symmetric with spectrum in \([-1,1]\), and \(p\) a positive definite rational form, possibly zero. The following are equivalent:
there is a rational contraction \(T\) with \({\operatorname {sym}}T=H\) whose nondegenerate defect form embeds in \(p\);
\((M_H)_F\) embeds in \((I_n\perp p)_F\).
In particular \(\ell _{\mathbb {Q}}(H)=\min \{ r:(M_H)_F\hookrightarrow (I_r)_F\} \), and \(d_{\mathbb {Q}}(H)\) is the least dimension of a positive \(p\) satisfying (2).
Huckel_SOS.integer_representation_degree, IL_Formula.integer_length Let \(G\) be a finite simple graph. If \(G\) has a vertex of degree at least three, then \(\ell _{\mathbb {Z}}(G)=\infty \). Otherwise
with \(p\) the number of path components with at least two vertices and \(z\) the number of isolated vertices.
Kn_Witness.witness_H5, Kn_Witness.witness_H7, Kn_Witness.plane_in_four_squares, Kn_Witness.two_squares_over_L, Kn_Witness.quaternion_pure_norm, Kn_Witness.seven_mod_8_rat \(\ell _{\mathbb {Q}}(H_2)=2\). For odd \(n\ge 3\),
and the defect \(d_{\mathbb {Q}}(H_n)\) is \(0\) in the first case and \(2\) in the others. For even \(n\ge 4\), let \(s\) be the one of \(n,n-2\) divisible by \(4\). Then \(\ell _{\mathbb {Q}}(H_n)=n+\tau (s)\) and \(d_{\mathbb {Q}}(H_n)=1\).
Lengths_One_Core.factor_transpose, Lengths_One_Core.range_dim_parity For \(h\ge 0\), \(\ell _{\mathbb {Q}}(H)\le n+h\) if and only if some positive definite subform \(p\) of \(I_h\) makes \((q\perp p)_L\) hyperbolic. The defect \(d_{\mathbb {Q}}(H)\) is the least dimension of a positive rational form \(p\) with \((q\perp p)_L\) hyperbolic. In particular \(\ell _{\mathbb {Q}}(H)\le n+m+3\).
For rational symmetric \(H,K\) with spectrum in \([-1,1]\), with \(H\) of order \(n\),
Eight is the least integer with this property for all \(H\).
\(\ell _{\mathbb {Q}}(H)=n\) if and only if \(h_p\otimes L_p\) is hyperbolic for every \(p\neq x\mp 1\).
Huckel_SOS.blocks_orthogonal, Huckel_SOS.blocks_symmetric_part Let \(H\) have spectrum in \([-1,1]\).
\(\ell _{\mathbb {R}}(H)=n\) if every eigenvalue in \((-1,1)\) has even multiplicity, and \(\ell _{\mathbb {R}}(H)=n+1\) otherwise.
Let \(Q\in O_{n+1}({\mathbb {R}})\) with \({\operatorname {sym}}Q=\bigl(\begin{smallmatrix} H & b \\ b^{\top } & c \end{smallmatrix}\bigr)\), and let \(\lambda \in (-1,1)\) have even multiplicity \(m\) in \(H\). Then \(b\) is orthogonal to the eigenspace \(E_\lambda \), and \(Q\) preserves it.
Rational_SOS_Lengths_One_Eigenvalue.quaternion_columns Let \(\lambda \in (-1,1)\) be rational, \(\tau =\tau (1-\lambda ^2)\), and \(s=1,2,4\) according as \(\tau =1\), \(\tau \in \{ 2,3\} \), \(\tau =4\). Write \(m\equiv \rho \pmod{2s}\) with \(0\le \rho {\lt}2s\). Then
In particular \(\ell _{\mathbb {Q}}(\lambda I_{m+2s})=\ell _{\mathbb {Q}}(\lambda I_m)+2s\), \(2s\) is the least such period, and \(0\le \ell _{\mathbb {Q}}(\lambda I_m)-m\le 4\).
Lengths_Local_Criterion.sharp Let \(H\) have one interior eigenvalue \(\lambda \), of multiplicity \(4\), with eigenspace form \(q\) and \(D=\det q\) modulo squares. Then \(\ell _{\mathbb {Q}}(H)-n=7\) if and only if \(d_{\mathbb {Q}}(H)=4\) and some prime \(v\) that splits in \(L\) has \(-D\in {\mathbb {Q}}_v^{\times 2}\) and \(w_v(q)=-1\).