\section{The divisibility is attained}\label{sec:sharpness} The divisibility of \cref{thm:count} is an upper bound for the size of derivatives at $p$. The lower bound of \cref{part:lower} needs the opposite: for degrees near the weights of the data some derivative of some datum is no more divisible than predicted, simultaneously at all primes, up to a controlled common factor. This section proves it (\cref{thm:sharpness}). The prediction at a prime $p$ is the \emph{local prime sum} \[ s_p(y,\sigma)=v(\pi_p)\sum_{e\in I_p}\Bigl(\frac y{p^e}-\kappa(-p^e\sigma)\Bigr)_{\!+},\qquad S_p=\sum_{\sigma\in\Phi}s_p(\kappa(\sigma),\sigma), \] where $\kappa$ is the weight of \cref{def:data} and $-p^e\sigma=\mathrm{pr}_e\sigma$. The series converges since $\kappa\ge0$. By \cref{lem:prime-notation} and $\LamK(p^e)=\log p\,(1-\chiK(p)^e)= 2\log p\cdot v(\pi_p)[e\in I_p]$, the prime sum of \cref{sec:main} is $\sfin(y,\sigma)=2\sum_p\log p\;s_p(y,\sigma)$, the terms truncated at $p^e\le a$. \lean{New.Data.localPrimeSum, New.Data.localPrimeSumTotal, New.Data.summable_posPart_sub_weight, New.one_sub_chiK_pow_div_two, New.hasSum_div_pow_positivePartnerExponents} \subsection{One curve: the limit of divisibility}\label{ss:katz-limit} For a CM lattice $C$ and $n\ge0$ let $c(n)$ be the largest absolute value of $G^{(n)}(0)=n!\,[z^n]G$ for $G\in\OO[[y]]$; the maximum exists and is attained by a power of $y$, since $G^{(n)}(0)$ is an integral combination of the $(y^i)^{(n)}(0)$, $i\le n$. \lean{New.CMLattice.maxDerivNorm, New.CMLattice.exists_isGreatest_norm_deriv, New.CMLattice.exists_norm_deriv_eq_maxDerivNorm, New.CMLattice.norm_deriv_le_maxDerivNorm, New.CMLattice.maxDerivNorm_nonneg, New.exists_monomial_max_norm_coeff} \begin{proposition}[Katz's limit]\label{prop:katz-limit} $c(0)=1$, $c(n)\le1$, and $c(m+n)\le c(m)c(n)$. If $n+1$ is a power of $q_p$, then $c(n+1)\ge p^{-\gamma_pn}$. Consequently, for every $n$ there is $G\in\OO[[y]]$ with $v\bigl(G^{(n)}(0)\bigr)\le\gamma_pn$. \end{proposition} \lean{New.CMLattice.norm_deriv_le_one, New.CMLattice.maxDerivNorm_le_one, New.CMLattice.maxDerivNorm_zero, New.CMLattice.exists_norm_coeff_le_norm_coeff_prod_pow, New.CMLattice.exists_norm_coeff_subst_add_le, New.CMLattice.maxDerivNorm_add_le, New.CMLattice.norm_eq_one_of_piPrimeInt_dvd_sub_one, New.CMLattice.norm_coeff_formalParam_of_eq_primeNorm_pow, New.CMLattice.pow_le_maxDerivNorm_of_eq_primeNorm_pow, New.pow_le_of_submultiplicative, New.rpow_pow_le_norm_factorial_succ, New.factorial_mul_coeff_subst_add, New.coeff_subst_mul_subst, New.CMLattice.katz_divisibility_limit} \begin{proof} \emph{The bounds $c(n)\le1$, $c(0)=1$.} By \cref{thm:cm-background}\ref{it:cm-weierstrass}, $dy/dz=1+3x^2-a_1y$ with $x\in\OO[[y]]$, so $\OO[[y]]$ is stable under $d/dz$. Hence $G^{(n)}\in\OO[[y]]$ for $G\in\OO[[y]]$, and $G^{(n)}(0)$, the constant term of an integral series in $y$ with $y(0)=0$, is integral: $c(n)\le1$. The series $G=1$ gives $c(0)=1$. The maximum exists: since $y$ has no constant term, $G^{(n)}(0)=n![z^n]G$ involves only the coefficients $G_i$ of $G=\sum_iG_iy^i$ with $i\le n$, so it is the integral combination $\sum_{i\le n}G_i\,(y^i)^{(n)}(0)$, and by the ultrametric inequality its absolute value is at most $\max_{i\le n}\abs{(y^i)^{(n)}(0)}$, which is attained by a power of $y$. \emph{Submultiplicativity.} Let $G\in\OO[[y]]$. By the integrality of the group law (\cref{thm:cm-background}\ref{it:cm-group-law}), $y(z_0+z_1)$ is an integral series in $y(z_0)$ and $y(z_1)$, hence so is $G(z_0+z_1)=\sum_{a,b}h_{ab}\,y(z_0)^ay(z_1)^b$ with $h_{ab}\in\OO$. Expanding $G(z_0+z_1)=\sum_ng_n(z_0+z_1)^n$, the coefficient of $z_0^mz_1^n$ is $\binom{m+n}m g_{m+n}$, so \[ m!\,n!\,[z_0^mz_1^n]G(z_0+z_1)=(m+n)!\,g_{m+n}=G^{(m+n)}(0). \] On the other side the coefficient of $z_0^mz_1^n$ in $y(z_0)^ay(z_1)^b$ is $[z^m]y^a\cdot[z^n]y^b$, and only $a\le m$, $b\le n$ contribute. Multiplying by $m!\,n!$ and using the ultrametric inequality, \[ \abs{G^{(m+n)}(0)}\le\max_{a,b}\abs{(y^a)^{(m)}(0)}\,\abs{(y^b)^{(n)}(0)}\le c(m)\,c(n). \] Taking the maximum over $G$ gives $c(m+n)\le c(m)c(n)$. \emph{Powers of $q_p$.} Let $n+1=q_p^j$. The formal parameter $T$ of \cref{thm:cm-background}\ref{it:cm-formal} lies in $\OO[[y]]$, and $T(\varpi z)=\varpi Y$ with $\abs\varpi=p^{-\rho_p}$ and $Y\equiv\sum_{i\ge0}z^{q_p^i}$ modulo $\pi_p$. Comparing coefficients of $z^{n+1}$, $\varpi^{n+1}[z^{n+1}]T=\varpi[z^{n+1}]Y$, and $[z^{n+1}]Y\equiv1$ modulo $\pi_p$ is a unit, because an integer of $\Cp$ that is $1$ modulo the non-unit $\pi_p$ has absolute value $1$. Hence $\abs{[z^{n+1}]T}=\abs\varpi^{-n}=p^{\rho_pn}$. Legendre's formula gives $v((n+1)!)=(n+1-s_p(n+1))/(p-1)\le n/(p-1)$, since the digit sum $s_p(n+1)$ is at least $1$. Therefore \[ c(n+1)\ge\abs{(n+1)!\,[z^{n+1}]T}\ge p^{-n/(p-1)}\,p^{\rho_pn}=p^{-\gamma_pn}. \] \emph{All $n$.} Put $b_0=p^{-\gamma_p}\in(0,1]$; then $b_0^{q}\le b_0^{q-1}\le c(q)$ whenever $q$ is a power of $q_p$. Fix $n\ge1$ and suppose $c(n)1$, and let $G=W\exp(\kappa\Xi)$ with $W$, $\Xi$ integral, $W$ a unit and $\Xi(0)=0$. Then $\partial_xG=(\kappa\,\partial_x\Xi+B_x)G$ with $B_x$ integral, and for a finite family of variables $t_i$, $i\in T$, and every integral $f$, \[ \Bigl(\prod_{i\in T}\partial_{t_i}\Bigr)(fG)=\kappa^{\#T}\,g\,G, \] with $g$ integral and $g\equiv f\prod_{i\in T}\partial_{t_i}\Xi\pmod{\mathfrak m}$. \end{lemma} \lean{New.exists_pderiv_mul_expSubst, New.exists_pderiv_mul_eq_smul, New.exists_jet_mul_prod_X} \begin{proof} \emph{One derivative.} By the chain rule for the exponential series, \[ \partial_x\bigl(W\exp(\kappa\Xi)\bigr)=(\kappa\,\partial_x\Xi+\partial_xW/W)\,W\exp(\kappa\Xi), \] and $B_x=\partial_xW/W$ is integral because $W$ is an integral unit. For integral $f$, \[ \partial_x(fG)=(\partial_xf+f\kappa\,\partial_x\Xi+fB_x)G=\kappa\bigl(f\,\partial_x\Xi+\kappa^{-1}(\partial_xf+fB_x)\bigr)G , \] and as $\abs\kappa>1$, $\kappa^{-1}$ lies in $\mathfrak m$; so $\partial_x(fG)=\kappa g_1G$ with $g_1=f\,\partial_x\Xi+\kappa^{-1}(\partial_xf+fB_x)$ integral and $g_1\equiv f\,\partial_x\Xi$ modulo $\mathfrak m$. \emph{Iteration.} Induct on $\#T$. If $(\prod_{i\in T'}\partial_{t_i})(fG)=\kappa^{\#T'}g'G$ with $g'$ integral and $g'\equiv f\prod_{i\in T'}\partial_{t_i}\Xi$, apply the first step to $g'G$ and a further variable $t_{i_1}$: $\partial_{t_{i_1}}(g'G)=\kappa g''G$ with $g''\equiv g'\partial_{t_{i_1}}\Xi\equiv f\prod_{i\in T'\cup\{i_1\}}\partial_{t_i}\Xi$. \end{proof} \begin{proposition}[Least valuations along couplings]\label{prop:couplings} Let $p>2$ be inert, $\mu$ integral, and let $\Theta$ have the normal form $(I_p^\circ,\mathrm{pr},\varpi,\lambda)$ with $\abs\varpi=p^{-\rho_p}$ and $\lambda_{e0}$ a unit for odd $e$. For a coupling family $(\Phi_0,e)$ and $j$ as above, with $\nu=\nu'+\nu''$, \[ \mathrm{val}_6(\nu)\le-\abs j,\qquad v(\nu'!\,\nu''!)+\mathrm{val}_6(\nu)\le\gamma_p\abs\nu-\abs j . \] \end{proposition} \lean{New.IsCouplingFamily.isLowestTerm_pderiv_couplingSum, New.isLowestTerm_zero_one, New.IsCouplingFamily.norm_coeff_powerDegree, New.couplingSubst, New.norm_couplingSubst_le_one, New.pderiv_prod_copySubst_couplingSubst, New.coeff_prod_copySubst_rescale, New.monomial_mul_prod_X_partner, New.exists_jet_prod_copySubst_couplingSubst, New.pairExponent, New.mapDomain_fst_pairExponent, New.prod_factorial_pairExponent, New.IsCouplingFamily.norm_coeff_pairExponent, New.CMLattice.varpiValuation_mul_add_one_of_inert, New.CMLattice.norm_pow_div_of_inert, New.CMLattice.one_lt_norm_pow_div_of_inert, New.CMLattice.isUnit_of_rescale_thetaProd_eq, New.CMLattice.leastValLE_partnerDegree_of_isCouplingFamily, New.CMLattice.leastValLE_six_of_isCouplingFamily} \begin{proof} \emph{Setting.} Let $F(z)=\Theta(\varpi z)=W\exp(\kappa\Xi)$ with $\kappa=c_\varpi=\varpi^{p+1}/p$ and $\Xi=\Xi_{I_p^\circ,\lambda}$. For inert $p$, $\rho_p=1/(p^2-1)$, so $v(\kappa)=(p+1)\rho_p-1=1/(p-1)-1<0$ as $p>2$, and $\abs\kappa>1$. The series $W$ is a unit because its constant term is $\Theta(0)=1$. Take $\delta_c$ as in \cref{prop:six-copies}(a); then $U=\prod_cF(\delta_cz)$ is integral with constant term $1$. \emph{The product of copies.} In two copies $z'$, $z''$ of the variables put \[ G(z',z'')=F(z'+z'')\prod_{c\ne0}F(\delta_cz'), \] the substitution $z_0=z'+z''$, $z_c=\delta_cz'$ ($c\ne0$) into six copies; as $\delta_0=1$, $G(z',0)=U(z')$. Only the first factor involves $z''$, so $\partial_{z''_x}G=(\kappa\,\partial_x\Xi+B_x)(z'+z'')\,G$ with $B_x$ integral. \emph{Step 1: the derivatives in $z''$.} Differentiate $G$ $j(\tau)$ times in $z''_{\tau^+}$ for each $\tau\in\Phi_0$; by \cref{lem:kappa-derivatives} the result is $\kappa^{\abs j}gG$ with $g$ integral and $g\equiv\prod_\tau(\partial_{\tau^+}\Xi)^{j(\tau)}(z'+z'')$ modulo $\mathfrak m$. \emph{Step 2: $z''=0$.} At $z''=0$ the result is $\kappa^{\abs j}g(z',0)U(z')$ with $g(z',0)\equiv\prod_\tau(\partial_{\tau^+}\Xi)^{j(\tau)}(z')$. \emph{Step 3: the lowest term.} By \cref{lem:derivative-coupling-sum} ($0\notin I_p^\circ$), modulo $\mathfrak m$ the derivative $\partial_{\tau^+}\Xi$ consists of the monomials $\lambda_{a0}z_{\tau_1}^{p^a}$ with $a\in I_p^\circ$ and $\mathrm{pr}_a\tau_1=\tau^+$. Put $z_{\tau_1}=0$ for $\tau_1\notin\Phi_0$. A remaining monomial of degree at most $p^{e(\tau)}$ has $\tau_1\in\Phi_0$ and odd $a\le e(\tau)$ with $\mathrm{pr}_a\tau_1=\tau^+$, so $\tau_1=\tau$ and $a=e(\tau)$ by the coupling condition. Hence, in total degrees up to $p^{e(\tau)}$, $\partial_{\tau^+}\Xi$ agrees with $\lambda_{e(\tau)0}z_\tau^{p^{e(\tau)}}$ modulo $\mathfrak m$, and its lowest term is this monomial. Lowest terms multiply, and $U$ has lowest term $1$; so the coefficient of $z'^{\nu'}$ in $g(z',0)U(z')$, after the substitution $z_{\tau_1}=0$ (which does not change the coefficient of a monomial in the variables of $\Phi_0$), is $\prod_\tau\lambda_{e(\tau)0}^{j(\tau)}$ modulo $\mathfrak m$, a unit. \emph{Step 4: coefficients.} The derivative $\prod_\tau\partial_{z''_{\tau^+}}^{j(\tau)}$ at $z''=0$ turns the coefficient of $z'^{\nu'}z''^{\nu''}$ into $\nu''!$ times it. Hence $\abs{[z'^{\nu'}z''^{\nu''}]G}=\abs\kappa^{\abs j}/\abs{\nu''!}$. Since $G(z',z'')=\tilde G(\varpi z',\varpi z'')$ for $\tilde G=\Theta(z'+z'')\prod_{c\ne0}\Theta(\delta_cz')$, the coefficient of $z'^{\nu'}z''^{\nu''}$ in $\tilde G$ is $\varpi^{-\abs\nu}$ times that in $G$, so its valuation $V$ satisfies $V+v(\nu''!)=\abs jv(\kappa)-\rho_p\abs\nu=\abs j(\frac1{p-1}-1)-\rho_p\abs\nu$. The substitution has integral coefficients, so \cref{lem:least-valuation-rules}(b) gives \[ v(\nu''!)+\mathrm{val}_6(\nu)\le\abs j\Bigl(\frac1{p-1}-1\Bigr)-\rho_p\abs\nu . \] \emph{Conclusion.} As $\abs\nu=\sum_\tau j(\tau)(p^{e(\tau)}+1)\ge\abs j(p+1)$ and $\rho_p(p+1)=1/(p-1)$, the right side is at most $-\abs j$, and $v(\nu''!)\ge0$ gives $\mathrm{val}_6(\nu)\le-\abs j$. For the second bound add $v(\nu'!)\le\abs{\nu'}/(p-1)=(\abs\nu-\abs j)/(p-1)$ (Legendre): the sum is at most $\abs\nu/(p-1)-\abs j-\rho_p\abs\nu=\gamma_p\abs\nu-\abs j$. \end{proof} \subsection{Near pairs and losses}\label{ss:near-pairs} From now on we fix data as in \cref{def:data}, and $l_0=l_0(s)$. A \emph{near pair} at a prime $p$ is a pair $(\tau,e)$ with $e\in I_p$, $2e2$, for $d$ because $q_0\nmid d+1$); so $\tau$ and $-d^e\tau$ do not have the same class, and there is no near pair for $p=d$. For split $p$, $I_p$ is empty. Hence a near pair needs $p$ inert, and then $I_p$ consists of the odd $e$, for which $-p^e=(-p)^e$. (c) \emph{Same start.} If $(\tau,e)$ and $(\tau,e')$ are near pairs with $ek$.} \emph{The coupling family.} Take $\Phi_0=\Phi$ and $e\equiv1$. The map $\tau\mapsto-p\tau$ is a bijection of $\Phi$, so a partner $t=-p\tau$ has the unique preimage $\tau$, and the only odd $e'\le1$ is $1$: this is a coupling family. Put \[ i(\tau)=\Bigl\lfloor\frac{(l_\tau-n_\sharp)_+}p\Bigr\rfloor,\qquad j(\tau)=\min\bigl(i(\tau),l_{-p\tau}\bigr). \] As $l_\tau\le2b$ and $p>k$, $i(\tau)\le2b/k\le n_\sharp$. \emph{Degrees.} At a place $t=-p\tau$ the degree of $\nu'$ is $pj(t)\le pi(t)\le(l_t-n_\sharp)_+$ and that of $\nu''$ is $j(\tau)\le\min(n_\sharp,l_t)$; since $(l_t-n_\sharp)_++\min(n_\sharp,l_t)=l_t$, we have $\nu'+\nu''\le l$. Write $l=\nu'+\nu''+\eta$. \emph{Least valuation.} By \cref{prop:couplings}, $\mathrm{val}_6(\nu'+\nu'')\le-\abs j$, and $\mathrm{val}_6(\eta)\le0$ by \cref{lem:frame-at-nonsplit}; so $\mathrm{val}_{12}(l)\le-\abs j$ by \cref{lem:least-valuation-rules}(a). \emph{One place.} Let $l^-=(l_\tau-n_\sharp)_+$, so $i=i(\tau)=\lfloor l^-/p\rfloor$. By \cref{lem:losses}(a) and Legendre's recursion $v(m!)=\lfloor m/p\rfloor+v(\lfloor m/p\rfloor!)$, \[ v(l_\tau!)\le v((l^-)!)+v(B(l_\tau))=i+v(i!)+v(B(l_\tau))\le i+2v(B(l_\tau)), \] as $i\le n_\sharp$ gives $v(i!)\le v(n_\sharp!)\le v(B(l_\tau))$. Moreover $i\le\kappa(\tau)/p$, because $l_\tau-n_\sharp\le\kappa(\tau)+x^{42}-n_\sharp\le\kappa(\tau)$, and $l_{-p\tau}\ge\kappa(-p\tau)$; hence $i-j(\tau)=(i-l_{-p\tau})_+\le(\kappa(\tau)/p-\kappa(-p\tau))_+$, the term $e=1$ of $s_p(\kappa(\tau),\tau)$, which is at most $s_p(\kappa(\tau),\tau)$ as all terms are nonnegative and $v(\pi_p)=1$. Hence $v(l_\tau!)-j(\tau)\le s_p(\kappa(\tau),\tau)+2v(B(l_\tau))$, and summing over $\tau$, $v(l!)-\abs j\le S_p+2\sum_\tau v(B(l_\tau))$. \emph{Non-split $p\le k$} (so $p\ge13$). \emph{The coupling family.} Let $\Phi_0$ be the set of starts of near pairs and $e(\tau)$ their exponent, unique by \cref{lem:near-pairs}(c), and odd by (b). If $\tau_1\in\Phi_0$ and odd $e'\le e(\tau)$ satisfy $\mathrm{pr}_{e'}\tau_1=\mathrm{pr}_{e(\tau)}\tau$, then $(\tau_1,e')$ is a near pair (its exponent is odd and at most $e(\tau)