1 Introduction

Let \(C/\mathbb {Q}\) be a nice (i.e. smooth, projective and geometrically integral) curve of genus g with Jacobian \(J_C\). Fix a prime p. Then it is well known that the subgroup of points of \(J_C\) of order dividing p, \(J_C[p]\), defines a finite Galois extension \(\mathbb {Q}(J_C[p])/\mathbb {Q}\). We would like to control the ramification of this extension as much as possible.

We say that a number field F is tame (resp. unramified) if \(F/\mathbb {Q}\) is tamely ramified (resp. unramified) at every finite prime of F. Throughout, we will always write \(\zeta _m\) for a primitive m-th root of unity.

Remark 1.1

Let \(\zeta _p\) be a primitive p-th root of unity. Recall that by the Weil pairing, we have \(\mathbb {Q}(\zeta _p) \subset \mathbb {Q}(J_C[p])\). If p is odd, then \(\mathbb {Q}(\zeta _p)/\mathbb {Q}\) is (tamely) ramified at p and hence \(\mathbb {Q}(J_C[p])\) cannot be unramified over \(\mathbb {Q}\).Footnote 1

If \(p=2\), then we can ensure that \(\mathbb {Q}(J_C[2])=\mathbb {Q}\) (which is unramified), for example by using the genus g hyperelliptic curve \(C: y^2=\prod \nolimits _{j=0}^{2g}(x-j)\).

For our first result, we address the question of whether the extension \(\mathbb {Q}(J_C[p])\) can be tame.

Theorem 1.2

Fix a positive integer g and rational prime p. Then there exists a nice curve \(C/\mathbb {Q}\) of genus g such that \(\mathbb {Q}(J_C[p])/\mathbb {Q}\) is tame.

As an application of this result, we study the tame inverse Galois problem. Recall that the classical inverse Galois problem asks if every finite group G is (abstractly) realisable as a Galois group \({\text {Gal}}(F/\mathbb {Q})\) for some Galois extension \(F/\mathbb {Q}\). The tame variant (due to Birch [6, p. 35]) further asks if we can moreover impose that F is tame. We consider the tame version for the case \(G={\text {GSp}}_{2g}(\mathbb {F}_p)\), p odd.

This is known when \(g=1\) (all p) and \(g=2\) (\(p \geqslant 5\)) thanks to the work of Arias-de-Reyna–Vila [3, Theorem 1.2], [4, Theorem 5.3]. Recent work of the author with T. Dokchitser [5, Theorem 6.7] strengthens this result to hold for any genus g and odd prime p, dependent on a variant of Goldbach’s conjecture; in particular it holds for \(g \leqslant 10^7\) and any odd p by computational verification.

Our second result is an unconditional version of this but the method of proof is less explicit so would not enable one to construct such a curve directly.

Theorem 1.3

(=Theorem 5.2) Fix a positive integer g and odd prime p. There exists a nice curve \(C/\mathbb {Q}\) of genus g such that the extension \(\mathbb {Q}(J_C[p])/\mathbb {Q}\) is tame, and \({\text {Gal}}(\mathbb {Q}(J_C[p])/\mathbb {Q}) \cong {\text {GSp}}_{2g}(\mathbb {F}_p)\).

Remark 1.4

Before we start our proofs, we note that is also an alternative proof in [5] to Theorem 1.2 with an identical approach for \(\ell \ne p\) to force \(\mathbb {Q}(J[p])\) to be tame. However the approach for \(\ell =p\) is substantially different; they use the theory of Mumford curves whereas here we will impose restrictions on the endomorphism algebra. Moreover, they treat the case \(p=2\) separately which is not necessary here.

Layout of the paper In Sect. 2, we give Kisin’s result on local constancy in p-adic families which enables us to reduce our global problem to a local problem, and provide a proof assuming the endomorphism ring of a particular family of curves. In Sect. 3, we recap the theory of abelian varieties with complex multiplication and explain how this enables us to ensure tame ramification at p. We then give an explicit family of curves whose Jacobians have suitable endomorphism rings in Sect. 4 which completes the proof of Theorem 1.2. Finally in Sect. 5, we turn our attention to the inverse Galois problem and give a proof of Theorem 1.3.

