1 The computation and some observations

The theory and practice of computing weight one modular forms has typically lagged behind that of computing higher weight forms. This is mainly because forms of higher weight are cohomological and there is a direct method for computing them using modular symbols. Indeed, the computer algebra package Magma [1] has been able to compute forms of weight two or more for over fifteen years now using modular symbols, and the free open source package Sage [5] can also compute these forms. (Custom code existed well before then: examples we know of are due to Cohen–Skoruppa–Zagier, Cremona, Gouvêa and Stein.) By contrast, no such direct method is known in weight one and there were no generally applicable algorithms until more recently—the pioneering work of Buhler [3] and project coordinated by Frey [9] were both focused on computing one or more specific spaces of forms, rather than on a systematic computation.

The first author adapted the methods of Buhler and Frey et al. so that they could be applied systematically, and reported on the details of the algorithm in [4]. This code, which computed bases of spaces of modular forms of weight one and arbitrary Dirichlet character, was written in Magma and incorporated into the distributed version of the Magma package by Steve Donnelly. The authors have used this code (with some additions) to carry out a computation of the Hecke newforms in weight one for increasing level and all characters. Computations have been completed for all levels up to 1500 and the data obtained is available in both Magma and Sage formats on a webpage which accompanies this paper [2]. George Schaeffer informs the authors that he has implemented his more efficient “Hecke stability method” [12] for weight one in Sage, but only for quadratic character, and has computed such newforms up to level around 800. A Magma implementation of Schaeffer’s algorithm for general character would be of great practical use in extending our tables of weight one modular forms (at present Sage seems a less suitable platform for carrying out such computations).

What do we mean by computing weight one newforms? For a given level N and odd character \(\chi \), we present each cuspidal new eigenform \(f \in S_1(N,\chi )\) as a truncated q-expansion \(f(q)+{\mathcal O}(q^M)\) with Fourier coefficients in an explicit abelian field containing the image of \(\chi \). The q-adic precision M is chosen so that there is a unique weight two form of level N and trivial character whose q-expansion is \(E_1(1,\chi ^{-1}) \cdot f(q) + {\mathcal O}(q^M)\), where \(E_1(1,\chi ^{-1})\) denotes the Eisenstein series of weight one and characters 1 and \(\chi ^{-1}\), thus ensuring further Fourier coefficients can be easily computed if desired using modular symbols in weight two. On our webpage bases of spaces of modular forms are given in the same manner, and we provide code which allows the user to compute the Fourier expansions to arbitrary precision, as well as computations of q-expansions up to \(O(q^{10,000})\).

Having computed all newforms up to a given level, two natural questions for us to consider were what further computations can one do with this data, and how to make the data available to other researchers in an easily accessible manner.

The main computation we did with the data was that for each cuspidal newform we rigorously computed whether the projective image of the associated Galois representation was a dihedral group or one of \(A_4\), \(S_4\) or \(A_5\). This seemed like a natural question to ask and it needed, what was for us, a novel trick to answer. Note that as a consequence we are able to determine the smallest level N for which there exists a weight one modular form whose associated projective Galois representation has image \(A_5\). The level is 633 and the Dirichlet character has order 10. The analogous questions for \(A_4\) and \(S_4\) were answered in [4], levels 124 and 148 with characters of order 6 and 4, respectively. This level 633 icosahedral form does not seem to have been computed before—Buhler’s original icosahedral example had level 800 and the first author in [4] found an example with level 675. (The original motivation for the second author in carrying out such computations was for a specific experimental application which required knowledge of the projective image. Such a classification of cuspidal newforms of small level in weight one was crucial in developing and numerical testing the conjectural, and occasionally provable, new constructions of points on elliptic curves and units defined over dihedral, \(A_4\), \(S_4\) and \(A_5\) number fields in [6, 7]. The \(A_4\) form of level 124, and the \(S_4\) form of level 148 occur in [6, Examples 5.4 and 5.6].)

