\documentclass[11pt]{amsart} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{amssymb,amsmath,amsthm} \usepackage[margin=1.15in]{geometry} \newtheorem{theorem}{Theorem} \newtheorem{proposition}[theorem]{Proposition} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{corollary}[theorem]{Corollary} \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition} \newtheorem{example}[theorem]{Example} \theoremstyle{remark} \newtheorem{remark}[theorem]{Remark} \newcommand{\F}{\mathbb{F}} \newcommand{\Res}{\operatorname{Res}} \newcommand{\Tr}{\operatorname{Tr}} \newcommand{\tr}{\operatorname{tr}} \newcommand{\ord}{\operatorname{ord}} \newcommand{\Om}{\Omega} \begin{document} \title[Wilson primes outside a rational point of a curve]{Wilson primes for the ring of functions\\ regular outside a rational point of a curve} \author{David Niedbala Giraudin} \address{Independent researcher, France. ORCID 0009-0009-1526-1178} \date{25 November 2026} \begin{abstract} Let $C$ be a smooth projective curve over $\F_q$, $\infty$ a rational point and $A$ the ring of functions regular outside $\infty$. For a basis of $A$ adapted to the pole order at $\infty$ we consider the Wilson product $W_d$ of \cite{G3,G5} and prove, without any plane model, that for every prime element $\pi$ of degree $d$ \[ W_d\equiv-1+\pi\,\frac{\Theta_\pi}{(d\pi)^2}\pmod{\pi^2},\qquad\Theta_\pi=\sum_jdm_j\cdot\nu_j, \] where $(m_j)$ is the basis of the space of representatives and $(\nu_j)$ the dual basis of differentials for the residue pairing. We then show that, for a Cauchy kernel $\kappa$ on $C\times C$ of order at most $2g-1$ (one always exists), $\Theta_\pi\equiv E_\kappa(\pi)+K_\pi\,d\pi$, where $E_\kappa$ is a second order differential operator attached to $\kappa$ and $K_\pi$ a differential defined by a decomposition involving at most $g$ basis elements. This contains Thakur's criterion for $\F_q[t]$ and the theorems of \cite{G3,G5} for plane curves. As a case not covered by these, we treat a hyperelliptic curve in odd characteristic with $\infty$ an affine rational point where $y\ne0$, with an explicit kernel; there the correction $K_\pi$ is a single differential. \end{abstract} \maketitle \section{Setting and statements} Let $k=\F_q$ of characteristic $p$, $C$ a smooth projective geometrically integral curve over $k$ of genus $g$, $\infty\in C(k)$, and $A$ the ring of functions on $C$ regular outside $\infty$, a Dedekind domain with $A^\times=k^\times$. Put $\deg=-\ord_\infty$ on $A$, and let $S=\{\deg u:u\in A\setminus0\}$ be the Weierstrass semigroup at $\infty$; $\mathbb N\setminus S$ has $g$ elements, all at most $2g-1$. A prime element is a $\pi\in A$ with $A/\pi$ a field; its degree is $d=\dim_kA/\pi=\deg\pi$. This is the setting of the question of Thakur \cite[Section 7, Question (2)]{T24} on Wilson primes outside $\F_q[t]$ \cite{SSTT,T13}. \begin{definition}\label{def} An \emph{adapted basis} of $A$ is a family $(m_s)_{s\in S}$ with $\deg m_s=s$. Given one, for $d\in S$, $d\ge1$, $V_d$ is the $k$-span of the $m_s$ with $s-d\notin S$, and $W_d=\prod_{v\in V_d\setminus0}v$. A prime element $\pi$ of degree $d$ is a \emph{Wilson prime} (for this basis) if $W_d\equiv-1\pmod{\pi^2}$. \end{definition} As in \cite[Lemma 3]{G5}, $A=V_d\oplus uA$ for every $u\in A$ of degree $d$; so $V_d\to A/\pi$ is bijective and $W_d\equiv-1\pmod\pi$. For the monomial basis of a plane model this is the definition of \cite{G1,G2,G3,G5}. The space $V_d$ depends on the adapted basis. Let $\Om=\Om_{A/k}$ be the module of differentials regular outside $\infty$; it is an invertible $A$-module, not free in general. For a prime element $\pi$ put $\mathbf F_\pi=A/\pi$ and \[ \langle u,\nu\rangle=-\Res_\infty\bigl(u\,\nu/\pi\bigr)\qquad(u\in A,\ \nu\in\Om). \] \begin{lemma}\label{lem:pair} $\langle u,\nu\rangle=\Tr_{\mathbf F_\pi/k}\bigl(\overline{u}\cdot\overline{\nu/d\pi}\bigr)$, where $\nu/d\pi$ is a function regular at the zeros of $\pi$. The pairing induces a perfect pairing $\mathbf F_\pi\times\Om/\pi\Om\to k$, and $\langle uv,\nu\rangle=\langle u,v\nu\rangle$. \end{lemma} \begin{theorem}\label{thm:A} Let $\pi$ be a prime element of degree $d$, $(m_j)_{1\le j\le d}$ the basis of $V_d$ formed by the $m_s$ with $s-d\notin S$, and $(\nu_j)$ the dual basis of $\Om/\pi\Om$: $\langle m_i,\nu_j\rangle=\delta_{ij}$. Put \[ \Theta_\pi=\sum_{j=1}^ddm_j\cdot\nu_j\ \in\ \Om^{\otimes2}/\pi\Om^{\otimes2}. \] Then \[ W_d\equiv-1+\pi\,\frac{\Theta_\pi}{(d\pi)^2}\pmod{\pi^2}, \] the quotient being a well defined element of $\mathbf F_\pi$. In particular $\pi$ is a Wilson prime if and only if $\Theta_\pi=0$, i.e.\ the quadratic differential $\sum_jdm_j\cdot\nu_j$ vanishes at the zeros of $\pi$. \end{theorem} \begin{definition}\label{def:kappa} A \emph{Cauchy kernel} for $(C,\infty)$ is a rational section $\kappa$ of $\mathcal O\boxtimes\Om_C$ on $C\times C$ (a function in the first variable, a differential in the second) which is regular on $(C\setminus\infty)^2$ outside the diagonal $\Delta$ and has along $\Delta$ a simple pole with $\Res_{P_2=P_1}\kappa(P_1,P_2)=-1$. Its \emph{order} is its pole order along $\infty\times C$. \end{definition} \begin{lemma}\label{lem:exist} There is a Cauchy kernel of order at most $2g-1$, with at most a simple pole along $C\times\infty$. \end{lemma} Let $\mu$ denote the multiplication maps $A\otimes\Om\to\Om$ and $\Om\otimes\Om\to\Om^{\otimes2}$, $d_1=d\otimes1$, and $u_1=u\otimes1$, $u_2=1\otimes u$. For $u\in A$, $(u_1-u_2)\kappa$ is regular on $(C\setminus\infty)^2$, i.e.\ an element of $A\otimes_k\Om$. Define \[ E_\kappa(u)=\mu\bigl(d_1((u_1-u_2)\kappa)\bigr)\in\Om^{\otimes2}. \] \begin{lemma}\label{lem:E} $\mu((u_1-u_2)\kappa)=du$. In a local coordinate $z$ at a point of $C\setminus\infty$, write $\kappa=\bigl(\tfrac1{z_1-z_2}+a(z_2)+O(z_1-z_2)\bigr)dz_2$; then $E_\kappa(u)=\bigl(\partial_z^{(2)}u+a\,\partial_zu\bigr)dz^2$, with $\partial_z^{(2)}$ the second Hasse derivative. Hence $E_\kappa(uv)=uE_\kappa(v)+vE_\kappa(u)+du\cdot dv$, and for another Cauchy kernel $\kappa'$, $E_{\kappa'}(u)-E_\kappa(u)=du\cdot\mu(\kappa'-\kappa)$ with $\kappa'-\kappa\in A\otimes\Om$. \end{lemma} For a prime element $\pi$ of degree $d$ let $R_0=(\pi_1-\pi_2)\kappa\in A\otimes\Om$. As $A\otimes\Om=(V_d\otimes\Om)\oplus(\pi A\otimes\Om)$, there are unique $R\in V_d\otimes\Om$ and $\varkappa\in A\otimes\Om$ with \begin{equation}\label{dec} R_0=R+\pi_1\varkappa;\qquad\text{put}\quad K_\pi=-\mu(\varkappa)\in\Om. \end{equation} \begin{theorem}\label{thm:B} With these notations, $\Theta_\pi\equiv E_\kappa(\pi)+K_\pi\cdot d\pi\pmod{\pi}$, so that \[ W_d\equiv-1+\pi\,\frac{E_\kappa(\pi)+K_\pi\,d\pi}{(d\pi)^2}\pmod{\pi^2}. \] If $\kappa$ has order $N$, then $\varkappa=\sum_{s\in S,\ s\le N}m_s\otimes c_s$ with $c_s\in\Om$; for $N\le2g-1$ this sum has at most $g$ terms. If $R_0\in V_d\otimes\Om$, then $K_\pi=0$. \end{theorem} \begin{example}[The line]\label{ex:line} $A=k[t]$, $m_s=t^s$, $\kappa=dt_2/(t_1-t_2)$ of order $-1$. Then $R_0=\frac{\pi(t_1)-\pi(t_2)}{t_1-t_2}dt_2\in V_d\otimes\Om$, $K_\pi=0$ and $E_\kappa(\pi)=\pi^{[2]}dt^2$: $W_d\equiv-1+\pi\,\pi^{[2]}/\pi'^2$, and $\pi$ is a Wilson prime if and only if $\pi^{[2]}=0$, which is \cite[Theorem 2.9]{T13}. \end{example} \begin{example}[Plane curves]\label{ex:plane} For $A=k[x,y]/(F)$ as in \cite{G5}, with $\omega=dx/F_y$ and $G$ the image of $(F(x_1,y_1)-F(x_1,y_2))/(y_1-y_2)$, the section $\kappa=G\,\omega_2/(x_1-x_2)$ is a Cauchy kernel of order $2g-1$; then $E_\kappa(u)=E(u)\,\omega^2$ and $K_\pi$ is the element $K_\pi\omega$ of \cite{G5}, so Theorem~\ref{thm:B} is \cite[Theorem 4 and Proposition 5]{G5}. \end{example} \subsection*{A case not covered by the monomial models} Let $p$ be odd, $f\in k[x]$ squarefree of degree $2g+1$, $g\ge1$, $C$ the curve $y^2=f(x)$, and $P_0=(0,y_0)\in C(k)$ with $y_0\ne0$ (any affine rational point with $y\ne0$, after a translation). Take for $\infty$ the point $P_0$, so that $A$ is the ring of functions regular outside $P_0$. Here $S=\{0,g+1,g+2,\dots\}$: indeed $x$ is a uniformiser at $P_0$, the holomorphic differentials are the $h(x)\,dx/y$ with $\deg h\le g-1$, those vanishing to order $n\le g$ at $P_0$ form a space of dimension $g-n$, and so $\dim L(nP_0)=1$ for $n\le g$ by Riemann--Roch. For $g\ge2$ this semigroup is not generated by two elements, so that $A$ has no monomial basis of the type used in \cite{G5}. Let $\hat y\in k[[x]]$ be the expansion of $y$ at $P_0$ ($\hat y(0)=y_0$), $T_i\in k[x]$ its truncation at degree $i$, $\omega=dx/(2y)$, and $D$ the derivation $2y\,d/dx$ of the function field, so that $du=D(u)\,\omega$. \begin{proposition}\label{prop:hyp} The section \[ \kappa=\Bigl[\frac{y_1+y_2}{x_1-x_2}+\frac{y_0+y_2}{x_2}-\sum_{i=0}^{g-1}x_2^{\,i}\,\frac{y_1+T_i(x_1)}{x_1^{\,i+1}}\Bigr]\omega_2 \] is a Cauchy kernel for $(C,P_0)$ of order $g$, with a simple pole along $C\times P_0$. For it, \[ E_\kappa(u)=\bigl(\tfrac12D^2u+B\cdot Du\bigr)\omega^2,\qquad B=\frac{y_0-(g-1)\,y-\sum_{i=0}^{g-1}T_i(x)}{x}. \] Consequently, for every prime element $\pi$ of $A$ of degree $d$ and every adapted basis, \[ W_d\equiv-1+\pi\,\frac{\tfrac12D^2\pi+(B+\beta_\pi)\,D\pi}{(D\pi)^2}\pmod{\pi^2},\qquad K_\pi=\beta_\pi\,\omega, \] where $\beta_\pi$ is a rational function regular at the zeros of $\pi$. Moreover $\varkappa=m_0\otimes\gamma$ with $\gamma\in\Om$ and $m_0\in k^\times$, so $K_\pi=-m_0\gamma$ is a single differential of $\Om$. \end{proposition} For $g=1$, $B=0$ and $E_\kappa=\frac12D^2\omega^2$ as in \cite{G1,G3}. \section{Proofs of Lemma \ref{lem:pair} and Theorem \ref{thm:A}} \begin{proof}[Proof of Lemma \ref{lem:pair}] The differential $u\nu/\pi$ has poles only at $\infty$ and at the zeros of $\pi$, which are simple and form one closed point $Q$ with residue field $\mathbf F_\pi$. Writing $u\nu/\pi=(u\nu/d\pi)\,d\pi/\pi$, its residue at $Q$ is $\Tr_{\mathbf F_\pi/k}$ of the value of $u\nu/d\pi$; the residue theorem gives the formula. The map $\Om/\pi\Om\to\mathbf F_\pi$, $\nu\mapsto\overline{\nu/d\pi}$, is an isomorphism because $\Om$ is invertible and $d\pi$ generates it at $Q$; so the pairing is perfect. \end{proof} \begin{lemma}\label{lem:lin} Let $\delta\colon V_d\to\mathbf F_\pi$, $\delta(v)=\overline{dv/d\pi}$, and let $c_0$ be the coefficient of $z$ in the unique expression $\delta(v)=\sum_{j=0}^{d-1}c_j\bar v^{\,q^j}$. Then $W_d\equiv-1+\pi c_0\pmod{\pi^2}$, and $\tr_k(M_u\circ\delta\circ\rho^{-1})=\Tr_{\mathbf F_\pi/k}(uc_0)$ for $u\in\mathbf F_\pi$, where $\rho\colon V_d\to \mathbf F_\pi$ is the reduction and $M_u$ the multiplication by $u$. \end{lemma} \begin{proof} The completion of $A$ at $\pi$ is $\mathbf F_\pi[[\pi]]$. Writing $u\equiv\bar u+\delta'(u)\pi\pmod{\pi^2}$ with $\bar u\in\mathbf F_\pi$ the Teichm\"uller representative, $\delta'$ is a $k$-derivation $A\to\mathbf F_\pi$ with $\delta'(\pi)=1$, hence $\delta'(u)=\overline{du/d\pi}$. The polynomial $e(z)=\prod_{v\in V_d}(z-v)$ is $k$-linear, its coefficient of $z$ is $(-1)^{q^d-1}W_d=W_d$, and $e(z)\equiv z^{q^d}-z+\pi g(z)\pmod{\pi^2}$ with $g$ $k$-linear of degree less than $q^d$. For $v\in V_d$, $v^{q^d}\equiv\bar v\pmod{\pi^2}$, so $0=e(v)\equiv\bar v-v+\pi g(\bar v)$ and $g(\bar v)=\delta(v)$; comparing the coefficients of $z$ gives the first assertion. For the second, let $\phi$ be the $q$-Frobenius of $\mathbf F_\pi$; for $02g-2$). So the constant section $-1$ lifts to $H^0(Y,\mathcal F(\Delta))$. \end{proof} \begin{proof}[Proof of Lemma \ref{lem:E}] In the coordinate $z$, $u_1-u_2=\partial_zu(z_2)(z_1-z_2)+\partial_z^{(2)}u(z_2)(z_1-z_2)^2+\cdots$, so $(u_1-u_2)\kappa=\bigl(\partial_zu+(\partial_z^{(2)}u+a\,\partial_zu)(z_1-z_2)+\cdots\bigr)dz_2$. Restricting to the diagonal gives $du$; applying $d_1$ and restricting gives $E_\kappa(u)$. The product rule follows from $\partial_z^{(2)}(uv)=u\partial_z^{(2)}v+\partial_zu\,\partial_zv+v\partial_z^{(2)}u$. The difference of two Cauchy kernels is regular on $(C\setminus\infty)^2$, and $\mu(d_1((u_1-u_2)h))=du\cdot\mu(h)$ for $h\in A\otimes\Om$. \end{proof} \begin{lemma}\label{lem:repro} Write $R_0=\sum_ir_i\otimes s_i$ with $r_i\in A$, $s_i\in\Om$. Then $\sum_i\langle u,s_i\rangle r_i\equiv u\pmod\pi$ for every $u\in A$. \end{lemma} \begin{proof} It suffices to evaluate at a zero $P\in C(\bar k)$ of $\pi$. There $R_0(P,\cdot)=-\pi\cdot\kappa(P,\cdot)$, so the left side is $\Res_\infty(u\,\kappa(P,\cdot))$. The differential $u\,\kappa(P,\cdot)$ is regular on $C\setminus\{\infty,P\}$ and has at $P$ a simple pole with residue $-u(P)$; the residue theorem gives $u(P)$. \end{proof} \begin{proof}[Proof of Theorem \ref{thm:B}] Write $R=\sum_jm_j\otimes t_j$ with $t_j\in\Om$. As $R-R_0\in\pi A\otimes\Om$, Lemma~\ref{lem:repro} gives $\sum_j\langle m_i,t_j\rangle m_j\equiv m_i\pmod\pi$, hence $\langle m_i,t_j\rangle=\delta_{ij}$ and $t_j\equiv\nu_j\pmod{\pi\Om}$. Therefore \[ \Theta_\pi\equiv\sum_jdm_j\cdot t_j=\mu(d_1R)=\mu(d_1R_0)-\mu\bigl(d_1(\pi_1\varkappa)\bigr) =E_\kappa(\pi)-d\pi\cdot\mu(\varkappa)-\pi\,\mu(d_1\varkappa), \] which is the first assertion; the congruence for $W_d$ is then Theorem~\ref{thm:A}. Filter $A\otimes\Om$ by the degree in the first variable. If $\kappa$ has order $N$, then $R_0=\pi_1\kappa-\pi_2\kappa$ has first degree at most $d+N$. The elements $m_s$ with $s-d\notin S$, $s\le d+N$, and $\pi m_t$ with $t\in S$, $t\le N$, have pairwise distinct degrees filling $S\cap[0,d+N]$, so they form a basis of the space of elements of $A$ of degree at most $d+N$; expressing the first variable of $R_0$ in this basis gives \eqref{dec} with only $s\le N$. The elements of $S$ up to $2g-1$ are $g$ in number. The last assertion follows from the uniqueness in \eqref{dec}. \end{proof} The sections of Examples \ref{ex:line} and \ref{ex:plane} are Cauchy kernels: for the first this is clear, and for the second it follows from \cite[Lemmas 13 and 15]{G5}: by Lemma 13, $(u_1-u_2)\kappa\in A\otimes\Om$ for every $u\in A$, which gives the regularity at a point $(P,Q)$ outside $\Delta$ on choosing $u$ with $u(P)\ne u(Q)$, and by Lemma 15, $\mu((u_1-u_2)\kappa)=du$, which gives the residue $-1$ along $\Delta$. The identifications of $E_\kappa$ and $K_\pi$ follow from the same Lemma 15 and from the definitions. \section{Proof of Proposition \ref{prop:hyp}} Write $\kappa=k\,\omega_2$ and let $\infty_C$ be the point at infinity of the model $y^2=f(x)$, $P_0'=(0,-y_0)$. The differentials $x^i\omega$, $0\le i\le g-1$, are holomorphic, and $\omega$ has neither zero nor pole on the affine curve. \emph{Regularity in $P_2$.} The first term is $\Phi(x_1,x_2)/(y_1-y_2)$ with $\Phi=(f(x_1)-f(x_2))/(x_1-x_2)$, hence regular where $x_1\ne x_2$ or $y_1\ne y_2$, i.e.\ outside $\Delta$. The second term is regular on the affine curve except at $x_2=0$; at $P_0'$ its numerator vanishes, and at $P_0$ it gives the simple pole $dx_2/x_2$. Near $P_2=\infty_C$, $\frac{y_1+y_2}{x_1-x_2}+\frac{y_0+y_2}{x_2}=\frac{y_2}{x_2}\bigl[(1+\tfrac{y_0}{y_2})-(1+\tfrac{y_1}{y_2}) (1-\tfrac{x_1}{x_2})^{-1}\bigr]$ is $O(y_2/x_2^2)+O(1/x_2)$, and $y_2x_2^{-2}\omega_2$, $x_2^{-1}\omega_2$ are regular at $\infty_C$. So $\kappa$ is regular in $P_2$ outside $P_1$ and $P_0$, with at most a simple pole at $P_0$. \emph{Regularity in $P_1$.} On the affine curve the only poles are along $\Delta$ and at $x_1=0$. At $P_0'$, $y_1=-\hat y(x_1)$, so $y_1+T_i(x_1)=O(x_1^{\,i+1})$ and every term is regular. At $P_0$ the pole order is at most $g$. Near $P_1=\infty_C$, $\frac{y_1+y_2}{x_1-x_2}=\sum_{i\ge0}x_2^{\,i}(y_1+y_2)x_1^{-i-1}$; for $i\ge g$ the function $y_1x_1^{-i-1}$ is regular at $\infty_C$, and for $i