2 Local strategy

We now discuss conditions to ensure that \(\mathbb {Q}(J_C[p])/\mathbb {Q}\) is tame. Our approach will be to impose some local conditions on C in order to guarantee tameness at each prime and then apply the following result of Kisin which allows us to amalgamate these local conditions using the Chinese remainder theorem.

Theorem 2.1

Let \(\ell \) be a prime. Let \(C_f: y^2=f(x)\) be a hyperelliptic curve, with \(f\in \mathbb {Z}_{\ell }[x]\) squarefree. For every \(m\geqslant 1\), there exists \(N\geqslant 1\) such that if \(\tilde{f}\equiv f\mod \ell ^N\) and \(\deg (f)=\deg (\tilde{f})\) then \(C_{\tilde{f}}: y^2=\tilde{f}(x)\) is a hyperelliptic curve with

$$\begin{aligned} {\text {Jac}}(C_{\tilde{f}})[m] \cong {\text {Jac}}(C_f)[m] \end{aligned}$$

as \({\text {Gal}}(\overline{\mathbb {Q}_{\ell }}/\mathbb {Q}_{\ell })\)-modules.

Proof

This is a special case of [7, Theorem 5.1(1)]. Note that for N large enough, all \(\tilde{f}\equiv f\mod \ell ^N\) are squarefree, and so define a \(\ell \)-adic family of hyperelliptic curves of the same genus.\(\square \)

We begin with giving the local conditions away from p.

Lemma 2.2

Fix a rational prime p. Let \(C/\mathbb {Q}\) be a genus g curve with Jacobian \(J_C\) such that:

  1. (i)

    C has good reduction at all \(\ell \leqslant 2g+1, \ell \ne p\);

  2. (ii)

    \(\mathbb {Q}_p(J_C[p])/\mathbb {Q}_p\) is tamely ramified.

Then \(\mathbb {Q}(J_C[p])/\mathbb {Q}\) is tame.

Proof

We have to show that \(\mathbb {Q}(J_C[p])/\mathbb {Q}\) is tamely ramified at \(\ell \) for all primes \(\ell \ne p\). If \(\ell \leqslant 2g+1\) then C, and hence \(J_C\), has good reduction at \(\ell \) by assumption. The criterion of Néron–Ogg–Shafarevich then implies that \(\mathbb {Q}(J_C[p])/\mathbb {Q}\) is unramified at \(\ell \). On the other hand, if \(\ell >2g+1\), then the extension is always tamely ramified at \(\ell \) by a result of Serre–Tate [9, p. 497].\(\square \)

It remains to provide a condition at p to ensure tameness. We do this using endomorphism algebras through the following result.

Theorem 2.3

(=Theorem 4.3) Fix a positive integer g and rational prime p. Choose \(n \in \{2g+1,2g+2\}\) such that \(p \not \mid n\). Let \(C_n/\mathbb {Q}\) be the hyperelliptic curve \(y^2=x^n-1\) with Jacobian \(J_n\). Then \(\mathbb {Q}_p(J_n[p])/\mathbb {Q}_p\) is tamely ramified.

We are now in a position to prove Theorem 1.2, assuming the above theorem. The remainder of the paper will then be dedicated to providing a proof of Theorem 2.3.

Proof of Theorem 1.2

We will construct a family of hyperelliptic curves \(C_f:y^2=f(x)\) of genus g which satisfy this condition, where \(\deg (f)=2g+2\).

For primes \(\ell \leqslant 2g+1\), \(\ell \ne p\) choose a polynomial \(f_{\ell }(x) \in \mathbb {Z}[x]\) of degree \(2g+2\) such that \(C_{f_{\ell }}\) has good reduction at \(\ell \). If \(\ell \) is odd, then it suffices to choose \(f_{\ell }\) such that its reduction \(\mod \ell \) has the same degree and separable; if \(f \equiv f_{\ell } \mod \ell \), then \(C_f\) will also have good reduction at \(\ell \). For \(\ell =2\), explicit conditions for \(f_2\) are given in [2, Lemma 7.7]; note that \(f \equiv f_2 \mod 2\) is insufficient but \(f \equiv f_2 \mod 2^{2g+2}\) will suffice in condition (ii) of loc. cit.

