% Section 4. Theorem A, quaternionic family, part two: the spin-chain identity and the positivity of G(T). \section{The spin-chain identity}\label{sec:spin} This section proves parts (iii) and (iv) of \cref{thm:AQ}: the periodic Temperley--Lieb Gram matrix is, up to the sign $(-1)^{d/2}$, the Gram matrix of explicit vectors in $(\C^2)^{\otimes d}$, and it is positive definite on the Ramanujan interval. The proof is elementary but not short; its heart is a parity computation along the loops of the diagram $D(a,b)$, for which we use the theorem of turning tangents. \subsection{Twisted singlet link vectors}\label{ss:spin-vectors} Let $d$ be even and let $\mathcal B_d$ be the set of periodic semi-meanders with $d$ nodes and $d/2$ arcs (\cref{ss:go-cycles}). We number the nodes $0,1,\dots,d-1$ around the circle and draw the cylinder as the strip $\R\times[-1,1]$ modulo the translation $\tau\colon(x,y)\mapsto(x+d,y)$, with the nodes at the points $(i,0)$, $i\in\Z$, and the \emph{seam} at $x=d-\tfrac12$. Every arc of a semi-meander $a$ joins two nodes; we orient it from its \emph{left end} $i$ to its \emph{right end} $j\equiv i+s\pmod d$, where $00$ of the strip and the arcs of $b$, reflected, in the lower half $y<0$, we obtain the diagram $D(a,b)$. Following arcs alternately from $a$ and from $b$ decomposes the set of nodes into cycles; each cycle, with its arcs, is a closed curve on the cylinder, a \emph{loop} of $D(a,b)$. A loop through $2k$ nodes contains $k$ arcs of $a$ and $k$ arcs of $b$. \begin{lemma}\label{lem:spin-factor} Let $\ell_1,\dots,\ell_m$ be the loops of $D(a,b)$. Then \[ \langle v_a(z),v_b(z)\rangle=\prod_{r=1}^m c_{\ell_r},\qquad c_\ell=\sum_{\sigma}\ \prod_{\alpha\in a\cap\ell}\overline{w_\alpha(\sigma)}\prod_{\beta\in b\cap\ell}w_\beta(\sigma), \] where, for a loop $\ell$, the sum runs over the two spin configurations of the nodes of $\ell$ that alternate along $\ell$, and $w_\alpha(\sigma)$ is the coefficient of $\sigma|_\alpha$ in $w_\alpha$. \end{lemma} \begin{proof} By definition $\langle v_a,v_b\rangle=\sum_\sigma\overline{\langle\sigma,v_a\rangle}\langle\sigma,v_b\rangle$, and $\langle\sigma,v_a\rangle=\prod_{\alpha\in a}w_\alpha(\sigma|_\alpha)$. The summand is nonzero only if $\sigma$ takes opposite values at the ends of every arc of $a$ and of $b$. Along a loop the arcs of $a$ and $b$ alternate, so such a $\sigma$ alternates along each loop; since a loop has an even number $2k$ of nodes there are exactly two alternating configurations on each loop, and these choices are independent from loop to loop. The product over arcs then splits as a product over loops. \end{proof} \subsection{The sign of a loop}\label{ss:spin-sign} Let $\ell$ be a loop through $2k$ nodes. Choose a starting node and a direction, and list the nodes of $\ell$ as $x_0,x_1,\dots,x_{2k-1}$ in order of traversal, so that the edge $e_t$ joining $x_t$ to $x_{t+1}$ (indices modulo $2k$) is an arc of $a$ for $t$ even and an arc of $b$ for $t$ odd. The traversal of $e_t$ is \emph{rightward} if $x_t$ is the left end of the arc $e_t$ and \emph{leftward} otherwise. Let $L_a$ be the number of arcs of $a$ in $\ell$ traversed leftward and $R_b$ the number of arcs of $b$ in $\ell$ traversed rightward. \begin{lemma}\label{lem:spin-parity} For the configuration $\sigma^+$ with $\sigma^+(x_t)=\uparrow$ for $t$ even and $\downarrow$ for $t$ odd, the product of the signs of the coefficients in $c_\ell$ is $(-1)^{L_a+R_b}$, and the same holds for the other configuration $\sigma^-$. \end{lemma} \begin{proof} The coefficient of $w_\alpha$ at a configuration of its two ends has sign $+1$ when the left end carries $\uparrow$ and $-1$ when it carries $\downarrow$; complex conjugation does not change signs. For $t$ even, $\sigma^+(x_t)=\uparrow$: if the traversal is rightward, $x_t$ is the left end and the sign is $+1$; if leftward, the left end is $x_{t+1}$, which carries $\downarrow$, and the sign is $-1$. For $t$ odd, $\sigma^+(x_t)=\downarrow$: a rightward traversal gives $-1$ and a leftward traversal $+1$. Hence the product is $(-1)^{L_a+R_b}$. Exchanging $\sigma^+$ and $\sigma^-$ changes the sign of each of the $2k$ factors, which leaves the product unchanged. \end{proof} The parity of $L_a+R_b$ is a topological invariant of the loop, which we now compute. \subsection{Turning numbers on the flat cylinder}\label{ss:spin-turning} We realise $D(a,b)$ geometrically. On the universal cover $\R^2$ of the strip, place the nodes at the points $(i,0)$, $i\in\Z$, and draw each arc of $a$ joining nodes $i0$, and the quadratic factors $T^2+4T+10$ and $2T^2+T+12$ have negative discriminants; the coefficients of $q_4$ are $1$, negative, positive, negative, positive, because $T^3+4T^2+12T+40>0$, and the quartic factors $4T^4-7T^3+18T^2-89T+194$ and $T^4-10T^3+76T^2-128T+124$ have no real root in $(-2,2)$ and are positive at $T=0$. The same holds for the factors at $-T$. Hence every root of $\chi$ is positive, and $-G(T)\succ0$ for $\abs T<2$. The factorisation and the absence of roots of the coefficients in $(-2,2)$ were verified by exact computation (\cref{app:computations}). \subsection{Outside the Ramanujan interval}\label{ss:spin-beyond} For $\abs T>2$ the matrix $G(T)$ is no longer a Gram matrix of the form \eqref{eq:spin}: the twist $z$ with $z+z^{-1}=T$ is real and different from $\pm1$, and the form $\langle\,,\rangle$ twisted by $z$ is not the restriction of a positive form. For $d=4$ the determinant $-(T^2-4)^5$ is negative for $\abs T>2$, so the form is indefinite; its signature is $(3,3)$ (\cref{ex:d4}). For $d\le10$ the signature is $(\tfrac12\binom d{d/2},\tfrac12\binom d{d/2})$ for every $\abs T>2$, by an exact computation and the constancy of inertia (\cref{thm:bey}); we do not prove the general case. It is not needed for the Hodge-type conjecture, because the Ramanujan bound puts $T_\pi$ in $[-2,2]$, but it shows that on these classes the Hodge-type conjecture and the Ramanujan conjecture stand or fall together. \begin{remark}\label{rem:spin-endpoints} At the endpoints $T=\pm2$, that is $z=\pm1$, the vectors $v_a(\pm1)$ are linearly dependent for $d\ge2$ and $(-1)^{d/2}G(\pm2)$ is positive semidefinite and singular; this is the degenerate case $\alpha_\pi=\pm\beta_\pi$ excluded by \Gen, in which Tian and Xiao observe that the Goren--Oort cycles span only part of the Tate classes \cite[\S4.5]{TianXiao2019}. \end{remark}