% Appendix B. Computations. The text describes the computations mathematically; the files of the deposit are listed only % in tab:deposit at the end of the appendix (b2-computations.tex). \section{Computations}\label{app:computations} This appendix describes the computations on which the paper relies, other than those verified formally (\cref{app:formal}). A computation is carried out in exact arithmetic, over $\Q$ or over the number field indicated, unless it is stated to be numerical. The code and its output are deposited with the paper; the computations use PARI/GP~2.17.4 \cite{PARI2025} and Python~3 with NumPy and SymPy, and those that concern the Brandt module of the fourfold use the implementation of \cite{Liu2026AHMII} without change. \Cref{tab:deposit} lists, for each subsection, the files of the deposit in which its computations are made. \subsection{The spin-flip identity}\label{ss:app-spin-flip} For $g\in\{2,4,6,8,10\}$ and $z\in\{3,9,0.2,25\}$ we form the matrices $V_g(z)$ and $\Fl_g$ of \cref{def:spin} and the Gram matrix $G_g(z+z^{-1})$, and compare $G_g$ with $V_g\Fl_gV_g^{\mathsf T}$ entrywise, numerically. The half-curves number $2,6,20,70,252$, equal to the dimension of the balanced sector; $V_g(z)$ has full rank in all twenty cases; the largest relative residual is $1.3\cdot10^{-15}$. For $g=4$ the identity is checked symbolically over $\Q(z)$; this computation gives the matrix $V_4(z)$ of the formal verification (\cref{app:formal}) and shows that the sign gauge is trivial. \subsection{Arthur--Lefschetz signatures}\label{ss:app-arthur} The following are checked. \begin{enumerate}[label=(\alph*)] \item For $g\le10$ and $N\in\{9,25,81,625,2401\}$, the matrix $(-1)^{g/2}G_g((N+1)/\sqrt N)$ has the signature of the middle degree of $(\PP^{1})^{g}$, namely $(1,1)$, $(3,3)$, $(10,10)$, $(35,35)$, $(126,126)$. \item For fourteen Arthur shapes with $n\le7$ and random unit twists, $\Lag\Perm_\sigma\Lag^{*}$ has signature $(\sum\lceil m_i/2\rceil,\sum\lfloor m_i/2\rfloor)$, equal to the Lefschetz signature computed from $V_{m}\otimes V_{m}$. \item For the fourfold, the discriminants of the matrices $G_4(T)$ at the cuspidal parameters agree with $4N-a^{2}$; these are the values of the last column of \cref{tab:discriminants} before reduction modulo $E_\pi^{\times2}$. \end{enumerate} \subsection{Supersingular cycles of the trivial representation}\label{ss:app-cap} For $n\in\{2,3,4,5\}$ and $p\in\{3,5,7\}$ we compute the Satake parameters of the trivial representation from the Hecke polynomial of \cite[\S6.10]{HelmTianXiao2017}, find the single string $p^{n-1-2j}$, and evaluate the normalized intersection matrix of the cycles $Y_1,\dots,Y_n$ by the formula of AHM~II; in all twelve cases the signature is $(\lceil n/2\rceil,\lfloor n/2\rfloor)$, as \cref{thm:FT9}(c) states. For the shape $(2,1)$ and nine random unit twists the signature is $(2,1)$. \subsection{Rational invariants}\label{ss:app-hasse} By Gauss reduction over $\Q$ and Hilbert symbols we compute the signature, the square class of the discriminant and the primes with Hasse--Witt invariant $-1$ of the matrices $G_4(T)$ at the parameters of the fourfold and of the cup form of $(\PP^{1})^{4}$. For $g\le8$ and $q\in\{3,5,7,9\}$, and for $g\le6$ and $q=25$, the rational invariants of $(-1)^{g/2}G_g(q+q^{-1})$ coincide with those of the hyperbolic form of the same rank, as \cref{thm:FT9}(a) predicts. The case $g=8$, $q=25$ has not been computed. \subsection{Hecke fields of the fourfold}\label{ss:app-hecke} We compute the Brandt matrices of $\Sh(B')$ at the four primes above $17$ and at the prime above $7$ other than $\qq_1$, check that they commute with $\Brandt_3$, and determine their restrictions to $K_{-8}$ and $K_{-16}$ in the basis of \S\ref{ss:fourfold-data}. The characteristic polynomials are $x^{2}+4x-16$ and $x^{2}-x-1$ on $K_{-8}$ (discriminants $80$ and $5$), $(x-4)^{2}$ and $x^{2}-5x-21$ on $K_{-16}$ (discriminant $109$), and $x^{2}$, $(x+8)^{2}$ at the prime above $7$. The class number $5$ and the mass $5$ are recomputed in the same computation. The Brandt matrix at $(11)$ used in \cref{tab:hecke} is computed in the same way. \subsection{The rational blocks of the fourfold}\label{ss:app-blocks} We form the Kronecker products $\Pet|_K\otimes G_4(T_\pi)$ of \cref{lem:rational-blocks}, compute their signatures, discriminants and Hasse--Witt invariants, check $\det G_4(T)=(4-T^{2})^{5}$ at the four parameters, and compute the eigenvectors $w_1,w_2$ over the Hecke fields and the values $\Pet(w_k,w_k)$ of \S\ref{ss:fourfold-mtwo}. We also compute the invariants of the examples of \cref{ex:strat-ee} and of the sum of four squares and its negative, and, over $\Q(q)$, the matrices of \S\ref{ss:arthur-u3}, with the factorization $(-1)^{2}m=\Lag\Perm_\sigma\Lag^{\mathsf T}$.