% Section 2c. The logical structure of the proofs: the steps of the proofs of Theorems A, B and C and of the converse % theorems, the hypotheses of every cited theorem and where they are verified, the computations and their independent % checks, and the inputs that are not used. The formal verification is described in Appendix A only. \section{The logical structure of the proofs}\label{sec:logic} The proofs of the main theorems combine theorems of the literature, new arguments and finite computations. This section sets out how they fit together, so that each step can be checked separately: the steps of each proof, the hypotheses of every cited theorem with the place where they are verified, the computations with their independent checks, and the inputs that are not used. Labels refer to the statements of the paper; the background statements are those of \cref{sec:background}. The steps whose linear-algebraic or finite content has also been verified formally are listed in \cref{app:formal}. \subsection{The proof of Theorem A for the quaternionic family}\label{ss:logic-AQ} \begin{enumerate}[label=(Q\arabic*)] \item\label{Q:span} The Tate classes of $H^d(X)(d/2)[\pi]$ form the eigenspace of \cref{lem:go-tate}, of dimension $\binom d{d/2}\dim W_\pi$, and are spanned injectively by the classes $\Gys_af$ (\cref{thm:tx-span}). \emph{Input}: \cite[Prop.~2.25, Thm.~4.4(2$'$)]{TianXiao2019}; \emph{hypothesis}: \Gen. \item\label{Q:adjoint} $\langle\Gys_af,\Gys_bh\rangle_X=\Pet(f,\Res_a\Gys_bh)$ (\cref{lem:adjoint}). \emph{Input}: the projection formula. \item\label{Q:formula} $\Res_a\circ\Gys_b$ is a scalar times a normalised link morphism (\cref{thm:tx-formula}), and its composites along cycles of semi-meanders are products of entries of $G(T_\pi)$ (\cref{prop:tx-cycle}). \emph{Input}: \cite[Thm.~4.3(3), Prop.~2.26, Lemma~2.28]{TianXiao2019}. \item\label{Q:gauge} The scalars by which the link morphisms act form a coboundary, and the intersection matrix is $\kappa DG(T_\pi)D$ (\cref{prop:gauge,lem:gauge}). \emph{New}; \emph{hypothesis}: $T_\pi\neq0$, implied by \Gen. \item\label{Q:spin} $(-1)^{d/2}G(2\cos\varphi)=V_\varphi V_\varphi^*$ (\cref{thm:spin}). \emph{New}; proved for all $d$ in \cref{sec:spin}; exact computation for $d\le14$. \item\label{Q:det} $\det G(T)\neq0$ for $\abs T<2$. \emph{Input}: \cite[Thm.~3.5]{TianXiao2019}; for $d\le6$ alternatively \cref{prop:se-det}. \item\label{Q:pos} A Gram matrix with nonzero determinant is positive definite, and a Kronecker product of positive definite matrices is positive definite (\cref{cor:spin-positive,prop:kronecker}). \item\label{Q:ram} $\abs{T_\pi}<2$. \emph{Input}: \cite{Blasius2006} and \Gen{} (\cref{rem:generic-ramanujan}). \item\label{Q:prim} The classes are primitive for every ample class and orthogonal to the other Hecke eigenspaces (\cref{prop:go-hsc}). \end{enumerate} Theorem~A(Q) follows from \ref{Q:span}--\ref{Q:prim}. The steps \ref{Q:gauge} and \ref{Q:spin} and their combination are new; the other steps are cited or elementary. \subsection{The proof of Theorem A for the unitary family}\label{ss:logic-AU} \begin{enumerate}[label=(U\arabic*)] \item\label{U:span} The supersingular cycles span the Tate classes of the $\pi$-part (\cref{thm:htx-span}). \emph{Input}: \cite[Thm.~1.1, Thm.~4.21]{HelmTianXiao2017}; \emph{hypotheses}: those of \cite[Thm.~1.1]{HelmTianXiao2017}, and Satake parameters distinct modulo roots of unity. \item\label{U:entries} The entries of the intersection matrix are those of \eqref{eq:htx-entries}. \emph{Input}: \cite[Prop.~6.7, Thm.~6.8, proof of Lemma~6.11]{HelmTianXiao2017}. \item\label{U:bez} The normalised matrix is a Bezout matrix (\cref{prop:u-bezout}). \emph{New}; symbolic check for $n\le7$. \item\label{U:gram} $(-1)^{n-1}M=U\Pi_\sigma U^*$ (\cref{lem:u-pf,thm:u-gram}). \emph{New}; numerical check for $n\le6$. \item\label{U:inv} $U$ is invertible (\cref{lem:u-vandermonde}). \item\label{U:inertia} The inertia of $U\Pi_\sigma U^*$ is $(n-k,k)$ (\cref{prop:u-perm}). \item\label{U:temp} $\sigma=\mathrm{id}$. \emph{Input}: \cite{Caraiani2012}, through the base change of \cite[Thm.~1.1]{HelmTianXiao2017}. \end{enumerate} \subsection{The proof of Theorem B}\label{ss:logic-B} \begin{enumerate}[label=(B\arabic*)] \item\label{B:field} Arithmetic of $F=\Q(\zeta_{16})^+$: class numbers, units and their signs, decomposition of $3,5,7,17,31,47$ (\cref{lem:B-field}). \emph{Computation} with PARI/GP; the decomposition of the primes is also proved by hand from $(\Z/16\Z)^\times$. \item\label{B:free} Freeness of the action of $K/K'$ (\cref{lem:torsion-free}). \emph{New} argument; \emph{input}: \ref{B:field}. \item\label{B:model} Smooth projective model at $3$ and $5$ (\cref{prop:B-good}). \emph{Input}: \cite{TianXiao2016} at small level, \ref{B:free}, \cref{lem:descent}. \item\label{B:cohom} Decomposition of the cohomology into $\mathcal T$ and four cuspidal parts (\cref{ss:B-cohomology,lem:multiplicity-one}). \emph{Input}: Matsushima's formula, \cite{JacquetLanglands1970,BrylinskiLabesse1984}. \item\label{B:brandt} The Brandt module: $h=5$, mass $5$, the matrices $T_3$, $T_5$, $T_{\mm}$ (\cref{prop:brandt}). \emph{Computation}; checked against the mass formula (\cref{prop:bg-mass}). \item\label{B:gen} \Gen{} at $3$ and $5$, and $\abs{T_\pi}<2$ (\cref{lem:generic-integral}). \emph{Elementary}, from \ref{B:brandt}. \item\label{B:hsc} $\HSC$: on the cuspidal parts by Theorem~A(Q) with $d=4$; on $\mathcal T$ by specialisation and the Hodge--Riemann relations, and directly (\cref{ss:B-proof}). \item\label{B:lef} $\Lef$ and $\Dconj$ (\cref{ss:B-proof}, \cref{prop:fam-lef}). \item\label{B:nonlift} Non-liftability (\cref{prop:B-nonlift}). \emph{Input}: \cite{Carayol1986,Ribet1976,Ribet1985}; \emph{computation}: the Brandt matrices at the primes above $31$ and $47$. \end{enumerate} The version for families, \cref{thm:Bfamily}, replaces \ref{B:field}--\ref{B:gen} by the hypotheses (a) and (b), for which \cref{prop:fam-free,cor:fam-generic-check} give finite criteria. \subsection{The proof of Theorem C}\label{ss:logic-C} \begin{enumerate}[label=(C\arabic*)] \item\label{C:motive} The motive $M(\pi)$ is cut out by algebraic correspondences (\cref{prop:C-projector}). \emph{Input}: \cite{DeningerMurre1991} and the Hecke algebra. \item\label{C:span} The Tate classes of $M(\pi)$ are spanned by classes built from the Goren--Oort divisors and the coefficient system (\cref{prop:C-span}). \emph{Input}: \cite[Thm.~4.4(2)]{TianXiao2019}. \item\label{C:alg} They are classes of algebraic cycles (\cref{prop:C-algebraic}). \emph{Input}: \cite[Thm.~2.31(2)(d)]{TianXiao2019} and \cite{Tate1966} on the supersingular fibres (\cref{lem:C-supersingular}). \item\label{C:sign} The intersection matrix is the Kronecker product of $G_2(T)$, negative definite, and of a coefficient form, negative definite, and the product is positive definite (\cref{prop:C-negative,prop:C-matrix}). \emph{New}. \item\label{C:hodge} Hodge types and the failure of abelian type (\cref{ss:C-hodge}). \emph{Input}: the Hodge types of $\pi$ and Deligne's description of the Hodge structures of abelian type \cite{Deligne1979}. \item\label{C:higher} Higher weight (\cref{thm:C-higher}). \emph{Input}: \cite{Milne2002} for the sign of the coefficient form. \end{enumerate} \subsection{The proofs of the converse theorems}\label{ss:logic-converse} The converse theorems of \cref{sec:converse} use the steps above with one change: the Ramanujan inputs \ref{Q:ram} and \ref{U:temp} are omitted, and the signature off the interval, or off the circle, is computed instead. \begin{itemize}[leftmargin=2em] \item \Cref{thm:conv-quat}: \ref{Q:span} is replaced by the injectivity of $\Gys_a$ on the two classes used, which does not need \Gen; \ref{Q:adjoint}--\ref{Q:gauge} hold for every Hecke eigensystem (\cref{lem:conv-gauge}); the negative direction is given by \cref{lem:conv-minor}. \item \Cref{thm:conv-unit}: \ref{U:entries}--\ref{U:inertia} hold without temperedness. \item \Cref{cor:conv-surface}: in addition, the Hodge index theorem on the surface \cite{Grothendieck1958}. \end{itemize} \subsection{Hypotheses of the cited theorems}\label{ss:logic-hyp} \begin{table}[ht] \caption{Cited theorems, their hypotheses, and where the hypotheses are verified.}\label{tab:logic-hyp} \small \begin{tabular}{@{}>{\raggedright\arraybackslash}p{.24\textwidth}>{\raggedright\arraybackslash}p{.38\textwidth}>{\raggedright\arraybackslash}p{.3\textwidth}@{}} \toprule Theorem & Hypotheses & Verified in \\ \midrule \cite[Thm.~4.4]{TianXiao2019} & $p>2$ inert in $F$; $K_p$ hyperspecial, $K^p$ small; $\alpha_\pi/\beta_\pi$ not a $2n$-th root of unity, $n\le d/2$ & \cref{ss:conventions}; \Gen; \cref{lem:descent} for the level \\ \cite[Thm.~4.3(3)]{TianXiao2019} & as above, $r=d/2$ & \cref{ss:go-formula} \\ \cite[Thm.~3.5]{TianXiao2019} & none (an identity of determinants) & -- \\ \cite[Thm.~1.1]{HelmTianXiao2017} & $p$ inert in $F$, split in $E_0$; hyperspecial at $p$; cuspidal base change; parameters distinct & \cref{ss:u-setting}, hypothesis of \cref{thm:AU} \\ \cite{Blasius2006} & cuspidal, cohomological, over a totally real field & \cref{ss:conventions} \\ \cite{Caraiani2012} & regular algebraic, conjugate self-dual, cuspidal over a CM field & base change of \cite[Thm.~1.1]{HelmTianXiao2017} \\ \cite{TianXiao2016} (models) & $p>2$, $\pp\notin S$, $K^p$ small & \cref{prop:B-good} \\ \cite{JacquetLanglands1970} & discrete series at $\mathrm{Ram}(B)$ & \cref{ss:B-cohomology} \\ \cite{Tate1966} & abelian varieties over finite fields & \cref{lem:C-supersingular} \\ \cite{Milne2002} & Lefschetz classes on abelian varieties over $\Fpbar$ & \cref{thm:C-higher} \\ Landherr, Cohn, Kronecker & classical & \cref{sec:hermitian,sec:kernel,sec:family} \\ \bottomrule \end{tabular} \end{table} \subsection{Computations and their independent checks}\label{ss:logic-comp} Every number on which a theorem depends is either computed by hand in the text or produced by a computation that is checked independently. \Cref{tab:logic-comp} lists them. \begin{table}[ht] \caption{Computations used in the proofs and their independent checks.}\label{tab:logic-comp} \small \begin{tabular}{@{}>{\raggedright\arraybackslash}p{.3\textwidth}>{\raggedright\arraybackslash}p{.28\textwidth}>{\raggedright\arraybackslash}p{.34\textwidth}@{}} \toprule Fact & Method & Independent check \\ \midrule arithmetic of $\Q(\zeta_{16})^+$ & PARI/GP & decomposition of primes by hand; units by their sign vectors \\ class number $5$ of $\OO'$ & PARI/GP, neighbour search & Eichler's mass formula \\ $T_3$ and its eigenvalues & PARI/GP & symmetry, row sums, an explicit integral eigenbasis \\ $T_5$, $T_\mm$ & PARI/GP & commutation with $T_3$; row sums $\Nm\mm+1$ \\ spin-chain identity, $d\le14$ & exact integer arithmetic & the proof of \cref{thm:spin} \\ $\det V$, $d=4,6$ & exact symbolic computation & \cref{prop:se-det}(i) \\ Bezout identity, $n\le7$ & symbolic computation & the proof of \cref{prop:u-bezout} \\ Gram identity of the unitary family & numerical, $n\le6$ & the proof of \cref{thm:u-gram}; the case $n=3$ by hand (\cref{ss:u-fourfold}) \\ \bottomrule \end{tabular} \end{table} The theorems for $d=4$, which are those used for \cref{thm:Bprecise}, do not depend on any computation that is not checked independently: \ref{Q:spin} and \ref{Q:det} are proved in general, and for $d=4$ the six leading principal minors of \cref{ex:d4} and the closed form of \cref{prop:G4-eigen} give a second proof. \subsection{Inputs that are not used}\label{ss:logic-notused} \begin{itemize}[leftmargin=2em] \item No Tate conjecture is assumed. The algebraicity of the Tate classes on which positivity is proved is part of the cited theorems \ref{Q:span}, \ref{U:span}, \ref{C:alg}. \item No lift of the classes to characteristic zero is used. The cuspidal Tate classes of \cref{thm:Bprecise} do not lift (\cref{prop:B-nonlift}); the trivial part is treated by specialisation, and also directly. \item No Rosati positivity of an abelian variety is used for the cuspidal classes. It enters only in \cref{lem:torsion-free}, to bound automorphisms, and in \cref{thm:C-higher}, through \cite{Milne2002}, for the sign of the coefficient form. \item No computation at the finite places is used to determine a sign. Layer~I appears in the proofs only as a consistency check (\cref{ss:Bn-layer1}). \item The Riemann hypothesis for the varieties themselves is used only through the cited theorems; the Ramanujan bounds used are those of Blasius and Caraiani, and for \cref{thm:Bprecise} even these are replaced by the integers of \cref{lem:generic-integral}. \end{itemize} \subsection{Dependence among the main results}\label{ss:logic-graph} Theorem~A(Q) depends on \cite{TianXiao2019}, \cite{Blasius2006} and the spin-chain identity. Theorem~A(U) depends on \cite{HelmTianXiao2017}, \cite{Caraiani2012} and the Bezout and Gram identities. Theorem~B depends on Theorem~A(Q) for $d=4$, on \cite{TianXiao2016} for the models, on the Brandt computation and on the arithmetic of $F$; it does not depend on Theorem~A(U) or on Theorem~C. Theorem~C depends on \cite{TianXiao2019}, \cite{Tate1966}, the sign of $G_2$ (Theorem~A(Q) for $d=2$, which is the Hodge index theorem) and the sign of the coefficient form; in higher weight on \cite{Milne2002}. The converse theorems depend on the same inputs without the Ramanujan bounds. The theory of \cref{part:theory,part:universe} depends on the main theorems for its examples and on nothing else for its statements; the conjectures of \cref{part:summits} are not used anywhere in \cref{part:main}.