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 >= 1 with one point at infinity (deg f = 2g+1, deg h <= g), in any characteristic; A need not be principal. With the Wilson product W_d of Hexagon 2611.01007 and 2611.01009, a prime element pi of degree d is called a Wilson prime if W_d = -1 mod pi^2. We prove that W_d = -1 + pi (E(pi) + K_pi D(pi)) / D(pi)^2 mod 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) d_x^(2) + (f' + h'(y+h)) d_x is a second order operator written with Hasse derivatives, the same in every characteristic, and K_pi is defined by a canonical decomposition; for d >= 2g 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 the two earlier notes 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.
Setting and statements
Let k=Fq of characteristic p, and h,f∈k[x] with f monic of odd degree γ=2g+1≥3 and degh≤g. We assume that the affine curve C:F(x,y):=y2+h(x)y−f(x)=0 is smooth over k. Let A=k[x,y]/(F) and K its fraction field. This is the imaginary model of a hyperelliptic curve of genus g[1 Chapter 14]: C has a unique point ∞ at infinity, it is k-rational, A is the ring of functions regular outside ∞, a Dedekind domain with A×=k×, and deg:=−ord∞ satisfies degx=2, degy=γ (the condition degh≤g is what makes y2 dominate hy at infinity). Let S={0,2,4,…}∪{γ,γ+2,…}; for j∈S put mj={xj/2x(j−γ)/2y(j even),(j odd). The mj form a k-basis of A, degmj=j; we write a=∑jajmj, and aj=0 for j∈/S. A prime element is a π∈A such that A/π is a field; its degree is d=dimkA/π=degπ∈S. We do not assume that A is principal.
Definition 1. For d∈S, d≥2, Vd is the k-span of the mj with j∈S, j−d∈/S, and
Wd=v∈Vd∖{0}∏v.
A prime element π of degree d is a Wilson prime if Wd≡−1(modπ).
Lemma 2.A=Vd⊕πA for every prime element π of degree d. Hence Vd→A/π is bijective and Wd≡−1(modπ).
Proof. The degree of a non-zero element of Vd lies in S∖(d+S), which has d elements, and the degree of a non-zero multiple of π lies in d+S. So Vd∩πA=0 and dimVd=d=dimA/π.
The space Vd, hence Wd 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 [2, 3]; in Fq[t] the analogous product is Thakur’s Fd[5, 6], and the generalisation to other function fields is asked for in [6 §7.5, Question (2)].
The operators D and E. Put w=2y+h=∂F/∂y. As C is smooth, w and f′−h′y=−∂F/∂x have no common zero, and w=0 in A (if p=2 and h=0, then f′ has a root x0 and the point with x=x0 is singular). So ΩA/k is free on ω=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)ω:
Dx=w,Dy=f′−h′y.
For a prime element π, the zeros of π are simple, so Dπ is a unit modulo π. Let ∂=∂(1),∂(2) be the first two Hasse derivatives of K with respect to x (a separating element, as w=0); they are the coefficients of the k-algebra homomorphism K→K[[t]], a↦∑n∂(n)atn, which extends x↦x+t[4]. So D=w∂. Define
E(a)=w2∂(2)a+(f′+h′(y+h))∂a,w2=h2+4f.(1)
If p is odd, E=21(D2+h′D). We shall see (Lemma 13) that E maps A into A. Explicitly, for a,b∈k[x], with a[2]=∂(2)a and Δ=h2+4f,
The element Kπ. In A⊗kA write a1=a⊗1, a2=1⊗a, let μ:A⊗A→A be the multiplication and G=y1+y2+h(x1). By Lemma 11 below there is a unique R0∈A⊗A with
(x1−x2)R0=(π1−π2)G.(3)
By Lemma 2, A⊗A=(Vd⊗A)⊕(πA⊗A), so there are unique R∈Vd⊗A and ϰ∈A⊗A with
R0=R+π1ϰ.(4)
We put Kπ=−μ(ϰ)∈A.
Theorem 3. Let π be a prime element of A of degree d≥2. Then
Wd≡−1+π(Dπ)2E(π)+KπDπ(modπ2).
In particular π is a Wilson prime if and only if π divides E(π)+KπDπ.
Proposition 4. Let d≥γ−1=2g and normalise πd=1. Let ρ=π(y+h)=∑nρnmn. For a=g−1,g−2,…,0 define ca∈k[x] by
ca=i≥0∑ρd+2a+2+2ixi−a<a′≤g−1∑πd−2(a′−a)ca′.
Then ϰ=∑a=0g−1xa⊗ca and Kπ=−∑a=0g−1caxa, a polynomial in x of degree at most g−1.
Corollary 5. Let g=1, h=h1x+h0. For every prime element π of degree d≥2 with πd=1, Kπ=−πd−1−ϵh1, where ϵ=1 if d is even and ϵ=0 if d is odd. So π is a Wilson prime if and only if π divides E(π)−(πd−1+ϵh1)Dπ.
Corollary 6. Let g=2 and d≥4, πd=1. Then Kπ=−ρd+2−(2x−πd−2)ρd+4.
Remark 7. (a) For p=3, h=0, f=x3−x−1: E=−D2 and Kπ=−πd−1, so the criterion is π∣D2π+πd−1Dπ, which is [2 Theorem 4(1)] (there Dx=−y=2y). (b) For p=2, h=1: D=∂, E=∂(2)+f′∂; Corollary 5 gives Kπ=πd−1, and Corollary 6 with f=x5+x3+1 gives Kπ=πd−3+πd−1πd−2: this is [3 Theorem 3]. (c) In Fq[t], with V the polynomials of degree less than d, the same argument applies with R0=(℘1−℘2)/(t1−t2)∈V⊗A and no correction term; it gives the vanishing of the second Hasse derivative of ℘, which is Thakur’s criterion [5]. We do not give the details.
Reduction to a linear coefficient
Fix a prime element π of degree d, Fπ=A/π, ρπ:Vd→Fπ the bijection of Lemma 2, and define the k-linear map δπ:Fπ→Fπ by δπ(ρπ(v))=D(v)modπ. Every k-linear endomorphism of Fπ is uniquely z↦∑j=0d−1λjzqj; let λ0 be the coefficient of z for δπ.
Proposition 8.Wd≡−1+πλ0/Dπ(modπ2). So π is a Wilson prime if and only if λ0=0.
Proof. The completion of A at π is Fπ[[π]]. For a∈A write a≡aˉ+δ(a)π(modπ2) with aˉ,δ(a)∈Fπ. Then δ is a k-derivation with δ(π)=1, so δ=D(⋅)/Dπ because ΩA/k=Aω. The polynomial e(z)=∏v∈Vd(z−v) is k-linear, monic of degree qd, and its coefficient of z is ∏v=0(−v)=(−1)qd−1Wd=Wd (qd−1 is even if p is odd, and −1=1 if p=2). Modulo π it is zqd−z, so e(z)≡zqd−z+πg(z)(modπ2) with g a k-linear polynomial over Fπ of degree <qd. For v∈Vd, vqd≡vˉ(modπ2), so 0=e(v)≡vˉ−v+πg(vˉ), i.e. g(vˉ)=δ(v). Hence g=δπ/Dπ as functions on Fπ, hence as polynomials. Compare the coefficients of z. □
Lemma 9.trk(Ma∘δπ)=TrFπ/k(aλ0) for a∈Fπ, where Ma is multiplication by a. So λ0=0 if and only if trk(Ma∘δπ)=0 for all a.
Proof. Let ϕ be the q-Frobenius. For 0<j<d the trace trk(Mbϕj) is k-linear in b, hence equal to Tr(cjb) for some cj; conjugation by Mζ gives Tr(cjb)=Tr(cjbζqj−1) for all b, so cj(1−ζqj−1)=0, and cj=0 on taking ζ a generator of Fπ×. Finally trk(Mb)=TrFπ/k(b). □
The pairing and the kernel
For b,c∈A put ⟨b,c⟩=−Res∞(bcω/π).
Lemma 10.⟨b,c⟩=TrFπ/k(bc/Dπ). It induces a non-degenerate symmetric k-bilinear form on Fπ with ⟨ab,c⟩=⟨a,bc⟩.
Proof.bcω/π has poles only at ∞ and at the zeros of π, which are simple and form one Galois orbit. As dπ=Dπω, the residue at a zero Q is (bc/Dπ)(Q). Apply the residue theorem. □
Lemma 11. For every a∈A there is a unique R0(a)∈A⊗A with (x1−x2)R0(a)=(a1−a2)G.
Proof.C is geometrically integral, so A⊗A is a domain; uniqueness follows. We have A⊗A/(x1−x2)≅A[Y]/((Y−y)(Y+y+h)), with Y the image of y2. Let N∈A[Y] represent (a1−a2)G. It vanishes at Y=y, because a1−a2 does, so N=(Y−y)Q with Q∈A[Y]. It vanishes at Y=−y−h, because G=y+Y+h; so −ωQ(−y−h)=0, hence Q(−y−h)=0 as ω=0, and Q is divisible by Y+y+h. □
Lemma 12. Write R0=R0(π)=∑iri⊗si. Then ∑i⟨b,si⟩ri=b(modπ) for every b∈A.
Proof. As π generates a radical ideal, it suffices to evaluate at a zero P∈C(kˉ) of π, the pairing being extended kˉ-linearly in the second variable. By (3) and π(P)=0, R0(P,⋅)=−π⋅CP with CP=(y+y(P)+h(x(P)))/(x(P)−x), so the left side is Res∞(bCPω). Let P be the conjugate of P: x(P)=x(P), y(P)=−y(P)−h(x(P)). The affine poles of CP are among P,P.
If w(P)=0, then P=P, x−x(P) is a uniformiser at P and at P, the numerator of CP vanishes at P and equals w(P) at P. So bCPω=bCPdx/w has, on the affine curve, only a simple pole at P, with residue −b(P).
If w(P)=0, then P=P, s=y−y(P) is a uniformiser at P, the numerator of CP is s, and expanding F(x(P)+ξ,y(P)+s)=0 gives ξ=x−x(P)=s2/(f′−h′y)(P)+O(s3). With ω=dy/(f′−h′y) we get again a simple pole with residue −b(P).
In both cases the residue theorem gives Res∞(bCPω)=b(P).
Lemma 13. Let τ:A⊗A→K[[t]] be the ring homomorphism τ(a⊗b)=b∑n∂(n)atn, and let D1=D⊗1. For Φ∈A⊗A write τ(Φ)=Φ0+Φ1t+⋯. Then μ(Φ)=Φ0 and μ(D1Φ)=wΦ1. Consequently, for every a∈A,
μ(R0(a))=D(a),μ(D1R0(a))=E(a);
in particular E(A)⊂A.
Proof.μ(Φ)=Φ0 is clear. The maps τ∘D1 and τ(w1)dtd∘τ are derivations of A⊗A into K[[t]] over τ; both vanish on 1⊗A and both send x1 to τ(w1). As τ(w1) has constant term w=0, the relation τ(w1)ϑ(y1)=τ(f′−h′y)1ϑ(x1), valid for both derivations ϑ because F(x1,y1)=0, shows that they agree on y1; so they are equal, and taking constant terms gives μ(D1Φ)=wΦ1.
Now τ(x1−x2)=t, τ(a1−a2)=∂at+∂(2)at2+⋯ and τ(G)=w+(∂y+h′)t+⋯, so τ(R0(a))=w∂a+(w∂(2)a+(∂y+h′)∂a)t+⋯. Hence μ(R0(a))=w∂a=D(a) and μ(D1R0(a))=w2∂(2)a+(Dy+h′w)∂a=E(a), because Dy+h′w=f′−h′y+h′(2y+h).
Formula (2) follows from (1) by a direct computation, using w∂y=f′−h′y and w∂(2)y=f[2]−h[2]y−(∂y)2−h′∂y, which give E(y)=w(f[2]−h[2]y).
Proof of Theorem 3
Let R,ϰ be as in (4), and write R=∑jmj⊗tj, the sum over the monomials of Vd. As R−R0∈πA⊗A, Lemma 12 gives ∑j⟨mi,tj⟩mj≡mi(modπ), hence ⟨mi,tj⟩=δij by Lemma 2. So trk(T)=∑j⟨Tmj,tj⟩ for every endomorphism T of Fπ, and with Lemma 10
By Lemmas 9 and 10, Tr(aλ0)=⟨a,Θ⟩=Tr(aΘ/Dπ) for all a∈Fπ, so λ0=Θ/Dπ in Fπ, and Proposition 8 gives the theorem.
Proof of Proposition 4 and of the corollaries
Write R0=∑j∈Smj⊗rj. We have xmj=mj+2, so the coefficient of mn (first variable) in (x1−x2)R0 is rn−2−xrn, with rj=0 for j∈/S. On the other side (π1−π2)G=(π(y+h))1+π1y2−π2G, where π1y2 has degree d and π2G has degree at most γ≤d+1 in the first variable (recall degh(x)≤2g<γ). As d≥2g, every j≥d belongs to S. So for n≥d+2 we get rn−2−xrn=ρn, and as R0 has finite support,
rj=i≥0∑ρj+2+2ixi(j≥d),
in particular rj=0 for j>d+γ−2. The indices j≥d with j−d∈S and j≤d+γ−2 are j=d+2a, 0≤a≤g−1. For κ′=∑axa⊗ca the coefficient of md+2a in π1κ′ is ∑a′≥aπd−2(a′−a)ca′, which equals rd+2a by the definition of the ca (recall πd=1). So R0−π1κ′ has no component on mj with j−d∈S, i.e. it lies in Vd⊗A, and κ=κ′ by uniqueness in (4). This proves Proposition 4.
For g=2: c1=ρd+4 and c0=ρd+2+xρd+4−πd−2ρd+4, which gives Corollary 6. For g=1: Kπ=−c0=−ρd+2. Here f=x3+⋯, and y⋅xiy=xif−hxiy. If d is odd, md=xiy and the terms of degree d+2 of md(y+h) are −h1xi+1y+h1xi+1y=0, while md−1y=md+2; so ρd+2=πd−1. If d is even, mdh contributes h1md+2, and for d≥4, md−1=xjy with 2j+3=d−1 and md−1(y+h)=xjf has leading term md+2 (for d=2, π1=0); so ρd+2=πd−1+h1. The monomials mj, j≤d−2, contribute in degree at most d+1. This proves Corollary 5. □
Numerical verification
The ancillary script verify_wilson_hyperelliptic.py (pure Python) treats the 17 curves below over Fp (prime elements are counted up to units). For every prime element π of degree d in the indicated range it computes Wd modulo π2 from the definition (and also as a plain product when pd≤300), builds R0, R and κ, and checks that Wd≡−1(modπ), that μ(D1R0)=E(π) with E given by (2), that Kπ agrees with Proposition 4 when d≥2g, and the congruence of Theorem 3. 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.
p
g
h
f
d≤
primes
Wilson
degrees with Wilson primes
3
1
0
x3+2x+2
6
212
15
3, 5, 6
2
1
1
x3+x+1
10
218
12
2, 5, 10
5
1
0
x3+x+1
4
22
1
3
7
1
0
x3+3
3
10
2
2, 3
2
1
x
x3+1
12
184
4
12
3
1
x+1
x3+x2+1
6
38
3
3, 5
5
1
x+2
x3+x2+3x+1
4
73
1
3
3
1
0
x3+x2+2x+1
6
60
8
2, 3, 6
2
2
1
x5+x3+1
10
234
7
2, 4, 9
3
2
0
x5+x2+2
6
31
2
2
5
2
0
x5+2x+1
4
8
0
–
2
2
x
x5+x2+1
10
119
0
–
3
2
x2+1
x5+x3+x+2
6
20
0
–
3
2
x+1
x5+x3+2
6
42
0
–
2
3
1
x7+x+1
10
43
2
2, 10
3
3
0
x7+x+2
7
22
2
7
2
3
x+1
x7+1
10
41
0
–
Table 1.
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 [3]. Fourteen of the 17 curves have class number greater than one.
Status and questions
Theorem 3, Proposition 4 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 [3]. Open: a criterion for the prime ideals of A that are not principal; an expression of Kπ for d<2g; the set of degrees carrying Wilson primes and their infinitude.
Acknowledgement. This work was carried out with the AI system Claude (Anthropic), which performed the computations and the drafting under the author’s direction.
Independent researcher, France. ORCID 0009-0009-1526-1178
References
[1]H. Cohen, G. Frey et al., Handbook of Elliptic and Hyperelliptic Curve Cryptography, Chapman & Hall/CRC, 2006.
[2]D. Niedbala Giraudin, Wilson primes for an elliptic coordinate ring of class number one, Hexagon 2611.01007 (2026).hub.valency.io/works/W_u882ayrg
[3]D. Niedbala Giraudin, Wilson primes for the coordinate rings of class number one in characteristic two, Hexagon 2611.01009 (2026).hub.valency.io/works/W_pkuan3kw
[4]H. Hasse, F. K. Schmidt, Noch eine Begründung der Theorie der höheren Differentialquotienten in einem algebraischen Funktionenkörper einer Unbestimmten, J. reine angew. Math. 177 (1937), 215–237.DOI
[5]D. S. Thakur, Differential characterization of Wilson primes for 𝔽_q[t], Algebra Number Theory 7 (2013), no. 8, 1841–1848.
[6]D. S. Thakur, Fermat–Wilson supercongruences, arithmetic derivatives and strange factorizations, J. Théor. Nombres Bordeaux 36 (2024), no. 2, 481–491.arxiv.org/abs/2211.01076