One further computation which could be done with the data is to find the number field cut out by the projective Galois representation associated to each cuspidal newform. The most straightforward way to answer this question for a given newform is to search in a pre-computed table of number fields. Once a number field has been found that one suspects is the right one, one can rigorously prove that it is by invoking the Artin conjecture, which is known in this situation thanks to the work of Khare and Wintenberger [10]. For example, the number field cut out by the projective Galois representation attached to the \(A_5\) form in level 633 is the splitting field of the polynomial \(x^5 - 211x^2 - 1266x - 1899\). We did not attempt to automate this process though. (An alternative analytic approach to finding candidate number fields, working directly from the Fourier expansions, is to invoke Stark’s conjecture [13]. This may also be used to find the maximal real subfield of the field cut out by the Galois representation itself.)

We have made available on a webpage all of our data (on Fourier expansion of cuspidal newforms, dimensions and bases of spaces of cuspidal forms) in easily readable Magma and Sage format, along with accompanying code which allows the user to perform some further computations [2]. This seemed to the authors the best way of making the data accessible and useable for other researchers (including developers of the L-functions and modular forms database [11]).

In this note we shall not discuss the methods used to compute the newforms in each level: this was an involved computation, and took many months, but the most interesting aspects of the methods used are already described in [4]. The remainder of this note is devoted solely to explaining how the projective image of each cuspidal newform was rigorously determined. We hope though that the reader will view this paper and the accompanying website as two halves of a whole, and explore the code and data on the website alongside reading this short paper.

2 Determining the projective image

It is a simple matter to guess the projective image of the Galois representation attached to a weight one modular form, given the initial Fourier coefficients. Moreover, an effective version of the Cebotarov density theorem allows one to turn this guess into a proof, given sufficiently many of these Fourier coefficients. Such an approach is unlikely to lead to a very practical test though: too many Fourier coefficients would be required. Our purpose is to present some theoretical criteria involving Fourier coefficients which allow one to rigorously distinguish between the different projective images, and which are not dependent on an effective Cebotarov density theorem and so require relatively few Fourier coefficients and work well in practice. To explain these criteria we need first set up some notation.

2.1 Weight one newforms and Galois representations

Let \(N\ge 1\) and \(\chi \) be a Dirichlet character modulo N. The space of weight 1 cuspforms of level \(\Gamma _1(N)\) and character \(\chi \) is finite-dimensional over the complex numbers and will be denoted \(S_1(N,\chi )\). If \(f=\sum _{n\ge 1}a_nq^n\in S_1(N,\chi )\) then we say f is a normalised eigenform if f is an eigenform for all the Hecke operators (including those at the bad primes) and \(a_1 = 1\). As for higher weights there is a theory of oldforms and newforms. If \(f=\sum a_nq^n\in S_1(N,\chi )\) is a normalised eigenform which is furthermore a newform of level N, then a theorem of Deligne and Serre (Theorem 4.1 of [8]) tells us that there is a continuous odd irreducible Galois representation

$$\begin{aligned} \rho _f:{{\mathrm{Gal}}}(\overline{\mathbf {Q}}/\mathbf {Q})\rightarrow {{\mathrm{GL}}}_2(\mathbf {C}) \end{aligned}$$

associated to f. In contrast to the higher weight case, the target here is a complex group rather than a p-adic one, and furthermore the image of \(\rho _f\) is finite, so \(\rho _f\) can be thought of as a faithful representation \({{\mathrm{Gal}}}(M_f/\mathbf {Q})\rightarrow {{\mathrm{GL}}}_2(\mathbf {C})\), where \(M_f\) is a finite Galois extension of \(\mathbf {Q}\). The representation \(\rho _f\) has conductor N, and in particular the extension \(M_f/\mathbf {Q}\) is unramified outside N. The representation \(\rho _f\) is characterised by the following property: if \(p\not \mid N\) is prime, then the characteristic polynomial of \(\rho _f({{\mathrm{Frob}}}_p)\) is \(X^2-a_pX+\chi (p)\).