For \(\ell =p\), choose \(n \in \{2g+1,2g+2\}\) such that \(p \not \mid n\) and suppose \(f \equiv x^n-1 \mod p^N\) where N is as in Theorem 2.1 (if necessary, change \(C_n:y^2=x^n-1\) to an even degree model). Now let f(x) be a squarefree polynomial of degree \(2g+2\) satisfying the above congruence conditions and let \(C_f:y^2=f(x)\). Then by Theorems 2.1 and 2.3, \(\mathbb {Q}_p({\text {Jac}}(C_f)[p])/\mathbb {Q}_p\) is tamely ramified. The result now follows from Lemma 2.2.

Remark 2.4

Observe that for \(p \ne 2\), the hyperelliptic curve \(C_n\) has good reduction at p for \(p \not \mid n\). Hence it is possible to extend this approach to constructing curves \(C/\mathbb {Q}\) such that \(\mathbb {Q}(J_C[m])/\mathbb {Q}\) is tame whenever m is odd and squarefree. We do not prove this more general statement here however but instead refer the reader to [5].

3 Abelian varieties with complex multiplication

In order to obtain a sufficiently large endomorphism ring, we consider abelian varieties with complex multiplication. In this section, we will provide the relevant background and show how this can give us the tame torsion result we want; in the next section will realise this as the Jacobian of a curve.

Definition 3.1

Let \(A/\mathbb {Q}_p\) be an abelian variety of dimension g. Let F be an étale \(\mathbb {Q}\)-algebra of dimension 2g. We say that A has complex multiplication by an order \(R \subset F\) if

$$\begin{aligned} {\text {End}}_{\overline{\mathbb {Q}_p}}(A) \cong R. \end{aligned}$$

Note that if \(A/\mathbb {Q}_p\) is absolutely simple, then F is a number field and R has finite index inside the ring of integers \(\mathcal {O}_F\). In general \(F=\prod F_i\) will be a finite product of number fields, so we will write \(\mathcal {O}_F=\prod \mathcal {O}_{F_i}\) for the maximal order of F and will restrict ourselves to the setting where \(R=\mathcal {O}_F\).

The benefit of having lots of endomorphisms is that it heavily restricts the possible choices of \(\mathbb {Q}_p(A[p])\); in fact, the Galois group of the p-torsion field is abelian once all the endomorphisms are defined over the base field of A.

Theorem 3.2

Let \(\mathcal {K}/\mathbb {Q}_p\) be a finite extension and let \(A/\mathcal {K}\) be an abelian variety with complex multiplication by the maximal order \(\mathcal {O}_F\subset F\). Suppose that all endomorphisms of A are defined over \(\mathcal {K}\), i.e. \({\text {End}}_{\mathcal {K}}(A)={\text {End}}_{\overline{\mathbb {Q}_p}}(A)\). Let p be a prime and let \(\rho \) be the mod p Galois representation of \(A/\mathcal {K}\). Then \({\text {Im}}(\rho ) \subset (\mathcal {O}_F\otimes _{\mathbb {Z}} \mathbb {F}_p)^{\times }\).

Proof

This is essentially Corollary 2 of [9, p. 502] in conjunction with the remark proceeding it. Our assumption that we have complex multiplication by \(\mathcal {O}_F\) implies that the p-adic Tate module \(T_pA\) of A is free \(\mathcal {O}_F\otimes _{\mathbb {Z}} \mathbb {Z}_p\)-module of rank 1 and hence the image of the Galois representation attached to \(T_pA\) is contained in \((\mathcal {O}_F\otimes _{\mathbb {Z}} \mathbb {Z}_p)^{\times }\); tensoring with \(\mathbb {Z}/p\mathbb {Z}\) yields the result.\(\square \)

We now compute \(\mathcal {O}_F\otimes _{\mathbb {Z}} \mathbb {F}_p\) explicitly in order to deduce information about the cardinality of the image of the mod p representation.

Lemma 3.3

Let F be a number field and let p be a prime. Then

$$\begin{aligned} \mathcal {O}_F\otimes _{\mathbb {Z}} \mathbb {F}_p\cong \prod \limits _{v|p} \dfrac{\mathbb {F}_v[\epsilon ]}{\epsilon ^{e(v|p)}}, \end{aligned}$$

