\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} \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{\dd}{\partial} \newcommand{\dhh}{\partial^{(2)}} \begin{document} \title[Wilson primes for hyperelliptic coordinate rings]{Wilson primes for coordinate rings\\ of hyperelliptic curves with one point at infinity} \author{David Niedbala Giraudin} \address{Independent researcher, France. ORCID 0009-0009-1526-1178} \date{24 November 2026} \begin{abstract} Let $A=\F_q[x,y]/(y^2+h(x)y-f(x))$ be the coordinate ring of a smooth affine curve of genus $g\ge1$ with one point at infinity ($\deg f=2g+1$, $\deg h\le g$), in any characteristic; $A$ need not be principal. With the Wilson product $W_d$ of \cite{G1,G2}, a prime element $\pi$ of degree $d$ is called a Wilson prime if $W_d\equiv-1\pmod{\pi^2}$. We prove that $W_d\equiv-1+\pi\,(E(\pi)+K_\pi D\pi)/(D\pi)^2\pmod{\pi^2}$, so that $\pi$ is a Wilson prime if and only if $\pi$ divides $E(\pi)+K_\pi D\pi$, where $D$ is the invariant derivation, $E=(h^2+4f)\,\partial_x^{(2)}+(f'+h'(y+h))\,\partial_x$ is a second order operator written with Hasse derivatives, the same in every characteristic, and $K_\pi\in A$ is defined by a canonical decomposition; for $d\ge2g$ it is a polynomial in $x$ of degree less than $g$, given by an explicit recipe in terms of the leading coefficients of $\pi$. This contains the divisibility criteria of \cite{G1,G2} for the four rings of class number one, and Thakur's criterion for $\F_q[t]$ has the same shape. The statement is confirmed by exact computation on $17$ curves of genus $1,2,3$ in characteristics $2,3,5,7$. \end{abstract} \maketitle \section{Setting and statements} Let $k=\F_q$ of characteristic $p$, and $h,f\in k[x]$ with $f$ monic of odd degree $\gamma=2g+1\ge3$ and $\deg h\le g$. We assume that the affine curve $C\colon F(x,y):=y^2+h(x)y-f(x)=0$ is smooth over $\bar k$. Let $A=k[x,y]/(F)$ and $K$ its fraction field. This is the imaginary model of a hyperelliptic curve of genus $g$ \cite[Chapter 14]{CF}: $C$ has a unique point $\infty$ at infinity, it is $k$-rational, $A$ is the ring of functions regular outside $\infty$, a Dedekind domain with $A^\times=k^\times$, and $\deg:=-\ord_\infty$ satisfies $\deg x=2$, $\deg y=\gamma$ (the condition $\deg h\le g$ is what makes $y^2$ dominate $hy$ at infinity). Let $S=\{0,2,4,\dots\}\cup\{\gamma,\gamma+2,\dots\}$; for $j\in S$ put $m_j=x^{j/2}$ ($j$ even), $m_j=x^{(j-\gamma)/2}y$ ($j$ odd). The $m_j$ form a $k$-basis of $A$, $\deg m_j=j$; we write $a=\sum_ja_jm_j$, and $a_j=0$ for $j\notin S$. A \emph{prime element} is a $\pi\in A$ such that $A/\pi$ is a field; its \emph{degree} is $d=\dim_kA/\pi=\deg\pi\in S$. We do not assume that $A$ is principal. \begin{definition}\label{def} For $d\in S$, $d\ge2$, $V_d$ is the $k$-span of the $m_j$ with $j\in S$, $j-d\notin S$, and $W_d=\prod_{v\in V_d\setminus\{0\}}v$. A prime element $\pi$ of degree $d$ is a \emph{Wilson prime} if $W_d\equiv-1\pmod{\pi^2}$. \end{definition} \begin{lemma}\label{lem:res} $A=V_d\oplus\pi A$ for every prime element $\pi$ of degree $d$. Hence $V_d\to A/\pi$ is bijective and $W_d\equiv-1\pmod\pi$. \end{lemma} \begin{proof} The degree of a non-zero element of $V_d$ lies in $S\setminus(d+S)$, which has $d$ elements, and the degree of a non-zero multiple of $\pi$ lies in $d+S$. So $V_d\cap\pi A=0$ and $\dim V_d=d=\dim A/\pi$. \end{proof} The space $V_d$, hence $W_d$ and the notion of Wilson prime, depend on the model, i.e.\ on $x,y$. For the four rings of class number one this is the definition of \cite{G1,G2}; in $\F_q[t]$ the analogous product is Thakur's $F_d$ \cite{T13,T24}, and the generalisation to other function fields is asked for in \cite[\S7.5, Question (2)]{T24}. \subsection*{The operators $D$ and $E$} Put $w=2y+h=\partial F/\partial y$. As $C$ is smooth, $w$ and $f'-h'y=-\partial F/\partial x$ have no common zero, and $w\neq0$ in $A$ (if $p=2$ and $h=0$, then $f'$ has a root $x_0$ and the point with $x=x_0$ is singular). So $\Omega_{A/k}$ is free on $\omega=dx/w=dy/(f'-h'y)$, which has neither zero nor pole on $C$, and there is a unique $k$-derivation $D$ of $A$ with $da=D(a)\,\omega$: \[ Dx=w,\qquad Dy=f'-h'y. \] For a prime element $\pi$, the zeros of $\pi$ are simple, so $D\pi$ is a unit modulo $\pi$. Let $\dd=\dd^{(1)}$, $\dhh$ be the first two Hasse derivatives of $K$ with respect to $x$ (a separating element, as $w\ne0$); they are the coefficients of the $k$-algebra homomorphism $K\to K[[t]]$, $a\mapsto\sum_n\dd^{(n)}a\,t^n$, which extends $x\mapsto x+t$ \cite{HS}. So $D=w\,\dd$. Define \begin{equation}\label{E} E(a)=w^2\,\dhh a+\bigl(f'+h'(y+h)\bigr)\,\dd a,\qquad w^2=h^2+4f . \end{equation} If $p$ is odd, $E=\tfrac12(D^2+h'D)$. We shall see (Lemma~\ref{lem:taylor}) that $E$ maps $A$ into $A$. Explicitly, for $a,b\in k[x]$, with $a^{[2]}=\dhh a$ and $\Delta=h^2+4f$, \begin{align} D(a+by)&=\bigl(ha'+2fb'+f'b\bigr)+\bigl(2a'-hb'-h'b\bigr)y,\notag\\ E(a+by)&=\bigl(\Delta a^{[2]}+(f'+hh')a'+(hf'-h'f)b'+(hf^{[2]}-2h^{[2]}f)b\bigr)\label{Eexp}\\ &\quad+\bigl(h'a'+\Delta b^{[2]}+(3f'+hh')b'+(2f^{[2]}+hh^{[2]})b\bigr)\,y.\notag \end{align} \subsection*{The element $K_\pi$} In $A\otimes_kA$ write $a_1=a\otimes1$, $a_2=1\otimes a$, let $\mu\colon A\otimes A\to A$ be the multiplication and $G=y_1+y_2+h(x_1)$. By Lemma~\ref{lem:R0} below there is a unique $R_0\in A\otimes A$ with \begin{equation}\label{R0}(x_1-x_2)R_0=(\pi_1-\pi_2)\,G .\end{equation} By Lemma~\ref{lem:res}, $A\otimes A=(V_d\otimes A)\oplus(\pi A\otimes A)$, so there are unique $R\in V_d\otimes A$ and $\varkappa\in A\otimes A$ with \begin{equation}\label{dec} R_0=R+\pi_1\varkappa. \end{equation} We put $K_\pi=-\mu(\varkappa)\in A$. \begin{theorem}\label{thm:main} Let $\pi$ be a prime element of $A$ of degree $d\ge2$. Then \[ W_d\equiv-1+\pi\,\frac{E(\pi)+K_\pi D\pi}{(D\pi)^2}\pmod{\pi^2}. \] In particular $\pi$ is a Wilson prime if and only if $\pi$ divides $E(\pi)+K_\pi\,D\pi$. \end{theorem} \begin{proposition}\label{prop:K} Let $d\ge\gamma-1=2g$ and normalise $\pi_d=1$. Let $\rho=\pi\,(y+h)=\sum_n\rho_nm_n$. For $a=g-1,g-2,\dots,0$ define $c_a\in k[x]$ by \[ c_a=\sum_{i\ge0}\rho_{d+2a+2+2i}\,x^i-\sum_{ad+\gamma-2$. The indices $j\ge d$ with $j-d\in S$ and $j\le d+\gamma-2$ are $j=d+2a$, $0\le a\le g-1$. For $\varkappa'=\sum_ax^a\otimes c_a$ the coefficient of $m_{d+2a}$ in $\pi_1\varkappa'$ is $\sum_{a'\ge a}\pi_{d-2(a'-a)}c_{a'}$, which equals $r_{d+2a}$ by the definition of the $c_a$ (recall $\pi_d=1$). So $R_0-\pi_1\varkappa'$ has no component on $m_j$ with $j-d\in S$, i.e.\ it lies in $V_d\otimes A$, and $\varkappa=\varkappa'$ by uniqueness in \eqref{dec}. This proves Proposition~\ref{prop:K}. For $g=2$: $c_1=\rho_{d+4}$ and $c_0=\rho_{d+2}+x\rho_{d+4}-\pi_{d-2}\rho_{d+4}$, which gives Corollary~\ref{cor:g2}. For $g=1$: $K_\pi=-c_0=-\rho_{d+2}$. Here $f=x^3+\cdots$, and $y\cdot x^iy=x^if-h\,x^iy$. If $d$ is odd, $m_d=x^iy$ and the terms of degree $d+2$ of $m_d(y+h)$ are $-h_1x^{i+1}y+h_1x^{i+1}y=0$, while $m_{d-1}y=m_{d+2}$; so $\rho_{d+2}=\pi_{d-1}$. If $d$ is even, $m_d\,h$ contributes $h_1m_{d+2}$, and for $d\ge4$, $m_{d-1}=x^jy$ with $2j+3=d-1$ and $m_{d-1}(y+h)=x^jf$ has leading term $m_{d+2}$ (for $d=2$, $\pi_1=0$); so $\rho_{d+2}=\pi_{d-1}+h_1$. The monomials $m_j$, $j\le d-2$, contribute in degree at most $d+1$. This proves Corollary~\ref{cor:g1}. \qed \section{Numerical verification}\label{sec:num} The ancillary script \texttt{verify\_wilson\_hyperelliptic.py} (pure Python) treats the $17$ curves below over $\F_p$ (prime elements are counted up to units). For every prime element $\pi$ of degree $d$ in the indicated range it computes $W_d$ modulo $\pi^2$ from the definition (and also as a plain product when $p^d\le300$), builds $R_0$, $R$ and $\varkappa$, and checks that $W_d\equiv-1\pmod\pi$, that $\mu(D_1R_0)=E(\pi)$ with $E$ given by \eqref{Eexp}, that $K_\pi$ agrees with Proposition~\ref{prop:K} when $d\ge2g$, and the congruence of Theorem~\ref{thm:main}. There is no failure on the $1377$ prime elements of degree at most the bound given in the table, of which $59$ are Wilson primes. \begin{center}\small \begin{tabular}{cclllccl} $p$&$g$&$h$&$f$&$d\le$&primes&Wilson°rees with Wilson primes\\\hline $3$ & $1$ & $0$ & $x^{3}+2x+2$ & $6$ & $212$ & $15$ & 3, 5, 6\\ $2$ & $1$ & $1$ & $x^{3}+x+1$ & $10$ & $218$ & $12$ & 2, 5, 10\\ $5$ & $1$ & $0$ & $x^{3}+x+1$ & $4$ & $22$ & $1$ & 3\\ $7$ & $1$ & $0$ & $x^{3}+3$ & $3$ & $10$ & $2$ & 2, 3\\ $2$ & $1$ & $x$ & $x^{3}+1$ & $12$ & $184$ & $4$ & 12\\ $3$ & $1$ & $x+1$ & $x^{3}+x^{2}+1$ & $6$ & $38$ & $3$ & 3, 5\\ $5$ & $1$ & $x+2$ & $x^{3}+x^{2}+3x+1$ & $4$ & $73$ & $1$ & 3\\ $3$ & $1$ & $0$ & $x^{3}+x^{2}+2x+1$ & $6$ & $60$ & $8$ & 2, 3, 6\\ $2$ & $2$ & $1$ & $x^{5}+x^{3}+1$ & $10$ & $234$ & $7$ & 2, 4, 9\\ $3$ & $2$ & $0$ & $x^{5}+x^{2}+2$ & $6$ & $31$ & $2$ & 2\\ $5$ & $2$ & $0$ & $x^{5}+2x+1$ & $4$ & $8$ & $0$ & --\\ $2$ & $2$ & $x$ & $x^{5}+x^{2}+1$ & $10$ & $119$ & $0$ & --\\ $3$ & $2$ & $x^{2}+1$ & $x^{5}+x^{3}+x+2$ & $6$ & $20$ & $0$ & --\\ $3$ & $2$ & $x+1$ & $x^{5}+x^{3}+2$ & $6$ & $42$ & $0$ & --\\ $2$ & $3$ & $1$ & $x^{7}+x+1$ & $10$ & $43$ & $2$ & 2, 10\\ $3$ & $3$ & $0$ & $x^{7}+x+2$ & $7$ & $22$ & $2$ & 7\\ $2$ & $3$ & $x+1$ & $x^{7}+1$ & $10$ & $41$ & $0$ & --\\ \end{tabular} \end{center} A second program, written with the FLINT library, tested the criterion further on nine of these curves and one other (up to degree $14$ for $p=2$, $9$ for $p=3$, $6$ for $p=5$, $5$ for $p=7$): $5334$ prime elements, no failure. For $q=4$ see \cite{G2}. Fourteen of the $17$ curves have class number greater than one. \section{Status and questions} Theorem~\ref{thm:main}, Proposition~\ref{prop:K} and the corollaries are proved above. Nothing in this note has been checked by a third party. The computations cover prime fields only, apart from the case $q=4$ of \cite{G2}. Open: a criterion for the prime ideals of $A$ that are not principal; an expression of $K_\pi$ for $d<2g$; the set of degrees carrying Wilson primes and their infinitude. \subsection*{Acknowledgement} This work was carried out with the AI system Claude (Anthropic), which performed the computations and the drafting under the author's direction. \begin{thebibliography}{9} \bibitem{CF} H. Cohen, G. Frey et al., \emph{Handbook of Elliptic and Hyperelliptic Curve Cryptography}, Chapman \& Hall/CRC, 2006. \bibitem{G1} D. Niedbala Giraudin, Wilson primes for an elliptic coordinate ring of class number one, Hexagon 2611.01007 (2026). \bibitem{G2} D. Niedbala Giraudin, Wilson primes for the coordinate rings of class number one in characteristic two, Hexagon 2611.01009 (2026). \bibitem{HS} H. Hasse, F. K. Schmidt, Noch eine Begr\"undung der Theorie der h\"oheren Differentialquotienten in einem algebraischen Funktionenk\"orper einer Unbestimmten, J. reine angew. Math. \textbf{177} (1937), 215--237. \bibitem{T13} D. S. Thakur, Differential characterization of Wilson primes for $\F_q[t]$, Algebra Number Theory \textbf{7} (2013), no.~8, 1841--1848. \bibitem{T24} D. S. Thakur, Fermat--Wilson supercongruences, arithmetic derivatives and strange factorizations, J. Th\'eor. Nombres Bordeaux \textbf{36} (2024), no.~2, 481--491. \end{thebibliography} \end{document}