We can projectivise \(\rho _f\) and obtain a projective Galois representation

$$\begin{aligned} \overline{\rho }_f:{{\mathrm{Gal}}}(\overline{\mathbf {Q}}/\mathbf {Q})\rightarrow {{\mathrm{PGL}}}_2(\mathbf {C}). \end{aligned}$$

The image of \(\overline{\rho }_f\) is a finite subgroup of \({{\mathrm{PGL}}}_2(\mathbf {C})\) and is hence either cyclic, dihedral (including the degenerate case of the non-cyclic group of order 4), or isomorphic to \(A_4\), \(S_4\) or \(A_5\). (This argument goes back to Weber; the pre-image of a finite subgroup of \({{\mathrm{PGL}}}_2(\mathbf {C})\) in \({{\mathrm{SL}}}_2(\mathbf {C})\) stabilises a hermitian form so lives in SU(2), which maps in a 2-to-1 manner onto \({{\mathrm{SO}}}_3(\mathbf {R})\), and the finite subgroups of this can be classified via the Platonic solids.) Because \(\rho _f\) is irreducible, the image of \(\overline{\rho }_f\) cannot be cyclic (otherwise the image of \(\rho _f\) would be a central extension of a cyclic group by a cyclic group and hence abelian), but the other cases do occur. We refer to f in these cases as a dihedral form, an \(A_4\) form, an \(S_4\) form or an \(A_5\) form respectively. If f is not a dihedral form then we say it is exotic.

In our computations, based upon the algorithms in [4], the dihedral forms in each level were separately computed using explicit class field theory as a step towards determining a basis for the whole space of modular forms in that level. Note in particular that magma’s inbuilt class field theory algorithms can be used to rigorously compute the space of diheral forms of a given level (and these algorithms run very quickly in practice for levels at most 1500). All the newforms in each level were later computed, including recomputing the dihedral ones, when the newspace in that level was separated into eigenforms using Hecke operators. So for us the main problem left was to quickly and rigorously sort the exotic forms. One could adopt a similar approach here as for the dihedral case, but to do this one would have to solve the following sort of problem: given a finite set of primes S, we would need to be able to produce a provably complete list of Galois extensions of \(\mathbf {Q}\) which were unramified outside S and had Galois group \(A_5\) (say). For certain sets of primes S such tables exist (for example the Jones–Roberts database) but we wanted to completely automate the process within magma so we had to come up with another approach.

2.2 Separating out the exotic forms into \(A_4\), \(S_4\) and \(A_5\) forms

We start with a simple lemma.

Lemma 1

Let \(g\in {{\mathrm{PGL}}}_2(\mathbf {C})\) and \(\tilde{g}\in {{\mathrm{GL}}}_2(\mathbf {C})\) be any lift of g.

  1. (a)

    If g has finite order n then the complex number \(c(\tilde{g})={{\mathrm{trace}}}(\tilde{g})^2/\det (\tilde{g})\) is independent of the choice of \(\tilde{g}\), and writing c(g) for \(c(\tilde{g})\) we have \(c(g)=2+\zeta +\zeta ^{-1}\) where \(\zeta \in \mathbf {C}\) is a primitive nth root of unity.

  2. (b)

    Assume that g has finite order. Then

    $$\begin{aligned} g\,\,has\,\,order\,\,1,2,3,4,5 \Longleftrightarrow c(g)=4,0,1,2,\frac{3\pm \sqrt{5}}{2},\,respectively. \end{aligned}$$

Proof

  1. (a)

    Any two lifts of g to \({{\mathrm{GL}}}_2(\mathbf {C})\) differ by a non-zero scalar, from which it is easy to check that \(c(\tilde{g})\) depends only on g. If \(\tilde{g}\) is any lift of g to \({{\mathrm{GL}}}_2(\mathbf {C})\) then \(\tilde{g}\) must be diagonalisable (or else g would have infinite order) and if the eigenvalues are \(\lambda \) and \(\mu \) then the order of g in \({{\mathrm{PGL}}}_2(\mathbf {C})\) equals the multiplicative order of \(\lambda /\mu \) in \(\mathbf {C}^\times \). Because g has order n, we must have \(\lambda =\mu \zeta \) for \(\zeta \) a primitive nth root of unity, and now everything follows from a direct calculation.

  2. (b)

    This follows easily from (a).

