% Section 8b. Fermat fourfolds of degree 3, 4, 5 over finite fields: characters, Hodge classes, Tate classes from Jacobi % sums, and the signatures that Theorems B, C and D give. \section{Fermat fourfolds}\label{sec:fermat} The Fermat fourfolds $\Phi_m\colon x_0^m+\dots+x_5^m=0$ of degrees $m=3,4,5$ are Fano, and their cohomology over finite fields is computed by Jacobi sums. They show the size of the blocks that the theorems of this part decide, and the difference between the Hodge classes of a lift and the Tate classes over $\bar\F_p$. \subsection{Characters}\label{ss:fermat-characters} Let $\mu_m^6$ act on $\Phi_m$ by multiplying the coordinates, and let $\mathfrak A_m$ be the set of $a=(a_0,\dots,a_5)$ with $1\le a_i\le m-1$ and $\sum_ia_i\equiv0\pmod m$. By Weil, over a field containing the $m$-th roots of unity the primitive cohomology $H^4_{\prim}(\Phi_m)$ decomposes into lines $V(a)$, $a\in\mathfrak A_m$, on which $\mu_m^6$ acts through the character $a$ \cite{ShiodaKatsura1979}. Over $\C$, the line $V(a)$ has Hodge type $(p,4-p)$ with $p=\langle a\rangle-1$, where $\langle a\rangle=\frac1m\sum_ia_i$; and $V(a)$ is spanned by Hodge classes if and only if $\langle ta\rangle=3$ for every $t$ prime to $m$, where $ta$ is reduced modulo $m$ coordinatewise. Over $\F_q$ with $q\equiv1\pmod m$, the Frobenius acts on $V(a)$ by the Jacobi sum $J(a)=q^{-1}\prod_ig(\chi^{a_i})$, where $\chi$ is a character of order $m$ of $\F_q^\times$ and $g$ the Gauss sum; $\abs{J(a)}=q^2$. The line $V(a)$ is spanned by Tate classes over a finite extension of $\F_q$ if and only if $J(a)/q^2$ is a root of unity. We computed $J(a)$ for all $a\in\mathfrak A_m$ (\cref{app:computations}). \begin{proposition}\label{prop:fermat-tate} \begin{enumerate}[label=\textup{(\roman*)},leftmargin=*] \item The primitive cohomology of $\Phi_3$, $\Phi_4$, $\Phi_5$ in degree four has dimension $22$, $183$, $820$, with Hodge numbers $(1,20,1)$, $(21,141,21)$, $(120,580,120)$ in the types $(3,1),(2,2),(1,3)$; the lines spanned by Hodge classes number $20$, $141$ and $400$. \item For $p\equiv1\pmod m$ and $p\in\{7,13,19\}$, $\{5,13,17\}$, $\{11,31\}$ for $m=3,4,5$, the lines carrying Tate classes over $\bar\F_p$ are exactly the lines spanned by Hodge classes. \item For $p\equiv-1\pmod m$ and $p\in\{2,5,11\}$, $\{3,7,11\}$, $\{19\}$ for $m=3,4,5$, every line carries Tate classes over $\F_{p^2}$. \end{enumerate} \end{proposition} \begin{proof} (i) is the count of $\mathfrak A_m$ by the value of $\langle a\rangle$ and by the condition on its multiples, and agrees with the Hodge numbers of \cref{tab:ci-hodge}. (ii) and (iii) are a computation of Gauss sums over $\F_p$ and $\F_{p^2}$ and of the multiplicative orders of $J(a)/q^2$ (\cref{app:computations}). \end{proof} For $p\equiv-1\pmod m$, part~(iii) is the supersingularity of $\Phi_m$ established by Shioda and Katsura, who also show that the cohomology is then spanned by algebraic cycles \cite{ShiodaKatsura1979}. For $m=5$ the lines of type $(2,2)$ that are not spanned by Hodge classes, $580-400=180$ of them, carry no Tate classes at the primes of (ii): the Galois orbit of such a character contains characters of types $(1,3)$ and $(3,1)$, and its Jacobi sums are not $q^2$ times roots of unity. \subsection{Signatures}\label{ss:fermat-signatures} \begin{corollary}\label{cor:fermat} Let $m\in\{3,4,5\}$. \begin{enumerate}[label=\textup{(\roman*)},leftmargin=*] \item For $m=3$ and every prime $p\equiv2\pmod3$, the intersection form on the $22$-dimensional space of primitive algebraic classes of $\Phi_{3,\bar\F_p}$ is positive definite. \item For $m=4,5$ and all but finitely many primes $p\equiv-1\pmod m$, the intersection form on the space of primitive algebraic classes of $\Phi_{m,\bar\F_p}$, of dimension $183$, respectively $820$, is positive definite. \end{enumerate} On the real primitive cohomology of a lift the form has signature $(20,2)$, $(141,42)$, $(580,240)$ respectively. \end{corollary} \begin{proof} For $p\equiv-1\pmod m$ the primitive cohomology of $\Phi_{m,\bar\F_p}$ is spanned by algebraic classes \cite{ShiodaKatsura1979}, of the dimension given by \cref{prop:fermat-tate}. (i) is \cref{thm:mainB}. (ii) is \cref{thm:mainD}, applied to the Fano, hence rationally connected, fourfold $\Phi_m$ over $\Q$: for all primes outside a finite set the intersection form is positive definite on the primitive algebraic classes of the reduction. The signatures of the Betti forms are those of \cref{tab:ci-hodge}. \end{proof} For the cubic, (i) is also a consequence of Ancona's theorem for the Fermat cubic fourfold \cite[Prop.~A.9]{Ancona2021}, and for $p=2$ of Shimada's theorem on Hermitian varieties \cite{Shimada2001}. For $m=4$ and $p=3$ the Fermat quartic is the Hermitian quartic over $\F_9$, and the positivity is again Shimada's theorem (\cref{sec:hermitian}). For $m=4,5$ and the other primes $p\equiv-1\pmod m$ we know of no earlier result; there the hypothesis of \cref{mt:C} on the scheme of lines can be checked prime by prime, and where it holds \cref{mt:C} gives (ii) at that prime. \begin{remark}\label{rem:fermat-barrier} The blocks decided in \cref{cor:fermat} have ranks $22$, $183$ and $820$, far beyond the rank four at which the information at the finite places stops deciding the sign \cite[Thm.~5.3]{Liu2026AHMIII}. In the language of \cite{Liu2026AHM}, the alien switch changes $2$, $42$ and $240$ negative directions of the Betti form into positive directions of the form on algebraic classes; the numbers of changed directions are $2h^{3,1}$, and $2h^{3,1}\equiv2\pmod 4$ for $m=3$, $\equiv2\pmod4$ for $m=4$ and $\equiv0\pmod 4$ for $m=5$. For $m=5$ the class modulo four of the negative index is the same before and after the switch, and no local invariant distinguishes the two signatures; the Hodge index theorem on the variety of lines, carried by \cref{mt:D}, does. \end{remark} \begin{remark}\label{rem:fermat-ordinary} At primes $p\equiv1\pmod m$ the Tate classes of $\Phi_m$ are the specialisations of Hodge classes of a lift (\cref{prop:fermat-tate}(ii)). For $m=3,4,5$ these Hodge classes are algebraic, by the theorem of Shioda on the Hodge conjecture for Fermat varieties of degree at most twenty \cite{Shioda1979}, and the positivity of the form on their span is the Hodge--Riemann relation; \cref{mt:A} is not needed there. The theorems of this paper add information exactly where the algebraic classes of the special fibre do not lift: at the supersingular primes, and more generally at the primes where the Tate classes outnumber the Hodge classes of a lift. \end{remark}