Counting torsion in the generic extension attached to a polarization
Assume the source's two abelian-geometry law packages described below. Let $R$ be a Noetherian integral domain, let $(A,L)/R$ be a principally polarized abelian scheme of relative dimension $g$, and let $X$ be a free abelian group of finite rank $r$. Fix a homomorphism $c:X\to A(R)$, a rigidification, compatible cubical and symmetric structures on $L$, and generic trivializations of $c(x)^*L^{-1}$ for every $x\in X$, as in the source's preliminary degeneration datum.
Let $F$ be an algebraically closed extension of $\operatorname{Frac}R$, and let $G_F\to A_F$ be the extension by the split torus with character group $X$ attached to these data. For every integer $N\ge0$ whose image in $F$ is nonzero, $$\#G_F[N](F)=N^{2g+r},\qquad \#\{z\in G_F[N](F):z\mapsto0\text{ in }A_F\}=N^r.$$
A point of the extension over $b\in A(F)$ is a multiplicatively compatible family of nonzero trivializations of the polarization line-bundle differences at $(c(x),b)$; compatibility uses the fixed cubical structure. The preliminary datum does not impose a positivity condition on degeneration parameters.
The first law package contains rank and base-change results for global sections, ampleness and multiplication pullbacks, theorems of the cube and square, rigidity, Weil pairings and their nondegeneracy, symmetric lifts, geometric irreducibility and points, Serre vanishing, semiabelian and cubical extension results, evaluation and vector-bundle rank comparisons, global functions, polarized base change, quotients and unramified extension results. The second contains arbitrary section base change, section twisting, the character-pairing identity, and density of the smooth locus.