\(\square \)

Now let f be a newform of weight one, level N and character \(\chi \). By Lemma 1 (a) we see that for a prime \(p \not \mid N\) the order of the element \(\overline{\rho }_f({{\mathrm{Frob}}}_p)\) is uniquely (and explicitly) determined by

$$\begin{aligned} c(\rho _f({{\mathrm{Frob}}}_p)) = \frac{a_p^2}{\chi (p)}. \end{aligned}$$

Moreover, when f is exotic the values of \(c(\rho _f({{\mathrm{Frob}}}_p))\) which can occur, and corresponding orders of \(\overline{\rho }_f({{\mathrm{Frob}}}_p)\), are given in Lemma 1 (b). We shall use this to separate out the exotic forms into those with \(A_4\), \(S_4\) and \(A_5\) projective images.

Assume now that f is an exotic newform, and let S be a set of primes p each not dividing N (for our tests we take S to be the set of all such primes up to some bound). Then we see immediately from our lemma that:

$$\begin{aligned} \begin{array}{l} f\,\text {is}\,\mathrm{an}\,\,A_4\,\text {form} \Longrightarrow \{ a_p^2 / \chi (p) \,|\, p \in S \} \subseteq \{0,1,4\}.\\ f\, \text {is}\,\,\text {an}\,S_4\,\text {form} \Longrightarrow \{ a_p^2 / \chi (p) \,|\, p \in S \} \subseteq \{0,1,2,4\}.\\ f\, \text {is}\,\,\mathrm{an}\,A_5\,\text {form} \Longrightarrow \{ a_p^2 / \chi (p) \,|\, p \in S \} \subseteq \{0,1,\frac{3\pm \sqrt{5}}{2},4\}. \end{array} \end{aligned}$$

For sufficiently large S these inclusions will all become equalities, and these three implications can then be used to determine the projective image of an exotic form. The problem with this is that quantifying what we mean by “sufficiently large” requires an effective version of the Cebotarov density theorem and is likely to lead to an impractical test.

In practice \(S_4\) and \(A_5\) forms will soon reveal themselves, by the existence of a small prime \(p \in S\) such that \(a_p^2 / \chi (p) = 2\) or \(\frac{3\pm \sqrt{5}}{2}\), respectively. The trickier question is:

Given a suspected \(A_4\) form, that is an exotic one with \(\{ a_p^2 / \chi (p) \,|\, p \in S \} = \{0,1,4\}\), how do we rigorously rule out the possibility that f is an \(S_4\) form or \(A_5\) form?

We first explain an efficient algorithm which can be used to show that a suspected \(A_4\) form f is not an \(S_4\) form.

Proposition 2

Suppose f is an \(S_4\) form and \(\rho _f\) cuts out the extension \({{\mathrm{Gal}}}(M_f/\mathbf {Q})\). Then there exists a quadratic extension \(K/\mathbf {Q}\) contained within \(M_f\) such that for every element \(\sigma \) of \({{\mathrm{Gal}}}(M_f/\mathbf {Q})\) which is not in \({{\mathrm{Gal}}}(M_f/K)\), the order of \(\overline{\rho }_f(\sigma )\) is either 2 or 4.

Proof

This follows immediately by Galois theory from the fact that every element of \(S_4\) which is not in the index 2 subgroup \(A_4\) has order 2 or 4. \(\square \)

