\section{The theta function of a CM curve at a non-split prime}\label{sec:one-curve} The divisibility of the derivatives of theta functions of hermitian spaces over $E$ is reduced, in \cref{sec:normal-form}, to the behaviour of one theta function of one elliptic curve with complex multiplication by $\OO_K$, read in $\Cp$. This section treats that curve. Its main result, \cref{thm:exponent}, writes $\theta(\varpi z)$, for a suitable $\varpi$ of positive valuation, as an integral series times the exponential of a large multiple of an explicit series, the exponent. \subsection{Conventions at a prime}\label{ss:conventions-prime} Fix a prime $p$ and a ring homomorphism $\iota_p\colon\C\to\Cp$ (a \emph{$p$-adic place} of $\C$); complex numbers are read in $\Cp$ through $\iota_p$, usually without notation. Let $v$ be the valuation of $\Cp$ with $v(p)=1$, so that $\abs x=p^{-v(x)}$, let $\OO$ be its valuation ring and $\mathfrak m$ the maximal ideal. A power series over $\Cp$ is \emph{integral} if its coefficients lie in $\OO$, and \emph{integral in degree $n$} if its coefficients of total degree $n$ do. For a series $G$ without constant term, $\exp G$ is the exponential series evaluated at $G$. \begin{definition}\label{def:prime-notation} For a prime $p$ put $q_p=p^2$ if $\chiK(p)=-1$ and $q_p=p$ otherwise, and $\pi_p=\sqrt{-d}$ if $p=d$, $\pi_p=p$ otherwise. Let $v(\pi_p)$ be $1/2$ if $p=d$ and $1$ otherwise, and \[ \rho_p=\frac{v(\pi_p)}{q_p-1},\qquad \gamma_p=\frac1{p-1}-\rho_p . \] The set $I_p^\circ$ of \emph{partner exponents} is the set of odd integers $e\ge1$ if $\chiK(p)=-1$, the set of all $e\ge0$ if $p=d$, and empty if $\chiK(p)=1$; $I_p=I_p^\circ\setminus\{0\}$. The prime $p$ is \emph{non-split} if $\chiK(p)\ne1$. \end{definition} \lean{New.primeNorm, New.piPrime, New.piPrimeValuation, New.varpiValuation, New.gammaPrime, New.partnerExponents, New.positivePartnerExponents, New.piPrimeInt} \begin{lemma}\label{lem:prime-notation} \begin{enumerate}[label=\textup{(\alph*)}] \item $\rho_p$ is $1/(p-1)$, $1/(p^2-1)$, $1/(2p-2)$ and $\gamma_p$ is $0$, $p/(p^2-1)$, $1/(2p-2)$ for $p$ split, inert, ramified in $K$; in all cases $0\le\gamma_p\le1/(p-1)$ and \[ \gamma_p=v(\pi_p)\sum_{e\in I_p}p^{-e}. \] \item For non-split $p$: $p\ge13$, $\pi_p\bar\pi_p=q_p$, $\abs{\pi_p}=p^{-v(\pi_p)}= \bigl(p^{-\rho_p}\bigr)^{q_p-1}$, $\pi_p\mid p$ in $\OO$, and $\abs{\pi_p}\le\abs n$ for $0i_0$. Let $\lambda$ be as in \cref{lem:functional-equation}. For $n>2$ we have $\abs{\pi^n/q}\le\abs\pi$, so the factor $1-\pi^n/q$ is $\equiv1$; for $n2$, so every $n$ satisfies $n2$, and $[z^n]\Xi_1\equiv\lambda[z^n]Y^{p+1}$ for all $n$. In particular $\Xi_1=\Xi$ is integral, and $\Xi\equiv\lambda Y^{p+1}$. Since $Y\equiv\Pi_{\mathrm{even}}$ modulo $\pi=p$ (as $q=p^2$), $Y^{p+1}=Y^pY\equiv\Pi_{\mathrm{odd}}\Pi_{\mathrm{even}}$, and \eqref{eq:odd-even} gives the congruence with $\lambda_{ej}=\lambda$. The coefficient of $z^{p+1}$ in $\Pi_{\mathrm{odd}}\Pi_{\mathrm{even}}$ is $1$ (the term $e=1$, $j=0$), so $\lambda\equiv[z^{p+1}]\Xi$. Finally $[z^{p+1}]\Xi_1=-(p/\varpi^{p+1})\varpi^{p+1}g_{p+1}=-pg_{p+1}$, and comparing coefficients of $z^{p-1}$ in $g''=g''(0)+x$ gives $[z^{p-1}]x=(p+1)p\,g_{p+1}$; as $p+1$ is a unit, \cref{lem:supersingular} shows that $[z^{p+1}]\Xi$ is a unit, hence so is $\lambda$. \emph{$p=d$.} Then $q=p$, $\pi^2=-p$, $i_0=2$. For $n\ne2$ we get $[z^n]\Xi_1\equiv\lambda[z^n]Y^2$ as before. For $n=2$ the factor is $1-\pi^2/p=2$, so $2[z^2]\Xi_1\equiv\lambda c$ with $c=[z^2]Y^2$; since $Y\equiv\Pi_\N$ we have $c\equiv1$, and hence $[z^2]\Xi_1\equiv\lambda(c-\frac12)$. Thus $\Xi_1=\Xi$ is integral and $\Xi\equiv\lambda(Y^2-\frac12z^2)\equiv\lambda(\Pi_\N^2-\frac12z^2)$, and \eqref{eq:all-square} gives the congruence with $\lambda_{00}=\lambda/2$, $\lambda_{0j}=\lambda$ for $j\ge1$ and $\lambda_{ej}=2\lambda$ for $e\ge1$. The integrality of $\Xi$ in both cases uses that a series congruent modulo $\pi$ to an integral one is integral: its coefficients differ from integral numbers by multiples of $\pi$, which are integral. In both cases $\Xi(0)=0$, as $\Xi_1$ has no terms below degree $i_0\ge2$. \end{proof} \begin{remark}\label{rem:exponent-size} The factor $c_\varpi$ has valuation $(p+1)\rho_p-1<0$, and $c_\varpi\pi_p$ has valuation $(p+1)\rho_p-1+v(\pi_p)=1/(p-1)$ in both cases. This is the threshold below which the exponential series is integral: if $\abs{c\pi}\le p^{-1/(p-1)}$ and $G$ has coefficients in $\pi\OO$, then $\exp(cG)$ is integral. \Cref{thm:exponent} therefore says that the obstruction to the integrality of $\theta(\varpi z)$ is carried by the reduction of $\Xi$ modulo $\pi_p$, which is the explicit series of couplings $z^{p^e}z$. \end{remark} \lean{New.Parameters.norm_pow_succ_div_mul_piPrimeInt, New.norm_coeff_expSubst_smul_le_one}