% Section 4 (continued). The strata in examples; computing S from local data; the definite stratum as a space of algebraic % modular forms. \subsection{The strata in small rank}\label{ss:strat-table} By \cref{thm:FT1}(ii), the admissible negative indices form the residue class of $s_0=s_0(\Tdat)$ modulo $4$ in $[0,n]$, with $s_0$ determined by \[ (-1)^{s_0}=\sgn d(\Tdat),\qquad (-1)^{s_0(s_0-1)/2}=\hasse_f(\Tdat). \] \Cref{tab:strata} lists $S(\Tdat)$ for $n\le8$. An entry with one element is a rank in which the finite places decide the sign of every rational structure; an entry with two or more elements is a wall. \begin{table}[ht] \caption{The admissible negative indices $S(\Tdat)$ for $n\le8$, by $(\sgn d,\hasse_f)$. A dash means that the datum has no rational structure.}\label{tab:strata} \small \begin{tabular}{@{}c cccc@{}} \toprule $n$ & $(+,+)$: $s_0\equiv0$ & $(-,+)$: $s_0\equiv1$ & $(+,-)$: $s_0\equiv2$ & $(-,-)$: $s_0\equiv3$\\\midrule $1$ & $\{0\}$ & $\{1\}$ & -- & -- \\ $2$ & $\{0\}$ & $\{1\}$ & $\{2\}$ & -- \\ $3$ & $\{0\}$ & $\{1\}$ & $\{2\}$ & $\{3\}$ \\ $4$ & $\{0,4\}$ & $\{1\}$ & $\{2\}$ & $\{3\}$ \\ $5$ & $\{0,4\}$ & $\{1,5\}$ & $\{2\}$ & $\{3\}$ \\ $6$ & $\{0,4\}$ & $\{1,5\}$ & $\{2,6\}$ & $\{3\}$ \\ $7$ & $\{0,4\}$ & $\{1,5\}$ & $\{2,6\}$ & $\{3,7\}$ \\ $8$ & $\{0,4,8\}$ & $\{1,5\}$ & $\{2,6\}$ & $\{3,7\}$ \\ \bottomrule \end{tabular} \end{table} Three features of the table are worth recording. First, the walls do not only separate the definite stratum from an indefinite one: in rank five, a datum with $s_0\equiv1$ cannot be told from its companion with negative index $5$, a negative definite form. Second, a geometric point of a block with $(\sgn d,\hasse_f)=(-,+)$, $(+,-)$ or $(-,-)$ violates the Hodge-type conjecture (\cref{cor:layer1-criterion}(i)); for such a block the finite places refute positivity, whatever the rank. Third, the blindness grows with the rank: the number of admissible strata is $\lfloor(n-s_0)/4\rfloor+1$. \subsection{Computing the strata of a variety}\label{ss:strat-computing} For the Tate datum of a variety the invariants $d$ and $\hasse_v$ are invariants of the cup product on the Tate classes in $\ell$-adic and crystalline cohomology. When a geometric point is known they are the invariants of the rational form, and the computation is a computation with a rational Gram matrix. We record three examples, computed exactly (\cref{app:computations}). \begin{example}[Products of elliptic curves]\label{ex:strat-ee} For $E$ supersingular over $\F_{p^{2}}$ with all endomorphisms defined over $\F_{p^{2}}$ and $p\equiv3\pmod4$, the algebra $B_{p,\infty}$ is $(-1,-p)_\Q$, with norm form $x^{2}+y^{2}+p(z^{2}+w^{2})$, and the geometric point of \cref{ex:ee-supersingular} is $W\cong\form{2,2,2,2p,2p}$. For $p\in\{3,7,11\}$ one finds $d(W)=2$ and $\hasse_v(W)=-1$ exactly for $v\in\{2,p\}$, so $\hasse_f=1$ and $S=\{0,4\}$; the companion $W'=\form{2,-2,-2,-2p,-2p}$ has the same discriminant and the same Hasse--Witt invariants at every prime, and negative index $4$. For an ordinary $E$ with $\End^{0}(E)=\Q(\sqrt{-7})$ the geometric point $\form{2,2,14}$ has $d=14$ and all finite Hasse--Witt invariants $1$; $S=\{0\}$. \end{example} The finite Hasse--Witt invariants of the supersingular block are $-1$ at $2$ and at the prime $p$ at which $B_{p,\infty}$ is ramified. In this sense the first layer sees the ramification of the endomorphism algebra; it does not see that the algebra is ramified at infinity, which is what makes the block definite. \begin{example}[The cuspidal blocks of the fourfold]\label{ex:strat-fourfold} For the fourfold of \cref{def:fourfold}, \S\ref{ss:fourfold-layer-data} computes the rational forms of the four cuspidal blocks of rank $12$; all are positive definite with square discriminant and $\hasse_f=1$, so $S=\{0,4,8,12\}$, and the finite places leave four strata open. \end{example} \subsection{The definite stratum as a space of algebraic modular forms}\label{ss:strat-amf} Let $\Tdat$ be integral and coherent with $0\in S(\Tdat)$, $W_0$ the definite space, $M_0$ a lattice of level $K$ and $J=O(W_0)$. Following Gross \cite{Gross1999}, a function on $\Sig_K(\Tdat)=J(\Q)\backslash J(\Af)/K_0$ is an algebraic modular form of trivial weight for the group $J$, whose real points are compact; the second-order motive $\Mtwo(\Tdat)$ is the space of these forms. The Hecke operators of \S\ref{ss:strat-definite} at a prime $v$ at which $M_0$ is unimodular are the operators of Kneser's neighbor method: for an odd prime $v$, the lattices $M$ in the genus with $[M:M\cap M_0]=[M_0:M\cap M_0]=v$ are the $v$-neighbors of $M_0$, and $T_v f(M_0)=\sum_Mf(M)$ over them. We do not use this description in the proofs; it is what makes the second-order motive computable. Three properties of $\Mtwo(\Tdat)$ follow from \cref{prop:definite-stratum}: \begin{enumerate}[label=(\alph*)] \item the constant function spans a Hecke-stable line, on which the Hecke operator of $KgK$ acts by the number of cosets in $KgK$; \item its orthogonal complement for the counting pairing is Hecke-stable; \item over $\R$ the Hecke algebra generated by self-adjoint operators is diagonalizable, with real eigenvalues, and the eigenspaces are orthogonal. \end{enumerate} These are the properties used for the definite quaternion algebra $B'$ in \cref{sec:fourfold}, where the second-order motive is the five-dimensional space of functions on $\Sh(B')$, the constant function is the Eisenstein line, and the complement is the sum of the two cuspidal planes (\cref{prop:hecke-fields}). \subsection{Level and the integral strata}\label{ss:strat-level} The level enters the integral strata only through the local lattices, and two levels give comparable spaces. If $K'\subset K$ are the stabilisers of local lattices $\Lambda'_v\subset\Lambda_v$, equal for almost all $v$, the natural map $\RS_{s,K'}(\Tdat)\to\RS_{s,K}(\Tdat)$ obtained by replacing each lattice $M'$ by the lattice with the local completions of $\Lambda$ (\cref{thm:omeara}) is surjective, with finite fibers, and it commutes with the Hecke operators prime to the places where $K'\ne K$. On the definite stratum it multiplies the mass by $[K:K']$. The strata themselves, as subsets of $\RS(\Tdat)$, do not depend on the level.