where \(\mathbb {F}_v\) is the residue field of \(\mathcal {O}_F\) at v, e(v|p) is the ramification degree and the product is over places v of F dividing p.

Proof

This follows from the fact that \(\mathcal {O}_F\otimes _{\mathbb {Z}} \mathbb {F}_p\cong \dfrac{\mathcal {O}_F}{p\mathcal {O}_F}\).\(\square \)

Lemma 3.4

Let \(A/\mathbb {Q}_p\) be an abelian variety with complex multiplication by the ring of integers \(\mathcal {O}_F\) of an étale \(\mathbb {Q}\)-algebra \(F=\prod F_i\) with \(F_i\) number fields. Let \(\mathcal {K}/\mathbb {Q}_p\) be a finite extension such that \({\text {End}}_{\mathcal {K}}(A)={\text {End}}_{\overline{\mathbb {Q}_p}}(A)\). Suppose that:

  1. (i)

    p is unramified in \(F_i/\mathbb {Q}\) for all i;

  2. (ii)

    \(\mathcal {K}/\mathbb {Q}_p\) is tamely ramified.

Then \(\mathbb {Q}_p(A[p])/\mathbb {Q}_p\) is tamely ramified.

Proof

We prove the stronger statement that \(\mathcal {K}(A[p])/\mathbb {Q}_p\) is tamely ramified. By our assumption, it suffices to show that \(\mathcal {K}(A[p])/\mathcal {K}\) is tamely ramified. Since A has complex multiplication by \(\mathcal {O}_F\), \({\text {Gal}}(\mathcal {K}(A[p])/\mathcal {K})\) is contained in a subgroup of \((\mathcal {O}_F\otimes _{\mathbb {Z}} \mathbb {F}_p)^{\times }\) by Theorem 3.2. However, \(\mathcal {O}_F\otimes _{\mathbb {Z}} \mathbb {F}_p\) is a product of finite fields of characteristic p by Lemma 3.3 since p is unramified in \(F_i\) for all i. Hence \((\mathcal {O}_F\otimes _{\mathbb {Z}} \mathbb {F}_p)^{\times }\) has order coprime to p.

Therefore the order of \({\text {Gal}}(\mathcal {K}(A[p])/\mathcal {K})\) is also coprime to p and hence the extension is tamely ramified at p as the image of wild inertia is a p-group. \(\square \)

4 Constructing the endomorphism algebra

We now construct a suitable curve whose Jacobian has complex multiplication in order to be able to apply the above results. We do this by explicitly computing the endomorphism ring for a particular class of curves; we closely follow the ideas in [12, §4] but adapt them for a more general cyclic cover.

Throughout this section, we let \(C_n/\mathbb {Q}_p: y^2=x^n-a\) be a hyperelliptic curve, \(a \in \mathbb {Q}_p^{\times }\), and we will write \(J_n\) for its Jacobian.

Lemma 4.1

Let \(C_n: y^2=x^n-a\) be a hyperelliptic curve, \(a \in \mathbb {Q}_p^{\times }\), with Jacobian \(J_n\). Let \(\delta _n\) denote both the \(\overline{\mathbb {Q}_p}\)-automorphism of \(C_n\) given by \((x,y) \mapsto (\zeta _nx,y)\) and the corresponding automorphism of \(J_n\) given by Albanese functoriality. Then the subring \(\mathbb {Z}[\delta _n] \subset {\text {End}}_{\overline{\mathbb {Q}_p}}J_n\) is isomorphic to \(\mathbb {Z}[t]/P_n(t)\), where \(P_n(t) \in \mathbb {Z}[t]\) be the polynomial defined by

