% Section 12. Layer II: the Satake--Gram principle. Statement in general, unitary models, the duality involution, % positivity and temperedness, the deficit, and the comparison with unitarity criteria for Hecke algebras. \section{Layer II: the Satake--Gram principle}\label{sec:layer2} Layer~II reads the sign of the intersection form on uniformised Tate classes at a place that is not a place of $\Q$: the unit circle on which the Satake parameters of tempered representations lie. This section states the principle in general, explains its structure (a unitary model, a Frobenius twist, a duality involution), proves the abstract statements that do not depend on the family, and formulates the conjecture for basic loci of Hodge type. The next section works out its two realisations. \subsection{Three properties of the alien forms}\label{ss:l2-shape} In both families of \cref{part:main} the intersection matrix of the uniformising cycles, on a generic automorphic part, is congruent to $c_\pi\Bform(\gamma_\pi)\otimes\Pet$ with $c_\pi>0$, and $\Bform(\gamma_\pi)$ has three properties. \begin{enumerate}[label=(\alph*)] \item\label{shape:poly} It is given by a universal formula in the Satake parameters, independent of the Shimura variety: a Laurent polynomial in $z$, $z^2=\alpha_\pi/\beta_\pi$, for the quaternionic family, and a rational function of the $\gamma_k$ for the unitary family. \item\label{shape:gram} When the Satake parameters lie on the unit circle, it is a Gram matrix, $\Bform(\gamma)=V(\gamma)V(\gamma)^*$, of vectors $v_a(\gamma)$ in a hermitian space $(\mathcal U,\langle\,,\rangle)$ with a positive definite form. \item\label{shape:det} Its determinant vanishes only where the Satake parameters collide: $\det G(T)=\pm(T^2-4)^t$ vanishes at $z=\pm1$, and $\det M\propto\prod_{j2$ (\cref{cor:bey-deficit}); for $d=4$ it is $3$, by the closed form of \cref{prop:G4-eigen} as well. The deficit is a measure of the failure of the Hodge-type conjecture on a hypothetical class of motives with non-tempered Satake parameters; on the motives that exist it is zero, by the Ramanujan conjecture. \begin{remark}\label{rem:l2-deficit-meaning} The deficit formula gives the Hodge-type conjecture on these classes a quantitative form. One may read it backwards: a violation of the Hodge-type conjecture on a uniformised block would produce non-tempered Satake parameters, and conversely the Ramanujan conjecture for the relevant automorphic representations is equivalent to the Hodge-type conjecture on the blocks they uniformise. In this sense the two conjectures are, on basic-locus classes, one statement. \end{remark} \subsection{The Satake--Gram principle}\label{ss:l2-principle} We can now state the principle that the two families instantiate. \begin{conjecture}[Satake--Gram principle]\label{conj:satake-gram} Let $\Sh$ be a Shimura variety of Hodge type with hyperspecial level at $p$, let $\pi$ be a cuspidal automorphic representation whose Satake parameter $s_\pi$ at $p$ is strongly regular in the sense of Xiao and Zhu, and let $\{X_a\}$ be the cycles constructed from the irreducible components of the basic locus that span the Tate classes of the $\pi$-part \cite{XiaoZhu2017}. Then there are a weight space $\mathcal U$ of the representation $r_\mu$ of the dual group, with the hermitian form induced by the compact form $\hat K$, and vectors $v_a(s)\in\mathcal U$, depending algebraically on $s$ in the maximal torus, such that the intersection matrix of the $X_a$ on the $\pi$-part is congruent, by a positive diagonal matrix and up to the sign $(-1)^i$ of the codimension, to a positive multiple of \[ \bigl(\langle v_a(s_\pi),\,v_b(s_\pi^{\sigma})\rangle\bigr)_{a,b}\otimes\Pet , \] where $s^\sigma$ is the image of $s$ under the duality involution. In particular the intersection form is positive definite on these Tate classes if and only if $s_\pi$ is tempered, and its deficit is the number of pairs of eigenvalues of $r_\mu(s_\pi)$ on $\mathcal U$ exchanged by the duality involution. \end{conjecture} \begin{theorem}\label{thm:l2-principle-families} \Cref{conj:satake-gram} holds for the quaternionic Shimura varieties of \cref{thm:AQ} (with $\mathcal U$ the weight-zero space of $(\C^2)^{\otimes d}$, the vectors the twisted singlet link vectors, and the deficit statement proved for $\abs T<2$ and, for $d\le10$, for $\abs T>2$), and for the unitary Shimura varieties $\Sh_{1,n-1}$ of \cref{thm:AU} (with $\mathcal U=\C^n$ and the vectors the coefficient vectors of the Lagrange nodal polynomials, and the deficit statement proved in full). \end{theorem} \begin{proof} For the quaternionic family this is \cref{prop:gauge,thm:spin} together with the interpretation of \cref{ss:spin-tl}; the pairing $\langle v_a(s),v_b(s^\sigma)\rangle$ reduces to $\langle v_a(z),v_b(z)\rangle$ on the circle, where $s^\sigma=s$. Off the circle the deficit for $d\le10$ is \cref{cor:bey-deficit}. For the unitary family it is \cref{thm:u-gram,prop:u-perm}, with $\langle v_a(s),v_b(s^\sigma)\rangle=(U\Pi_\sigma U^*)_{ab}$. \end{proof} \subsection{The sign $(-1)^i$}\label{ss:l2-why} The principle says that the intersection form is a Gram matrix up to the sign $(-1)^i$; the Hodge-type conjecture says that $(-1)^i$ times the form is positive. The two signs agree because of the geometry of the uniformising cycles: each $X_a$ is fibred over the basic locus with fibres that are iterated $\PP^1$-bundles (quaternionic) or products of Grassmannians (unitary), and the self-intersection of a fibre in the normal direction is, up to positive factors, $(-2)^{i}$ or $(-1)^{i}(i+1)$, the self-intersection of the zero section in the normal bundle of the corresponding flag variety. The sign $(-1)^i$ is the sign of the top Chern class of the normal bundle of a fibre, which is the dual of an ample bundle; in the language of the Hodge--Riemann relations, it is the sign $(-1)^{i}$ of the primitive part of type $(i,i)$. Layer~II thus reproduces in characteristic $p$ the structure of the Hodge--Riemann relations: a sign $(-1)^i$ from the geometry, and a positive form from unitarity. \subsection{Unitarity of Hecke modules}\label{ss:l2-hecke} The matrices $G(T)$ and $M(\gamma)$ have a second meaning. The Goren--Oort and supersingular cycles are permuted by the Hecke algebra at $p$, through the operators $\Res_a\circ\Gys_b$, and the space they span on the $\pi$-part is a module over an algebra of correspondences at $p$, in the quaternionic case a quotient of the periodic Temperley--Lieb algebra \cite[Rem.~3.4]{TianXiao2019}. The intersection form is an invariant hermitian form on this module, and the statement that it is positive definite is the statement that the module is unitary. For representations of $p$-adic groups, Barbasch and Moy reduced unitarity of representations with Iwahori-fixed vectors to unitarity of modules over the Iwahori--Hecke algebra \cite{BarbaschMoy1989}, and in that theory the tempered spectrum is unitary and the complementary series is unitary only up to the first reducibility point. The behaviour of $G(T)$, positive definite for $\abs T<2$ and degenerate at $\abs T=2$, the reducibility point of the unramified principal series of $\GL_2$ at which $\alpha=\pm\beta$, is the analogue in our setting. We do not use this analogy in the proofs, but it suggests that the Satake--Gram principle is a statement about the unitarity of modules over Hecke algebras of correspondences on special fibres, which are geometric counterparts of the Iwahori--Hecke algebras. \subsection{Layer II and the local invariants}\label{ss:l2-place} Layer~I computes local invariants of the intersection form at the finite places of $\Q$ and uses reciprocity. Layer~II computes its signature directly, as an invariant of a hermitian form over $\C$. The two must be compatible: on a uniformised block, the finite invariants of $\Pet\otimes\Bform(\gamma_\pi)$, a positive definite form when $\pi$ is tempered, satisfy reciprocity with $\ve_\infty=1$ and $s=0$. This is a consistency check on the theory, which we verified on the fourfold of \cref{thm:Bprecise} (\cref{rem:l1-layer2-local}). It also explains why Layer~I cannot replace Layer~II: a definite form of rank six and a form of rank six with four negative directions may have the same finite invariants and differ only at infinity, and only Layer~II determines the invariant at infinity.