% Section 2b. Rational quadratic spaces and lattices: local invariants, the signature modulo four, lattices and % discriminant groups, overlattices, root systems, and the comparison of a definite lattice with a Betti lattice. \section{Quadratic spaces and lattices}\label{sec:quadratic} Over a finite field the algebraic classes of codimension $i$ on a variety of dimension $2i$, with the intersection form, form a rational quadratic space, and the cycles with integral coefficients form a lattice in it. This section collects the facts of the arithmetic theory of quadratic forms that the paper uses: the local invariants and the product formula, the determination of the signature modulo four by the finite places, discriminant groups and overlattices, root systems, and a comparison between a definite lattice and an indefinite lattice with the same completions away from one prime. The references are \cite[Ch.~IV, Ch.~V]{Serre1973}, \cite[\S1]{Nikulin1979} and \cite[Ch.~2, Ch.~15]{ConwaySloane1999}. \subsection{Local invariants}\label{ss:qf-local} Let $V$ be a non-degenerate quadratic space of dimension $n$ over $\Q$, with bilinear form $x\cdot y$, and choose an orthogonal basis, in which the form is $\langle a_1,\dots,a_n\rangle$ with $a_j\in\Q^\times$. For a place $v$ of $\Q$ let $(a,b)_v\in\{\pm1\}$ be the Hilbert symbol of $\Q_v$. \begin{definition}\label{def:qf-invariants} The \emph{discriminant} of $V$ is $d(V)=a_1\cdots a_n$ in $\Q^\times/\Q^{\times2}$, and its \emph{Hasse invariant} at $v$ is $\epsilon_v(V)=\prod_{j0$ with $r_L(k)\ne0$. These are the invariants of \cref{prop:leech,prop:herm-lattices}. \subsection{Definite and indefinite lattices with the same local structure}\label{ss:qf-alien} The following proposition is the arithmetic content of the alien switch \cite[\S14]{Liu2026AHM} for lattices: a positive definite lattice that agrees with an indefinite one away from a prime $p$ must differ from it at $p$, in a way determined by the negative index. It is used in \cref{sec:finite-fields} for the lattices of algebraic classes of supersingular fourfolds, with $B$ the Betti lattice of a lift. \begin{proposition}\label{prop:qf-alien} Let $p$ be a prime, $N$ a positive definite lattice and $B$ a lattice of the same rank and signature $(n-s,s)$, with $N\otimes\Z_\ell\cong B\otimes\Z_\ell$ for every prime $\ell\ne p$. \begin{enumerate}[label=\textup{(\roman*)},leftmargin=*] \item $s$ is even, and $\det N=p^{2a}\abs{\det B}$ for an integer $a$. \item $\epsilon_p(N\otimes\Q)=(-1)^{s/2}\,\epsilon_p(B\otimes\Q)$, and $\epsilon_\ell(N\otimes\Q)=\epsilon_\ell(B\otimes\Q)$ for every prime $\ell\ne p$. \item If $s\equiv2\pmod4$, $p$ is odd and $B\otimes\Z_p$ is unimodular, then $N\otimes\Z_p$ is not unimodular, and $a\ge1$. \end{enumerate} \end{proposition} \begin{proof} (i) For $\ell\ne p$, an isometry $N\otimes\Z_\ell\cong B\otimes\Z_\ell$ gives $\det N=u_\ell^2\det B$ with $u_\ell\in\Z_\ell^\times$. Hence $\det N/\det B$ is a unit at every $\ell\ne p$, so it is $\pm p^b$ for an integer $b$, and it is a square in every $\Q_\ell$ with $\ell\ne p$. By \cref{lem:qf-squares} it is a square in $\Q$, hence positive, so $(-1)^s=\sgn\det B=\sgn\det N=1$, and $b=2a$ is even. (ii) The equality at $\ell\ne p$ holds because the completions are isometric. At the infinite place $\epsilon_\infty(N\otimes\Q)=1$ and $\epsilon_\infty(B\otimes\Q)=(-1)^{s(s-1)/2}=(-1)^{s/2}$ for $s$ even, by \eqref{eq:qf-infinite}. The product formula for $N\otimes\Q$ and for $B\otimes\Q$ gives the equality at $p$. (iii) By \cref{lem:qf-unimodular-p}, $\epsilon_p(B\otimes\Q)=1$, so $\epsilon_p(N\otimes\Q)=-1$ by (ii), and by \cref{lem:qf-unimodular-p} again $N\otimes\Z_p$ is not unimodular. Then $p$ divides $\det N$, and since $\det B$ is prime to $p$, $a\ge1$. \end{proof} \begin{example}\label{ex:qf-cubic} Let $B=H^4(X_\C,\Z)(2)$ for a smooth complex cubic fourfold, odd unimodular of signature $(21,2)$, so that $B\otimes\Q\cong\langle1\rangle^{21}\oplus\langle-1\rangle^2$, with $\epsilon_v(B\otimes\Q)=(-1,-1)_v$, which is $-1$ at $v=2,\infty$ and $1$ at the odd primes. A positive definite lattice $N$ of rank $23$ with $N\otimes\Z_\ell\cong B\otimes\Z_\ell$ for all $\ell\ne p$ has, by \cref{prop:qf-alien}, $\det N=p^{2a}$ and $\epsilon_p=-1$ for odd $p$, so that $a\ge1$; for $p=2$ it has $\epsilon_2=1$ and $\epsilon_v=1$ at every place, and $N\otimes\Q\cong\langle1\rangle^{23}$. The lattice of algebraic classes of a supersingular cubic fourfold is such an $N$ (\cref{prop:ss-lattice}); for $p=2$ the lattice of planes of the Fermat cubic is one, of determinant $4$ (\cref{prop:leech}). \end{example} \begin{remark}\label{rem:qf-why} The negative index $s$ of the Betti lattice enters only through $s/2$ modulo two. When $s\equiv0\pmod4$, as for the Fermat quintic fourfold with $s=240$, a positive definite lattice can have the same Hasse invariants as $B$ at every prime, and the local structure at $p$ need not change; when $s\equiv2\pmod4$, as for the cubic with $s=2$ and the Fermat quartic with $s=42$, it must. In both cases the finite places alone cannot tell $N$ from a lattice of signature $(n-s,s)$, $(n-s+4,s-4)$, \dots, by \cref{prop:qf-mod4}; positivity is an additional statement, which is what the transfer theorem supplies. \end{remark}