% Section 2. The main theorems, stated precisely, with their hypotheses and the classification of their inputs. \section{The main theorems}\label{sec:statements} This section states the main theorems in full. Each proof in \cref{part:main} rests on four kinds of input, and we mark them throughout: theorems of the literature, which we cite with their numbering and do not reprove (listed in \cref{app:inputs}); arguments given in full in this paper; and exact computations, reproducible from the deposited scripts (\cref{app:computations}). The linear-algebraic and finite parts are in addition verified formally (\cref{app:formal}). \subsection{Conventions on Shimura varieties and automorphic representations}\label{ss:conventions} Let $F$ be a totally real field of degree $g$, with set of real places $\Sigma_\infty$, and let $p>2$ be a prime inert in $F$; write $\pp=p\OO_F$, so that $\Nm\pp=p^g$. For a set $S$ of places of $F$ of even cardinality not containing $\pp$, let $B_S$ be the quaternion algebra over $F$ ramified exactly at $S$, let $S_\infty=S\cap\Sigma_\infty$, and let $d=g-\#S_\infty$ be the number of real places at which $B_S$ splits. Following Tian and Xiao \cite[\S2.1]{TianXiao2019} we consider the group $G_S=\Res_{F/\Q}B_S^\times$, an open compact subgroup $K=K^pK_p\subset G_S(\Af)$ with $K_p=\GL_2(\OO_{F_\pp})$, and the quaternionic Shimura variety $\Sh_K(G_S)$, of dimension $d$. When $S$ contains a finite place, $\Sh_K(G_S)$ is projective; when $K^p$ is sufficiently small it has a smooth projective model over $\Z_{(p)}$ \cite[\S2]{TianXiao2016}, and we write $X=\Sh_K(G_S)_{\Fpbar}$ for its geometric special fibre. (In the notation of \cite{TianXiao2019} this is the case $T=\emptyset$.) Let $\pi$ be a cuspidal automorphic representation of $\GL_2(\mathbb A_F)$ of parallel weight $2$ with trivial central character, unramified at $\pp$, which occurs in the cohomology of $\Sh_K(G_S)$, so that it is discrete series at the places of $\Sigma_\infty\smallsetminus S_\infty$, its Jacquet--Langlands transfer to $B_S^\times$ exists, and the $\pi$-isotypic part $H^\bullet(X,\Ql)[\pi]$ of the cohomology is nonzero; it lives in degree $d$ \cite{BrylinskiLabesse1984}. Let $\alpha_\pi,\beta_\pi$ be the eigenvalues of the Frobenius at $\pp$ on the Galois representation of $\pi$, with $\alpha_\pi\beta_\pi=p^g$, and define $T_\pi$ by \eqref{eq:intro-T}; equivalently, $T_\pi=a_\pp(\pi)/\Nm\pp^{1/2}$, where $a_\pp(\pi)$ is the eigenvalue of the Hecke operator at $\pp$. \begin{definition}\label{def:generic} The representation $\pi$ is \emph{generic at $\pp$} if $\alpha_\pi/\beta_\pi$ is not a root of unity. We refer to this condition as \Gen. \end{definition} \begin{remark}\label{rem:generic-ramanujan} The Ramanujan conjecture holds for $\pi$ \cite{Blasius2006}: $\abs{\alpha_\pi}=\abs{\beta_\pi}=p^{g/2}$, so that $T_\pi\in[-2,2]$ is real, with $T_\pi=\pm2$ exactly when $\alpha_\pi=\pm\beta_\pi$. Under \Gen{} therefore $\abs{T_\pi}<2$, and $T_\pi\neq0$ because $\alpha_\pi=-\beta_\pi$ is also excluded. The condition is weaker than it may look: if $\alpha_\pi/\beta_\pi=\zeta$ is a root of unity then $T_\pi^2=2+\zeta+\zeta^{-1}$ is an algebraic integer, so \Gen{} holds as soon as $a_\pp(\pi)^2/\Nm\pp$ is not an algebraic integer. This is how we verify it for the fourfold of \cref{thm:B} (\cref{lem:generic-integral}). \end{remark} \subsection{The quaternionic family}\label{ss:stmt-AQ} A \emph{periodic semi-meander} of $d$ nodes and $d/2$ arcs is a set of $d/2$ pairwise non-crossing arcs drawn above a circle of $d$ marked points on a cylinder, each arc joining two of the points and every point lying on exactly one arc; there are $\binom{d}{d/2}$ of them \cite[\S3.1]{TianXiao2019}. We write $\mathcal B_d$ for their set. For $a,b\in\mathcal B_d$ the diagram $D(a,b)$ is obtained by drawing $a$ above the circle and the mirror image of $b$ below it; it is a disjoint union of simple closed curves on the cylinder, $m_0(a,b)$ of them contractible and $m_T(a,b)$ winding once around the cylinder. The \emph{periodic Temperley--Lieb Gram matrix} is the $\mathcal B_d\times\mathcal B_d$ matrix \begin{equation}\label{eq:gram} G(T)_{ab}=(-2)^{m_0(a,b)}\,T^{m_T(a,b)} \end{equation} of \cite[\S3.2]{TianXiao2019}, at $\delta=-2$ in the normalisation there. For each $a\in\mathcal B_d$ Tian and Xiao construct a \emph{Goren--Oort cycle} $X_a\subset X$ of codimension $d/2$, an iterated $\PP^1$-bundle $\pi_a\colon X_a\to\Sh_a$ over the zero-dimensional Shimura variety $\Sh_a$ of the definite quaternion algebra $B_{S\cup\Sigma_\infty}$ \cite[\S3.7, Thm.~4.4(1)]{TianXiao2019}. The map \begin{equation}\label{eq:gys} \Gys_a=i_{a*}\circ\pi_a^*\colon H^0(\Sh_a,\Ql)\to H^d(X,\Ql)(d/2) \end{equation} sends a function on $\Sh_a$ to the class of the corresponding combination of fibres of $X_a$; its image consists of classes of algebraic cycles. \begin{theorem}[Theorem~A for the quaternionic family]\label{thm:AQ} Let $X$ be as in \cref{ss:conventions}, with $d$ even and $S$ containing a finite place, and let $\pi$ satisfy \Gen. \begin{enumerate}[label=\textup{(\roman*)}] \item Let $W_\pi=H^0(\Sh(B_{S\cup\Sigma_\infty}),\Ql)[\pi]$. The Tate classes of the $\pi$-part of $H^d(X,\Ql)(d/2)$ form a space of dimension $\binom{d}{d/2}\dim W_\pi$, and they are the image of the map \[ \textstyle\bigoplus_{a\in\mathcal B_d}\Gys_a\colon\bigoplus_a W_\pi\to H^d(X,\Ql)(d/2), \] which is injective. \item On this space the intersection form, read in the basis given by the $\Gys_a$, is congruent over $\R$ to a positive multiple of $(-1)^{d/2}\,G(T_\pi)\otimes\Pet$, where $\Pet$ is the counting pairing on $W_\pi$, positive definite. \item For every $\varphi\in\R$ one has $(-1)^{d/2}G(2\cos\varphi)=V_\varphi V_\varphi^*$, where $V_\varphi$ is the matrix of twisted singlet link vectors of \cref{def:spin-vector}. \item For $\abs{T}<2$ the matrix $(-1)^{d/2}G(T)$ is positive definite. \end{enumerate} Consequently the Hodge-type standard conjecture holds on the Tate classes of the $\pi$-part of $H^d(X)(d/2)$, for every ample class. \end{theorem} \lean{RamanujanHodge.G4_posDef,RamanujanHodge.posDef_of_gauge,RamanujanHodge.posDef_of_gram_det,SpinCert.spin_gram_g4,SpinCert.spin_gram_g6} \begin{table}[ht] \caption{The proof of \cref{thm:AQ}: steps and inputs.}\label{tab:AQ} \small \begin{tabular}{@{}l>{\raggedright\arraybackslash}p{.52\textwidth}>{\raggedright\arraybackslash}p{.3\textwidth}@{}} \toprule Step & Content & Input \\ \midrule A1 & The Goren--Oort cycles span the Tate part & \cite[Thm.~4.4(2$'$), Prop.~2.25]{TianXiao2019} \\ A2 & $\langle\Gys_af,\Gys_bh\rangle=\Pet(f,\Res_a\Gys_bh)$ & projection formula (\cref{lem:adjoint}) \\ A3 & The formula for $\Res_a\circ\Gys_b$ & \cite[Thm.~4.3(3), Prop.~2.26, Lemma~2.28]{TianXiao2019} \\ A4 & Reduction to $G(T)$ by a gauge & \cref{prop:gauge,lem:gauge} \\ A5 & The spin-chain identity & \cref{thm:spin}; exact computation for $d\le14$ \\ A6 & $\det G(T)=\pm(T^2-4)^{t}$ & \cite[Thm.~3.5]{TianXiao2019}, after \cite{MorinDuchesneSaintAubin2013} \\ A7 & Gram matrix and nonzero determinant give positivity & \cref{cor:spin-positive} \\ A8 & An independent proof for $d=4$ & \cref{ex:d4,prop:G4-eigen} \\ \bottomrule \end{tabular} \end{table} \subsection{The unitary family}\label{ss:stmt-AU} Let $F$ be a real quadratic field, $E_0$ an imaginary quadratic field, $E=E_0F$, and let $p$ be a prime inert in $F$ and split in $E_0$. Helm, Tian and Xiao consider the unitary similitude group $G=G_{1,n-1}$ attached to a division algebra over $E$ with an involution of the second kind, of signature $(1,n-1)$ and $(n-1,1)$ at the two real places of $F$, with hyperspecial level at $p$ and a sufficiently small level away from $p$; the special fibre $X=\Sh_{1,n-1}$ of its Shimura variety is smooth and projective of dimension $2(n-1)$ \cite[\S1, \S2.3]{HelmTianXiao2017}. Its supersingular locus is the union of $n$ closed subvarieties $Y_1,\dots,Y_n$ of dimension $n-1$, each fibred over the zero-dimensional Shimura variety $\Sh_{0,n}$ of the definite inner form \cite[Prop.~4.16]{HelmTianXiao2017}. Let $\pi$ be as in \cite[Thm.~1.1]{HelmTianXiao2017}, so that it admits a cuspidal base change, and let $\gamma_1,\dots,\gamma_n$ be its Satake parameters at the place of $E$ above $p$ considered there, normalised as in \cite[Lemma~6.11]{HelmTianXiao2017}. Put $P(x)=\prod_{k=1}^n(x-\gamma_k)$, let $s_j$ be the elementary symmetric functions of the $\gamma_k$, and let $U$ be the $n\times n$ matrix whose $k$-th column is the vector of coefficients of $\prod_{j\neq k}(x-\gamma_j)$. Since $\pi$ is unitary, the multiset of its Satake parameters is stable under $\sigma\colon\gamma\mapsto\bar\gamma^{-1}$; we write $\Pi_\sigma$ for the permutation matrix of the induced involution of the indices. \begin{theorem}[Theorem~A for the unitary family]\label{thm:AU} Assume that the $\gamma_k$ are pairwise distinct modulo roots of unity. \begin{enumerate}[label=\textup{(\roman*)}] \item The Tate classes of the $\pi$-part of $H^{2(n-1)}(X,\Ql)(n-1)$ are spanned by the classes of the components of $Y_1,\dots,Y_n$ \cite[Thm.~1.1, Thm.~4.21]{HelmTianXiao2017}. \item On them the intersection form is congruent to a positive multiple of $M\otimes\Pet$, where $s_nM$ is the matrix of \cite[Thm.~6.8]{HelmTianXiao2017} on the $\pi$-part, with the powers of $p$ removed as in \cite[Lemma~6.11]{HelmTianXiao2017}, and \begin{equation}\label{eq:bez-lag} (-1)^{n-1}M=U\,\Pi_\sigma\,U^{*},\qquad s_n\,M_{ij}=\Bez(P,xP')_{\,i-1,\,n-j}, \end{equation} where $\Bez(f,g)=\sum_{u,v}\Bez(f,g)_{u,v}\,x^uy^v$ is the Bezoutian $\bigl(f(x)g(y)-f(y)g(x)\bigr)/(x-y)$. \item The matrix $U$ is invertible, and $U\Pi_\sigma U^*$ is positive definite if and only if $\sigma=\mathrm{id}$. If $\sigma$ has $k$ transpositions, the signature of $(-1)^{n-1}M$ is $(n-k,k)$. \end{enumerate} Since $\pi$ is tempered at $p$ \cite{Caraiani2012}, $\sigma=\mathrm{id}$ and the Hodge-type standard conjecture holds on the Tate classes of the $\pi$-part of the middle cohomology of $X$. \end{theorem} \lean{RamanujanHodge.lagrange_gram_posDef,Deficit.deficit_posDef_iff,RamanujanHodge.H3_posDef} \subsection{An explicit fourfold}\label{ss:stmt-B} \begin{theorem}[Theorem~B]\label{thm:Bprecise} Let $F=\Q(\zeta_{16})^+=\Q[y]/(y^4-4y^2+2)$, let $\qq_1$ be one of the two primes of $F$ above $7$ (of norm $49$) and $\qq_2$ the prime above $2$, let $B$ be the quaternion algebra over $F$ ramified exactly at $\{\qq_1,\qq_2\}$, and let $X=\Sh_K(\Res_{F/\Q}B^\times)$ with $K=\widehat{\OO}_B^\times$ for a maximal order $\OO_B$. Then $X$ is a smooth projective geometrically connected fourfold over $\Q$, it has good reduction at $p=3$ and at $p=5$, and for these $p$: \begin{enumerate}[label=\textup{(\roman*)}] \item $\Tconj(X_{\Fpbar})$ holds in every codimension; in codimension two the Tate classes form a space of dimension $30$, of which $24$ come from four cuspidal automorphic representations and $6$ from the trivial one; \item $\HSC(X_{\Fpbar})$ holds in every codimension, for every ample class; \item $\Lef(X_{\Fpbar})$ and $\Dconj(X_{\Fpbar})$ hold; \item no nonzero cuspidal Tate class is the specialisation of the class of an algebraic cycle, or of a Tate class, on $X_{\Qbar}$. \end{enumerate} Moreover $X_\C$ satisfies $\Lef$, hence all the standard conjectures. \end{theorem} \lean{S5.T3_diag,S5.P_det,S5.T3_rowsum,S5.ramanujan_strict,S5.generic,S5.prim_onedim_pos,RamanujanHodge.s5_cusp_posDef,RamanujanHodge.s5_cusp_posDef_p5} \begin{theorem}[Theorem~B for families]\label{thm:Bfamily} Let $F$ be totally real of even degree $g$, $p>2$ inert in $F$, and $B$ a quaternion algebra over $F$ split at all real places and at $\pp$ and ramified at a nonempty set of finite places, with $K_p$ hyperspecial. Suppose that \begin{enumerate}[label=\textup{(\alph*)}] \item $K/K'$ acts freely on $\Sh_{K'}$ for a sufficiently small normal subgroup $K'\subset K$ of finite index, and \item every cuspidal $\pi$ occurring in $H^g(\Sh_K)$ satisfies \Gen. \end{enumerate} Then $\Sh_K(\Res B^\times)_{\Fpbar}$ satisfies $\Tconj$, $\HSC$, $\Lef$ and $\Dconj$. Condition~(b) can be verified in finite terms by a computation of Brandt matrices (\cref{rem:generic-ramanujan}), and~(a) by local obstructions as in \cref{lem:torsion-free}. \end{theorem} \subsection{Non-abelian motives}\label{ss:stmt-C} Let $F$ be real quadratic and $p>2$ inert in $F$; let $B$ be a quaternion algebra over $F$ split at both real places and ramified at a nonempty set $S$ of finite places not containing $\pp$. Tian and Xiao attach to these data an auxiliary unitary Shimura surface $\widetilde{\Sh}$, with the same geometric connected components as $\Sh_K(G_S)$, and a versal abelian scheme $a\colon\mathcal A\to\widetilde{\Sh}$ of relative dimension $4g=8$ with an action of $M_2(\OO_E)$ \cite[\S2.10]{TianXiao2019}; for $K^p$ sufficiently small, $W=\mathcal A$ is a smooth projective variety of dimension $10$. The local system $\mathcal L_{(k,w)}$ of weight $(k,w)=((2,4),2)$ on $\widetilde{\Sh}$ is $\Sym^2H^\circ_{\tilde\tau_2}\otimes(\wedge^2H^\circ_{\tilde\tau_2})^{-1}$ in the notation of \cite[(2.10.4)]{TianXiao2019}. \begin{theorem}[Theorem~C]\label{thm:Cprecise} Let $\pi$ be a cuspidal automorphic representation of weight $((2,4),2)$ with trivial central character occurring in $H^2(\Sh_K(G_S),\mathcal L_{(k,w)})$, and generic at $\pp$. Let $M(\pi)\subset H^4(W,\Ql)$ be the $\pi$-isotypic part of $H^2(\widetilde{\Sh},\Sym^2H^\circ_{\tilde\tau_2})\subset H^2(\widetilde{\Sh},R^2a_*\Ql)\subset H^4(W,\Ql)$. \begin{enumerate}[label=\textup{(\roman*)}] \item $M(\pi)$ is cut out by algebraic correspondences on $W\times W$. \item The Tate classes of $M(\pi)_{\Fpbar}(2)$ are spanned by classes of algebraic cycles. \item The intersection form $x\cdot y\cdot L_W^{6}$ is positive definite on them, as $\HSC_2(W)$ predicts, for every ample class $L_W$ of the form $L_{\mathrm{base}}+L_{\mathrm f}$ with $L_{\mathrm f}$ relatively ample. \item The Hodge types of $M(\pi)_\C$ are $(4,0),(3,1),(1,3),(0,4)$, so these Tate classes do not lift to Hodge classes in characteristic zero. \item If $\pi$ is not of CM type, the Hodge structure $M(\pi)_\C$ is not of abelian type. \end{enumerate} \end{theorem} \lean{RamanujanHodge.neg_G2_posDef,RamanujanHodge.kron_negDef_posDef,RamanujanHodge.theoremC_sign} The same conclusions hold in every even weight $k\ge4$ at the second real place, on the Kuga--Sato variety of dimension $2+4(k-2)$, with the Tate classes in codimension $k/2$ (\cref{thm:C-higher}); the additional input is Milne's theorem on Lefschetz classes \cite{Milne2002}. \subsection{Descent from a sufficiently small level}\label{ss:descent} The theorems of Tian--Xiao and Helm--Tian--Xiao are stated for sufficiently small levels away from $p$. We pass to the level of \cref{thm:Bprecise} by the following elementary lemma. \begin{lemma}\label{lem:descent} Let $X'$ be a smooth projective variety over $\Fpbar$ with an action of a finite group $H$, free on closed points, and let $X=X'/H$. Suppose that a subspace $\mathcal T'\subset H^{2i}(X',\Ql)(i)$ of classes of algebraic cycles is stable under $H$, that the intersection form is positive definite on its primitive part, and that $H^{2i}(X)(i)$ is identified with $H^{2i}(X')(i)^H$ by pull-back. Then $\mathcal T'^H$ consists of classes of algebraic cycles on $X$, and the intersection form of $X$ is positive definite on the primitive part of $\mathcal T'^H$. \end{lemma} \begin{proof} Since $H$ acts freely, $f\colon X'\to X$ is finite \'etale of degree $\abs H$, and $X$ is smooth projective. For an $H$-invariant class $x'$ of an algebraic cycle $Z'$, the cycle $f_*Z'$ has class $f_*x'$ and $f^*f_*x'=\sum_{h\in H}h^*x'=\abs H x'$; hence $x'=f^*(\abs H^{-1}f_*x')$ is the pull-back of an algebraic class of $X$. For $x,y$ on $X$ and an ample class $L$ on $X$, $f^*x\cdot f^*y\cdot(f^*L)^{d-2i}=\abs H\,(x\cdot y\cdot L^{d-2i})$, and $f^*L$ is ample; primitivity is preserved. The sign is therefore the sign on $X'$, positive. \end{proof} The hypothesis that $H$ acts freely is the content of condition~(a) of \cref{thm:Bfamily}; for the fourfold of \cref{thm:Bprecise} we verify it in \cref{lem:torsion-free}, and it gives the smoothness of the model of $X$ at $p$ as well. In the families of \cref{thm:AQ,thm:AU} we keep the hypothesis of a sufficiently small level, as in the cited papers, and invoke \cref{lem:descent} whenever the level is enlarged.