\documentclass[11pt,reqno]{amsart} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern,amsmath,amssymb,amsthm,mathtools,array,enumitem} \usepackage[hmargin=30mm,vmargin=29mm]{geometry} \usepackage[expansion=false]{microtype} \usepackage[pagebackref,hidelinks]{hyperref} \usepackage{bookmark} \hypersetup{pdftitle={Classification of compact hyper-Kähler fourfolds}, pdfauthor={Buer Baji}, pdfkeywords={hyper-Kähler fourfold, Lagrangian fibration, abelian surface, polarization type}} \raggedbottom \setcounter{tocdepth}{1} \setlist[enumerate,1]{label=\textup{(\alph*)},ref=\textup{(\alph*)},leftmargin=*,itemsep=.18em,topsep=.3em} \setlength{\emergencystretch}{2em} \numberwithin{equation}{section} \theoremstyle{plain} \newtheorem{theorem}{Theorem}[section] \newtheorem{proposition}[theorem]{Proposition} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{corollary}[theorem]{Corollary} \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition} \newtheorem{notation}[theorem]{Notation} \newcommand{\PP}{\mathbb P} \newcommand{\CC}{\mathbb C} \newcommand{\QQ}{\mathbb Q} \newcommand{\RR}{\mathbb R} \newcommand{\ZZ}{\mathbb Z} \newcommand{\FF}{\mathbb F} \newcommand{\Fl}{\mathrm{Fl}} \newcommand{\Rad}{\mathcal R} \newcommand{\cE}{\mathcal E} \newcommand{\cO}{\mathcal O} \newcommand{\bfe}{\mathbf e} \newcommand{\into}{\hookrightarrow} \DeclareMathOperator{\Pic}{Pic} \DeclareMathOperator{\NS}{NS} \DeclareMathOperator{\rk}{rk} \DeclareMathOperator{\IC}{IC} \DeclareMathOperator{\Kum}{Kum} \DeclareMathOperator{\Br}{Br} \DeclareMathOperator{\Gal}{Gal} \DeclareMathOperator{\End}{End} \DeclareMathOperator{\Hom}{Hom} \DeclareMathOperator{\Ext}{Ext} \DeclareMathOperator{\Aut}{Aut} \DeclareMathOperator{\Sp}{Sp} \DeclareMathOperator{\SL}{SL} \DeclareMathOperator{\GL}{GL} \DeclareMathOperator{\PGL}{PGL} \DeclareMathOperator{\SO}{SO} \DeclareMathOperator{\tr}{tr} \DeclareMathOperator{\pr}{pr} \DeclareMathOperator{\Spec}{Spec} \DeclareMathOperator{\ord}{ord} \DeclareMathOperator{\Sym}{Sym} \DeclareMathOperator{\Alb}{Alb} \DeclareMathOperator{\Crit}{Crit} \DeclareMathOperator{\im}{im} \DeclareMathOperator{\diag}{diag} \DeclareMathOperator{\Frac}{Frac} \DeclareMathOperator{\Lie}{Lie} \DeclareMathOperator{\Pf}{Pf} \DeclareMathOperator{\Gr}{Gr} % The default build requires only pdfLaTeX. To export the runnable checks of Appendix A in a clean directory: % pdflatex "\def\HKExportChecks{1}\input{HK4_Lagrangian_fourfolds_revised.tex}" % Run the six resulting hk4-*.py files with Python 3; they use only the standard library. \title{Classification of compact hyper-K\"ahler fourfolds} \author{Buer Baji} \address{Qiuzheng College, Tsinhua University} \email{buerbajimath@gmail.com} \date{} \subjclass[2020]{14J42, 14K10, 14D06} \keywords{Lagrangian fibration, hyper-K\"ahler fourfold, abelian surface, polarization type} \begin{document} \begin{abstract} Let $X$ be a compact hyper-K\"ahler fourfold with $b_2(X)\ge5$. We prove that $X$ is deformation equivalent either to the Hilbert square of a K3 surface or to a generalized Kummer fourfold. \end{abstract} \maketitle \tableofcontents \section{Introduction}\label{sec:intro} In this paper, we classify the compact hyper-K\"ahler fourfolds $X$ with $b_2(X)\ge5$ up to deformation. \subsection{Main result} A \emph{hyper-K\"ahler manifold} is a simply connected compact K\"ahler manifold $X$ such that $H^0(X,\Omega_X^2)=\CC\sigma$ for a nowhere degenerate holomorphic two-form $\sigma$. We write $b_i(X)=\dim_\QQ H^i(X,\QQ)$. For a smooth projective surface $S$ and $n\ge1$, let $S^{[n]}$ be the Hilbert scheme of length-$n$ subschemes of $S$. For an abelian surface $S$, let $\Sigma_S\colon S^{[3]}\to S$ be the composite of the Hilbert--Chow morphism $S^{[3]}\to S^{(3)}$ with the addition morphism $S^{(3)}\to S$, and put $\Kum_2(S)\coloneqq\Sigma_S^{-1}(0)$. By \cite[\S\S6--7]{Bea83}, the fourfolds $S^{[2]}$, for a K3 surface $S$, and $\Kum_2(S)$, for an abelian surface $S$, are hyper-K\"ahler. A hyper-K\"ahler fourfold is \emph{of $\mathrm{K3}^{[2]}$-type} (resp.\ \emph{of $\Kum^{[2]}$-type}) if it is deformation equivalent to $S^{[2]}$ for a K3 surface $S$ (resp.\ to $\Kum_2(S)$ for an abelian surface $S$). \begin{theorem}\label{main} Let $X$ be a hyper-K\"ahler fourfold with $b_2(X)\ge5$. Then exactly one of the following holds. \begin{enumerate} \item $X$ is of $\mathrm{K3}^{[2]}$-type. \item $X$ is of $\Kum^{[2]}$-type. \end{enumerate} \end{theorem} \subsection{Strategy of the proof} A \emph{Lagrangian fibration} of a hyper-K\"ahler manifold $X$ is a surjective morphism $\pi\colon X\to B$ with connected fibers onto a normal projective variety $B$ such that $\dim B=\frac12\dim X$ and $\sigma|_{X_b}=0$ for a general fiber $X_b=\pi^{-1}(b)$. If $X$ is a projective hyper-K\"ahler fourfold and $\pi\colon X\to B$ is a Lagrangian fibration, then $B\simeq\PP^2$ by \cite{HX22}. Let $X$ be a hyper-K\"ahler fourfold with $b_2(X)\ge5$. The Beauville--Bogomolov form on $H^2(X,\ZZ)$ \cite[\S8]{Bea83} has signature $(3,b_2(X)-3)$, so it has a nonzero isotropic vector, and by the hyper-K\"ahler SYZ conjecture, proved in \cite[Theorem~1.1]{EM26}, $X$ is deformation equivalent to a hyper-K\"ahler fourfold with a Lagrangian fibration (Lemma~\ref{lem:SYZ}). For a smooth fiber $F$ of a Lagrangian fibration $\pi\colon X\to B$, the image of $H^2(X,\QQ)\to H^2(F,\QQ)$ is a line \cite{Ogu09}, and its primitive integral ample generator is a polarization of type $(1,d)$ for some $d\in\ZZ_{\ge1}$ (see Definition~\ref{def:theta}). The integer $d$ is the \emph{polarization type} of $\pi$; it is constant in families of Lagrangian fibrations \cite{Wie16}. For the generic fiber of a suitable deformation of $\pi$, we prove the following description. \begin{theorem}\label{main:structure} Let $\pi\colon X\to B$ be a Lagrangian fibration of a hyper-K\"ahler fourfold $X$ with $b_2(X)\ge5$, and put $K=\CC(\PP^2)$. There are arbitrarily small deformations of $\pi$ to Lagrangian fibrations $\pi_t\colon X_t\to\PP^2$ of projective hyper-K\"ahler fourfolds $X_t$ with $\rho(X_t)=2$ such that, for the abelian surface $A_K$ over $K$ acting simply transitively on the generic fiber of $\pi_t$, exactly one of the following holds. \begin{enumerate} \item $d=1$, and there is a K3 surface $S$ with $\Pic(S)=\ZZ H_S$, $H_S^2=2$ and $\PP^2=|H_S|$ such that $A_K\simeq\Pic^0_{C_K/K}$ for the generic member $C_K$ of $|H_S|$. Moreover, $X_t$ is birational to a moduli space of twisted sheaves on $S$. \item $d=3$, and there is an abelian surface $S$ with a globally generated ample line bundle $H_S$ of type $(1,3)$ and $\PP^2=|H_S|$ such that $A_K\simeq\ker(\Pic^0_{C_K/K}\to S_K)$ for the generic member $C_K$ of $|H_S|$. Moreover, $X_t$ is birational to a fiber of the Albanese morphism of a moduli space of twisted sheaves on $S$. \end{enumerate} \end{theorem} Both cases of Theorem~\ref{main:structure} occur: the relative compactified Jacobian of the linear system of a K3 surface of degree two \cite{Bea91,Mar96}, and the fibration of $\Kum_2(S)$ given by a polarization of type $(1,3)$ on $S$ \cite{Deb99,Yos01}. Theorem~\ref{main} follows from Lemma~\ref{lem:SYZ} and Theorem~\ref{main:structure}: the moduli space of Theorem~\ref{main:structure}(a) is a hyper-K\"ahler fourfold of $\mathrm{K3}^{[2]}$-type, the fiber of the Albanese morphism of Theorem~\ref{main:structure}(b) is a hyper-K\"ahler fourfold of $\Kum^{[2]}$-type \cite[Theorem~4.4 and Remark~4.5]{DM25}, and birational hyper-K\"ahler manifolds are deformation equivalent \cite[Theorem~4.6]{Huy99}; see Section~\ref{sec:proof}. The proof of Theorem~\ref{main:structure} has three parts. Let $\pi\colon X\to B$ be a Lagrangian fibration of a hyper-K\"ahler fourfold $X$ with $b_2(X)\ge5$. \emph{Numerical invariants.} In Section~\ref{sec:def}, we deform $\pi$ so that $X$ is projective, $B=\PP^2$, $\rho(X)=2$ and the monodromy of $H^1$ of the smooth fibers is Zariski dense in $\Sp_4$. Fix an ample line bundle $H$ on $X$ and a general line $\ell\subset B$. In Section~\ref{sec:crit}, we write the intersection number $\int_Xc_2(X)\,c_1(\pi^*\cO_B(1))\,c_1(H)$ as a sum of contributions of the singular fibers over $\ell$, which leads to a rational number $R$ and an integer $N$ (Definition~\ref{def:RN}). The Fujiki relations give $dR^2=992-4b_2(X)+b_3(X)$ (Proposition~\ref{prop:R}). In Section~\ref{sec:radon}, the Radon transform of the intersection complex of $R^1\pi_*\QQ$ produces a nonzero local system $W$ with finite monodromy on an open subset of the dual plane, of rank $r=N-b_2(X)-6$ (Proposition~\ref{prop:W}). In Section~\ref{sec:mod}, Siegel modular forms give $N\le30$ (Proposition~\ref{prop:N}) and restrict $(b_2(X),b_3(X),d)$ to the list of Proposition~\ref{prop:table}. \emph{Exclusions.} If $b_2(X)=23$, then $r=1$, and the double cover of the dual plane determined by $W$ is a K3 surface of degree two whose genus-two curves recover the smooth fibers (Section~\ref{sec:rankone}). If $b_2(X)<23$, the remaining values are $d\in\{2,3,5,7,8,10,12,20\}$. The values $d=5,7$ are excluded by fixed points of translations (Section~\ref{sec:transl}), $d=2,8$ by the monodromy of the polarization kernel (Sections~\ref{sec:small} and~\ref{sec:grad}), and $d=10,12,20$ by residual representations and the double plane (Sections~\ref{sec:twelve} and~\ref{sec:rkone12}). \emph{Reconstruction.} For $d=3$, the theta maps of the smooth fibers determine a pencil of plane cubics, which we identify with the Hesse pencil, and we recover an abelian surface $S$ of type $(1,3)$ with $B=|H_S|$ (Section~\ref{sec:rec}). Finally, a Brauer class computation identifies the generic fiber with a fiber of a moduli space of twisted sheaves (Section~\ref{sec:torsor}). Section~\ref{sec:proof} combines these steps. The finite computations used in Sections~\ref{sec:mod}, \ref{sec:rec}, \ref{sec:twelve} and~\ref{sec:rkone12} are described in Appendix~\ref{app:comp}. \subsection{Notation and conventions}\label{sec:conv} Throughout this paper, all varieties are over $\CC$. Cohomology of a complex variety with constant coefficients is taken in the classical topology, and cohomology without an indicated coefficient ring is rational. For a variety $S$ and a field extension $k/\CC$, we put $S_k\coloneqq S\times_{\Spec\CC}\Spec k$. We write $\NS(S)=\Pic(S)/\Pic^0(S)$ and $\rho(S)=\rk\NS(S)$. In intersection products we use a divisor and its first Chern class interchangeably. A \emph{general} (resp.\ \emph{very general}) point of a variety is a point of a dense Zariski open subset (resp.\ of the complement of a countable union of proper Zariski closed subsets). We put $\bfe(z)\coloneqq\exp(2\pi\sqrt{-1}z)$ for $z\in\CC$, and $\zeta_e\coloneqq\bfe(1/e)$ for $e\in\ZZ_{\ge1}$. For a prime number $p$, $v_p$ denotes the $p$-adic valuation. If $B=\PP^2$, we write $B^\vee$ for the dual plane. For a line $\ell\subset B$, let $[\ell]\in B^\vee$ be the corresponding point, and for $y\in B^\vee$, let $y^\vee\subset B$ be the line with $[y^\vee]=y$. For $x\in B$, let $x^\vee\coloneqq\{[\ell]:x\in\ell\}\subset B^\vee$ be the line of lines through $x$. Let $\Fl\coloneqq\{(x,y)\in B\times B^\vee:x\in y^\vee\}$ be the incidence variety, with projections $p_1\colon\Fl\to B$ and $p_2\colon\Fl\to B^\vee$. Perverse sheaves on a smooth surface are normalized so that a local system $\mathbb L$ on a dense open subset $j\colon U\into S$ gives the intersection complex $\IC_S(\mathbb L)\coloneqq j_{!*}(\mathbb L[2])$. For a complex $\mathcal K$ on $B$ (resp.\ $B^\vee$), the \emph{Radon transform} is $\Rad(\mathcal K)\coloneqq Rp_{2*}p_1^*\mathcal K[1]$ (resp.\ $\Rad^t(\mathcal K)\coloneqq Rp_{1*}p_2^*\mathcal K[1]$). Tate twists are denoted by $(a)$. For a free abelian group $\Lambda$ of finite rank with a nondegenerate alternating form $\theta\colon\Lambda\times\Lambda\to\ZZ$, we put $\Lambda^\#\coloneqq\{x\in\Lambda_\QQ:\theta(x,\Lambda)\subset\ZZ\}$ and $K(\theta)\coloneqq\Lambda^\#/\Lambda$. If $\rk\Lambda=4$ and $\theta$ is primitive, then $K(\theta)\simeq(\ZZ/d)^2$ and $\theta$ has elementary divisors $(1,d)$; we then say that $\theta$ has \emph{type} $(1,d)$. If $\rk\Lambda=2$, the \emph{degree} of $\theta$ is the positive generator of $\theta(\Lambda,\Lambda)$. For $v\in\Lambda$, the \emph{divisibility} of $v$ is the positive generator of the ideal $\theta(v,\Lambda)\subset\ZZ$. For an endomorphism $\varphi$ of $\Lambda$ of rank one, the \emph{Smith invariant} of $\varphi$ is the integer $n\ge1$ with $\varphi(\Lambda)=n\cdot(\varphi(\Lambda_\QQ)\cap\Lambda)$. \section{Deformation to a Lagrangian fibration and its monodromy}\label{sec:def} In this section, we deform $X$ to a projective hyper-K\"ahler fourfold with $\rho(X)=2$ which admits a Lagrangian fibration over $\PP^2$ (Lemmas~\ref{lem:SYZ}, \ref{lem:proj} and~\ref{lem:deform}), and we prove that the monodromy group of the first cohomology of the smooth fibers of this fibration is Zariski dense in $\Sp_4$ (Proposition~\ref{prop:mono}). Let $X$ be a hyper-K\"ahler fourfold with $b_2(X)\ge5$, and let $\sigma$ be a symplectic form on $X$. We write $\Lambda_X\coloneqq H^2(X,\ZZ)$, $q_X$ for the primitive integral Beauville--Bogomolov form on $\Lambda_X$, $\Lambda_X^\vee\coloneqq\{w\in\Lambda_{X,\QQ}:q_X(w,\Lambda_X)\subset\ZZ\}$, and $c_X\in\QQ_{>0}$ for the Fujiki constant, so that $\int_Xx^4=c_Xq_X(x)^2$ for $x\in H^2(X,\QQ)$ \cite{Fuj87}. Polarizing this identity gives \begin{equation}\label{eq:fujiki} \int_Xx_1x_2x_3x_4=\frac{c_X}3\bigl(q_X(x_1,x_2)q_X(x_3,x_4)+q_X(x_1,x_3)q_X(x_2,x_4)+q_X(x_1,x_4)q_X(x_2,x_3)\bigr). \end{equation} For $L_0\in\Lambda_X$ with $q_X(L_0)=0$, put $\mathcal D_{L_0}\coloneqq\{[\omega]\in\PP(L_0^\perp\otimes\CC):q_X(\omega)=0,\ q_X(\omega,\bar\omega)>0\}$; if moreover $q_X(L_0,\sigma)=0$, then $\mathcal D_{L_0}$ is the period domain of the pair $(X,L_0)$. For $w\in H^2(X,\RR)$, let $f_w$ be the function $[\omega]\mapsto q_X(w,\omega)$ in a local trivialization of $\cO(-1)$ near $[\sigma]$. \begin{lemma}\label{lem:SYZ} There is a hyper-K\"ahler fourfold which is deformation equivalent to $X$ and admits a Lagrangian fibration. \end{lemma} \begin{proof} Since $q_X$ is indefinite of rank $b_2(X)\ge5$, there is a primitive $L_0\in\Lambda_X$ with $q_X(L_0)=0$ \cite[Chapter~IV, \S3.2, Corollary~2]{Ser73}. Since $q_X$ has signature $(3,b_2(X)-3)$, the form induced by $q_X$ on $L_0^\perp/\QQ L_0$ is nondegenerate of signature $(2,b_2(X)-4)$. Hence the quadric $\mathcal Q_{L_0}\coloneqq\{q_X=0\}\subset\PP(L_0^\perp\otimes\CC)$ is irreducible and not contained in a hyperplane, and $\mathcal D_{L_0}$ is a nonempty open subset of $\mathcal Q_{L_0}$: for an orthonormal basis $(y_1,y_2)$ of a positive definite plane in $L_0^\perp\otimes\RR$, we have $[y_1+\sqrt{-1}y_2]\in\mathcal D_{L_0}$. For $w\in\Lambda_X\setminus\QQ L_0$, the linear form $q_X(w,-)$ does not vanish on $L_0^\perp$, so $\mathcal D_{L_0}\cap\{q_X(w,-)=0\}$ is a proper analytic subset of $\mathcal D_{L_0}$. Let $[\omega]\in\mathcal D_{L_0}$ be a point outside these countably many subsets. Then $\{w\in\Lambda_X:q_X(w,\omega)=0\}=\ZZ L_0$. Let $\mathfrak M$ be the connected component containing $(X,\mathrm{id}_{\Lambda_X})$ of the moduli space of marked hyper-K\"ahler manifolds $(X',\phi')$, where $\phi'\colon H^2(X',\ZZ)\to\Lambda_X$ is an isometry. By \cite[Theorem~8.1]{Huy99}, there is $(X',\phi')\in\mathfrak M$ with $\phi'_\CC(H^{2,0}(X'))=\CC\omega$. Since $\mathfrak M$ is connected and is locally isomorphic to the bases of the universal deformations of its points \cite[Section~1]{Huy99}, $X'$ is deformation equivalent to $X$. Let $\sigma'$ be a symplectic form on $X'$, put $L'\coloneqq\phi'^{-1}(L_0)$, and let $\mathcal C_{X'}\subset H^{1,1}(X',\RR)$ be the positive cone, that is, the connected component of $\{\alpha\in H^{1,1}(X',\RR):q_{X'}(\alpha)>0\}$ containing the K\"ahler classes. Since $H^1(X',\cO_{X'})=0$, we have $\NS(X')=\{w\in H^2(X',\ZZ):q_{X'}(w,\sigma')=0\}=\ZZ L'$, and $q_{X'}(L')=0$. Fix a K\"ahler class $\kappa'$ on $X'$. Since $q_{X'}$ has signature $(1,b_2(X)-3)$ on $H^{1,1}(X',\RR)$ and $L'\ne0$, we have $q_{X'}(L',\kappa')\ne0$. Replacing $L'$ by $-L'$, we may assume $q_{X'}(L',\kappa')>0$; then $L'$ lies in the closure of the convex cone $\mathcal C_{X'}$, so $L'+\epsilon\kappa'\in\mathcal C_{X'}$ for $\epsilon\in\RR_{>0}$. Let $C\subset X'$ be an irreducible curve. The linear form $\alpha\mapsto\int_C\alpha$ on $H^2(X',\QQ)$ is $q_{X'}(c_C,-)$ for some $c_C\in H^2(X',\QQ)$, and $q_{X'}(c_C,\sigma')=\int_C\sigma'=0$, so $c_C\in\NS(X')_\QQ=\QQ L'$. Since $\int_C\kappa'>0$, we get $c_C=\lambda_CL'$ with $\lambda_C\in\QQ_{>0}$, and hence $\int_C(L'+\epsilon\kappa')=\lambda_Cq_{X'}(L')+\epsilon\int_C\kappa'>0$ for $\epsilon\in\RR_{>0}$. By \cite{Bou01}, a class in $\mathcal C_{X'}$ which is positive on every rational curve of $X'$ is a K\"ahler class. Hence $L'+\epsilon\kappa'$ is a K\"ahler class for every $\epsilon\in\RR_{>0}$, so $L'$ is nef, and $L'$ is semiample by \cite[Theorem~1.1]{EM26}. Let $k\ge1$ be such that $kL'$ is globally generated, and let $\pi'\colon X'\to B'$ be the Stein factorization of the morphism defined by $|kL'|$. Then $B'$ is a normal projective variety, $\pi'$ has connected fibers, and $kL'=\pi'^*A$ for an ample line bundle $A$ on $B'$. Since $X'$ is deformation equivalent to $X$, \eqref{eq:fujiki} holds for $X'$ with $q_{X'}$ and the same constant $c_X$. Hence $\int_{X'}L'^4=\int_{X'}L'^3\kappa'=0$ and $\int_{X'}L'^2\kappa'^2=\frac{2c_X}3q_{X'}(L',\kappa')^2>0$, so $\dim B'=2$. For a general fiber $F'$ of $\pi'$, which is a smooth compact surface, the class of $F'$ is $(A^2)^{-1}(kL')^2$, so \eqref{eq:fujiki} gives $\int_{F'}\sigma'\bar\sigma'=\frac{k^2c_X}{3A^2}\bigl(2q_{X'}(L',\sigma')q_{X'}(L',\bar\sigma')+q_{X'}(L')q_{X'}(\sigma',\bar\sigma')\bigr)=0$. Since $\int_{F'}\tau\bar\tau>0$ for every nonzero holomorphic two-form $\tau$ on $F'$, we get $\sigma'|_{F'}=0$. Hence $\pi'$ is a Lagrangian fibration. \end{proof} \noindent For the use of isotropic classes when $b_2\ge5$, compare with \cite[Corollary~1.2]{EM26}. By Lemma~\ref{lem:SYZ}, we may replace $X$ by a deformation equivalent hyper-K\"ahler fourfold with a Lagrangian fibration. From now on, we fix a Lagrangian fibration $\pi\colon X\to B$. \begin{lemma}\label{lem:proj} There are arbitrarily small deformations of $\pi$ to Lagrangian fibrations $\pi_t\colon X_t\to\PP^2$ of projective hyper-K\"ahler fourfolds $X_t$. \end{lemma} \begin{proof} Let $H_B$ be a very ample line bundle on $B$, and put $L_B\coloneqq c_1(\pi^*H_B)$. Since $L_B$ is pulled back from the surface $B$, we have $L_B^4=0$, so $q_X(L_B)=0$, and $q_X(L_B,\sigma)=0$ since $L_B$ is of type $(1,1)$. Since $q_X$ is nondegenerate, there is $u_0\in\Lambda_X^\vee$ with $c\coloneqq q_X(L_B,u_0)\ne0$. Let $\Pi\subset H^2(X,\RR)$ be the plane spanned by $\mathrm{Re}\,\sigma$ and $\mathrm{Im}\,\sigma$. Then $\Pi\subset L_B^\perp$, and $q_X|_\Pi$ is positive definite. The form $q_X$ has signature $(3,b_2(X)-3)$, so $L_B^\perp/\RR L_B$ has signature $(2,b_2(X)-4)$, and the image of $\Pi$ in $L_B^\perp/\RR L_B$ is a positive definite plane. Since $b_2(X)\ge5$, there is $v\in L_B^\perp$ with $q_X(v,\Pi)=0$ and $q_X(v)<0$. The lattice $\Lambda_X^\vee\cap L_B^\perp$ spans $L_B^\perp$, so there are $v_j\in\Lambda_X^\vee\cap L_B^\perp$, $j\in\ZZ_{\ge1}$, such that $\{v_j-jv\}_j$ is bounded. Put $u_j\coloneqq u_0+v_j$. Then $q_X(L_B,u_j)=c$ and $\lim_{j\to\infty}u_j/j=v$. We have $f_v([\sigma])=0$, $v$ defines a tangent vector of $\mathcal D_{L_B}$ at $[\sigma]$ since $q_X(\sigma,v)=0$, and the derivative of $f_v$ along this vector is $q_X(v)\ne0$. By the implicit function theorem with parameters, for $j\gg0$ the hypersurface $\{f_{u_j/j}=0\}\subset\mathcal D_{L_B}$ contains points $[\sigma_j]$ with $\lim_{j\to\infty}[\sigma_j]=[\sigma]$. By the local Torelli theorem for the pair $(X,L_B)$ and \cite[Theorem~1.2 and Corollary~1.3]{Mat16}, every point of $\mathcal D_{L_B}$ near $[\sigma]$ is the period of a deformation $(X_t,L_B)$ of $(X,L_B)$ such that $L_B=c_1(\pi_t^*H_t)$ for a Lagrangian fibration $\pi_t\colon X_t\to B_t$ deforming $\pi$ and a very ample line bundle $H_t$ on $B_t$ deforming $H_B$. Put $M_j\coloneqq\QQ L_B+\QQ u_j$. Its Gram matrix $\left(\begin{smallmatrix}0&c\\c&q_X(u_j)\end{smallmatrix}\right)$ has determinant $-c^2<0$, so $M_j$ contains a class $w$ with $q_X(w)>0$. Let $\mathcal Q_j\subset\PP(M_j^\perp\otimes\CC)$ be the quadric $\{q_X=0\}$, and put $\mathcal D_j\coloneqq\mathcal D_{L_B}\cap\mathcal Q_j$; then $[\sigma_j]\in\mathcal D_j$. For $[\sigma_t]\in\mathcal D_j$ near $[\sigma]$, we have $M_j\subset\NS(X_t)_\QQ$, so $X_t$ is projective by \cite[Theorem~3.11]{Huy99}, and $B_t\simeq\PP^2$ by \cite{HX22}. Since $\lim_{j\to\infty}[\sigma_j]=[\sigma]$, this proves the lemma. \end{proof} \noindent For the deformation theory of Lagrangian fibrations used here, see \cite[Corollary~1.3]{Mat16} and \cite[Section~3]{Wie16}. \smallskip By Lemma~\ref{lem:proj}, $X$ is deformation equivalent to a projective hyper-K\"ahler fourfold with a Lagrangian fibration over $\PP^2$. From now on until Section~\ref{sec:proof}, we suppose that $X$ is projective and $B=\PP^2$, and we put $L\coloneqq c_1(\pi^*\cO_B(1))\in\Lambda_X$. \begin{lemma}\label{lem:Lprim} The class $L$ is primitive in $\Lambda_X$, and $q_X(L)=0$. \end{lemma} \begin{proof} By \cite[Theorem~1.1]{KOS26}, $\pi$ has no multiple fiber over a prime divisor of $B$. By \cite[Remark~3.5]{KOS26}, this implies that $\pi^*\cO_B(1)$ is primitive in $\Pic(X)$. Since $H^1(X,\cO_X)=0$, the Lefschetz $(1,1)$ theorem gives $\Pic(X)=H^{1,1}(X)\cap\Lambda_X$, which is saturated in $\Lambda_X$. Hence $L$ is primitive in $\Lambda_X$. Since $L$ is pulled back from the surface $B$, we have $L^4=0$, and hence $c_Xq_X(L)^2=0$ by \eqref{eq:fujiki}. This proves the lemma. \end{proof} \noindent The primitivity of $L$ also follows from \cite[Theorem~1.1]{KV19} once multiple fibers in codimension one are excluded; see \cite[Remark~3.5]{KOS26}. \begin{lemma}\label{lem:deform} There are arbitrarily small deformations of $(X,\pi)$ to Lagrangian fibrations $\pi_t\colon X_t\to\PP^2$ of projective hyper-K\"ahler fourfolds such that the following hold. \begin{enumerate} \item $\rho(X_t)=2$ and $\End_{\mathrm{HS}}(T(X_t))=\QQ$, where $T(X_t)\coloneqq\NS(X_t)_\QQ^{\perp}\subset H^2(X_t,\QQ)$ with respect to $q_{X_t}$. \item There is $u\in H_2(X_t,\ZZ)$ with $\langle L,u\rangle=1$ and $\langle\omega,u\rangle=0$ for every $\omega\in H^{2,0}(X_t)\oplus H^{0,2}(X_t)$. \end{enumerate} \end{lemma} \begin{proof} By Lemma~\ref{lem:Lprim}, there is $u_0\in\Lambda_X^\vee$ with $q_X(L,u_0)=1$. Let $u_j$, $[\sigma_j]$, $M_j$, $\mathcal Q_j$ and $\mathcal D_j$ be as in the proof of Lemma~\ref{lem:proj}, constructed with $H_B=\cO_B(1)$, $L_B=L$ and this $u_0$, and fix $j\gg0$. For $[\sigma_t]\in\mathcal D_j$ near $[\sigma]$, we have $B_t\simeq\PP^2$ and $H_t\simeq\cO_{B_t}(1)$, since $H_t$ deforms $\cO_B(1)$, so $L=c_1(\pi_t^*\cO_{B_t}(1))$. Since $\dim M_j^\perp=b_2(X)-2\ge3$ and $q_X|_{M_j^\perp}$ is nondegenerate, the quadric $\mathcal Q_j$ is irreducible and not contained in a hyperplane, and $\mathcal D_j$ is a nonempty open subset of $\mathcal Q_j$. Let $[\sigma_t]\in\mathcal D_j$ be a very general point near $[\sigma_j]$. Then $q_X(w,\sigma_t)\ne0$ for all $w\in\Lambda_X\setminus M_j$, since $q_X|_{M_j}$ is nondegenerate and $\mathcal Q_j$ is not contained in the hyperplane $\{q_X(w,-)=0\}$, so $\NS(X_t)_\QQ=M_j$ and $T(X_t)=M_j^\perp$. Let $\varphi\in\End_\QQ(M_j^\perp)\setminus\QQ\cdot\mathrm{id}$. An endomorphism of Hodge structures preserves $H^{2,0}(X_t)=\CC\sigma_t$, so $\sigma_t$ would be an eigenvector of $\varphi_\CC$. The eigenvectors of $\varphi_\CC$ lie in a finite union of proper linear subspaces of $M_j^\perp\otimes\CC$, whose intersection with $\mathcal Q_j$ is a proper closed subset. Since $\End_\QQ(M_j^\perp)$ is countable, (a) holds for very general $[\sigma_t]\in\mathcal D_j$. For (b), the linear form $q_X(u_j,-)$ is integral on $\Lambda_X=H^2(X_t,\ZZ)$ and vanishes on $\sigma_t$ and $\bar\sigma_t$. Since $X_t$ is simply connected, the universal coefficient theorem gives a surjection $H_2(X_t,\ZZ)\to\Hom(H^2(X_t,\ZZ),\ZZ)$. Any preimage $u$ of $q_X(u_j,-)$ satisfies $\langle L,u\rangle=q_X(L,u_j)=1$ and $\langle\omega,u\rangle=0$ for $\omega\in H^{2,0}(X_t)\oplus H^{0,2}(X_t)$. This proves the lemma. \end{proof} \begin{notation}\label{not:main} From now on until Section~\ref{sec:proof}, we replace $(X,\pi)$ by a deformation as in Lemma~\ref{lem:deform}. Let $B^\circ\subset B$ be the largest open subset over which $\pi$ is smooth, $\Delta\coloneqq B\setminus B^\circ$ the discriminant, $X^\circ\coloneqq\pi^{-1}(B^\circ)$ and $F\coloneqq X_b$ for $b\in B^\circ$. Let $\pi_A\colon A\to B^\circ$ be the identity component of the relative automorphism scheme of $X^\circ/B^\circ$; it is an abelian scheme, and $X^\circ$ is an $A$-torsor. Let $\Lambda$ be the local system $R^1\pi_*\ZZ_{X^\circ}{}^\vee$, so that $\Lambda_b=H_1(A_b,\ZZ)=H_1(F,\ZZ)$ canonically (translations act trivially on cohomology), and let $V\coloneqq R^1\pi_*\QQ_{X^\circ}=\Hom(\Lambda,\QQ)$. We put $K\coloneqq\CC(B)$ and write $A_K$ for the generic fiber of $A$. \end{notation} \begin{lemma}\label{lem:inv} The image of $H^2(X)\to H^2(F)$ is equal to $H^2(F)^{\pi_1(B^\circ,b)}$, and it has dimension one. \end{lemma} \begin{proof} Since $[F]=L^2$, \eqref{eq:fujiki} gives $\int_Fxy=\frac{2c_X}3q_X(L,x)q_X(L,y)$ for $x,y\in H^2(X)$. Let $H$ be an ample line bundle on $X$, and let $x\in H^2(X,\RR)$. Since $H^{2,0}(X)=\CC\sigma$ and $\sigma|_F=0$, the class $x|_F$ is of type $(1,1)$. If $q_X(L,x)=0$, then $\int_Fx\cdot c_1(H)=\int_Fx^2=0$, and the Hodge index theorem on $F$ gives $x|_F=0$. Writing $x=\frac{q_X(L,x)}{q_X(L,H)}c_1(H)+x'$ with $q_X(L,x')=0$, we obtain $x|_F\in\RR\,c_1(H)|_F$. Since $c_1(H)|_F\ne0$, the image is a line. The global invariant cycle theorem \cite[Th\'eor\`eme~4.1.1]{Del71} for the smooth projective morphism $X^\circ\to B^\circ$ and the smooth projective compactification $X$ of $X^\circ$ identifies this image with $H^2(F)^{\pi_1(B^\circ,b)}$. This proves the lemma. \end{proof} \noindent The first assertion is due to Oguiso; see \cite{Ogu09}. \begin{definition}\label{def:theta} Let $\theta\in H^2(F,\ZZ)$ be the primitive generator of $H^2(F,\ZZ)\cap\im(H^2(X)\to H^2(F))$ which is ample on $F$. Under $H^2(F,\ZZ)=\bigwedge^2\Lambda_b^\vee$, $\theta$ is a primitive alternating form on $\Lambda_b$; let $(1,d)$ be its type. By Lemma~\ref{lem:inv}, $\theta$ is monodromy invariant, so it defines a polarization $\lambda_\theta\colon A\to A^\vee$ of type $(1,d)$ with kernel the finite \'etale group scheme $K(\theta)$. For an ample line bundle $H$ on $X$, we define $m_H\in\ZZ_{\ge1}$ by $c_1(H)|_F=m_H\theta$. \end{definition} \begin{lemma}\label{lem:types} The following hold. \begin{enumerate} \item The discriminant $\Delta$ contains a curve. \item Let $\Delta_i\subset\Delta$ be an irreducible curve, and let $b\in\Delta_i$ be general. Then $X_b$ is reduced and of type $\mathrm I_n$ for some $n\in\ZZ_{\ge1}$, $\mathrm{II}$, $\mathrm{III}$ or $\mathrm{IV}$ in the sense of \cite{HO09}. \item Let $T$ be the action on $\Lambda_{b'}$, $b'\in B^\circ$ near $b$, of a positively oriented meridian around $\Delta_i$ at $b$. If $X_b$ is of type $\mathrm I_n$, then $(T-1)^2=0$ and $\rk(T-1)=1$. If $X_b$ is of type $\mathrm{II}$, $\mathrm{III}$ or $\mathrm{IV}$, let $e=6,4,3$, respectively; then $\Lambda_\QQ=\ker(T-1)\oplus\im(T-1)$, $\rk(T-1)=2$, and $T|_{\im(T-1)}$ has eigenvalues $\zeta_e^{\pm1}$. \end{enumerate} \end{lemma} \begin{proof} If $\Delta$ were finite, then $B^\circ$ would be simply connected, and $H^2(F)^{\pi_1(B^\circ,b)}=H^2(F)$ would have dimension six, contrary to Lemma~\ref{lem:inv}. This proves (a). Since $X$ is projective with $\rho(X)=2$, (b) follows from \cite[Corollary~1.2]{KOS26}. For (c), let $D\subset B$ be a small disc meeting $\Delta_i$ transversally at $b$. Then $\pi^{-1}(D)\to D$ is a minimal abelian fibration with trivial relative canonical bundle and reduced central fiber, and it admits a holomorphic section through a smooth point of $X_b$. Moreover, the affine part of its N\'eron model has dimension at most one. Hence the local classification \cite[Corollary~6.2.4 and Table~5]{Kim26} applies and gives (c). \end{proof} \begin{lemma}\label{lem:period} The period map of the variation of Hodge structures $V$ on $B^\circ$ has generic rank two. \end{lemma} \begin{proof} Suppose first that the smooth fibers of $\pi$ are isotrivial. By \cite[Theorem~1.3]{KLM24}, they are isogenous to $E_0^2$ for an elliptic curve $E_0$. If $E_0$ has complex multiplication, then \cite[Lemma~6.5]{KLM24} embeds the imaginary quadratic field $\End^0(E_0)$ into $\End_{\mathrm{HS}}(T(X))$, contrary to Lemma~\ref{lem:deform}(a). If $\End^0(E_0)=\QQ$, then, since $\pi$ has no multiple fibers over prime divisors, \cite[Corollary~4.12 and the proof of Theorem~1.7]{KLM24} show that the general singular fibers are of type $\mathrm I_0^*$, contrary to Lemma~\ref{lem:types}(b). Hence the smooth fibers are not isotrivial, and \cite[Theorem~1]{Bak25} shows that the period map is generically finite onto its image. Since $\dim B^\circ=2$, this proves the lemma. \end{proof} \noindent A similar dichotomy for Lagrangian fibrations is proved in \cite{vGV16} under additional assumptions. \begin{lemma}\label{lem:end} Let $\bar\eta$ be a geometric generic point of $B^\circ$. Then $\End^0(A_{\bar\eta})=\QQ$. \end{lemma} \begin{proof} Put $D_{\bar\eta}\coloneqq\End^0(A_{\bar\eta})$. Every element of $D_{\bar\eta}$ extends to an endomorphism of the pullback of $A$ to a finite \'etale cover of a dense open subset of $B^\circ$. Hence parallel transport preserves $D_{\bar\eta}\subset\End(\Lambda_{b,\QQ})$, and $\pi_1(B^\circ,b)$ acts on $D_{\bar\eta}$ by algebra automorphisms; here we use that removing a divisor from $B^\circ$ induces a surjection on fundamental groups. By rigidity of homomorphisms of abelian schemes and countability of the components of the relative scheme of homomorphisms, $\End^0(A_b)=D_{\bar\eta}$ for very general $b\in B^\circ$. Suppose $D_{\bar\eta}\ne\QQ$. By the classification of endomorphism algebras of abelian surfaces and their period domains \cite[\S2]{MZ99}, the locus of abelian surfaces with endomorphism algebra containing $D_{\bar\eta}$ has dimension at most one unless $D_{\bar\eta}$ is a real quadratic field or $D_{\bar\eta}\simeq\QQ\times\QQ$. By Lemma~\ref{lem:period}, $D_{\bar\eta}$ is of one of these two kinds. In both cases the Rosati involution of $\theta$ is the identity on $D_{\bar\eta}$, the algebra automorphism group of $D_{\bar\eta}$ has order two, and $\Lambda_{b,\RR}=\Lambda_1\oplus\Lambda_2$ with $\dim\Lambda_1=\dim\Lambda_2=2$ for the two characters of $D_{\bar\eta}\otimes\RR\simeq\RR\times\RR$. An element $\gamma\in\pi_1(B^\circ,b)$ acting nontrivially on $D_{\bar\eta}$ satisfies $\gamma(\Lambda_1)=\Lambda_2$ and $\gamma(\Lambda_2)=\Lambda_1$, hence $\tr(\gamma|\Lambda_{b,\QQ})=0$. By Lemma~\ref{lem:types}(c), the meridian $T$ around a general point of a curve $\Delta_i\subset\Delta$ has $\tr(T)=4,3,2,1$ for the types $\mathrm I_n,\mathrm{II},\mathrm{III},\mathrm{IV}$, respectively. Hence every such meridian acts trivially on $D_{\bar\eta}$. Since $B$ is simply connected, these meridians normally generate $\pi_1(B^\circ,b)$, so $\pi_1(B^\circ,b)$ acts trivially on $D_{\bar\eta}$. For $a\in D_{\bar\eta}$, the form $\theta(a\,\cdot\,,\cdot)$ is alternating because $a$ is fixed by the Rosati involution, and it is monodromy invariant. For $a\in D_{\bar\eta}\setminus\QQ$, the forms $\theta$ and $\theta(a\,\cdot\,,\cdot)$ are linearly independent elements of $H^2(F)^{\pi_1(B^\circ,b)}$, contrary to Lemma~\ref{lem:inv}. This proves the lemma. \end{proof} \begin{proposition}\label{prop:mono} The Zariski closure of the image of $\pi_1(B^\circ,b)\to\GL(\Lambda_{b,\QQ})$ is $\Sp(\Lambda_{b,\QQ},\theta)$. \end{proposition} \begin{proof} Let $G$ be this Zariski closure, and let $G^0$ be its identity component. By Lemma~\ref{lem:end} and \cite[\S2]{MZ99}, the Hodge group of a very general fiber $A_b$ is $\Sp(\Lambda_{b,\QQ},\theta)$. By Andr\'e's normality theorem \cite[Theorem~1]{And92}, $G^0$ is a normal subgroup of $\Sp(\Lambda_{b,\QQ},\theta)$. Suppose that $G^0=1$. Then the monodromy group is finite, and the local system $\Lambda$ becomes trivial on a finite \'etale cover $\widetilde B^\circ\to B^\circ$. The period map then lifts to a holomorphic map from $\widetilde B^\circ$ to the bounded realization of the Siegel space of degree two. Its coordinates are bounded holomorphic functions, which extend to a smooth projective compactification of $\widetilde B^\circ$ by the Riemann extension theorem and hence are constant. This contradicts Lemma~\ref{lem:period}. Hence $G^0\ne1$. Since $\Sp_4$ is almost simple, $G^0=\Sp(\Lambda_{b,\QQ},\theta)$. Since $G$ preserves $\theta$, we obtain $G=\Sp(\Lambda_{b,\QQ},\theta)$. This proves the proposition. \end{proof} \begin{corollary}\label{cor:irr} The following hold. \begin{enumerate} \item The local system $V\otimes\CC$ on $B^\circ$ is irreducible, and $H^0(B^\circ,V)=0$. \item For every finite \'etale cover $U'\to U$ of a dense open subset $U\subset B^\circ$, the pullback of $V\otimes\CC$ to $U'$ is irreducible. \end{enumerate} \end{corollary} \begin{proof} The standard representation of $\Sp_4(\CC)$ is irreducible, and a finite-index subgroup of a Zariski dense subgroup of the connected group $\Sp_4$ is Zariski dense. Removing a divisor from $B^\circ$ induces a surjection on fundamental groups. This proves the corollary. \end{proof} \section{The critical locus over a general line}\label{sec:crit} In this section, for an ample line bundle $H$ on $X$, we express the intersection number $\int_Xc_2(X)\,L\,c_1(H)$ as a sum of contributions of the singular fibers over a general line, and we relate its square to the Betti numbers of $X$ (Proposition~\ref{prop:R}). \begin{notation}\label{not:line} Let $\ell\subset B$ be a general line. Then $\ell$ meets every irreducible curve $\Delta_i\subset\Delta$ transversally at $\deg\Delta_i$ general points of $\Delta_i$, and $\ell\cap\Delta$ contains no point of a zero-dimensional component of $\Delta$. Put $Y_\ell\coloneqq\pi^{-1}(\ell)$ and $g_\ell\coloneqq\pi|_{Y_\ell}\colon Y_\ell\to\ell$. For $x\in\ell\cap\Delta$, let $T_x$ be the action on $\Lambda$ of a positively oriented loop in $\ell$ around $x$; for $x\in\ell\cap B^\circ$, put $T_x\coloneqq1$. By Lemma~\ref{lem:types}, every $x\in\ell\cap\Delta$ is of one of the following two kinds. \begin{enumerate} \item $x$ is \emph{multiplicative}, that is, $X_x$ is of type $\mathrm I_{n_x}$ with $n_x\in\ZZ_{\ge1}$. We let $v_x\in\Lambda$ be a primitive generator of $(T_x-1)\Lambda_\QQ\cap\Lambda$, and $\delta_x$ be the divisibility of $v_x$ with respect to $\theta$. \item $x$ is \emph{additive}, that is, $X_x$ is of type $\mathrm{II}$, $\mathrm{III}$ or $\mathrm{IV}$. We put $(e_x,\nu_x,\mu_x)=(6,1,2)$, $(4,2,3)$, $(3,3,4)$, respectively, and \[ \Lambda_{0,x}\coloneqq\ker(T_x-1),\quad \Lambda_{1,x}\coloneqq(T_x-1)\Lambda_\QQ\cap\Lambda,\quad s_x\coloneqq[\Lambda:\Lambda_{0,x}\oplus\Lambda_{1,x}]. \] We let $\alpha_{i,x}$ be the degree of $\theta|_{\Lambda_{i,x}}$ for $i=0,1$. \end{enumerate} By Lemma~\ref{lem:types}(c), $\nu_x=\det(1-T_x|\Lambda_{1,x})$ at an additive point, since $|1-\zeta_e|^2=1,2,3$ for $e=6,4,3$. \end{notation} \begin{lemma}\label{lem:crit} Let $\Crit(g_\ell)\subset Y_\ell$ be the critical subscheme of $g_\ell$. \begin{enumerate} \item $\Crit(g_\ell)$ has pure dimension one, and $[\Crit(g_\ell)]=c_2(X)|_{Y_\ell}$ in $H^4(Y_\ell)$. \item Every irreducible component of $\Crit(g_\ell)_{\mathrm{red}}$ is an elliptic curve contained in $\mathrm{Sing}(X_x)$ for some $x\in\ell\cap\Delta$. Its multiplicity in $\Crit(g_\ell)$ is $1$ if $x$ is multiplicative, and $\mu_x$ if $x$ is additive. \end{enumerate} \end{lemma} \begin{proof} By Bertini's theorem, $Y_\ell$ is smooth. Its conormal line $\cO_{Y_\ell}(-L)$ is a subbundle of $\Omega^1_X|_{Y_\ell}$. Let $\mathcal U\coloneqq\cO_{Y_\ell}(-L)^\perp/\cO_{Y_\ell}(-L)$, where $\perp$ is taken with respect to the symplectic form on $\Omega^1_X$ dual to $\sigma$; it is a symplectic vector bundle of rank two and a subbundle of $\Omega^1_{Y_\ell}=\Omega^1_X|_{Y_\ell}/\cO_{Y_\ell}(-L)$. Pullbacks of functions on $B$ Poisson commute, so the differential $dg_\ell\colon g_\ell^*\Omega^1_\ell\to\Omega^1_{Y_\ell}$ factors through $\mathcal U$. Hence $\Crit(g_\ell)$ is the zero scheme of a section of $\mathcal U\otimes g_\ell^*T_\ell$. By the local descriptions \cite[Theorems~5.1.1 and~5.2.1]{Kim26}, the support of this zero scheme is the union of the elliptic curves $\mathrm{Sing}(X_x)$, $x\in\ell\cap\Delta$, which has pure dimension one. Since $Y_\ell$ is smooth and $\rk\mathcal U=2$, the section is regular, and $[\Crit(g_\ell)]=c_2(\mathcal U\otimes g_\ell^*T_\ell)=c_2(\mathcal U)$, where we use $c_1(\mathcal U)=0$ and $c_1(g_\ell^*T_\ell)^2=0$. The filtration $\cO(-L)\subset\cO(-L)^\perp\subset\Omega^1_X|_{Y_\ell}$ has graded pieces $\cO(-L)$, $\mathcal U$, $\cO(L)$, so $c_2(\Omega^1_X)|_{Y_\ell}=c_2(\mathcal U)-L^2|_{Y_\ell}=c_2(\mathcal U)$ because $L|_{Y_\ell}$ is pulled back from $\ell$. This proves (a) and the first assertion of (b). Let $y$ be a general point of an elliptic curve in $\mathrm{Sing}(X_x)$. Choose Darboux coordinates $(t,s,z,w)$ at $y$ with $Y_\ell=\{t=0\}$ and $\sigma=dt\wedge ds+dz\wedge dw$. Let $f$ be a function on $B$ near $x$ whose restriction to $\ell$ is a coordinate centered at $x$. Since $\{t,\pi^*f\}=0$, the function $\pi^*f$ does not depend on $s$, so $g_\ell^*f|_\ell=h(z,w)$ for a holomorphic function $h$. Transversally to the elliptic curve, $\Crit(g_\ell)$ is defined by $(\partial_zh,\partial_wh)$, and its length is the Milnor number of $h$. For the types $\mathrm I_n,\mathrm{II},\mathrm{III},\mathrm{IV}$, the plane curve germ $\{h=0\}$ is a node, a cusp, a tacnode and an ordinary triple point, with Milnor numbers $1,2,3,4$, respectively \cite[Theorem~5.2.1]{Kim26}; for the additive types we compute on the finite \'etale cover of \cite[Proposition~4.2.4]{Kim26}, which does not change the length. This proves (b). \end{proof} \noindent For the structure of the general singular fibers used here, see also \cite[Theorem~1.1]{HO09}. \begin{lemma}\label{lem:mult} Let $x\in\ell\cap\Delta$ be multiplicative. Then the following hold. \begin{enumerate} \item Each of the $n_x$ elliptic curves in $\mathrm{Sing}(X_x)$ has $H$-degree $m_Hd/\delta_x$. \item The Smith invariant of $T_x-1$ is $n_x$. \item There is a sign $\epsilon\in\{\pm1\}$, independent of $x$, such that $T_x(y)=y+\epsilon\frac{n_x}{\delta_x}\theta(y,v_x)v_x$ for $y\in\Lambda$. \end{enumerate} \end{lemma} \begin{proof} Let $D\subset\ell$ be a small disc around $x$, and choose a holomorphic section of $g_\ell$ over $D$ through a smooth point of $X_x$. By \cite[Proposition~2.2.2]{Kim26}, it identifies the smooth locus of $g_\ell^{-1}(D)\to D$ with the N\'eron model $\mathcal N$ of $A|_{D\setminus\{x\}}$. The identity component $\mathcal N_x^0$ of its special fiber is an extension of an elliptic curve $E_x$ by $\CC^*$, and its closure in $X_x$ is a ruled surface $\PP_{E_x}(\cO\oplus\mathcal M)$ with $\mathcal M\in\Pic^0(E_x)$, whose two sections are glued to the neighboring components by translations \cite[Theorem~5.3.2]{Kim26}. Let $\mathsf K\subset\mathcal N^0_x$ be the maximal compact subgroup, a real three-dimensional torus, which is a deformation retract of $\mathcal N_x^0$. Transporting $\mathsf K$ into a nearby smooth fiber by a smooth local trivialization of $g_\ell^{-1}(D)$ near $\mathsf K$ which maps the identity section to itself gives a homomorphism $i\colon H_1(\mathsf K,\ZZ)\to\Lambda$ with image in $\Lambda^{T_x}$. For $a\ge2$, lifting a based loop along multiplication by $a$ identifies its class modulo $a$ with the endpoint of the lift in $\mathcal N_x^0[a]$; this lift varies continuously in the nearby fibers, since multiplication by $a$ is \'etale. Hence $i\bmod a$ is injective for every $a\ge2$, so $i$ is injective with saturated image. Since $\rk\Lambda^{T_x}=3$, $i$ identifies $H_1(\mathsf K,\ZZ)$ with $\Lambda^{T_x}$. Since $T_x$ is a unipotent symplectic transformation with $\rk(T_x-1)=1$, there is $c_x\in\QQ^*$ with $T_x(y)=y+c_x\theta(y,v_x)v_x$, and $\Lambda^{T_x}=v_x^\perp\coloneqq\{y\in\Lambda:\theta(y,v_x)=0\}$. The class $c_1(H)$ restricted to the ruled surface is a class from $E_x$ plus a multiple of a boundary section, which is disjoint from $\mathcal N_x^0$. Hence $c_1(H)|_{\mathsf K}$ is pulled back from $E_x$, and the class of a circle fiber of $\mathsf K\to E_x$ lies in the radical $\ZZ v_x$ of $\theta|_{v_x^\perp}$; it is $\pm v_x$ since it is primitive. Since $c_1(\mathcal M)=0$, the circle bundle $\mathsf K\to E_x$ has a continuous section, which is homotopic in $\PP_{E_x}(\cO\oplus\mathcal M)$ to a boundary section. Let $a,b\in\Lambda$ be the transported classes of a basis of $H_1$ of this section, and choose $w\in\Lambda$ such that $(v_x,a,b,w)$ is a basis of $\Lambda$. Since $\theta(v_x,a)=\theta(v_x,b)=0$, we get $\theta(v_x,\Lambda)=\theta(v_x,w)\ZZ$, so $|\theta(v_x,w)|=\delta_x$, and the Pfaffian of $\theta$ in this basis gives $d=|\theta(v_x,w)\theta(a,b)|=\delta_x|\theta(a,b)|$. Hence the boundary sections of the closure of $\mathcal N_x^0$ have $H$-degree $m_H|\theta(a,b)|=m_Hd/\delta_x$. The same argument applies to every component of the special fiber of $\mathcal N$, which is the translate of $\mathcal N_x^0$ by a section of $\mathcal N$ over $D$. Since every elliptic curve in $\mathrm{Sing}(X_x)$ is a boundary section of the closure of such a component, this proves (a). For (b), the component group of $\mathcal N_x$ is cyclic of order $n_x$ \cite[Theorem~5.3.2]{Kim26}. For $a\ge1$, multiplication by $a$ is surjective on $\mathcal N_x^0$ and $\#\mathcal N^0_x[a]=a^3$, hence $\#\mathcal N_x[a]=a^3\gcd(a,n_x)$. By the N\'eron mapping property and \'etaleness of $\mathcal N[a]$ over a strictly henselian trait, $\mathcal N_x[a]$ is identified with the invariants of $T_x$ on $\Lambda/a\Lambda$. Hence $\#\ker(T_x-1\bmod a)=a^3\gcd(a,n_x)$ for all $a$. On the other hand, $(T_x-1)\Lambda=c_x\delta_x\ZZ v_x$, so the Smith normal form of $T_x-1$ is $\diag(|c_x|\delta_x,0,0,0)$ and $\#\ker(T_x-1\bmod a)=a^3\gcd(a,|c_x|\delta_x)$. This gives $|c_x|\delta_x=n_x$, which proves (b) and the formula in (c) up to the sign of $c_x$. The bilinear form $(y,z)\mapsto\theta(y,(T_x-1)z)=c_x\theta(y,v_x)\theta(z,v_x)$ is semidefinite of a sign which is independent of $x$, by the positivity of the limiting mixed Hodge structure of a polarized variation \cite{Sch73}. This proves (c). \end{proof} \noindent For the component groups of degenerations of abelian varieties, see also \cite[Expos\'e~IX]{SGA7}. \begin{lemma}\label{lem:addlat} Let $x\in\ell\cap\Delta$ be additive. Then the following hold. \begin{enumerate} \item $\theta(\Lambda_{0,x},\Lambda_{1,x})=0$, $\rk\Lambda_{0,x}=\rk\Lambda_{1,x}=2$, and $\alpha_{0,x}\alpha_{1,x}=s_xd$. \item $s_x\mid\nu_x$, and the torsion subgroup of $\Lambda/(1-T_x)\Lambda$ has order $\nu_x/s_x$. \item If $s_x>1$, then $s_x=\nu_x\in\{2,3\}$, $s_x\mid\gcd(\alpha_{0,x},\alpha_{1,x})$, $\gcd(\alpha_{0,x}/s_x,\alpha_{1,x}/s_x)=1$ and $s_x\mid d$. Moreover, there are bases $(e_0,f_0)$ of $\Lambda_{0,x}$ and $(e_1,f_1)$ of $\Lambda_{1,x}$ with $\theta(e_i,f_i)=\alpha_{i,x}$ such that $\Lambda=\Lambda_{0,x}\oplus\Lambda_{1,x}+\ZZ\frac{e_0+e_1}{s_x}$. \end{enumerate} \end{lemma} \begin{proof} We omit the index $x$. By Lemma~\ref{lem:types}(c), $\rk\Lambda_0=\rk\Lambda_1=2$. For $y\in\Lambda_0$ and $z\in\Lambda$, $\theta(y,Tz)=\theta(Ty,Tz)=\theta(y,z)$, so $\theta(y,(T-1)z)=0$; hence $\theta(\Lambda_0,\Lambda_1)=0$. The Pfaffian of $\theta$ on $\Lambda_0\oplus\Lambda_1$ is $\alpha_0\alpha_1$, and the Pfaffian on $\Lambda$ is $d$; since $[\Lambda:\Lambda_0\oplus\Lambda_1]=s$, we get $\alpha_0\alpha_1=sd$. This proves (a). Let $p_1\colon\Lambda_\QQ\to\Lambda_{1,\QQ}$ be the projection along $\Lambda_{0,\QQ}$. Since $\Lambda_0=\Lambda\cap\Lambda_{0,\QQ}$, the map $\Lambda\to p_1\Lambda/\Lambda_1$ is surjective with kernel $\Lambda_0\oplus\Lambda_1$, so $[p_1\Lambda:\Lambda_1]=s$. We have $(1-T)\Lambda=(1-T)p_1\Lambda\subset\Lambda_1$ and $[p_1\Lambda:(1-T)p_1\Lambda]=\det(1-T|\Lambda_{1,\QQ})=\nu$. Hence $[\Lambda_1:(1-T)\Lambda]=\nu/s$, and $\Lambda_1/(1-T)\Lambda$ is the torsion subgroup of $\Lambda/(1-T)\Lambda$. This proves (b). Suppose $s>1$. By (b), $s\mid\nu\in\{1,2,3\}$, so $s=\nu$ is a prime. The group $\Lambda/(\Lambda_0\oplus\Lambda_1)\simeq\ZZ/s$ is generated by the class of $y_0+y_1$ with $y_i\in p_i\Lambda$, $sy_i\in\Lambda_i$ and $y_i\notin\Lambda_i$, where $p_0=1-p_1$. Then $e_i\coloneqq sy_i$ is primitive in $\Lambda_i$, and we complete it to a basis $(e_i,f_i)$ of $\Lambda_i$ with $\theta(e_i,f_i)=\alpha_i$. Since $\theta(\frac{e_0+e_1}s,f_i)=\alpha_i/s\in\ZZ$, we get $s\mid\alpha_i$. The values of $\theta$ on $\Lambda\times\Lambda$ generate the ideal $(\alpha_0/s,\alpha_1/s)$, which is $\ZZ$ since $\theta$ is primitive. Finally, $d=s\cdot\frac{\alpha_0}s\cdot\frac{\alpha_1}s$ by (a). This proves (c). \end{proof} \begin{lemma}\label{lem:add} Let $x\in\ell\cap\Delta$ be additive. Then $\mathrm{Sing}(X_x)$ is an elliptic curve of $H$-degree $m_Hd/\alpha_{1,x}$. \end{lemma} \begin{proof} We omit the index $x$. Let $D\subset\ell$ be a small disc around $x$ and $\tilde D\to D$ the cyclic cover of degree $e$ branched at $x$. The pullback of $A$ to $\tilde D\setminus\{\tilde x\}$ extends to an abelian scheme over $\tilde D$; let $Q_0$ be its special fiber, so that $H_1(Q_0,\ZZ)=\Lambda$ and the deck transformation acts on $Q_0$ by $T$. The exponential sequence identifies the component group of the fixed group $Q_0^T$ with the torsion subgroup of $\Lambda/(1-T)\Lambda$, of order $\nu/s$ by Lemma~\ref{lem:addlat}(b). By \cite[Theorem~5.3]{Edi92}, the reduction map from the special fiber of the N\'eron model of $A|_{D\setminus\{x\}}$ onto $Q_0^T$ has a connected unipotent kernel, so the component group of this special fiber also has order $\nu/s$. By \cite[Proposition~4.2.4 and Theorem~5.2.1]{Kim26}, there is a finite \'etale cover $\tilde Y\to g_\ell^{-1}(D)$ whose special fiber is $C\times E$, where $C$ is the Kodaira fiber of type $\mathrm{II}$, $\mathrm{III}$ or $\mathrm{IV}$, respectively, and $E$ is an elliptic curve. The component group of the special fiber of the N\'eron model of the generic fiber of $\tilde Y$ has order $\nu$, and the deck group of $\tilde Y\to g_\ell^{-1}(D)$ is the kernel of the induced map of component groups. Hence $\deg(\tilde Y/g_\ell^{-1}(D))=\nu/(\nu/s)=s$. Let $\tilde\Lambda\subset\Lambda$ be the period lattice of $\tilde Y$. Applying the first paragraph and Lemma~\ref{lem:addlat}(b) to $\tilde Y$, we get $\tilde\Lambda=\tilde\Lambda_0\oplus\tilde\Lambda_1$ with $\tilde\Lambda_i\subset\Lambda_i$. Since $[\Lambda:\tilde\Lambda]=s=[\Lambda:\Lambda_0\oplus\Lambda_1]$, we obtain $\tilde\Lambda=\Lambda_0\oplus\Lambda_1$. Let $\tilde{\mathcal Q}$ be the abelian scheme over $\tilde D$ extending the pullback of the generic fiber of $\tilde Y$, and let $\tilde Q_0$ be its special fiber. By \cite[Theorem~5.3]{Edi92}, the map from the identity component $\mathbf G_a\times E$ of the special fiber of the N\'eron model of the generic fiber of $\tilde Y$ to $(\tilde Q_0^T)^0$ is surjective with connected unipotent kernel. Hence $E\simeq(\tilde Q_0^T)^0$ and $H_1(E,\ZZ)=\tilde\Lambda^T=\Lambda_0$. Let $\bar H$ be the extension of the pullback of $H$ to $\tilde{\mathcal Q}$ by divisor closure; then $\deg(\bar H|_E)=m_H\alpha_0$. The pullback of $\bar H$ to the base change of the smooth locus of $\tilde Y\to D$ differs from the pullback of $H$ by a vertical divisor. Since the special components of the smooth locus are pairwise disjoint and cut out by a uniformizer, this vertical divisor restricts trivially to each of them. Hence the pullback of $H$ has degree $m_H\alpha_0$ on $\{c\}\times E$ for every smooth point $c\in C$, and by connectedness for every $c\in C$. Let $c_0\in C$ be the singular point. The deck group fixes $c_0$ and acts freely on $\{c_0\}\times E$, and $\mathrm{Sing}(X_x)$ is the image of $\{c_0\}\times E$. Hence $\mathrm{Sing}(X_x)$ is an elliptic curve of $H$-degree $m_H\alpha_0/s=m_Hd/\alpha_1$, by Lemma~\ref{lem:addlat}(a). \end{proof} \noindent For the action of the deck group on the two elliptic factors of the good model, see \cite[Proposition~6.2.2 and \S6.2.3]{Kim26}. \begin{definition}\label{def:RN} For an ample line bundle $H$ on $X$, put \[ R\coloneqq\frac{1}{m_Hd}\int_Xc_2(X)\,L\,c_1(H),\qquad N\coloneqq\sum_{x\in\ell}\rk(T_x-1). \] \end{definition} By Notation~\ref{not:line}, $N=\sum_{\Delta_i}\deg(\Delta_i)\rk(T_{\Delta_i}-1)$, where $\Delta_i$ runs over the irreducible curves in $\Delta$ and $T_{\Delta_i}$ is a meridian around a general point of $\Delta_i$; hence $N$ does not depend on $\ell$. \begin{proposition}\label{prop:R} The rational number $R$ does not depend on $H$, and the following hold. \begin{enumerate} \item $R=\sum_{x\ \mathrm{multiplicative}}n_x/\delta_x+\sum_{x\ \mathrm{additive}}\mu_x/\alpha_{1,x}$, where $x$ runs over $\ell\cap\Delta$. \item $dR^2=992-4b_2(X)+b_3(X)$. \end{enumerate} \end{proposition} \begin{proof} By Lemma~\ref{lem:crit}(a), $\int_Xc_2(X)\,L\,c_1(H)=\int_{Y_\ell}c_2(X)|_{Y_\ell}\cdot c_1(H)=\deg(H|_{\Crit(g_\ell)})$. By Lemmas~\ref{lem:crit}(b), \ref{lem:mult}(a) and~\ref{lem:add}, a multiplicative point $x$ contributes $n_x\cdot m_Hd/\delta_x$ and an additive point $x$ contributes $\mu_x\cdot m_Hd/\alpha_{1,x}$. This proves (a), and (a) shows that $R$ does not depend on $H$. For (b), define $c_{2,X}\in\QQ$ by $\int_Xc_2(X)x^2=c_{2,X}q_X(x)$ for $x\in H^2(X)$ \cite{Fuj87}. By \eqref{eq:fujiki} and $q_X(L)=0$, we have $\int_Xc_1(H)^2L^2=\frac{2c_X}3q_X(L,H)^2$. On the other hand, $\int_Xc_1(H)^2L^2=\int_F(m_H\theta)^2=2m_H^2d$. Hence \begin{equation}\label{eq:cqLH} c_Xq_X(L,H)^2=3m_H^2d. \end{equation} Polarizing the definition of $c_{2,X}$ gives $\int_Xc_2(X)Lc_1(H)=c_{2,X}q_X(L,H)$, so $dR^2=c_{2,X}^2q_X(L,H)^2/(m_H^2d)=3c_{2,X}^2/c_X$. By \cite{Nie03}, $\int_X\bfe^{x}\sqrt{\mathrm{td}(X)}=(1+\lambda(x))^2\int_X\sqrt{\mathrm{td}(X)}$ for a linear function $\lambda$ of $q_X(x)$. Comparing the terms of degree two and four in $x$ with $\int_Xx^4/24=c_Xq_X(x)^2/24$ and $\int_Xc_2(X)x^2/48=c_{2,X}q_X(x)/48$ gives $c_{2,X}^2/c_X=384\int_X\sqrt{\mathrm{td}(X)}$. For a hyper-K\"ahler fourfold, the degree-eight component of $\sqrt{\mathrm{td}(X)}$ is $(7c_2(X)^2-4c_4(X))/5760$. Salamon's relation $b_4=46+10b_2-b_3$ \cite[Example~2.7]{BD22} gives $\int_Xc_4(X)=48+12b_2-3b_3$, and $\chi(\cO_X)=3=\int_X(3c_2(X)^2-c_4(X))/720$ gives $\int_Xc_2(X)^2=736+4b_2-b_3$. Hence $\int_X\sqrt{\mathrm{td}(X)}=(992-4b_2+b_3)/1152$ and $dR^2=1152\int_X\sqrt{\mathrm{td}(X)}=992-4b_2+b_3$. This proves the proposition. \end{proof} \noindent For a similar formula for the degree of the discriminant, see \cite{Saw03}; for the characteristic numbers of hyper-K\"ahler fourfolds, see \cite[\S3]{BD22}. \section{The Radon transform of the first cohomology}\label{sec:radon} In this section, we compute the Radon transform of the intersection complex of $V$, and we prove that its nonconstant summand is the intersection complex of a local system $W$ with finite monodromy on an open subset of $B^\vee$, of rank $N-b_2(X)-6\ge1$ (Proposition~\ref{prop:W} and Corollary~\ref{cor:r}). At the end of this section, we compare the reductions modulo a prime number of both sides. \begin{notation}\label{not:PV} Let $j\colon B^\circ\into B$ be the inclusion. Put $P_V\coloneqq\IC_B(V)$, a polarizable Hodge module of weight three, and \[ I_V\coloneqq\mathbb H^{-1}(B,P_V),\qquad A_i\coloneqq\mathbb H^i(B,P_V),\qquad h_0\coloneqq\dim A_0. \] For a line $\ell\subset B$ transverse to a Whitney stratification adapted to $P_V$, let $j_\ell\colon\ell\cap B^\circ\into\ell$ be the inclusion. \end{notation} \begin{lemma}\label{lem:lowest} There is an isomorphism of rational Hodge structures $I_V\simeq T(X)$, where $T(X)$ is as in Lemma~\ref{lem:deform}(a). In particular, $\dim I_V=b_2(X)-2$. \end{lemma} \begin{proof} By \cite[Corollaire~3.2.17]{Del71}, $W_2H^2(X^\circ)=\im(H^2(X)\to H^2(X^\circ))$. By the localization sequence, the kernel of $H^2(X)\to H^2(X^\circ)$ is spanned by the classes of the prime divisors contained in $\pi^{-1}(\Delta)$. These classes are algebraic and vanish on $F$. By the proof of Lemma~\ref{lem:inv}, a class $y\in\NS(X)_\QQ$ satisfies $y|_F=0$ if and only if $q_X(L,y)=0$; since $\NS(X)_\QQ$ is spanned by $L$ and an ample class $H$ with $q_X(L,H)\ne0$, this means $y\in\QQ L$. Conversely, for an irreducible curve $\Delta_1\subset\Delta$ (Lemma~\ref{lem:types}(a)), the divisor $\pi^*\Delta_1$ has class $(\deg\Delta_1)L$ and is supported on $\pi^{-1}(\Delta)$. Hence $W_2H^2(X^\circ)\simeq H^2(X)/\QQ L$. The same argument gives $W_2H^2(B^\circ)=0$. By Deligne's degeneration theorem and \cite{Ara05}, the Leray spectral sequence of the smooth projective morphism $X^\circ\to B^\circ$ degenerates at $E_2$, and the Leray filtration on $H^2(X^\circ)$ is a filtration by mixed Hodge structures with graded pieces $H^2(B^\circ)$, $H^1(B^\circ,V)$ and $H^0(B^\circ,R^2\pi_*\QQ)$. The functor $W_2$ is exact on mixed Hodge structures, and the category of polarizable pure Hodge structures of weight two is semisimple. We have $W_2H^2(B^\circ)=0$, and $H^0(B^\circ,R^2\pi_*\QQ)=\QQ\theta\simeq\QQ(-1)$ by Lemma~\ref{lem:inv}. Hence $H^2(X)/\QQ L\simeq W_2H^1(B^\circ,V)\oplus\QQ(-1)$. Let $B_1\subset B$ be the complement of a finite set such that $\Delta\cap B_1$ is smooth, and factor $j=j_2\circ j_1$ with $j_1\colon B^\circ\into B_1$ and $j_2\colon B_1\into B$. In ordinary cohomological degrees, Deligne's construction gives $\mathcal K\coloneqq P_V[-2]=\tau_{\le1}Rj_{2*}(\tau_{\le0}Rj_{1*}V)$. The cones of $\mathcal K\to Rj_{2*}\tau_{\le0}Rj_{1*}V$ and of $\tau_{\le0}Rj_{1*}V\to Rj_{1*}V$ lie in $D^{\ge2}$ and $D^{\ge1}$, respectively, and $Rj_{2*}$ preserves $D^{\ge1}$. Hence the cone of $\mathcal K\to Rj_*V$ lies in $D^{\ge1}$, and the induced map $I_V=\mathbb H^1(B,\mathcal K)\to H^1(B^\circ,V)$ is injective. Its image is $W_2H^1(B^\circ,V)$ by the lowest weight theorem \cite{PS12}. Since $H^2(X)=\NS(X)_\QQ\oplus T(X)$ and $\NS(X)_\QQ/\QQ L\simeq\QQ(-1)$, we have $H^2(X)/\QQ L\simeq T(X)\oplus\QQ(-1)$. Cancellation in the semisimple category gives $I_V\simeq T(X)$. \end{proof} \begin{lemma}\label{lem:inversion} For every $\mathcal K\in D^b_c(B,\QQ)$, there is an isomorphism \begin{equation}\label{eq:inversion} \Rad^t\Rad(\mathcal K)\simeq\mathcal K(-1)\oplus\bigl(R\Gamma(B,\mathcal K)\otimes\QQ_B[2]\bigr), \end{equation} which is an isomorphism of mixed Hodge modules if $\mathcal K$ underlies a mixed Hodge module. The same holds with $\QQ$ replaced by a field $k$, for $\mathcal K\in D^b_c(B,k)$. \end{lemma} \begin{proof} The morphism $\Fl\times_{B^\vee}\Fl\to B\times B$, $((x,y),(x',y))\mapsto(x,x')$, is the blowup $\beta$ of the diagonal: for $x\ne x'$, its fiber is $\{[\ell_{x,x'}]\}$, where $\ell_{x,x'}\subset B$ is the line through $x$ and $x'$, and over $(x,x)$ its fiber is $x^\vee\simeq\PP^1$. By proper base change, $\Rad^t\Rad(\mathcal K)\simeq R\mathrm{pr}_{1*}(R\beta_*k\otimes\mathrm{pr}_2^*\mathcal K)[2]$. The exceptional divisor is a $\PP^1$-bundle over the diagonal whose relative hyperplane class has degree one on the fibers, so $R\beta_*k\simeq k_{B\times B}\oplus k_{\mathrm{diag}}(-1)[-2]$ for every coefficient field $k$. The projection formula gives \eqref{eq:inversion}. \end{proof} \noindent This is the inversion formula of Brylinski \cite{Bry86}. \begin{lemma}\label{lem:stalk} Let $\ell\subset B$ be a general line. Then the following hold. \begin{enumerate} \item $H^0(\ell,j_{\ell*}V)=H^2(\ell,j_{\ell*}V)=0$ and $\dim H^1(\ell,j_{\ell*}V)=N-8$. \item $\Rad(P_V)_{[\ell]}\simeq H^1(\ell,j_{\ell*}V)[2]$. \end{enumerate} \end{lemma} \begin{proof} Since $\ell$ is transverse to a Whitney stratification adapted to $P_V$, $P_V|_\ell\simeq j_{\ell*}V[2]$, and proper base change gives $\Rad(P_V)_{[\ell]}\simeq R\Gamma(\ell,j_{\ell*}V)[3]$. By the Zariski--Lefschetz theorem for complements, $\pi_1(\ell\cap B^\circ)\to\pi_1(B^\circ)$ is surjective, so $H^0(\ell,j_{\ell*}V)=H^0(B^\circ,V)=0$ by Corollary~\ref{cor:irr}. The form $\theta$ identifies $V$ with its dual, and Poincar\'e--Verdier duality gives $H^2(\ell,j_{\ell*}V)=0$. Finally, \[ \chi(\ell,j_{\ell*}V)=4\chi(\ell\cap B^\circ)+\sum_{x\in\ell\cap\Delta}\dim V^{T_x}=4(2-\#(\ell\cap\Delta))+\sum_{x\in\ell\cap\Delta}(4-\rk(T_x-1))=8-N. \] This proves the lemma. \end{proof} \begin{lemma}\label{lem:transform} The following hold. \begin{enumerate} \item There is a decomposition $\Rad(P_V)\simeq(I_V\otimes\QQ_{B^\vee}[2])\oplus P'_V$ of polarizable Hodge modules on $B^\vee$, where $P'_V$ is a perverse sheaf such that $P'_V\otimes\CC$ is simple and not isomorphic to a constant sheaf shifted by two. \item $\mathbb H^{-1}(B^\vee,P'_V)\simeq A_0$ and $\mathbb H^0(B^\vee,P'_V)\simeq I_V(-1)$. \end{enumerate} \end{lemma} \begin{proof} By Lemma~\ref{lem:stalk}, the stalk of $\Rad(P_V)$ at a general point of $B^\vee$ is concentrated in degree $-2$. By Brylinski's theorem \cite[Th\'eor\`eme~5.5]{Bry86}, the perverse cohomology sheaves ${}^p\mathcal H^i(\Rad(P_V))$ for $i\ne0$ are local systems on $B^\vee$ shifted by two, hence constant since $B^\vee$ is simply connected; they vanish since the generic stalk of $\Rad(P_V)$ is concentrated in degree $-2$. The complex $p_1^*P_V[1]$ is a polarizable Hodge module of weight four, and $p_2$ is proper, so by the decomposition theorem \cite{Sai88}, $\Rad(P_V)$ is a direct sum of simple polarizable Hodge modules. By \cite[Th\'eor\`eme~5.5]{Bry86}, $\Rad$ induces an equivalence between the quotients of the categories of perverse sheaves on $B$ and on $B^\vee$ by the subcategories of constant perverse sheaves, over $\QQ$ and over $\CC$. Since $P_V\otimes\CC$ is simple and nonconstant by Corollary~\ref{cor:irr}, $\Rad(P_V)$ is the direct sum of a constant summand $Z\otimes\QQ_{B^\vee}[2]$, for a Hodge structure $Z$, and a single summand $P'_V$ such that $P'_V\otimes\CC$ is simple and nonconstant. The morphism $p_1$ is a $\PP^1$-bundle, so $\mathbb H^i(B^\vee,\Rad(P_V))=A_{i+1}\oplus A_{i-1}(-1)$. A simple nonconstant perverse sheaf $\mathcal M$ on $B^\vee$ satisfies $\mathbb H^{-2}(B^\vee,\mathcal M)=0$: if its support is $B^\vee$, then $\mathbb H^{-2}(B^\vee,\mathcal M)$ is the space of global sections of an irreducible nonconstant local system, and if its support is smaller, $\mathcal M$ lives in degrees $\ge-1$. In particular $A_{-2}=H^0(B^\circ,V)=0$, and by duality $A_2=0$. Taking $i=-2$ gives $Z=\mathbb H^{-2}(B^\vee,\Rad(P_V))=A_{-1}=I_V$, as Hodge structures by the theorem of the fixed part. Taking $i=-1$ gives $\mathbb H^{-1}(B^\vee,P'_V)=A_0$, since $\mathbb H^{-1}(B^\vee,I_V\otimes\QQ[2])=I_V\otimes H^1(B^\vee)=0$. Taking $i=0$, the hard Lefschetz theorem for $\mathbb H^*(B,P_V)$ \cite{Sai88} gives $A_1\simeq A_{-1}(-1)=I_V(-1)$, so $\mathbb H^0(B^\vee,\Rad(P_V))\simeq I_V(-1)^{\oplus2}$, while $\mathbb H^0(B^\vee,I_V\otimes\QQ[2])=I_V\otimes H^2(B^\vee)=I_V(-1)$. Semisimplicity gives $\mathbb H^0(B^\vee,P'_V)\simeq I_V(-1)$. \end{proof} \begin{lemma}\label{lem:full} The support of $P'_V$ is $B^\vee$. \end{lemma} \begin{proof} By Lemmas~\ref{lem:inversion} and~\ref{lem:transform}, $\Rad^t(I_V\otimes\QQ_{B^\vee}[2])\oplus\Rad^t(P'_V)\simeq P_V(-1)\oplus(R\Gamma(B,P_V)\otimes\QQ_B[2])$. Since $\Rad^t(I_V\otimes\QQ_{B^\vee}[2])$ has constant cohomology sheaves and $P_V$ is simple with support $B$, the decomposition theorem shows that $P_V(-1)$ is a direct summand of $\Rad^t(P'_V)$. If $P'_V$ is supported at a point, $\Rad^t(P'_V)$ is supported on a line. Suppose that $P'_V=\IC_C(\mathbb D)$ for an irreducible curve $C\subset B^\vee$ and an irreducible local system $\mathbb D$ of rank $k$ on a dense open subset of the smooth locus of $C$. Since $P'_V$ has weight four, $\mathbb D$ underlies a variation of Hodge structures of weight three, so $k$ is even, and $k\ge2$. Hence $\mathbb D\otimes\CC$ has no global sections. Since $\IC_C(\mathbb D)$ is the pushforward of $(\iota_*\mathbb D)[1]$ from the normalization of $C$, where $\iota$ is the inclusion of the open subset, $\mathbb H^{-1}(B^\vee,P'_V)=0$. For a general point $x\in B$, the stalk of $\Rad^t(P'_V)$ at $x$ is the direct sum of the stalks of $\mathbb D$ at the $\deg C$ points of $C\cap x^\vee$, in degree $-2$. As in the proof of Lemma~\ref{lem:transform}, $\Rad^t(P'_V)$ is perverse, its constant part has rank $\dim\mathbb H^{-1}(B^\vee,P'_V)=0$, and hence $\Rad^t(P'_V)\simeq P_V(-1)$. Comparing generic ranks gives $k\deg C=4$. If $\deg C=1$, then $C=y^\vee$ for some $y\in B$, and $V(-1)$ is the pullback of $\mathbb D$ under $B\setminus\{y\}\to C$, $x\mapsto C\cap x^\vee$, over a dense open subset; then the period map of $V$ has rank at most one, contrary to Lemma~\ref{lem:period}. If $\deg C=2$, then on the double cover of a dense open subset of $B^\circ$ ordering the two points of $C\cap x^\vee$, $V(-1)$ splits into two local systems of rank two, contrary to Corollary~\ref{cor:irr}. This proves the lemma. \end{proof} \begin{proposition}\label{prop:W} There are a dense open subset $j_W\colon U_W\into B^\vee$ and an absolutely irreducible local system $W$ of $\QQ$-vector spaces on $U_W$ with finite monodromy group $G_W$ such that $P'_V\simeq\IC_{B^\vee}(W)(-1)$ as Hodge modules, where $W$ is of Hodge type $(0,0)$. \end{proposition} \begin{proof} Let $\ell\subset B$ be a general line and $Y_\ell=\pi^{-1}(\ell)$, which is smooth. Applying $R\pi_*$ to $0\to\cO_X(-L)\to\cO_X\to\cO_{Y_\ell}\to0$ and using $R^i\pi_*\cO_X\simeq\Omega^i_B$ \cite[Theorem~1.3]{Mat05}, the map $R^i\pi_*\cO_X(-L)\to R^i\pi_*\cO_X$ is multiplication by an equation of $\ell$ on $\Omega^i_B(-1)\to\Omega^i_B$, which is injective. Hence $R^i(g_\ell)_*\cO_{Y_\ell}\simeq\Omega^i_B|_\ell$, that is, $\cO_\ell$, $\cO_\ell(-1)\oplus\cO_\ell(-2)$ and $\cO_\ell(-3)$ for $i=0,1,2$. The Leray spectral sequence of $g_\ell$ degenerates since $\dim\ell=1$, so $h^1(\cO_{Y_\ell})=0$ and $h^2(\cO_{Y_\ell})=h^1(\ell,\cO(-1)\oplus\cO(-2))=1$. Since a hyperplane of a four-dimensional symplectic vector space is not isotropic, $\sigma|_{Y_\ell}\ne0$, so $H^{2,0}(Y_\ell)=\CC\,\sigma|_{Y_\ell}$. Fix an ample line bundle $H$ on $X$ and put $(a,b)_H\coloneqq\int_{Y_\ell}a\,b\,c_1(H)$ for $a,b\in H^2(Y_\ell)$. For $a,b\in H^2(X)$, \eqref{eq:fujiki} gives \[ (a|_{Y_\ell},b|_{Y_\ell})_H=\tfrac{c_X}3\bigl(q_X(L,H)q_X(a,b)+q_X(L,a)q_X(H,b)+q_X(L,b)q_X(H,a)\bigr). \] Hence the plane $\langle L,H\rangle$ is $(\ ,\ )_H$-orthogonal to $\langle L,H\rangle^{\perp_{q_X}}$, the form $(\ ,\ )_H$ on $\langle L,H\rangle$ has $(L,L)_H=0$ and $(L,H)_H=\frac{2c_X}3q_X(L,H)^2\ne0$, and on $\langle L,H\rangle^{\perp_{q_X}}$ it equals $\frac{c_X}3q_X(L,H)q_X$. All these forms are nondegenerate, so $H^2(X)\to H^2(Y_\ell)$ is injective. Let $H^2(Y_\ell)_{\mathrm{van}}$ be the $(\ ,\ )_H$-orthogonal complement of its image. Since $c_1(H)|_{Y_\ell}$ lies in the image, $H^2(Y_\ell)_{\mathrm{van}}$ consists of $c_1(H)$-primitive classes; since $H^{2,0}(Y_\ell)$ lies in the image, it is of type $(1,1)$. By the Hodge--Riemann bilinear relations, $(\ ,\ )_H$ is negative definite on $H^2(Y_\ell)_{\mathrm{van}}$. Hence the monodromy of the local system $\{H^2(Y_\ell)_{\mathrm{van}}\}$ over the open subset of transverse lines preserves a negative definite lattice and is finite. By the decomposition theorem, $P_V[1]$ is a direct summand of $R\pi_*\QQ_X[4]$, since its restriction to $B^\circ$ is $R^1\pi_*\QQ[3]$. By proper base change, $\Rad(R\pi_*\QQ_X[4])_{[\ell]}\simeq R\Gamma(Y_\ell,\QQ)[5]$. Hence, by Lemma~\ref{lem:stalk}, the local system $\{H^1(\ell,j_{\ell*}V)\}$ over the open subset of transverse lines is a direct summand of $\{H^2(Y_\ell)\}$, compatibly with Hodge structures. By Lemma~\ref{lem:transform}, $\{H^1(\ell,j_{\ell*}V)\}\simeq I_V\oplus\mathbb W'$, where $\mathbb W'$ is the local system underlying $P'_V$ on a dense open subset. Since $\mathbb W'\otimes\CC$ is irreducible and nonconstant, its projection to the constant local system $\{H^2(Y_\ell)/H^2(Y_\ell)_{\mathrm{van}}\}\simeq H^2(X)$ vanishes, so $\mathbb W'\subset\{H^2(Y_\ell)_{\mathrm{van}}\}$. Hence $\mathbb W'$ has finite monodromy and is of type $(1,1)$. Put $W\coloneqq\mathbb W'(1)$ on a dense open subset $U_W\subset B^\vee$ over which $\mathbb W'$ is a local system. By Lemma~\ref{lem:full}, $P'_V\simeq\IC_{B^\vee}(\mathbb W')=\IC_{B^\vee}(W)(-1)$, and $W$ is absolutely irreducible by Lemma~\ref{lem:transform}. \end{proof} \begin{definition}\label{def:Ndual} Put $r\coloneqq\rk W$. For $x\in B$, let $j'_x\colon x^\vee\cap U_W\into x^\vee$ be the inclusion. Let $N^\vee\coloneqq\sum_D\deg(D)\rk(g_D-1)$, where $D$ runs over the irreducible curves in $B^\vee\setminus U_W$ and $g_D$ is the action on $W$ of a positively oriented meridian around a general point of $D$. \end{definition} \begin{corollary}\label{cor:r} One has $r=N-b_2(X)-6\ge1$. \end{corollary} \begin{proof} By Lemmas~\ref{lem:stalk} and~\ref{lem:transform}, the generic rank of $\Rad(P_V)$ is $N-8=\dim I_V+r$, and $\dim I_V=b_2(X)-2$ by Lemma~\ref{lem:lowest}. Since $P'_V$ is nonconstant, $r\ge1$. \end{proof} \begin{lemma}\label{lem:conductor} One has $N^\vee=2r+4+h_0$ and $0\le h_0\le b_3(X)$. \end{lemma} \begin{proof} Let $x\in B$ be general. As in Lemma~\ref{lem:stalk}, $H^0(x^\vee,j'_{x*}W)=H^2(x^\vee,j'_{x*}W)=0$ and $\dim H^1(x^\vee,j'_{x*}W)=-\chi(x^\vee,j'_{x*}W)=N^\vee-2r$; this is the generic rank of $\Rad^t(\IC_{B^\vee}(W))$. By Lemma~\ref{lem:inversion} and Lemma~\ref{lem:transform}, \[ P_V(-1)\oplus\bigl(R\Gamma(B,P_V)\otimes\QQ_B[2]\bigr)\simeq\Rad^t(I_V\otimes\QQ_{B^\vee}[2])\oplus\Rad^t(P'_V). \] We have $\Rad^t(\QQ_{B^\vee}[2])\simeq\QQ_B[3]\oplus\QQ_B(-1)[1]$ and $R\Gamma(B,P_V)\simeq I_V[1]\oplus A_0\oplus I_V(-1)[-1]$ by the proof of Lemma~\ref{lem:transform}. Hence $\Rad^t(P'_V)\simeq P_V(-1)\oplus(A_0\otimes\QQ_B[2])$, whose generic rank is $4+h_0$. This proves $N^\vee=2r+4+h_0$. By the decomposition theorem, $P_V[1]$ is a direct summand of $R\pi_*\QQ_X[4]$, so $A_0=\mathbb H^{-1}(B,P_V[1])$ is a direct summand of $\mathbb H^{-1}(B,R\pi_*\QQ_X[4])=H^3(X)$. This proves $h_0\le b_3(X)$. \end{proof} \subsection{Reduction modulo a prime number}\label{sec:reduction} Let $p$ be a prime number, $\mathcal O\coloneqq\ZZ_p$ and $k\coloneqq\FF_p$. For a constructible complex $\mathcal K_{\mathcal O}$ of $\mathcal O$-modules with finitely generated stalks, we denote by $[\mathcal K_{\mathcal O}\otimes^{\mathbf L}k]$ its class in the Grothendieck group of constructible complexes of $k$-vector spaces. A \emph{lattice} in a constructible complex $\mathcal K$ of $\QQ_p$-vector spaces is a constructible complex $\mathcal K_{\mathcal O}$ of $\mathcal O$-modules with $\mathcal K_{\mathcal O}\otimes\QQ_p\simeq\mathcal K$. We use the perverse $t$-structure with the middle perversity over $\mathcal O$ and over $k$. \begin{lemma}\label{lem:redclass} Let $\mathcal K$ be a constructible complex of $\QQ_p$-vector spaces on $B$ or $B^\vee$ which has a lattice. Then the following hold. \begin{enumerate} \item The class $[\mathcal K_{\mathcal O}\otimes^{\mathbf L}k]$ does not depend on the lattice $\mathcal K_{\mathcal O}$. \item $[\Rad(\mathcal K_{\mathcal O})\otimes^{\mathbf L}k]=[\Rad(\mathcal K_{\mathcal O}\otimes^{\mathbf L}k)]$, and the same holds for $\Rad^t$. \end{enumerate} \end{lemma} \begin{proof} By stratification and truncation, it suffices to compare two lattices $\mathbb L_{\mathcal O}$, $\mathbb L'_{\mathcal O}$ of a local system on a locally closed stratum. Lattices in isomorphic local systems are commensurable, and a constructible sheaf $\mathcal T$ killed by a power of $p$ satisfies $[\mathcal T\otimes^{\mathbf L}k]=0$: if $p\mathcal T=0$, then $\mathcal T\otimes^{\mathbf L}k$ has cohomology sheaves $\mathcal T$ in degrees $-1$ and $0$, and the general case follows by filtering. The cone of multiplication by $p$ computes $\otimes^{\mathbf L}k$ and commutes with pullback, proper pushforward and shifts. \end{proof} \begin{lemma}\label{lem:redperv} The following hold. \begin{enumerate} \item Let $\mathbb L_{\mathcal O}$ be a lattice in a local system on a dense open subset $j_U\colon U\into S$ of $S=B$ or $B^\vee$. Then $j_{U!*}(\mathbb L_{\mathcal O}[2])\otimes^{\mathbf L}k$ is perverse. \item The functors $\Rad$ and $\Rad^t$ induce mutually inverse equivalences between the quotients of the categories of perverse sheaves of $k$-vector spaces on $B$ and on $B^\vee$ by the Serre subcategories of constant perverse sheaves, up to a Tate twist. \item Let $V_{\mathcal O}\subset V\otimes\QQ_p$ and $W_{\mathcal O}\subset W\otimes\QQ_p$ be lattices stable under monodromy, and put $P_{V,\mathcal O}\coloneqq j_{!*}(V_{\mathcal O}[2])$ and $\IC(W)_{\mathcal O}\coloneqq j_{W!*}(W_{\mathcal O}[2])$. The nonconstant composition factors of $P_{V,\mathcal O}\otimes^{\mathbf L}k$ and of $\IC(W)_{\mathcal O}\otimes^{\mathbf L}k$ correspond to each other, with multiplicities, under the equivalence of (b). The same holds after replacing $k$ by $\overline{\FF}_p$. \item For $x\in B$ and $y\in B^\vee$, one has $\Rad(k_x)\simeq k_{x^\vee}[1]$ and $\Rad^t(k_y)\simeq k_{y^\vee}[1]$. In particular, a factor supported on a point corresponds under (b) to a factor supported on a line. \end{enumerate} \end{lemma} \begin{proof} For (a), put $\mathcal M\coloneqq j_{U!*}(\mathbb L_{\mathcal O}[2])$. The kernel of multiplication by $p$ on $\mathcal M$ in the abelian category of perverse $\mathcal O$-sheaves vanishes on $U$, since $\mathbb L_{\mathcal O}$ is torsion free. By adjunction, $j_{U*}^{\mathrm p}(\mathbb L_{\mathcal O}[2])$ has no nonzero perverse subobject supported on $S\setminus U$, hence neither has its subobject $\mathcal M$. Hence multiplication by $p$ is injective on $\mathcal M$, and its cone $\mathcal M\otimes^{\mathbf L}k$ is perverse. For (b), let $\mathsf U\subset B\times B^\vee$ be the complement of $\Fl$, and $a\colon\mathsf U\to B$, $b\colon\mathsf U\to B^\vee$ the projections; both are affine space bundles of relative dimension two. For a perverse sheaf $\mathcal M$ of $k$-vector spaces on $B$, the localization triangle on $B\times B^\vee$ gives a distinguished triangle \[ Rb_!a^*\mathcal M[2]\to R\Gamma(B,\mathcal M)\otimes k_{B^\vee}[2]\to\Rad(\mathcal M)[1]\xrightarrow{+1}. \] Hence $\Rad(\mathcal M)\simeq Rb_!a^*\mathcal M[2]$ modulo complexes with constant perverse cohomology sheaves. Since $a^*[2]$ is $t$-exact and $b$ is affine, Artin's vanishing theorem gives $Rb_!a^*\mathcal M[2]\in{}^pD^{\ge0}$. Since $\Rad$ commutes with Verdier duality up to a Tate twist, ${}^p\mathcal H^i(\Rad(\mathcal M))$ is constant for every $i\ne0$; the same holds for $\Rad^t$. Since $B$ is simply connected and $\Ext^1(k_B[2],k_B[2])=H^1(B,k)=0$, the constant perverse sheaves form a Serre subcategory. Lemma~\ref{lem:inversion} with coefficients in $k$ shows that the induced exact functors are mutually inverse up to a Tate twist. This proves (b); see also \cite[Theorem~1.1 and \S1.2]{PS23}. For (c), by Lemma~\ref{lem:transform} and Proposition~\ref{prop:W}, $\Rad(P_V)\otimes\QQ_p\simeq(I_V\otimes\QQ_{p,B^\vee}[2])\oplus\IC_{B^\vee}(W)(-1)\otimes\QQ_p$. Let $I_{V,\mathcal O}\subset I_V\otimes\QQ_p$ be a lattice. Since $P_{V,\mathcal O}$ is a lattice in $P_V\otimes\QQ_p$, Lemma~\ref{lem:redclass} gives $[\Rad(P_{V,\mathcal O}\otimes^{\mathbf L}k)]=[\IC(W)_{\mathcal O}\otimes^{\mathbf L}k]+[I_{V,\mathcal O}\otimes_{\mathcal O}k_{B^\vee}[2]]$. By (a), both $P_{V,\mathcal O}\otimes^{\mathbf L}k$ and $\IC(W)_{\mathcal O}\otimes^{\mathbf L}k$ are perverse, and by (b) their nonconstant composition factors correspond with multiplicities. The argument applies after every finite extension of $k$. Finally, (d) follows from $p_1^{-1}(x)=\{x\}\times x^\vee$ and $p_2^{-1}(y)=y^\vee\times\{y\}$ by proper base change. \end{proof} \begin{lemma}\label{lem:redstalk} Let $D\subset B^\vee\setminus U_W$ be an irreducible curve, $g$ the action on $W$ of a positively oriented meridian around a general point $y\in D$, and $W_{\mathcal O}$ a lattice in $W\otimes\QQ_p$ stable under $G_W$. Let $S_1,\ldots,S_m$ be the composition factors of the $k[G_W]$-module $W_{\mathcal O}\otimes k$, counted with multiplicity. Then the following hold. \begin{enumerate} \item The sum of the generic ranks along $D$ of the composition factors of $j_{W!*}(W_{\mathcal O}[2])\otimes^{\mathbf L}k$ supported on $D$ is $\sum_{i=1}^m\dim S_i^g-\rk W^g$. \item Let $\Gamma_D$ be the fundamental group of a punctured tubular neighborhood of a dense open subset of the smooth locus of $D$. Then the equality of (a) holds in the Grothendieck group of representations of $\Gamma_D$ over $k$, with $\rk W^g$ replaced by the class of $(W_{\mathcal O}^g)\otimes k$. \end{enumerate} \end{lemma} \begin{proof} Near $y$, the integral intermediate extension $j_{W!*}(W_{\mathcal O}[2])$ has stalk $W_{\mathcal O}^g$ in degree $-2$, which is a saturated sublattice. Hence the stalk of its reduction has Euler class $\dim(W_{\mathcal O}^g\otimes k)=\rk W^g$. In a composition series of the perverse sheaf $j_{W!*}(W_{\mathcal O}[2])\otimes^{\mathbf L}k$, each factor $\IC(S_i)$ has stalk $S_i^g$ in degree $-2$ at $y$, each factor supported on $D$ has stalk its local system in degree $-1$, and the factors supported on points do not contain $y$. Comparing Euler classes of stalks gives (a). Since $\Gamma_D$ is a central extension of the fundamental group of a dense open subset of $D$ by the subgroup generated by the meridian, $\Gamma_D$ acts on all these stalks, and the same comparison holds for classes of $\Gamma_D$-representations. This proves (b). \end{proof} \section{The case of rank one}\label{sec:rankone} In this section, we assume $r=1$, we identify the double cover of $B^\vee$ determined by $W$ with a K3 surface, and, if moreover $b_2(X)=23$, we identify $A_K$ with the Jacobian of the generic member of a linear system of genus-two curves on this K3 surface (Proposition~\ref{prop:jac}). \begin{notation}\label{not:double} Suppose $r=1$. Then $G_W=\{\pm1\}$, since $W$ is nonconstant. Let $\tau\colon S_W\to B^\vee$ be the normalization of $B^\vee$ in the quadratic extension of $\CC(B^\vee)$ defined by $W$, let $\iota$ be the covering involution, and let $\tilde S_W\to S_W$ be the minimal resolution; $\iota$ lifts to $\tilde S_W$. Let $\Delta_\tau\subset B^\vee$ be the branch curve of $\tau$, with its reduced structure. For $x\in B$, put $C_x\coloneqq\tau^{-1}(x^\vee)$. \end{notation} \begin{lemma}\label{lem:dinv} Suppose $r=1$. Then the following hold. \begin{enumerate} \item $h^0(\Omega^2_{\tilde S_W})=1$, $2h^0(\Omega^1_{\tilde S_W})=h_0$, and $\iota^*=-1$ on $H^0(\Omega^1_{\tilde S_W})$ and on $H^0(\Omega^2_{\tilde S_W})$. \item $\deg\Delta_\tau=6+h_0$. For general $x\in B$, the curve $C_x$ is smooth, connected and contained in the smooth locus of $S_W$, with $C_x^2=2$ and $g(C_x)=2+h_0/2$. \end{enumerate} \end{lemma} \begin{proof} Since $\tau$ is finite, $\tau_*\IC_{S_W}\simeq\QQ_{B^\vee}[2]\oplus\IC_{B^\vee}(W)$, where the summands are the $\iota$-invariant and anti-invariant parts. Since $\tilde S_W\to S_W$ is a resolution of a normal surface, $H^*(\tilde S_W)$ is the direct sum of $IH^*(S_W)$ and the span of the classes of the exceptional curves in $H^2(\tilde S_W)$, which are of type $(1,1)$. By Lemma~\ref{lem:transform} and Proposition~\ref{prop:W}, \[ H^1(\tilde S_W)\simeq\mathbb H^{-1}(B^\vee,\IC_{B^\vee}(W))\simeq A_0(1),\qquad IH^2(S_W)\simeq\QQ(-1)\oplus I_V, \] and $H^1(\tilde S_W)$ is anti-invariant. By Lemma~\ref{lem:lowest}, $I_V\simeq T(X)$ contains a unique line of type $(2,0)$, which is anti-invariant. This proves (a). The meridian $g_D$ of an irreducible curve $D\subset B^\vee\setminus U_W$ satisfies $\rk(g_D-1)=1$ if $g_D=-1$ and $\rk(g_D-1)=0$ otherwise, and $g_D=-1$ if and only if $D\subset\Delta_\tau$. Hence $N^\vee=\deg\Delta_\tau$, and $\deg\Delta_\tau=6+h_0$ by Lemma~\ref{lem:conductor}. A general line $x^\vee$ meets $\Delta_\tau$ transversally at $6+h_0$ smooth points and avoids the singular points of $S_W$. Hence $C_x$ is smooth, and it is connected since $W|_{x^\vee\cap U_W}$ is nontrivial by the Zariski--Lefschetz theorem. The projection formula gives $C_x^2=2$, and the Riemann--Hurwitz formula gives $g(C_x)=2+h_0/2$. \end{proof} \begin{lemma}\label{lem:irr} Suppose $r=1$. Then $h^0(\Omega^1_{\tilde S_W})=0$. \end{lemma} \begin{proof} Put $\mathsf q\coloneqq h^0(\Omega^1_{\tilde S_W})$ and suppose $\mathsf q>0$. For $\omega_1,\omega_2\in H^0(\Omega^1_{\tilde S_W})$, Lemma~\ref{lem:dinv}(a) gives $\iota^*(\omega_1\wedge\omega_2)=\omega_1\wedge\omega_2$ and $\iota^*=-1$ on $H^0(\Omega^2_{\tilde S_W})$, so $\omega_1\wedge\omega_2=0$. Hence the Albanese image of $\tilde S_W$ is a curve. Let $a\colon\tilde S_W\to\Gamma$ be the Stein factorization of the Albanese morphism. Then $H^0(\Omega^1_{\tilde S_W})=a^*H^0(\Omega^1_\Gamma)$, so $g(\Gamma)=\mathsf q$. The involution $\iota$ descends to $\Gamma$ and acts by $-1$ on $H^0(\Omega^1_\Gamma)$, so $\Gamma/\iota\simeq\PP^1$. Hence there is a rational map $\upsilon\colon B^\vee\dashrightarrow\PP^1$ with $\upsilon\circ\tau=(\Gamma\to\PP^1)\circ a$. Since a curve dominated by a rational surface is rational and $g(\Gamma)\ge1$, we have $\CC(\Gamma)\not\subset\CC(B^\vee)$, and hence $\CC(\tilde S_W)=\CC(B^\vee)\cdot\CC(\Gamma)$. Put $\kappa\coloneqq\CC(\PP^1)\subset\CC(B^\vee)$. The algebraic closure of $\kappa$ in $\CC(B^\vee)$ is contained in $\CC(\Gamma)\cap\CC(B^\vee)=\kappa$, so the geometric generic fiber of $\upsilon$ is integral. Let $x\in B$ be general, and put $n\coloneqq\deg(a|_{C_x})$. Comparing the degrees of $C_x\to x^\vee\to\PP^1$ and $C_x\to\Gamma\to\PP^1$ shows that $\upsilon|_{x^\vee}$ has degree $n$, so the general fiber of $\upsilon$ is a plane curve of degree $n$. If $n\le2$, the general fiber of $\upsilon$ is a line or a conic, so $\tilde S_W$ is birational to a surface with a fibration over $\Gamma$ whose general fiber is rational, and $h^0(\Omega^2_{\tilde S_W})=0$, contrary to Lemma~\ref{lem:dinv}(a). Hence $n\ge3$. Suppose $\mathsf q\ge2$. By Lemma~\ref{lem:dinv}(b), $2g(C_x)-2=2\mathsf q+2$, and the Riemann--Hurwitz formula for $C_x\to\Gamma$ gives $2\mathsf q+2\ge n(2\mathsf q-2)\ge3(2\mathsf q-2)$. Hence $\mathsf q=2$, $n=3$ and $C_x\to\Gamma$ is \'etale. Since $\pi_1(\Gamma)$ is finitely generated, $\Gamma$ has only finitely many connected \'etale covers of degree three, so the curves $C_x$ are isomorphic to each other for $x$ in a dense open subset of $B$, and the monodromy of $\{H^1(C_x)\}$ is finite. On the other hand, by Lemmas~\ref{lem:inversion}, \ref{lem:transform} and~\ref{lem:conductor}, $V$ is a direct summand of $\{H^1(x^\vee,j'_{x*}W)\}=\{H^1(C_x)\}$ on a dense open subset of $B$. This contradicts Proposition~\ref{prop:mono}. Suppose $\mathsf q=1$. Let $S_0$ be the minimal model of $\tilde S_W$, which exists since $h^0(\Omega^2_{\tilde S_W})=1$, let $C_0\subset S_0$ be the image of $C_x$, and let $F_0$ be a general fiber of the induced morphism $a_0\colon S_0\to\Gamma$. Then $n=C_0\cdot F_0$ and $\chi(\cO_{S_0})=1-\mathsf q+1=1$. By adjunction, $K_{\tilde S_W}\cdot C_x=2g(C_x)-2-C_x^2=2$. Writing $C_x=\varsigma^*C_0-\sum_im_iE_i$ for the blowdown $\varsigma\colon\tilde S_W\to S_0$ and its exceptional curves $E_i$, we get $C_0^2=2+\sum_im_i^2\ge2$ and $K_{S_0}\cdot C_0=2-\sum_im_i\le2$; since $K_{S_0}$ is nef and $C_0$ is effective, $K_{S_0}\cdot C_0\ge0$. If $F_0$ is rational, then $h^0(\Omega^2_{S_0})=0$, a contradiction. If $F_0$ is elliptic, the canonical bundle formula gives $K_{S_0}\equiv(1+\sum_k(1-1/m'_k))F_0$, where $m'_k$ are the multiplicities of the multiple fibers, so $n\le K_{S_0}\cdot C_0\le2$, a contradiction. If $g\coloneqq g(F_0)\ge2$, then $a_0$ is relatively minimal and $\deg a_{0*}\omega_{S_0/\Gamma}=\chi(\cO_{S_0})-(g(\Gamma)-1)(g-1)=1$. The slope inequality \cite[Theorem~4.1.3]{MP12} and the Hodge index theorem give \[ \frac{4(g-1)}{g}\le K_{S_0}^2\le\frac{(K_{S_0}\cdot C_0)^2}{C_0^2}\le2. \] Hence $g=2$ and equality holds in the Hodge index theorem, so $K_{S_0}\equiv C_0$ and $n=K_{S_0}\cdot F_0=2g-2=2$, a contradiction. This proves the lemma. \end{proof} \noindent For the slope inequality over an elliptic base, see \cite[\S4]{MP12}. \begin{proposition}\label{prop:sextic} Suppose $r=1$. Then the following hold. \begin{enumerate} \item $h_0=0$, $\Delta_\tau$ is a reduced sextic, $S_W$ has only Du Val singularities, and $\tilde S_W$ is a K3 surface. The exceptional curves of $\tilde S_W\to S_W$ span a negative definite lattice of rank $23-b_2(X)$. \item There is a dense open subset $B'\subset B$ such that $V|_{B'}\simeq\{H^1(C_x,\QQ)\}_{x\in B'}$ as variations of Hodge structures. \end{enumerate} \end{proposition} \begin{proof} By Lemmas~\ref{lem:dinv}(a) and~\ref{lem:irr}, $h_0=0$, so $\deg\Delta_\tau=6$ by Lemma~\ref{lem:dinv}(b). Since $S_W$ is normal, it is Cohen--Macaulay, so $\tau$ is flat with $\tau_*\cO_{S_W}\simeq\cO_{B^\vee}\oplus\cO_{B^\vee}(-3)$, and $\omega_{S_W}\simeq\tau^*(\omega_{B^\vee}(3))\simeq\cO_{S_W}$. Let $\omega$ be a nonzero holomorphic two-form on $\tilde S_W$ and $s$ a generator of $\omega_{S_W}$. On the complement of the exceptional locus, $\omega/s$ is a holomorphic function, which extends to $S_W$ by normality and is a nonzero constant by properness. Hence $s$ pulls back to a holomorphic two-form on $\tilde S_W$, so all discrepancies are nonnegative and $S_W$ has only Du Val singularities. Hence $\tilde S_W\to S_W$ is crepant, $K_{\tilde S_W}=0$, and $\tilde S_W$ is a K3 surface by Lemma~\ref{lem:irr}. Since $\dim IH^2(S_W)=1+\dim I_V=b_2(X)-1$, the exceptional curves span a negative definite lattice of rank $22-(b_2(X)-1)$. This proves (a). For general $x\in B$, the anti-invariant part of $H^1(C_x)$ is $H^1(x^\vee,j'_{x*}W)$ and the invariant part is $H^1(x^\vee,\QQ)=0$. By the proof of Lemma~\ref{lem:conductor} and $h_0=0$, $\Rad^t(\IC_{B^\vee}(W))\simeq P_V$, whose stalk at a general point $x$ is $V_x[2]$. Hence $\{H^1(C_x)\}\simeq V$ on a dense open subset $B'\subset B$, compatibly with Hodge structures. \end{proof} \noindent The double plane branched along a sextic and its genus-two curves are the classical source of Lagrangian fibrations of $\mathrm{K3}^{[2]}$-type; see \cite{Bea91,Mar96}. \begin{proposition}\label{prop:jac} Suppose $b_2(X)=23$ and $N\le30$. Put $H_W\coloneqq\tau^*\cO_{B^\vee}(1)$. Then the following hold. \begin{enumerate} \item $S_W$ is a smooth K3 surface with $\Pic(S_W)=\ZZ H_W$, and $x\mapsto C_x$ identifies $B$ with $|H_W|$. \item $d=1$, and $A_K\simeq\Pic^0_{C_K/K}$ over $K$, where $C_K$ is the generic member of $|H_W|$. \end{enumerate} \end{proposition} \begin{proof} By Corollary~\ref{cor:r}, $1\le r=N-29\le1$, so $r=1$. By Proposition~\ref{prop:sextic}(a), the exceptional lattice has rank zero, so $S_W$ is a smooth K3 surface and $\Delta_\tau$ is a smooth sextic. Since $H^2(S_W)=\QQ(-1)\oplus T(X)$ by the proof of Lemma~\ref{lem:dinv} and $T(X)$ contains no nonzero rational class of type $(1,1)$, $\rho(S_W)=1$. Since $H_W^2=2$ and the K3 lattice is even, $H_W$ is primitive. Since $\tau_*\cO_{S_W}(H_W)\simeq\cO_{B^\vee}(1)\oplus\cO_{B^\vee}(-2)$, we have $H^0(S_W,H_W)=\tau^*H^0(B^\vee,\cO(1))$, which proves (a). Let $x\in B$ be general and put $\Lambda_C\coloneqq H_1(C_x,\ZZ)$. Let $\ell\subset B$ be a general line through $x$, that is, a general pencil in $|H_W|$. Its singular members correspond to the lines through $[\ell]$ tangent to $\Delta_\tau$; they are nodal, since $[\ell]$ avoids the flex and bitangent lines of the smooth sextic. Blowing up the two base points gives a Lefschetz fibration over $\ell$ with a section whose total space is simply connected. By the van Kampen theorem, $\Lambda_C$ is spanned by the vanishing cycles. Since the dual curve of $\Delta_\tau$ is irreducible, all these vanishing cycles are conjugate up to sign under the monodromy of the full family over $B'$. Let $p$ be a prime and $\Lambda_{C,p}\coloneqq\Lambda_C\otimes\ZZ_p$. Let $\mathsf M\subset\Lambda_{C,p}/p$ be a nonzero monodromy invariant subspace. Since the vanishing cycles span $\Lambda_{C,p}/p$ and the intersection pairing is perfect, there is a vanishing cycle $w$ with $\langle\mathsf M,w\rangle\ne0$, and the Picard--Lefschetz formula $T_w(z)=z\pm\langle z,w\rangle w$ gives $w\bmod p\in\mathsf M$. By conjugacy, $\mathsf M=\Lambda_{C,p}/p$. By Proposition~\ref{prop:sextic}(b), $\Lambda_{b,\QQ}\simeq\Lambda_{C,\QQ}$ as local systems on a dense open subset. Hence $\Lambda_b\otimes\ZZ_p$ is a monodromy invariant lattice in $\Lambda_C\otimes\QQ_p$; after scaling by a power of $p$ it is contained in $\Lambda_{C,p}$ with nonzero reduction, so it equals $\Lambda_{C,p}$ by Nakayama's lemma. Since the two lattices differ at only finitely many primes, there is $c\in\QQ^*$ with $c\Lambda_b=\Lambda_C$. Hence the integral variations of Hodge structures underlying $A$ and the relative Jacobian of $\{C_x\}$ are isomorphic over a dense open subset, and so are the abelian schemes by \cite[Theorem~7.11]{Mil10}. This gives $A_K\simeq\Pic^0_{C_K/K}$. By Proposition~\ref{prop:mono}, the space of monodromy invariant alternating forms on $\Lambda_C$ is one-dimensional, so $\theta$ is a multiple of the intersection form, which is unimodular. Since $\theta$ is primitive, $d=1$. \end{proof} \noindent For the equivalence between abelian schemes and polarizable integral variations of Hodge structures of weight $-1$, see \cite[\S4.4]{Del71} and \cite[Theorem~7.11]{Mil10}. \section{Modular forms and the polarization type}\label{sec:mod} In this section, we bound the conductor $N$ from above (Proposition~\ref{prop:N}), we restrict the triple $(b_2(X),b_3(X),d)$ to a finite list (Proposition~\ref{prop:table}), and we determine the singular fibers over a general line when $d\in\{3,5,7\}$ (Lemmas~\ref{lem:odd} and~\ref{lem:sat}). The idea is that the pullback of a Siegel modular form of weight $k$ to $\ell$ is a section of a line bundle of degree $3k$, while its orders of vanishing at the points of $\ell\cap\Delta$ are bounded from below by the local monodromy. \subsection{The Hodge bundle}\label{sec:hodge} For a polarized abelian scheme $A'\to U'$, we denote by $\cE_{A'}$ its bundle of invariant relative differentials, that is, the dual of the pullback of $T_{A'/U'}$ along the zero section. \begin{lemma}\label{lem:hodge} There are a finite subset $Z_0\subset B$ and a vector bundle $\cE$ on $B\setminus Z_0$ with $\cE\simeq T_B|_{B\setminus Z_0}$ such that the following hold. \begin{enumerate} \item $\cE|_{B^\circ}=\cE_A$. \item Let $x\in\Delta\setminus Z_0$, and let $D\subset B\setminus Z_0$ be a disc meeting $\Delta$ transversally at $x$. Then the smooth locus $\mathcal N$ of $\pi^{-1}(D)\to D$ is a N\'eron model of $A|_{D\setminus\{x\}}$, and $\cE|_D=\Lie(\mathcal N^0/D)^\vee$, where $\mathcal N^0\subset\mathcal N$ is the identity component. \end{enumerate} In particular, $\det\cE|_\ell\simeq\cO_\ell(3)$ for a general line $\ell\subset B$. \end{lemma} \begin{proof} Let $b\in B^\circ$ and $\partial\in T_{B,b}$. For $y\in X_b$ and $\tilde\partial\in T_{X,y}$ with $d\pi(\tilde\partial)=\partial$, the restriction of $\iota_{\tilde\partial}\sigma$ to $T_{X_b,y}$ does not depend on $\tilde\partial$, since $X_b$ is Lagrangian. Hence $\partial$ defines a holomorphic one-form $\omega_\partial$ on the $A_b$-torsor $X_b$, which is translation invariant. Since $\sigma$ induces an isomorphism $T_{X,y}/T_{X_b,y}\simeq T_{X_b,y}^\vee$, the map $\partial\mapsto\omega_\partial$ is an isomorphism $T_B|_{B^\circ}\simeq\cE_A$. Let $Z_0\subset B$ be a finite set containing the zero-dimensional components and the singular points of $\Delta$ such that $X_x$ is as in Lemma~\ref{lem:types}(b) for every $x\in\Delta\setminus Z_0$. For $x$ and $D$ as in (b), a holomorphic section of $\pi$ over $D$ through a smooth point of $X_x$ identifies $\mathcal N$ with the N\'eron model of $A|_{D\setminus\{x\}}$ \cite[Proposition~2.2.2]{Kim26}, and the vertical tangent space along the section with $\Lie(\mathcal N^0/D)$. Contraction with $\sigma$ identifies $T_B|_D$ with $\Lie(\mathcal N^0/D)^\vee$, compatibly with the isomorphism $T_B|_{B^\circ}\simeq\cE_A$ on $D\setminus\{x\}$. Hence $\cE\coloneqq T_B|_{B\setminus Z_0}$, with these identifications, satisfies (a) and (b). Since a general line $\ell$ does not meet $Z_0$, $\det\cE|_\ell\simeq\det T_B|_\ell\simeq\cO_\ell(3)$. \end{proof} \begin{lemma}\label{lem:frame} Let $x\in\Delta\setminus Z_0$ be a point at which $X_x$ is of type $\mathrm I_n$ for some $n\ge1$, and let $D\subset B\setminus Z_0$ be a disc meeting $\Delta$ transversally at $x$. Define $T_x$ and $v_x$ for $\pi^{-1}(D)\to D$ as in Notation~\ref{not:line}, where $\Lambda$ is restricted to $D\setminus\{x\}$. Let $a_1,a_2\in\Lambda_\QQ^{T_x}$ be linearly independent with $\theta(a_1,a_2)=0$. Let $\omega_1,\omega_2\in H^0(D\setminus\{x\},\cE_A)$ be defined by $\int_{a_i}\omega_j=\delta_{ij}$. Then $(\omega_1,\omega_2)$ extends to a frame of $\cE|_D$, and the function $\int_y\omega_j$ on $D\setminus\{x\}$ extends holomorphically to $D$ for every $y\in\Lambda^{T_x}$ and $j\in\{1,2\}$. \end{lemma} \begin{proof} Replacing $(a_1,a_2)$ by a basis of $(\QQ a_1+\QQ a_2)\cap\Lambda$ changes $(\omega_1,\omega_2)$ by a constant invertible matrix, so we may assume that $a_1,a_2\in\Lambda$ and that $\ZZ a_1+\ZZ a_2\subset\Lambda$ is saturated. Let $\mathcal N$ be the smooth locus of $\pi$ over $D$, which is the N\'eron model of $A|_{D\setminus\{x\}}$, and let $\mathcal N^0\subset\mathcal N$ be its identity component. By Lemma~\ref{lem:hodge}(b), $\cE|_D=\Lie(\mathcal N^0/D)^\vee$. The exponential map $\exp\colon\Lie(\mathcal N^0/D)\to\mathcal N^0$ is a local biholomorphism, so for every $p\in\ker(\exp_x)=H_1(\mathcal N^0_x,\ZZ)$ there is a holomorphic section $\alpha_p$ of $\Lie(\mathcal N^0/D)$ near $x$ with $\alpha_p(x)=p$ and $\exp\circ\alpha_p=0$. Its values $\alpha_p(b)\in\ker(\exp_b)=\Lambda_b$, $b\ne x$, form a $T_x$-invariant flat section, and the loops $[0,1]\ni c\mapsto\exp(c\,\alpha_p(b))$ deform the loop $c\mapsto\exp(c\,p)$. By the proof of Lemma~\ref{lem:mult}, which applies to $D$ with the elliptic curve $E_x$ defined there, $p\mapsto\alpha_p(b)$ is an isomorphism $H_1(\mathcal N_x^0,\ZZ)\to\Lambda^{T_x}$, under which the class of a circle fiber of $\mathcal N^0_x\to E_x$ corresponds to $\pm v_x$. Since $\Lambda^{T_x}=v_x^\perp$ and the radical of $\theta|_{v_x^\perp}$ is $\ZZ v_x$, the isotropic lattice $\ZZ a_1+\ZZ a_2$ contains $\pm v_x$, and it has a basis $(v_x,a)$ with $a\notin\QQ v_x$. The section $\alpha_{v_x}$ has value at $x$ in $\Lie(\CC^*)\setminus\{0\}=\ker(\Lie(\mathcal N_x^0)\to\Lie(E_x))\setminus\{0\}$, and the value of $\alpha_a$ at $x$ maps to the nonzero element of $H_1(E_x,\ZZ)\subset\Lie(E_x)$ given by the image of $a$ in $\Lambda^{T_x}/\ZZ v_x\simeq H_1(E_x,\ZZ)$. Hence $\alpha_{v_x}(x)$ and $\alpha_a(x)$ form a basis of $\Lie(\mathcal N^0_x)$. For $b\ne x$, $\Lambda_{b,\RR}=\Lie(A_b)$ and $\theta$ is the imaginary part of a positive definite Hermitian form, so the Lagrangian subspace $\RR v_x+\RR a$ meets its image under multiplication by $\sqrt{-1}$ trivially and spans $\Lie(A_b)$ over $\CC$. Hence the sections of $\Lie(\mathcal N^0/D)$ extending $a_1,a_2$ form a frame near $x$, and $(\omega_1,\omega_2)$ is its dual frame. Finally, for $y\in\Lambda^{T_x}$ with $y=\alpha_p(b)$, the function $\int_y\omega_j=\langle\omega_j,\alpha_p\rangle$ is holomorphic on $D$. \end{proof} \begin{lemma}\label{lem:contact} Let $x\in\Delta\setminus Z_0$ be a point at which $X_x$ is of type $\mathrm{II}$, $\mathrm{III}$ or $\mathrm{IV}$, and let $e=6,4,3$, respectively. Define $T_x$, $\Lambda_{0,x}$ and $\Lambda_{1,x}$ for a disc meeting $\Delta$ transversally at $x$ as in Notation~\ref{not:line}. Let $(s,w)$ be local coordinates on $B$ at $x$ with $\Delta=\{s=0\}$ near $x$, and let $\tilde D\to D$ be the base change $s=u^e$ of a neighborhood $D$ of $x$. Then the pullback of $A$ to $\tilde D\setminus\{u=0\}$ extends to an abelian scheme $A^{\mathrm{good}}$ over $\tilde D$, and the following hold. \begin{enumerate} \item Let $g$ be the automorphism of $A^{\mathrm{good}}$ over $(u,w)\mapsto(\zeta_eu,w)$ induced by the deck transformation. There is a frame $(\alpha,\beta)$ of $\cE_{A^{\mathrm{good}}}$ with $g^*\alpha=\zeta_e\alpha$ and $g^*\beta=\beta$, and the pullback of $\cE$ to $\tilde D$ is the subsheaf of $\cE_{A^{\mathrm{good}}}(\{u=0\})$ generated by $u^{-1}\alpha$ and $\beta$. In particular, the pullback of $\det\cE$ to $\tilde D$ is $\det\cE_{A^{\mathrm{good}}}\otimes\cO_{\tilde D}(\{u=0\})$. \item Let $\mathcal S\subset\mathcal H_2$ be the locus of period matrices for which the rational planes $\Lambda_{0,x,\QQ}$ and $\Lambda_{1,x,\QQ}$ are sub-Hodge structures. Then the period map of $A^{\mathrm{good}}$ has contact order at least $e+1$ with $\mathcal S$ along $\{u=0\}$. \end{enumerate} \end{lemma} \begin{proof} Since $T_x^e=1$ by Lemma~\ref{lem:types}(c), the pullback of $A$ to $\tilde D\setminus\{u=0\}$ has trivial monodromy, so it extends to an abelian scheme $A^{\mathrm{good}}$ over $\tilde D$. Let $\tilde x\in\tilde D$ with $u(\tilde x)=0$, let $Q_{\tilde x}$ be the fiber of $A^{\mathrm{good}}$ over $\tilde x$, and let $g_*\in\{T_x,T_x^{-1}\}$ be the action of $g$ on $H_1(Q_{\tilde x},\ZZ)=\Lambda$. The planes $\Lambda_{0,x,\RR}$ and $\Lambda_{1,x,\RR}$ are complex lines in $\Lie(Q_{\tilde x})=\Lambda_\RR$, and $\cE_{A^{\mathrm{good}},\tilde x}=\cE_0\oplus\cE_1$, where $\cE_i$ is the line of $\CC$-linear forms vanishing on $\Lambda_{1-i,x,\RR}$. The automorphism $g$ acts trivially on $\cE_0$ and by a primitive $e$-th root of unity on $\cE_1$. We show that $g$ acts on $\cE_1$ by $\zeta_e$. Let $\omega_{\partial_s}$ be the section of $\cE$ corresponding to $\partial_s$ under Lemma~\ref{lem:hodge}, and let $y$ be a general point of $\mathrm{Sing}(X_x)$. As in the proof of Lemma~\ref{lem:crit}, there are Darboux coordinates $(w,\varrho,z',w')$ at $y$ with $\sigma=dw\wedge d\varrho+dz'\wedge dw'$, and then $s=h(w,z',w')$ for a holomorphic function $h$. By \cite[Proposition~4.2.4 and Theorem~5.2.1]{Kim26}, for fixed $w$, the germ $h(w,\cdot)$ is right equivalent to $h_e$, where $h_6=z'^2+w'^3$, $h_4=z'^2+w'^4$ and $h_3=z'w'(z'-w')$. On the curve $\{h=s\}$ in a slice of fixed $(w,\varrho)$, the form $\omega_{\partial_s}$ restricts to the Gelfand--Leray residue $dz'\wedge dw'/dh$. The polynomial $h_e$ is weighted homogeneous with weights $(\frac12,\frac13)$, $(\frac12,\frac14)$, $(\frac13,\frac13)$ for $e=6,4,3$, the weighted dilation identifying $\{h_e=s\}$ with $\{h_e=1\}$ multiplies the residue by $s^{-1/e}$, and the residue on $\{h_e=1\}$ extends to a nonzero holomorphic one-form on its elliptic completion. A coordinate change multiplies the residue by a unit, whose value at $y$ is nonzero. Since the vanishing cycles of $h(w,\cdot)$ span $\Lambda_{1,x,\QQ}$, the periods of $\omega_{\partial_s}$ on $\Lambda_{1,x}$ lie in $u^{-1}\CC\{u\}$ and are not all in $\CC\{u\}$; its periods on $\Lambda_{0,x}=\Lambda^{T_x}$ are holomorphic in $s$, as in the proof of Lemma~\ref{lem:frame}. Hence $u\,\omega_{\partial_s}$ extends to a section of $\cE_{A^{\mathrm{good}}}$ whose value at $\tilde x$ is a nonzero element of $\cE_1$. Since $\omega_{\partial_s}$ is pulled back from $D$, $g^*(u\,\omega_{\partial_s})=\zeta_eu\,\omega_{\partial_s}$, so $g$ acts on $\cE_1$ by $\zeta_e$. By \cite[Theorem~5.3]{Edi92}, the Lie algebra of the N\'eron model is the invariant part of the Lie algebra of the Weil restriction of $A^{\mathrm{good}}$. Averaging over the deck group, we obtain a frame $(\alpha,\beta)$ of $\cE_{A^{\mathrm{good}}}$ with $g^*\alpha=\zeta_e\alpha$ and $g^*\beta=\beta$, whose values over $\tilde x$ span $\cE_1$ and $\cE_0$. The dual frame $(\alpha^\vee,\beta^\vee)$ of the Lie algebra satisfies $g^*\alpha^\vee=\zeta_e^{-1}\alpha^\vee$ and $g^*\beta^\vee=\beta^\vee$, so the invariant Lie lattice is generated by $u\alpha^\vee$ and $\beta^\vee$ over the ring of functions of $D$. Dually, the pullback of $\cE$ is generated by $u^{-1}\alpha$ and $\beta$. This proves (a). For (b), choose a basis $(A_1,B_1)$ of $\Lambda_{1,x}\otimes\CC$ with $g_*A_1=\zeta_eA_1$, $g_*B_1=\zeta_e^{-1}B_1$ and $\theta(A_1,B_1)=1$, and a basis $(A_2,B_2)$ of $\Lambda_{0,x}\otimes\CC$ with $\theta(A_2,B_2)=1$ such that the $A_2$-period of $\beta$ is nonzero at $u=0$. Since $g^*\alpha=\zeta_e\alpha$, the $B_1$-period of $\alpha$ vanishes at $u=0$, so its $A_1$-period is nonzero at $u=0$. The $A$-periods trivialize $\cE_{A^{\mathrm{good}}}$, and the corresponding period matrix $(\tau_{ij})$ satisfies $\tau_{ij}(\zeta_eu,w)=\zeta_e^{c_{ij}}\tau_{ij}(u,w)$ with $(c_{11},c_{12},c_{22})=(2,1,0)$. Hence $\tau_{11}=O(u^2)$, $\tau_{12}=O(u)$, and $\mathcal S$ is defined by $\tau_{12}=0$. Let $x_1,x_2$ be functions on $\tilde D\setminus\{u=0\}$ with $dx_i=\int_{A_i}\sigma$, where $\int_{A_i}\sigma$ is the one-form on the base obtained by integrating $\sigma$ over the cycle $A_i$ in the fibers; the $B$-periods give functions $y_i$ with $dy_i=\int_{B_i}\sigma$, and $\tau_{ij}=\partial y_i/\partial x_j$ \cite[Lemmas~7.4 and~7.5]{DM96}. Write $dx_i=a_i\,du+b_i\,dw$. In the coordinates $(s,w)$, the coefficients of $dx_i$ are periods of the differentials in $\cE$, so by (a) and $ds=eu^{e-1}du$, we get $a_i=O(u^{e-2})$ and $b_i=O(u^{-1})$. Since $\partial_ub_i=\partial_wa_i$ is holomorphic and $e\ge3$, $b_i$ is holomorphic. Hence the $dx_i$ extend holomorphically over $\{u=0\}$, and we may choose primitives with $x_1(\zeta_eu,w)=\zeta_e^{-1}x_1(u,w)$ and $x_2(\zeta_eu,w)=x_2(u,w)$. Then $x_1=O(u^{e-1})$ and $x_2=x_2(0,w)+O(u^e)$. The determinant of $(dx_1,dx_2)$ with respect to $(du,dw)$ has order exactly $e-2$ along $\{u=0\}$: in the $A$-period trivialization, the frame of $\cE$ has determinant of order $-1$ by (a), and the change from $ds$ to $du$ adds $e-1$. Since $\partial_ux_1=O(u^{e-2})$, $\partial_wx_1=O(u^{e-1})$ and $\partial_ux_2=O(u^{e-1})$, this forces $\partial_wx_2(0,w)\ne0$ for general $w$. Since $dy_1=\tau_{11}dx_1+\tau_{12}dx_2$ is closed, $d\tau_{11}\wedge dx_1+d\tau_{12}\wedge dx_2=0$. The coefficient of $du\wedge dw$ in $d\tau_{11}\wedge dx_1$ is $O(u^e)$, and so is $\partial_w\tau_{12}\,\partial_ux_2$. Hence $\partial_u\tau_{12}\,\partial_wx_2=O(u^e)$, so $\partial_u\tau_{12}=O(u^e)$. Since $\tau_{12}(0,w)=0$, we get $\tau_{12}=O(u^{e+1})$. A rational isogeny changes the period map by a biholomorphism carrying $\mathcal S$ to the corresponding locus, so the contact order does not depend on the choice of lattice. This proves (b). \end{proof} \noindent The closedness of $\tau_{11}dx_1+\tau_{12}dx_2$ is the symmetry of special coordinates in \cite[Lemmas~7.4 and~7.5]{DM96}. \subsection{Auxiliary lattices and widths}\label{sec:aux} In this subsection, we fix a general line $\ell$ and a base point $b\in\ell\cap B^\circ$. We consider pairs $(\Lambda',\theta')$ of a lattice $\Lambda'\subset\Lambda_{b,\QQ}$ and an alternating form $\theta'\in\QQ_{>0}\theta$ such that $\theta'|_{\Lambda'\times\Lambda'}$ is integral and primitive and $\Lambda'$ is stable under a subgroup of finite index of $\pi_1(B^\circ,b)$. Let $U'\to B^\circ$ be the connected finite \'etale cover corresponding to the stabilizer of $\Lambda'$ in $\pi_1(B^\circ,b)$. Then $(\Lambda',\theta')$ defines a polarized abelian scheme $(A',\theta')$ over $U'$ isogenous to $A\times_{B^\circ}U'$, and the identity of $\Lambda'_\QQ=\Lambda_{b,\QQ}$ induces an isomorphism $\cE_{A'}\simeq\cE_A|_{U'}$. \begin{definition}\label{def:width} Let $(\Lambda',\theta')$ be as above, and let $x\in\ell\cap\Delta$ be multiplicative. Let $v'\in\Lambda'\cap\QQ_{>0}v_x$ be primitive in $\Lambda'$, $\delta'$ the divisibility of $v'$ with respect to $\theta'$, and $c'\in\QQ$ such that $T_x(y)=y+c'\theta'(y,v')v'$ for $y\in\Lambda'_\QQ$. The \emph{normalized width} of $\Lambda'$ at $x$ is $w_x(\Lambda')\coloneqq|c'|\delta'\in\QQ_{>0}$. \end{definition} By Lemma~\ref{lem:mult}(c), $w_x(\Lambda)=n_x$. If $\theta'=\lambda\theta$ and $v'=\mu v_x$ with $\lambda,\mu\in\QQ_{>0}$, then $c'=\epsilon n_x/(\delta_x\lambda\mu^2)$, so \begin{equation}\label{eq:width} w_x(\Lambda')=\frac{n_x\,\delta'}{\delta_x\,\lambda\,\mu^2}. \end{equation} \begin{definition}\label{def:Gt} Let $t$ be an \emph{exact divisor} of $d$, that is, $t\mid d$ and $\gcd(t,d/t)=1$. Let $\mathcal G_t$ be the set of subgroups $G\subset K(\theta)_b$ of order $d/t$ whose $p$-primary part is cyclic for every prime $p\mid d/t$. For $G\in\mathcal G_t$, let $\Lambda_G\subset\Lambda^\#_b$ be the preimage of $G$ and $\theta_G\coloneqq\theta|_{\Lambda_G}$. For an exact divisor $Q$ of $t$, let $\Lambda_{G,Q}\subset\Lambda_G^\#$ be the preimage of the $Q$-primary part of $K(\theta_G)$, and $\theta_{G,Q}\coloneqq Q\theta|_{\Lambda_{G,Q}}$. \end{definition} For a prime $p$ and a lattice $M$, we put $M_p\coloneqq M\otimes\ZZ_p$, and we denote by $K(\theta)_p$ and $G_p$ the $p$-primary parts. Every cyclic subgroup of $K(\theta)_b$ is isotropic for the Weil pairing. Let $G\in\mathcal G_t$. For a prime $p\mid d/t$, $G_p$ is a maximal isotropic subgroup of $K(\theta)_p\simeq(\ZZ/p^{v_p(d)})^2$, so $K(\theta_G)=G^\perp/G\simeq(\ZZ/t)^2$, and $\theta_G$ has type $(1,t)$. For a prime $p\mid Q$, there is a decomposition $\Lambda_{G,p}=U\oplus U'$ with $\theta_G(U,U')=0$ such that $\theta_G|_U$ and $p^{-v_p(t)}\theta_G|_{U'}$ are unimodular; then $\Lambda_{G,Q,p}=U\oplus p^{-v_p(t)}U'$, and $p^{-v_p(t)}\theta_{G,Q}|_U$ and $\theta_{G,Q}|_{p^{-v_p(t)}U'}$ are unimodular. Hence $\theta_{G,Q}$ has type $(1,t)$. \begin{lemma}\label{lem:hecke} Let $t$ be an exact divisor of $d$. \begin{enumerate} \item Let $x\in\ell\cap\Delta$ be multiplicative. Then $\frac1{\#\mathcal G_t}\sum_{G\in\mathcal G_t}w_x(\Lambda_G)=n_x$, and $w_x(\Lambda_{G,Q})=w_x(\Lambda_G)$ for every $G\in\mathcal G_t$ and every exact divisor $Q$ of $t$. \item Let $x\in\ell\cap\Delta$ be additive with $s_x>1$ and $s_x\nmid t$. Then $\Lambda_G=(\Lambda_G\cap\Lambda_{0,x,\QQ})\oplus(\Lambda_G\cap\Lambda_{1,x,\QQ})$ for at least $\#\mathcal G_t/(s_x+1)$ elements $G\in\mathcal G_t$. \item Let $x\in\ell\cap\Delta$ be additive with $s_x=1$. Then $\Lambda_{G,Q}=(\Lambda_{G,Q}\cap\Lambda_{0,x,\QQ})\oplus(\Lambda_{G,Q}\cap\Lambda_{1,x,\QQ})$ for every $G\in\mathcal G_t$ and every exact divisor $Q$ of $t$. \end{enumerate} \end{lemma} \begin{proof} For (a), the choices of $G_p$ at the primes $p\mid d/t$ are independent, and by \eqref{eq:width} the ratio $w_x(\Lambda_G)/n_x$ is the product of local factors. Fix a prime $p\mid d/t$, put $a\coloneqq v_p(d)$ and $\beta\coloneqq v_p(\delta_x)\le a$, and write $\Lambda_p=U\oplus U'$ with $\theta(U,U')=0$ such that $\theta|_U$ and $p^{-a}\theta|_{U'}$ are unimodular. The subgroup $G_p$ is generated by $p^{-a}w$ for a primitive $w\in U'$ whose line modulo $p^a$ is uniformly distributed among the $p^{a-1}(p+1)$ lines. Write $v_x=v_U+v_{U'}$ with $v_U\in U$ and $v_{U'}\in U'$. Then $\theta(v_x,\Lambda_p)=\theta(v_U,U)+\theta(v_{U'},U')$ and $\theta(v_{U'},U')\subset p^a\ZZ_p$. If $\beta>0$, then $v_U\in p^\beta U$ and $v_{U'}$ is primitive in $U'$; put $j\coloneqq\min(a,v_p(\det(w,v_{U'})))$, where $\det$ is taken in a basis of $U'$. Then $v_{U'}$ is divisible by $p^j$ in $U'+\ZZ_pp^{-a}w$, and $v_U$ is divisible by $p^\beta$ if $\beta2$ by Lemma~\ref{lem:orders}(c). At an additive point $x$ of type $\mathrm{II}$, $s_x\mid\nu_x=1$, so $\Lambda_G=(\Lambda_G\cap\Lambda_{0,x,\QQ})\oplus(\Lambda_G\cap\Lambda_{1,x,\QQ})$ by Lemma~\ref{lem:hecke}(c), and both summands are unimodular. Hence the fiber over $\{u=0\}$ of the abelian scheme $A'^{\mathrm{good}}$ defined by $\Lambda_G$ is a product of two elliptic curves as a principally polarized abelian surface, so $m\ge2$ in Lemma~\ref{lem:orders}(c), and $\bar o_x\ge(10+2)/6=2$. Corollary~\ref{cor:Nbound} gives $N\le30$. \end{proof} \subsection{Jacobi forms and theta blocks}\label{sec:theta} Let $\vartheta(\tau,z)\coloneqq\sum_{n\in\ZZ}(-1)^n\bfe\bigl(\tfrac{(2n+1)^2}8\tau+\tfrac{2n+1}2z\bigr)$ be the odd Jacobi theta function, $\vartheta_j(\tau,z)\coloneqq\vartheta(\tau,jz)$ for $j\in\ZZ_{\ge1}$, and $\eta(\tau)\coloneqq\bfe(\tau/24)\prod_{n\ge1}(1-\bfe(n\tau))$. The leading term of $\vartheta_j$ is $\bfe(\tau/8)(\bfe(jz/2)-\bfe(-jz/2))$, and $\vartheta_j(\tau,z)=0$ whenever $jz\in\ZZ+\tau\ZZ$. A \emph{theta block} is a function $\Theta=\eta^{a}\prod_{i=1}^{h_\Theta}\vartheta_{j_i}$ with $a\in\ZZ$ and $j_i\in\ZZ_{\ge1}$. Let $v_\eta$ be the multiplier system of $\eta$, which has order $24$. Then $\Theta$ transforms like a Jacobi form of weight $(a+h_\Theta)/2$ and index $\frac12\sum_ij_i^2$ with respect to the full Jacobi group, with the character $v_\eta^{a+3h_\Theta}$ on $\SL_2(\ZZ)$ and the character $(-1)^{\sum_ij_i}$ on the Heisenberg group, and its expansion in $\bfe(\tau)$ starts at the exponent $(a+3h_\Theta)/24$ \cite[\S2]{GSZ26}. We use the following facts. \begin{enumerate} \item[(T1)] Let $\Theta$ be a theta block with $a+3h_\Theta=24$ and $\sum_ij_i\in2\ZZ$, of integral weight $k$ and index $t$. If every monomial $\bfe(n\tau+rz)$ of the formal expansion of $\Theta$ satisfies $4tn-r^2>0$, then $\Theta$ is a Jacobi cusp form of weight $k$ and index $t$ with trivial character. \item[(T2)] For a Jacobi cusp form $\Theta$ of weight $k$ and index $t$ with trivial character, the Gritsenko lift $\mathrm{Grit}(\Theta)(Z)\coloneqq\sum_{m\ge1}(\Theta|_kV_m)(\tau,z)\bfe(mt\omega)$, where \[ (\Theta|_kV_m)(\tau,z)=m^{k-1}\sum_{a'c'=m}c'^{-k}\sum_{b'=0}^{c'-1}\Theta\Bigl(\frac{a'\tau+b'}{c'},a'z\Bigr), \] is a paramodular cusp form of weight $k$ for $\Gamma_t$ with trivial character, cuspidal at every rational boundary component, and an eigenform of the Fricke involution $V_t\colon(\tau,z,\omega)\mapsto(t\omega,z,\tau/t)$ \cite[Theorem~III.1.1]{HS02}. For $G\in\mathcal G_t$ and an exact divisor $Q$ of $t$, the Fricke involution maps the period point of $\Lambda_{G,Q}$ to that of $\Lambda_{G,t/Q}$; hence $o_x(\mathrm{Grit}(\Theta);\Lambda_{G,Q})=o_x(\mathrm{Grit}(\Theta);\Lambda_{G,t/Q})$. \item[(T3)] For the theta blocks used below, $\mathrm{Grit}(\Theta)$ is a Borcherds product \cite[Theorems~7.1 and~14.5]{GSZ26}, \cite[Corollaries~4.5 and~4.6]{WW24}; in particular, its divisor in $\mathcal H_2$ is supported on Humbert surfaces. Since every point of a Humbert surface corresponds to a polarized abelian surface with a nonscalar rational endomorphism fixed by the Rosati involution, Lemma~\ref{lem:end} shows that $\mathrm{Grit}(\Theta)$ does not vanish on the generic fiber of the abelian scheme defined by $\Lambda_{G,Q}$. \end{enumerate} For $s\in\{2,3\}$, put $h_s\coloneqq\#\{i:s\mid j_i\}$. For an exact divisor $t$ of $d$, let $\mathcal Q_t$ be a set of representatives of the exact divisors of $t$ modulo the relation $Q\sim t/Q$; then $\#\mathcal Q_t=2^{\max(0,\varpi(t)-1)}$, where $\varpi(t)$ is the number of prime divisors of $t$. For a theta block $\Theta$ as in (T1)--(T3), put \[ \bar o_x(\Theta)\coloneqq\frac1{\#\mathcal G_t\cdot\#\mathcal Q_t}\sum_{G\in\mathcal G_t}\sum_{Q\in\mathcal Q_t}o_x(\mathrm{Grit}(\Theta);\Lambda_{G,Q}). \] \begin{lemma}\label{lem:orderadd} Let $t$ be an exact divisor of $d$, and $\Theta$ a theta block of weight $k$ and index $t$ as in (T1)--(T3). Then the following hold. \begin{enumerate} \item For every multiplicative $x\in\ell\cap\Delta$, $\bar o_x(\Theta)\ge n_x$. \item Let $x\in\ell\cap\Delta$ be additive with $s_x=1$. Then $\bar o_x(\Theta)\ge k/e_x+h_\Theta/\#\mathcal Q_t$. \item Let $x\in\ell\cap\Delta$ be additive with $s_x>1$ and $s_x\nmid t$. Then $\bar o_x(\Theta)\ge k/e_x+h_\Theta/((s_x+1)\#\mathcal Q_t)$. \item Let $x\in\ell\cap\Delta$ be additive with $s_x>1$ and $s_x\mid t$. Then $\bar o_x(\Theta)\ge k/e_x+h_{s_x}/\#\mathcal Q_t$. \end{enumerate} \end{lemma} \begin{proof} By (T2), $\mathrm{Grit}(\Theta)$ is a cusp form for $\Gamma_t$ with trivial character, so (a) follows from Lemmas~\ref{lem:orders}(b) and~\ref{lem:hecke}(a). By Lemma~\ref{lem:orders}(c), $o_x(\mathrm{Grit}(\Theta);\Lambda_{G,Q})\ge k/e_x$ for every additive $x$ and every pair $(G,Q)$. Hence it suffices to show the following: in case (b), for every $G\in\mathcal G_t$ there is $Q\in\mathcal Q_t$ with $o_x(\mathrm{Grit}(\Theta);\Lambda_{G,Q})\ge k/e_x+h_\Theta$; in case (c), the same holds for at least $\#\mathcal G_t/(s_x+1)$ elements $G\in\mathcal G_t$; in case (d), for every $G\in\mathcal G_t$ there is $Q\in\mathcal Q_t$ with $o_x(\mathrm{Grit}(\Theta);\Lambda_{G,Q})\ge k/e_x+h_{s_x}$. Suppose that $\Lambda_G=(\Lambda_G\cap\Lambda_{0,x,\QQ})\oplus(\Lambda_G\cap\Lambda_{1,x,\QQ})$. By Lemma~\ref{lem:hecke}(c) and~(b), this holds for every $G$ in case (b), and for at least $\#\mathcal G_t/(s_x+1)$ elements $G$ in case (c). Since $\theta_G$ is primitive of type $(1,t)$, the degrees $\alpha',\alpha''$ of $\theta_G$ on the two summands satisfy $\alpha'\alpha''=t$ and $\gcd(\alpha',\alpha'')=1$. Then $\alpha'$ is an exact divisor of $t$, and $\Lambda_{G,\alpha'}$ is the direct sum of its intersections with the two planes, on which $\theta_{G,\alpha'}$ has degrees $1$ and $t$. By (T2), we may replace $\alpha'$ by its representative in $\mathcal Q_t$. For a symplectic basis $(f_1,f_2,e_1,e_2)$ of $\Lambda_{G,\alpha'}$ adapted to this decomposition, the period matrices of the split surfaces form the divisor $\{z=0\}$. Every term $\Theta((a'\tau+b')/c',a'z)$ of every Fourier--Jacobi coefficient $\Theta|_kV_m$ is divisible by $z^{h_\Theta}$ near $z=0$, since each theta factor vanishes at $z=0$. The Fourier--Jacobi expansion converges normally on compact subsets, so $\mathrm{Grit}(\Theta)$ vanishes to order at least $h_\Theta$ along $\{z=0\}$. By Lemma~\ref{lem:contact}(b), its pullback to $A'^{\mathrm{good}}$ vanishes to order at least $(e_x+1)h_\Theta$ along $\{u=0\}$, so Lemma~\ref{lem:orders}(c) gives $o_x(\mathrm{Grit}(\Theta);\Lambda_{G,\alpha'})\ge(k+(e_x+1)h_\Theta)/e_x\ge k/e_x+h_\Theta$. This proves (b) and (c). In case (d), put $s\coloneqq s_x$. Since $t$ is an exact divisor of $d$ and $s\mid t$, we have $s\nmid d/t$, so $\Lambda_{G,s}=\Lambda_s$. For a prime $q\ne s$, $\Lambda_q=\Lambda_{0,x,q}\oplus\Lambda_{1,x,q}$, and by Lemma~\ref{lem:addlat}(c), at most one of $\alpha_{0,x},\alpha_{1,x}$ is divisible by $q$; hence $K(\theta)_q$ and $G_q$ lie in one of the two planes, and $\Lambda_{G,q}$ is the direct sum of its intersections with the two planes. By Lemma~\ref{lem:addlat}(c) and its proof, applied to $\Lambda_{G,Q}$, exchanging the indices $0,1$ if necessary, we may choose an exact divisor $Q$ of $t$ with $s\nmid Q$ such that $\Lambda_{G,Q}=(\Lambda_{G,Q}\cap\Lambda_{0,x,\QQ})\oplus(\Lambda_{G,Q}\cap\Lambda_{1,x,\QQ})+\ZZ\frac{e_0+e_1}s$ for bases $(e_0,f_0)$ and $(e_1,f_1)$ of the two summands with $\theta_{G,Q}(e_0,f_0)=s$ and $\theta_{G,Q}(e_1,f_1)=t$; by (T2), we may assume $Q\in\mathcal Q_t$. Then \[ (f'_1,f'_2,e'_1,e'_2)\coloneqq\bigl(-f_0,\ \tfrac tsf_0-f_1,\ \tfrac{e_0+e_1}s,\ e_1\bigr) \] is a symplectic basis of $(\Lambda_{G,Q},\theta_{G,Q})$. At a point where $\Lambda_{0,x,\RR}$ and $\Lambda_{1,x,\RR}$ are complex lines, let $\zeta_i$ be the $\CC$-linear coordinate on $\Lambda_{i,x,\RR}$ with $\zeta_i(e_i)=1$, and put $\xi_i\coloneqq\zeta_i(f_i)$. The normalized coordinates are $z_1=s\zeta_0$ and $z_2=t(\zeta_1-\zeta_0)$, where $\zeta_i$ is extended by zero on $\Lambda_{1-i,x,\RR}$, and the period matrix is $\Omega=\left(\begin{smallmatrix}-s\xi_0&t\xi_0\\t\xi_0&-t\xi_1-(t^2/s)\xi_0\end{smallmatrix}\right)$. Hence $Z=D_t^{-1}\Omega D_t^{-1}$ satisfies $z=-\tau/s$. The element $(\tau,z,\omega)\mapsto(-1/\tau,-z/\tau,\omega-z^2/\tau)$ of the image of $\SL_2(\ZZ)$ in $\Gamma_t$ maps $\{z=-\tau/s\}$ onto $\{z=1/s\}$. If $s\mid j_i$, then $j_ia'z\in\ZZ$ for $z=1/s$, so $\vartheta_{j_i}((a'\tau+b')/c',a'z)=0$. Hence $\mathrm{Grit}(\Theta)$ vanishes to order at least $h_s$ along $\{z=1/s\}$, and Lemmas~\ref{lem:contact}(b) and~\ref{lem:orders}(c) give $o_x(\mathrm{Grit}(\Theta);\Lambda_{G,Q})\ge k/e_x+h_s$ for every $G\in\mathcal G_t$. This proves (d). \end{proof} \noindent The Fourier--Jacobi coefficients used here are those of the explicit lift in \cite[proof of Theorem~III.1.1]{HS02}. \begin{corollary}\label{cor:thetaN} Let $t$ be an exact divisor of $d$, and let $\Theta$ be a theta block of weight $k$ and index $t$ as in (T1)--(T3). Put $e_2\coloneqq4$ and $e_3\coloneqq3$. Suppose that the following hold. \begin{enumerate} \item $k/6+h_\Theta/\#\mathcal Q_t\ge2$. \item $k/e_s+h_\Theta/((s+1)\#\mathcal Q_t)\ge2$ for every $s\in\{2,3\}$ with $s\mid d$ and $s\nmid t$. \item $k/e_s+h_s/\#\mathcal Q_t\ge2$ for every $s\in\{2,3\}$ with $s\mid t$. \end{enumerate} Then $N\le3k$. \end{corollary} \begin{proof} Let $\mathfrak F\coloneqq(\mathrm{Grit}(\Theta),\Lambda_{G,Q})_{(G,Q)\in\mathcal G_t\times\mathcal Q_t}$. Since $\gamma\Lambda_{G,Q}=\Lambda_{\gamma G,Q}$ for $\gamma\in\pi_1(B^\circ,b)$, $\mathfrak F$ satisfies the assumption of Corollary~\ref{cor:Nbound}, and $\bar o_x=\bar o_x(\Theta)$. Let $x\in\ell\cap\Delta$ be additive. If $s_x=1$, then $\bar o_x(\Theta)\ge k/6+h_\Theta/\#\mathcal Q_t\ge2$ by Lemma~\ref{lem:orderadd}(b) and assumption (a). If $s_x>1$, then $s_x\in\{2,3\}$, $s_x\mid d$ and $e_x=e_{s_x}$ by Lemma~\ref{lem:addlat}(c). If moreover $s_x\nmid t$, then $\bar o_x(\Theta)\ge2$ by Lemma~\ref{lem:orderadd}(c) and assumption (b); if $s_x\mid t$, then $\bar o_x(\Theta)\ge2$ by Lemma~\ref{lem:orderadd}(d) and assumption (c). Corollary~\ref{cor:Nbound} and Lemma~\ref{lem:orderadd}(a) give $N\le3k$. \end{proof} \subsection{The possible polarization types}\label{sec:types} Put $\mathsf Q(a,b)\coloneqq a^2+ab+b^2$ and $\mathcal D\coloneqq\{1,2,\ldots,12\}\cup\{14,15,16,18,20,24,30,36\}$. For $a,b\in\ZZ_{\ge1}$, the \emph{theta quark} $\vartheta_a\vartheta_b\vartheta_{a+b}/\eta$ is a theta block of weight one and index $\mathsf Q(a,b)$. We say that $(a,b)$ is \emph{marked} if $3\nmid(a-b)/\gcd(a,b)$. \begin{lemma}\label{lem:norm} Every $n\in\ZZ_{\ge1}\setminus\mathcal D$ is of the form $n=\sum_{i=1}^3\mathsf Q(a_i,b_i)$ with $a_i,b_i\in\ZZ_{\ge1}$ and at least one marked pair $(a_i,b_i)$. \end{lemma} \begin{proof} Let $r_j(n)$ be the number of $(a_i,b_i)_{i\le j}\in\ZZ^{2j}$ with $\sum_i\mathsf Q(a_i,b_i)=n$. Let $\chi$ be the nontrivial Dirichlet character modulo three, $A_\chi(n)\coloneqq\sum_{c\mid n}\chi(c)c^2$, $B_\chi(n)\coloneqq\sum_{c\mid n}\chi(n/c)c^2$ and $\sigma_1(n)\coloneqq\sum_{c\mid n}c$, with $\sigma_1(n/3)\coloneqq0$ if $3\nmid n$. Then $r_2(n)=12(\sigma_1(n)-3\sigma_1(n/3))$ and $r_3(n)=27B_\chi(n)-9A_\chi(n)$ for $n\ge1$. Indeed, $\sum_{a,b}\bfe(\mathsf Q(a,b)\tau)=1+6\bfe(\tau)+O(\bfe(3\tau))$ is a modular form of weight one for $\Gamma_0(3)$ with character $\chi$; its square equals $(3E_2(3\tau)-E_2(\tau))/2$ and its cube equals $27\mathcal E_{\chi,1}-9\mathcal E_{1,\chi}$, where $\mathcal E_{\chi,1}$ and $\mathcal E_{1,\chi}$ are the Eisenstein series of weight three for $\Gamma_0(3)$ with coefficients $B_\chi(n)$ and $A_\chi(n)$ and constant terms $0$ and $L(-2,\chi)/2=-1/9$; the constant and linear coefficients agree, and Sturm's bound for $\Gamma_0(3)$ is at most one in weights two and three. If $3\nmid n$, then $A_\chi(n)=\chi(n)B_\chi(n)$ and $B_\chi(n)=n^2\prod_{p^k\Vert n}\sum_{i=0}^k\chi(p)^ip^{-2i}\ge n^2/\zeta(2)>n^2/2$, so $r_3(n)\ge18B_\chi(n)>9n^2$; moreover, every representation has a slot with $a_i\not\equiv b_i\pmod3$, since $\mathsf Q(a,b)\equiv0\pmod 3$ if $a\equiv b\pmod 3$. If $n=3^ku$ with $k\ge1$ and $3\nmid u$, the map $(a,b)\mapsto(a-b,a+2b)$ is a bijection from $\ZZ^2$ onto $\{(a,b):a\equiv b\pmod3\}$ with $\mathsf Q(a-b,a+2b)=3\mathsf Q(a,b)$, so the representations with $a_i\equiv b_i\pmod3$ in all slots are counted by $r_3(n/3)$, and the remaining ones number $r_3(n)-r_3(n/3)=27\cdot8\cdot9^{k-1}B_\chi(u)>9n^2$. In both cases there are more than $9n^2$ representations with some $a_i\not\equiv b_i\pmod3$. A slot on one of the lines $a_ib_i(a_i+b_i)=0$ contributes a square, so the number of representations with some slot on these nine lines is at most $9(2\sqrt n+1)\max_{m\le n}r_2(m)\le108(2\sqrt n+1)n(1+\log n)$, using $r_2(0)=1$ and $\sigma_1(m)\le m(1+\log m)$. This is less than $9n^2$ for $n\ge10^5$, since $108(2\sqrt n+1)(1+\log n)/(9n)$ is decreasing for $n\ge10^5$ and equals $0.951\ldots<1$ at $n=10^5$. The reflections $(a,b)\mapsto(-a,a+b)$ and $(a,b)\mapsto(a+b,-b)$ preserve $\mathsf Q$, $\gcd(a,b)$ and $a-b$ modulo $3\gcd(a,b)$, and the group they generate moves every point off the three lines into $\{a>0,b>0\}$. Hence the lemma holds for $n\ge10^5$. For $n<10^5$, the lemma is verified by the computation of Appendix~\ref{app:norm}: the integers $n\in[1,10^5]$ of the required form are exactly those outside $\mathcal D$. \end{proof} \noindent For theta quarks and their relation to the root system $A_2$, see \cite[\S7]{GSZ26}. \begin{proposition}\label{prop:prime} One has $d\mid 55440=2^4\cdot3^2\cdot5\cdot7\cdot11$. \end{proposition} \begin{proof} Let $p$ be a prime with $t\coloneqq p^{v_p(d)}\notin\mathcal D$. By Lemma~\ref{lem:norm}, $t=\sum_{i=1}^3\mathsf Q(a_i,b_i)$ with $a_i,b_i\in\ZZ_{\ge1}$ and a marked pair $(a_1,b_1)$. By \cite[Theorems~7.1 and~14.5]{GSZ26}, $\Theta\coloneqq\prod_{i=1}^3\vartheta_{a_i}\vartheta_{b_i}\vartheta_{a_i+b_i}/\eta$ satisfies (T1)--(T3), with $k=3$, $h_\Theta=9$ and $\#\mathcal Q_t=1$. Each triple $(a_i,b_i,a_i+b_i)$ has an even entry, so $h_2\ge3$, and the marked triple has an entry divisible by three, so $h_3\ge1$. Hence the left sides of the inequalities (a), (b) and (c) of Corollary~\ref{cor:thetaN} are at least $3/6+9$, $\min(3/4+9/3,3/3+9/4)$ and $\min(3/4+3,3/3+1)$, respectively, which are at least two. Corollary~\ref{cor:thetaN} gives $N\le9$, whereas $N\ge b_2(X)+7\ge12$ by Corollary~\ref{cor:r}. Hence $p^{v_p(d)}\in\mathcal D$ for every prime $p\mid d$. The least common multiple of the prime powers in $\mathcal D$ is $55440$. \end{proof} \begin{proposition}\label{prop:table} One of the following holds. \begin{enumerate} \item $(b_2(X),b_3(X))=(23,0)$ and $N=30$. \item $(b_2(X),b_3(X))\in\{(5,0),(6,4),(7,8)\}$ and $d\in\{3,12\}$. \item $(b_2(X),b_3(X))=(6,0)$ and $d\in\{2,8\}$. \item $(b_2(X),b_3(X),d)\in\{(5,8,5),(5,8,20),(6,12,5),(5,28,10),(5,36,7)\}$. \end{enumerate} \end{proposition} \begin{proof} By \cite[Theorem~3.6 and Corollary~3.7]{BD22}, $b_2(X)\in\{5,6,7,8,23\}$, $4\mid b_3(X)$, $b_3(X)\le36$ if $b_2(X)=5$, $b_3(X)\le16$ if $b_2(X)=6$, $b_3(X)\in\{0,8\}$ if $b_2(X)=7$, and $b_3(X)=0$ if $b_2(X)\in\{8,23\}$. Put $h_X\coloneqq248-b_2(X)+b_3(X)/4\in\ZZ$. By Proposition~\ref{prop:R}(b), $dh_X=(dR/2)^2$, and $dR/2\in\QQ$ by Proposition~\ref{prop:R}(a), so $dh_X$ is a square. By Proposition~\ref{prop:prime}, $d\mid55440$. If $b_2(X)=23$, then $N=30$ by Corollary~\ref{cor:r} and Proposition~\ref{prop:N}. For $b_2(X)\le8$, writing $h_X=h'c^2$ with $h'$ squarefree, the conditions are $d=h'a^2\mid55440$, which give the following lists: \[ \begin{array}{c|c|l} (b_2,b_3)&h_X&d\\\hline (5,0),(6,4),(7,8)&243&3,12,48\\ (5,8),(6,12)&245&5,20,45,80,180,720\\ (5,28)&250&10,40,90,360\\ (5,36)&252&7,28,63,112,252,1008\\ (6,0)&242&2,8,18,72\\ (8,0)&240&15,60,240 \end{array} \] and no $d$ for the other pairs. For $t\in\{28,40,45,48,63,72,80,112\}$, we put \[ \Theta_t\coloneqq\prod_{i=1}^3\vartheta_{a_i}\vartheta_{b_i}\vartheta_{a_i+b_i}/\eta, \] with the pairs $(a_i,b_i)$ given by \[ \begin{array}{c|c@{\qquad}c|c} t&(a_1,b_1),(a_2,b_2),(a_3,b_3)&t&(a_1,b_1),(a_2,b_2),(a_3,b_3)\\\hline 28&(1,1),(2,2),(3,1)&63&(2,1),(2,1),(5,3)\\ 40&(2,1),(2,2),(4,1)&72&(2,1),(3,1),(6,2)\\ 45&(2,1),(2,1),(5,1)&80&(1,1),(4,2),(5,3)\\ 48&(2,1),(3,1),(4,2)&112&(1,1),(4,4),(5,4) \end{array} \] Then $\sum_i\mathsf Q(a_i,b_i)=t$, one pair is marked, $k=3$, $h_\Theta=9$, $\#\mathcal Q_t=2$, $h_2\ge3$, and $h_3\ge2$ if $3\mid t$. Hence the inequalities of Corollary~\ref{cor:thetaN} hold; for instance, if $3\mid d$ and $3\nmid t$, the left side of (b) for $s=3$ is $1+9/8$. Corollary~\ref{cor:thetaN} gives $N\le9<12$. This excludes every $d$ admitting one of these $t$ as an exact divisor, namely $d\in\{28,40,45,48,63,72,80,90,112,180,252,360,720,1008\}$. For $t\in\{10,15,18,20\}$, let $\Theta_t\coloneqq\prod_{i=1}^8\vartheta_{j_i}$ with \[ (j_i)=(1,1,1,1,2,2,2,2),\ (1,1,1,1,2,2,3,3),\ (1,1,2,2,2,2,3,3),\ (1,1,1,2,2,2,3,4), \] respectively. Then $\frac12\sum_ij_i^2=t$, $k=4$, $a+3h_\Theta=24$ and $\sum_ij_i\in2\ZZ$. A monomial $\bfe(n\tau+rz)$ of $\Theta_t$ comes from $y\in(\ZZ+\frac12)^8$ with $n=\|y\|^2/2$ and $r=y\cdot J$, where $J=(j_1,\ldots,j_8)$, so $4tn-r^2=\|J\|^2\|y\|^2-(y\cdot J)^2\ge0$, with equality only if $y=cJ$; a coordinate with $j_i=1$ forces $c\in\ZZ+\frac12$, and a coordinate with $j_i=2$ then gives an integral coordinate of $y$, which is impossible. Hence (T1) holds, and (T3) holds by \cite[Corollary~4.5]{WW24}. Since $\#\mathcal Q_t=2$ and $h_\Theta=8$, the left sides of the inequalities of Corollary~\ref{cor:thetaN} are $4/6+4$, $4/e_s+4/(s+1)$ and $4/e_s+h_s/2$, which are at least two by the listed values of $j_i$. Corollary~\ref{cor:thetaN} gives $N\le12$. Since $N\ge b_2(X)+7$, this excludes $d\in\{15,60,240\}$ for $b_2(X)=8$ (using $t=15$) and $d\in\{18,20\}$ for $b_2(X)=6$. The remaining triples are those in the statement. The arithmetic of this proof is verified by the computation of Appendix~\ref{app:table}. \end{proof} \begin{corollary}\label{cor:N12} If $(b_2(X),b_3(X),d)\in\{(5,8,20),(5,28,10)\}$, then $N=12$ and $r=1$. \end{corollary} \begin{proof} By the proof of Proposition~\ref{prop:table}, $N\le12$ (using $t=d$), and $N\ge b_2(X)+7=12$ by Corollary~\ref{cor:r}. Hence $N=12$ and $r=N-b_2(X)-6=1$. \end{proof} \subsection{Equality in the modular bound}\label{sec:equality} We now determine the singular fibers and the monodromy of the polarization kernel when $d\in\{3,5,7\}$. \begin{lemma}\label{lem:odd} Suppose $d\in\{5,7\}$. Then the following hold. \begin{enumerate} \item Every $x\in\ell\cap\Delta$ is multiplicative with $\delta_x=1$. \item The local system $K(\theta)$ on $B^\circ$ is constant. \end{enumerate} \end{lemma} \begin{proof} For $d=5$, let $\Theta\coloneqq\eta^3\vartheta_1^6\vartheta_2$; for $d=7$, let $\Theta\coloneqq\vartheta_1^6\vartheta_2^2$. These are theta blocks of weights $k=5,4$ and indices $t=5,7$, with $a+3h_\Theta=3+21=24$ and $0+24=24$, and with $\sum_ij_i=8,10$. The factor $\eta^3$ shifts the exponent by at least $1/8$, which gives $4tn-r^2\ge t/2>0$ in the first case, and the argument of the proof of Proposition~\ref{prop:table} applies in the second case. Hence (T1) holds, and (T3) holds by \cite[Corollary~4.5]{WW24}. Here $t=d$ is prime, so $\#\mathcal Q_t=1$, and $s_x=1$ for every additive $x$, since otherwise $s_x\mid d$ by Lemma~\ref{lem:addlat}(c). By Proposition~\ref{prop:table}, $d=5$ (resp.\ $7$) occurs only for $h_X=245$ (resp.\ $252$), so $R=14$ (resp.\ $12$) by Proposition~\ref{prop:R}(b), and $3k-R=1$ (resp.\ $0$). By the proof of Corollary~\ref{cor:thetaN}, $\sum_{x\in\ell}\bar o_x(\Theta)=3k$ and $\bar o_x(\Theta)\ge0$ for $x\in\ell\cap B^\circ$. By Lemma~\ref{lem:orderadd}(a) and~(b), $\bar o_x(\Theta)\ge n_x\ge n_x/\delta_x$ for multiplicative $x$, and $\bar o_x(\Theta)\ge k/e_x+h_\Theta\ge k/e_x+7$ for additive $x$, whose contribution $\mu_x/\alpha_{1,x}$ to $R$ in Proposition~\ref{prop:R}(a) is at most $4$. Summing, $3k-R\ge\sum_{x\ \mathrm{mult}}(n_x-n_x/\delta_x)+\sum_{x\ \mathrm{add}}3$. Since $3k-R\le1$, there are no additive points. Since $\delta_x\mid d$ and $d$ is prime, $\delta_x\in\{1,d\}$. Put $\Sigma\coloneqq\sum_{\delta_x=d}n_x$. Then $R-\sum_{\delta_x=1}n_x=\Sigma/d$ is an integer, so $d\mid\Sigma$, and $(1-1/d)\Sigma\le3k-R\le1$, so $\Sigma=0$. For $y\in\Lambda^\#$ and multiplicative $x$ with $\delta_x=1$, Lemma~\ref{lem:mult}(c) gives $(T_x-1)y=\epsilon n_x\theta(y,v_x)v_x\in\Lambda$, so $T_x$ acts trivially on $K(\theta)=\Lambda^\#/\Lambda$. Since $B$ is simply connected, these meridians normally generate $\pi_1(B^\circ,b)$. This proves the lemma. \end{proof} \begin{lemma}\label{lem:sat} Suppose $d=3$. Then $R=18$, and the following hold. \begin{enumerate} \item Every $x\in\ell\cap\Delta$ is multiplicative with $\delta_x=1$, and $\sum_{x\in\ell\cap\Delta}n_x=18$. \item The local system $K(\theta)$ is constant, and no smooth fiber $(A_b,\theta)$ is a product of two elliptic curves as a polarized abelian surface. \end{enumerate} \end{lemma} \begin{proof} By Proposition~\ref{prop:table}, $h_X=243$, so $R=18$ by Proposition~\ref{prop:R}(b). Let $\Delta_1$ be the paramodular form of weight one for $\Gamma_3$ of Gritsenko--Hulek \cite[\S2]{GH99}; it has a character of order six, its divisor in $\mathcal H_2$ is the Humbert surface $\{z=0\}$ of products with multiplicity one, and its first Fourier--Jacobi coefficient is $\eta(\tau)\vartheta(\tau,z)$. Then $\Phi\coloneqq\Delta_1^6$ is a cusp form of weight six for $\Gamma_3$ with trivial character. Since $\pi_1(B^\circ,b)\cdot\Lambda=\{\Lambda\}$, \eqref{eq:orbitavg} gives $\ord_x(\Phi;\Lambda)=o_x(\Phi;\Lambda)$, and $\sum_{x\in\ell}\ord_x(\Phi;\Lambda)=18$ by Lemma~\ref{lem:orders}(a). At a multiplicative point, $\ord_x(\Phi;\Lambda)\ge n_x\ge n_x/\delta_x$ by Lemma~\ref{lem:orders}(b). At an additive point with $s_x=1$, $\Lambda=\Lambda_{0,x}\oplus\Lambda_{1,x}$ with $\{\alpha_{0,x},\alpha_{1,x}\}=\{1,3\}$ by Lemma~\ref{lem:addlat}(a), so Lemmas~\ref{lem:contact}(b) and~\ref{lem:orders}(c) give $\ord_x(\Phi;\Lambda)\ge(6+6(e_x+1))/e_x>6$, while its contribution to $R$ is at most $4$. At an additive point with $s_x>1$, Lemma~\ref{lem:addlat}(c) gives $s_x=3$, $e_x=3$ and $\alpha_{0,x}=\alpha_{1,x}=3$, so $\ord_x(\Phi;\Lambda)\ge6/3=2>4/3=\mu_x/\alpha_{1,x}$ by Lemma~\ref{lem:orders}(c). Since $\sum_x\ord_x(\Phi;\Lambda)=18=R$, every point is multiplicative with $\ord_x(\Phi;\Lambda)=n_x=n_x/\delta_x$, so $\delta_x=1$. This proves (a), and it shows that $\Phi(A)$ has no zero on $\ell\cap B^\circ$. The locus of $b\in B^\circ$ such that $(A_b,\theta)$ is a polarized product is the pullback of the divisor of $\Delta_1$ under the period map. If it is nonempty, it has pure dimension one and meets a general line $\ell$ at a point where $\Phi(A)$ vanishes, contrary to the last assertion of the previous paragraph. The constancy of $K(\theta)$ follows from $\delta_x=1$ as in the proof of Lemma~\ref{lem:odd}. \end{proof} \noindent For the Fourier--Jacobi expansion and the divisor of $\Delta_1$, see \cite[\S2, Lemma~2.1]{GH99} and \cite{CG11}. \begin{lemma}\label{lem:gluing} Suppose $d=3$, and let $x\in\ell\cap\Delta$. Let $(f_1,f_2,e_1,e_2)$ be a symplectic basis of $\Lambda$ with $e_1=v_x$, with period matrix $\Omega$. Then $\Omega_{12}$ and $\Omega_{22}$ extend holomorphically to $x$, and $\Omega_{12}(x)\notin3\ZZ+\Omega_{22}(x)\ZZ$. \end{lemma} \begin{proof} By Lemma~\ref{lem:sat}(a), $x$ is multiplicative with $\delta_x=1$, so such bases exist. By Lemma~\ref{lem:frame}, applied to $a_1=e_1$ and $a_2=e_2$, the normalized coordinates $z=(z_1,z_2)$ form a frame of $\cE$ near $x$, and $\Omega_{12}=\int_{f_2}dz_1$ and $\Omega_{22}=\int_{f_2}dz_2$ extend holomorphically to $x$, since $f_2\in\Lambda^{T_x}$. Write $\Omega=D_3ZD_3$ with $Z=\left(\begin{smallmatrix}\tau&z\\z&\omega\end{smallmatrix}\right)$. By Lemma~\ref{lem:mult}(c), $T_x(f_1)=f_1\pm n_xe_1$, so $\tau=\Omega_{11}$ satisfies $\mathrm{Im}\,\tau\to\infty$ at $x$, while $z=\Omega_{12}/3$ and $\omega=\Omega_{22}/9$ are holomorphic at $x$. We have to show $z(x)\notin\ZZ+3\omega(x)\ZZ$. The Fricke involution $V_3\colon(\tau,z,\omega)\mapsto(3\omega,z,\tau/3)$ normalizes $\Gamma_3$ and preserves the divisor of $\Delta_1$, which is the $\Gamma_3$-orbit of $\{z=0\}$. Hence $(\Phi\circ V_3)/\Phi$ has no zero or pole in $\mathcal H_2$; it is $\Gamma_3$-invariant, extends across the Baily--Borel boundary, which has codimension two, and hence it is a constant $c\ne0$. Writing $\Phi(\tau,z,\omega)=c^{-1}\Phi(3\omega,z,\tau/3)$ and expanding in $\bfe(\tau)$, the leading coefficient of $\Phi$ at the cusp of $v_x$ is $c^{-1}(\eta(3\omega)\vartheta(3\omega,z))^6$, which vanishes exactly when $z\in\ZZ+3\omega\ZZ$. If $z(x)\in\ZZ+3\omega(x)\ZZ$, then $\ord_x(\Phi;\Lambda)>n_x$, contrary to the proof of Lemma~\ref{lem:sat}. This proves the lemma. \end{proof} \section{Translations by torsion sections}\label{sec:transl} In this section, we study the automorphisms of $X$ induced by torsion sections of $A$. Using their fixed loci, we exclude $d\in\{5,7\}$ (Proposition~\ref{prop:d57}), and we bound the group of sections of $A[2]$ over $B^\circ$ in the cases $d\in\{2,8,12\}$ (Lemmas~\ref{lem:inv28} and~\ref{lem:inv12}). We write $A(B^\circ)_{\mathrm{tors}}$ for the group of torsion sections of $A\to B^\circ$, and $A(B^\circ)[2]\coloneqq H^0(B^\circ,A[2])$. \begin{lemma}\label{lem:extend} Let $a\in A(B^\circ)_{\mathrm{tors}}$. Then the translation by $a$ on $X^\circ$ extends to an automorphism $g_a$ of $X$ with $g_a^*\sigma=\sigma$, $\pi\circ g_a=\pi$ and $g_a^*=\mathrm{id}$ on $H^2(X,\QQ)$. \end{lemma} \begin{proof} The translation by $a$ is a birational self-map $g$ of $X$ over $B$. Write $g^*\sigma=c_\sigma\sigma$ with $c_\sigma\in\CC^*$. For $b\in B^\circ$, $\partial\in T_{B,b}$ and a vertical tangent vector $\xi$ at a point of $X_b$, we have $\sigma(\tilde\partial,\xi)=(\iota_{\tilde\partial}\sigma|_{X_b})(\xi)$, and the one-form $\iota_{\tilde\partial}\sigma|_{X_b}$ is translation invariant by the proof of Lemma~\ref{lem:hodge}. Since this pairing is perfect, $c_\sigma=1$. The map $g^*$ is a Hodge isometry of $(H^2(X,\ZZ),q_X)$ \cite[Lemma~2.6]{Huy99} with $g^*L=L$. Let $H$ be an ample class. Since $\NS(X)_\QQ=\QQ L+\QQ H$, we have $g^*H=\lambda_1H+\lambda_2L$ with $\lambda_1,\lambda_2\in\QQ$; then $q_X(L,g^*H)=q_X(L,H)$ gives $\lambda_1=1$, and $q_X(g^*H)=q_X(H)$ gives $\lambda_2=0$. A birational map between hyper-K\"ahler manifolds is an isomorphism in codimension one. Since $\Pic^0(X)=0$ and $H^2(X,\ZZ)$ is torsion free, $g^*\cO_X(H)\simeq\cO_X(H)$, so $g$ acts linearly on $H^0(X,\cO_X(kH))$ for $k\ge1$, compatibly with $g$ on its domain of definition. Taking $k$ with $kH$ very ample shows that $g$ is an automorphism $g_a$. Finally, $\im(g_a^*-1)\subset H^2(X,\QQ)$ is orthogonal to $\NS(X)_\QQ$ and to $\sigma,\bar\sigma$, since $g_a^*$ is an isometry fixing these classes. Hence it is a rational subspace of type $(1,1)$ orthogonal to $\NS(X)_\QQ$, so it is zero since $q_X|_{\NS(X)_\QQ}$ is nondegenerate. \end{proof} \begin{lemma}\label{lem:freefib} Suppose that $d=p$ is prime and that $K(\theta)$ is constant, and let $a\in K(\theta)(B^\circ)\setminus\{0\}$. Let $x\in\ell\cap\Delta$ be multiplicative with $\delta_x=1$. Then $g_a$ has no fixed point on $X_b$ for $b\in B^\circ$, nor on $X_x$. \end{lemma} \begin{proof} On $X_b$, $g_a$ is a translation by a nonzero point. Over a disc $D$ around $x$, a section through a smooth point of $X_x$ identifies the smooth locus of $\pi^{-1}(D)\to D$ with the N\'eron model $\mathcal N$, and $\mathcal N_x^0$ is an extension of an elliptic curve $E_x$ by $\CC^*$ with $H_1(\mathcal N^0_x,\ZZ)\simeq v_x^\perp\subset\Lambda$ by the proof of Lemma~\ref{lem:mult}. Represent $a$ by $z\in\Lambda^\#$. Since $\delta_x=1$, there is $w\in\Lambda$ with $\theta(w,v_x)=1$; replacing $z$ by $z-\theta(z,v_x)w$, we may assume $z\in v_x^\perp\otimes\QQ$. By the compatibility of the identification $H_1(\mathcal N_x^0,\ZZ)=v_x^\perp$ with division points in the proof of Lemma~\ref{lem:mult}, the specialization of $a$ lies in $\mathcal N_x^0$. If its image in $E_x$ were zero, then $z=cv_x+y$ with $c\in\QQ$ and $y\in v_x^\perp$, and $\theta(z,w)=c\,\theta(v_x,w)+\theta(y,w)=-c+\theta(y,w)\in\ZZ$ would give $c\in\ZZ$ and $z\in\Lambda$, a contradiction. Hence $g_a$ acts on $X_x$ compatibly with a nonzero translation of $E_x$ under the projection of each ruled component and of each singular elliptic curve to $E_x$, so it has no fixed point on $X_x$. \end{proof} \begin{proposition}\label{prop:d57} One has $d\notin\{5,7\}$. \end{proposition} \begin{proof} Suppose $d=p\in\{5,7\}$. By Lemma~\ref{lem:odd}, $K(\theta)$ is constant and every $x\in\ell\cap\Delta$ is multiplicative with $\delta_x=1$. By Lemma~\ref{lem:extend}, $G\coloneqq K(\theta)(B^\circ)\simeq(\ZZ/p)^2$ acts on $X$ by symplectic automorphisms $g_a$ over $B$. Let $1\ne g\in G$. The fixed locus $X^g$ is a disjoint union of smooth symplectic submanifolds. A component of dimension two of $X^g$ does not dominate $B$ or a curve in $B$ by Lemma~\ref{lem:freefib}, and it is not contained in a fiber, since every irreducible component of a fiber is Lagrangian \cite[Theorem~1]{Mat00}. Hence $X^g$ is finite. At a point of $X^G$, the tangent representation of $G$ is a sum of characters $\chi_1,\chi_1^{-1},\chi_2,\chi_2^{-1}$, and $\ker(\chi_1)$ contains an element $g\ne1$ with a positive-dimensional fixed tangent space, which is impossible. Hence $X^G=\varnothing$. If $p=5$, then $e(X)\equiv e(X^G)=0\pmod5$, since $G$ is a $5$-group acting on a finite CW complex. By Proposition~\ref{prop:table}, $(b_2(X),b_3(X))\in\{(5,8),(6,12)\}$, and $e(X)=48+12b_2(X)-3b_3(X)=84$, a contradiction. If $p=7$, choose $1\ne g\in G$. The group $G/\langle g\rangle\simeq\ZZ/7$ acts freely on $X^g$, and the holomorphic Lefschetz number is \[ L(g,\cO_X)=\sum_{y\in X^g}\det(1-dg_y^{-1})^{-1}=\sum_{i=0}^4(-1)^i\tr(g^*|H^i(X,\cO_X))=3, \] since $g$ is symplectic. The terms at the points of a $G/\langle g\rangle$-orbit agree. Let $\mathfrak v$ be the valuation of $\QQ(\zeta_7)$ at $1-\zeta_7$, normalized by $\mathfrak v(1-\zeta_7)=1$. Since $dg_y$ has four nontrivial eigenvalues $\zeta_7^{c_i}$, every term has valuation $-4$, and the sum over an orbit has valuation $\mathfrak v(7)-4=2$. Hence $\mathfrak v(L(g,\cO_X))\ge2$, whereas $\mathfrak v(3)=0$, a contradiction. \end{proof} \begin{notation}\label{not:involution} Let $g$ be a symplectic involution of $X$ with $g^*=\mathrm{id}$ on $H^2(X,\QQ)$. Let $n_0(g)$ be the number of isolated fixed points of $g$, $n_{\mathrm{K3}}(g)$ the number of K3 surfaces in $X^g$, $v(g)\coloneqq\sum_S\int_Sc_2(N_{S/X})$, where $S$ runs over the components of dimension two of $X^g$, and $t(g)\coloneqq\tr(g^*|H^{1,2}(X))$. Let $\tilde X\to X$ be the blowup along the components of dimension two of $X^g$, and $Y_g\coloneqq\tilde X/\langle g\rangle$. \end{notation} A component $S$ of dimension two of $X^g$ is a symplectic surface, so $K_S=0$ and $S$ is a K3 surface or an abelian surface; its normal bundle $N_{S/X}$ is symplectic, so $c_1(N_{S/X})=0$, and $g$ acts by $-1$ on $N_{S/X}$. The quotient $Y_g$ is smooth along the image of the exceptional divisors and has singularities $\CC^4/\{\pm1\}$ at the images of the isolated fixed points. The reflexive symplectic form of $X/\langle g\rangle$ extends to the regular locus of $Y_g$, and $h^1(\cO_{Y_g})=0$, $h^0(\Omega^{[2]}_{Y_g})=1$. Hence $Y_g$ is a projective primitive symplectic variety with isolated quotient singularities \cite[Definition~3.1]{FM21}, and it carries a Beauville--Bogomolov form $q_{Y_g}$ satisfying the Fujiki relation $\int_{Y_g}y^4=c_{Y_g}q_{Y_g}(y)^2$ \cite[(2.4)]{Tig25}. \begin{lemma}\label{lem:fixed} In Notation~\ref{not:involution}, the following hold. \begin{enumerate} \item $X^g$ contains at most one component of dimension two. \item $n_0(g)+8n_{\mathrm{K3}}(g)+v(g)=48$ and $\frac12n_0(g)+8n_{\mathrm{K3}}(g)=2b_2(X)+8-t(g)$. \end{enumerate} \end{lemma} \begin{proof} Since rational cohomology of a finite quotient is the invariant cohomology, $H^2(X,\QQ)=H^2(X,\QQ)^g$ embeds into $H^2(Y_g,\QQ)$ by pullback along $Y_g\to X/\langle g\rangle$, and $\int_{Y_g}x^4=\frac12\int_Xx^4=\frac{c_X}2q_X(x)^2$ for $x\in H^2(X,\QQ)$. Hence we may normalize $q_{Y_g}$ so that $q_{Y_g}|_{H^2(X,\QQ)}=q_X$ and $c_{Y_g}=c_X/2$. Let $S_i$ be the components of dimension two of $X^g$, $\tilde E_i\subset\tilde X$ the exceptional divisors and $E_i\subset Y_g$ their images; the pullback of $E_i$ to $\tilde X$ is $2\tilde E_i$. For an ample class $H$ on $X$, $\int_{Y_g}H^3E_i=\int_{\tilde X}H^3\tilde E_i=0$ and $\int_{Y_g}H^2E_i^2=2\int_{\tilde X}H^2\tilde E_i^2=-2\int_{S_i}H^2<0$. The polarized Fujiki relation gives $q_{Y_g}(H,E_i)=0$ and $q_{Y_g}(E_i)<0$. If $i\ne j$, then $\int_{Y_g}H^2E_iE_j=0$ gives $q_{Y_g}(E_i,E_j)=0$, and then $\int_{Y_g}E_i^2E_j^2=\frac{c_{Y_g}}3q_{Y_g}(E_i)q_{Y_g}(E_j)>0$, which contradicts $E_i\cap E_j=\varnothing$. This proves (a). For (b), we apply the holomorphic Lefschetz formula to $\cO_X$ and to $4\cO_X-\Omega^1_X$. Since $g$ is symplectic, $L(g,\cO_X)=3$. Since $g^*=\mathrm{id}$ on $H^2(X)$, $g^*$ acts trivially on $H^{1,1}(X)$ and on $H^{1,3}(X)=\bar\sigma\cup H^{1,1}(X)$, so $L(g,4\cO_X-\Omega^1_X)=12+2(b_2(X)-2)-t(g)=2b_2(X)+8-t(g)$. At an isolated fixed point, $dg=-1$, and the contributions are $1/16$ and $(4+4)/16=1/2$. Let $S$ be a component of dimension two. Since $g$ acts by $-1$ on $N_{S/X}$ and $c_1(N_{S/X})=0$, the equivariant Euler class of the conormal bundle is $\mathrm{ch}_g(\lambda_{-1}N^\vee_{S/X})=4-c_2(N_{S/X})$, and the equivariant Chern characters of the two bundles are $1$ and $4-\mathrm{ch}_g(\Omega^1_X|_S)=4+c_2(S)-c_2(N_{S/X})$. Multiplying by $\mathrm{td}(S)=1+c_2(S)/12$ and integrating, the contributions are $\chi(\cO_S)/4+\int_Sc_2(N_{S/X})/16$ and $\int_Sc_2(S)/3$, which are $1/2+\int_Sc_2(N_{S/X})/16$ and $8$ for a K3 surface, and $\int_Sc_2(N_{S/X})/16$ and $0$ for an abelian surface. Summing gives (b). \end{proof} \begin{lemma}\label{lem:fixedC} In Notation~\ref{not:involution}, suppose that $X^g$ contains a component $S$ of dimension two. Then there is $C_S\in\QQ_{>0}$ such that $\int_Sx\,y=C_Sq_X(x,y)$ for all $x,y\in H^2(X,\QQ)$, and $v(g)=9C_S^2/c_X$. \end{lemma} \begin{proof} We keep the notation of the proof of Lemma~\ref{lem:fixed}, and let $E\subset Y_g$ be the image of the exceptional divisor over $S$. For $x\in H^2(X,\QQ)$, $\int_{Y_g}x^3E=0$, so $q_{Y_g}(x,E)=0$ by the polarized Fujiki relation, first for $q_X(x)\ne0$ and then for all $x$. Hence $-2\int_Sx^2=\int_{Y_g}x^2E^2=\frac{c_{Y_g}}3q_X(x)q_{Y_g}(E)=\frac{c_X}6q_X(x)q_{Y_g}(E)$, so $C_S\coloneqq-c_Xq_{Y_g}(E)/12$ satisfies $\int_Sx^2=C_Sq_X(x)$, and $C_S\in\QQ_{>0}$ by evaluating on an ample class. Since $c_1(N_{S/X})=0$, the blowup formula gives $\int_{\tilde X}\tilde E^4=\int_Sc_2(N_{S/X})=v(g)$. Hence $8v(g)=\int_{Y_g}E^4=c_{Y_g}q_{Y_g}(E)^2=\frac{c_X}2q_{Y_g}(E)^2$, and $v(g)=9C_S^2/c_X$. \end{proof} \noindent For the Fujiki relation on primitive symplectic varieties with isolated singularities, see \cite[(2.4)]{Tig25}. \begin{lemma}\label{lem:inv28} Suppose $(b_2(X),b_3(X))=(6,0)$ and $d\in\{2,8\}$. Then $A(B^\circ)[2]=0$. \end{lemma} \begin{proof} Let $a\in A(B^\circ)[2]\setminus\{0\}$ and $g\coloneqq g_a$, an involution by Lemma~\ref{lem:extend}. Since $b_3(X)=0$, $t(g)=0$, and Lemma~\ref{lem:fixed}(b) gives $v(g)=32-4b_2(X)+2t(g)+8n_{\mathrm{K3}}(g)=8+8n_{\mathrm{K3}}(g)>0$, so $X^g$ contains a surface $S$. By \eqref{eq:cqLH}, $\sqrt{c_X/6}=m_H\sqrt{d/2}/|q_X(L,H)|\in\QQ$. Hence $C'\coloneqq C_S/\sqrt{c_X/6}\in\QQ$ satisfies $v(g)=9C_S^2/c_X=\frac32C'^2$ by Lemma~\ref{lem:fixedC}. Since $n_{\mathrm{K3}}(g)\le1$ by Lemma~\ref{lem:fixed}(a), $C'^2\in\{16/3,32/3\}$, which is not the square of a rational number. \end{proof} \begin{lemma}\label{lem:inv12} Suppose $d=12$, so that $(b_2(X),b_3(X))\in\{(5,0),(6,4),(7,8)\}$ by Proposition~\ref{prop:table}. \begin{enumerate} \item If $b_2(X)\in\{5,6\}$, then $A(B^\circ)[2]=0$. \item If $b_2(X)=7$, then $\dim_{\FF_2}A(B^\circ)[2]\le1$, and for $a\in A(B^\circ)[2]\setminus\{0\}$, the involution $g_a$ satisfies $(t(g_a),n_{\mathrm{K3}}(g_a),v(g_a))=(-4,1,4)$. \end{enumerate} \end{lemma} \begin{proof} Let $a\in A(B^\circ)[2]\setminus\{0\}$ and $g\coloneqq g_a$. By \eqref{eq:cqLH}, $c_X=36m_H^2/q_X(L,H)^2$ is the square of a rational number, so by Lemma~\ref{lem:fixedC}, $v(g)$ is the square of a rational number if $X^g$ contains a surface, and $v(g)=0$ otherwise. By Lemma~\ref{lem:fixed}(b), $v(g)=32-4b_2(X)+2t(g)+8n_{\mathrm{K3}}(g)$. If $b_2(X)=5$, then $t(g)=0$ and $v(g)\in\{12,20\}$, which is impossible. Suppose $b_2(X)\in\{6,7\}$. Since $g^*=\mathrm{id}$ on $H^2(X)$, $g^*$ commutes with the Lefschetz operators of all classes in $H^2(X)$ and with the corresponding dual Lefschetz operators, which are uniquely determined; hence $g^*$ commutes with the Looijenga--Lunts--Verbitsky Lie algebra $\mathfrak g(X)\simeq\mathfrak{so}(b_2(X)+2)$ \cite{LL97}. The odd cohomology $H^3(X)\oplus H^5(X)$ has dimension $2b_3(X)\in\{8,16\}$, and the grading operator of $\mathfrak g(X)$ acts on it with eigenvalues $\pm1$, so it has no trivial summand. Since the nontrivial irreducible representations of $\mathfrak{so}_8$ and $\mathfrak{so}_9$ have dimension at least $8$ and $9$, respectively, and $\mathfrak{so}_9$ has no irreducible representation of dimension in $\{10,\ldots,15\}$ \cite[\S20]{FH91}, $H^3(X)\oplus H^5(X)$ is irreducible. By Schur's lemma, $g^*=\pm1$ on it, so $t(g)=\pm b_3(X)/2$. If $b_2(X)=6$, then $t(g)=\pm2$, and $v(g)=12,20,4,12$ for $(t(g),n_{\mathrm{K3}}(g))=(2,0)$, $(2,1)$, $(-2,0)$, $(-2,1)$, respectively, so $(t(g),n_{\mathrm{K3}}(g),v(g))=(-2,0,4)$, and $X^g$ contains an abelian surface $S$. Consider $Y_g$. Since $g^*=-1$ on $H^3(X)$ and $g$ acts trivially on the exceptional divisor over $S$, the decomposition $H^*(\tilde X)=H^*(X)\oplus H^{*-2}(S)(-1)$ gives $H^2(Y_g)=H^2(X)\oplus\QQ$ and $H^3(Y_g)\simeq H^1(S)(-1)$. Hence $b_2(Y_g)=7$, $b_3(Y_g)=4$ and $b_5(Y_g)=4$ by Poincar\'e duality, which holds since $Y_g$ has quotient singularities. Its cohomology is its intersection cohomology, so $\mathfrak{so}_9$ acts on it by \cite[Theorem~1.1]{Tig25}, and the odd part, of dimension eight with nonzero grading, contradicts the bound on dimensions above. This proves (a). If $b_2(X)=7$, then $t(g)=\pm4$, and $v(g)\in\{12,20,-4,4\}$ for $(t(g),n_{\mathrm{K3}}(g))=(4,0),(4,1),(-4,0),(-4,1)$. Since $v(g)$ is the square of a rational number, we get $(t(g),n_{\mathrm{K3}}(g),v(g))=(-4,1,4)$, and $g^*=-1$ on $H^3(X)\oplus H^5(X)$. If $a_1,a_2\in A(B^\circ)[2]$ were linearly independent, then $g_{a_1+a_2}=g_{a_1}g_{a_2}$ would act by $+1$ on $H^3(X)$, a contradiction. This proves (b). \end{proof} \noindent The Lefschetz fixed point computations for symplectic involutions acting trivially on $H^2$ are similar to those in \cite[Section~3]{FM21}. \section{Polarization types \texorpdfstring{$(1,2)$}{(1,2)} and \texorpdfstring{$(1,8)$}{(1,8)}}\label{sec:small} In this section, we suppose $(b_2(X),b_3(X))=(6,0)$ and $d\in\{2,8\}$. We exclude $d=8$ (Proposition~\ref{prop:level8}), and we show that, for $d=2$, the triple cover of $B$ defined by the nonzero elements of $K(\theta)$ is a cone over a twisted cubic branched along four concurrent lines (Proposition~\ref{prop:cone}). This case is excluded in Section~\ref{sec:grad}. \subsection{Line bundles on line sections} Let $m_X$ be the positive generator of the ideal $\{m\in\ZZ:m\theta\in\im(H^2(X,\ZZ)\to H^2(F,\ZZ))\}$. \begin{lemma}\label{lem:index} Suppose $(b_2(X),b_3(X))=(6,0)$ and $d\in\{2,8\}$. Then $3\mid m_X$. \end{lemma} \begin{proof} Let $H$ be an ample line bundle on $X$. By \eqref{eq:cqLH}, $\kappa_X\coloneqq\sqrt{c_X/6}=m_H\sqrt{d/2}/q_X(L,H)$ is a positive rational number, where $q_X(L,H)>0$ since $L$ is nef and nonzero. Put $q_0\coloneqq\kappa_Xq_X$, so that $\int_Xx^4=6q_0(x)^2$, and define $k_0$ by $\int_Xc_2(X)x^2=k_0q_0(x)$. By the proof of Proposition~\ref{prop:R}, $3k_0^2/6=dR^2=992-4\cdot6=968$, and $k_0>0$ since $\int_Xc_2(X)LH=k_0q_0(L,H)$ and $R>0$. Hence $k_0=44$. For $x\in H^2(X,\ZZ)$ with $q_X(x)=u$, the Hirzebruch--Riemann--Roch theorem gives the integer $\mathsf P(u)\coloneqq\chi(X,\mathcal L_x)=\frac14\kappa_X^2u^2+\frac{11}6\kappa_Xu+3$, where $\mathcal L_x$ is the topological line bundle with $c_1(\mathcal L_x)=x$. Since $q_X$ is primitive, there is $x\in H^2(X,\ZZ)$ with $3\nmid q_X(x)$: otherwise $q_X(x,y)=\frac12(q_X(x+y)-q_X(x)-q_X(y))\in3\ZZ$ for all $x,y$. For such $u=q_X(x)$, the integer $\mathsf P(4u)-4\mathsf P(u)=3\kappa_X^2u^2-9$ gives $v_3(\kappa_X)\ge0$. If $v_3(\kappa_X)=0$, then exactly one of the three terms of $\mathsf P(u)$ has negative $3$-adic valuation, namely $\frac{11}6\kappa_Xu$, which is impossible. Hence $v_3(\kappa_X)\ge1$. Let $\xi\in H^2(X,\ZZ)$ with $\xi|_F=m_X\theta$. Then \eqref{eq:fujiki} gives $2dm_X^2=\int_X\xi^2L^2=\frac{2c_X}3q_X(L,\xi)^2=4\kappa_X^2q_X(L,\xi)^2$, so $m_X=\kappa_X|q_X(L,\xi)|$ if $d=2$ and $m_X=\kappa_X|q_X(L,\xi)|/2$ if $d=8$. Hence $3\mid m_X$. \end{proof} \begin{lemma}\label{lem:slice} Let $\ell\subset B$ be a general line. Then there is a line bundle on $Y_\ell$ whose restriction to every smooth fiber $X_b$, $b\in\ell\cap B^\circ$, has class $2\theta$. \end{lemma} \begin{proof} We first show that $H_2(Y_\ell,\ZZ)\to H_2(X,\ZZ)$ is surjective. By Lefschetz duality, $H_2(X,Y_\ell;\ZZ)\simeq H^6(X\setminus Y_\ell,\ZZ)$. Over $B\setminus\ell\simeq\mathbb A^2$, we have $R^q\pi_*\ZZ=0$ for $q>4$, and $H^i(\mathbb A^2,\mathcal F)=0$ for $i>2$ and every constructible sheaf $\mathcal F$ by Artin's vanishing theorem. Hence $H^6(X\setminus Y_\ell,\ZZ)\simeq H^2(\mathbb A^2,R^4\pi_*\ZZ)$. Consider the restriction map $\rho\colon R^4\pi_*\ZZ\to j_*j^*R^4\pi_*\ZZ=\ZZ$, where $j\colon B^\circ\setminus\ell\into\mathbb A^2$. Its kernel is supported on $\Delta\setminus\ell$, an affine curve, and at a general point of every curve in $\Delta$, $\rho$ sends the fundamental classes of the components of the fiber to their multiplicities, which are one by Lemma~\ref{lem:types}(b); hence the cokernel of $\rho$ is supported on a finite set. The exact sequences $0\to\ker\rho\to R^4\pi_*\ZZ\to\im\rho\to0$ and $0\to\im\rho\to\ZZ\to\mathrm{coker}\,\rho\to0$ then give $H^2(\mathbb A^2,R^4\pi_*\ZZ)=0$. Hence $H_2(X,Y_\ell;\ZZ)=0$. Let $u\in H_2(X,\ZZ)$ be as in Lemma~\ref{lem:deform}(b), and let $u_\ell\in H_2(Y_\ell,\ZZ)$ be a preimage. By the proof of Proposition~\ref{prop:W}, $h^{1,0}(Y_\ell)=0$ and $H^{2,0}(Y_\ell)=\CC\,\sigma|_{Y_\ell}$. Since $u_\ell$ annihilates $\sigma|_{Y_\ell}$ and $\bar\sigma|_{Y_\ell}$, its Poincar\'e dual $\xi_\ell\in H^4(Y_\ell,\ZZ)$ is of type $(2,2)$, and $\int_{X_b}\xi_\ell|_{X_b}=\langle L,u\rangle=1$ for $b\in\ell\cap B^\circ$. Over $\ell\cap B^\circ$, the difference morphism $\mathrm{dif}\colon Y_\ell\times_\ell Y_\ell\to A$ is defined on the torsor. Let $\mathcal P$ be the Poincar\'e bundle on $A\times_{B^\circ}A^\vee$, and let $\mathcal M$ be its pullback along the graph of $\lambda_\theta\colon A\to A^\vee$, a line bundle on $A$ whose restriction to $A_b$ has class $2\theta$. The pullback $\mathrm{dif}^*\mathcal M$ restricts to the class $2\theta$ on $\{y\}\times X_b$ and on $X_b\times\{y\}$ for $y\in X_b$. The closure of a divisor representing $\mathrm{dif}^*\mathcal M$ is a cycle $\mathsf Z\subset Y_\ell\times Y_\ell$ of codimension two. With the projections $\mathrm{pr}_1,\mathrm{pr}_2$, the integral class $\mathrm{pr}_{2*}([\mathsf Z]\cdot\mathrm{pr}_1^*\xi_\ell)\in H^2(Y_\ell,\ZZ)$ is of type $(1,1)$. Its restriction to $X_b$ is computed on $X_b\times X_b$ by integrating against $\xi_\ell|_{X_b}$, a class of degree one, so it equals $2\theta$. The Lefschetz $(1,1)$ theorem gives the line bundle. \end{proof} \subsection{The Mordell--Weil lattice of the generic line} Let $\bar k$ be an algebraic closure of $\CC(B^\vee)$, let $\ell_{\bar k}\subset B_{\bar k}$ be the line corresponding to the generic point of $B^\vee$, put $K_\ell\coloneqq\bar k(\ell_{\bar k})$, and let $F_\ell$ be the generic fiber of $\pi$ over $\ell_{\bar k}$, a torsor under $A_{K_\ell}$. Put $M\coloneqq\Pic^0_{F_\ell/K_\ell}(K_\ell)=A^\vee(K_\ell)$, let $M_{\mathrm{tors}}\subset M$ be the torsion subgroup, and put $\Lambda_M\coloneqq M/M_{\mathrm{tors}}$. The group $\Gal(\bar k/\CC(B^\vee))$ acts on $M$. \begin{lemma}\label{lem:MW} The following hold. \begin{enumerate} \item $M$ is finitely generated, and the action of $\Gal(\bar k/\CC(B^\vee))$ on $\Lambda_M\otimes\QQ$ factors through $G_W$ and is isomorphic to $W$. \item Restriction identifies $A^\vee(B^\circ)_{\mathrm{tors}}$ with $M_{\mathrm{tors}}$. \end{enumerate} \end{lemma} \begin{proof} Let $\ell$ be a very general complex line, $U\coloneqq\ell\cap B^\circ$, $j_\ell\colon U\into\ell$ and $Y_\ell=\pi^{-1}(\ell)$. By Tsen's theorem, $\Br(\CC(\ell))=0$, so every point of $\Pic_{F/\CC(\ell)}(\CC(\ell))$ of the generic fiber $F$ of $Y_\ell\to\ell$ is represented by a line bundle, which extends to $Y_\ell$ by closure of a divisor. The kernel of $\Pic(Y_\ell)\to\Pic(F)$ is generated by vertical divisors. Since $h^{1,0}(Y_\ell)=0$ by the proof of Proposition~\ref{prop:W}, $\Pic(Y_\ell)$ is finitely generated, and so is the group of fiberwise algebraically trivial classes modulo vertical divisors, which is $A^\vee(\CC(\ell))$. On $Y_U\coloneqq\pi^{-1}(U)$, the Leray spectral sequence identifies the kernel of $H^2(Y_U)\to H^0(U,R^2\pi_*\QQ)$ with $H^1(U,V)$, since $U$ is affine of dimension one. Its weight-two part is $H^1(\ell,j_{\ell*}V)$ by \cite{PS12}, and the weight-two part of $H^2(Y_U)$ is the image of $H^2(Y_\ell)$, with kernel spanned by the components of $Y_\ell\setminus Y_U$. Taking rational classes of type $(1,1)$ in weight two is exact by semisimplicity, and such classes on $Y_\ell$ are classes of divisors. Hence $A^\vee(\CC(\ell))\otimes\QQ$ is identified with the space of rational classes of type $(1,1)$ in $H^1(\ell,j_{\ell*}V)$. By Lemmas~\ref{lem:lowest}, \ref{lem:stalk}, \ref{lem:transform} and Proposition~\ref{prop:W}, $H^1(\ell,j_{\ell*}V)\simeq T(X)\oplus W_{[\ell]}(-1)$, where $T(X)$ contains no nonzero rational class of type $(1,1)$ and $W_{[\ell]}(-1)$ consists of such classes. Hence $A^\vee(\CC(\ell))\otimes\QQ\simeq W_{[\ell]}$, compatibly with continuation of divisors along paths in the space of lines. Choose a countable algebraically closed field $k_0\subset\CC$ over which $X$, $\pi$ and all their finitely many singular fibers over the generic line are defined. A very general line $\ell$ has coordinates which are algebraically independent over $k_0$, and both $F_\ell$ and the generic fiber over $\ell$ are obtained from the geometric generic fiber over $k_0$ by extension of algebraically closed fields; the N\'eron--Severi groups of the smooth projective threefolds $Y_\ell$ and the components of their singular fibers are unchanged by such extensions. Hence $M\simeq A^\vee(\CC(\ell))$, and the Galois action on $\Lambda_M\otimes\QQ$ corresponds to the continuation action, since every element of $M$ is defined over a finite extension of $\CC(B^\vee)$ and spreads over a finite cover of a dense open subset of $B^\vee$. This proves (a). For (b), let $n\ge1$. Torsion sections of order dividing $n$ over $U$ are the invariants of $\pi_1(U)$ on $A^\vee[n]$. By the Zariski--Lefschetz theorem, $\pi_1(U)\to\pi_1(B^\circ)$ is surjective, so these invariants are the global sections of $A^\vee[n]$ over $B^\circ$. The same argument applies to the geometric generic line. \end{proof} \begin{proposition}\label{prop:affine} Suppose $(b_2(X),b_3(X))=(6,0)$ and $d\in\{2,8\}$. Then $G_W$ has no nontrivial normal subgroup of order prime to three. \end{proposition} \begin{proof} For $a\in\ZZ_{\ge1}$, let $\mathsf P_a$ be the set of $K_\ell$-points of the component of $\Pic_{F_\ell/K_\ell}$ of class $2a\theta$. By Lemmas~\ref{lem:slice} and~\ref{lem:MW}, $\mathsf P_1\ne\varnothing$, and $\mathsf P_a$ is an $M$-torsor. The Galois group acts on the affine lattice $\mathsf P_1/M_{\mathrm{tors}}$ through a finite quotient: its linear part has image $G_W$ by Lemma~\ref{lem:MW}(a), every point of $\mathsf P_1$ is defined over a finite extension of $\CC(B^\vee)$, so the stabilizer of a point has finite index, and the kernel of the map to $G_W$ is a finite group of translations of a free abelian group, hence trivial. Hence $\mathsf P_1/M_{\mathrm{tors}}$ defines a class $\alpha\in H^1(G_W,\Lambda_M)$, and $\mathsf P_a/M_{\mathrm{tors}}$ has class $a\alpha$. Suppose $a\alpha=0$ for some $a\ge1$. A fixed point of $G_W$ in $\mathsf P_a/M_{\mathrm{tors}}$ lifts to a Galois stable $M_{\mathrm{tors}}$-orbit $\mathsf D\subset\mathsf P_a$. Over a dense open subset $B^\vee_0\subset B^\vee$, $\mathsf D$ spreads to a finite \'etale cover, whose points are line bundle classes of degree $2a\theta$ on the fibers of $\pi$ over the corresponding lines. For a very general $y\in B$, consider the pencil $y^\vee\subset B^\vee$ of lines through $y$. Evaluating at the fiber $X_y$ gives a multivalued rational map from $y^\vee$ to the torsor $\Pic^{2a\theta}(X_y)$, whose values on different sheets differ by elements of the finite group $T_y\subset\Pic^0(X_y)$ obtained from $M_{\mathrm{tors}}$ by Lemma~\ref{lem:MW}(b). Hence it induces a rational map $y^\vee\dashrightarrow\Pic^{2a\theta}(X_y)/T_y$, which is constant since its source is $\PP^1$ and its target is a torsor under an abelian variety. Hence every sheet evaluates in one fixed finite set, and distinct sheets evaluate to distinct points, since a nonzero section of a finite \'etale group scheme over a connected base is nowhere zero. Hence the monodromy of the cover along $y^\vee\cap B^\vee_0$ is trivial, and since $\pi_1(y^\vee\cap B^\vee_0)\to\pi_1(B^\vee_0)$ is surjective, every point of $\mathsf D$ is defined over $\CC(B^\vee)$. Such a point gives a $K'$-point of $\Pic^{2a\theta}_{X_K/K}$, where $K'$ is the function field of $\Fl$ over $K=\CC(B)$, that is, $K'=K(s)$ for a transcendental $s$. By properness it extends to a morphism $\PP^1_K\to\Pic^{2a\theta}_{X_K/K}$, which is constant over $\bar K$, so its value at $s=0$ gives a $K$-point. A line bundle of class $2a\theta$ on an abelian surface of type $(1,d)$ has $d(2a)^2$ sections, so the complete linear system of this $K$-point is a Severi--Brauer variety of dimension $d(2a)^2-1$ over $K$, and the obstruction to representing the point by a line bundle on $X_K$ is killed by $d(2a)^2$. Taking the $d(2a)^2$-th power and the closure of a divisor gives a class in $H^2(X,\ZZ)$ restricting to $d(2a)^3\theta$, so $m_X\mid d(2a)^3$. Since $3\nmid d$, Lemma~\ref{lem:index} gives $3\mid a$. Hence the order of $\alpha$ is divisible by three. Let $G_0\triangleleft G_W$ be a normal subgroup with $G_0\ne1$ and $3\nmid\#G_0$. Since $W$ is absolutely irreducible and $G_W$ acts faithfully, $W^{G_0}=0$, so $\Lambda_M^{G_0}=0$. The inflation--restriction sequence shows that $H^1(G_W,\Lambda_M)\to H^1(G_0,\Lambda_M)$ is injective. Since $H^1(G_0,\Lambda_M)$ is killed by $\#G_0$, the order of $\alpha$ is prime to three, a contradiction. \end{proof} \noindent For the Mordell--Weil groups of abelian fibered hyper-K\"ahler manifolds, see also \cite{Ogu09}. \subsection{Triple planes} \begin{lemma}\label{lem:triple} Let $\nu\colon Z\to B$ be a connected normal triple cover whose reduced branch divisor has degree four and whose inertia at the generic point of every branch component is generated by a transposition. Let $h$ be the pullback to $Z$ of a line. \begin{enumerate} \item The complete linear system $|h|$ embeds $Z$ into $\PP^4$ as a smooth rational normal cubic scroll or as the cone over a twisted cubic. \item If $Z$ is the smooth scroll, the images of the rulings of $Z$ form a rational cubic curve $\Gamma\subset B^\vee$, whose dual curve is a component of the branch divisor of $\nu$. If $Z$ is the cone, the branch divisor consists of four distinct lines through the image of the vertex. \end{enumerate} \end{lemma} \begin{proof} For a general line $\ell$, $\nu^{-1}(\ell)$ is connected by the Zariski--Lefschetz theorem and has genus zero by the Riemann--Hurwitz formula. The pencil of lines through a general point of $B$ gives a pencil of rational curves on $Z$ with three base points, so $Z$ is rational. Hence $H^1(\cO_Z)=0$, since it injects into the first cohomology of the structure sheaf of a resolution. Restriction to a general member $C\in|h|$ gives $h^0(Z,h)=1+h^0(\PP^1,\cO(3))=5$. Since $h$ is ample, globally generated and $h^2=3$, the morphism $\varphi_{|h|}$ is finite onto a nondegenerate surface in $\PP^4$, whose degree is at least three; hence its degree is three and $\varphi_{|h|}$ is birational. Since surfaces of minimal degree are normal, $\varphi_{|h|}$ is an isomorphism onto a smooth cubic scroll or a cone over a twisted cubic. This proves (a). Suppose $Z$ is the smooth scroll $\PP_{\PP^1}(\cO(1)\oplus\cO(2))$. The projection $\nu$ is the restriction of a linear projection from a line in $\PP^4$, and it maps every ruling isomorphically onto a line of $B$; this defines the ruling map $\PP^1\to B^\vee$, given by the maximal minors of a $2\times3$ matrix of linear forms, which are cubics without a common zero. If its image were a line $\{y\}^\vee$, every ruling would map onto a line through $y$, and $\nu^{-1}(y)$ would be infinite. Hence it is birational onto a plane cubic $\Gamma$. The points of $\nu^{-1}(x)$ correspond to the rulings whose image passes through $x$, that is, to $\Gamma\cap x^\vee$. Hence $\nu$ is branched along $\Gamma^\vee$, with simple branching at a general point. If $Z$ is the cone, $\nu$ restricts on the lines through the vertex to a degree three map of $\PP^1$ onto the pencil of lines through the image of the vertex, and the four branch points of this map give the four lines. For these descriptions, see also \cite[\S4]{CM25}. \end{proof} \begin{lemma}\label{lem:half} Let $\Delta_i\subset\Delta$ be an irreducible curve of degree at least two, let $y\in\Delta_i^\vee\subset B^\vee$ be a general point, let $T$ be the meridian on $\Lambda$ around a general point of $\Delta_i$, and let $g$ be the action on $W$ of a meridian around $\Delta_i^\vee$ at $y$. Then every eigenvalue $\ne1$ of $g$ is an eigenvalue of $-T^{-1}$ on $\im(T-1)\otimes\CC$, with multiplicity at most its multiplicity there. \end{lemma} \begin{proof} The line $y^\vee$ is tangent to $\Delta_i$ at one point, and a small loop in $B^\vee$ around $\Delta_i^\vee$ at $y$ exchanges the two intersection points $x_1,x_2$ of a nearby line with $\Delta_i$ which come together. Choose generators $\gamma_1,\gamma_2$ of the fundamental group of the punctured line near $x_1,x_2$, with a base point on the boundary of a small disc containing $x_1,x_2$; both act on $\Lambda$ by $T$. The half twist acts by $(\gamma_1,\gamma_2)\mapsto(\gamma_2,\gamma_2^{-1}\gamma_1\gamma_2)$ for one orientation and fixes the other generators. Let $\mathsf z$ be a parabolic crossed homomorphism representing a class in $H^1(\ell,j_{\ell*}V)$, and put $u_1=\mathsf z(\gamma_1)$, $u_2=\mathsf z(\gamma_2)\in\im(T-1)$. The half twist acts by $(u_1,u_2)\mapsto(u_2,T^{-1}(u_1+(T-1)u_2))$. Hence $u_1-u_2$, which vanishes on coboundaries, is mapped to $-T^{-1}(u_1-u_2)$, and the classes with $u_1=u_2$ are fixed. Hence every eigenvalue $\ne1$ of the half twist on $H^1(\ell,j_{\ell*}V)$ is an eigenvalue of $-T^{-1}$ on $\im(T-1)$, with at most the same multiplicity. The opposite orientation gives the inverse operator, whose eigenvalues on $\im(T-1)$ are the same in the cases of Lemma~\ref{lem:types}(c). Since $W$ is a direct summand of $\{H^1(\ell,j_{\ell*}V)\}$ by Proposition~\ref{prop:W}, the lemma follows. \end{proof} \subsection{Level two} \begin{lemma}\label{lem:lvl2fib} Suppose $d=2$. Then $(b_2(X),b_3(X))=(6,0)$, $R=22$, and the following hold. \begin{enumerate} \item Every additive $x\in\ell\cap\Delta$ is of type $\mathrm{III}$ with $s_x=2$ and $\alpha_{0,x}=\alpha_{1,x}=2$. \item Every multiplicative $x\in\ell\cap\Delta$ satisfies $\delta_x\in\{1,2\}$, and $n_x=1$ if $\delta_x=2$. \item Let $t_{\mathrm{III}}$ be the number of additive points in $\ell\cap\Delta$. Then $\#\{x:\delta_x=2\}+t_{\mathrm{III}}=4$ and $\sum_{x\ \mathrm{mult}}n_x=24-2t_{\mathrm{III}}$. \item Let $\nu\colon Z\to B$ be the normalization of $B$ in the finite \'etale cover of $B^\circ$ parametrizing the nonzero elements of $K(\theta)$. Then $\nu$ satisfies the assumptions of Lemma~\ref{lem:triple}, and the points of $\ell$ over which $\nu$ is branched are the $x$ with $\delta_x=2$ and the additive $x$. \end{enumerate} \end{lemma} \begin{proof} By Proposition~\ref{prop:table}, $(b_2(X),b_3(X))=(6,0)$, and $R=22$ by Proposition~\ref{prop:R}(b). Let $\Delta_2$ be the paramodular form of weight two for $\Gamma_2$ with a character of order four whose divisor is the Humbert surface of products with multiplicity one \cite[Introduction]{CG11}. Then $\Phi\coloneqq\Delta_2^4$ is a cusp form of weight eight for $\Gamma_2$ with trivial character, and it vanishes to order four on the product locus. Since $\pi_1(B^\circ,b)\cdot\Lambda=\{\Lambda\}$, \eqref{eq:orbitavg} gives $\ord_x(\Phi;\Lambda)=o_x(\Phi;\Lambda)$, and $\sum_{x\in\ell}\ord_x(\Phi;\Lambda)=24$ by Lemma~\ref{lem:orders}(a). A multiplicative point contributes at least $n_x$ to this sum by Lemma~\ref{lem:orders}(b), and $n_x/\delta_x$ to $R$. At an additive point with $s_x=1$, $\Lambda=\Lambda_{0,x}\oplus\Lambda_{1,x}$ with $\{\alpha_{0,x},\alpha_{1,x}\}=\{1,2\}$, and Lemmas~\ref{lem:contact}(b) and~\ref{lem:orders}(c) give $\ord_x(\Phi;\Lambda)\ge(8+4(e_x+1))/e_x\ge8/e_x+4$, which exceeds its contribution $\mu_x/\alpha_{1,x}\le\mu_x\in\{2,3,4\}$ to $R$ by more than two. Since $24-R=2$, such points do not occur. An additive point with $s_x>1$ has $s_x\mid d=2$ by Lemma~\ref{lem:addlat}(c), so it is of type $\mathrm{III}$ with $s_x=2$ and $\alpha_{0,x}=\alpha_{1,x}=2$; it contributes at least $8/4=2$ to the sum by Lemma~\ref{lem:orders}(c), and $3/2$ to $R$. Since $\delta_x\mid d$, this proves (a) and $\delta_x\in\{1,2\}$. Comparing with $R=22$, \begin{equation}\label{eq:lvl2} \sum_{\delta_x=1}n_x+\frac12\sum_{\delta_x=2}n_x+\frac32t_{\mathrm{III}}=22,\qquad\sum_{\delta_x=2}n_x+t_{\mathrm{III}}\le4, \end{equation} where the second inequality follows from $\sum_x\ord_x(\Phi;\Lambda)=24$. By Lemma~\ref{lem:mult}(c), a multiplicative point acts on $K(\theta)\simeq(\ZZ/2)^2$ trivially if $\delta_x=1$, and as the transvection $y\mapsto y+n_x\theta(y,v_x)\frac{v_x}2$ if $\delta_x=2$, which is a transposition of the three nonzero elements if $n_x$ is odd and trivial otherwise. At an additive point, choose bases $(e_0,f_0)$ of $\Lambda_{0,x}$ and $(e_1,f_1)$ of $\Lambda_{1,x}$ with $\theta(e_0,f_0)=2$, $\theta(e_1,f_1)\in\{2,-2\}$, $T_x(e_1)=f_1$ and $T_x(f_1)=-e_1$; this is possible since $\Lambda_{1,x}$ is a module over $\ZZ[T_x]\simeq\ZZ[\sqrt{-1}]$, a principal ideal domain. The only nonzero vector of $\Lambda_{1,x}/2\Lambda_{1,x}$ fixed by $T_x$ is $e_1+f_1$, so $\Lambda=\Lambda_{0,x}\oplus\Lambda_{1,x}+\ZZ\frac{e_0+e_1+f_1}2$ after renaming $e_0$. Then $K(\theta)$ is generated by the classes of $\frac{e_1+f_1}2$ and $\frac{f_0+e_1}2$, and $T_x$ fixes the first and maps the second to the sum of both. Hence $T_x$ acts on the three nonzero elements as a transposition. By Lemma~\ref{lem:inv28}, no nonzero element of $K(\theta)\subset A[2]$ is fixed by the monodromy, so the monodromy group on the three nonzero elements is transitive and generated by transpositions, hence equal to $\mathfrak S_3$, and $\nu$ is a connected triple cover. By the Riemann--Hurwitz formula on $\nu^{-1}(\ell)$, the number of branch points on $\ell$ is at least four. Comparing with \eqref{eq:lvl2}, every $x$ with $\delta_x=2$ has $n_x=1$, $\#\{x:\delta_x=2\}+t_{\mathrm{III}}=4$, and $\sum_{\delta_x=1}n_x=22-2+\frac{t_{\mathrm{III}}}2-\frac32t_{\mathrm{III}}=20-t_{\mathrm{III}}$. This proves (b), (c) and (d). \end{proof} \begin{proposition}\label{prop:cone} Suppose $d=2$. Then the triple cover $\nu\colon Z\to B$ of Lemma~\ref{lem:lvl2fib}(d) is the cone over a twisted cubic, and its branch divisor consists of four distinct lines through one point of $B$. \end{proposition} \begin{proof} By Lemmas~\ref{lem:triple} and~\ref{lem:lvl2fib}(d), it suffices to exclude the smooth scroll. Suppose that $Z$ is the smooth scroll, and let $\Gamma\subset B^\vee$ be the cubic of Lemma~\ref{lem:triple}(b). Over $\FF_2$, the permutation representation of $\mathfrak S_3$ on three letters is the direct sum of the trivial representation and the two-dimensional augmentation representation $\mathrm{Aug}$, which is absolutely irreducible. The reduction modulo two of $\Lambda$ contains $K(\theta)\simeq\mathrm{Aug}$ as a composition factor: $K(\theta)$ is identified with the radical of $\theta$ modulo two. Since $\nu$ is finite and $Z$ is smooth, $\nu_*\FF_{2,Z}[2]$ is the intersection complex of the permutation local system, so $\nu_*\FF_{2,Z}[2]\simeq\FF_{2,B}[2]\oplus\IC_B(\mathrm{Aug})$. By proper base change, $\Rad(\nu_*\FF_{2,Z}[2])_{[\ell']}\simeq R\Gamma(\nu^{-1}(\ell'),\FF_2)[3]$. For a general line $\ell'$, $\nu^{-1}(\ell')\simeq\PP^1$. For the line $\ell'$ corresponding to a general point of $\Gamma$, $\nu^{-1}(\ell')$ is the union of a ruling $\mathsf F$ and a residual conic of class $\mathsf E+\mathsf F$ on $Z\simeq\mathbb F_1$, where $\mathsf E$ is the negative section; they meet in one point. The residual conic is irreducible: otherwise it would contain another ruling, so that two parameters of the ruling map would map to the general point of $\Gamma$, or it would contain $\mathsf F$, so that the hyperplane would be tangent along $\mathsf F$ and the derivative of the ruling map would vanish, contradicting its birationality. Hence the Euler characteristic of $\nu^{-1}(\ell')$ jumps from two to three along $\Gamma$, while $\Rad(\FF_{2,B}[2])$ is constant. Hence $\Rad(\IC_B(\mathrm{Aug}))$ has zero generic rank and a nonzero composition factor supported on $\Gamma$. Let $W_{\mathcal O}$ be a $G_W$-stable lattice of $W\otimes\QQ_2$ and $W_1,\ldots,W_m$ the composition factors of $W_{\mathcal O}\otimes\FF_2$. By Lemma~\ref{lem:redperv}, the factor supported on $\Gamma$ obtained above occurs in the reduction of $\IC_{B^\vee}(W)$. Let $g$ be the action on $W$ of a meridian around a general point of $\Gamma$. By Lemma~\ref{lem:redstalk}, $\sum_i\dim W_i^g-\rk W^g\ge1$, that is, $\sum_{i=1}^m\rk(g-1|W_i)\le\rk(g-1|W)-1$. In particular $g\ne1$. The dual curve $\Gamma^\vee$ is a branch component of $\nu$, so its general points are multiplicative with $\delta_x=2$ and $n_x=1$, or additive of type $\mathrm{III}$, by Lemma~\ref{lem:lvl2fib}(d). By Lemma~\ref{lem:half}, $g$ is a reflection in the first case, and has eigenvalues $\sqrt{-1},-\sqrt{-1},1,\ldots,1$ in the second case. In the first case $g$ acts trivially on every $W_i$. In the second case $\sum_i\rk(g-1|W_i)\le1$, and since $g^4=1$, $g$ acts unipotently on each $W_i$ with $\rk(g-1|W_i)\le1$, so $(g-1)^2=0$ and $g^2=1$ on each $W_i$. Let $G_0\subset G_W$ be the kernel of the action on $\bigoplus_iW_i$. It is a normal subgroup, and it is a $2$-group: its elements act unipotently on $W_{\mathcal O}\otimes\FF_2$, and the kernel of $\GL(W_{\mathcal O})\to\GL(W_{\mathcal O}\otimes\FF_2)$ contains no nontrivial element of odd order. We have shown $g\in G_0$ or $g^2\in G_0$, with $g\ne1$ and $g^2\ne1$ in the second case. Hence $G_0$ is a nontrivial normal subgroup of order prime to three. This contradicts Proposition~\ref{prop:affine}. \end{proof} \subsection{Level eight} \begin{proposition}\label{prop:level8} One has $d\ne8$. \end{proposition} \begin{proof} Suppose $d=8$, so $(b_2(X),b_3(X))=(6,0)$. Let $\Theta\coloneqq\eta^3\vartheta_1^4\vartheta_2^3$. It is a theta block of weight $(3+7)/2=5$ and index $(4+12)/2=8$, with $a+3h_\Theta=3+21=24$ and $\sum_ij_i=10$. A monomial of $\Theta$ has $\bfe(\tau)$-exponent at least $\frac12\|y\|^2+\frac18$ and $\bfe(z)$-exponent $y\cdot J$ for some $y\in(\ZZ+\frac12)^7$, with $J=(1,1,1,1,2,2,2)$ and $\|J\|^2=16$, so the Cauchy--Schwarz inequality gives $4\cdot8n-r^2>0$. Hence (T1) holds, and (T3) holds by \cite[Corollaries~4.5 and~4.6]{WW24}. We apply Corollary~\ref{cor:thetaN} with $t=d=8$, where $\#\mathcal Q_8=1$, $h_\Theta=7$ and $h_2=3$. The left side of its inequality (a) is $5/6+7$, its inequality (b) is empty since $3\nmid d$, and the left side of its inequality (c) is $5/4+3$. Hence Corollary~\ref{cor:thetaN} gives $N\le15$, so $1\le r=N-12\le3$ by Corollary~\ref{cor:r}. If $r=1$, then $G_W=\{\pm1\}$, contrary to Proposition~\ref{prop:affine}. If $r=2$, then $G_W\subset\mathrm O(2)$ for a $G_W$-invariant positive inner product, and absolute irreducibility forces $G_W$ to be dihedral of order $2m$ with $m\ge3$. Since the traces of rotations are rational, $m\in\{3,4,6\}$. If $m=4$, $G_W$ is a $2$-group, and if $m=6$, its center $\{\pm1\}$ is a normal subgroup of order two; both contradict Proposition~\ref{prop:affine}. Hence $G_W\simeq\mathfrak S_3$, and the permutation representation on three letters is $\QQ\oplus W$. Let $\nu_W\colon Z_W\to B^\vee$ be the corresponding normal triple cover. By Lemma~\ref{lem:transform} and Proposition~\ref{prop:W}, $\mathbb H^0(B^\vee,\IC_{B^\vee}(W))\simeq I_V\simeq T(X)$, which contains a line of type $(2,0)$. Since $\nu_W$ is finite, $IH^2(Z_W)\supset\mathbb H^0(B^\vee,\IC_{B^\vee}(W))$, and by the decomposition theorem for a resolution $\tilde Z_W\to Z_W$, $h^0(\Omega^2_{\tilde Z_W})\ge1$. By Lemma~\ref{lem:conductor} and $b_3(X)=0$, $N^\vee=2r+4=8$. For a general line $y'\subset B^\vee$, the total ramification of the triple cover $\nu_W^{-1}(y')\to y'$ is $N^\vee=8$, so $g(\nu_W^{-1}(y'))=2$ by the Riemann--Hurwitz formula. Let $h_W$ be the pullback of a line to $\tilde Z_W$. By adjunction, $K_{\tilde Z_W}\cdot h_W=2\cdot2-2-h_W^2=-1$, which is impossible since $h_W$ is nef and $K_{\tilde Z_W}$ is effective. If $r=3$, then $-1\notin G_W$ by Proposition~\ref{prop:affine}, so $g\mapsto\det(g)g$ embeds $G_W$ into $\SO(3)$ for a $G_W$-invariant positive inner product, preserving the invariant subspaces and the rationality of traces. Absolute irreducibility excludes cyclic and dihedral subgroups, and rationality of traces excludes the icosahedral group. The tetrahedral and octahedral groups have a normal subgroup isomorphic to $(\ZZ/2)^2$, contrary to Proposition~\ref{prop:affine}. \end{proof} \section{Polarization type \texorpdfstring{$(1,2)$}{(1,2)}}\label{sec:grad} In this section, we exclude $d=2$ (Proposition~\ref{prop:d2}). We compare the rank-two bundle of odd theta functions of type $(1,2)$ with $T_B$ by differentiation at the origin. Combined with the triple plane of Proposition~\ref{prop:cone}, this shows that $\End_0(T_B)$ is the pullback of a vector bundle on a line, which contradicts $c_2(\End_0(T_B))=3$. \subsection{Odd theta functions of type \texorpdfstring{$(1,2)$}{(1,2)}} \begin{lemma}\label{lem:thetaM} Let $(\mathbb A,\theta_{\mathbb A})$ be a polarized abelian surface of type $(1,2)$, and put $\Lambda_{\mathbb A}\coloneqq H_1(\mathbb A,\ZZ)$. \begin{enumerate} \item There is a unique symmetric line bundle $M_{\mathbb A}$ on $\mathbb A$ with $c_1(M_{\mathbb A})=\theta_{\mathbb A}$ such that the isomorphism $\iota\colon(-1)^*M_{\mathbb A}\to M_{\mathbb A}$ inducing the identity on the fiber $M_{\mathbb A}(0)$ acts on $H^0(\mathbb A,M_{\mathbb A})$ by $-1$. One has $h^0(\mathbb A,M_{\mathbb A})=2$, and every section of $M_{\mathbb A}$ vanishes at $0$. \item Suppose that $\int_E\theta_{\mathbb A}\ne1$ for every elliptic curve $E\subset \mathbb A$. Then the differential at $0$ is an isomorphism $d_0\colon H^0(\mathbb A,M_{\mathbb A})\to T_0^*\mathbb A\otimes M_{\mathbb A}(0)$. \end{enumerate} \end{lemma} \begin{proof} For a symmetric line bundle $N$ on $\mathbb A$ with $c_1(N)=\theta_{\mathbb A}$, let $\iota_N\colon(-1)^*N\to N$ be the isomorphism inducing the identity on $N(0)$. For $x\in \mathbb A[2]$, $\iota_N$ acts on $N(x)$ by $(-1)^{q_N(x)}$, where $q_N$ is a quadratic form on $\mathbb A[2]=\frac12\Lambda_{\mathbb A}/\Lambda_{\mathbb A}\simeq\Lambda_{\mathbb A}/2\Lambda_{\mathbb A}$ with $q_N(x+y)-q_N(x)-q_N(y)=\bar\theta_{\mathbb A}(x,y)$ for the reduction $\bar\theta_{\mathbb A}$ of $\theta_{\mathbb A}$ modulo $2$, and $N\mapsto q_N$ is a bijection from the set of isomorphism classes of such $N$ onto the set of such quadratic forms \cite[Chapter~4]{BL04}. Since $h^i(\mathbb A,N)=0$ for $i>0$, the Riemann--Roch theorem gives $h^0(\mathbb A,N)=\frac12\int_{\mathbb A}\theta_{\mathbb A}^2=2$. The fixed points of $-1$ are the points of $\mathbb A[2]$, at which its differential is $-\mathrm{id}$, so the holomorphic Lefschetz formula \cite[Theorem~4.12]{AB68} gives \[ \tr\bigl(\iota_N|H^0(\mathbb A,N)\bigr)=\sum_{x\in \mathbb A[2]}\frac{(-1)^{q_N(x)}}{\det(2\cdot\mathrm{id})}=\frac14\sum_{x\in \mathbb A[2]}(-1)^{q_N(x)}. \] Let $\mathsf R\subset\Lambda_{\mathbb A}/2\Lambda_{\mathbb A}$ be the radical of $\bar\theta_{\mathbb A}$, which has dimension two, and let $\mathsf P$ be a complement of $\mathsf R$. Since $q_N(r+y)=q_N(r)+q_N(y)$ for $r\in\mathsf R$ and $y\in\mathsf P$, and $q_N|_{\mathsf R}$ is linear, we get $\sum_x(-1)^{q_N(x)}=\Sigma_R\Sigma_P$ with $\Sigma_R\coloneqq\sum_{r\in\mathsf R}(-1)^{q_N(r)}\in\{0,4\}$ and $\Sigma_P\coloneqq\sum_{y\in\mathsf P}(-1)^{q_N(y)}\in\{2,-2\}$, where $\Sigma_R=4$ if and only if $q_N|_{\mathsf R}=0$, and $\Sigma_P=-2$ if and only if $q_N(y)=1$ for all $y\in\mathsf P\setminus\{0\}$. Hence $\iota_N=-1$ on $H^0(\mathbb A,N)$ if and only if $\tr(\iota_N)=-2$ if and only if $q_N=q_{\mathbb A}$, where $q_{\mathbb A}(x)\coloneqq0$ for $x\in\mathsf R$ and $q_{\mathbb A}(x)\coloneqq1$ for $x\notin\mathsf R$. Since $\bar\theta_{\mathbb A}(x,y)=1$ if and only if the images of $x$ and $y$ in $(\Lambda_{\mathbb A}/2\Lambda_{\mathbb A})/\mathsf R\simeq\FF_2^2$ are nonzero and distinct, $q_{\mathbb A}$ is a quadratic form with $q_{\mathbb A}(x+y)-q_{\mathbb A}(x)-q_{\mathbb A}(y)=\bar\theta_{\mathbb A}(x,y)$. This proves the first two assertions of (a). A section $s$ of $M_{\mathbb A}$ satisfies $s(0)=\iota((-1)^*s)(0)=-s(0)$, so it vanishes at $0$. For (b), suppose that $d_0$ is not an isomorphism. If $|M_{\mathbb A}|$ has no fixed component, let $C_1,C_2\in|M_{\mathbb A}|$ be the divisors of a basis of $H^0(\mathbb A,M_{\mathbb A})$; then $C_1\cap C_2$ is the base locus of $|M_{\mathbb A}|$, a subscheme of length $\int_{\mathbb A}\theta_{\mathbb A}^2=4$ containing $0$. For $x\in K(\theta_{\mathbb A})$, $t_x^*M_{\mathbb A}\simeq M_{\mathbb A}$, so $C_1\cap C_2$ is stable under translation by $K(\theta_{\mathbb A})\simeq(\ZZ/2)^2$. Hence $C_1\cap C_2=K(\theta_{\mathbb A})$ is reduced, $C_1$ and $C_2$ meet transversally at $0$, and $d_0$ is an isomorphism, a contradiction. Hence $|M_{\mathbb A}|$ has a fixed component $F\ne0$; write $M_{\mathbb A}\simeq\cO(N'+F)$ with $|N'|$ the moving part, so that $h^0(\cO(N'))\ge2$. Effective divisors on $\mathbb A$ are nef. If $N'^2>0$, then $N'$ is ample with $N'^2=2h^0(\cO(N'))\ge4$, and $4=M_{\mathbb A}^2\ge N'^2+2N'F>4$, a contradiction. Hence $N'^2=0$, and $N'$ is algebraically equivalent to $kE$ for an elliptic curve $E\subset \mathbb A$ and an integer $k\ge h^0(\cO(N'))\ge2$ \cite[Chapter~10]{BL04}. Then $4=M_{\mathbb A}^2=2kE\cdot F+F^2\ge4E\cdot F$, and $E\cdot F=M_{\mathbb A}\cdot E\ge1$ since $M_{\mathbb A}$ is ample. Hence $\int_E\theta_{\mathbb A}=M_{\mathbb A}\cdot E=1$, contrary to the assumption. \end{proof} \noindent For symmetric line bundles, their characteristics and the dimensions of their spaces of even and odd sections, see \cite[Chapter~4]{BL04}. We use the normalized coordinates and period matrices of Section~\ref{sec:forms} with $t=2$. \begin{notation}\label{not:theta} For $\Omega=(\Omega_{ij})\in\mathcal H_2$, put $\Lambda_\Omega\coloneqq\Omega\ZZ^2+D_2\ZZ^2\subset\CC^2$ and $A_\Omega\coloneqq\CC^2/\Lambda_\Omega$, and let $\theta_\Omega$ be the alternating form on $\Lambda_\Omega$ with $\theta_\Omega(\Omega\mu+D_2\nu,\Omega\mu'+D_2\nu')=\mu^tD_2\nu'-\mu'^tD_2\nu$ for $\mu,\nu,\mu',\nu'\in\ZZ^2$. Then $(\Omega\varepsilon_1,\Omega\varepsilon_2,D_2\varepsilon_1,D_2\varepsilon_2)$ is a symplectic basis of $(\Lambda_\Omega,\theta_\Omega)$ with period matrix $\Omega$, and the normalized coordinates of a symplectic basis of a polarized abelian surface $(\mathbb A,\theta_{\mathbb A})$ of type $(1,2)$ induce an isomorphism $(\mathbb A,\theta_{\mathbb A})\simeq(A_\Omega,\theta_\Omega)$, where $\Omega$ is its period matrix. Put $\alpha_1\coloneqq(\frac12,0)^t$, $\alpha_2\coloneqq(\frac12,\frac12)^t$ and $\beta\coloneqq(\frac12,0)^t$, and for $j\in\{1,2\}$ and $(z,\Omega)\in\CC^2\times\mathcal H_2$, put \[ \vartheta_j(z,\Omega)\coloneqq\sum_{m\in\alpha_j+\ZZ^2}\bfe\Bigl(\frac12m^t\Omega m+m^t(z+\beta)\Bigr),\qquad\Psi(\Omega)\coloneqq\det\Bigl(\frac{\partial\vartheta_j}{\partial z_i}(0,\Omega)\Bigr)_{i,j=1,2}. \] \end{notation} \begin{lemma}\label{lem:thetaid} Let $\Omega\in\mathcal H_2$, $z\in\CC^2$, $\mu\in\ZZ^2$ and $j\in\{1,2\}$. Then the following hold. \begin{enumerate} \item $\vartheta_j(z+D_2\mu,\Omega)=(-1)^{\mu_1}\vartheta_j(z,\Omega)$ and $\vartheta_j(z+\Omega\mu,\Omega)=(-1)^{\mu_1}\bfe(-\frac12\mu^t\Omega\mu-\mu^tz)\vartheta_j(z,\Omega)$. \item $\vartheta_j(-z,\Omega)=-\vartheta_j(z,\Omega)$. \item $\vartheta_j(z+\frac12D_2\varepsilon_2,\Omega)=(-1)^{j-1}\vartheta_j(z,\Omega)$ and $\bfe(\frac18\Omega_{22}+\frac12z_2)\vartheta_j(z+\frac12\Omega\varepsilon_2,\Omega)=\vartheta_{3-j}(z,\Omega)$. \item Let $M_\Omega$ be the line bundle on $A_\Omega$ whose local sections over the image of a $\Lambda_\Omega$-stable open subset $O\subset\CC^2$ are the holomorphic functions $s$ on $O$ with $s(z+\Omega\mu+D_2\nu)=(-1)^{\mu_1+\nu_1}\bfe(-\frac12\mu^t\Omega\mu-\mu^tz)s(z)$ for $\mu,\nu\in\ZZ^2$, and identify $M_\Omega(0)$ with $\CC$ by evaluation at $z=0$. Then $M_\Omega$ is the line bundle of Lemma~\ref{lem:thetaM}(a) for $(A_\Omega,\theta_\Omega)$, and $(\vartheta_1(\cdot,\Omega),\vartheta_2(\cdot,\Omega))$ is a basis of $H^0(A_\Omega,M_\Omega)$. \end{enumerate} \end{lemma} \begin{proof} For $m\in\alpha_j+\ZZ^2$, we have $m^tD_2\mu\in\frac{\mu_1}2+\ZZ$, which gives the first identity of (a). For the second, substitute $m=m'-\mu$: then $\frac12m^t\Omega m+m^t\Omega\mu=\frac12m'^t\Omega m'-\frac12\mu^t\Omega\mu$ and $m^t(z+\beta)=m'^t(z+\beta)-\mu^tz-\frac{\mu_1}2$. For (b), substitute $m=-m'$, which preserves $\alpha_j+\ZZ^2$ since $2\alpha_j\in\ZZ^2$, and use $\bfe(-2m'^t\beta)=\bfe(-m'_1)=-1$ for $m'_1\in\frac12+\ZZ$. The first identity of (c) holds since $\bfe(m_2)=(-1)^{j-1}$ for $m\in\alpha_j+\ZZ^2$. The second follows as in (a) with $\mu=\frac12\varepsilon_2$, since $m\mapsto m+\frac12\varepsilon_2$ maps $\alpha_j+\ZZ^2$ onto $\alpha_{3-j}+\ZZ^2$ and $\varepsilon_2^t\beta=0$. For (d), the factor $(-1)^{\mu_1+\nu_1}\bfe(-\frac12\mu^t\Omega\mu-\mu^tz)$ is the classical factor of automorphy of a line bundle with first Chern class $\theta_\Omega$ \cite[Chapter~8]{BL04}, multiplied by the character $\Omega\mu+D_2\nu\mapsto(-1)^{\mu_1+\nu_1}$ of $\Lambda_\Omega$, so $c_1(M_\Omega)=\theta_\Omega$, and $h^0(A_\Omega,M_\Omega)=2$ by the Riemann--Roch theorem. By (a), $\vartheta_1,\vartheta_2\in H^0(A_\Omega,M_\Omega)$, and they are linearly independent by the first identity of (c). The factor of automorphy is invariant under $(z,\mu,\nu)\mapsto(-z,-\mu,-\nu)$, so $s\mapsto s(-\cdot)$ defines an isomorphism $(-1)^*M_\Omega\simeq M_\Omega$ which induces the identity on $M_\Omega(0)$; by (b), it acts on $H^0(A_\Omega,M_\Omega)$ by $-1$. \end{proof} \noindent For classical theta functions with characteristics, see \cite[Chapter~8]{BL04} and \cite[Chapter~II]{Igu72}. \subsection{The bundle of odd theta functions} \begin{lemma}\label{lem:thetabundle} Suppose $d=2$. Then the following hold. \begin{enumerate} \item There is a line bundle $M$ on $A$ with an isomorphism $e_A^*M\simeq\cO_{B^\circ}$, where $e_A$ is the zero section, such that $M|_{A_b}$ is the line bundle of Lemma~\ref{lem:thetaM}(a) for $(A_b,\theta)$ for every $b\in B^\circ$. \item The sheaf $\mathcal V\coloneqq\pi_{A*}M$ is locally free of rank two, and differentiation along $e_A$ defines a homomorphism $\delta\colon\mathcal V\to\cE_A$. \item Let $U\subset B^\circ$ be a simply connected open subset with a symplectic basis of $\Lambda|_U$, with normalized coordinates $z$ and period map $\Omega_U\colon U\to\mathcal H_2$. Then $(\vartheta_1(\cdot,\Omega_U),\vartheta_2(\cdot,\Omega_U))$ is a frame of $\mathcal V|_U$, $(dz_1,dz_2)$ is a frame of $\cE_A|_U$, and $\delta(\vartheta_j(\cdot,\Omega_U))=\sum_{i=1}^2\frac{\partial\vartheta_j}{\partial z_i}(0,\Omega_U)\,dz_i$ for $j\in\{1,2\}$. \end{enumerate} \end{lemma} \begin{proof} By Lemma~\ref{lem:thetaM}(a), the isomorphism classes of the bundles $M|_{A_b}$ form a section of the relative Picard scheme of $A/B^\circ$. Since $A\to B^\circ$ has the section $e_A$, this section is represented by a line bundle $M$ on $A$, unique up to tensoring with the pullback of a line bundle on $B^\circ$, and an isomorphism $e_A^*M\simeq\cO_{B^\circ}$ determines $M$ up to unique isomorphism. This proves (a). By Lemma~\ref{lem:thetaM}(a), $h^0(A_b,M|_{A_b})=2$ and $h^i(A_b,M|_{A_b})=0$ for $i>0$, so $\mathcal V$ is locally free of rank two by the base change theorem. Since every local section of $\mathcal V$ vanishes along $e_A$, its differential along $e_A$ is a section of $e_A^*\Omega^1_{A/B^\circ}\otimes e_A^*M\simeq\cE_A$. This proves (b). Over $U$, the normalized coordinates identify $A|_U$ with the family of the $A_{\Omega_U(b)}$, and by Lemma~\ref{lem:thetaid}(d) and the seesaw theorem, $M|_{A_U}$ is identified with the family of the $M_{\Omega_U(b)}$ compatibly with the trivializations along the zero section. This proves (c). \end{proof} \begin{definition}\label{def:projflat} Suppose $d=2$. A frame $\eta=(\eta_1,\eta_2)$ of $\mathcal V$ over an open subset $U\subset B^\circ$ is \emph{projectively flat} if, for every local section $x$ of $K(\theta)$ over $U$, the automorphism of $\PP(\mathcal V|_U)$ induced by the translation by $x$ is given in the frame $\eta$ by a constant element of $\PGL_2(\CC)$. \end{definition} \begin{lemma}\label{lem:projflat} Suppose $d=2$. \begin{enumerate} \item The frames $(\vartheta_1(\cdot,\Omega_U),\vartheta_2(\cdot,\Omega_U))$ of Lemma~\ref{lem:thetabundle} are projectively flat. In these frames, the translations by the elements of $K(\theta)$ act by the elements of the Klein four group $V_0\subset\PGL_2(\CC)$ generated by the classes of $\diag(1,-1)$ and $\left(\begin{smallmatrix}0&1\\1&0\end{smallmatrix}\right)$. \item Let $\eta,\eta'$ be projectively flat frames of $\mathcal V$ over a connected open subset $U\subset B^\circ$. Then $\eta'=f\eta C$ for a nowhere vanishing holomorphic function $f$ on $U$ and a matrix $C\in\GL_2(\CC)$. \item Continuation of projectively flat frames along loops defines a homomorphism $\rho_\theta$ from $\pi_1(B^\circ,b)$ to $\PGL(\mathcal V_b)$ whose image has order at most $24$. \end{enumerate} \end{lemma} \begin{proof} For a symplectic basis $(f_1,f_2,e_1,e_2)$, we have $\Lambda^\#=\Lambda+\ZZ\frac{e_2}2+\ZZ\frac{f_2}2$, so $K(\theta)$ is generated by the classes of $\frac{e_2}2$ and $\frac{f_2}2$, whose normalized coordinates are $\frac12D_2\varepsilon_2$ and $\frac12\Omega_U\varepsilon_2$. A translation $t_x$ by $x\in K(\theta)$ acts on $\PP(H^0(A_\Omega,M_\Omega))$ by $[s]\mapsto[h\cdot s(\cdot+\tilde x)]$, where $\tilde x\in\CC^2$ is a lift of $x$ and $h$ is a nowhere vanishing function such that $h\cdot s(\cdot+\tilde x)$ is again a section of $M_\Omega$. By Lemma~\ref{lem:thetaid}(c), we may take $h=1$ for $\tilde x=\frac12D_2\varepsilon_2$ and $h=\bfe(\frac18\Omega_{22}+\frac12z_2)$ for $\tilde x=\frac12\Omega\varepsilon_2$, and the two translations act by the classes of $\diag(1,-1)$ and $\left(\begin{smallmatrix}0&1\\1&0\end{smallmatrix}\right)$. This proves (a). For (b), it suffices by (a) to treat the case where $\eta$ is a frame as in (a). Write $\eta'=\eta N$ with a holomorphic map $N\colon U\to\GL_2(\CC)$. Then $[N(b)]^{-1}V_0[N(b)]$ is a constant subgroup of $\PGL_2(\CC)$, and $[N(b)]^{-1}[g][N(b)]$ is constant for each $g\in V_0$. Hence $[N]$ takes values in a coset of the centralizer of $V_0$ in $\PGL_2(\CC)$. An element commuting with the class of $\diag(1,-1)$ is the class of a diagonal or antidiagonal matrix, and such a class commutes with the class of $\left(\begin{smallmatrix}0&1\\1&0\end{smallmatrix}\right)$ if and only if it lies in $V_0$. Hence the centralizer of $V_0$ is $V_0$, the map $[N]$ is constant, and $N=fC$. For (c), by (a) and (b), every projectively flat frame continues along every path, and the continuation of $\eta$ along a loop $\gamma$ at $b$ is $\eta\cdot fC_\gamma$; put $\rho_\theta(\gamma)\coloneqq[C_\gamma]$, viewed in $\PGL(\mathcal V_b)$ via $\eta(b)$. Since continuation preserves $K(\theta)$, $\rho_\theta(\gamma)$ normalizes the image $V_b\simeq V_0$ of $K(\theta)_b$ in $\PGL(\mathcal V_b)$. The normalizer of $V_0$ in $\PGL_2(\CC)$ acts on $V_0\setminus\{1\}$ through the symmetric group on three letters, with kernel the centralizer $V_0$, so it has order at most $24$. \end{proof} \noindent The action of $K(\theta)$ on $\PP(H^0(A_b,M|_{A_b}))$ is the projectivized Schr\"odinger representation of the theta group \cite[Chapter~6]{BL04}. For a frame $\eta=(\eta_1,\eta_2)$ of a vector bundle of rank two with dual frame $(\eta_1^\vee,\eta_2^\vee)$, let $\mathrm{Ad}(\eta)\coloneqq(\eta_1\otimes\eta_2^\vee,\,\eta_2\otimes\eta_1^\vee,\,\eta_1\otimes\eta_1^\vee-\eta_2\otimes\eta_2^\vee)$ be the induced frame of its bundle $\End_0$ of trace-free endomorphisms. Then $\mathrm{Ad}(f\eta)=\mathrm{Ad}(\eta)$ for every nowhere vanishing function $f$, so $\mathrm{Ad}(\eta)$ is defined for a family of local frames which differ by scalar functions on overlaps. For an isomorphism $\varphi$ of vector bundles of rank two with $\varphi(\eta)=\eta'N$, the isomorphism $\varphi_{\mathrm{ad}}\colon\mathfrak e\mapsto\varphi\circ\mathfrak e\circ\varphi^{-1}$ of their bundles $\End_0$ satisfies $\varphi_{\mathrm{ad}}(\mathrm{Ad}(\eta))=\mathrm{Ad}(\eta')\,\mathrm{Ad}(N)$, where $\mathrm{Ad}\colon\GL_2(\CC)\to\GL_3(\CC)$ is the adjoint representation in the basis $(E_{12},E_{21},E_{11}-E_{22})$ of $\mathfrak{sl}_2(\CC)$; the entries of $\mathrm{Ad}(N)$ are polynomials in the entries of $N$ divided by $\det N$. By Lemma~\ref{lem:projflat}(b), if $d=2$, the frames $\mathrm{Ad}(\eta)$ for projectively flat frames $\eta$ of $\mathcal V$ are flat frames of a local system $\mathcal A_\theta$ of rank three on $B^\circ$ with $\End_0(\mathcal V)=\mathcal A_\theta\otimes\cO_{B^\circ}$, whose monodromy is $\mathrm{Ad}\circ\rho_\theta$. \begin{lemma}\label{lem:Psi} For $Z\in\mathcal H_2$, put $\Psi^\natural(Z)\coloneqq\Psi(D_2ZD_2)$. Then the following hold. \begin{enumerate} \item $\Psi^\natural$ is a nonzero modular form of weight two for $\Gamma_2$ with a character of finite order. \item If $d=2$, then the section $\Psi^\natural(A)$ of Definition~\ref{def:order}, for the kernel of this character, is nonzero. \end{enumerate} \end{lemma} \begin{proof} For a characteristic $\mathsf m=(\mathsf m',\mathsf m'')\in(\frac12\ZZ)^2\times(\frac12\ZZ)^2$, let $\vartheta[\mathsf m](z'',Z)\coloneqq\sum_{n\in\ZZ^2}\bfe(\frac12(n+\mathsf m')^tZ(n+\mathsf m')+(n+\mathsf m')^t(z''+\mathsf m''))$ be the theta function with characteristic $\mathsf m$, and put $\mathsf m_+\coloneqq((\frac12,0),(\frac12,0))$ and $\mathsf m_-\coloneqq((\frac12,0),(\frac12,\frac12))$. For $j\in\{1,2\}$ and $m=(m_1,m_2)\in\alpha_j+\ZZ^2$, put $k\coloneqq2m_2\in\ZZ$; then $k\equiv j-1\pmod2$ and $\frac12m^t(D_2ZD_2)m+m^t(D_2z''+\beta)=\frac12(m_1,k)Z(m_1,k)^t+(m_1,k)(z''+\beta)$. Since $(m_1,k)$ runs over $(\frac12,0)+\ZZ^2$ and $\bfe(\frac k2)=(-1)^{j-1}$, we obtain $\vartheta[\mathsf m_\pm](z'',Z)=\vartheta_1(D_2z'',D_2ZD_2)\pm\vartheta_2(D_2z'',D_2ZD_2)$. Put $J(Z)\coloneqq\det\bigl(\nabla_{z''}\vartheta[\mathsf m_+](0,Z),\nabla_{z''}\vartheta[\mathsf m_-](0,Z)\bigr)$. Since $\nabla_{z''}\vartheta[\mathsf m_\pm](0,Z)=D_2\bigl(\nabla\vartheta_1(0,D_2ZD_2)\pm\nabla\vartheta_2(0,D_2ZD_2)\bigr)$, we get $J=\det(D_2)\cdot\det\left(\begin{smallmatrix}1&1\\1&-1\end{smallmatrix}\right)\cdot\Psi^\natural=-4\Psi^\natural$. Let $\mathcal V_{\mathcal H}$ and $\cE_{\mathcal H}$ be the bundles on $\mathcal H_2$ of sections of the line bundles $M_\Omega$ of Lemma~\ref{lem:thetaid}(d) and of invariant one-forms of the family $(A_\Omega)_{\Omega\in\mathcal H_2}$, and let $\delta_{\mathcal H}\colon\mathcal V_{\mathcal H}\to\cE_{\mathcal H}$ be the differentiation at the origin. Then $\delta_{\mathcal H}(\vartheta_j(\cdot,\Omega))=\sum_{i=1}^2\frac{\partial\vartheta_j}{\partial z_i}(0,\Omega)\,dz_i$, so $\Psi(\Omega)$ is the determinant of $\delta_{\mathcal H}$ with respect to the frames $(\vartheta_1(\cdot,\Omega),\vartheta_2(\cdot,\Omega))$ and $(dz_1,dz_2)$. For very general $\Omega\in\mathcal H_2$, $A_\Omega$ contains no elliptic curve, so $\Psi(\Omega)\ne0$ by Lemma~\ref{lem:thetaM}(b). Hence $\Psi\ne0$ and $J\ne0$. For $\gamma\in\Gamma_2$, the change of symplectic basis by $\gamma$ induces an isomorphism of the families of polarized abelian surfaces over $\mathcal H_2$ covering $Z\mapsto\gamma\langle Z\rangle$, which is compatible with the line bundles of Lemma~\ref{lem:thetaM}(a) by their uniqueness, and hence with $\delta_{\mathcal H}$. Hence $\gamma^*\mathrm{div}(\Psi^\natural)=\mathrm{div}(\Psi^\natural)$ for every $\gamma\in\Gamma_2$. Let $\Gamma(2)\subset\Sp_4(\ZZ)$ be the principal congruence subgroup of level two, and let $\gamma=\left(\begin{smallmatrix}a'&b'\\c'&d'\end{smallmatrix}\right)\in\Gamma(2)$. By the theta transformation formula \cite[Chapter~V]{Igu72}, there are a holomorphic function $\kappa_\gamma$ on $\mathcal H_2$ with $\kappa_\gamma(Z)^2=\det(c'Z+d')$ and $c_{\gamma,+},c_{\gamma,-}\in\mu_8$ such that \[ \vartheta[\mathsf m_\pm]\bigl((c'Z+d')^{-t}z'',\gamma\langle Z\rangle\bigr)=c_{\gamma,\pm}\,\kappa_\gamma(Z)\,\bfe\bigl(\tfrac12z''^t(c'Z+d')^{-1}c'z''\bigr)\,\vartheta[\mathsf m_\pm](z'',Z); \] here we use that $\gamma\equiv1\pmod2$ fixes $\mathsf m_\pm$ modulo $\ZZ^4$, and that $\vartheta[\mathsf m+\mathsf n]=\pm\vartheta[\mathsf m]$ for $\mathsf n\in\ZZ^4$. Since $\vartheta[\mathsf m_\pm](0,Z)=0$, differentiation at $z''=0$ gives $\nabla_{z''}\vartheta[\mathsf m_\pm](0,\gamma\langle Z\rangle)=c_{\gamma,\pm}\kappa_\gamma(Z)(c'Z+d')\nabla_{z''}\vartheta[\mathsf m_\pm](0,Z)$, so $J(\gamma\langle Z\rangle)=\chi(\gamma)\det(c'Z+d')^2J(Z)$ with $\chi(\gamma)\coloneqq c_{\gamma,+}c_{\gamma,-}\in\mu_8$. Since $J\ne0$ and $\det(c'Z+d')$ is a cocycle, $\chi$ is a character of $\Gamma_2\cap\Gamma(2)$. Since $\Gamma_2$ is commensurable with $\Sp_4(\ZZ)$ \cite[\S1]{Gri95}, $\ker\chi$ has finite index in $\Gamma_2$, so it contains a normal subgroup $\Gamma''$ of $\Gamma_2$ of finite index. Hence $\Psi^\natural$ is a modular form of weight two for $\Gamma''$ with trivial character. Let $\gamma\in\Gamma_2$. Then $\Psi^\natural|_2\gamma$ is a modular form of weight two for $\gamma^{-1}\Gamma''\gamma=\Gamma''$ with trivial character, and $\mathrm{div}(\Psi^\natural|_2\gamma)=\gamma^*\mathrm{div}(\Psi^\natural)=\mathrm{div}(\Psi^\natural)$. Hence $(\Psi^\natural|_2\gamma)/\Psi^\natural$ is a $\Gamma''$-invariant holomorphic function on $\mathcal H_2$ without zeros. It descends to $\Gamma''\backslash\mathcal H_2$ and extends across the boundary of its Baily--Borel compactification, which has codimension two, so it is a constant $c_\gamma\in\CC^*$. The map $\gamma\mapsto c_\gamma$ is a character of $\Gamma_2$ which is trivial on $\Gamma''$, so it has finite order. This proves (a). Suppose $d=2$. By Lemma~\ref{lem:end}, $A_b$ contains no elliptic curve for very general $b\in B^\circ$. By Lemmas~\ref{lem:thetaM}(b) and~\ref{lem:thetabundle}(c), $\Psi(\Omega_U(b))\ne0$ for such $b$ and every symplectic basis of $\Lambda|_U$, so $\Psi^\natural(A)$ is nonzero on every connected component of the cover of Definition~\ref{def:order}. This proves (b). \end{proof} \noindent In genus two, $J$ is the Jacobian of the two odd theta functions with characteristics $\mathsf m_\pm$; for its transformation behavior, see also \cite[Chapter~V]{Igu72}. Suppose $d=2$. By Lemma~\ref{lem:thetabundle}(c), $\Psi(\Omega_U)$ is the determinant of $\delta$ with respect to the frames $(\vartheta_j(\cdot,\Omega_U))_j$ and $(dz_1,dz_2)$, and $\Psi^\natural(A)=\Psi(\Omega_U)\,(dz_1\wedge dz_2)^{\otimes2}$ for the symplectic basis of $\Lambda|_U$. Since the character of $\Psi^\natural$ has finite order, the sections of Definition~\ref{def:order} for the different level structures differ by roots of unity. Since $\pi_1(B^\circ,b)\cdot\Lambda=\{\Lambda\}$, \eqref{eq:orbitavg} shows that $\ord_x(\Psi^\natural;\Lambda)$ is the order at $x$ of $\Psi(\Omega_U)\,(dz_1\wedge dz_2)^{\otimes2}$ as a section of $(\det\cE)^{\otimes2}$, computed with respect to a local coordinate of $\ell$ at $x$, for any symplectic basis of $\Lambda$ near $x$. \subsection{Local structure along the discriminant} \begin{lemma}\label{lem:gradmult} Suppose $d=2$. Let $x\in\Delta\setminus Z_0$ be a point at which $X_x$ is of type $\mathrm I_n$, and let $U\ni x$ be a polydisc with coordinates $(s,w)$ such that $U\cap Z_0=\varnothing$ and $\Delta\cap U=\{s=0\}$. Define $T_x$, $v_x$ and $\delta_x$ for the disc $\{w=w(x)\}$ as in Notation~\ref{not:line}. Then there are a frame $\omega=(\omega_1,\omega_2)$ of $\cE|_U$, a frame $\eta=(\eta_1,\eta_2)$ of $\mathcal V|_{U\setminus\Delta}$ and a holomorphic map $H\colon U\to M_2(\CC)$ with $\delta(\eta)=\omega H$, such that the following hold. \begin{enumerate} \item If $\delta_x=1$, then $\eta$ is projectively flat. \item If $\delta_x=2$, then $(s^{n/4}\eta_1,\eta_2)|_{U'}$ is projectively flat for every simply connected open subset $U'\subset U\setminus\Delta$ and every branch of $s^{n/4}$ on $U'$. \item If $x\in\ell$, then $\ord_x(\Psi^\natural;\Lambda)=\frac n4+\ord_x(\det H|_{\ell\cap U})$. \end{enumerate} \end{lemma} \begin{proof} If $\delta_x=1$, choose $f\in\Lambda$ with $\theta(f,v_x)=1$; the projection $y\mapsto\theta(f,y)v_x-\theta(v_x,y)f$ is integral, so $\Lambda=(\ZZ v_x+\ZZ f)\oplus(\ZZ v_x+\ZZ f)^\perp$, and there is a symplectic basis $(f_1,f_2,e_1,e_2)$ with $(f_1,e_1)=(f,v_x)$. If $\delta_x=2$, write $\Lambda=U_1\oplus U_2$ with $\theta|_{U_1}$ unimodular and $\theta|_{U_2}=2\theta'_2$ with $\theta'_2$ unimodular, and $v_x=2hu_1+gu_2$ with $u_i\in U_i$ primitive or zero and $\gcd(2h,g)=1$; choosing $a\in U_1$ and $f''\in U_2$ with $2h\theta(a,u_1)+g\theta'_2(f'',u_2)=1$, the vector $f\coloneqq2a+f''$ satisfies $\theta(f,v_x)=2$ and $\theta(f,\Lambda)\subset2\ZZ$, so the projection $y\mapsto\frac12(\theta(f,y)v_x-\theta(v_x,y)f)$ is integral, and there is a symplectic basis with $(f_2,e_2)=(f,v_x)$. In both cases, $e_1$ and $e_2$ are $T_x$-invariant by Lemma~\ref{lem:mult}(c), and the basis is defined on the simply connected subset $U^\flat\coloneqq\{(s,w)\in U:s\notin\RR_{\le0}\}$. Let $z$ and $\Omega\colon U^\flat\to\mathcal H_2$ be its normalized coordinates and period map. Since $\int_{e_i}dz_j=d_i\delta_{ij}$, Lemma~\ref{lem:frame} applied to the discs $\{w=w_0\}$ and the Cauchy integral formula in $s$ show that $(dz_1,dz_2)$ extends to a frame $\omega$ of $\cE|_U$, and that the periods $\int_adz_j$ of every $a\in\Lambda^{T_x}$ are holomorphic on $U$. Suppose $\delta_x=1$. By Lemma~\ref{lem:mult}(c), continuation around $\Delta$ maps $f_1$ to $f_1\pm ne_1$ and fixes $f_2,e_1,e_2$. Hence $\Omega_{12}=\int_{f_2}dz_1$ and $\Omega_{22}=\int_{f_2}dz_2$ are holomorphic on $U$, and $\bfe(\Omega_{11})$ is a single-valued holomorphic function on $U\setminus\Delta$ with $|\bfe(\Omega_{11})|<1$. By the Riemann extension theorem, $\bfe(\Omega_{11})=s^ku$ with $k\ge0$ and $u$ a unit on $U$, so $\Omega_{11}-\frac k{2\pi\sqrt{-1}}\log s$ extends to a holomorphic function $\psi_{11}$ on $U$, and comparing the continuations gives $k=n$. By the proof of Lemma~\ref{lem:frame}, at a point of $\Delta\cap U$, the form $\omega_2$ vanishes on the toric part of the Lie algebra of the identity component of the special fiber of the N\'eron model, which is spanned by the value of the section $\alpha_{e_1}$, and it induces an isomorphism from the Lie algebra of the elliptic curve $E_x$ onto $\CC$ which maps $H_1(E_x,\ZZ)$, the image of $\ZZ e_2+\ZZ f_2$, onto $2\ZZ+\Omega_{22}\ZZ$. Hence $\Omega_{22}\notin\RR$ on $\Delta\cap U$, and $\mathrm{Im}\,\Omega_{22}>0$ on $U$ by continuity. For $m\in\alpha_j+\ZZ^2$, $\frac n2m_1^2=\frac n8+\frac n2(m_1^2-\frac14)$ with $\frac n2(m_1^2-\frac14)\in\ZZ_{\ge0}$, so \begin{align*} \vartheta_j(z,\Omega)&=s^{n/8}G_j(s,w,z),\\ G_j(s,w,z)&\coloneqq\sum_{m\in\alpha_j+\ZZ^2}s^{\frac n2(m_1^2-\frac14)}\bfe\Bigl(\frac{m_1^2}2\psi_{11}+m_1m_2\Omega_{12}+\frac{m_2^2}2\Omega_{22}+m^t(z+\beta)\Bigr), \end{align*} where the series $G_j$ converges normally on compact subsets of $U\times\CC^2$ after shrinking $U$, since $\mathrm{Im}\,\Omega_{22}>0$ on $U$. For the continued basis, the period matrix is $\Omega+nE_{11}$, the factors of automorphy of Lemma~\ref{lem:thetaid}(d) for $\Omega$ and $\Omega+nE_{11}$ agree on $\Lambda_\Omega=\Lambda_{\Omega+nE_{11}}$, and $\vartheta_j(z,\Omega+nE_{11})=\bfe(\frac n8)\vartheta_j(z,\Omega)$. Hence $\eta\coloneqq(G_1,G_2)$ is a single-valued frame of $\mathcal V|_{U\setminus\Delta}$, projectively flat by Lemma~\ref{lem:projflat}(a), and $\delta(\eta)=\omega H$ with $H\coloneqq(\partial G_j/\partial z_i(s,w,0))_{i,j}$ by Lemma~\ref{lem:thetabundle}. This proves (a), and $\Psi(\Omega)=s^{n/4}\det H$. Suppose $\delta_x=2$. By Lemma~\ref{lem:mult}(c), continuation around $\Delta$ maps $f_2$ to $f_2\pm ne_2$ and fixes $f_1,e_1,e_2$, so $\Omega_{22}$ changes by $\pm2n$. As above, $\Omega_{11}$ and $\Omega_{12}$ are holomorphic on $U$, $\mathrm{Im}\,\Omega_{11}>0$ on $U$, and $\Omega_{22}=\frac{2n}{2\pi\sqrt{-1}}\log s+\psi_{22}$ with $\psi_{22}$ holomorphic on $U$. Since $\bfe(\frac12m_2^2\Omega_{22})=s^{nm_2^2}\bfe(\frac12m_2^2\psi_{22})$, with $nm_2^2\in\ZZ_{\ge0}$ for $m\in\alpha_1+\ZZ^2$ and $nm_2^2\in\frac n4+\ZZ_{\ge0}$ for $m\in\alpha_2+\ZZ^2$, we get $\vartheta_1=G_1$ and $\vartheta_2=s^{n/4}G_2$ with series $G_1,G_2$ as above, holomorphic on $U\times\CC^2$. The factors of automorphy for $\Omega$ and $\Omega+2nE_{22}$ agree, so $\eta\coloneqq(G_2,G_1)$ is a single-valued frame of $\mathcal V|_{U\setminus\Delta}$, $(s^{n/4}\eta_1,\eta_2)=(\vartheta_2,\vartheta_1)$ is projectively flat on $U^\flat$ and on every simply connected $U'$, and $\delta(\eta)=\omega H$ with $H\coloneqq(\partial G_{3-j}/\partial z_i(s,w,0))_{i,j}$. This proves (b), and $\Psi(\Omega)=-s^{n/4}\det H$. In both cases, $(dz_1\wedge dz_2)^{\otimes2}$ is a frame of $(\det\cE)^{\otimes2}$ on $U$, and $\Psi(\Omega)|_{\ell\cap U}=\pm s^{n/4}\det H|_{\ell\cap U}$, where $s|_{\ell\cap U}$ is a local parameter at $x$. This proves (c). \end{proof} \noindent The series $G_j$ are the Fourier--Jacobi expansions of $\vartheta_j$ at the cusp of $v_x$; compare with the proof of Lemma~\ref{lem:orders}(b). \begin{lemma}\label{lem:gradeq} Suppose $d=2$. Then the following hold. \begin{enumerate} \item The homomorphism $\delta\colon\mathcal V\to\cE_A$ is an isomorphism. \item In Lemma~\ref{lem:gradmult}, $H(x')$ is invertible for every $x'\in U$. \item Let $x\in\Delta\setminus Z_0$ be a point at which $X_x$ is of type $\mathrm{II}$, $\mathrm{III}$ or $\mathrm{IV}$, and let $\tilde D$ and $A^{\mathrm{good}}$ be as in Lemma~\ref{lem:contact} for a polydisc $D\ni x$ with $D\cap Z_0=\varnothing$. Let $M^{\mathrm{good}}$ be the line bundle on $A^{\mathrm{good}}$ given by Lemma~\ref{lem:thetaM}(a) as in Lemma~\ref{lem:thetabundle}, $\mathcal V^{\mathrm{good}}$ its direct image on $\tilde D$, and $\delta^{\mathrm{good}}\colon\mathcal V^{\mathrm{good}}\to\cE_{A^{\mathrm{good}}}$ the differential along the zero section. Then $\delta^{\mathrm{good}}$ is an isomorphism. \end{enumerate} \end{lemma} \begin{proof} Let $\ell$ be a general line. By Lemmas~\ref{lem:Psi}(b) and~\ref{lem:orders}(a) with $k=2$, $\sum_{x\in\ell}\ord_x(\Psi^\natural;\Lambda)=6$. For $x\in\ell\cap B^\circ$, $\ord_x(\Psi^\natural;\Lambda)\ge0$, with equality if and only if $\delta$ is an isomorphism at $x$. For multiplicative $x\in\ell\cap\Delta$, $\ord_x(\Psi^\natural;\Lambda)\ge\frac{n_x}4$ by Lemma~\ref{lem:gradmult}(c), with equality if and only if $\det H(x)\ne0$. For additive $x\in\ell\cap\Delta$, $X_x$ is of type $\mathrm{III}$ by Lemma~\ref{lem:lvl2fib}(a), so $e_x=4$, and $\ord_x(\Psi^\natural;\Lambda)=\frac{2+m}4\ge\frac12$ by Lemma~\ref{lem:orders}(c), where, by Lemma~\ref{lem:thetabundle}(c) applied to $A^{\mathrm{good}}$, $m$ is the order along $\{u=0\}$ of the determinant of $\delta^{\mathrm{good}}$ with respect to the frames of Lemma~\ref{lem:thetabundle}(c); equality holds if and only if $m=0$. By Lemma~\ref{lem:lvl2fib}(c), the lower bounds add up to $\frac14\sum_{x\ \mathrm{mult}}n_x+\frac12t_{\mathrm{III}}=\frac{24-2t_{\mathrm{III}}}4+\frac{t_{\mathrm{III}}}2=6$. Hence all of them are equalities. For (a), the zero locus of $\det\delta$, a section of $\det\cE_A\otimes(\det\mathcal V)^{-1}$, is empty or a divisor of $B^\circ$; in the second case, its closure meets a general line $\ell$ in a point of $B^\circ$, which contradicts the equality at the points of $\ell\cap B^\circ$. For (b), $\det H$ is holomorphic on $U$ and nonvanishing on $U\setminus\Delta$ by (a), since $\Psi(\Omega)=\pm s^{n/4}\det H$. It does not vanish at the points of $\Delta\cap U$ lying on general lines, which are dense in $\Delta\cap U$. Hence its zero locus, a divisor of $U$ contained in the irreducible curve $\Delta\cap U$, is empty. For (c), the determinant of $\delta^{\mathrm{good}}$ in the frames of Lemma~\ref{lem:thetabundle}(c) for $A^{\mathrm{good}}$ is holomorphic on $\tilde D$ and nonvanishing outside $\{u=0\}$ by (a). Applying the above to a general line through a general point of $\Delta\cap D$, we get $m=0$, so this determinant does not vanish identically on the irreducible curve $\{u=0\}$; as in (b), it vanishes nowhere. \end{proof} \begin{lemma}\label{lem:gradbranch} Suppose $d=2$. Let $x\in\Delta\setminus Z_0$ be a point at which $X_x$ is of type $\mathrm I_n$ with $\delta_x=2$, where $\delta_x$ is as in Lemma~\ref{lem:gradmult}, or of type $\mathrm{II}$, $\mathrm{III}$ or $\mathrm{IV}$, and let $U\ni x$ be a polydisc with coordinates $(s,w)$ such that $U\cap Z_0=\varnothing$ and $\Delta\cap U=\{s=0\}$. Then there are a frame $\omega$ of $\cE|_U$ and a frame $\mathfrak a$ of $\End_0(\mathcal V)|_{U\setminus\Delta}$ with the following properties. \begin{enumerate} \item The matrix of $\delta_{\mathrm{ad}}$ with respect to $\mathfrak a$ and $\mathrm{Ad}(\omega)$ extends to a holomorphic map $U\to\GL_3(\CC)$. \item For every simply connected open subset $U'\subset U\setminus\Delta$ and every branch of $s^{1/4}$ on $U'$, there is a projectively flat frame $(\xi_1,\xi_2)$ of $\mathcal V|_{U'}$ with $\mathfrak a|_{U'}=\mathrm{Ad}(s^{-1/4}\xi_1,\xi_2)$. \end{enumerate} \end{lemma} \begin{proof} Suppose first that $X_x$ is of type $\mathrm I_n$ with $\delta_x=2$. Since the local monodromy is locally constant along $\Delta\setminus Z_0$ and a general line meets every component of $\Delta$, Lemma~\ref{lem:lvl2fib}(b) gives $n=1$. Let $\omega$, $\eta$ and $H$ be as in Lemma~\ref{lem:gradmult}, and put $\mathfrak a\coloneqq\mathrm{Ad}(\eta)$. The matrix of $\delta_{\mathrm{ad}}$ is $\mathrm{Ad}(H)$, which is holomorphic with values in $\GL_3(\CC)$ on $U$ by Lemma~\ref{lem:gradeq}(b). For (b), take $(\xi_1,\xi_2)\coloneqq(s^{1/4}\eta_1,\eta_2)$, which is projectively flat by Lemma~\ref{lem:gradmult}(b). Suppose that $X_x$ is of type $\mathrm{II}$, $\mathrm{III}$ or $\mathrm{IV}$. By Lemma~\ref{lem:lvl2fib}(a), applied as above, $X_x$ is of type $\mathrm{III}$. Let $\tilde U\to U$, $(u,w)\mapsto(u^4,w)$, the abelian scheme $A^{\mathrm{good}}$, its automorphism $g$ over $(u,w)\mapsto(\zeta_4u,w)$ and the frame $(\alpha,\beta)$ be as in Lemma~\ref{lem:contact} with $e=4$, and let $\mathcal V^{\mathrm{good}}$ and $\delta^{\mathrm{good}}$ be as in Lemma~\ref{lem:gradeq}(c). By the uniqueness in Lemma~\ref{lem:thetaM}(a), $g$ acts on $M^{\mathrm{good}}$, hence on $\mathcal V^{\mathrm{good}}$ over $(u,w)\mapsto(\zeta_4u,w)$, and $\delta^{\mathrm{good}}$ is $g$-equivariant; we write $g^*$ for the induced action on sections. Since $\tilde U$ is simply connected, Lemmas~\ref{lem:thetabundle} and~\ref{lem:projflat}, applied to $A^{\mathrm{good}}$, give a projectively flat frame $\xi'$ of $\mathcal V^{\mathrm{good}}$ over $\tilde U$. Since $g$ normalizes the action of $K(\theta)$, $g^*\xi'$ is projectively flat, so $g^*\xi'=f\xi'P$ with a nowhere vanishing function $f$ and $P\in\GL_2(\CC)$ by Lemma~\ref{lem:projflat}(b). At a point $\tilde x_0$ of $\{u=0\}$, $g$ acts linearly on the fibers of $\mathcal V^{\mathrm{good}}$ and $\cE_{A^{\mathrm{good}}}$, $\delta^{\mathrm{good}}$ is an equivariant isomorphism by Lemma~\ref{lem:gradeq}(c), and $g$ acts on $\cE_{A^{\mathrm{good}}}(\tilde x_0)$ with the eigenvalues $\zeta_4$ on $\alpha(\tilde x_0)$ and $1$ on $\beta(\tilde x_0)$. Hence $f(\tilde x_0)P$ has the eigenvalues $\zeta_4$ and $1$, and there is $C\in\GL_2(\CC)$ such that $\xi\coloneqq\xi'C$ satisfies $g^*\xi=f\xi\,\diag(p_1,p_2)$ with $f(\tilde x_0)p_1=\zeta_4$ and $f(\tilde x_0)p_2=1$. Then $\delta^{\mathrm{good}}(\xi_1(\tilde x_0))\in\CC\alpha(\tilde x_0)$ and $\delta^{\mathrm{good}}(\xi_2(\tilde x_0))\in\CC\beta(\tilde x_0)$ for every $\tilde x_0\in\{u=0\}$. Write $\delta^{\mathrm{good}}(\xi_k)=a_k\alpha+b_k\beta$ with holomorphic functions $a_k,b_k$ on $\tilde U$. Then $b_1$ and $a_2$ vanish on $\{u=0\}$, so $b_1=ub'_1$ with $b'_1$ holomorphic. By Lemma~\ref{lem:contact}(a), $(u^{-1}\alpha,\beta)$ is a frame of the pullback of $\cE$ to $\tilde U$; it is $g$-invariant, so it is the pullback of a frame $\omega$ of $\cE|_U$. Then \[ \delta(u^{-1}\xi_1,\xi_2)=\omega\tilde H,\qquad\tilde H\coloneqq\begin{pmatrix}a_1&ua_2\\b'_1&b_2\end{pmatrix}, \] and $\det\tilde H=a_1b_2-a_2b_1$ vanishes nowhere on $\tilde U$ by Lemma~\ref{lem:gradeq}(c). Since $g^*\omega=\omega$ and $\delta$ is $g$-equivariant, $\tilde H\circ g=\tilde HQ$ with $Q\coloneqq f\diag(\zeta_4^{-1}p_1,p_2)$. Evaluating on $\{u=0\}$ gives $Q=1$ there, so $\zeta_4^{-1}p_1=p_2$ and $Q$ is a scalar function. Hence $\mathrm{Ad}(u^{-1}\xi_1,\xi_2)$ is $g$-invariant and descends to a frame $\mathfrak a$ of $\End_0(\mathcal V)|_{U\setminus\Delta}$. The matrix of $\delta_{\mathrm{ad}}$ with respect to $\mathfrak a$ and $\mathrm{Ad}(\omega)$ pulls back to $\mathrm{Ad}(\tilde H)$, which is holomorphic with values in $\GL_3(\CC)$ on $\tilde U$. Hence it is bounded near $\Delta$ and extends holomorphically to $U$ by the Riemann extension theorem, with the values $\mathrm{Ad}(\tilde H(0,w))$ on $\Delta\cap U$. This proves (a). For (b), the branch of $s^{1/4}$ defines a section $U'\to\tilde U$, $(s,w)\mapsto(s^{1/4},w)$, and the pullback of $\xi$ along it is a projectively flat frame of $\mathcal V|_{U'}$ with the required property. \end{proof} \subsection{Exclusion of polarization type \texorpdfstring{$(1,2)$}{(1,2)}} \begin{proposition}\label{prop:d2} One has $d\ne2$. \end{proposition} \begin{proof} Suppose $d=2$. By Proposition~\ref{prop:cone}, there are $p\in B$ and a subset $I\subset p^\vee$ of four points such that the branch divisor of the triple cover $\nu$ of Lemma~\ref{lem:lvl2fib}(d) is $\Delta_I\coloneqq\bigcup_{y\in I}y^\vee$. Then $p\in Z_0$, since $\Delta$ is singular at $p$. Let $\mathrm{pr}_p\colon B\setminus\{p\}\to p^\vee$ be the projection. By Lemma~\ref{lem:lvl2fib}(a), (b) and (d), and since the local monodromy is locally constant along $\Delta\setminus Z_0$, every $x\in\Delta_I\setminus Z_0$ is multiplicative with $(\delta_x,n_x)=(2,1)$ or additive of type $\mathrm{III}$, and every $x\in\Delta\setminus(Z_0\cup\Delta_I)$ is multiplicative with $\delta_x=1$. Put $B_1\coloneqq B\setminus(Z_0\cup\Delta_I)$. For $x\in\Delta\cap B_1$, Lemma~\ref{lem:gradmult}(a) and Lemma~\ref{lem:gradeq}(b) give a projectively flat frame $\eta$ of $\mathcal V$ over $U\setminus\Delta$ and a holomorphic map $H\colon U\to\GL_2(\CC)$ with $\delta(\eta)=\omega H$. Hence $\rho_\theta$ is trivial on the meridians around $\Delta\cap B_1$, the local system $\mathcal A_\theta$ extends to a local system on $B_1$, again denoted $\mathcal A_\theta$, and $\delta_{\mathrm{ad}}$ extends to an isomorphism $\mathcal A_\theta\otimes\cO_{B_1}\simeq\End_0(\cE)|_{B_1}$, whose matrix with respect to $\mathrm{Ad}(\eta)$ and $\mathrm{Ad}(\omega)$ is $\mathrm{Ad}(H)$ near $x$. The homomorphism $\rho_\theta$ factors through $\pi_1(B_1)$, which is isomorphic to $\pi_1(B\setminus\Delta_I)$ since $Z_0\setminus\Delta_I$ is finite. The map $\mathrm{pr}_p\colon B\setminus\Delta_I\to p^\vee\setminus I$ is a fiber bundle with fiber $\CC$, so $\rho_\theta=\rho'\circ\mathrm{pr}_{p*}$ for a homomorphism $\rho'\colon\pi_1(p^\vee\setminus I)\to\PGL_2(\CC)$ with finite image. Since $\pi_1(p^\vee\setminus I)$ is free, $\rho'$ lifts to a homomorphism $\tilde\rho\colon\pi_1(p^\vee\setminus I)\to\SL_2(\CC)$ whose image is contained in the preimage of the image of $\rho'$, a finite group. Let $\mathbb D$ be the corresponding local system of rank two on $p^\vee\setminus I$. Choosing an isomorphism $\mathbb D_{\mathrm{pr}_p(b)}\simeq\mathcal V_b$ compatible with $\tilde\rho$ and $\rho_\theta$, we obtain an isomorphism $\End_0(\mathrm{pr}_p^*\mathbb D)\simeq\mathcal A_\theta$ on $B_1$ under which $\mathrm{Ad}(\mathrm{pr}_p^*\mathsf d)$, for a flat frame $\mathsf d$ of $\mathbb D$, corresponds to $\mathrm{Ad}(\eta')$ for a projectively flat frame $\eta'$ of $\mathcal V$ over simply connected open subsets of $B_1\cap B^\circ$. Let $y\in I$, let $w_y$ be a coordinate of $p^\vee$ centered at $y$, and let $x\in y^\vee\setminus Z_0$. Then $s\coloneqq w_y\circ\mathrm{pr}_p$ is a coordinate near $x$ with $\Delta=\{s=0\}$ near $x$, and $\mathrm{pr}_p$ maps a meridian around $y^\vee$ at $x$ to a loop around $y$. Let $\omega$, $\mathfrak a$ and $(\xi_1,\xi_2)$ be as in Lemma~\ref{lem:gradbranch}. Since $\mathfrak a$ is single-valued and $s^{-1/4}$ is multiplied by $\bfe(-\frac14)$ under continuation around $y^\vee$, the continuation of the projectively flat frame $(\xi_1,\xi_2)$ is $f(\xi_1,\xi_2)\diag(\bfe(\frac14),1)$ for a function $f$. Hence the local monodromy of $\tilde\rho$ at $y$ has eigenvalues $\lambda_1,\lambda_2$ with $\lambda_1/\lambda_2=\bfe(\frac14)$, and there is a multivalued flat frame $(\mathsf d_1,\mathsf d_2)$ of $\mathbb D$ near $y$, whose continuation around $y$ is $(\lambda_1\mathsf d_1,\lambda_2\mathsf d_2)$, such that $\mathrm{Ad}(\mathrm{pr}_p^*\mathsf d_1,\mathrm{pr}_p^*\mathsf d_2)=\mathrm{Ad}(\xi_1,\xi_2)\,\mathrm{Ad}(\diag(\kappa_1,\kappa_2))$ with constants $\kappa_1,\kappa_2\in\CC^*$, by Lemma~\ref{lem:projflat}(b). Choose $b_y\in\QQ$ with $\bfe(b_y)\lambda_2=1$. Then $\bfe(b_y-\frac14)\lambda_1=1$, so $w_y^{b_y-1/4}\mathsf d_1$ and $w_y^{b_y}\mathsf d_2$ are single-valued holomorphic sections of $\mathbb D\otimes\cO$ near $y$. Let $\mathcal D_0$ be the holomorphic vector bundle on $p^\vee$ obtained by gluing $\mathbb D\otimes\cO_{p^\vee\setminus I}$ with the trivial bundles of rank two near the points $y\in I$ by means of these frames. Near $x$, the frame of $\mathrm{pr}_p^*\End_0(\mathcal D_0)$ induced by $\mathrm{pr}_p^*(w_y^{b_y-1/4}\mathsf d_1,w_y^{b_y}\mathsf d_2)$ is \[ \mathrm{Ad}(s^{-1/4}\mathrm{pr}_p^*\mathsf d_1,\mathrm{pr}_p^*\mathsf d_2)=\mathfrak a\,\mathrm{Ad}(\diag(\kappa_1,\kappa_2)). \] By Lemma~\ref{lem:gradbranch}(a), the matrix of $\delta_{\mathrm{ad}}$ with respect to this frame and $\mathrm{Ad}(\omega)$ extends holomorphically with values in $\GL_3(\CC)$ across $y^\vee$ near $x$. Together with Lemma~\ref{lem:gradeq}(a) and the extension over $\Delta\cap B_1$, we obtain an isomorphism $\mathrm{pr}_p^*\End_0(\mathcal D_0)\simeq\End_0(\cE)$ over $B\setminus Z_0$, and $\cE\simeq T_B$ there by Lemma~\ref{lem:hodge}. By the theorem of Grothendieck, $\mathcal D_0\simeq\cO(a)\oplus\cO(a')$ for integers $a,a'$, so $\End_0(\mathcal D_0)\simeq\cO\oplus\cO(c)\oplus\cO(-c)$ with $c\coloneqq a-a'$. Since $\mathrm{pr}_p^*\cO_{p^\vee}(1)\simeq\cO_B(1)|_{B\setminus\{p\}}$ and $Z_0$ is finite, Hartogs' theorem gives $\End_0(T_B)\simeq\cO_B\oplus\cO_B(c)\oplus\cO_B(-c)$. The right-hand side has $c_2=-c^2\le0$, whereas $c_2(\End_0(T_B))=4c_2(T_B)-c_1(T_B)^2=12-9=3$. This contradiction proves the proposition. \end{proof} \noindent The last step is a version, with elementary modifications along the four branch lines, of the fact that a vector bundle $\mathcal W$ of rank two on a smooth projective surface whose projectivization is flat with finite monodromy satisfies $4c_2(\mathcal W)-c_1(\mathcal W)^2=0$. \section{Reconstruction at polarization type \texorpdfstring{$(1,3)$}{(1,3)}}\label{sec:rec} In this section, we show that a polarized abelian surface of type $(1,3)$ over $K=\CC(B)$ satisfying the conditions of Notation~\ref{not:rec} is the connected kernel of the map from the Jacobian of the generic member of a linear system $|H|$ on an abelian surface $T$ to $T$ (Theorem~\ref{thm:rec}). The idea is that the theta map of the polarized torsor is a finite cover of a fixed plane of degree six, whose algebra structure is determined by a cubic tensor; the symmetries of the theta group force this tensor to be given by a basis of the Hesse pencil on $B^\vee$, and such bases are realized by linear systems $|H|$. \begin{notation}\label{not:rec} Let $B'\subset B$ be a dense open subset, and let $(A',\lambda')$ be an abelian scheme of relative dimension two over $B'$ with a polarization $\lambda'$ of type $(1,3)$, with generic fiber $(A'_K,\lambda'_K)$. We consider the following conditions. \begin{enumerate} \item[(R1)] The abelian surface $A'_{\bar K}$ is simple, the period map of $A'$ has rank two at a general point of $B'$, and the finite \'etale group scheme $K(\lambda')$ is constant. \item[(R2)] Let $D\subset B$ be a prime divisor. If $D\cap B'\ne\varnothing$, then the fiber of $A'$ over a general point of $D$ contains no elliptic curve of degree one with respect to $\lambda'$. If $D\cap B'=\varnothing$, let $(\Lambda',\theta')$ be the local system of the polarized lattices $H_1$ of the fibers of $A'$, let $x\in D$ be a general point, and let $T'_x$ be the action on $\Lambda'$ of a positively oriented loop around $D$ in a disc meeting $D$ transversally at $x$. Then there are $c\in\ZZ\setminus\{0\}$ and a primitive $v_x\in\Lambda'$ with $\theta'(v_x,\Lambda')=\ZZ$ such that $T'_x(y)=y+c\,\theta'(y,v_x)v_x$ for $y\in\Lambda'$. Moreover, for a symplectic basis $(f_1,f_2,e_1,e_2)$ of $(\Lambda',\theta')$ with $e_1=v_x$ and period matrix $\Omega$, the functions $\Omega_{12}$ and $\Omega_{22}$ extend holomorphically to $x$, and $\Omega_{12}(x)\notin3\ZZ+\Omega_{22}(x)\ZZ$. \item[(R3)] There is an isomorphism $R^1\pi'_*\cO_{A'}\simeq\Omega^1_{B'}$, where $\pi'\colon A'\to B'$, which identifies, at the generic point of every prime divisor $D\subset B$ with $D\cap B'=\varnothing$, the Lie algebra of the N\'eron model of the dual $A_K'^\vee$ over $\cO_{B,D}$ with $\Omega^1_{B,D}$. \end{enumerate} \end{notation} \begin{lemma}\label{lem:Asat} Suppose $d=3$. Then $(A,\lambda_\theta)$ satisfies (R1), (R2) and (R3) with $B'=B^\circ$. \end{lemma} \begin{proof} By Lemma~\ref{lem:end}, $A_{\bar K}$ is simple. By Lemma~\ref{lem:period}, the period map of $A$ has rank two at a general point. By Lemma~\ref{lem:sat}(b), $K(\theta)$ is constant. An elliptic curve of degree one in a fiber splits the polarized fiber as a product \cite[Chapter~10]{BL04}, so the first assertion of (R2) follows from Lemma~\ref{lem:sat}(b), and the second from Lemmas~\ref{lem:sat}(a), \ref{lem:mult}(c) and~\ref{lem:gluing}. By Lemma~\ref{lem:hodge}, $\cE_A\simeq T_{B^\circ}$, so $\Lie(A/B^\circ)\simeq\Omega^1_{B^\circ}$, and at the generic point of a component of $\Delta$ the Lie algebra of the N\'eron model of $A_K$ is identified with $\Omega^1_{B}$. The polarization $\lambda_\theta$ extends to a homomorphism of N\'eron models whose restriction to identity components is an isogeny, since its composite with the dual isogeny is multiplication by $3$; in characteristic zero it induces an isomorphism of Lie algebras. Since $R^1\pi_{A*}\cO_A=\Lie(A^\vee/B^\circ)$, this proves (R3). \end{proof} \subsection{The theta torsor and the rigid plane} In this subsection, $(A',\lambda')$ satisfies (R1), and $\lambda'_K$ denotes the polarization of $A'_K$. Let $\lambda^D\colon A_K'^\vee\to A'_K$ be the isogeny with $\lambda^D\circ\lambda'_K=[3]$. Let $\mathcal T_A\coloneqq\Pic^{\lambda^D}_{A_K'^\vee/K}$ be the component of the Picard scheme of $A_K'^\vee$ parametrizing line bundles $N$ with $\phi_N=\lambda^D$, where $\phi_N(x)\coloneqq t_x^*N\otimes N^{-1}$; it is a torsor under $\Pic^0_{A_K'^\vee/K}=A'_K$. Let $\mathcal P_{\mathcal T}$ be the universal line bundle on $A_K'^\vee\times\mathcal T_A$, rigidified along $\{0\}\times\mathcal T_A$, let $\pr_2\colon A_K'^\vee\times\mathcal T_A\to\mathcal T_A$ be the projection, and put $M_A\coloneqq(\det\pr_{2*}\mathcal P_{\mathcal T})^{-1}$. \begin{lemma}\label{lem:thetator} The following hold. \begin{enumerate} \item The sheaf $\pr_{2*}\mathcal P_{\mathcal T}$ is locally free of rank three. \item $\phi_{M_A}=\lambda'_K$. \item The involution $\iota_A\colon N\mapsto[-1]^*N$ of $\mathcal T_A$ satisfies $\iota_A^*M_A\simeq M_A$. \end{enumerate} \end{lemma} \begin{proof} Since $\deg\lambda^D=\deg[3]/\deg\lambda'_K=9$, every $N$ with $\phi_N=\lambda^D$ satisfies $h^0(N)=\sqrt{\deg\phi_N}=3$ and $h^i(N)=0$ for $i>0$, so $\pr_{2*}\mathcal P_{\mathcal T}$ is locally free of rank three. Over $\bar K$, fix $N$ and consider $\varphi\colon A_{\bar K}'^\vee\to\mathcal T_{A,\bar K}$, $x\mapsto t_x^*N$, which is $\lambda^D$ followed by a translation. The pullback of $\mathcal P_{\mathcal T}$ along $\mathrm{id}\times\varphi$ is $m^*N\otimes \pr_2^*N^{-1}$, where $m$ is the addition, and $\pr_{2*}m^*N\simeq H^0(N)\otimes\cO$. Hence $\varphi^*M_A\simeq N^{\otimes3}$ up to a constant line bundle, and $\lambda^D\circ\phi_{M_A}\circ\lambda^D=\phi_{N^{\otimes3}}=3\lambda^D$. Since $\lambda^D$ is surjective, $\lambda^D\circ\phi_{M_A}=[3]$, that is, $\phi_{M_A}=\lambda'_K$. This proves (a) and (b). Assertion (c) holds since $\iota_A$ is induced by the automorphism $[-1]\times\iota_A$ of $A_K'^\vee\times\mathcal T_A$, which preserves the rigidified universal bundle. \end{proof} By (R1), $K(\lambda'_K)$ is constant; fix an isomorphism $K(\lambda'_K)\simeq(\ZZ/3)^2$ under which the Weil pairing becomes $((a,b),(a',b'))\mapsto\zeta_3^{ab'-a'b}$, and let $\kappa_1,\kappa_2\in K(\lambda'_K)(K)$ be the images of $(1,0)$ and $(0,1)$. Put \[ \mathsf D\coloneqq\diag(1,\zeta_3,\zeta_3^2),\qquad \mathsf S(x_0,x_1,x_2)\coloneqq(x_2,x_0,x_1),\qquad \mathsf J(x_0,x_1,x_2)\coloneqq(x_0,x_2,x_1), \] as automorphisms of $\CC^3$, and let $K_0\subset\PGL_3(\CC)$ be the group generated by the classes of $\mathsf D$ and $\mathsf S$. \begin{lemma}\label{lem:rigid} There is a unique isomorphism $\PP(H^0(\mathcal T_A,M_A)^\vee)\simeq\PP^2_K$ under which the translations by $\kappa_1,\kappa_2$ and the involution $\iota_A$ act by the classes of $\mathsf D$, $\mathsf S$ and $\mathsf J$. \end{lemma} \begin{proof} Over $\bar K$, the translations by $K(\lambda'_K)$ act on $\PP(H^0(\mathcal T_A,M_A)^\vee)$ through the Schr\"odinger representation of the theta group of $M_A$, so there are isomorphisms with $\PP^2$ under which $\kappa_1,\kappa_2$ act by $\mathsf D,\mathsf S$ \cite[Chapter~6]{BL04}. A projectivity commuting with the classes of $\mathsf D$ and $\mathsf S$ has a lift which, after multiplication by a suitable element of $\langle \mathsf D,\mathsf S\rangle$, commutes with $\mathsf D$ and $\mathsf S$, hence is scalar; so the centralizer of $K_0$ is $K_0\simeq(\ZZ/3)^2$, and these isomorphisms form a $K_0$-torsor. The involution $\iota_A$ conjugates the translation by $x$ to the translation by $-x$, and $[\mathsf J][\mathsf D][\mathsf J]^{-1}=[\mathsf D]^{-1}$ and $[\mathsf J][\mathsf S][\mathsf J]^{-1}=[\mathsf S]^{-1}$; hence $\iota_A$ acts by $k[\mathsf J]$ with $k\in K_0$. Since $[\mathsf J]a[\mathsf J]^{-1}=a^{-1}$ for $a\in K_0$, replacing an isomorphism $\phi$ by $a\circ\phi$ replaces $k$ by $a^2k$, and squaring is bijective on $K_0\simeq(\ZZ/3)^2$. Hence there is exactly one isomorphism with the required property. By uniqueness, it is invariant under $\Gal(\bar K/K)$, so it is defined over $K$. \end{proof} We put $Y\coloneqq\PP^2$ with the coordinates $(x_0:x_1:x_2)$ of Lemma~\ref{lem:rigid}, and we call $f_A\colon\mathcal T_A\to Y_K$ the \emph{theta map}. We put $H_0\coloneqq x_0^3+x_1^3+x_2^3$ and $H_1\coloneqq x_0x_1x_2$. \subsection{Finite flat models of the theta map} \begin{lemma}\label{lem:bpf} Let $S_0$ be an abelian surface with an ample line bundle $L_0$ of type $(1,3)$, and suppose that $S_0$ contains no elliptic curve $E$ with $L_0\cdot E=1$. Then $|L_0|$ is base point free, and $\varphi_{|L_0|}\colon S_0\to\PP^2$ is finite and flat of degree six. \end{lemma} \begin{proof} Suppose that $|L_0|$ has a fixed component $F\ne0$, and let $N'$ be the moving part. If $N'^2>0$, then $N'$ is ample with $N'^2=2h^0(\cO(N'))\ge6$, and $6=L_0^2>N'^2$, a contradiction. Hence $N'$ is algebraically equivalent to $kE$ for an elliptic curve $E$ and $k\ge h^0(\cO(N'))\ge3$ \cite[Chapter~10]{BL04}, and $6=L_0^2=2kE\cdot F+F^2\ge6E\cdot F$. Since $E\cdot F=L_0\cdot E\ge1$, we get $L_0\cdot E=1$, a contradiction. Hence the base locus of $|L_0|$ is finite of length at most $L_0^2=6$; it is stable under translation by $K(L_0)\simeq(\ZZ/3)^2$, whose orbits have nine points, so it is empty. The morphism $\varphi_{|L_0|}$ is finite since $L_0$ is ample, of degree $L_0^2=6$, and flat since $S_0$ is Cohen--Macaulay and $\PP^2$ is regular. \end{proof} \begin{lemma}\label{lem:model} Suppose that $(A',\lambda')$ satisfies (R1) and (R2), and let $D\subset B$ be a prime divisor. Then there are a finite extension $R_D$ of the local ring $\cO_{B,D}$, which is a discrete valuation ring with residue field $k_D$, and a finite flat morphism $f\colon\mathcal Z\to Y_{R_D}$ of degree six extending $f_A$ over the fraction field of $R_D$, with a line bundle $\mathcal M=f^*\cO_Y(1)$ extending $M_A$, such that the special fiber $\mathcal Z_0\coloneqq\mathcal Z\times_{R_D}k_D$ satisfies the following. \begin{enumerate} \item $\mathcal Z_0$ is geometrically reduced, $\omega_{\mathcal Z_0}\simeq\cO_{\mathcal Z_0}$, $h^i(\mathcal Z_0,\cO_{\mathcal Z_0})=\binom2i$, and $H^1(\mathcal Z_0,\mathcal M^{\otimes j})=0$ for $j\ne0$. \item The translations by $\kappa_1,\kappa_2$ and the involution $\iota_A$ extend to automorphisms of $\mathcal Z$ over the automorphisms $\mathsf D,\mathsf S,\mathsf J$ of $Y_{R_D}$. \end{enumerate} \end{lemma} \begin{proof} If $D\cap B'\ne\varnothing$, let $R_D$ be a finite extension of $\cO_{B,D}$ over which a symmetric line bundle on $A'$ inducing $\lambda'$ exists and $\mathcal T_A$ has a section. Then $\mathcal T_A$ extends to the abelian scheme $A'_{R_D}$ with a line bundle extending $M_A$, and its sections form a free $R_D$-module of rank three by the base change theorem. By (R2) and Lemma~\ref{lem:bpf}, the theta map of the special fiber is finite and flat of degree six, so the theta map over $R_D$ is finite and flat; it uses the coordinates of Lemma~\ref{lem:rigid}, which are characterized by the actions of $\kappa_1,\kappa_2,\iota_A$ and hence extend over $R_D$. Assertion (a) holds for an abelian surface $\mathcal Z_0$ by Kodaira vanishing and Serre duality, and (b) holds by construction. Suppose $D\cap B'=\varnothing$. We work on a disc $D_x\subset B$ transverse to $D$ at a general point $x$; regularity of a rational tensor along $D$, and the orders of rational functions along $D$, are detected on such discs. Let $c$, $v_x$ and a symplectic basis $(f_1,f_2,e_1,e_2)$ of $(\Lambda',\theta')$ with $e_1=v_x$ and period matrix $\Omega$ be as in (R2), and put $n\coloneqq|c|$. Let $s$ be a coordinate of $D_x$ at $x$. By (R2), $\Omega_{12}$ and $\Omega_{22}$ are holomorphic on $D_x$, and as in the proof of Lemma~\ref{lem:gradmult}, $\Omega_{11}=\frac n{2\pi\sqrt{-1}}\log s+\psi_{11}$ with $\psi_{11}$ holomorphic on $D_x$. The abelian part of the degeneration is $E_x=\CC/(3\ZZ+\Omega_{22}(x)\ZZ)$, and the gluing parameter is the class $\varsigma$ of $\Omega_{12}(x)$ in $E_x$, which is nonzero by (R2). After a finite extension, we identify $\mathcal T_A$ with $A'$ by a fixed point of $\iota_A$, so that $\iota_A$ becomes $[-1]$ and $M_A$ a symmetric line bundle inducing $\lambda'$. Since $\lambda'$ has odd degree, it is an isomorphism on points of order two, so $M_A$ is a translate by a point of order two of the line bundle whose sections are the classical theta functions below; such a translation changes the theta functions by a characteristic, which adds a common affine-linear function of $m_1$ to the orders below and does not affect the argument. After the base change $s=s'^{2}$, the three theta functions $\vartheta_a(z,\Omega)\coloneqq\sum_{m\in(0,a)+\ZZ^2}\bfe(\frac12m^t\Omega m+m^tz)$, $a\in\{0,\frac13,\frac23\}$, have expansions in $s'$ whose coefficient of index $m_1\in\ZZ$ has order $nm_1^2$ and whose elliptic factor is $\vartheta^E_a(z_2+m_1\Omega_{12})$, where $\vartheta^E_a(w)\coloneqq\sum_{m_2\in a+\ZZ}\bfe(\frac12m_2^2\Omega_{22}(x)+m_2w)$ are the three theta functions of degree three on $E_x$. Mumford's construction \cite[Theorem~5.7.1 and its proof]{Ale02} applied to the Delaunay decomposition of $\ZZ$ into the intervals $[m_1,m_1+1]$ gives a stable semiabelic model whose special fiber $\mathcal Z_0$ is obtained from $\mathbb P_x\coloneqq\PP_{E_x}(\cO\oplus\mathcal L)$, with $\mathcal L\in\Pic^0(E_x)$, by identifying its two sections by the translation by $\varsigma$ \cite[Lemma~4, Proposition~6 and Theorem~26]{HSp94}. On the chart of $[0,1]$, after subtracting the affine interpolation of the orders, the three theta functions restrict to $v_0\vartheta_a^E(z_2)+v_1\vartheta_a^E(z_2+\varsigma)$, where $(v_0:v_1)$ is the coordinate of the ruling. These three sections are independent on $\mathcal Z_0$, so they form a basis of the sections of the extended line bundle, and the theta map of $\mathcal Z_0$ maps the ruling over $z\in E_x$ onto the line through the points $\varphi^E(z)$ and $\varphi^E(z+\varsigma)$ of the plane cubic $\varphi^E(E_x)\subset\PP^2$ defined by $(\vartheta^E_a)_a$. These points are distinct since $\varsigma\ne0$, so every ruling maps isomorphically onto a line. A curve of $\mathbb P_x$ contracted by the theta map is therefore not a ruling, so it meets every ruling, and its image point $y_0$ lies on all the lines through $\varphi^E(z)$ and $\varphi^E(z+\varsigma)$. Then the projection from $y_0$ restricts to a nonconstant morphism $E_x\to\PP^1$ of degree at most three which is invariant under translation by $\varsigma$. If $\varsigma$ has infinite order, this is impossible; if $\varsigma$ has order $k\ge2$, the morphism factors through the isogeny $E_x\to E_x/\langle\varsigma\rangle$ and a morphism of degree at least two from an elliptic curve, so its degree is at least $2k\ge4$, a contradiction. Hence the theta map of $\mathcal Z_0$ is finite, and the theta map over $R_D$, which is proper with finite fibers, is finite. Since $\mathcal Z$ is Cohen--Macaulay, its singularities being of the form $xy=s'^h$ times a smooth factor, and $Y_{R_D}$ is regular, $f$ is flat of degree six. The translations by $\kappa_1,\kappa_2$ act on the three theta functions by $\mathsf D,\mathsf S$ and $\iota_A$ by $a\mapsto-a$, so (b) holds. For (a) in this case, $\mathcal Z_0$ is reduced. A logarithmic volume form on $\mathbb P_x$ with poles along the two sections has opposite residues on them and descends to a nowhere vanishing section of $\omega_{\mathcal Z_0}$. The normalization sequence $0\to\cO_{\mathcal Z_0}\to\cO_{\mathbb P_x}\to\cO_{E_x}\to0$, whose last map is the difference of the restrictions to the two sections composed with the translation by $\varsigma$, induces the zero map on $H^0$ and $H^1$, since translations act trivially on the cohomology of $\cO_{E_x}$; hence $h^i(\mathcal Z_0,\cO_{\mathcal Z_0})=1,2,1$ for $i=0,1,2$. For $j>0$, the direct image of $\mathcal M^{\otimes j}|_{\mathbb P_x}$ to $E_x$ is a sum of line bundles of positive degree, and in the twisted normalization sequence the restriction to the two sections is surjective on global sections since the two extreme monomials give independent values; hence $H^1(\mathcal Z_0,\mathcal M^{\otimes j})=0$. The case $j<0$ follows by Serre duality. \end{proof} \noindent For degenerations of abelian surfaces of type $(1,p)$ and their models, see \cite{HSp94} and \cite[\S5.7]{Ale02}. \begin{lemma}\label{lem:H1lattice} In Lemma~\ref{lem:model}, suppose that $(A',\lambda')$ also satisfies (R3). Then the image of $R^1\pi'_*\cO_{A'}$ under (R3), pulled back to $R_D$, is $H^1(\mathcal Z,\cO_{\mathcal Z})$. \end{lemma} \begin{proof} Both $H^1(\mathcal Z,\cO_{\mathcal Z})$ and the pullback of the lattice of (R3) are $R_D$-lattices in $H^1(\mathcal T_A,\cO)\otimes_K\mathrm{Frac}(R_D)$, and translations act trivially on $H^1(\cO)$, so we may replace $\mathcal T_A$ by $A'_K$. If $D\cap B'\ne\varnothing$, both lattices are the first cohomology of $\cO$ of the abelian scheme. Otherwise, we compare the lattices on transverse discs at general points of $D$, which detect their equality. Let $p$ be the structure morphism of a semistable resolution of $\mathcal Z$; resolving the singularities $xy=s'^h$ inserts chains of rational curves, which does not change $Rp_*\cO$. By \cite{Ste76}, $R^1p_*\cO$ is the graded quotient of degree zero of the logarithmic de Rham extension, which is the canonical extension of $R^1\pi'_*\CC$ with nilpotent residue, compatibly with finite base change. Hence $H^1(\mathcal Z,\cO_{\mathcal Z})$ is spanned by the images of the monodromy invariant flat sections of $R^1\pi'_*\ZZ$. By the proof of Lemma~\ref{lem:frame}, applied to the dual abelian scheme, the Lie algebra of the N\'eron model of $A'^\vee_K$ is spanned by the same images. This proves the lemma. \end{proof} \subsection{The algebra of the theta cover} Let $k$ be a field of characteristic zero, and let $f\colon Z\to Y_k$ be a finite flat morphism of degree six such that $Z$ is reduced, $\omega_Z\simeq\cO_Z$, $h^i(Z,\cO_Z)=\binom2i$ and $H^1(Z,f^*\cO(j))=0$ for $j\ne0$; by Lemma~\ref{lem:model}, this holds for the generic and special fibers of $f$. Put $\mathcal F\coloneqq f_*\cO_Z$, $\mathcal U\coloneqq H^1(Z,\cO_Z)$, $E_Y\coloneqq\Omega^1_Y\otimes\mathcal U$ and $D_Y\coloneqq K_Y\otimes\det\mathcal U$. \begin{lemma}\label{lem:Falg} There is a decomposition $\mathcal F=\cO_Y\oplus E_Y\oplus D_Y$, functorial in $(Z,f)$ and compatible with base change, such that the following hold. \begin{enumerate} \item The projection $\pr_D\colon\mathcal F\to D_Y$ generates $\mathcal Hom(\mathcal F,D_Y)$ as an $\mathcal F$-module, and $Q(v,w)\coloneqq\pr_D(vw)$ is, up to a nonzero constant, the pairing $(\alpha\otimes u,\beta\otimes u')\mapsto(\alpha\wedge\beta)\otimes(u\wedge u')$ on $E_Y$. \item The multiplication of $\mathcal F$ is determined by the cubic form $h(v,w,v')\coloneqq\pr_D(vwv')$ on $E_Y$ with values in $D_Y$. \item For $c\in k^*$, the algebras determined as in (b) by $h$ and by $ch$ are isomorphic. \end{enumerate} \end{lemma} \begin{proof} The trace splits $\mathcal F=\cO_Y\oplus\mathcal F_0$ with $\mathcal F_0\coloneqq\ker(\tr)$. Since $H^1(Y,\cO(j))=0$ for all $j$, we get $H^1(\mathcal F_0(j))=H^1(Z,f^*\cO(j))$, which is $0$ for $j\ne0$ and $\mathcal U$ for $j=0$. Let $0\to\mathcal F_0\to\mathcal G\to\mathcal U\otimes\cO_Y\to0$ be the extension whose connecting map $\mathcal U\to H^1(\mathcal F_0)=\mathcal U$ is the identity. Then $H^1(\mathcal G(j))=0$ for all $j$, so $\mathcal G$ is a direct sum of line bundles by Horrocks' criterion. From $\chi(\mathcal F(j))=\chi(Z,f^*\cO(j))=3j^2$, we get $\rk\mathcal G=7$, $c_1(\mathcal G)=-9$ and $\chi(\mathcal G)=1$; moreover $h^0(\mathcal G)=h^0(\mathcal F_0)=0$ and $h^0(\mathcal G(1))=\dim(\mathcal U\otimes H^0(\cO_Y(1)))=6$, since $h^0(\mathcal F_0(1))=h^0(Z,f^*\cO(1))-3=0$. Hence $\mathcal G\simeq\cO_Y(-1)^{\oplus6}\oplus\cO_Y(-3)$, and $\cO_Y(-1)^{\oplus6}=\mathcal U\otimes H^0(\cO_Y(1))\otimes\cO_Y(-1)\to\mathcal U\otimes\cO_Y$ is the evaluation map, with kernel $\mathcal U\otimes\Omega^1_Y$ by the Euler sequence. Since $H^1(\Omega^1_Y(3))=0$, the summand $\cO_Y(-3)$ can be chosen in the kernel of $\mathcal G\to\mathcal U\otimes\cO_Y$, so $\mathcal F_0\simeq E_Y\oplus K_Y$. The subbundle $E_Y\subset\mathcal F_0$ is the image of the evaluation map of $\mathcal U=\Hom(\Omega^1_Y,\mathcal F_0)$, hence canonical, and the quotient $\mathcal F_0/E_Y$ is $K_Y\otimes H^2(Z,\cO_Z)\simeq D_Y$, where the cup product identifies $H^2(Z,\cO_Z)$ with $\det\mathcal U$. On a special fiber as in Lemma~\ref{lem:model}, this identification holds since, for the connecting map $\partial$ of the normalization sequence, $\partial(1)\smile w=\pm\partial(w|_{E_x})\ne0$ whenever $w|_{E_x}\ne0$. By finite duality, $\mathcal Hom(\mathcal F,K_Y)\simeq f_*\omega_Z\simeq\mathcal F$ as $\mathcal F$-modules. Since $H^0(K_Y)=H^0(T_Y\otimes K_Y)=0$, we have $\Hom(\mathcal F,D_Y)=\Hom(D_Y,D_Y)$, which is one-dimensional, and the projection $\pr_D\colon\mathcal F\to\mathcal F_0/E_Y=D_Y$ corresponds to a generator of $H^0(Z,\omega_Z)$, which is nowhere vanishing; hence $\pr_D$ generates $\mathcal Hom(\mathcal F,D_Y)$, and the pairing $(a,b)\mapsto\pr_D(ab)$ on $\mathcal F$ is perfect. In the decomposition $\cO_Y\oplus D'\oplus E_Y$, where $D'$ is a complement of $\cO_Y\oplus E_Y$, its Gram matrix has the form $\left(\begin{smallmatrix}0&a&0\\a&c&x^t\\0&x&Q\end{smallmatrix}\right)$ with determinant $-a^2\det Q$, so $Q$ is nondegenerate. Since $\Hom(\mathrm{Sym}^2\Omega^1_Y,K_Y)=H^0(\mathrm{Sym}^2T_Y(-3))=0$ by the Euler sequence, $Q$ factors through $\wedge^2\Omega^1_Y\otimes\wedge^2\mathcal U=D_Y$, which proves (a). The orthogonal complement of $E_Y$ contains $\cO_Y$, and above a local generator $g$ of $D_Y$ it contains a unique $e$ with $\pr_D(e)=g$ and $\pr_D(e^2)=0$: from an orthogonal lift $e'$ subtract $\frac12\pr_D(e'^2)g^{-1}\cdot1$. This gives the decomposition $\mathcal F=\cO_Y\oplus E_Y\oplus D_Y$, which is canonical. In a local frame, write $vw=\mathsf B(v,w)\cdot1+\mathsf A(v,w)+Q(v,w)e$ for $v,w\in E_Y$, $ve=\mathsf L(v)\cdot1+\mathsf B^\sharp(v)$ and $e^2=\mathsf T\cdot1+\mathsf L^\sharp$, where $\sharp$ denotes raising an index by $Q$. Then $Q(\mathsf A(v,w),v')=h(v,w,v')$, so $\mathsf A$ is determined by $h$. For a local basis $(e_i)$ of $E_Y$, put $\mathsf A_{ij}\coloneqq\mathsf A(e_i,e_j)$, $Q_{ij}\coloneqq Q(e_i,e_j)$, $\mathsf B_{ij}\coloneqq\mathsf B(e_i,e_j)$ and $\mathsf R_{ijkl}\coloneqq Q(\mathsf A_{ij},\mathsf A_{kl})$. Applying $\pr_D$ to the two factorizations $(e_ie_j)(e_ke_l)=(e_ie_k)(e_je_l)$ gives $\mathsf B_{ij}Q_{kl}+Q_{ij}\mathsf B_{kl}-\mathsf B_{ik}Q_{jl}-Q_{ik}\mathsf B_{jl}=\mathsf R_{ikjl}-\mathsf R_{ijkl}$. Contracting with $Q^{kl}$, the left side becomes $2\mathsf B_{ij}+(\tr_Q\mathsf B)Q_{ij}$; writing $\mathsf C_{ij}$ for the contraction of the right side, we get $\mathsf B=\frac12(\mathsf C-\frac16(\tr_Q\mathsf C)Q)$. Pairing the two factorizations of $(e_ie_j)(e_ke)$ and of $(vw)e^2$ gives $Q_{ij}\mathsf L_k-Q_{ik}\mathsf L_j=\mathsf B(e_j,\mathsf A_{ik})-\mathsf B(e_k,\mathsf A_{ij})$ and $\mathsf TQ(v,w)=Q(\mathsf B^\sharp v,\mathsf B^\sharp w)-\mathsf L(\mathsf A(v,w))$, whose contractions determine $3\mathsf L_k$ and $4\mathsf T$. This proves (b). For (c), the tensors $\mathsf A,\mathsf B,\mathsf L,\mathsf T$ are homogeneous of degrees $1,2,3,4$ in $h$, so $(1,v,e)\mapsto(1,cv,c^2e)$ is an isomorphism from the algebra of $ch$ onto the algebra of $h$. \end{proof} \noindent For the equations of the degree-six cover in the smooth case, see \cite[\S\S3--4]{Dia20}. \subsection{The Hesse pencil} For binary cubics $a(X,Y)=\sum_{i=0}^3a_iX^{3-i}Y^i$ and $b(X,Y)=\sum_{i=0}^3b_iX^{3-i}Y^i$, put $[a,b]\coloneqq\sum_{i=0}^3(-1)^i\binom3i^{-1}a_ib_{3-i}$. A linear change of coordinates multiplies $[a,b]$ by the cube of its determinant. For ternary cubics $F,G$ on $B^\vee$ and a line $l\subset B^\vee$, we write $[F,G]_l\coloneqq[F|_l,G|_l]$, which is defined up to a nonzero factor. \begin{lemma}\label{lem:FG} Suppose that $(A',\lambda')$ satisfies (R1), (R2) and (R3), and let $h$ be the cubic form of Lemma~\ref{lem:Falg} for the theta map $f_A$. Then there are ternary cubics $F,G$ on $B^\vee$ such that $h=H_0\otimes F+H_1\otimes G$, where, for $b\in B'$, the binary cubics $F|_{b^\vee}$ and $G|_{b^\vee}$ are viewed as cubic forms on $\mathcal U_b=\Omega^1_{B,b}$ via (R3). \end{lemma} \begin{proof} By the Cauchy formula, $\mathrm{Sym}^3(E_Y^\vee)\otimes D_Y$ is the direct sum of $\mathrm{Sym}^3T_Y\otimes K_Y\otimes\mathrm{Sym}^3\mathcal U^\vee\otimes\det\mathcal U$ and of $T_Y\otimes\mathcal U^\vee$. The cubic $h$ is invariant under the automorphisms of Lemma~\ref{lem:model}(b), that is, under $K_0$. The invariants of $K_0$ in $H^0(T_Y)=\mathfrak{sl}_3$ vanish, since the centralizer of $K_0$ in $\PGL_3(\CC)$ is finite. By the Euler sequence, $H^0(\mathrm{Sym}^3T_Y\otimes K_Y)$ is the space of ternary cubics in the dual coordinates, and its $K_0$-invariants are spanned by the Hesse cubics $H_0$ and $H_1$ in these coordinates. Hence $h=H_0\otimes F+H_1\otimes G$ with $F,G$ sections of $\mathrm{Sym}^3\mathcal U^\vee\otimes\det\mathcal U$ over $\Spec K$. By Lemmas~\ref{lem:model}, \ref{lem:H1lattice} and~\ref{lem:Falg}, which is compatible with base change, $F$ and $G$ are regular at the generic point of every prime divisor of $B$, and by (R3) and Hartogs' theorem they are global sections of $\mathrm{Sym}^3T_B\otimes K_B$. By the Euler sequence, these are the ternary cubics on $B^\vee$, and the value at $b$ is the restriction to $b^\vee$. \end{proof} \begin{proposition}\label{prop:Hesse} In Lemma~\ref{lem:FG}, there is a projectivity of $B^\vee$ which maps $\CC F+\CC G$ onto $\CC H_0+\CC H_1$, and $F,G$ are linearly independent. \end{proposition} \begin{proof} Let $y\in Y$ and $v\in\Omega^1_{Y,y}$, and let $u_1,u_2$ be a basis of $\mathcal U_b$, $b\in B'$. The elements $m\coloneqq v\otimes u_1$ and $n\coloneqq v\otimes u_2$ span a $Q$-isotropic subspace, so $m^2=\mathsf B(m,m)+\mathsf A(m,m)$ and similarly for $n$ and $mn$. Associativity gives $\pr_D(m^2n^2)=\pr_D((mn)^2)$, that is, $Q^{-1}(h(m,m,-),h(n,n,-))=Q^{-1}(h(m,n,-),h(m,n,-))$. Write $f_{ijk}\coloneqq F(u_i,u_j,u_k)$ and $g_{ijk}\coloneqq G(u_i,u_j,u_k)$ for the polarizations of $F|_{b^\vee},G|_{b^\vee}$. Expanding with Lemma~\ref{lem:Falg}(a), the difference of the two sides is a nonzero constant times \[ \det\bigl(H_0(v,v,-),H_1(v,v,-)\bigr)\cdot\bigl(f_{111}g_{222}-3f_{112}g_{122}+3f_{122}g_{112}-f_{222}g_{111}\bigr), \] and the second factor is $[F,G]_{b^\vee}$. The first factor is the Jacobian of the restrictions of $H_0,H_1$ to the line $y^\vee$; it is nonzero for general $(y,v)$, since $H_0$ and $H_1$ restrict to linearly independent binary cubics on a line which is not contained in a member of the Hesse pencil. Hence $[F,G]_l=0$ for every line $l\subset B^\vee$. Suppose that $F$ and $G$ are linearly dependent, say $h=(c_1H_0+c_2H_1)\otimes F$ with $(c_1,c_2)\ne(0,0)$ and $F\ne0$. The orbits of $\GL(\mathcal U_b)$ on the nonzero binary cubics up to scalars are determined by the multiplicities of the roots, and these multiplicities are the same for $F|_{b^\vee}$ for all $b$ in a dense open subset of $B'$. By Lemma~\ref{lem:Falg}(b) and~(c), the theta covers, and hence their Albanese varieties $A'_b$, would be isomorphic for all $b$ in this subset, contradicting the rank of the period map in (R1). Suppose that every member of $\CC F+\CC G$ is singular. A pencil spanned by two triple lines contains the sum of their cubes, which is a product of three distinct linear forms, so the pencil contains a member $F'$ which is not a triple line. By Appendix~\ref{app:hesse}, for every singular plane cubic $F'$ which is not a triple line, the space of cubics $G'$ with $[F',G']_l=0$ for all lines $l$ is the one listed in Table~\ref{tab:hesse}, and if $\CC F'+\CC G'$ contains no smooth cubic, then $F'$ and $G'$ are singular at a common point. Hence there is $p\in B^\vee$ at which $F$ and $G$ are singular. Let $\ell_p\coloneqq p^\vee\subset B$, a prime divisor, and let $u\in\mathcal U$ be the direction corresponding to $p$ at the generic point of $\ell_p$. Then $F|_{b^\vee}$ and $G|_{b^\vee}$ have a double root at $u$, so $F(u,u,-)=G(u,u,-)=0$. Specialize Lemma~\ref{lem:Falg} to the special fiber of Lemma~\ref{lem:model} at $\ell_p$, and let $v,w\in\Omega^1_{Y,y}\otimes u$ for a general $y\in Y$. Then $\mathsf A(v,w)=0$ and $Q(v,w)=0$, so $vw=\mathsf B(v,w)\cdot1$, and associativity gives $\mathsf B(v,v)w=\mathsf B(v,w)v$. Choosing $w$ independent of $v$, we get $v^2=0$ for every such $v$, which contradicts the reducedness of the general fiber of $f$ over $y$, by Lemma~\ref{lem:model}(a). Hence $\CC F+\CC G$ contains a smooth cubic, which is projectively equivalent to $H_0+t_0H_1$ with $t_0^3+27\ne0$ \cite[Lemma~1]{AD09}. By Appendix~\ref{app:hesse}, the cubics $G'$ with $[H_0+t_0H_1,G']_l=0$ for all lines $l$ form the space $\CC H_0+\CC H_1$. This proves the proposition. \end{proof} \begin{definition}\label{def:par} Let $\mathbb P_{\mathrm{H}}\coloneqq\PP(\Hom(\CC^2,\CC H_0+\CC H_1))\simeq\PP^3$ be the space of ordered pairs $(F,G)=(aH_0+bH_1,cH_0+dH_1)$ up to a common scalar, and $\mathbb P_{\mathrm{H}}^\circ\coloneqq\{ad-bc\ne0\}$. By Proposition~\ref{prop:Hesse}, a family as in Lemma~\ref{lem:FG} defines a point of $\mathbb P_{\mathrm{H}}^\circ$, well defined up to the action of the finite stabilizer in $\PGL_3(\CC)$ of the Hesse pencil, which permutes its nine base points, and of the finitely many choices of the marking of $K(\lambda')$. We call it the \emph{Hesse parameter} of $(A',\lambda')$. \end{definition} By Lemma~\ref{lem:Falg}(b) and~(c), the Hesse parameter determines the generic theta cover $f_A$ up to isomorphism over $K$, and hence $A'_K$, which is the Albanese variety of $\mathcal T_A$. \subsection{Linear systems on abelian surfaces} Let $T$ be an abelian surface with an ample line bundle $H$ of type $(1,3)$ such that $T$ contains no elliptic curve $E$ with $H\cdot E=1$. By Lemma~\ref{lem:bpf}, $|H|$ is base point free. For a smooth member $C_b\in|H|$, the inclusion induces a homomorphism $e_b\colon J(C_b)\to T$, which is surjective with connected kernel $P_b\coloneqq\ker e_b$, since $H_1(C_b,\ZZ)\to H_1(T,\ZZ)$ is surjective by the Lefschetz theorem. \begin{lemma}\label{lem:Pfam} Suppose that $(T,H)$ is very general. Then the family $(P_b)_b$ over the smooth locus $B'\subset|H|=B$, with the restriction $\lambda_P$ of the principal polarizations of the $J(C_b)$, satisfies (R1), (R2) and (R3). \end{lemma} \begin{proof} Fixing the support and the Albanese coordinate on the moduli space of stable sheaves on $T$ with Mukai vector $(0,H,-3)$ gives a Lagrangian fibration $\pi_H\colon X_H\to|H|$ of a generalized Kummer fourfold $X_H$, whose smooth fibers are torsors under the $P_b$ \cite[Theorems~0.1 and~0.2]{Yos01}, \cite{Deb99}. We have $b_2(X_H)=7$, and since $(T,H)$ is very general, $\NS(X_H)$ has rank two and $\End_{\mathrm{HS}}(T(X_H))=\End_{\mathrm{HS}}(H^2(T,\QQ)_{\mathrm{tr}})=\QQ$. Hence $\pi_H$ satisfies the conclusion of Lemma~\ref{lem:deform}(a), and the results of Sections~\ref{sec:def}--\ref{sec:mod}, which do not use Lemma~\ref{lem:deform}(b), apply to $\pi_H$. The restriction of the principal polarization of $J(C_b)$ to the image of $T^\vee$ is the form $(x,y)\mapsto\int_Txy\,c_1(H)$ on $H^1(T,\ZZ)$, of type $(1,3)$, so the restriction of $\lambda_P$ to the complementary abelian subvariety $P_b$ is primitive of type $(1,3)$ \cite[Chapter~12]{BL04}. It is monodromy invariant, so it is the class $\theta$ of Definition~\ref{def:theta} for $\pi_H$ by Lemma~\ref{lem:inv}, and the polarization type of $\pi_H$ is $3$. Lemma~\ref{lem:Asat} for $\pi_H$ proves the lemma. \end{proof} \begin{lemma}\label{lem:dominance} On a finite cover of a dense open subset of the moduli space of polarized abelian surfaces $(T,H)$ of type $(1,3)$ with $\NS(T)=\ZZ H$, the Hesse parameters of the families $(P_b)_b$ define a dominant morphism to $\mathbb P_{\mathrm{H}}^\circ$. \end{lemma} \begin{proof} By Lemma~\ref{lem:Pfam}, for very general $(T,H)$ the family $(P_b)_b$ satisfies (R1), (R2) and (R3), so Lemmas~\ref{lem:thetator}--\ref{lem:FG} and Proposition~\ref{prop:Hesse} apply to it. The group $K(H)$ acts on $T$ by translations and on $B=|H|$ through the Schr\"odinger representation, and the family $(P_b)_b$ is equivariant; translations act trivially on $H^0(T,K_T)$ and on the rigid plane $Y$ of the family. Hence, in Heisenberg coordinates on $B^\vee$, the cubics $F,G$ of Lemma~\ref{lem:FG} are invariant under $K_0$, so they lie in $\CC H_0+\CC H_1$, and the Hesse parameter is a point $(F,G)\in\mathbb P^\circ_{\mathrm H}$, well defined after the finitely many choices of Definition~\ref{def:par}. All constructions of Lemmas~\ref{lem:thetator}--\ref{lem:Falg} are relative algebraic constructions, so we obtain an algebraic morphism from a finite cover of a dense open subset of the three-dimensional moduli space to the three-dimensional space $\mathbb P_{\mathrm H}^\circ$. It suffices to show that its very general fibers are countable. Let $\mathcal C\to B$ be the universal curve, which is a $\PP^1$-bundle over $T$ since $H$ is globally generated, hence smooth. Since $\NS(T)=\ZZ H$, every member of $|H|$ is integral, and $V_C\coloneqq R^1q_*\QQ$ on $B'$ is the direct sum of the constant local system $H^1(T,\QQ)$ and the local system $V_P$ of the $H^1(P_b,\QQ)$. The stalks of $Rq_*\QQ_{\mathcal C}[3]$ are concentrated in degrees $-3,-2,-1$, and in degree $-1$ they are one-dimensional; by the decomposition theorem \cite{Sai88} and self-duality, a summand supported on a proper subvariety would have a nonzero stalk in a degree at least $0$, or would make the stalk in degree $-1$ at a general point of a curve at least two-dimensional. Hence $Rq_*\QQ_{\mathcal C}[3]\simeq\QQ_B[3]\oplus\IC_B(V_C)\oplus\QQ_B[1](-1)$, and taking hypercohomology in degree $-1$, $H^2(\mathcal C,\QQ)$ is the sum of two Tate classes and $IH^1(B,V_C)=IH^1(B,V_P)$. Since $H^2(\mathcal C,\QQ)=H^2(T,\QQ)\oplus\QQ(-1)$ has exactly two independent Hodge classes, $IH^1(B,V_P)\simeq H^2(T,\QQ)_{\mathrm{tr}}$, a Hodge structure of dimension five. The Hesse parameter determines the family $(P_b)_b$ on a dense open subset, hence $V_P$ and $IH^1(B,V_P)$. A five-dimensional rational subspace of $\wedge^2H^1(T,\QQ)\simeq\wedge^2\QQ^4$ together with its line of type $(2,0)$ determines $H^{1,0}(T)=\{x:x\wedge\sigma=0\}$ for a generator $\sigma$ of that line, and there are only countably many such subspaces, lattices and polarizations. Hence a fiber contains only countably many $(T,H)$ with $\NS(T)=\ZZ H$. If a very general fiber had positive dimension, it would contain uncountably many points outside the countably many Noether--Lefschetz loci, which is impossible. \end{proof} \begin{theorem}\label{thm:rec} Suppose that $(A',\lambda')$ satisfies (R1), (R2) and (R3). Then there are an abelian surface $T$ with a base point free ample line bundle $H$ of type $(1,3)$ and an isomorphism $B\simeq|H|$ such that, for the generic member $C_K\subset T_K$ of $|H|$, the abelian surface $A'_K$ is isomorphic to the kernel of $\Pic^0_{C_K/K}\to T_K$. \end{theorem} \begin{proof} Let $a\in\mathbb P_{\mathrm H}^\circ$ be the Hesse parameter of $(A',\lambda')$ (Definition~\ref{def:par}). By Lemma~\ref{lem:dominance}, there is an irreducible curve $\Sigma\subset\mathbb P^\circ_{\mathrm H}$ through $a$ whose generic point lies in the image of the morphism of Lemma~\ref{lem:dominance}. Let $\tilde\Sigma\to\Sigma$ be the normalization of a finite cover over which the generic point lifts to a marked polarized abelian surface $(T_\Sigma,H_\Sigma)$, let $\tilde a\in\tilde\Sigma$ lie over $a$, and let $\mathcal O_{\tilde a}$ be its local ring, with residue field $\CC$. After further finite extensions of $\mathcal O_{\tilde a}$, made before adjoining the coordinates of $B$, let $\mathcal R$ be the local ring of $B_{\mathcal O_{\tilde a}}$ at the generic point of its special fiber, a discrete valuation ring with residue field $K$. Over the fraction field of $\mathcal R$, Lemmas~\ref{lem:thetator}--\ref{lem:Falg} for the family $(P_b)_b$ of $(T_\Sigma,H_\Sigma)$ give the cubic of the Hesse parameter of $\tilde\Sigma$; dividing its four coordinates by one which does not vanish at $a$, we obtain a regular cubic over $\mathcal R$, and the formulas of Lemma~\ref{lem:Falg} define a finite locally free algebra of rank six over $Y_{\mathcal R}$. By Lemma~\ref{lem:Falg}(b) and~(c), its generic fiber is isomorphic to the theta cover of the family $(P_b)_b$, and its special fiber is isomorphic to the theta cover of $A'_K$, which is smooth. Hence the cover is smooth and proper over $\mathcal R$, its relative $\Pic^0$ is an abelian scheme, and the generic kernel $P_{\mathcal R}\coloneqq\ker(\Pic^0_{C}\to T_\Sigma)$ has good reduction with special fiber isomorphic to $A'_K$. We show that $T_\Sigma$ has good reduction over $\mathcal R$. Let $r_T$ be the toric rank of a semistable model of $T_\Sigma$ over $\mathcal R$. The inclusions of $P_{\mathcal R}$ and of $T_\Sigma^\vee$ into the generic Jacobian induce an isogeny from their product, which, together with a complementary isogeny, extends to the identity components of the N\'eron models. Hence the generic Jacobian has toric rank $r_T$, and the abelian quotient of its reduction contains the reduction of $P_{\mathcal R}$, which is a geometrically simple abelian surface, up to isogeny. Suppose $r_T=1$. By \cite[Lemma~4, Proposition~6 and Theorem~26]{HSp94}, the special fiber of the stable model of $(T_\Sigma,H_\Sigma)$ is a cycle of $n\in\{1,3\}$ ruled surfaces over an elliptic curve $E$, and the polarization has degree one on the rulings and $3/n$ on each seam. By the theta expansion in the proof of Lemma~\ref{lem:model}, the limit of the generic member $C$ meets each seam transversally at simple zeros; on a ruled component, its equation is $v_0a(z)+v_1b(z)=0$, which defines a section isomorphic to $E$ plus one ruling for each common zero of $a$ and $b$, meeting the section transversally. Hence the limit curve is reduced and nodal, the abelian part of its generalized Jacobian is isogenous to $E^n$, and its toric rank is $4-n$. Since the toric rank is $r_T=1$, we get $n=3$, and the abelian part $E^3$ has no geometrically simple factor of dimension two, a contradiction. Suppose $r_T=2$. Choose a basis of the primitive isotropic vanishing lattice and lifts of a complementary basis pairing to $D_3=\diag(1,3)$. After a finite extension, the period matrix is $\frac{\log\varpi}{2\pi\sqrt{-1}}\mathsf Q+\tau_0(\varpi)$ with $\mathsf Q$ positive definite and $\tau_0$ holomorphic, where $\varpi$ is a uniformizer. Any symmetric representative of the polarization is a translate of the standard one by a point of order two, since the polarization is an isomorphism on points of order two; hence the three coefficients of the generic member are units, and the lower convex hull of the orders defines the Delaunay subdivision of $D_3^{-1}\ZZ^2$ for $\mathsf Q$. Every Delaunay cell is a unimodular triangle or a primitive parallelogram: among five lattice points, two are congruent modulo twice the lattice, and their midpoint would lie in the interior of the circumscribed ellipse. Hence the limit of $C$ is a line on a projective plane or a curve of bidegree $(1,1)$ on a smooth quadric on each component, it misses the torus fixed points, and it meets each seam transversally. Hence the limit of $C$ is a reduced nodal curve whose components are rational, and its generalized Jacobian has trivial abelian part, a contradiction. Hence $r_T=0$, and $(T_\Sigma,H_\Sigma)$ extends to a polarized abelian surface $(T,H)$ over $\CC$, with a symmetric representative and a marking of $K(H)$ extended after an \'etale extension of $\mathcal O_{\tilde a}$. The sections of the extension of $H$ form a free module of rank three, the marked translations and the inversion act by $\mathsf D,\mathsf S,\mathsf J$ up to scalars, and the fixed plane $B$ specializes to the complete linear system $|H|$. If $|H|$ had a fixed component, then $H=3E+F$ with elliptic curves $E,F$ and $E\cdot F=1$ by the proof of Lemma~\ref{lem:bpf}, the addition map $E\times F\to T$ would be an isomorphism, and the generic member of $|H|$ would be the union of three translates of $E$ and one of $F$, a tree of elliptic curves; its Jacobian would be $E^3\times F$, and the kernel of the map to $T$ would be isogenous to $E^2$, contradicting the simplicity of $A'_{\bar K}$. Hence $|H|$ is base point free by Lemma~\ref{lem:bpf}, and its generic member $C_K$ is smooth and geometrically integral. The relative Jacobian of the family of generic members over $\mathcal R$ is an abelian scheme, the kernel of its map to $T$ is an abelian scheme by the Lefschetz theorem, and the generic isomorphism given by the theta algebras extends to an isomorphism of abelian schemes over $\mathcal R$ by the N\'eron mapping property. Its specialization is the asserted isomorphism over $K$. \end{proof} \noindent For the rank-one boundary of the moduli space of abelian surfaces of type $(1,p)$, see \cite[Theorem~26]{HSp94}; for stable semiabelic models, see \cite[\S5.7]{Ale02}. \section{The generic fiber as a moduli space of twisted sheaves}\label{sec:torsor} In this section, we identify a torsor under the Jacobian of the generic member of a linear system on a K3 surface, or under the connected kernel of its map to an abelian surface, with a component of a moduli space of twisted sheaves, and we deduce the birational type of a Lagrangian fibration with this generic fiber (Theorems~\ref{thm:realizeK3} and~\ref{thm:realizeAb}). \begin{notation}\label{not:ts} Let $T$ be a smooth projective surface with an ample globally generated line bundle $H$, such that one of the following holds. \begin{enumerate} \item[(K)] $T$ is a K3 surface with $\Pic(T)=\ZZ H$ and $H^2=2$. \item[(Ab)] $T$ is an abelian surface, $H$ has type $(1,3)$, and $H\cdot E\ge2$ for every elliptic curve $E\subset T$. \end{enumerate} In this section, we identify $B$ with $|H|\simeq\PP^2$, so that $K=\CC(|H|)$, let $\mathcal C\subset T\times B$ be the universal curve, with projections $p\colon\mathcal C\to T$ and $q\colon\mathcal C\to B$, and let $C\coloneqq\mathcal C_K$ be the generic member and $J\coloneqq\Pic^0_{C/K}$. Since $H$ is globally generated, $p$ is a $\PP^1$-bundle, so $\mathcal C$ is smooth; $q$ is flat, and $C$ is smooth and geometrically integral by Bertini's theorem. In case (Ab), the inclusion $C\subset T_K$ induces a surjection $e\colon J\to T_K$ with connected kernel, since $H_1(C_b,\ZZ)\to H_1(T,\ZZ)$ is surjective for smooth $C_b\in|H|$ by the Lefschetz theorem; we put $P\coloneqq\ker e$. In case (K), we put $P\coloneqq J$. An elliptic curve in $T$ is a smooth connected curve of genus one in $T$; in case (Ab), every elliptic curve in $T$ is a translate of a unique elliptic curve containing $0$. \end{notation} \subsection{Members of the linear system} \begin{lemma}\label{lem:reduced} The following hold. \begin{enumerate} \item Every member of $|H|$ is reduced. \item In case (K), every member of $|H|$ is integral. \item In case (Ab), every reducible member of $|H|$ contains an elliptic curve $E$ with $H\cdot E\in\{2,3\}$. \item In case (Ab), only finitely many members of $|H|$ contain an elliptic curve $E$ with $H\cdot E=3$. \end{enumerate} \end{lemma} \begin{proof} In case (K), every effective divisor is linearly equivalent to a positive multiple of $H$, which proves the assertions. Suppose (Ab); effective divisors on $T$ are nef. If a member contains $2D$ with $D$ irreducible, then either $D^2>0$, so $D^2\ge2$ and $6=H^2\ge(2D)^2\ge8$, or $D^2=0$, so $D$ is an elliptic curve and $0\le(H-2D)^2=6-4H\cdot D\le-2$; both are impossible. If a member had two components $D_1,D_2$ with $D_i^2>0$, then $D_1\cdot D_2\ge2$ by the Hodge index theorem and $6=H^2\ge(D_1+D_2)^2\ge8$, a contradiction. Hence a reducible member contains an elliptic curve $E_s$, a translate of an elliptic curve $E\subset T$, and $0\le(H-E)^2=6-2H\cdot E$ gives $H\cdot E\in\{2,3\}$. Suppose $H\cdot E=3$. Then $(H-E_s)^2=0$, so the residual divisor is algebraically equivalent to $mF$ for an elliptic curve $F$ and $m\ge1$, with $m\,E\cdot F=(H-E)\cdot E=3$. If $m=3$, then $H\cdot F=E\cdot F=1$, contrary to (Ab); hence the member is $E_s+F_t$ with $E\cdot F=3$. For fixed $E,F$, the classes of $\cO(E_s)$ and $\cO(F_t)$ run over cosets of two distinct elliptic curves in $\Pic^0(T)$, whose sum map is an isogeny, so only finitely many pairs $(s,t)$ satisfy $\cO(E_s+F_t)\simeq H$. Finally, the conditions $E^2=0$ and $H\cdot E\le3$ bound the projection of $[E]$ to the negative definite space $H^\perp\subset\NS(T)_\RR$, so there are finitely many such classes, and distinct elliptic curves through $0$ have distinct classes. \end{proof} \begin{lemma}\label{lem:Gamma} Suppose (Ab). If there is no elliptic curve $E\subset T$ with $H\cdot E=2$, then the reducible members of $|H|$ form a finite set. Otherwise, they form a smooth plane cubic $\Gamma\subset B$ up to finitely many members, and one of the following holds. \begin{enumerate} \item There is exactly one elliptic curve $E\subset T$ with $0\in E$ and $H\cdot E=2$, and the members over $\Gamma$ are $C_s\coloneqq E_s+G_s$, $s\in T/E$, where $E_s$ is the fiber over $s$ of $T\to T/E$ and $G_s$ is a smooth curve of genus two. \item $T\simeq\{(x_1,x_2,x_3)\in E_0^3:x_1+x_2+x_3=0\}$ for an elliptic curve $E_0$, $H$ is the restriction of $\bigotimes_i\mathrm{pr}_i^*\cO_{E_0}(0)$, and the members over $\Gamma$ are $C_s\coloneqq\sum_{i=1}^3\{x_i=s\}$, $s\in E_0$. \end{enumerate} In both cases, $s\mapsto C_s$ is an isomorphism from the parameter curve onto $\Gamma$. \end{lemma} \begin{proof} By Lemma~\ref{lem:reduced}, it suffices to consider members containing a translate $E_s$, $s\in T/E$, of an elliptic curve $E\ni0$ with $H\cdot E=2$. Then $L_s\coloneqq H\otimes\cO_T(-E_s)$ satisfies $L_s^2=2$ and $H\cdot L_s=4$, so $L_s$ is ample and $h^0(T,L_s)=1$; let $G_s$ be the unique member of $|L_s|$. For a line bundle $L$ on $T$, put $\varphi_L\colon T\to T^\vee$, $x\mapsto t_x^*L\otimes L^{-1}$. Since $\varphi_{L_0}$ is an isomorphism and $\ker\varphi_{\cO_T(E)}=E$, there is a unique homomorphism $f\colon T/E\to T$ with $\varphi_{L_0}(f(s))=L_s\otimes L_0^{-1}$, and $f$ is an isomorphism onto an elliptic curve $F\ni0$; then $G_s=G_0-f(s)$. The alternating form $c_1(L_0)$ on $H_1(T,\ZZ)$ is unimodular, and $H_1(F,\ZZ)$ is the orthogonal complement of $H_1(E,\ZZ)$, since $\varphi_{\cO_T(E)}(T)$ is the identity component of $\ker(T^\vee\to E^\vee)$. Hence the discriminant groups $(\ZZ/(L_0\cdot E))^2$ and $(\ZZ/(L_0\cdot F))^2$ of these primitive sublattices are isomorphic, and $L_0\cdot F=L_0\cdot E=2$. Suppose that $E$ is the only elliptic curve with $0\in E$ and $H\cdot E=2$. If $G_s$ were reducible, then $G_s=E'+E''$ with elliptic curves $E',E''$ and $E'\cdot E''=1$, since $G_s^2=2$ and all components of $G_s$ are nef; if $E'$ were a translate of $E$, then $E\cdot G_s=E'\cdot E''=1\ne2=E\cdot(H-E)$, and otherwise $E\cdot E'\ge1$, $E\cdot E''\ge1$ and $E\cdot G_s=2$ give $E\cdot E'=1$ and $H\cdot E'=E\cdot E'+G_s\cdot E'=2$, contrary to uniqueness. If $G_s$ were singular and integral, its normalization would have genus at most one, and its image would be an elliptic curve. Hence $G_s$ is smooth of genus two. The map $s\mapsto C_s$ is injective, since $E_s$ is the unique elliptic component of $C_s$. For a general point $x\in T$, we have $x\in C_s$ if and only if $x\in E_s$ or $f(s)\in(G_0-x)\cap F$, which gives $1+L_0\cdot F=3$ values of $s$. Since the members through $x$ form a line in $B$, and these lines are general since $T\to B^\vee$ is surjective, the image of $s\mapsto C_s$ is a plane cubic of geometric genus one, hence smooth, and $s\mapsto C_s$ is an isomorphism onto it. This is (a). If $E_1\ne E_2$ are elliptic curves with $0\in E_i$ and $H\cdot E_i=2$, put $a\coloneqq E_1\cdot E_2>0$. The Gram determinant of $(H,E_1,E_2)$ is $2a(4-3a)\ge0$ by the Hodge index theorem, so $a=1$ and $T=E_1\times E_2$. The matrix of $H$ with respect to the product principal polarization has diagonal entries $2,2$ and an off-diagonal homomorphism of degree $4-H^2/2=1$; identifying $E_1$ and $E_2$ with $E_0$ by it, the form in the first two coordinates is $\left(\begin{smallmatrix}2&1\\1&2\end{smallmatrix}\right)$, which gives the description of (b). On an elliptic curve of $H$-degree two, the three coordinate degrees add up to two and exactly two coordinates are nonconstant, so the three elliptic curves of degree two are the coordinate kernels. The morphism $T\to|3\cdot0|\simeq\PP^2$ sending $(x_i)$ to the divisor $\sum_i x_i$ has degree six, and since $h^0(H)=3$, the pullbacks of lines form $|H|$. The divisors through $s\in E_0$ form a line whose pullback is $C_s$, and $s\mapsto C_s$ is the embedding of $E_0$ in the dual plane given by $|3\cdot0|$. Every member containing an elliptic curve of $H$-degree two is of the form $C_s$, since the residual divisor defines a principal polarization and has a unique member. This is (b). \end{proof} \subsection{Brauer classes} Let $Z_K$ be a $P$-torsor over $K$ which is trivial over $K_D^{\mathrm{sh}}\coloneqq\mathrm{Frac}(\cO_{B,D}^{\mathrm{sh}})$ for every prime divisor $D\subset B$. Put $\tilde Z_K\coloneqq Z_K\times^PJ$ and $z\coloneqq[\tilde Z_K]\in H^1(K,J)$. \begin{lemma}\label{lem:gamma} The following hold. \begin{enumerate} \item The image of $z$ in $H^1(K,\Pic(C_{\bar K}))$ is the image of a class $\gamma\in\Br(C)$. \item Let $n\ge1$ with $n\gamma=0$, let $D\subset B$ be a prime divisor, and let $\Upsilon\subset\mathcal C$ be a prime divisor over $D$ whose generic fiber over $D$ is geometrically integral of multiplicity one. Then the residue $\partial_\Upsilon\gamma\in H^1(\CC(\Upsilon),\ZZ/n)$ is the restriction of a unique class $\chi_{D,\Upsilon}\in H^1(\CC(D),\ZZ/n)$. \end{enumerate} \end{lemma} \begin{proof} By Tsen's theorem, $\Br(C_{\bar K})=0$, and $H^3(K,\bar K^*)=0$ since $K$ has cohomological dimension two. The Hochschild--Serre spectral sequence gives an exact sequence $\Br(K)\to\Br(C)\to H^1(K,\Pic(C_{\bar K}))\to0$, which proves (a). For (b), $\Br(K_D^{\mathrm{sh}})=0$, since $K_D^{\mathrm{sh}}$ is the fraction field of a strictly henselian discrete valuation ring with residue field of characteristic zero, and $z$ vanishes over it, so $\gamma|_{C_{K_D^{\mathrm{sh}}}}=0$ by the same exact sequence. The valuation of $\Upsilon$ extends to $C_{K_D^{\mathrm{sh}}}$ with ramification index one and residue field $\CC(\Upsilon)\overline{\CC(D)}$, since the generic fiber of $\Upsilon$ is geometrically integral. By the functoriality of residues, $\partial_\Upsilon\gamma$ lies in the kernel of $H^1(\CC(\Upsilon),\ZZ/n)\to H^1(\CC(\Upsilon)\overline{\CC(D)},\ZZ/n)$, which is the image of $H^1(\CC(D),\ZZ/n)$ by the inflation--restriction sequence; this image map is injective since $\CC(\Upsilon)/\CC(D)$ is regular. \end{proof} \noindent For residues and their functoriality, see \cite[\S\S1.4 and~2.3]{CTS21} and \cite[\S4]{Ros96}. Fix $\gamma$ and $n$ as in Lemma~\ref{lem:gamma}. For every prime divisor $D\subset B$, every irreducible component of $q^{-1}(D)$ dominates $D$, has multiplicity one in $q^*D$, and has a geometrically integral generic fiber over $D$, by Lemmas~\ref{lem:reduced} and~\ref{lem:Gamma}. In case (a) of Lemma~\ref{lem:Gamma}, let $\mathrm{pr}_E\colon T\to T/E$ be the quotient morphism and put $\Upsilon_E\coloneqq\{(x,C_{\mathrm{pr}_E(x)}):x\in T\}$; in case (b), put $\Upsilon_i\coloneqq\{(x,C_{x_i}):x\in T\}$ for $i\in\{1,2,3\}$ and $\Upsilon_E\coloneqq\Upsilon_2\cup\Upsilon_3$; if $\Gamma$ does not exist, put $\Upsilon_E\coloneqq\varnothing$. Every component of $\Upsilon_E$ is the image of a section of $p$. Put $\mathcal C^\flat\coloneqq\mathcal C\setminus\Upsilon_E$. Then $q|_{\mathcal C^\flat}$ is flat, $q^{-1}(D)\cap\mathcal C^\flat$ is irreducible for every prime divisor $D\subset B$, and $q^{-1}(b)\cap\mathcal C^\flat$ is a nonempty open subset of the reduced curve $C_b$ for every closed point $b\in B$. For a prime divisor $D\subset B$, put $\chi_D\coloneqq\chi_{D,\Upsilon}$ with $\Upsilon\coloneqq\overline{q^{-1}(D)\cap\mathcal C^\flat}$. \begin{lemma}\label{lem:beta} There is $\beta\in\Br(K)[n]$ such that $\gamma-q^*\beta$ is unramified on $\mathcal C$. \end{lemma} \begin{proof} We use the Gersten complexes for $\mu_n$-cohomology with residue maps $\partial$, which commute with flat pullback \cite[\S4]{Ros96}. Since $\gamma$ extends to $\Br(q^{-1}(U))$ for a dense open subset $U\subset B$, we have $\chi_D=0$ for $D\cap U\ne\emptyset$, so the chain $\chi\coloneqq(\chi_D)_D$ has finite support. Since $q^*\chi=\partial\gamma$ on $\mathcal C^\flat$, we get $q^*(\partial\chi)=\partial\partial\gamma=0$ on $\mathcal C^\flat$. In codimension two, $q^*$ maps the generator at a closed point $b\in B$ to the cycle of $q^{-1}(b)\cap\mathcal C^\flat$, which has a coefficient one, and these cycles have disjoint supports; hence $\partial\chi=0$. The class of $\chi$ lies in $H^1_{\mathrm{Zar}}(B,\mathcal H^2(\mu_n))$, which is a subquotient of $H^3_{\mathrm{et}}(B,\mu_n)=0$ by the coniveau spectral sequence \cite{BO74}, so $\chi=\partial\beta$ for some $\beta\in H^2(K,\mu_n)$, whose image in $\Br(K)[n]$ we also denote by $\beta$. Put $\gamma'\coloneqq\gamma-q^*\beta$. By construction, $\partial_\Upsilon\gamma'=0$ for every prime divisor $\Upsilon\not\subset\Upsilon_E$ of $\mathcal C$. We identify the function field of every component of $\Upsilon_E$ with $\CC(T)$ via $p$. By Faddeev reciprocity on the generic fiber $\PP^1_{\CC(T)}$ of $p$, the sum of the residues of $\gamma'$ along the components of $\Upsilon_E$ vanishes in $H^1(\CC(T),\ZZ/n)$. In case (a), $\Upsilon_E$ is irreducible, so $\gamma'$ is unramified along $\Upsilon_E$. In case (b), by Lemma~\ref{lem:gamma}(b) applied to $\Upsilon=\Upsilon_i$ for $i\in\{1,2,3\}$, where $\Upsilon_1=\overline{q^{-1}(\Gamma)\cap\mathcal C^\flat}$, we have $\partial_{\Upsilon_i}\gamma'=f_i^*\eta_i$ for $i\in\{2,3\}$, where $f_i(x)\coloneqq x_i$, $\eta_i\coloneqq\chi_{\Gamma,\Upsilon_i}-\chi_{\Gamma,\Upsilon_1}\in H^1(\CC(E_0),\ZZ/n)$, and $\CC(\Gamma)=\CC(E_0)$ by Lemma~\ref{lem:Gamma}. Since $(f_2,f_3)\colon T\to E_0\times E_0$ is an isomorphism and $f_2^*\eta_2=-f_3^*\eta_3$, the ramification divisors of the two sides lie in disjoint sets of prime divisors, so $\eta_2$ and $\eta_3$ are unramified, and then $f_2^*\eta_2$ and $f_3^*\eta_3$ lie in the two direct summands of $H^1(E_0\times E_0,\ZZ/n)$, which injects into $H^1(\CC(T),\ZZ/n)$; hence both vanish. \end{proof} \noindent For Faddeev reciprocity, see \cite[\S1.5]{CTS21}. \begin{proposition}\label{prop:twisted} There is $\alpha\in\Br(T)$ such that $\tilde Z_K$ is isomorphic, as a $J$-torsor, to a component of the Picard space of $\alpha|_C$-twisted line bundles on $C$. \end{proposition} \begin{proof} Let $\beta$ be as in Lemma~\ref{lem:beta}. By purity \cite[\S3.7]{CTS21}, $\gamma-q^*\beta$ extends to $\Br(\mathcal C)$, which is $p^*\Br(T)$ by the projective bundle formula; let $\alpha\in\Br(T)$ with $p^*\alpha=\gamma-q^*\beta$. A neutralization of the $\alpha|_C$-gerbe over $C_{\bar K}$ identifies twisted line bundles with line bundles, and the differences between the Galois conjugates of a neutralization form a cocycle of line bundles representing the image of $\alpha|_C$ in $H^1(K,\Pic(C_{\bar K}))$, which is the image of $\gamma$ and hence of $z$. The degrees of this cocycle define a continuous homomorphism $\Gal(\bar K/K)\to\ZZ$, which vanishes, so each degree component of the twisted Picard space descends to a $J$-torsor over $K$, and consecutive components differ by $[\Pic^1_{C/K}]$ in $H^1(K,J)$. By the exact sequence $\ZZ\to H^1(K,J)\to H^1(K,\Pic(C_{\bar K}))$, whose first map is $1\mapsto[\Pic^1_{C/K}]$, the classes of these components form the full preimage of the image of $z$, which contains $z$. \end{proof} \subsection{Moduli spaces of twisted sheaves} Fix $\alpha$ and the component of Proposition~\ref{prop:twisted}. Since $H^3(T,\ZZ)$ is torsion free, $\alpha$ has a lift $b_\alpha\in H^2(T,\QQ)$, unique up to $H^2(T,\ZZ)+\NS(T)_\QQ$, and we use the twisted Mukai lattice $\tilde H(T,b_\alpha,\ZZ)$ and the twisted Mukai vector $v^{b_\alpha}$ with values in $H^*(T,\ZZ)$ of \cite[\S4.1]{DM25}. The pushforward to $T$ of a twisted line bundle in the chosen component on a smooth member $C_b$ has twisted Mukai vector $v=(0,H,k)$ with $k\in\ZZ$ and $v^2=H^2$; the vector $v$ is locally constant in families, and tensoring with $\cO_{C_b}(x)$ for $x\in C_b$ replaces $k$ by $k+1$, so $k$ determines the component. Since $H$ is primitive, $v$ is primitive. \begin{lemma}\label{lem:stab} There is a $v$-generic stability condition $\sigma_{\mathrm{st}}$ in the distinguished component of the stability manifold of the twisted surface $(T,\alpha)$ such that the moduli space $M_\alpha\coloneqq M_{\sigma_{\mathrm{st}}}(v)$ is the projective moduli space of pure one-dimensional $\alpha$-twisted sheaves of Mukai vector $v$ which are Gieseker stable with respect to a locally free $\alpha$-twisted sheaf $\mathcal W$ and an ample class $A_T$. Every $\alpha$-twisted line bundle of Mukai vector $v$ on a smooth integral curve $D\subset T$ is $\sigma_{\mathrm{st}}$-stable. \end{lemma} \begin{proof} Let $\mathcal W$ be a locally free $\alpha$-twisted sheaf, put $\beta_{\mathcal W}\coloneqq c_1^{b_\alpha}(\mathcal W)/\rk\mathcal W$, and fix an integral ample class $A_T$ with $a\coloneqq A_T\cdot H$. For a pure one-dimensional twisted sheaf with Mukai vector $(0,D,l)$, twisted Riemann--Roch gives the reduced $\mathcal W$-Hilbert polynomial $(A_T\cdot D)m+l-\beta_{\mathcal W}\cdot D$, so $\mathcal W$-Gieseker stability compares the slopes $(l-\beta_{\mathcal W}\cdot D)/(A_T\cdot D)$. A strictly semistable sheaf of vector $v$ has a quotient with vector $(0,D,l)$, where $D$ and $H-D$ are effective and nonzero, and $(A_T\cdot D)(k-\beta_{\mathcal W}\cdot H)=a(l-\beta_{\mathcal W}\cdot D)$. In case (K) there is no such $D$; in case (Ab), $D^2\ge0$ and $0a^2/A_T^2+2+2|s|$. Then there is no slope stable sheaf and no $\sigma_{\beta_{\mathcal W},\lambda A_T}$-stable object with vector $(r,D',s')$ such that $r\ge1$, $|A_T\cdot D'|\le a$ and $s'\ge\frac{r\lambda^2A_T^2}2-|s|$: by Serre duality and Riemann--Roch, $D'^2-2rs'\ge-2$, and by the Hodge index theorem, $D'^2\le a^2/A_T^2$, so such an object would satisfy $r^2\lambda^2A_T^2\le a^2/A_T^2+2+2r|s|$, contrary to the choice of $\lambda$. Let $F$ be a $\sigma_{\beta_{\mathcal W},\lambda A_T}$-semistable object of vector $v$ in the tilted heart. If $H^{-1}(F)\ne0$, let $V$ be a saturated slope stable subsheaf of the first Harder--Narasimhan factor of $H^{-1}(F)$ with the same slope; then $V[1]$ is a subobject of $F$, and $\mathrm{Im}\,Z_\lambda$ is nonnegative on $V[1]$ and on $F/V[1]$, so $0\le-A_T\cdot D'\le a$ for $u(V)=(r,D',s')$. If $A_T\cdot D'=0$, then $V[1]$ has phase one, which contradicts the semistability of $F$; otherwise $\phi(V[1])\le\phi(F)$ is equivalent to $s'\ge\frac{r\lambda^2A_T^2}2+\frac{s(A_T\cdot D')}a\ge\frac{r\lambda^2A_T^2}2-|s|$, which is impossible. Hence $F$ is a sheaf, which is pure of dimension one since a zero-dimensional subsheaf has phase one, and the phase inequalities for its subsheaves of rank zero are the inequalities of $\mathcal W$-Gieseker semistability. Conversely, let $F$ be a $\mathcal W$-Gieseker stable sheaf of vector $v$, and suppose that a stable subobject $V\subset F$ in the heart satisfies $\phi(V)\ge\phi(F)$. Then $V$ is a sheaf; if $\rk V=0$, then $V\to F$ is injective, which contradicts the Gieseker stability, and if $\rk V>0$, then $0=2}}\label{sec:twelve} In this section, we suppose $d=12$, and we show that $r=1$ (Proposition~\ref{prop:twelvehigh}); from Lemma~\ref{lem:allmult} on, we suppose $r\ge2$ and derive a contradiction. By Propositions~\ref{prop:table} and~\ref{prop:R} and Corollary~\ref{cor:r}, $(b_2(X),b_3(X))\in\{(5,0),(6,4),(7,8)\}$, $R=9$ and $N=r+b_2(X)+6$, so $N\ge13$ if $r\ge2$. We first show that all singular fibers over a general line are multiplicative, then we determine the monodromy on the residual planes at the primes $2$ and $3$ of an isogenous surface of type $(1,3)$, and finally we use the Radon transform modulo $2$ and $3$. All counts are on a general line $\ell$. \subsection{An isogenous surface of type \texorpdfstring{$(1,3)$}{(1,3)}} Put $\Lambda'\coloneqq\{y\in\Lambda^\#:2y\in\Lambda\}$ and $\theta'\coloneqq\theta|_{\Lambda'}$. Writing $\Lambda_{\ZZ_2}=U\oplus V$ with $\theta|_U$ unimodular and $\theta|_V=4\theta_V$ with $\theta_V$ unimodular, we have $\Lambda'_{\ZZ_2}=U\oplus\frac12V$ and $\Lambda'_{\ZZ_p}=\Lambda_{\ZZ_p}$ for $p\ne2$, so $\theta'$ is integral of type $(1,3)$, and $\Lambda'$ is monodromy invariant. Let $A'$ be the corresponding abelian scheme over $B^\circ$ (Section~\ref{sec:aux}). Since $\theta'$ has odd type, its reduction modulo $2$ is nondegenerate on $\Lambda'/2\Lambda'$. Let $Q_2\subset\Lambda'/2\Lambda'$ be the image of $\Lambda$ and $K_2\coloneqq Q_2^\perp$; then $Q_2=U/2U$ and $K_2=\frac12V/V=\Lambda'/\Lambda$. On $\Lambda'/3\Lambda'$, the reduction of $\theta'$ has a radical $K_3$ of dimension two, and we put $Q_3\coloneqq(\Lambda'/3\Lambda')/K_3$; the forms $\frac13\theta'$ on $K_3$ and $\theta'$ on $Q_3$ are nondegenerate. The planes $Q_2,K_2,Q_3,K_3$ are local systems of symplectic planes over $\FF_2$ or $\FF_3$ on $B^\circ$. Under the identifications $K_2\simeq K(\theta)[2]$ and $K_3\simeq K(\theta)[3]$, and $Q_2$, $Q_3$ with the $2$- and $3$-torsion of the kernel of the isogeny $\lambda_\theta^D\colon A^\vee\to A$ with $\lambda_\theta^D\circ\lambda_\theta=[12]$, the planes $K_2,K_3\subset A[12]$ and $Q_2,Q_3\subset A^\vee[12]$ consist of torsion points. Let $\eta\colon\Lambda'/2\Lambda'=Q_2\oplus K_2\to\FF_2$ be the quadratic form with $\eta(y+y')-\eta(y)-\eta(y')=\theta'(y,y')$ for $y,y'\in\Lambda'/2\Lambda'$ and $\eta(y)=1$ for $y\in(Q_2\cup K_2)\setminus\{0\}$; since $Q_2\perp K_2$, we have $\eta(q+k)=\eta(q)+\eta(k)$ for $q\in Q_2$ and $k\in K_2$, and $\eta$ is monodromy invariant. \begin{lemma}\label{lem:wid} Let $x\in\ell\cap\Delta$ be multiplicative, put $m\coloneqq n_x$, $i\coloneqq v_2(\delta_x)$ and $d_3\coloneqq\gcd(3,\delta_x)$, and let $v'$ be the primitive generator of $\QQ_{>0}v_x\cap\Lambda'$. Then the following hold. \begin{enumerate} \item $v'$ has divisibility $d_3$ with respect to $\theta'$. \item $w_x(\Lambda')=m'$, where $m'\coloneqq m$ if $i\in\{0,2\}$ and $m'\coloneqq2m$ if $i=1$. \item $\eta(v')=1$ if $i\in\{0,2\}$, and $\eta(v')=0$ if $i=1$. \end{enumerate} \end{lemma} \begin{proof} At primes $p\ne2$, $\Lambda'_{\ZZ_p}=\Lambda_{\ZZ_p}$. Write $v_x=u+w$ with $u\in U$ and $w\in V$. If $i=0$, then $u$ is primitive, $v'=v_x$, its image modulo $2\Lambda'$ lies in $Q_2\setminus\{0\}$, and $\theta(v_x,\Lambda'_{\ZZ_2})=\ZZ_2$. If $i\ge1$, then $u\in2U$, $w$ is primitive, and $v'=\frac12v_x$ over $\ZZ_2$; its image in $K_2$ is the nonzero class of $\frac w2$, and its image in $Q_2$ is the class of $\frac u2$, which is nonzero if and only if $i=1$. Since $\theta(\frac w2,\frac12V)=\theta_V(w,V)=\ZZ_2$, the divisibility of $v'$ at $2$ is one. Hence $\delta'=d_3$, and \eqref{eq:width} gives $w_x(\Lambda')=m\,d_3/\delta_x$ if $i=0$ and $w_x(\Lambda')=4md_3/\delta_x$ if $i\ge1$, which is $m'$. The values of $\eta$ follow from the definition. \end{proof} \subsection{Modular forms on the isogenous surface} Let $\Delta_1$ be the paramodular form of weight one for $\Gamma_3$ of Lemma~\ref{lem:sat}. For $G\in\mathcal G_1$ in the sense of Definition~\ref{def:Gt} applied to $(\Lambda',\theta')$, the lattice $\Lambda'_G$ is principally polarized, and $\Lambda'_G/2\Lambda'_G=\Lambda'/2\Lambda'$ since $[\Lambda'_G:\Lambda']=3$; hence $\eta$ is an even theta characteristic on $\Lambda'_G$. Fix an even theta characteristic $\eta_0$ for $\Gamma_1=\Sp_4(\ZZ)$, let $\Gamma_{\eta_0}\subset\Gamma_1$ be its stabilizer, and let $\vartheta_{\eta_0}$ be the theta constant with characteristic $\eta_0$; then $\vartheta_{\eta_0}^8$ is a Siegel modular form of weight four for $\Gamma_{\eta_0}$ with trivial character \cite[Chapter~V]{Igu72}. For $G\in\mathcal G_1$, the symplectic bases of $\Lambda'_G$ in which $\eta$ has the characteristic $\eta_0$ form a $\Gamma_{\eta_0}$-level structure, which is invariant under the stabilizer of $\Lambda'_G$ in $\pi_1(B^\circ,b)$ since $\eta$ is monodromy invariant. We write $\ord_x(\vartheta_\eta^8;\Lambda'_G)$ and $o_x(\vartheta_\eta^8;\Lambda'_G)$ for the normalized orders of Definition~\ref{def:order} with $\Phi=\vartheta_{\eta_0}^8$ and $\Xi$ consisting of this level structure. By Lemma~\ref{lem:end}, the generic fibers of $A'$ and of the abelian schemes defined by the lattices $\Lambda'_G$ are geometrically simple. Hence $\Delta_1^6$ does not vanish on them, since the divisor of $\Delta_1$ consists of polarized products \cite[\S2]{GH99}, and $\vartheta_{\eta_0}^8$ does not vanish on them, since by the Riemann singularity theorem an even theta constant vanishes at a principally polarized abelian surface only if its theta divisor is reducible. For $x\in\ell$, put \[ b_\Delta(x)\coloneqq\ord_x(\Delta_1^6;\Lambda'),\qquad b_\vartheta(x)\coloneqq\frac14\sum_{G\in\mathcal G_1}\ord_x(\vartheta_\eta^8;\Lambda'_G),\qquad b_*(x)\coloneqq\frac12(b_\Delta(x)+b_\vartheta(x)). \] \begin{lemma}\label{lem:hgts} The following hold. \begin{enumerate} \item $\sum_{x\in\ell}b_\Delta(x)=18$, $\sum_{x\in\ell}b_\vartheta(x)=12$, and $\sum_{x\in\ell}b_*(x)=15$. \item Let $x\in\ell\cap\Delta$ be multiplicative, and let $m'$ and $v'$ be as in Lemma~\ref{lem:wid}. Then $b_\Delta(x)\in m'+6\ZZ_{\ge0}$, $b_\vartheta(x)\ge m'\eta(v')$, and $b_*(x)\ge n_x$. \item For $x\in\ell\cap B^\circ$, $b_\Delta(x)\in6\ZZ_{\ge0}$. \end{enumerate} \end{lemma} \begin{proof} (a) follows from Lemma~\ref{lem:orders}(a) with $k=6$ and $k=4$. Since $\Lambda'$ is monodromy invariant and $\pi_1(B^\circ,b)$ permutes $\{\Lambda'_G\}_{G\in\mathcal G_1}$, \eqref{eq:orbitavg} gives \begin{equation}\label{eq:bperlattice} b_\Delta(x)=o_x(\Delta_1^6;\Lambda'),\qquad b_\vartheta(x)=\frac14\sum_{G\in\mathcal G_1}o_x(\vartheta_\eta^8;\Lambda'_G). \end{equation} The form $\Delta_1$ has a character of order six, its Fourier--Jacobi expansions at the two classes of one-dimensional cusps, which are exchanged by the Fricke involution, have exponents in $\frac16+\ZZ_{\ge0}$ \cite[\S2]{GH99}, and at a point of $B^\circ$ its order is an integer. Hence $b_\Delta(x)\in w_x(\Lambda')(1+6\ZZ_{\ge0})\subset m'+6\ZZ_{\ge0}$ as in the proof of Lemma~\ref{lem:orders}(b), and (c) holds. In the theta series of $\vartheta_\eta$ at the cusp of $v'$, the index of the degenerating coordinate lies in $\frac12\eta(v')+\ZZ$, so $o_x(\vartheta_\eta^8;\Lambda'_G)\ge w_x(\Lambda'_G)\eta(v')$ as in the proof of Lemma~\ref{lem:orders}(b); here $\eta(v')$ does not change if $v'$ is replaced by the primitive vector of $\Lambda'_G\cap\QQ_{>0}v'$, since $[\Lambda'_G:\Lambda']=3$ is odd. If $d_3=1$, then $w_x(\Lambda'_G)=m'$ for every $G$ by \eqref{eq:width}. If $d_3=3$, then $w_x(\Lambda'_G)$ is $3m'$ for the line $G$ containing the class of $\frac13v'$ and $\frac{m'}3$ for the other three lines, by \eqref{eq:width}. In both cases the mean of $w_x(\Lambda'_G)$ over $G\in\mathcal G_1$ is $m'$. Hence $b_\vartheta(x)\ge m'\eta(v')$ by \eqref{eq:bperlattice}, and $b_*(x)\ge\frac12m'(1+\eta(v'))=n_x$ by Lemma~\ref{lem:wid}. \end{proof} \subsection{Additive points} \begin{lemma}\label{lem:addcost} Let $x\in\ell\cap\Delta$ be additive. Then the following hold. \begin{enumerate} \item If $X_x$ is of type $\mathrm{II}$ or $\mathrm{III}$, or of type $\mathrm{IV}$ with $s_x=1$, then $b_*(x)\ge5$. \item If $X_x$ is of type $\mathrm{IV}$ with $s_x=3$, then $\alpha_{1,x}\in\{3,12\}$, $b_\Delta(x)=2$ and $b_*(x)\ge3$. \end{enumerate} \end{lemma} \begin{proof} By Lemma~\ref{lem:addlat}, $\alpha_{0,x}\alpha_{1,x}=12s_x$ and $s_x\mid\nu_x$, where $\nu_x=1,2,3$ for $e_x=6,4,3$. Put $e\coloneqq e_x$, $\Lambda'_i\coloneqq\Lambda'\cap\Lambda_{i,x,\QQ}$ and $\Lambda'_{G,i}\coloneqq\Lambda'_G\cap\Lambda_{i,x,\QQ}$ for $i=0,1$ and $G\in\mathcal G_1$. For a lattice $\Lambda''\in\{\Lambda'\}\cup\{\Lambda'_G\}_{G\in\mathcal G_1}$, let $A''^{\mathrm{good}}$ be the abelian scheme over $\tilde D$ defined by $\Lambda''$ as in Lemma~\ref{lem:contact}. We use \eqref{eq:bperlattice}. Suppose that $X_x$ is of type $\mathrm{II}$, or of type $\mathrm{IV}$ with $s_x=1$. Then $\Lambda=\Lambda_{0,x}\oplus\Lambda_{1,x}$ and $\gcd(\alpha_{0,x},\alpha_{1,x})=1$, so $\Lambda'=\Lambda'_0\oplus\Lambda'_1$ and $\Lambda'_G=\Lambda'_{G,0}\oplus\Lambda'_{G,1}$ for $G\in\mathcal G_1$, as in the proof of Lemma~\ref{lem:hecke}(c). Hence the fibers of these abelian schemes $A''^{\mathrm{good}}$ over $\{u=0\}$ are polarized products of elliptic curves. Modulo $2$, $T_x$ acts on $\Lambda'_1/2\Lambda'_1$ with order three and without nonzero fixed vectors, and trivially on $\Lambda'_0/2\Lambda'_0$, so the only $T_x$-invariant planes of $\Lambda'/2\Lambda'$ are these two, and $\{Q_2,K_2\}=\{\Lambda'_0/2\Lambda'_0,\Lambda'_1/2\Lambda'_1\}$. Hence $\eta$ is odd on both factors, and $\vartheta_\eta$ vanishes along the locus of such products, like $\Delta_1$. By Lemmas~\ref{lem:contact}(b) and~\ref{lem:orders}(c), $b_\Delta(x)\ge(6+6(e+1))/e$ and $b_\vartheta(x)\ge(4+8(e+1))/e$, so $b_*(x)\ge7$. Suppose that $X_x$ is of type $\mathrm{III}$. Then $T_x$ preserves $Q_2$ and $K_2$ and $T_x^4=1$; since the elements of $\SL_2(\FF_2)$ have order $1$, $2$ or $3$, we get $T_x^2\equiv1$ modulo $2\Lambda'$. Hence the projector $\frac12(1-T_x^2)$ onto $\Lambda_{1,x,\QQ}$ along $\Lambda_{0,x,\QQ}$ preserves $\Lambda'\otimes\ZZ_p$ for every prime $p$, so $\Lambda'=\Lambda'_0\oplus\Lambda'_1$, and the fiber of $A'^{\mathrm{good}}$ over $\{u=0\}$ is a polarized product. Let $h$ be the order along $\{u=0\}$ of the off-diagonal period of $A'^{\mathrm{good}}$; then $h\ge e+1=5$ by Lemma~\ref{lem:contact}(b). Since $\Delta_1$ vanishes along the locus of polarized products, Lemma~\ref{lem:orders}(c) gives $b_\Delta(x)\ge(6+6h)/4\ge9$ and $b_\vartheta(x)\ge4/4=1$. Hence $b_*(x)\ge5$. Suppose that $X_x$ is of type $\mathrm{IV}$ and $s_x=3$. By Lemma~\ref{lem:addlat}(c), $\alpha_{0,x}\alpha_{1,x}=36$, $3\mid\gcd(\alpha_{0,x},\alpha_{1,x})$ and $\gcd(\alpha_{0,x}/3,\alpha_{1,x}/3)=1$, so $\{\alpha_{0,x},\alpha_{1,x}\}=\{3,12\}$. At the prime $2$, the plane of degree $12$ is the plane $V$, so $\theta'$ has degree $3$ on $\Lambda'_0$ and on $\Lambda'_1$. Since $[\Lambda':\Lambda]=4=[\Lambda'_0\oplus\Lambda'_1:\Lambda_{0,x}\oplus\Lambda_{1,x}]$, we get $[\Lambda':\Lambda'_0\oplus\Lambda'_1]=[\Lambda:\Lambda_{0,x}\oplus\Lambda_{1,x}]=s_x=3$. The fiber of $A'^{\mathrm{good}}$ over $\{u=0\}$ is not a polarized product of elliptic curves of degrees $1$ and $3$: such a product contains a unique elliptic curve of degree one through $0$, since the degree of an elliptic curve through $0$ is the sum of the degree of its first projection and three times the degree of its second projection; the automorphism induced by the deck transformation would preserve this curve and its complement, so $\Lambda'=\Lambda'_0\oplus\Lambda'_1$, a contradiction. Hence $\Delta_1$ does not vanish at this fiber, and $b_\Delta(x)=6/3=2$ by Lemma~\ref{lem:orders}(c). For $i=0,1$, put $K_{(i)}\coloneqq\Lambda_i'^\#/\Lambda'_i\simeq(\ZZ/3)^2$, with the nondegenerate pairing induced by $3\theta'$. The image of $\Lambda'$ in $K_{(1)}\oplus K_{(0)}$ is an isotropic line $\langle y_1+y_0\rangle$ with $y_i\in K_{(i)}\setminus\{0\}$, and $K(\theta')=\langle y_1+y_0\rangle^\perp/\langle y_1+y_0\rangle$. Choose $y'_i\in K_{(i)}$ such that $(y_i,y'_i)$ is a symplectic basis of $K_{(i)}$; then the classes of $y_1$ and $y'_1-y'_0$ form a basis of $K(\theta')$. Since $\theta'|_{\Lambda'_1}$ is three times a unimodular form and $\det(1-T_x|\Lambda'_1)=3$, $T_x$ acts on $K_{(1)}\simeq\Lambda'_1/3\Lambda'_1$ as a nontrivial unipotent map, and it acts trivially on $K_{(0)}$. Since $\langle y_1+y_0\rangle$ is $T_x$-invariant, $T_x(y_1)=y_1$ and $T_x(y'_1)=y'_1+cy_1$ with $c\in\FF_3^*$. Hence $T_x$ fixes the line $G_0\in\mathcal G_1$ generated by the class of $y_1$, and permutes the other three lines of $K(\theta')$ cyclically. The lattice $\Lambda'_{G_0}$ contains $\Lambda'_0\oplus\Lambda'_1$ and lifts of $y_1$ and $y_0$, so $\Lambda'_{G_0}=\Lambda'_{G_0,0}\oplus\Lambda'_{G_0,1}$ with unimodular summands, and $\eta$ is odd on both summands as in the case of type $\mathrm{IV}$ with $s_x=1$, since $\Lambda'_{G_0}/2\Lambda'_{G_0}=(\Lambda'_0\oplus\Lambda'_1)/2(\Lambda'_0\oplus\Lambda'_1)$. Hence $\vartheta_\eta$ vanishes along the locus of polarized products split by these summands, and Lemmas~\ref{lem:contact}(b) and~\ref{lem:orders}(c) give $o_x(\vartheta_\eta^8;\Lambda'_{G_0})\ge(4+8(e+1))/e=12$. For the other three lines $G$, $o_x(\vartheta_\eta^8;\Lambda'_G)\ge4/3$ by Lemma~\ref{lem:orders}(c). Hence $b_\vartheta(x)\ge\frac14(12+3\cdot\frac43)=4$ and $b_*(x)\ge\frac12(2+4)=3$. \end{proof} For $\delta\mid12$, let $a_\delta$ be the sum of $n_x$ over the multiplicative points $x\in\ell\cap\Delta$ with $\delta_x=\delta$, and put $\sigma_1\coloneqq\sum_{\delta\mid12}a_\delta$ and $\sigma_2\coloneqq a_2+a_6$. \begin{lemma}\label{lem:allmult} Every $x\in\ell\cap\Delta$ is multiplicative. \end{lemma} \begin{proof} Let $t_{\mathrm{add}}$ be the number of additive points in $\ell\cap\Delta$. Then $N=\#\{x\in\ell\cap\Delta:x\text{ multiplicative}\}+2t_{\mathrm{add}}\le\sigma_1+2t_{\mathrm{add}}$. By Lemmas~\ref{lem:hgts} and~\ref{lem:addcost}, $b_*(x)\ge n_x$ for multiplicative $x$, $b_*(x)\ge3$ for additive $x$, and $b_*(x)\ge0$ for $x\in\ell\cap B^\circ$. If some additive point has $b_*(x)\ge5$, then $15=\sum_{x\in\ell}b_*(x)\ge\sigma_1+3t_{\mathrm{add}}+2\ge N+t_{\mathrm{add}}+2\ge16$, a contradiction. Hence every additive point is of type $\mathrm{IV}$ with $s_x=3$; let $t_3$ and $t_{12}$ be the numbers of those with $\alpha_{1,x}=3$ and $\alpha_{1,x}=12$, respectively, so that $t_{\mathrm{add}}=t_3+t_{12}$. By Lemmas~\ref{lem:wid}, \ref{lem:hgts} and~\ref{lem:addcost}, $\sigma_1+3t_{\mathrm{add}}\le15$, $\sigma_1+\sigma_2+2t_{\mathrm{add}}\le18$ and $\sigma_1+\sigma_2+2t_{\mathrm{add}}\equiv18\pmod6$. Since $13\le N\le\sigma_1+2t_{\mathrm{add}}\le\sigma_1+\sigma_2+2t_{\mathrm{add}}$, we get $\sigma_1+\sigma_2+2t_{\mathrm{add}}=18$ and $t_{\mathrm{add}}\le15-N\le2$. By Proposition~\ref{prop:R}(a), $R=9$, in which the additive points contribute $\mu_x/\alpha_{1,x}=\frac43$ and $\frac13$, respectively, we get \begin{equation}\label{eq:R9} \sigma_3\coloneqq a_1+a_3+a_4+a_{12}=18-2t_{\mathrm{add}}-2\sigma_2,\qquad9a_1=54-10t_3+2t_{12}+4a_6-a_3+2a_{12}. \end{equation} If $t_{\mathrm{add}}=2$, then $N=13$, $\sigma_1=9$, $\sigma_2=5$ and $\sigma_3=4$; then $9a_1\ge34-a_3\ge30+a_1$, so $a_1=4$ and $a_3=a_4=a_{12}=0$, and the right side of \eqref{eq:R9} is $58-12t_3+4a_6\equiv2\pmod4$, while $9a_1=36$, a contradiction. Suppose $t_{\mathrm{add}}=1$, so that $\sigma_1\le12$ and $\sigma_3\le8$. By Lemmas~\ref{lem:wid} and~\ref{lem:mult}(c), the local monodromy at a multiplicative point $x$ acts on $K_2$ by a transposition of its nonzero elements if $v_2(\delta_x)=2$ and $n_x$ is odd, and trivially otherwise. If $t_3=1$, then the additive point acts trivially on $K_2$, since its rotating plane has degree $3$ and is unimodular at $2$; hence the number of transpositions on $K_2$ is even, since the product of the local monodromies is trivial. If moreover $a_4+a_{12}\ge4$, then $a_1+a_3\le4$ and $9a_1\ge44-a_3\ge40+a_1$, a contradiction. Hence there are at most two transpositions on $K_2$, the triple cover of $\ell$ defined by $K_2\setminus\{0\}$ is disconnected by the Riemann--Hurwitz formula, and $K_2$ has a nonzero invariant vector. For $b_2(X)\in\{5,6\}$ this contradicts Lemma~\ref{lem:inv12}(a), and for $b_2(X)=7$ we would have $N\ge15$, whereas $N\le\sigma_1+2\le14$. If $t_{12}=1$, then the additive point acts on $K_2$ with order three, since its rotating plane of degree $12$ is the plane $V$ at $2$; hence the number of transpositions on $K_2$ is even. If $a_4+a_{12}\ge2$, then $a_1+a_3\le6$ and $9a_1\ge56-a_3\ge50+a_1$, a contradiction. Hence there is no transposition on $K_2$, and the product of the local monodromies on $K_2$ is not trivial, a contradiction. \end{proof} By Lemma~\ref{lem:allmult}, $N=\#(\ell\cap\Delta)\le\sigma_1$, and $\sigma_1\le\sum_{x\in\ell}b_*(x)=15$ by Lemma~\ref{lem:hgts}. By Lemmas~\ref{lem:wid} and~\ref{lem:hgts}, $18=\sum_{x\in\ell}b_\Delta(x)\equiv\sum_{x\in\ell\cap\Delta}w_x(\Lambda')=\sigma_1+\sigma_2\pmod6$ and $13\le\sigma_1+\sigma_2\le18$, so $\sigma_1+\sigma_2=18$. Together with Proposition~\ref{prop:R}(a) and $R=9$, we get \begin{equation}\label{eq:twelvesums} 13\le N\le\sigma_1\le15,\qquad\sigma_1+\sigma_2=18,\qquad\sum_{\delta\mid12}\frac{12a_\delta}\delta=108. \end{equation} \subsection{The residual planes} \begin{lemma}\label{lem:Qfull} The monodromy groups of $Q_2$ and $Q_3$ are $\SL(Q_2)\simeq\SL_2(\FF_2)$ and $\SL(Q_3)\simeq\SL_2(\FF_3)$. \end{lemma} \begin{proof} Suppose that $Q_p$, $p\in\{2,3\}$, has a nonzero invariant vector. It gives a nonzero torsion point of $A^\vee_K=\Pic^0_{X_K/K}$ over $K$. The obstruction to representing it by a line bundle on $X_K$ lies in $\ker(\Br(K)\to\Br(\CC(X)))$. Its residue along a prime divisor $D\subset B$ vanishes if the fiber of $\pi$ over the generic point of $D$ has a geometrically integral component of multiplicity one. By Lemma~\ref{lem:mult}, this holds for the components of $\Delta$ through the points $x\in\ell\cap\Delta$ with $n_x=1$, so the residues are supported on curves of total degree at most $\sum_{x\in\ell\cap\Delta}(n_x-1)=\sigma_1-N\le2$, each of which is a line or a smooth conic. By the Gersten complex, the residue along such a curve can only ramify at its intersection points with the other curves, of which there is at most one, so it is unramified on $\PP^1$ and vanishes. Hence the obstruction is unramified, and it vanishes since $\Br(\PP^2)=0$. A line bundle on $X_K$ representing the point extends to $X$ by taking the closure of a divisor; its first Chern class restricts to zero on $F$, so it lies in $\QQ L$ since $\rho(X)=2$, hence in $\ZZ L$ since $L$ is primitive and $H^2(X,\ZZ)$ is torsion free. Since $H^1(X,\cO_X)=0$, the line bundle is a pullback from $B$, so the point is zero, a contradiction. Since all points of $\ell\cap\Delta$ are multiplicative, the monodromy group of $Q_p$ is generated by transvections; if they all had the same axis, it would fix a vector, and two transvections with distinct axes generate $\SL_2(\FF_p)$ for $p\in\{2,3\}$. \end{proof} By Lemma~\ref{lem:mult}(c), the local monodromy at a multiplicative $x\in\ell\cap\Delta$ with $3\mid\delta_x$ acts on $K_3$ as a transvection along the class of $v_x$ with parameter congruent to $\frac{12n_x}{\delta_x}$ modulo $3$, and at $x$ with $3\nmid\delta_x$ it acts on $Q_3$ as a transvection with parameter congruent to $\frac{4n_x}{\delta_x}$ modulo $3$, by applying the same formula to the Fricke transform at $3$, on which the divisibility becomes $3\delta_x$ and the width is unchanged (Lemma~\ref{lem:hecke}(a)). By Lemma~\ref{lem:wid}, the local monodromy acts on $K_2$ (resp.\ $Q_2$) by a transposition of the nonzero elements if and only if $v_2(\delta_x)=2$ (resp.\ $v_2(\delta_x)=0$) and $n_x$ is odd. \begin{lemma}\label{lem:enum} Suppose that the monodromy group of $K_2$ is $\SL(K_2)$, or that $b_2(X)=7$ and it has order two. Then the following hold. \begin{enumerate} \item The monodromy group of $K_3$ does not have order three. \item If $b_2(X)=7$, the monodromy group of $K_2$ has order two and that of $K_3$ is $\SL(K_3)$, then $N=15$, all $n_x$ are $1$, and $(a_1,a_2,a_3,a_4,a_6,a_{12})$ is one of $(8,0,0,1,3,3)$, $(7,2,1,1,1,3)$, $(7,1,3,0,2,2)$, $(7,1,1,3,2,1)$, $(7,0,3,2,3,0)$, $(6,3,4,0,0,2)$, $(6,2,4,2,1,0)$. \end{enumerate} \end{lemma} \begin{proof} This is a finite computation over the multisets of pairs $(\delta_x,n_x)$, $x\in\ell\cap\Delta$, with $\delta_x\mid12$, $\sum_x(n_x-1)\le15-N$ and \eqref{eq:twelvesums}, subject to the following necessary conditions: the numbers of transpositions on $Q_2$ and on $K_2$ are even, and at least four if the corresponding group is transitive; for $b_2(X)=7$, $N\ge15$; the transvections on $Q_3$ generate $\SL(Q_3)$ with product one (Lemma~\ref{lem:Qfull}); the transvections on $K_3$ have product one and generate the asserted group; and the degree bounds of Lemma~\ref{lem:orders}(a) for $\chi_{10}$ and $\vartheta_\eta^8$ hold on every principally polarized quotient $\Lambda'_G$ whose line $G$ is fixed by the monodromy. The computation is described in Appendix~\ref{app:twelve}. \end{proof} \begin{lemma}\label{lem:K3full} The monodromy group of $K_3$ is $\SL(K_3)$. \end{lemma} \begin{proof} By Lemma~\ref{lem:inv12}, the monodromy group of $K_2$ is $\SL(K_2)$ if $b_2(X)\in\{5,6\}$, and it fixes at most one nonzero vector if $b_2(X)=7$; since it is generated by transpositions, it is $\SL(K_2)$ or has order two. By Lemma~\ref{lem:enum}(a), the monodromy group of $K_3$ is $\SL(K_3)$ or trivial. Suppose that it is trivial. If $3\mid\delta_x$ for some $x\in\ell\cap\Delta$, then the parameter of the transvection on $K_3$ at $x$ vanishes, so $3\mid n_x$; since $\sum_x(n_x-1)=\sigma_1-N\le2$ by \eqref{eq:twelvesums}, $x$ is the only such point, $n_x=3$, $N=13$, $\sigma_1=15$ and $\sigma_2=3$. The other twelve points have $n_x=1$ and $\delta_x\in\{1,2,4\}$, and either none or three of them have $\delta_x=2$. Their contribution to $4R=\sum_x\frac{4n_x}{\delta_x}$ is congruent to the number of them with $\delta_x=2$ modulo $3$, hence to $0$, while the exceptional point contributes $\frac{12}{\delta_x}\in\{4,2,1\}$. This contradicts $4R=36$. Hence $3\nmid\delta_x$ for all $x\in\ell\cap\Delta$, so $v'$ has divisibility one on $\Lambda'$ by Lemma~\ref{lem:wid}, $\sum_{x\in\ell\cap\Delta}w_x(\Lambda')=\sigma_1+\sigma_2=18$, and Lemma~\ref{lem:hgts} gives $b_\Delta(x)=w_x(\Lambda')$ for $x\in\ell\cap\Delta$ and $b_\Delta(x)=0$ for $x\in\ell\cap B^\circ$. We verify (R1), (R2) and (R3) for $(A',\lambda_{\theta'})$ and $B'=B^\circ$. By Lemma~\ref{lem:end}, $A'_{\bar K}$ is simple, the period map of $A'$ has rank two at a general point as in the proof of Lemma~\ref{lem:Asat}, and $K(\theta')\simeq K_3$ is constant. An elliptic curve of degree one in a fiber of $A'$ splits it as a polarized product, at which $\Delta_1$ vanishes; since $b_\Delta(x)=0$ for $x\in\ell\cap B^\circ$, the first assertion of (R2) holds. At $x\in\ell\cap\Delta$, $T_x(y)=y\pm w_x(\Lambda')\theta'(y,v')v'$ for $y\in\Lambda'$, and the gluing condition of (R2) holds as in the proof of Lemma~\ref{lem:gluing}, since $b_\Delta(x)=w_x(\Lambda')$. The isogenies $A\to A'$ and $A'\to A$ whose composite is multiplication by $2$ extend to homomorphisms of N\'eron models which are isogenies on identity components, so (R3) follows from Lemma~\ref{lem:hodge} as in the proof of Lemma~\ref{lem:Asat}. Hence Theorem~\ref{thm:rec} gives an abelian surface $T$ with a base point free polarization $H$ of type $(1,3)$, $B\simeq|H|$, and $A'_K\simeq P_C\coloneqq\ker(J(C)\to T_K)$ for the generic member $C$. The polarization kernel of $J(C)$ restricted to the image of $T^\vee$ has odd order, so $J(C)[2]$ is the orthogonal sum of the constant group $T^\vee[2]$ and $P_C[2]=A'[2]$. The sum of any quadratic refinement on $T^\vee[2]$ and $\eta$ on $A'[2]$ is a monodromy invariant quadratic refinement of the Weil pairing on $J(C)[2]$. By \cite[\S1]{Mum71}, it is the form of a theta characteristic defined over $K$; restricting to the function field of a general pencil, which is a field of cohomological dimension one, it is represented by a line bundle $\mathcal K$ on the generic curve of the pencil with $\mathcal K^{\otimes2}\simeq\omega$. Let $Y_0\to T$ be the blowup of the six base points of the pencil, with exceptional curves $E_1,\dots,E_6$ and fiber class $F_0=H-\sum_jE_j$. Since $K_{Y_0}=\sum_jE_j$ restricts to the canonical bundle of the generic curve, the closure $\mathcal D$ of a divisor of $\mathcal K$ satisfies $K_{Y_0}\equiv2\mathcal D$ modulo vertical divisors; hence $\sum_jE_j$ lies in the span of the vertical classes in $\NS(Y_0)/2\NS(Y_0)$. If no elliptic curve $E\subset T$ has $H\cdot E=2$, then the vertical classes are multiples of $F_0$ modulo $2$, and comparing the coefficients of $E_j$ and $H$ shows that $H$ would be divisible by $2$, a contradiction. In case (a) of Lemma~\ref{lem:Gamma}, put $M\coloneqq E$; a general pencil contains three reducible members $M_s+G_s$, and their elliptic components contain disjoint pairs $\{E_i,E_j\}$ of base points: through each base point there is exactly one translate of $M$, and $H\cdot M=2$. The vertical classes are spanned modulo $2$ by $F_0$ and the three classes $M-E_i-E_j$. Since $M$ and $H$ are primitive and $(H-M)^2=2$, they are independent in $\NS(T)/2\NS(T)$. In an expression of $\sum_jE_j$, the coefficient of $F_0$ is therefore even, comparing the coefficients of $E_j$ forces the coefficients of the three pair classes to be odd, and comparing the coefficients of $M$ forces their sum to be even, a contradiction. In case (b) of Lemma~\ref{lem:Gamma}, the general member $C$ is an $\mathfrak S_3$-cover of the line of the pencil in the incidence of unordered triples; its quotient by the alternating group $\mathfrak A_3$ is a curve of genus two, double covering the line with six branch points on the dual sextic of the plane cubic, and $\mathfrak A_3$ acts freely on $C$. The constant part $H^1(T)$ is the tensor product of the standard representation of $\mathfrak S_3$ with $H^1(E_0)$, so it has no $\mathfrak A_3$-invariants, and since the averaging projector of $\mathfrak A_3$ is integral at $2$, pullback identifies the $2$-torsion of the Jacobian of the quotient with $P_C[2]$. The six odd theta characteristics of the quotient are permuted transitively by the monodromy, by the irreducibility of the dual sextic, whereas the ordered decomposition $P_C[2]=Q_2\oplus K_2$ would give an invariant ordered partition of them into two triples. This contradiction proves the lemma. \end{proof} \noindent For theta characteristics and quadratic forms, see \cite[\S1]{Mum71}. \begin{lemma}\label{lem:K2full} The monodromy group of $K_2$ is $\SL(K_2)$. \end{lemma} \begin{proof} By the proof of Lemma~\ref{lem:K3full}, it remains to exclude $b_2(X)=7$ with a monodromy group of order two. Then Lemma~\ref{lem:enum}(b) applies, so $N=15$ and all $n_x=1$. Let $a\in A(B^\circ)[2]$ be the nonzero invariant element of $K_2$. By Lemma~\ref{lem:inv12}(b) and Lemmas~\ref{lem:fixed} and~\ref{lem:fixedC}, $X^{g_a}$ contains a unique surface $S$, a K3 surface with $v(g_a)=4$. For an ample $D$ on $X$ with $D|_F=h\theta$, Lemma~\ref{lem:fixedC} and \eqref{eq:cqLH} give $\int_SL\cdot D=C_Sq_X(L,D)$ with $9C_S^2/c_X=4$ and $c_Xq_X(L,D)^2=36h^2$, so $\int_SL\cdot D=4h$. At a point $x$ with $\delta_x\in\{4,12\}$, the local monodromy acts on $K_2$ by a transvection whose fixed vector is the toric element of order two, by Lemma~\ref{lem:wid}; since the monodromy group of $K_2$ is generated by these transvections and has order two, this element is $a$. Translation by the toric element of order two of a fiber of type $\mathrm I_1$ fixes exactly the elliptic curve along which the ruled surface is glued. Since $g_a$ acts on the smooth fibers by translations without fixed points, $\pi(S)$ is a curve; since $S$ is irreducible and the other components of $X^{g_a}$ are points, all points $x\in\ell\cap\Delta$ with $\delta_x\in\{4,12\}$ lie on one irreducible curve $\Delta_S\subset\Delta$, along which $\delta_x$ is constant, and $S\cap\pi^{-1}(\ell)$ is the union of these elliptic curves. Hence one of $a_4,a_{12}$ vanishes, and in the four tuples of Lemma~\ref{lem:enum}(b) with this property, $\deg\Delta_S=a_4+a_{12}=2$. By Lemma~\ref{lem:mult}(a), the fixed elliptic curve over $x\in\ell\cap\Delta_S$ has $D$-degree $12h/\delta_x$, so $4h=\int_SL\cdot D=2\cdot\frac{12h}{\delta_x}$, which is impossible for $\delta_x\in\{4,12\}$. \end{proof} \subsection{The theta maps} By Lemmas~\ref{lem:Qfull}, \ref{lem:K3full} and~\ref{lem:K2full}, the monodromy groups of $Q_2,K_2,Q_3,K_3$ are the full special linear groups. Put $\sigma'_1\coloneqq a_1+a_4$ and $\sigma'_3\coloneqq a_3+a_{12}$. \begin{lemma}\label{lem:tetra} One has $3\sigma'_1+\sigma'_3\equiv\sigma'_1+3\sigma'_3\equiv4\pmod8$. \end{lemma} \begin{proof} Let $M_\eta$ be the symmetric line bundle on $A'$ representing $\theta'$ with characteristic $\eta$, rigidified along the zero section. The inversion acts on $H^0(M_\eta)$ with an even part of dimension two and an odd part of dimension one, and evaluation at $0$ is a nonzero linear form on the even part, since on a simple abelian surface of type $(1,3)$ the linear system has no base point (Lemma~\ref{lem:bpf}). The projective centralizer of the theta group is the group of translations, and a translation of order three commuting with the inversion is trivial; hence a symplectic marking of $K_3$ fixes projective coordinates on the even part, on which the marking group acts projectively through $\mathfrak A_4$, with the binary tetrahedral group as linearization. Explicitly, in the basis of even functions $\mathbf e_0,\mathbf e_1+\mathbf e_{-1}$ on $\FF_3$, two generators act by \[ S_{\mathrm{even}}=-\frac{\sqrt{-1}}{\sqrt3}\begin{pmatrix}1&2\\1&-1\end{pmatrix},\qquad T_{\mathrm{even}}=\zeta_3\begin{pmatrix}1&0\\0&\zeta_3\end{pmatrix}, \] with determinant one, $S_{\mathrm{even}}^2=(S_{\mathrm{even}}T_{\mathrm{even}})^3=-1$ and $T_{\mathrm{even}}^3=1$. Let $j\colon\ell\to\PP^1/\mathfrak A_4\simeq\PP^1$ be the evaluation point followed by the quotient map of degree twelve. It is not constant, since otherwise the connected marking cover would map to a point fixed by $\mathfrak A_4$, which does not exist. On a finite cover of $\ell$ trivializing the marking and the multipliers, the theta series with rational characteristics have weight $\frac12$, so the line spanned by the two even evaluation sections has normalized degree $\frac32$. At $x\in\ell\cap\Delta$, with $m$, $d_3$, $m'$ and $v'$ as in Lemma~\ref{lem:wid}, the exponents of the degenerating coordinate are $\frac{m'}2(k+\frac{\eta(v')}2)^2$ if $d_3=1$ and $\frac{3m'}2(k+\frac{\eta(v')}2+\frac c3)^2$, $c\in\{0,\pm1\}$, if $d_3=3$, for $k\in\ZZ$: this follows by choosing a symplectic partner of $v'$ with pairing $d_3$, which exists by primitivity, and writing the three theta series of degree three in the corresponding period basis. Hence the common order $o^{\mathrm{ev}}_x$ of the two even evaluation sections, divided by the ramification index of the marking cover, satisfies $o^{\mathrm{ev}}_x\in\frac{m}{8d_3}+\frac13\ZZ_{\ge0}$ if $v_2(\delta_x)\in\{0,2\}$ and $o^{\mathrm{ev}}_x\in\frac13\ZZ_{\ge0}$ if $v_2(\delta_x)=1$, since an odd square is $1$ modulo $8$ and $m'=2m$ if $\eta(v')=0$. At points $x\in\ell\cap B^\circ$, the common orders $o^{\mathrm{ev}}_x$ are nonnegative integers. Hence $\deg j=12(\frac32-\sum_{x\in\ell}o^{\mathrm{ev}}_x)$, and $2\deg j\equiv36-3\sigma'_1-\sigma'_3\pmod8$. Let $\tilde\ell$ be the normal complete marking cover of $\ell$. All inertia of the marking has order one or three, and the equivariant map $\tilde\ell\to\PP^1$ pulls $\cO(1)$ back to a line bundle with the binary tetrahedral linearization, whose third power descends to $\ell$. Hence the normalized degree $\deg(j)/12$ of the pullback lies in $\frac13\ZZ$, so $4\mid\deg j$, and $3\sigma'_1+\sigma'_3\equiv36\equiv4\pmod8$. The Fricke transform at $3$ exchanges $\sigma'_1$ and $\sigma'_3$ and preserves $\eta$, which gives the second congruence. \end{proof} \noindent For the transformation of theta functions with rational characteristics, see \cite[Lemma~3.1.3]{Hun90}. \begin{lemma}\label{lem:tuple} One has $(a_1,a_2,a_3,a_4,a_6,a_{12})=(7,2,1,1,1,3)$. \end{lemma} \begin{proof} By \eqref{eq:twelvesums}, $3\le\sigma_2\le5$ and $\sigma'_1+\sigma'_3=18-2\sigma_2$, and the computation of \eqref{eq:R9} with $t_3=t_{12}=0$ gives $9a_1=54+4a_6-a_3+2a_{12}$. The plane $K_2$ has transitive monodromy, so $a_4+a_{12}\ge4$ by the Riemann--Hurwitz formula, and Lemma~\ref{lem:tetra} gives $\sigma'_1\equiv\sigma'_3\equiv\sigma_2-3\pmod4$. If $\sigma_2=5$, then $\sigma'_1+\sigma'_3=8$ and $9a_1\ge54-8$, so $a_1\ge6$ and $a_4+a_{12}\le2$, a contradiction. If $\sigma_2=4$, then $\sigma'_1+\sigma'_3=10$ and $\sigma'_1\equiv1\pmod4$; $\sigma'_1\in\{1,5\}$ is incompatible with $9a_1\ge54-\sigma'_3$, so $(\sigma'_1,\sigma'_3)=(9,1)$, and $9a_1=56+4a_6-3a_3$ gives $(a_1,a_3,a_6)=(8,0,4)$ and $a_4+a_{12}=2$, a contradiction. If $\sigma_2=3$, then $\sigma'_1+\sigma'_3=12$ and $\sigma'_1\equiv0\pmod4$; $\sigma'_1\in\{0,4\}$ is excluded in the same way, and $\sigma'_1=12$ gives $\sigma'_3=0$ and $9a_1=54+4a_6$, so $a_6=0$ and the monodromy of $K_3$ would be trivial, contrary to Lemma~\ref{lem:K3full}. Hence $(\sigma'_1,\sigma'_3)=(8,4)$ and $9a_1=62+4a_6-3a_3$, which forces $a_6=1$ and $a_3\in\{1,4\}$; $a_3=4$ gives $a_4+a_{12}=2$, a contradiction, and $a_3=1$ gives the asserted tuple. \end{proof} \subsection{The triple plane} By Lemma~\ref{lem:tuple}, the transpositions on $K_2$ occur at the points with $\delta_x\in\{4,12\}$, which have $n_x=1$ and total number $a_4+a_{12}=4$. Hence the normalization $\nu_2\colon Z_2\to B$ of $B$ in the triple cover defined by $K_2\setminus\{0\}$ is connected and satisfies the assumptions of Lemma~\ref{lem:triple}, with four branch points on $\ell$. \begin{lemma}\label{lem:noscroll} The surface $Z_2$ is not a smooth cubic scroll. \end{lemma} \begin{proof} Suppose that it is, and let $\Gamma\subset B^\vee$ be the cubic of Lemma~\ref{lem:triple}(b). As in the proof of Proposition~\ref{prop:cone}, the augmentation part of $\nu_{2*}\FF_{2,Z_2}$ has a Radon transform with a constituent supported on $\Gamma$ of generic rank one, and by Lemmas~\ref{lem:redperv} and~\ref{lem:redstalk}, the meridian $g$ around $\Gamma$ acts on $W$ as a reflection which acts trivially on every generic simple constituent of $W$ modulo $2$; here we use Lemma~\ref{lem:half}, by which $g$ has at most one eigenvalue different from $1$, equal to $-1$. Let $G_0\triangleleft G_W$ be the kernel of the action on the semisimplification of $W_{\mathcal O}\otimes\FF_2$ for a $G_W$-stable lattice $W_{\mathcal O}\subset W\otimes\QQ_2$; as in the proof of Proposition~\ref{prop:cone}, $G_0$ is a $2$-group, and it contains all conjugates of $g$. Choose a $G_W$-invariant positive inner product $\langle\cdot,\cdot\rangle$ on $W$ and a $G_W$-stable lattice $W_\ZZ\subset W$. Let $s_1\ne s_2$ be conjugates of $g$ in $G_W$, and let $u_1,u_2\in W_\ZZ$ be primitive vectors with $s_i(u_i)=-u_i$. An element of $G_W$ conjugating $s_1$ to $s_2$ maps $u_1$ to $\pm u_2$, so $\langle u_1,u_1\rangle=\langle u_2,u_2\rangle$, and $s_1(u_2)=u_2-2cu_1$ with $c\coloneqq\langle u_1,u_2\rangle/\langle u_1,u_1\rangle$. Since $s_1(u_2)\in W_\ZZ$ and $u_1$ is primitive, $2c\in\ZZ$, and $|c|<1$ since $s_1\ne s_2$. If $c=\pm\frac12$, then $s_1s_2$ has order three, which is impossible in the $2$-group $G_0$. Hence $c=0$, that is, the lines of distinct conjugates of $g$ are orthogonal. Since $W$ is irreducible, these lines span $W$, so they form an orthogonal basis of $W$, the conjugates of $g$ are the coordinate sign changes, and $G_W$ acts on this basis by signed permutations, permuting the axes transitively. Modulo $3$, $W$ is then absolutely irreducible, since the distinct characters of the sign changes are permuted transitively, and a signed permutation has the same fixed dimension modulo $3$ as in characteristic zero. By Lemmas~\ref{lem:redperv} and~\ref{lem:redstalk}, the reduction modulo $3$ of $\IC_{B^\vee}(W)$ has no constituent supported on a curve. Constituents supported on points have inverse Radon transforms supported on lines, so the reduction modulo $3$ of $\IC_B(V)$, up to constant and line-supported constituents, has at most one nonconstant generic simple constituent. However, $K_3$ and $Q_3$ are two nonisomorphic generic simple constituents of $\Lambda'\otimes\FF_3$: their transvection loci are nonempty and disjoint by Lemma~\ref{lem:tuple}. This contradiction proves the lemma. \end{proof} \begin{lemma}\label{lem:concur} Suppose that $Z_2$ is a cone, and let $o\in B$ be the image of its vertex. Then all components of $\Delta$ along which $K_2$ or $K_3$ has nontrivial local monodromy are lines through $o$. \end{lemma} \begin{proof} By Lemma~\ref{lem:triple}(b), the four branch curves of $\nu_2$ are lines through $o$; by Lemma~\ref{lem:tuple}, three of them have $\delta=12$ and one has $\delta=4$. By Lemma~\ref{lem:tuple} and $\sum_x(n_x-1)=\sigma_1-N\le2$, the points $x\in\ell\cap\Delta$ with $3\mid\delta_x$ satisfy $n_x=1$, so the local monodromy on $K_3$ is nontrivial exactly at these points, which lie on the three lines with $\delta=12$ and on two further lines with $\delta=3$ and $\delta=6$, since $a_3=a_6=1$. Suppose that one of these five lines meets each of the others in distinct double points; choosing another of the lines at infinity and applying the product theorem of Oka--Sakamoto \cite{OS78} to the affine arrangement, its meridian commutes with the monodromy of the arrangement, which contradicts the fact that a noncentral transvection of $\SL(K_3)$ has a noncommuting conjugate. If no line has this property and the five lines are not concurrent, then exactly three of them pass through $o$ and the two others meet on one of these three, which gives two triple points on a common line. Taking this line at infinity, the complement of the arrangement is a product of two twice punctured affine lines, so the transvections attached to different factors commute. If the two transvections of one factor have distinct axes, they generate $\SL(K_3)$, whose centralizer contains no transvection, while the transvections of the other factor commute with them. Otherwise, the two transvections of each factor have a common axis, and since transvections with distinct axes do not commute, all four have the same axis; then the monodromy group of $K_3$, which is generated by them and the meridian around the line at infinity, fixes this axis, contrary to Lemma~\ref{lem:K3full}. Hence the five lines are concurrent at $o$. \end{proof} \begin{proposition}\label{prop:twelvehigh} If $d=12$, then $r=1$. \end{proposition} \begin{proof} Suppose $r\ge2$. By Lemmas~\ref{lem:triple} and~\ref{lem:noscroll}, $Z_2$ is a cone, and by Lemma~\ref{lem:concur}, $K_p\simeq\mathrm{pr}_o^*\bar K_p$ for $p\in\{2,3\}$, where $\mathrm{pr}_o\colon B\setminus\{o\}\to o^\vee$ is the projection and $\bar K_p$ is a local system on the complement of finitely many points of $o^\vee$ with monodromy group $\SL(K_p)$, as in the proof of Proposition~\ref{prop:d2}. Hence the nonconstant part of the Radon transform of $\IC_B(K_p)$ is supported on the line $o^\vee\subset B^\vee$, and its coefficient along $o^\vee$ contains $\bar K_p$: for a line $\ell'\ni o$, the restriction of $K_p$ to $\ell'\setminus\{o\}$ is constant with fiber the fiber of $\bar K_p$ at $[\ell']\in o^\vee$, while for $\ell'\not\ni o$ the cohomology of $\ell'$ with coefficients in $\IC_B(K_p)$ does not depend on $\ell'$. Let $\Gamma_o$ be the fundamental group of a punctured tubular neighborhood of a dense open subset of $o^\vee$ as in Lemma~\ref{lem:redstalk}, let $H_o\subset G_W$ be its image, and let $g\in H_o$ be the action on $W$ of a meridian around $o^\vee$, which is central in $H_o$. Let $p\in\{2,3\}$, let $W_{(p)}$ be the subspace of $W$ fixed by the prime-to-$p$ part of $g$, and let $W^*_{(p)}\subset W_{(p)}$ be the sum of the eigenspaces of $g$ with eigenvalues of order a positive power of $p$. The averaging idempotent of the prime-to-$p$ part of $g$ commutes with $H_o$ and with reduction of an $H_o$-stable lattice. Hence, by Lemmas~\ref{lem:redperv} and~\ref{lem:redstalk}, the class of the sum $D_p$ of the coefficients of the composition factors supported on $o^\vee$ in the Grothendieck group of $\Gamma_o$-representations over $\FF_p$ satisfies \[ 0\le[D_p]=\sum_i[S_i^g]-[\overline{W^g}]\le[\overline{W_{(p)}}]-[\overline{W^g}]=[\overline{W^*_{(p)}}], \] where the $S_i$ are the generic simple constituents of the reduction of $W$, and the bar denotes the reduction of a stable lattice. On the summand of $W^*_{(p)}$ where $g$ has eigenvalues of order $p^j$, the representation of $H_o$ is defined over $\QQ_p(\zeta_{p^j})$, of some dimension $k_j$, and by total ramification its reduction is $\varphi(p^j)$ copies of the reduction of a representation of dimension $k_j$. By Lemma~\ref{lem:redperv}(c), $D_p$ has a composition factor isomorphic to $\bar K_p$, viewed as a representation of $\Gamma_o$ through the surjection of $\Gamma_o$ onto the fundamental group of a dense open subset of $o^\vee$; it is absolutely irreducible of dimension two, since its monodromy group is $\SL(K_p)$. Hence $k_j\ge2$ for some $j$, so $\dim W^*_{(p)}\ge2\varphi(p)=2(p-1)$. The subspaces $W^*_{(2)}$ and $W^*_{(3)}$ are disjoint, so $r\ge2+4=6$, whereas $r=N-b_2(X)-6\le15-11=4$. This contradiction proves the proposition. \end{proof} \noindent For the fundamental groups of complements of line arrangements, see \cite{OS78}. \section{Polarization types \texorpdfstring{$(1,10)$}{(1,10)}, \texorpdfstring{$(1,12)$}{(1,12)} and \texorpdfstring{$(1,20)$}{(1,20)} with \texorpdfstring{$r=1$}{r=1}}\label{sec:rkone12} In this section, we suppose $r=1$ and $d\in\{10,12,20\}$, and we derive a contradiction (Propositions~\ref{prop:five} and~\ref{prop:rk1twelve}). We use the double plane of Section~\ref{sec:rankone}: by Proposition~\ref{prop:sextic}, $\Delta_\tau\subset B^\vee$ is a reduced sextic, $S_W$ has only Du Val singularities, its minimal resolution $\tilde S_W$ is a K3 surface, and the exceptional divisor $\mathcal E\subset\tilde S_W$ spans a negative definite lattice $R_\tau$ of rank $23-b_2(X)\le18$. For general $x\in B$, put $J_x\coloneqq H_1(C_x,\ZZ)$, where $C_x=\tau^{-1}(x^\vee)$ is a smooth curve of genus two. \begin{lemma}\label{lem:Atypes} The following hold. \begin{enumerate} \item Every singular point of $\Delta_\tau$ is of type $A_k$ for some $k\ge1$. \item Let $x$ be a general point of an irreducible curve of $\Delta$. If $x^\vee$ passes through a singular point of type $A_k$ of $\Delta_\tau$, then the local monodromy at $x$ acts on $J_x$ by $T_w^{k+1}$, where $w$ is a primitive nonseparating cycle and $T_w$ is its Picard--Lefschetz transvection. If $x^\vee$ is simply tangent to $\Delta_\tau$, then the local monodromy at $x$ acts on $J_x$ by $T_w$ for a primitive nonseparating cycle $w$. \item Every $x\in\ell\cap\Delta$ is multiplicative. \end{enumerate} \end{lemma} \begin{proof} For general $x$ in a component of $\Delta$, the line $x^\vee$ is simply tangent to $\Delta_\tau$ or passes through one singular point of $\Delta_\tau$, which is a simple singularity since $S_W$ has Du Val singularities. At a point of type $A_k$, two of the six branch points of $C_x\to x^\vee$ collide, and on a transverse family of lines their squared difference vanishes to order $k+1$; hence the monodromy is the $(k+1)$-st power of a half twist, whose lift is $T_w^{k+1}$, where $w$ is the lift of the matching arc, a primitive nonseparating cycle since the other four branch points are distinct. At a simple tangency the order is one. This proves (b). At a point of type $D_4$, three branch points collide, and a loop acts by a full twist on them, whose lift acts by $-1$ on the homology of their local double cover; at a point of type $D_n$, $n>4$, with local equation $y(x^2+y^{n-2})$, the monodromy is the product of this full twist with a power of a half twist of the closer pair, which still has the eigenvalue $-1$. This is excluded by Lemma~\ref{lem:types}(c). For the types $E_6,E_7,E_8$, with local equations $x^3+y^4$, $x(x^2+y^3)$, $x^3+y^5$, take the transverse family $y=s+cx$ with general $c$, put $s=u^e$, $x=u^aX$ and $z=u^bZ$ for the coordinate $z$ of the double cover, with $(e,a,b)=(3,4,6),(4,6,9),(6,10,15)$; then the limit $Z^2=X^3+1$, $Z^2=X(X^2+1)$, $Z^2=X^3+1$ is a smooth elliptic curve, and the good differential $dX/Z$ has the character $\zeta_e^{b-a}$, so the rotating plane has the normalized Hodge exponent $\frac23,\frac34,\frac56$. Since $V\simeq\{H^1(C_x,\QQ)\}$ by Proposition~\ref{prop:sextic}(b), and a rational isogeny identifies the Hodge lattices of the good models up to maps whose composite is a nonzero integer, these exponents would equal $\frac13,\frac14,\frac16$ by Lemma~\ref{lem:contact}(a), a contradiction. This proves (a). By (a) and (b), the local monodromy at every $x\in\ell\cap\Delta$ is unipotent, so (c) follows from Lemma~\ref{lem:types}(c). \end{proof} \noindent For the local models of the singular fibers, see \cite[Theorem~1.0.1]{Kim26}. \begin{lemma}\label{lem:fixedchar} Suppose that a prime $p\in\{3,5\}$ divides $d$. Then $H^1(\tilde S_W\setminus\mathcal E,\FF_p)\ne0$. \end{lemma} \begin{proof} If $J_x/pJ_x$ were irreducible under the monodromy, every monodromy invariant $\ZZ_p$-lattice in $J_x\otimes\QQ_p$ would be homothetic to $J_x\otimes\ZZ_p$, by Nakayama's lemma after rescaling to a lattice with nonzero image in $J_x/pJ_x$. By Proposition~\ref{prop:mono}, the invariant alternating forms on $J_x\otimes\QQ$ form a line, so the primitive form $\theta$ on the invariant lattice $\Lambda_{\ZZ_p}$ would be unimodular at $p$, contrary to $p\mid d$. Hence $J_x/pJ_x$ is reducible. Consider the sign local system $W$ on $U_W\subset B^\vee$. Its meridian $g$ along the smooth part of $\Delta_\tau$ satisfies $g-1=-2$, which is invertible on $\ZZ_p$, so its invariants and coinvariants modulo $p$ vanish; hence the reduction modulo $p$ of $\IC_{B^\vee}(W)$ is the intermediate extension of the reduction of $W$, up to constituents supported on points. By Lemmas~\ref{lem:redperv} and~\ref{lem:redstalk}, and since the inverse Radon transform of a constituent supported on a point is supported on a line, $J_x/pJ_x$ has at most one nonconstant generic simple constituent, with multiplicity one, as a representation of $\pi_1(B^\circ)$, and by the Zariski--Lefschetz theorem the same holds for the restriction to a general pencil. Since $J_x/pJ_x$ is self-dual and reducible, its socle contains a trivial constituent: if the nonconstant simple constituent $\mathsf T$ were the whole socle, then $\mathsf T\simeq\mathsf T^\vee$ would also be a quotient, the composite $\mathsf T\to J_x/pJ_x\to\mathsf T$ would be nonzero by multiplicity one, and $\mathsf T$ would split off with a nonzero complement whose constituents are trivial, so the complement contains an invariant vector. Hence $J_x/pJ_x$ has a nonzero invariant vector, and by the symplectic pairing, $H^1(C_x,\FF_p)$ has a nonzero element $\chi_0$ invariant under the monodromy of a general pencil. Blow up the two base points of a general pencil of curves $C_x$ in the smooth locus of $S_W$. Over the punctured pencil, the base has trivial $\pi_2$, and an exceptional section splits the homotopy exact sequence, so $\chi_0$ extends to the total space of the smooth part of the family, with value zero on the section subgroup. Adding the singular fibers kills the normal subgroup generated by meridians of their irreducible components; each such fiber is irreducible and generically reduced, since the four branch points outside the colliding pair are simple, so the meridian can be taken at the point met by a section, where the character vanishes. Hence $\chi_0$ descends to the blowup of the smooth locus of $S_W$, and since blowing down the two sections does not change the fundamental group, to $S_W\setminus\mathrm{Sing}(S_W)=\tilde S_W\setminus\mathcal E$. The resulting character is nonzero, since its restriction to $C_x$ is $\chi_0$. \end{proof} \begin{lemma}\label{lem:code} Let $R_\tau=\bigoplus_hA_{k_h}(-1)$ be the decomposition of the exceptional lattice into irreducible root lattices. \begin{enumerate} \item If $3\mid d$, there is a set of indices $h$ with $k_h=3j_h-1$ and $\sum_hj_h\in\{6,9\}$. \item If $5\mid d$, there is a set of indices $h$ such that $\{A_{k_h}\}$ is one of $4A_4$, $2A_4+A_9$, $A_4+A_{14}$, $2A_9$. \end{enumerate} \end{lemma} \begin{proof} Since $H^1(\tilde S_W,\FF_p)=0$, the cohomology sequence of the pair $(\tilde S_W,\tilde S_W\setminus\mathcal E)$ identifies $H^1(\tilde S_W\setminus\mathcal E,\FF_p)$ with the kernel of the class map $R_\tau\otimes\FF_p\to H^2(\tilde S_W,\FF_p)$. By Lemma~\ref{lem:fixedchar}, the saturation $\bar R_\tau$ of $R_\tau$ in $H^2(\tilde S_W,\ZZ)$ satisfies $p\mid\#(\bar R_\tau/R_\tau)$. A class of square $-2$ in $\bar R_\tau$ is effective up to sign by the Riemann--Roch theorem, and since it is orthogonal to the pullback of a line, it is supported on $\mathcal E$; hence $\bar R_\tau$ contains no roots outside $R_\tau$, and every element of $\bar R_\tau\setminus R_\tau$ has norm at least four, the norm being minus the square. The discriminant group of $A_{n-1}$ is $\ZZ/n$, and the minimal norm of a representative of the residue $i$ is $i(n-i)/n$. For $p=3$, an element of order three of $\bar R_\tau/R_\tau$ has nonzero components only in summands $A_{3j-1}$, where the minimal norm of a nonzero residue of order three is $\frac{2j}3$. Its norm $\frac23\sum_hj_h$ over the active summands is an even integer at least four, so $3\mid\sum_hj_h\ge6$; since $\sum_h(3j_h-1)\le\rk R_\tau\le18$ and $3j-1\ge2j$, we get $\sum_hj_h\le9$. For $p=5$, an element of order five and its double have nonzero components only in summands $A_{5j-1}$, where their minimal norms add up to $\frac{4j}5+\frac{6j}5=2j$; both norms are at least four, so $\sum_hj_h\ge4$, and $\sum_h(5j_h-1)\le18$ gives $\sum_hj_h=4$. The partitions of $4$ give the stated configurations, except $A_{19}$, which has rank $19>18$. \end{proof} \begin{lemma}\label{lem:bigcomp} Suppose $5\mid d$. Then the following hold. \begin{enumerate} \item $\Delta_\tau$ has an irreducible component of degree at least five. \item The monodromy group of $J_x/2J_x$ is irreducible. \end{enumerate} \end{lemma} \begin{proof} By Corollary~\ref{cor:N12}, $b_2(X)=5$, so $\rk R_\tau=18$. A singular point of type $A_k$ with $k$ even is unibranch, and a point of type $A_{2h-1}$ at which two distinct components meet has local intersection number $h$. By Lemma~\ref{lem:code}(b), the remaining singular points have total rank at most $2,1,0,0$ for the four configurations, so the sum of the local intersection numbers between distinct components lies in $\{0,1,2\}$, $\{0,1,5,6\}$, $\{0\}$ and $\{0,5,10\}$, respectively. By B\'ezout's theorem, this sum is $\sum_{i0$}, preprint (2023), arXiv:2307.04156v2. \bibitem[PS12]{PS12} C.~Peters and M.~Saito, \emph{Lowest weights in cohomology of variations of Hodge structure}, Nagoya Math. J. \textbf{206} (2012), 1--24. \bibitem[Ros96]{Ros96} M.~Rost, \emph{Chow groups with coefficients}, Doc. Math. \textbf{1} (1996), 319--393. \bibitem[Sai88]{Sai88} M.~Saito, \emph{Modules de Hodge polarisables}, Publ. Res. Inst. Math. Sci. \textbf{24} (1988), 849--995. \bibitem[Saw03]{Saw03} J.~Sawon, \emph{Abelian fibred holomorphic symplectic manifolds}, Turkish J. Math. \textbf{27} (2003), 197--230. \bibitem[Sch73]{Sch73} W.~Schmid, \emph{Variation of Hodge structure: the singularities of the period mapping}, Invent. Math. \textbf{22} (1973), 211--319. \bibitem[Ser73]{Ser73} J.-P.~Serre, \emph{A course in arithmetic}, Grad. Texts in Math. \textbf{7}, Springer, New York, 1973. \bibitem[Ste76]{Ste76} J.~H.~M.~Steenbrink, \emph{Limits of Hodge structures}, Invent. Math. \textbf{31} (1976), 229--257. \bibitem[Tig25]{Tig25} B.~Tighe, \emph{The Looijenga--Lunts--Verbitsky algebra for primitive symplectic varieties with isolated singularities}, \'Epijournal G\'eom. Alg\'ebrique \textbf{9} (2025), Article No.~6. \bibitem[vGV16]{vGV16} B.~van Geemen and C.~Voisin, \emph{On a conjecture of Matsushita}, Int. Math. Res. Not. IMRN \textbf{2016}, no.~10, 3111--3123. \bibitem[WW24]{WW24} H.~Wang and B.~Williams, \emph{Modular forms with poles on hyperplane arrangements}, Algebr. Geom. \textbf{11} (2024), 506--568. \bibitem[Wie16]{Wie16} B.~Wieneck, \emph{On polarization types of Lagrangian fibrations}, Manuscripta Math. \textbf{151} (2016), 305--327. \bibitem[Yos01]{Yos01} K.~Yoshioka, \emph{Moduli spaces of stable sheaves on abelian surfaces}, Math. Ann. \textbf{321} (2001), 817--884. \bibitem[Yos06]{Yos06} K.~Yoshioka, \emph{Moduli spaces of twisted sheaves on a projective variety}, in: Moduli spaces and arithmetic geometry, Adv. Stud. Pure Math. \textbf{45}, Math. Soc. Japan, Tokyo, 2006, 1--30. \end{thebibliography} \ifdefined\HKExportChecks \begin{filecontents*}[noheader]{hk4-norm-check.py} """Independent check of the quark-sum lemma (three values of Q(a,b)=a^2+ab+b^2).""" from math import gcd, isqrt, log, sqrt from fractions import Fraction M = 100_000 def Q(a, b): return a * a + a * b + b * b def marked(a, b): g = gcd(a, b) return ((a - b) // g) % 3 != 0 P = set() P0 = set() for a in range(1, isqrt(M) + 1): for b in range(1, a + 1): v = Q(a, b) if v > M: break P.add(v) if marked(a, b): P0.add(v) print("|P| =", len(P), " |P0| =", len(P0)) mask = (1 << (M + 1)) - 1 u = 0 for j in P0: u |= 1 << j counts = [] for it in range(2): new = 0 for j in P: new |= (u << j) & mask u = new counts.append(bin(u).count("1")) print("nonzero bits u1, u2 =", counts) exceptional = [n for n in range(1, M + 1) if not (u >> n) & 1] print("exceptional =", exceptional) assert exceptional == list(range(1, 13)) + [14, 15, 16, 18, 20, 24, 30, 36] # theta series identities for small n N = 400 r1 = [0] * (N + 1) R = isqrt(2 * N) + 2 for a in range(-R, R + 1): for b in range(-R, R + 1): v = Q(a, b) if v <= N: r1[v] += 1 def conv(x, y): z = [0] * (N + 1) for i, xi in enumerate(x): if xi: for j in range(N + 1 - i): z[i + j] += xi * y[j] return z r2 = conv(r1, r1) r3 = conv(r2, r1) def chi(n): return 0 if n % 3 == 0 else (1 if n % 3 == 1 else -1) def sigma(x): if x != int(x) or x <= 0: return 0 x = int(x) return sum(d for d in range(1, x + 1) if x % d == 0) for n in range(1, N + 1): assert r2[n] == 12 * (sigma(n) - 3 * (sigma(Fraction(n, 3)) if n % 3 == 0 else 0)), n A = sum(chi(d) * d * d for d in range(1, n + 1) if n % d == 0) B = sum(chi(n // d) * d * d for d in range(1, n + 1) if n % d == 0) assert r3[n] == 27 * B - 9 * A, n print("r2, r3 formulas verified for n <=", N) print("r1[1], r2[1], r3[1] =", r1[1], r2[1], r3[1]) # sigma bound used for r2(m) <= 12 m (1 + log m) for m in range(1, 5000): assert sigma(m) <= m * (1 + log(m)) + 1e-9 # analytic bound at n = 10^5 and monotonicity of f(n) = 108(2 sqrt n + 1)(1+log n)/n n = 10**5 f = lambda n: 108 * (2 * sqrt(n) + 1) * (1 + log(n)) / n print("108(2sqrt n+1) n (1+log n) / (9 n^2) at 1e5 =", f(n) / 9) assert f(n) < 9 # derivative of f is negative for n >= 1e5 (check numerically on a grid) prev = f(n) k = n while k < 10**12: k = int(k * 1.01) + 1 cur = f(k) assert cur < prev prev = cur print("all md:norm checks passed") \end{filecontents*} \begin{filecontents*}[noheader]{hk4-table-check.py} """Independent check of the polarization-type table and of all theta blocks used.""" from fractions import Fraction as Fr from math import gcd, isqrt from itertools import product LEVEL = 2**4 * 3**2 * 5 * 7 * 11 assert LEVEL == 55440 DIVS = [d for d in range(1, LEVEL + 1) if LEVEL % d == 0] def exact(t, d): return d % t == 0 and gcd(t, d // t) == 1 def Q(a, b): return a * a + a * b + b * b def omega(n): k, p = 0, 2 while n > 1: if n % p == 0: k += 1 while n % p == 0: n //= p p += 1 return k def w(t): return 1 if t == 1 else 2 ** (omega(t) - 1) # ---- theta blocks: (eta exponent a, dilations) ---- def block_data(a, dil): weight = Fr(a + len(dil), 2) index = Fr(sum(j * j for j in dil), 2) qorder = Fr(a, 24) + Fr(len(dil), 8) mult = a + 3 * len(dil) # exponent of the eta multiplier parity = sum(dil) % 2 return weight, index, qorder, mult, parity def cusp_ok(a, dil, rng=3): """Check 4 t n - r^2 > 0 for all monomials of eta^a prod theta_{j}, by Cauchy-Schwarz argument: if a>0 the eta^a factor shifts n by >= a/24; else need x not proportional to J.""" t = Fr(sum(j * j for j in dil), 2) # brute force over small half-integer vectors as a sanity check of the CS argument halfs = [Fr(2 * k + 1, 2) for k in range(-rng, rng)] for x in product(halfs, repeat=len(dil)): n = sum(xi * xi for xi in x) / 2 + Fr(max(a, 0), 24) * (1 if a > 0 else 0) r = sum(xi * j for xi, j in zip(x, dil)) if a > 0: n += 0 # eta^a contributes q^{a/24 + nonneg integer}; minimal exponent a/24 already disc = 4 * t * (sum(xi * xi for xi in x) / 2 + (Fr(a, 24) if a > 0 else 0)) - r * r if disc <= 0: return False return True blocks = { "quark-product weight 3 (general)": None, "d=5 eta^3 th1^6 th2": (3, (1,) * 6 + (2,)), "d=7 th1^6 th2^2": (0, (1,) * 6 + (2, 2)), "d=8 eta^3 th1^4 th2^3": (3, (1,) * 4 + (2,) * 3), "t=10": (0, (1, 1, 1, 1, 2, 2, 2, 2)), "t=15": (0, (1, 1, 1, 1, 2, 2, 3, 3)), "t=18": (0, (1, 1, 2, 2, 2, 2, 3, 3)), "t=20": (0, (1, 1, 1, 2, 2, 2, 3, 4)), } for name, data in blocks.items(): if data is None: continue a, dil = data wt, ind, qo, mult, par = block_data(a, dil) print(f"{name:24s} weight {wt} index {ind} q-order {qo} multiplier {mult} sum-parity {par}") assert qo == 1 and mult % 24 == 0 and par == 0 and wt.denominator == 1 assert cusp_ok(a, dil, rng=2), name mixed = { 28: [(1, 1), (2, 2), (3, 1)], 40: [(2, 1), (2, 2), (4, 1)], 45: [(2, 1), (2, 1), (5, 1)], 48: [(2, 1), (3, 1), (4, 2)], 63: [(2, 1), (2, 1), (5, 3)], 72: [(2, 1), (3, 1), (6, 2)], 80: [(1, 1), (4, 2), (5, 3)], 112: [(1, 1), (4, 4), (5, 4)], } def marked(a, b): g = gcd(a, b) return ((a - b) // g) % 3 != 0 for t, pairs in mixed.items(): assert sum(Q(a, b) for a, b in pairs) == t assert any(marked(a, b) for a, b in pairs) dil = [x for a, b in pairs for x in (a, b, a + b)] a_eta = -3 wt, ind, qo, mult, par = block_data(a_eta, dil) assert wt == 3 and ind == t and qo == 1 and mult % 24 == 0 and par == 0, (t, wt, ind, qo, mult, par) assert w(t) == 2 h = len(dil); h2 = sum(x % 2 == 0 for x in dil); h3 = sum(x % 3 == 0 for x in dil) assert h == 9 and h2 >= 3 and (h3 >= 2 if t % 3 == 0 else True) print("mixed quark triples verified") def additive_bounds(k, h, hs, wt_, t, glues): """lower bounds of Lemma (orders): returns list of (case, bound).""" out = [] for e in (6, 4, 3): out.append(("s=1,e=%d" % e, Fr(k, e) + Fr(h, wt_))) for s, e in glues: if t % s: out.append(("s=%d not| t" % s, Fr(k, e) + Fr(h, (s + 1) * wt_))) else: out.append(("s=%d | t" % s, Fr(k, e) + Fr(hs[s], wt_))) return out # s=2 occurs with e=4 (type III), s=3 with e=3 (type IV) GLUES = [(2, 4), (3, 3)] for t, pairs in mixed.items(): dil = [x for a, b in pairs for x in (a, b, a + b)] hs = {2: sum(x % 2 == 0 for x in dil), 3: sum(x % 3 == 0 for x in dil)} for case, bnd in additive_bounds(3, 9, hs, 2, t, GLUES): assert bnd >= 2, (t, case, bnd) for t in (10, 15, 18, 20): dil = blocks["t=%d" % t][1] hs = {2: sum(x % 2 == 0 for x in dil), 3: sum(x % 3 == 0 for x in dil)} for case, bnd in additive_bounds(4, 8, hs, 2, t, GLUES): assert bnd >= 2, (t, case, bnd) # prime power levels outside the exceptional set: three quarks, w=1, h=9, h2>=3, h3>=1 for case, bnd in additive_bounds(3, 9, {2: 3, 3: 1}, 1, 2, GLUES) + additive_bounds(3, 9, {2: 3, 3: 1}, 1, 3, GLUES) + additive_bounds(3, 9, {2: 3, 3: 1}, 1, 5, GLUES): assert bnd >= 2, (case, bnd) print("additive lower bounds >= 2 verified") # ---- Guan rows and the table ---- rows = [(5, 4 * j) for j in range(10)] + [(6, 4 * j) for j in range(5)] + [(7, 0), (7, 8), (8, 0), (23, 0)] table = {} for b, b3 in rows: h = 248 - b + b3 // 4 assert 4 * h == 992 - 4 * b + b3 cand = [d for d in DIVS if isqrt(d * h) ** 2 == d * h] if not cand: continue remaining = [] notes = {} for d in cand: if b == 23: remaining.append(d) continue if any(exact(t, d) for t in mixed): continue # N <= 9 < b + 7 small = [t for t in (10, 15, 18, 20) if exact(t, d)] if small: if b + 7 > 12: continue notes[d] = "N=12" remaining.append(d) table[(b, b3)] = (h, cand, remaining, notes) for k, v in table.items(): print(k, "h =", v[0], "candidates", v[1], "remaining", v[2], v[3]) expect = {(5, 0): [3, 12], (5, 8): [5, 20], (5, 28): [10], (5, 36): [7], (6, 0): [2, 8], (6, 4): [3, 12], (6, 12): [5], (7, 8): [3, 12], (23, 0): [1, 4, 9, 16, 36, 144]} assert {k: v[2] for k, v in table.items() if v[2]} == expect # the rows 10,20 are exactly those with N=12 assert table[(5, 28)][3] == {10: "N=12"} and table[(5, 8)][3] == {20: "N=12"} # R values used later import math for (b, b3), ds in expect.items(): for d in ds: h = 248 - b + b3 // 4 R2 = Fr(4 * h, d) R = isqrt(int(R2)) if R2.denominator == 1 else None print((b, b3), "d =", d, "R^2 =", R2, "R =", R if R is not None and R * R == R2 else "non-square") # Euler characteristics for b, b3 in [(5, 8), (6, 12), (23, 0), (7, 8)]: print((b, b3), "e(X) =", 48 + 12 * b - 3 * b3) print("table verified") \end{filecontents*} \begin{filecontents*}[noheader]{hk4-hesse-check.py} """Independent exact check of the Hesse-pencil kernel computation (no sympy).""" from fractions import Fraction as Fr from itertools import product from math import comb # polynomials: dict {exponent tuple: Fraction} def padd(p, q, c=1): r = dict(p) for k, v in q.items(): r[k] = r.get(k, 0) + c * v if r[k] == 0: del r[k] return r def pmul(p, q): r = {} for k1, v1 in p.items(): for k2, v2 in q.items(): k = tuple(a + b for a, b in zip(k1, k2)) r[k] = r.get(k, 0) + v1 * v2 if r[k] == 0: del r[k] return r def ppow(p, n, nvars): r = {(0,) * nvars: Fr(1)} for _ in range(n): r = pmul(r, p) return r # variables for binary restriction: (X, Y, u, v) X = {(1, 0, 0, 0): Fr(1)} Y = {(0, 1, 0, 0): Fr(1)} U = {(0, 0, 1, 0): Fr(1)} V = {(0, 0, 0, 1): Fr(1)} Zline = padd(pmul(U, X), pmul(V, Y)) # z = u x + v y MONO = [(i, j) for i in range(4) for j in range(4 - i)] # x^i y^j z^(3-i-j) TARGETS = [(i, j) for i in range(4) for j in range(4 - i)] # u^i v^j def restrict(cubic): """cubic: dict {(i,j,k): coeff} with i+j+k=3 -> list a_0..a_3 of polys in (u,v).""" total = {} for (i, j, k), c in cubic.items(): term = pmul(pmul(ppow(X, i, 4), ppow(Y, j, 4)), ppow(Zline, k, 4)) total = padd(total, {kk: c * vv for kk, vv in term.items()}) coeffs = [] for s in range(4): # coefficient of X^(3-s) Y^s poly = {} for (ex, ey, eu, ev), c in total.items(): if ex == 3 - s and ey == s: poly[(eu, ev)] = poly.get((eu, ev), 0) + c coeffs.append({k: v for k, v in poly.items() if v != 0}) return coeffs def pairing(F, G): a = restrict(F) b = restrict(G) res = {} for i in range(4): term = pmul(a[i], b[3 - i]) res = padd(res, {k: v * Fr((-1) ** i, comb(3, i)) for k, v in term.items()}) return res def mono_cubic(i, j): return {(i, j, 3 - i - j): Fr(1)} def pairing_matrix(F): cols = [] for (i, j) in MONO: p = pairing(F, mono_cubic(i, j)) for (eu, ev) in p: assert eu + ev <= 3, ("degree bound violated", eu, ev) cols.append([p.get(t, Fr(0)) for t in TARGETS]) # matrix rows = targets, cols = input monomials return [[cols[c][r] for c in range(10)] for r in range(10)] def det(M): M = [row[:] for row in M] n = len(M) d = Fr(1) for c in range(n): piv = next((r for r in range(c, n) if M[r][c] != 0), None) if piv is None: return Fr(0) if piv != c: M[c], M[piv] = M[piv], M[c] d = -d d *= M[c][c] for r in range(c + 1, n): f = M[r][c] / M[c][c] if f: for k in range(c, n): M[r][k] -= f * M[c][k] return d def rank(M): M = [row[:] for row in M] n, m = len(M), len(M[0]) rk = 0 for c in range(m): piv = next((r for r in range(rk, n) if M[r][c] != 0), None) if piv is None: continue M[rk], M[piv] = M[piv], M[rk] for r in range(n): if r != rk and M[r][c] != 0: f = M[r][c] / M[rk][c] for k in range(m): M[r][k] -= f * M[rk][k] rk += 1 return rk def cubic_from(terms): """terms: list of (coeff, i, j, k) meaning coeff * x^i y^j z^k""" d = {} for c, i, j, k in terms: d[(i, j, k)] = d.get((i, j, k), 0) + Fr(c) return {k: v for k, v in d.items() if v != 0} def vec(cubic): return [cubic.get((i, j, 3 - i - j), Fr(0)) for (i, j) in MONO] def apply(M, v): return [sum(M[r][c] * v[c] for c in range(10)) for r in range(10)] def sub(M, idx): return [[M[r][c] for c in idx] for r in idx] H0 = cubic_from([(1, 3, 0, 0), (1, 0, 3, 0), (1, 0, 0, 3)]) H1 = cubic_from([(1, 1, 1, 1)]) # smooth Hesse members: the 8x8 minor equals -(t^3+27)^2/729 idx = [0, 1, 2, 3, 4, 6, 7, 8] for t in [Fr(k, 7) for k in range(-40, 41)] + [Fr(3), Fr(-3), Fr(5, 2)]: F = padd(H0, {k: t * v for k, v in H1.items()}) M = pairing_matrix(F) d = det(sub(M, idx)) assert d == -(t ** 3 + 27) ** 2 / 729, (t, d) assert all(x == 0 for x in apply(M, vec(H0))) assert all(x == 0 for x in apply(M, vec(H1))) print("smooth Hesse minor and kernel verified (degree <= 8 polynomial identity checked at 84 points)") # antisymmetry of the pairing import random random.seed(1) for _ in range(20): F = {k: Fr(random.randint(-5, 5)) for k in [(i, j, 3 - i - j) for (i, j) in MONO]} G = {k: Fr(random.randint(-5, 5)) for k in [(i, j, 3 - i - j) for (i, j) in MONO]} assert padd(pairing(F, G), pairing(G, F)) == {} print("antisymmetry verified") singular = [ ("-x^2(x+z)+y^2z", cubic_from([(-1, 3, 0, 0), (-1, 2, 0, 1), (1, 0, 2, 1)]), [cubic_from([(1, 3, 0, 0), (3, 1, 2, 0)])], "01234568", Fr(-2, 729)), ("y^2z-x^3", cubic_from([(1, 0, 2, 1), (-1, 3, 0, 0)]), [cubic_from([(1, 1, 2, 0)])], "01234578", Fr(2, 81)), ("z(xy+z^2)", cubic_from([(1, 1, 1, 1), (1, 0, 0, 3)]), [cubic_from([(1, 0, 0, 3)])], "12346789", Fr(1, 729)), ("z(xz+y^2)", cubic_from([(1, 1, 0, 2), (1, 0, 2, 1)]), [cubic_from([(1, 0, 0, 3)])], "12356789", Fr(-2, 729)), ("xyz", cubic_from([(1, 1, 1, 1)]), [cubic_from([(1, 3, 0, 0)]), cubic_from([(1, 0, 3, 0)]), cubic_from([(1, 0, 0, 3)])], "124678", Fr(1, 729)), ("xy(x+y)", cubic_from([(1, 2, 1, 0), (1, 1, 2, 0)]), [cubic_from([(1, 3, 0, 0)]), cubic_from([(1, 0, 3, 0)]), cubic_from([(1, 2, 0, 1), (1, 1, 1, 1), (1, 0, 2, 1)])], "012456", Fr(-2, 243)), ("x^2y", cubic_from([(1, 2, 1, 0)]), [cubic_from([(1, 3, 0, 0)]), cubic_from([(1, 0, 3, 0)]), cubic_from([(1, 2, 0, 1)])], "012456", Fr(-2, 243)), ] for name, F, others, digits, expected in singular: M = pairing_matrix(F) rk = rank(M) gens = [F] + others for g in gens: assert all(x == 0 for x in apply(M, vec(g))), (name, g) gm = [vec(g) for g in gens] assert rank(gm) == len(gens) assert 10 - rk == len(gens), (name, rk, len(gens)) I = [int(ch) for ch in digits] d = det(sub(M, I)) assert d == expected, (name, d, expected) assert len(I) == rk print(f"{name:16s} rank {rk}, kernel dim {10-rk}, principal minor {d}") print("all Hesse checks passed") \end{filecontents*} \begin{filecontents*}[noheader]{hk4-level12-check.py} """Independent exact enumeration for primitive level twelve without additive points. Points on a general line: pairs (delta, m), delta | 12, m >= 1. """ from fractions import Fraction as Fr from itertools import product from functools import lru_cache from collections import Counter DELTAS = (1, 2, 3, 4, 6, 12) def v2(n): k = 0 while n % 2 == 0: n //= 2 k += 1 return k # ---------- SL_2(F_3) ---------- def mul(A, B): return tuple(tuple(sum(A[i][k] * B[k][j] for k in range(2)) % 3 for j in range(2)) for i in range(2)) I2 = ((1, 0), (0, 1)) LINES = [(1, 0), (0, 1), (1, 1), (1, 2)] def transvection(s, v): a, b = v # x -> x + s det(x, v) v with det(x,v) = x1 b - x2 a return (((1 + s * a * b) % 3, (-s * a * a) % 3), ((s * b * b) % 3, (1 - s * a * b) % 3)) # sanity: transvection fixes v and has order 3 for s in (1, 2): for v in LINES: T = transvection(s, v) assert (T[0][0] * v[0] + T[0][1] * v[1]) % 3 == v[0] and (T[1][0] * v[0] + T[1][1] * v[1]) % 3 == v[1] assert mul(mul(T, T), T) == I2 and T != I2 @lru_cache(None) def full_sl23(classes): """Is there a tuple of transvections with these parameter classes (in any order, by Hurwitz moves in the given order suffices), product I, and axes spanning >= 2 lines?""" if not classes: return False states = {(I2, frozenset())} for s in classes: new = set() for M, axes in states: for li, v in enumerate(LINES): new.add((mul(M, transvection(s, v)), axes | {li})) states = new return any(M == I2 and len(axes) >= 2 for M, axes in states) # ---------- enumeration ---------- def multisets(N): opts = [(d, m) for d in DELTAS for m in range(1, 16 - N + 1)] def rec(start, left, extra, cur): if left == 0: yield tuple(cur) return for i in range(start, len(opts)): d, m = opts[i] if m - 1 <= extra: cur.append((d, m)) yield from rec(i, left - 1, extra - (m - 1), cur) cur.pop() yield from rec(0, N, 15 - N, []) def basic(terms): x = sum(m for d, m in terms) y = sum(m for d, m in terms if v2(d) == 1) if x + y != 18: return False if sum(Fr(12 * m, d) for d, m in terms) != 108: return False return True def short_count(terms): return sum(m % 2 for d, m in terms if v2(d) == 0) def long_count(terms): return sum(m % 2 for d, m in terms if v2(d) == 2) def K3_list(terms): return tuple(sorted((12 * m // d) % 3 for d, m in terms if d % 3 == 0 and (12 * m // d) % 3)) def Q3_list(terms): out = [] for d, m in terms: if d % 3: s = Fr(4 * m, d) # residue of 4m/delta mod 3 (delta prime to 3) r = (s.numerator * pow(s.denominator, -1, 3)) % 3 if r: out.append(r) return tuple(sorted(out)) def hecke_ok(terms, lines): """Exact Hecke bounds on each globally fixed line in `lines` (the 'vanishing line' of a point with 3 | delta and nontrivial K3 transvection must be line 0, used only when lines == (0,); for trivial K3 all points with 3|delta have 3|m and their lines are free).""" free = [h for h, (d, m) in enumerate(terms) if d % 3 == 0 and (len(lines) == 4 or m % 3 == 0)] for assign in product(range(4), repeat=len(free)): amap = dict(zip(free, assign)) good = True for j in lines: s1 = Fr(0); s2 = Fr(0) for h, (d, m) in enumerate(terms): mp = m * (2 if v2(d) == 1 else 1) if d % 3: width = Fr(mp) else: a = amap.get(h, 0) width = Fr(3 * mp) if a == j else Fr(mp, 3) s1 += width if v2(d) != 1: s2 += width if s1 > 30 or s2 > 12: good = False break if good: return True return False def classify(terms): """returns set of possible images of K3 among {'full','cyclic','trivial'}""" out = set() L = K3_list(terms) if full_sl23(L): out.add("full") if L and sum(L) % 3 == 0 and hecke_ok(terms, (0,)): out.add("cyclic") if not L and hecke_ok(terms, (0, 1, 2, 3)): out.add("trivial") return out results = {} cyclicK2 = Counter() tuples_cyclicK2_full = set() widths_fullK2_fullK3 = set() for N in (13, 14, 15): cnt = Counter() for terms in multisets(N): if not basic(terms): continue sc, lc = short_count(terms), long_count(terms) if sc % 2 or lc % 2 or sc < 4: continue if not full_sl23(Q3_list(terms)): continue cl = classify(terms) if lc >= 4: for c in cl: cnt[c] += 1 if "full" in cl: ws = tuple(sum(m for d, m in terms if d == dd) for dd in DELTAS) A0, C0 = ws[0] + ws[3], ws[2] + ws[5] if (36 - 3 * A0 - C0) % 8 == 0 and (36 - A0 - 3 * C0) % 8 == 0: widths_fullK2_fullK3.add(ws) if N == 15 and lc >= 2 and sum(m for d, m in terms) == 15: for c in cl: cyclicK2[c] += 1 if "full" in cl: tuples_cyclicK2_full.add(tuple(sum(m for d, m in terms if d == dd) for dd in DELTAS)) results[N] = cnt print("N =", N, "K2 full:", dict(cnt)) print("K2 cyclic (N=15, all m=1):", dict(cyclicK2)) print("width vectors for K2 cyclic, K3 full:", sorted(tuples_cyclicK2_full, reverse=True)) print("width vectors for K2 full, K3 full, congruences:", widths_fullK2_fullK3) assert all(c.get("cyclic", 0) == 0 for c in results.values()) assert cyclicK2.get("cyclic", 0) == 0 assert len(tuples_cyclicK2_full) == 7 assert widths_fullK2_fullK3 == {(7, 2, 1, 1, 1, 3)} print("level-twelve enumeration checks passed") \end{filecontents*} \begin{filecontents*}[noheader]{hk4-misc-check.py} """Exact checks: the binary tetrahedral matrices of the even theta functions, and an elementary basis.""" from fractions import Fraction as Fr # elements a + b*w of Q(w), w^2 = -1 - w, as pairs of Fractions def add(x, y): return (x[0] + y[0], x[1] + y[1]) def mul(x, y): a, b = x; c, d = y return (a * c - b * d, a * d + b * c - b * d) ZERO, ONE, W = (Fr(0), Fr(0)), (Fr(1), Fr(0)), (Fr(0), Fr(1)) def sc(c, x): return (c * x[0], c * x[1]) def mmul(A, B): return tuple(tuple(add(mul(A[i][0], B[0][j]), mul(A[i][1], B[1][j])) for j in range(2)) for i in range(2)) def det(A): return add(mul(A[0][0], A[1][1]), sc(-1, mul(A[0][1], A[1][0]))) SQ = (Fr(1), Fr(2)) # sqrt(-3) = 1 + 2w c = sc(Fr(-1, 3), SQ) # -i/sqrt(3) = -sqrt(-3)/3 S = ((c, sc(2, c)), (c, sc(-1, c))) T = ((W, ZERO), (ZERO, mul(W, W))) I = ((ONE, ZERO), (ZERO, ONE)) MI = ((sc(-1, ONE), ZERO), (ZERO, sc(-1, ONE))) assert mul(SQ, SQ) == (Fr(-3), Fr(0)) assert det(S) == ONE and det(T) == ONE assert mmul(S, S) == MI assert mmul(mmul(T, T), T) == I ST = mmul(S, T) assert mmul(mmul(ST, ST), ST) == MI G = {I}; frontier = [I] while frontier: new = [] for M in frontier: for g in (S, T): N = mmul(M, g) if N not in G: G.add(N); new.append(N) frontier = new assert len(G) == 24 print("binary tetrahedral relations verified; order", len(G)) # elementary basis at an additive point with index s and degrees (s, t) for s, t in [(2, 8), (3, 12), (2, 4), (3, 3)]: def E(x, y): return s * (x[0] * y[1] - x[1] * y[0]) + t * (x[2] * y[3] - x[3] * y[2]) a1 = (Fr(1, s), 0, Fr(1, s), 0); b1 = (0, 1, 0, 0); a2 = (0, 0, 1, 0); b2 = (0, Fr(-t, s), 0, 1) assert (E(a1, b1), E(a2, b2), E(a1, a2), E(a1, b2), E(b1, a2), E(b1, b2)) == (1, t, 0, 0, 0, 0) print("elementary bases verified") print("misc checks passed") \end{filecontents*} \begin{filecontents*}[noheader]{hk4-rank1-check.py} """Independent enumeration for primitive level twelve in the rank-one case (sextic double plane).""" from itertools import combinations, product from math import isqrt from collections import Counter from fractions import Fraction as Fr def partitions_desc(n, maxpart=None): if maxpart is None: maxpart = n if n == 0: yield () return for p in range(min(n, maxpart), 0, -1): for rest in partitions_desc(n - p, p): yield (p,) + rest def is_square(n): return n >= 0 and isqrt(n) ** 2 == n def v2(n): k = 0 while n % 2 == 0: n //= 2 k += 1 return k def code3_ok(sing): """subcollection of parts k = 3j-1 with sum j in {6,9}""" js = [(k + 1) // 3 for k in sing if k % 3 == 2] sums = {0} for j in js: sums |= {s + j for s in sums} return bool(sums & {6, 9}) def configurations(degs, sing): """All attachments of singularities (decreasing order) to components / pairs, with symmetry breaking among equal singularities only (components keep their indices). Returns list of event tuples.""" n = len(degs) pairs = list(combinations(range(n), 2)) out = [] g = [(d - 1) * (d - 2) // 2 for d in degs] t = [d * (d - 1) for d in degs] e = {p: degs[p[0]] * degs[p[1]] for p in pairs} def rec(idx, events): if idx == len(sing): if all(v == 0 for v in e.values()): tang = tuple((0, i, i) for i in range(n) for _ in range(t[i])) out.append(events + tang) return k = sing[idx] cands = [(k, i, i) for i in range(n)] if k % 2 == 1: cands += [(k, i, j) for (i, j) in pairs] for ev in cands: if events and events[-1][0] == k and ev < events[-1]: continue _, i, j = ev if i == j: c1, c2 = (k + 1) // 2, k + 1 if g[i] < c1 or t[i] < c2: continue g[i] -= c1; t[i] -= c2 rec(idx + 1, events + (ev,)) g[i] += c1; t[i] += c2 else: c = (k + 1) // 2 if e[(i, j)] < c: continue e[(i, j)] -= c rec(idx + 1, events + (ev,)) e[(i, j)] += c rec(0, ()) return out def assignments(b, events, kappa): N = len(events) budget = 15 - N labels = [(m, d) for m in range(1, budget + 2) for d in (1, 2, 3, 4, 6, 12)] opts = [[(m, d) for (m, d) in labels if is_square(kappa * (k + 1) * m * d)] for (k, i, j) in events] res = [] def rec(pos, taken, excess, cost, c18, c12): if excess > budget or cost > 108 or c18 > 18 or c12 > 12: return if pos == N: if cost != 108: return long_ = sum(m % 2 for m, d in taken if v2(d) == 2) short = sum(m % 2 for m, d in taken if v2(d) == 0) if long_ % 2 or short % 2 or (b == 5 and long_ < 4): return res.append(tuple(taken)) return for (m, d) in opts[pos]: if pos and events[pos] == events[pos - 1]: if events[pos][0] == 0: if (m, d) != taken[-1]: continue elif (m, d) < taken[-1]: continue mid = v2(d) == 1 rec(pos + 1, taken + [(m, d)], excess + m - 1, cost + Fr(12 * m, d), c18 + m * (2 if mid else 1), c12 + (0 if mid else m)) rec(0, [], 0, Fr(0), 0, 0) return res def span_dim(degs, events): n = len(degs) parent = list(range(n)) def find(a): while parent[a] != a: a = parent[a] return a for k, i, j in events: if i != j and (k + 1) % 4: parent[find(i)] = find(j) roots = {} for i in range(n): roots.setdefault(find(i), 0) roots[find(i)] += degs[i] sizes = list(roots.values()) return 6 - len(sizes) - (1 if all(s % 2 == 0 for s in sizes) else 0) def colorable(degs, events, assign): for col in product((0, 1), repeat=len(degs)): if sum(c * d for c, d in zip(col, degs)) != 3: continue if all(v2(d) == col[i] + col[j] for (k, i, j), (m, d) in zip(events, assign)): return True return False for b in (5, 6, 7): N = b + 7 geo = 0 total = Counter() by_partition = Counter() violations = Counter() survivors = 0 for sing in partitions_desc(23 - b): if len(sing) > N or not code3_ok(sing): continue for degs in partitions_desc(6): if max(degs) > 4: continue for events in configurations(degs, sing): if len(events) != N: continue geo += 1 for kappa in (1, 2, 3, 6): for assign in assignments(b, events, kappa): sd = span_dim(degs, events) total[(kappa, sd)] += 1 by_partition[degs] += 1 if kappa == 1 and sd == 4 and colorable(degs, events, assign): survivors += 1 if kappa != 1 or sd != 4: survivors += 10**6 # would need a separate argument if 3 in degs and 4 not in degs: cubics = [i for i, d in enumerate(degs) if d == 3] viol = sum(1 for (k, i, j), (m, d) in zip(events, assign) if i != j and (i in cubics or j in cubics) and v2(d) != 1) violations[viol] += 1 print(f"b={b}: geometric configurations {geo}; assignments {dict(total)}; by partition {dict(by_partition)}; " f"cubic-crossing violations {dict(sorted(violations.items()))}; survivors {survivors}") assert survivors == 0 print("rank-one level-twelve checks passed") \end{filecontents*} \fi \end{document}