% Section 14. Layer III: the global layer. Lefschetz pencils and heights; function-field automorphy and the Ramanujan % conjecture; a positivity lemma from the Riemann hypothesis; shtukas and the card BLG-Sht. Mostly reductions and % conjectures; the proved statements are marked as such. \section{Layer III: the global layer}\label{sec:layer3} Layers~I and~II read the sign of the intersection form on Tate classes that are either of small rank or uniformised by a basic locus. A general fourfold over $\Fpbar$ has neither property. Layer~III is the attempt to bring it within reach of Layer~II, by fibring it over a curve and passing to the generic fibre, a threefold over a global function field. Over a function field every irreducible Galois representation is automorphic and satisfies the Ramanujan conjecture, by the theorems of L.~Lafforgue \cite{Lafforgue2002}, and its automorphic incarnation lives in the cohomology of moduli spaces of shtukas, which play the role that Shimura varieties play over number fields. This section describes the reduction, proves the few statements that can be proved unconditionally, and isolates the missing piece as a conjecture. It is the most programmatic part of the paper. \subsection{Lefschetz pencils}\label{ss:l3-pencil} Let $Y$ be a smooth projective fourfold over $k=\Fpbar$, embedded in $\PP^N$ by a sufficiently ample linear system (replacing the embedding by a Veronese re-embedding if necessary, so that Lefschetz pencils exist in every characteristic, by the theory of Lefschetz pencils of SGA~7). A Lefschetz pencil is a line $\Lambda\subset\check\PP^N$ of hyperplanes $H_t$, $t\in\PP^1$, whose axis meets $Y$ transversally in a smooth surface $A=Y\cap H_0\cap H_\infty$, all but finitely many members $Y_t=Y\cap H_t$ being smooth and the others having a single ordinary double point. Blowing up the axis gives \[ f\colon\widetilde Y=\mathrm{Bl}_AY\to\PP^1, \] a proper flat map whose fibres are the threefolds $Y_t$. The cohomology of $\widetilde Y$ is that of $Y$ plus a copy of the cohomology of $A$ shifted by two: \begin{equation}\label{eq:l3-blowup} H^4(\widetilde Y)(2)=H^4(Y)(2)\oplus H^2(A)(1), \end{equation} compatibly with algebraic classes, by the blow-up formula. In particular the algebraic classes of codimension two on $Y$ are a direct summand of those of $\widetilde Y$, and their intersection form is the restriction. \subsection{The generic fibre and the decomposition of codimension-two classes}\label{ss:l3-generic} Let $K=k(\PP^1)=k(t)$ and let $Y_\eta$ be the generic fibre of $f$, a smooth projective threefold over $K$. A cycle of codimension two on $\widetilde Y$ restricts to a cycle of codimension two on $Y_\eta$, that is, to a curve on the threefold; the kernel of restriction is generated by the \emph{vertical} cycles, supported on finitely many fibres. Fix an ample class $\widetilde L$ on $\widetilde Y$. The numerical classes of codimension two on $\widetilde Y$ that are primitive for $\widetilde L$ carry three kinds of classes: \begin{enumerate}[label=(\alph*)] \item\label{l3:vert} \emph{vertical} classes, supported on fibres: divisors on fibres, which on a smooth fibre are classes in $\bar A^1(Y_t)$, together with the classes coming from $H^2(A)(1)$ in \eqref{eq:l3-blowup}; \item\label{l3:hor} \emph{horizontal} classes whose restriction to the geometric generic fibre is a nonzero class in $H^4(Y_{\bar\eta})(2)$, that is, a curve class on the threefold $Y_{\bar\eta}$ that is not homologically trivial; \item\label{l3:triv} classes whose restriction to $Y_{\bar\eta}$ is homologically trivial: the part of the numerical classes of $\widetilde Y$ that comes from the group $\CH^2(Y_\eta)_{\mathrm{hom}}$ of homologically trivial cycles of codimension two on the generic fibre. \end{enumerate} For divisors on threefolds and on surfaces the Hodge-type conjecture holds in every characteristic, by the Hodge index theorem and its consequences \cite{Grothendieck1958}. The classes of type~\ref{l3:vert} are divisor classes on fibres and on the axis, and the classes of type~\ref{l3:hor} are curve classes on a threefold, which hard Lefschetz on the fibres relates to divisor classes. They are therefore expected to be controlled by the known cases in lower dimension, provided their contributions can be separated orthogonally from those of type~\ref{l3:triv}; we make this precise only as a hypothesis (\cref{prop:l3-pencil}). The classes of type~\ref{l3:triv} are of a different nature: their intersection numbers on $\widetilde Y$ are, after the orthogonal projections that make the decomposition orthogonal, the values of the \emph{height pairing} of Beilinson and Bloch on $\CH^2(Y_\eta)_{\mathrm{hom}}$, up to sign, and the Hodge-type conjecture for $\widetilde Y$ on these classes is equivalent to the positivity of that height pairing, Beilinson's conjecture of Hodge index type for heights. In characteristic zero, the implication from the Hodge index theorem on the total space to the positivity of heights of codimension-two cycles is due to Zhang \cite{Zhang2010}, who observes that in positive characteristic the same argument is conditional on the Hodge-type conjecture of the total space; the reduction we use runs in the opposite direction. We state the reduction as a proposition, with the hypotheses under which its proof is linear algebra. \begin{proposition}[Reduction by a pencil]\label{prop:l3-pencil} Suppose that the numerical classes of codimension two on $\widetilde Y$, primitive for $\widetilde L$, decompose orthogonally as $\mathcal V\oplus\mathcal H\oplus\mathcal T$, where $\mathcal V$ is spanned by classes of type~\ref{l3:vert}, $\mathcal H$ by orthogonal projections of classes of type~\ref{l3:hor}, and $\mathcal T$ by orthogonal projections of classes of type~\ref{l3:triv}, and that on $\mathcal V$ and $\mathcal H$ the form $x\cdot x\cdot\widetilde L^0$ (in codimension two on a fourfold) has the sign predicted by the Hodge-type conjecture. Then $\HSC_2(\widetilde Y,\widetilde L)$ is equivalent to the positivity of $x\cdot x$ on $\mathcal T$, and $\HSC_2(Y,L)$ holds on the summand of \eqref{eq:l3-blowup} on which these conditions hold. \end{proposition} \begin{proof} An orthogonal direct sum of quadratic spaces is positive definite if and only if each summand is. The restriction to the summand $H^4(Y)(2)$ of \eqref{eq:l3-blowup} preserves the form. \end{proof} The content is in the hypotheses, which are of two kinds. The orthogonality of the decomposition requires that the form be nondegenerate on $\mathcal V\oplus\mathcal H$, which holds when the Hodge-type conjecture holds there, and a careful choice of $\widetilde L$; and the sign on $\mathcal V$ and $\mathcal H$ is a combination of the Hodge index theorem on fibres and on $A$ with the Hodge-type conjecture in codimension two on threefolds, which is the conjecture for divisors. We do not carry out these verifications here; the point of the proposition is to locate the difficulty in $\mathcal T$. \subsection{The algebraically trivial part}\label{ss:l3-algebraic} Inside $\CH^2(Y_\eta)_{\mathrm{hom}}$ lies the subgroup of algebraically trivial cycles, which is controlled by an abelian variety: the \emph{algebraic representative} $\mathrm{Ab}^2(Y_{\bar\eta})$ of Murre, a regular homomorphism from algebraically trivial cycles of codimension two to an abelian variety, universal among such \cite{ACMV2025}. Achter, Casalaina-Martin and Vial proved that over any perfect field the algebraic representative exists, descends, and carries a symmetric isogeny $\Theta$ induced by the intersection pairing, which in characteristic zero is the Hodge-theoretic polarisation of the intermediate Jacobian, and which in positive characteristic is a polarisation under liftability conditions \cite[Prop.~13.1]{ACMV2025}. \begin{proposition}\label{prop:l3-ab} Suppose that $\Theta$ is a polarisation of $\mathrm{Ab}^2(Y_{\bar\eta})$. Then on the part of $\mathcal T$ spanned by algebraically trivial cycles, the height pairing is the N\'eron--Tate height pairing of the abelian variety $\mathrm{Ab}^2$ with respect to $\Theta$, and it is positive definite modulo torsion. \end{proposition} \begin{proof} For algebraically trivial cycles the Beilinson--Bloch height factors through the regular homomorphism to the algebraic representative, and equals the N\'eron--Tate height for the symmetric line bundle attached to $\Theta$; the identification of the height with the intersection on the total space for cycles of this kind is the classical relation between N\'eron--Tate heights and intersection theory on a model (see \cite{Zhang2010} and the references there). If $\Theta$ is a polarisation, the line bundle is ample, and the N\'eron--Tate height of an ample symmetric bundle is a positive definite quadratic form on the Mordell--Weil group modulo torsion. \end{proof} Hence the part of the problem that comes from abelian varieties is, once more, positive for reasons of abelian varieties: the N\'eron--Tate height of an ample bundle, a function-field avatar of the Rosati positivity of \cref{ss:dream-missing}(b). What remains is the part of $\CH^2(Y_\eta)_{\mathrm{hom}}$ that is not algebraically trivial: homologically trivial curves on the threefold whose Abel--Jacobi images lie in the \emph{transcendental} part of $H^3(Y_{\bar\eta})$, the part not of coniveau one. This is the analogue, for the height pairing, of the transcendental Tate classes on which the Hodge-type conjecture is hard. \subsection{Automorphy over the function field}\label{ss:l3-automorphy} The Galois representation $H^3(Y_{\bar\eta},\Ql)$ of $\Gal(\bar K/K)$ is pure of weight three, unramified outside the finitely many places of bad reduction of the pencil, and semisimple after passing to its semisimplification, which is all we need. Its irreducible constituents are automorphic. \begin{theorem}[L.~Lafforgue \cite{Lafforgue2002}]\label{thm:l3-lafforgue} Let $K$ be a global function field and $\rho$ an irreducible $\ell$-adic representation of $\Gal(\bar K/K)$ of dimension $n$, unramified almost everywhere, with determinant of finite order. Then $\rho$ corresponds to a cuspidal automorphic representation $\pi$ of $\GL_n(\mathbb A_K)$, with matching Frobenius eigenvalues and Satake parameters at the unramified places, and $\pi$ satisfies the Ramanujan--Petersson conjecture: its unitarily normalised Satake parameters at every unramified place lie on the unit circle. \end{theorem} After a Tate twist and a twist by a character of finite order to make the determinant of finite order, each constituent of $H^3(Y_{\bar\eta})$ is attached to a cuspidal $\pi_i$ of $\GL_{n_i}$, and the Satake parameters of $\pi_i$ at every place of good reduction lie on the circle. V.~Lafforgue extended the automorphic-to-Galois direction to all reductive groups \cite{VLafforgue2018}; and the cohomology of moduli spaces of shtukas $\Sht_{G,\mu}$ with arbitrary, not necessarily minuscule, modifications $\mu$ realises these representations geometrically, in the way that Shimura varieties realise automorphic representations over number fields with minuscule $\mu$. Over a number field, the motives with Shimura-variety realisations are those whose Hodge cocharacters are minuscule, a strong restriction; the motive of the transcendental part of $H^3$ of a general threefold is not of this kind. Over a function field there is no such restriction: every irreducible constituent has an automorphic incarnation and a realisation in the cohomology of moduli of shtukas. This is why Layer~III passes through the function field. \subsection{A positivity lemma from the Riemann hypothesis}\label{ss:l3-rh} The Ramanujan conjecture over function fields makes the sign of the central derivatives of $L$-functions computable. We record the elementary lemma that does this, because it is the form in which the Riemann hypothesis can decide the sign of a block of rank one. \begin{lemma}\label{lem:l3-rh} Let $L(u)=c\prod_{j=1}^m(1-\alpha_ju)$ be a polynomial with real coefficients, $c>0$, all of whose inverse roots satisfy $\abs{\alpha_j}=1$, and let $r$ be the number of $j$ with $\alpha_j=1$. Put $\Lambda(s)=L(q^{1/2-s})$ for a real number $q>1$. Then $\Lambda$ vanishes to order exactly $r$ at $s=\tfrac12$, and \[ \Lambda^{(r)}(\tfrac12)=r!\,(\log q)^r\,c\prod_{\alpha_j\neq1}(1-\alpha_j)>0 . \] \end{lemma} \begin{proof} The non-real inverse roots come in conjugate pairs, since the coefficients are real, and the real ones are $\pm1$. For a pair $\{\alpha,\bar\alpha\}$ with $\abs\alpha=1$, $\alpha\neq\pm1$, the factor $(1-\alpha u)(1-\bar\alpha u)$ at $u=1$ is $\abs{1-\alpha}^2>0$; a factor $1+u$ is $2$ at $u=1$; the factors with $\alpha=1$ contribute $(1-u)^r$. With $u=q^{1/2-s}$, $1-u=(s-\tfrac12)\log q+O((s-\tfrac12)^2)$. Hence $\Lambda(s)=(s-\tfrac12)^r(\log q)^r\,c\prod_{\alpha_j\neq1}(1-\alpha_j)+O((s-\tfrac12)^{r+1})$, and the product is $\prod_{\text{pairs}}\abs{1-\alpha}^2\cdot2^{\#\{\alpha_j=-1\}}>0$. \end{proof} For a cuspidal automorphic representation of $\GL_n$ over a function field which is self-dual, so that its $L$-function has real coefficients, and whose $L$-function is a polynomial in $u=q^{-s}$ after normalisation, the Ramanujan conjecture places the inverse roots on the circle, and the lemma shows that \emph{the leading Taylor coefficient at the centre is positive}. Yun and Zhang proved, for everywhere unramified cuspidal representations $\pi$ of $\PGL_2$ over a function field and suitable quadratic extensions, that the self-intersection of the $\pi$-component of the Heegner--Drinfeld cycle on the moduli of shtukas with $r$ modifications is a positive multiple of the $r$-th central derivative of the base-changed $L$-function \cite{YunZhang2017}; with the lemma, this self-intersection is nonnegative, a positivity statement for the intersection of algebraic cycles on a moduli space of shtukas obtained from the Riemann hypothesis. Feng, Yun and Zhang proved higher Siegel--Weil formulas for unitary groups of the same nature \cite{FengYunZhang2023}. \begin{remark}\label{rem:l3-rank-one} The lemma gives the sign of a single number. It applies to a Tate block of rank one, or to a height pairing on a one-dimensional isotypic part, when that number is related to a central derivative by a formula of Gross--Zagier type. It does not by itself give the sign predicted by the Hodge-type conjecture for a cycle on a projective variety: the moduli of shtukas are not proper, the classes involved are not known to be primitive, and the sign $(-1)^i$ of the conjecture must be matched with the sign conventions of the formula. We record it as the form in which the Riemann hypothesis, the archimedean information of Layer~III, can enter a sign computation; it complements the Ramanujan conjecture, the archimedean information of Layer~II. \end{remark} \subsection{Moduli of shtukas and Conjecture BLG-Sht}\label{ss:l3-card} The analogy with Layer~II suggests what is missing. On a Shimura variety, the Tate classes of a generic $\pi$-part are spanned by cycles of the basic locus, and Layer~II computes their intersection form as a Gram matrix. On a moduli space of shtukas, the corresponding statement would be that the cohomology classes of the $\pi_i$-parts that carry the height pairing of $\mathcal T$ are spanned by cycles constructed from a basic locus, and that their intersection form is a Gram matrix in a unitary model attached to the Satake parameters of $\pi_i$. \begin{conjecture}[BLG-Sht]\label{conj:blg-sht} Let $Y_\eta$ be a smooth projective threefold over a global function field $K$, and let $\rho\subset H^3(Y_{\bar\eta},\Ql)(2)$ be an irreducible constituent not of coniveau one, attached by \cref{thm:l3-lafforgue} to a cuspidal $\pi$ of $\GL_n(\mathbb A_K)$. There is a moduli space of shtukas $\Sht$ for $\GL_n$, with legs determined by the Hodge--Tate type of $\rho$, an algebraic correspondence between the total space of the pencil and $\Sht$ that identifies the $\rho$-part of $\mathcal T$ with a space of cycles on $\Sht$ supported on a basic locus, and a unitary model of these cycles in the sense of \cref{def:unitary-model}, with respect to which the height pairing is a Gram matrix up to the sign of the codimension. \end{conjecture} \begin{proposition}\label{prop:l3-card} Assume the hypotheses of \cref{prop:l3-pencil} on $\mathcal V\oplus\mathcal H$, that $\Theta$ is a polarisation of $\mathrm{Ab}^2(Y_{\bar\eta})$, and \cref{conj:blg-sht} for every constituent $\rho$ of $H^3(Y_{\bar\eta})$ not of coniveau one. Then $\HSC_2(Y)$ holds. \end{proposition} \begin{proof} By \cref{prop:l3-pencil} it suffices to prove positivity of the height pairing on $\mathcal T$. The part of $\mathcal T$ from algebraically trivial cycles is positive by \cref{prop:l3-ab}. The rest decomposes, by the Hecke action through the correspondence of \cref{conj:blg-sht} and the orthogonality of distinct Hecke eigenspaces, into $\rho$-parts; on each, the height pairing is a Gram matrix in a unitary model, and the unitarity of the model holds because the Satake parameters of $\pi$ lie on the circle, by \cref{thm:l3-lafforgue}; \cref{prop:l2-model} gives positivity when the Gram matrix is nondegenerate, which is part of the identification in the conjecture. \end{proof} The proposition is a reduction, not a theorem: its hypotheses include a conjecture that is, for the threefolds that arise as generic fibres of pencils on general fourfolds, as hard as the problem it reduces. Its use is to show where the difficulty lies. Every ingredient of the positivity is available over a function field (automorphy, the Ramanujan conjecture, the unitary models of Layer~II, the N\'eron--Tate positivity of abelian varieties), except the \emph{existence} of the correspondence to a moduli of shtukas and of the basic-locus cycles on it. This is the function-field form of the minimal arithmetic card of \cref{sec:minimal}. \subsection{Scope of Layer III}\label{ss:l3-summary} \begin{itemize}[leftmargin=2em] \item Proved: the blow-up decomposition \eqref{eq:l3-blowup}; the linear-algebra reduction \cref{prop:l3-pencil}; the positivity on the algebraically trivial part when $\Theta$ is a polarisation (\cref{prop:l3-ab}, from \cite{ACMV2025}); the positivity lemma \cref{lem:l3-rh}. \item Cited: automorphy and the Ramanujan conjecture over function fields \cite{Lafforgue2002,VLafforgue2018}; the Gross--Zagier formula of Yun and Zhang \cite{YunZhang2017}. \item Conjectural: \cref{conj:blg-sht}; the orthogonality and sign hypotheses of \cref{prop:l3-pencil} for a general pencil. \end{itemize} Layer~III is thus a map, not a proof. It shows that positivity is not the obstacle on a general fourfold either: over the function field, every source of positivity that Layer~II needs is present. What is not present is the geometry that would connect the fourfold to it.