Thus if f is an \(S_4\) form, then by Lemma 1 (b) and Proposition 2 there is a quadratic field K of discriminant dividing N such that for every prime \(p \not \mid N\) which is inert in K we have \(a_p^2 / \chi (p) \in \{0,2\}\). So given a suspected \(A_4\) form, we can rule out that it is an \(S_4\) form by, for each of the finitely many quadratic fields of discriminant dividing N, finding a prime p not dividing the level of f which is inert in K and for which \(a_p^2 / \chi (p) \not = 0\). This is in practice very easy to do.

Recall that the coefficient field of f (that generated by its Fourier coefficients) is the extension of \(\mathbf {Q}(\chi )\) generated by the coefficients \(a_p\) for p less than the “Sturm bound” \(\frac{1}{12}[{{\mathrm{SL}}}_2(\mathbf {Z}): \Gamma _0(N)]\) in level N. We use the coefficient field to give a practical way of proving that a suspected \(A_4\) form f is not an \(A_5\) form.

Proposition 3

Suppose f is an \(A_4\) form and f has character of order coprime to 5. Then the coefficient field of f does not contain \(\sqrt{5}\).

Proof

Let G be the image of \(\overline{\rho }_f\), so G is a subgroup of \({{\mathrm{PGL}}}_2(\mathbf {C})\) isomorphic to \(A_4\). The pre-image of G in the degree 2 cover \({{\mathrm{SL}}}_2(\mathbf {C})\) of \({{\mathrm{PGL}}}_2(\mathbf {C})\) is then a group \(\tilde{G}\) of order 24, and if Z denotes the scalar matrices in \({{\mathrm{GL}}}_2(\mathbf {C})\) then the image of \(\rho _f\) must be contained within the group \(Z\tilde{G}\). Furthermore, because the determinant of \(\rho _f\) equals the character of f and in particular has order d prime to 5, the image of \(\rho _f\) must be contained within \(\mu _{2d}\tilde{G}\) where \(\mu _{2d}\) denotes the 2dth roots of unity within Z. In particular the image of \(\rho _f\) must have order prime to 5. If \(f=\sum a_nq^n\) then this means that each \(a_p\) is a sum of at most 2 roots of unity of order prime to 5 (this is true even at the bad primes: by local-global compatibility the \(a_p\) in this case equals the trace of Frobenius on the inertial invariants) and the field generated by the \(a_p\) and the values of \(\chi \) is hence unramified at 5. \(\square \)

Now if f is an \(A_5\) form then the coefficient field of f must contain \(\sqrt{5}\), because by the Cebotarev density theorem there will be primes p with \(a_p = \frac{3\pm \sqrt{5}}{2}\). So given a suspected \(A_4\) form f with character order coprime to 5 we can ruled out that it is an \(A_5\) form by checking the coefficient field does not contain \(\sqrt{5}\). This was enough for our purposes, since all suspected \(A_4\) forms of level \(N \le 1500\) had character of order coprime to 5.

However there are \(A_4\) forms whose field of coefficients contains \(\sqrt{5}\). (For example take an \(A_4\) form and twist it by a Dirichlet character to ensure that it has character of order a multiple of 5. Then the coefficient field of the twisted form will contain \(\mathbf {Q}(\zeta _5)\) and this contains \(\sqrt{5}\).) We could fix this problem however, were it ever to occur, using the following observation. If f is any eigenform then some twist \(f'=f\otimes \xi \) of f will have character \(\chi '\) of order coprime to 5 (if f has character \(\chi \) of order \(5^de\) with \(d\ge 1\) and \(5\not \mid e\) then twist f by \(\chi ^{(5^d-1)/2}\) for example). The point of this twisting is that if f really is an \(A_4\) form then so is \(f^\prime \), and applying Proposition 3 to \(f'\) we see that the coefficient field of \(f^\prime \) will be unramified at 5.

Remark 4

This test would need rather many Fourier coefficients however, up to the Sturm bound in level \(N {{\mathrm{cond}}}(\xi )^2\) where \({{\mathrm{cond}}}(\xi )\) is the conductor of \(\xi \). We had computed the Fourier expansions modulo \(O(q^{10,000})\) but even so felt fortunate this twisting trick was not required.