$$\begin{aligned} P_n(t)=\left\{ \begin{array}{ll} \dfrac{t^n-1}{t-1}=t^{n-1}+\cdots +t+1 &{}\quad \text {if }n \text { is odd};\\ \dfrac{t^n-1}{t^2-1}=t^{\frac{n}{2}-1}+\cdots +t+1 &{}\quad \text {if }n\text { is even}. \end{array}\right. \end{aligned}$$

Proof

Let g be the genus of \(C_n\) and let \(\Omega ^1(C_n)\) be the vector space of differentials of the first kind of \(C_n\). Recall that a basis of \(\Omega ^1(C_n)\) is given by \(\omega _i=x^i\frac{dx}{y}\), \(0\leqslant i \leqslant g-1\). Moreover, these are eigenvectors for the corresponding automorphism \(\delta _n^*\) on \(\Omega ^1(C_n)\) (given by functoriality) with eigenvalues \(\zeta _n^{i+1}\); note that these are never 1 nor \(-1\) as \(2g<n\).

One can now check that \(P_n(\delta _n^*)=0\) in \({\text {End}}(\Omega ^1(C_n))\) and moreover that \(P_n\) is the minimal polynomial for \(\delta _n^*\) in \(\mathbb {Q}[t]\).

Fix \(P_0=(0,\sqrt{a}) \in C_n(\overline{\mathbb {Q}_p})\) which is \(\delta _n\)-invariant and define the Abel–Jacobi map \({\text {AJ}}:C_n \rightarrow J_n\) using \(P_0\). The induced map \({\text {AJ}}^*:\Omega ^1(J_n) \rightarrow \Omega ^1(C_n)\) is then an isomorphism which commutes with \(\delta _n\). Hence \(\delta _n\) and \(\delta _n^*\) have the same minimal polynomial \(P_n(t)\) in their respective endomorphism rings. \(\square \)

Theorem 4.2

Let \(C_n/\mathbb {Q}_p: y^2=x^n-a\) be a hyperelliptic curve, \(a \in \mathbb {Q}_p^{\times }, n \geqslant 3\), with Jacobian \(J_n\). Then

$$\begin{aligned} {\text {End}}_{\overline{\mathbb {Q}_p}} (J_n) \cong \prod \limits _{\begin{array}{c} d \mid n \\ d>2 \end{array}} \mathbb {Z}[\zeta _d]. \end{aligned}$$

Proof

By the above lemma, \(\mathbb {Z}[\delta _n] \cong \prod \nolimits _{\begin{array}{c} d \mid n \\ d>2 \end{array}} \mathbb {Z}[\zeta _d]\) so it just remains to prove the equality. Note that \(J_n\) is an abelian variety with complex multiplication by \(F=\mathbb {Q}[\delta _n] \cong \prod \nolimits _{\begin{array}{c} d \mid n \\ d>2 \end{array}} \mathbb {Q}(\zeta _d)\) (this has dimension 2g over \(\mathbb {Q}\)). Since \(\mathbb {Z}[\delta _n]\) is the maximal order of F, we have equality.\(\square \)

We are now finally in a position to prove Theorem 2.3.

Theorem 4.3

(=Theorem 2.3) Fix a positive integer g and rational prime p. Choose \(n \in \{2g+1,2g+2\}\) such that \(p \not \mid n\). Let \(C_n/\mathbb {Q}\) be the hyperelliptic curve \(y^2=x^n-1\) with Jacobian \(J_n\). Then \(\mathbb {Q}_p(J_n[p])/\mathbb {Q}_p\) is tamely ramified.

Proof

First note that such a choice of n is always possible. Now the endomorphism algebra is \(F=\prod \nolimits _{\begin{array}{c} d \mid n \\ d>2 \end{array}} \mathbb {Q}(\zeta _d)\) and note that each subfield of F is contained in \(\mathbb {Q}(\zeta _n)\). As \(p \not \mid n\), p is unramified in \(\mathbb {Q}(\zeta _n)\).

Moreover, we can see by construction that all endomorphisms are defined over \(\mathcal {K}=\mathbb {Q}_p(\zeta _n)\) which is tamely ramified. The theorem now follows from Lemma 3.4.

\(\square \)

5 The tame inverse Galois problem

We finally focus on the tame inverse Galois problem using the mod p representation of an abelian variety to realise \({\text {GSp}}_{2g}(\mathbb {F}_p)\). Since we have restricted our attention to hyperelliptic curves, the image of the mod 2 representation is contained \(S_{2g+2}\) and hence cannot be surjective for \(g \geqslant 3\); for this reason we assume p to be odd.

The approach will be to show that the set of hyperelliptic curves which satisfy our conditions has positive density thus proving existence. For readability, we quickly define the notion of density.

Definition 5.1

Let \(B \subset \mathbb {Z}^n\). The density of B is

$$\begin{aligned} \lim \limits _{X \rightarrow \infty } \dfrac{\# \{(a_1,\ldots , a_n) \in B : |a_i| \leqslant X \text { for all } 1\leqslant i \leqslant n \}}{\# \{(a_1,\ldots , a_n) \in \mathbb {Z}^n : |a_i| \leqslant X \text { for all } 1\leqslant i \leqslant n \}}, \end{aligned}$$

if the limit exists.

Theorem 5.2

Fix a positive integer g and odd prime p. There exists a nice curve \(C/\mathbb {Q}\) of genus g such that the extension \(\mathbb {Q}(J_C[p])/\mathbb {Q}\) is tame, and \({\text {Gal}}(\mathbb {Q}(J_C[p])/\mathbb {Q}) \cong {\text {GSp}}_{2g}(\mathbb {F}_p)\).

Proof

First identify \(\mathbb {A}_{\mathbb {Q}}^{2g+3}\) with the set of polynomials of degree at most \(2g+2\) via \(a=(a_0,\ldots ,a_{2g+2}) \mapsto f_a:=\sum \nolimits _{i=0}^{2g+2}a_ix^i\). Now let \(U \subset \mathbb {A}_{\mathbb {Q}}^{2g+3}\) be the open variety such that \(f_a\) is separable of degree \(2g+2\). We then have a smooth family of hyperelliptic curves \(\mathcal {C}\rightarrow U\), where the fibre above \(a \in U\) is the curve \(\mathcal {C}_a: y^2=f_a(x)\). Let \(\mathcal {J} \mapsto U\) be the abelian scheme corresponding to the Jacobian, i.e. the fibre above a, \(\mathcal {J}_a\), is the Jacobian of \(\mathcal {C}_a\).

Observe that the p-torsion subscheme \(\mathcal {J}[p]\) is an étale sheaf over U and defines a representation of the étale fundamental group

$$\begin{aligned} \rho : \pi ^{\acute{e}t}_1(U,u_0) \rightarrow {\text {GSp}}_{2g}(\mathbb {F}_p), \end{aligned}$$

where \(u_0\) is a fixed basepoint for U.Footnote 2 We claim \(\rho \) is surjective.

Indeed, by the Weil pairing, it suffices to show that \(\rho (\pi ^{\acute{e}t}_1(U_{\mathbb {C}},u_0)) = {\text {Sp}}_{2g}(\mathbb {F}_p)\), where \(U_{\mathbb {C}}\) is the base change of U to \(\mathbb {C}\). Since p is odd, this follows from [1, Théorème 1(1)]; A’Campo uses the topological fundamental group but we note that the étale fundamental group is isomorphic to the profinite completion of the topological one in the complex setting by Riemann’s existence theorem.

By Hilbert’s irreducibility theorem, the set of polynomials \(f_a\) with integer coefficients (corresponding to points \(a \in U(\mathbb {Q}) \cap \mathbb {Z}^{2g+3}\)) such that the specialisation of \(\rho \) at a induces an isomorphism \({\text {Gal}}(\mathbb {Q}(\mathcal {J}_a[p])/\mathbb {Q}) \cong {\text {GSp}}_{2g}(\mathbb {F}_p)\) has density 1 inside \(\mathbb {Z}^{2g+3}\) (see for example [8, p. 123]). From the proof of Theorem 1.2, we see that there is a congruence class of polynomials \(f_a\) such that \(\mathbb {Q}(\mathcal {J}_a[p])/\mathbb {Q}\) is a tame extension and hence the intersection of these two sets has positive density in \(\mathbb {Z}^{2g+3}\) which proves the result. \(\square \)

Remark 5.3

It is possible to extend the above proof to realise \({\text {GSp}}_{2g}(\mathbb {Z}/m\mathbb {Z})\) by looking at m-torsion instead when m is odd and squarefree. Indeed, tameness is done similarly (cf. Remark 2.4) and a refinement of Hilbert’s irreducibility theorem enables us to ensure the p-torsion fields are disjoint for all \(p \mid m\).