Computational Class Field Theory
Computational Class Field Theory
MSRI Publications
Volume 44, 2008
C ONTENTS
1. Introduction 497
2. Class field theory 499
3. Local aspects: ideles 503
4. Computing class fields: preparations 508
5. Class fields as Kummer extensions 509
6. Class fields arising from complex multiplication 515
7. Class fields from modular functions 522
8. Class invariants 529
Acknowledgements 532
References 533
1. Introduction
Class field theory is a twentieth century theory describing the set of finite
abelian extensions L of certain base fields K of arithmetic type. It provides a
canonical description of the Galois groups Gal.L=K/ in terms of objects defined
‘inside K’, and gives rise to an explicit determination of the maximal abelian
ab
quotient GK of the absolute Galois group GK of K. In the classical examples,
K is either a global field, that is, a number field or a function field in one variable
over a finite field, or a local field obtained by completing a global field at one
of its primes. In this paper, which takes an algorithmic approach, we restrict to
the fundamental case in which the base field K is a number field. By doing so,
we avoid the complications arising for p-extensions in characteristic p > 0.
497
498 HENRI COHEN AND PETER STEVENHAGEN
ab
Class field theory describes GK for a number field K in a way that can be
seen as a first step towards a complete description of the full group GK GQ .
At the moment, such a description is still far away, and it is not even clear what
kind of description one might hope to achieve. Grothendieck’s anabelian Galois
theory and his theory of dessins d’enfant [Schneps 1994] constitute one direction
of progress, and the largely conjectural Langlands program [Bump et al. 2003]
provides an other approach. Despite all efforts and partial results [Völklein
1996], a concrete question such as the inverse problem of Galois theory — which
asks whether, for a number field K, all finite groups G occur as the Galois group
of some finite extension L=K — remains unanswered for all K.
A standard method for gaining insight into the structure of GK , and for re-
alizing certain types of Galois groups over K as quotients of GK , consists of
studying the action of GK on ‘arithmetical objects’ related to K, such as the di-
vision points in Q of various algebraic groups defined over K. A good example
is the Galois representation arising from the group EŒm.Q / of m-torsion points
of an elliptic curve E that is defined over K. The action of GK on EŒm.Q /
factors via a finite quotient Tm GL2 .Z =mZ / of GK , and much is known
[Serre 1989] about the groups Tm . Elliptic curves with complex multiplication
by an order in an imaginary quadratic field K give rise to abelian extensions of
K and yield a particularly explicit instance of class field theory.
For the much simpler example of the multiplicative group Gm , the division
points of Gm .Q / are the roots of unity in Q . The extensions of K they generate
are the cyclotomic extensions of K. Because the Galois group of the extension
K K.m / obtained by adjoining a primitive m-th root of unity m to K natu-
rally embeds into .Z =mZ / , all cyclotomic extensions are abelian. For K D Q ,
Kronecker discovered in 1853 that all abelian extensions are accounted for in
this way.
T HEOREM 1.1 (K RONECKER –W EBER ). Every finite abelian extension Q L
is contained in some cyclotomic extension Q Q .m /.
Over number fields K ¤ Q , there are more abelian extensions than just cyclo-
tomic ones, and the analogue of Theorem 1.1 is what class field theory provides:
every abelian extension K L is contained in some ray class field extension
K Hm . Unfortunately, the theory does not provide a ‘natural’ system of
generators for the fields Hm that plays the role of the roots of unity in Theorem
1.1. Finding such a system for all K is one of the Hilbert problems from 1900
that is still open. Notwithstanding this problem, class field theory is in princi-
ple constructive, and, once one finds in some way a possible generator of Hm
over K, it is not difficult to verify that it does generate Hm . The information
we have on Hm is essentially an intrinsic description, in terms of the splitting
and ramification of the primes in the extension K Hm , of the Galois group
COMPUTATIONAL CLASS FIELD THEORY 499
Gal.Hm =K/ as a ray class group Clm . This group replaces the group .Z =mZ /
that occurs implicitly in Theorem 1.1 as the underlying Galois group:
.Z =mZ / Gal.Q . /=Q /; .a mod m/ ’ . W ‘ a /: (1-2)
m a m m
We can in principle find generators for any specific class field by combining our
knowledge of its ramification data with a classical method to generate arbitrary
solvable field extensions, namely, the adjunction of radicals. More formally, we
call an extension L of an arbitrary field K a radical extension if L is contained
in the splitting field over K of a finite collection of polynomials of the form
X n a, with n 2 Z 1 not divisible by char.K/ and a 2 K. If the collection of
polynomials can be chosen so that K contains a primitive n-th root of unity for
each polynomial X n a in the collection, then the radical extension K L is
said to be a Kummer extension. Galois theory tells us that every Kummer ex-
tension is abelian and, conversely, that an abelian extension K L of exponent
n is Kummer if K contains a primitive n-th root of unity. Here the exponent of
an abelian extension K L is the smallest positive integer n that annihilates
Gal.L=K/. Thus, for every finite abelian extension K L of a number field
K, there exists a cyclotomic extension K K./ such that the ‘base-changed’
extension K./ L./ is Kummer.
In Section 5, we compute the class fields of K as subfields of Kummer ex-
tensions of K./ for suitable cyclotomic extensions K./ of K. The practical
problem of the method is that the auxiliary fields K./ may be much larger than
the base field K, and this limits its use to not-too-large examples.
If K is imaginary quadratic, elliptic curves with complex multiplication solve
the Hilbert problem for K, and this yields methods that are much faster than the
Kummer extension constructions for general K. We describe these complex
multiplication methods in some detail in our Sections 6 to 8. We do not discuss
their extension to abelian varieties with complex multiplication [Shimura 1998];
nor do we discuss the analytic generation of class fields of totally real number
fields K using Stark units [Cohen 2000, Chapter 6].
Now let K L be any abelian extension of number fields. Then for each
prime p of K that is unramified in L, by [Stevenhagen 2008, Section 15] there is
a unique element Frobp 2 Gal.L=K/ that induces the Frobenius automorphism
x ‘ x #kp on the residue class field extensions kp kq for the primes q in L
extending p. The order of this Frobenius automorphism Frobp of p in Gal.L=K/
equals the residue class degree Œkq W kp , and the subgroup hFrobp i Gal.L=K/
is the decomposition group of p.
We define the Artin map for L=K as the homomorphism
x 1 mod m
if x satisfies ordp .x 1/ ordp .m0 / at the primes p dividing the finite part m0
and if x is positive at the real primes in the infinite part m1 of m.
In the language of moduli, Theorem 2.3 asserts that there exists a modulus
m such that the kernel ker L=K of the Artin map contains the ray group Rm
of principal ZK -ideals x ZK generated by elements x 1 mod m. As in the
case of Theorem 2.2, the set of these admissible moduli for K L consists
of the multiples m of some minimal modulus fL=K , the conductor of K L.
The primes occurring in fL=K are the primes of K, both finite and infinite, that
ramify in L. An infinite prime of K is said to ramify in L if it is real but has
complex extensions to L. As for K D Q , a finite prime p occurs with higher
multiplicity in the conductor if and only if it is wildly ramified in L.
If m D m0 m1 is an admissible modulus for K L and Im denotes the group
of fractional ZK -ideals generated by the primes p coprime to m0 , then the Artin
map induces a homomorphism
on the ray class group Clm D Im =Rm modulo m. Our earlier remark on the
triviality of extensions in which almost all primes split completely implies that
it is surjective. By the Chebotarev density theorem [Stevenhagen and Lenstra
1996], even more is true: the Frobenius automorphisms Frobp for p 2 Im are
equidistributed over the Galois group Gal.L=K/. In particular, a modulus m is
admissible for an abelian extension K L if and only if (almost) all primes
p 2 Rm of K split completely in L.
Since the order of the Frobenius automorphism Frobp 2 Gal.L=K/ equals the
residue class degree fp of the primes q in L lying over p, the norm NL=K .q/ D
pfp of every prime ideal q in ZL coprime to m is contained in the kernel of the
Artin map. A nontrivial index calculation shows that the norms of the ZL -ideals
coprime to m actually generate the kernel in .2-4/. In other words, the ideal
group Am Im that corresponds to L, in the sense that we have ker L=K D
502 HENRI COHEN AND PETER STEVENHAGEN
Am =Rm , is equal to
Am D NL=K .ImZL / Rm : (2-5)
The existence theorem from class field theory states that for every modulus m
of K, there exists an extension K L D Hm for which the map L=K in .2-4/
is an isomorphism. Inside some fixed algebraic closure K of K, the extension
Hm is uniquely determined as the maximal abelian extension L of K in which
all primes in the ray group Rm split completely. It is the ray class field Hm
modulo m mentioned in the introduction, for which the analogue of Theorem
1.1 holds over K. If K L is abelian, we have L Hm whenever m is an
admissible modulus for L. For L D Hm , we have Am D Rm in .2-5/ and an
Artin isomorphism Clm Gal.H =K/.
m
E XAMPLE 2.6.1. It will not come as a surprise that for K D Q , the ray class field
modulo .m/ 1 is the cyclotomic field Q .m /, and the ray class group Cl.m/1
is the familiar group .Z =mZ / acting on the m-th roots of unity. Leaving out
the real prime 1 of Q , we find the ray class field modulo .m/ to be the maximal
real subfield Q .m C m1 / of Q .m /. This is the maximal subfield in which the
real prime 1 is unramified.
E XAMPLE 2.6.2. The ray class field of conductor m D .1/ is the Hilbert class
field H D H1 of K. It is the largest abelian extension of K that is unramified at
all primes of K, both finite and infinite. Since I1 and R1 are the groups of all
fractional and all principal fractional ZK -ideals, respectively, the Galois group
Gal.H =K/ is isomorphic to the ordinary class group ClK of K, and the primes
of K that split completely in H are precisely the principal prime ideals of K.
This peculiar fact makes it possible to derive information about the class group
of K from the existence of unramified extensions of K, and conversely.
The ray group Rm is contained in the subgroup Pm Im of principal ideals
in Im , and the quotient Im =Pm is the class group ClK of K for all m. Thus, the
ray class group Clm D Im =Rm is an extension of ClK by a finite abelian group
Pm =Rm that generalizes the groups .Z =mZ / from .1-2/. More precisely, we
have a natural exact sequence
ZK .ZK =m/ Clm ClK 0 (2-7)
in which the residue class of x 2 ZK coprime to m0 in the finite group
.ZK =m/ D .ZK =m0 / pjm1 h 1i
Q
consists of its ordinary residue class modulo m0 and the signs of its images
under the real primes pjm1 . This group naturally maps onto Pm =Rm Clm ,
with a kernel reflecting the fact that generators of principal ZK -ideals are only
unique up to multiplication by units in ZK .
COMPUTATIONAL CLASS FIELD THEORY 503
Interpreting both class groups in .2-7/ as Galois groups, we see that all ray
class fields contain the Hilbert class field H D H1 from Example 2.6.2, and that
we have an Artin isomorphism
.ZK =m/ =imŒZK
Gal.H =H /
(2-8)
m
automorphism corresponding to u D .up /p 2 Z b acts as ‘ up on p-power
b maps to the inertia group
roots of unity. Note that the component group Zp Z
at p in any finite quotient Gal.L=Q / of Gal.Q ab =Q /.
For arbitrary number fields K, one can take the projective limit in .2-7/ over
all moduli and describe Gal.Kab =K/ by an exact sequence
b K
p real h 1i Gal.Kab =K/ ClK 1;
Q
1 ZK Z K (3-2)
b D
which
Q treats somewhat asymmetrically the finite primes occurring in Z K
p finite U p and the infinite primes. Here K maps the element 1 at a real
prime p to the complex conjugation at the extensions of p. The image of K is
the Galois group Gal.Kab =H / over the Hilbert class field H , which is of finite
index hK D # ClK in Gal.Kab =K/. For an abelian extension L of K containing
H , the image of the component group Up Z b in Gal.L=H / is again the inertia
K
group at p in Gal.L=K/. As H is totally unramified over K, the same is true if
L does not contain H : the inertia groups for p in Gal.LH =K/ and Gal.L=K/
are isomorphic under the restriction map.
A more elegant description of Gal.Kab =K/ than that provided by the se-
quence .3-2/ is obtained if one treats all primes of K in a uniform way and
redefines the Artin map K — as we will do in .3-7/ — using the idele group
D 0p Kp D f.xp /p W xp 2 Up for almost all pg
Q
AK
U
8
< p
ˆ if k D 0;
.k/
Up D 1 C p k if p is finite and k > 0;
ˆ
: C if p is real and k D 1.
Up Up D R
Here we write UpC for real p to denote the subgroup of positive elements in Up .
Because C and R >0 have no proper open subgroups, one sees from the defini-
tion of the restricted product topology on AK that a subgroup H AK is open
if and only if it contains Wm for some modulus m.
L EMMA 3.4. For every modulus m D p pn.p/ of K, there is an isomorphism
Q
AK =K Wm Cl
m
that maps .xp /p to the class of p finite pordp .yxp / . Here y 2 K is a global
Q
n.p/
element satisfying yxp 2 Up for all pjm.
P ROOF. Note first that the global element y required in the definition exists by
the approximation theorem. The precise choice of y is irrelevant, since for any
two elements y and y 0 satisfying the requirement, we have y=y 0 1 mod m.
We obtain a homomorphism AK ! Clm that is surjective since it maps a prime
element p at a finite prime p - m to the class of p. Its kernel consists of the
ideles that can be multiplied into Wm by a global element y 2 K .
If m is an admissible modulus for the finite abelian extension K L, we can
compose the isomorphism in Lemma 3.4 with the Artin map .2-4/ for K L
to obtain an idelic Artin map
b
L=K W AK =K Gal.L=K/ (3-5)
that no longer refers to the choice of a modulus m. This map, which exists
as a corollary of Theorem 2.3, is a continuous surjection that maps the class
of a prime element p 2 Kp AK
to the Frobenius automorphism Frobp 2
Gal.L=K/ whenever p is finite and unramified in K L.
506 HENRI COHEN AND PETER STEVENHAGEN
AK =K NL=K ŒAL
Gal.L=K/;
Š Im =Am (3-6)
with Am the ideal group modulo m that corresponds to L in the sense of .2-9/.
Taking the limit in .3-5/ over all finite abelian extensions K L inside K, one
obtains the idelic Artin map
K W AK =K GK
ab
D Gal.Kab =K/: (3-7)
Its kernel is the connected component f1g R >0 of the unit element in AQ =Q .
Comparison with .3-1/ leads to a commutative diagram of isomorphisms
COMPUTATIONAL CLASS FIELD THEORY 507
b
Z
1 /Z
b
in which the upper horizontal map is not the identity. To see this, note that the
class of the prime element ` 2 Q ` AQ in AQ =.Q R >0 / is represented by the
idele x D .xp /p 2 Zb having components xp D ` 1 for p ¤ ` and x` D 1. This
idele maps to the Frobenius of `, which raises roots of unity of order coprime
to ` to their `-th power. Since x is in all Wm for all conductors m D `k , it fixes
`-power roots of unity. Thus, the upper isomorphism 1 is inversion on Z b.
Even though the idelic and the ideal group quotients on the left hand side of the
arrow in .3-6/ are the ‘same’ finite group, it is the idelic quotient that neatly
encodes information at the ramifying primes pjm, which seem ‘absent’ in the
other group. More precisely, we have for all primes p an injective map Kp !
AK
=K that can be composed with .3-7/ to obtain a local Artin map Kp W
Kp ! Gal.L=K/ at every prime p of K. If p is finite and unramified in K L,
we have Up ker Kp and an induced isomorphism of finite cyclic groups
f hFrob i D Gal.L =K /;
Kp =hp p iUp D Kp =NLq =Kp ŒLq p q p
In view of our observation after .3-2/, it maps Up =NLq =Kp ŒUq for finite p iso-
morphically onto the inertia group of p.
We can use .3-10/ to locally compute the exponent n.p/ to which p occurs
in the conductor of K L: it is the smallest nonnegative integer k for which
.k/
we have Up NLq =Kp ŒLq . For unramified primes p we obtain n.p/ D 0, as
the local norm is then surjective on the unit groups. For tamely ramified primes
we have n.p/ D 1, and for wildly ramified primes p, the exponent n.p/ may
be found by a local computation. In many cases it is sufficient to use an upper
bound coming from the fact that every d-th power in Kp is a norm from Lq ,
with d the degree of Kp Lq (or even K L). Using Hensel’s Lemma [Buhler
and Wagon 2008], one then finds
1
n.p/ e.p=p/ C ordp .ep / C 1; (3-11)
p 1
508 HENRI COHEN AND PETER STEVENHAGEN
where e.p=p/ is the absolute ramification index of p over the underlying ratio-
nal prime p and ep is the ramification index of p in K L. Note that ep is
independent of the choice of an extension prime as K L is Galois.
Here ranges over the characters of the finite group Im =Am Š Gal.L=K/,
and f./0 denotes the finite part of the conductor f./ of the ideal group A
modulo m satisfying A =Am D ker . All these quantities can be computed by
the standard algorithms for finite abelian groups.
over K, then ˛ and ˇ are powers of each other modulo n-th powers.
We will apply Kummer theory to generate the class fields of a number field K.
Thus, let L be the class field of K from Section 4 that is to be computed. Suppose
that we have computed a ‘small’ modulus f for L that is only divisible by the
ramifying primes, such as the conductor fL=K , and an ideal group Af for L by
the methods of Section 4. With this information, we control the Galois group
of our extension via the Artin isomorphism If =Af Gal.L=K/. Let n be
the exponent of Gal.L=K/. Then we can directly apply Kummer theory if K
contains the required n-th roots of unity; if not, we need to pass to a cyclotomic
extension of K first. This leads to a natural case distinction.
Case 1: K contains a primitive n-th root of unity n . Under the restrictive
p n , the class field L is a Kummer extension of K,
assumption that K contains
and generating L D K. n WL / comes down to finding generators for WL =K n .
We first compute a finite group containing WL =K n . This reduction is a familiar
ingredient from the proofs of class field theory [Artin and Tate 1990; Cassels
and Fröhlich 1967].
L EMMA 5.4. Let K L be finite abelian of exponent n, and assume n 2 K.
Suppose S is a finite set of primes of K containing the infinite primes such that
(1) K L is unramified outside S ;
n
(2) ClK =ClK is generated by the classes of the finite primes in S .
Then the image of the group US of S -units in K =K n is finite of order n#S ,
and it contains the group WL =K n from .5-1/.
The first condition in Lemma 5.4 means that S contains all the primes that divide
our small modulus f. The second condition is automatic if the class number of K
is prime to n, and it is implied by the first if the classes of the ramifying primes
COMPUTATIONAL CLASS FIELD THEORY 511
n n
generate ClK =ClK . Any set of elements of ClK generating ClK =ClK actually
generates the full ‘n-part’ of the class group, that is, the product of the p-Sylow
subgroups of ClK at the primes pjn. In general, there is a lot of freedom in the
choice of primes in S outside f. One tries to have S ‘small’ in order to minimize
the size n#S of the group .US K n /=K n containing WL =K n .
P ROOF OF L EMMA 5.4. By the Dirichlet unit theorem [Stevenhagen 2008,
Theorem 10.9], the group US of S-units of K is isomorphic to K Z #S 1 .
As K contains n , the image .US K n /=K n Š US =USn of US in K =K n
is finite of order n#S .
To show that .US K n /=K n contains WL =K n , pick any ˛ 2 WL . Since
p
K K. n ˛/ is unramified outside S, we have .˛/ D aS bn for some product
aS of prime ideals in S and b coprime to all finite primes in S . As the primes
in S generate the n-part of ClK , we can write b D bS c with bS a product of
prime ideals in S and c an ideal of which the class in ClK is of order u coprime
to n. Now ˛ u generates an ideal of the form .˛ u / D a0S .
n / with a0S a product
of prime ideals in S and
2 K . It follows that ˛ u
n 2 K is an S -unit, and
so ˛ u and therefore ˛ is contained in US K n .
The induced map Im ! Gal.L=K/ is the Artin map for K L, which has
the ideal group Am corresponding to L as its kernel. Let ˙L Im be a finite
set of ideals of which the classes generate the Z =nZ -module Am =.Imn Pm / Š
Gal.N=L/. We then have to determine the subgroup VL US consisting of
p
those S-units v 2 US that have the property that n v is left invariant by thepArtin
symbols of all ideals in ˙L , since the class field we are after is L D K. n VL /.
512 HENRI COHEN AND PETER STEVENHAGEN
We are here in a situation to apply linear algebra over Z =nZ , because the
Kummer pairing .5-1/ tells us that the action of the Artin symbols N=K .a/ of
the ideals a 2 Im on the n-th roots of the S-units is described by the pairing of
Z =nZ -modules given by
Making this computationally explicit amounts to computing the pairing for some
choice of basis elements of the three modules involved.
For hn i we have the obvious Z =nZ -generator n , and Im =Imn is a free Z =nZ -
module generated by the primes p 62 S . If K is of moderate degree, the gen-
eral algorithm [Stevenhagen 2008, Section 12] for computing units and class
groups can be used to compute generators for US , which then form a Z =nZ -
basis for US =USn . In fact, finding s 1 D #S 1 independent units in US
that generate a subgroup of index coprime to n is enough: together with a
root of unity generating K , these will generate US =USn . This is somewhat
easier than finding actual generators for US , because maximality modulo n-th
powers is not difficult to establish for a subgroup U US having the right rank
s D #S. Indeed, each reduction modulo a small prime p 62 S provides a character
U US ! kp =.kp /n Š hn i, the n-th power residue symbol at p. By finding
s independent characters, one shows that the intersection of their kernels equals
U n D U \ USn .
For a prime p 62 S and u 2 US , the definitions of the Kummer pairing and the
Frobenius automorphism yield
L0 D L.n /
PPP
ss PPP
L NNN PPP
NNN PP
NNN K 0 D K.n /
NN pp (5-7)
L \ K0
K
To find generators of L0 over K 0 by the method of Case 1, we need to ‘lift’ the
class field theoretic data from K to K 0 to describe L0 as a class field of K 0 .
Lifting the modulus f D f0 f1 for K L is easy: as K 0 is totally complex,
f0 D f0 ZK 0 is admissible for K 0 L0 . From the definition of the Frobenius
automorphism, it is immediate that we have a commutative diagram
IK 0 ;f0
Artin / Gal.L0 =K 0 /
NK 0 =K res
IK ;f
Artin / Gal.L=K/
As the restriction map on the Galois groups is injective, we see that the inverse
norm image NK 01=K Af IK 0 ;f0 is the ideal group of K 0 corresponding to the
extension K 0 L0 . Because NK 01=K Af contains PK 0 ;f0 , computing this inverse
image takes place inside the finite group ClK 0 ;f0 , a ray class group for K 0 .
We perform the algorithm from Case 1 for the extension K 0 L0 to find
generators of L0 over K 0 . We are then working with (ray) class groups and S-
units in K 0 rather than in K, and S has to satisfy Lemma 5.4 condition (2) for
ClK 0 . All this is only feasible if K 0 is of moderate degree, and this seriously
restricts the values of n one can handle in practice. Our earlier observation
that we may decompose If =Af Š Gal.L=K/ into a product of cyclic groups
of prime power order and generate L accordingly as a compositum of cyclic
extensions of K is particularly relevant in this context, as it reduces our problem
to a number of instances where K L is cyclic of prime power degree. Current
implementations [Fieker 2001] deal with prime power values up to 20.
We further assume for simplicity that we are indeed in the case where K L
is cyclic of prime power degree n, with K 0 D K.n / ¤ K. Suppose that, using
the algorithm from Case 1, we have computed a Kummer generator 2 L0 for
which we have L0 D K 0 . / D K.n ; / and n D ˛ 2 K 0 . We then need to
‘descend’ efficiently to a generator of L over K. If n is prime, one has
514 HENRI COHEN AND PETER STEVENHAGEN
Frobp ./ D N p
p
because the n-th powers of both quantities are the same by .5-10/, and they are
congruent modulo p. This provides us with the explicit Galois action of Frobp
on for unramified primes p.
The description of the Galois action on and n in terms of Frobenius sym-
bols is all we need. The Galois group Gal.L0 =L/ Š Gal.K 0 =.L \ K 0 //, which
we may identify with the subgroup NK =Q .Am / of .Z =nZ / , is either cyclic or,
if n is a power of 2, generated by 2 elements. Picking one or two primes p
in Am with norms in suitable residue classes modulo n is all it takes to gener-
ate Gal.L0 =L/ by Frobenius automorphisms, and we can use these elements to
descend to a generator for L over K. We also control the Galois action of
Gal.L=K/ D Im =Am on , and this makes it possible to compute the irreducible
polynomial fK for the generator of L over K.
1
on the m-torsion values comes from multiplications on m Z =Z by integers a 2 Z
coprime to m, giving rise to the Galois group
1
Gal.Q .m /=Q / D Aut. m Z =Z / D .Z =mZ / (6-2)
from .1-2/. Taking the projective limit over all m, one obtains the identifica-
b from .3-1/, and we saw in Example
tion of Gal.Q ab =Q / with Aut.Q =Z / D Z
3.8 that the relation with the Artin isomorphism is given by the commutative
diagram .3-8/. To stress the analogy with the complex multiplication case, we
rewrite .3-8/ as
b
Z
1 /Z
b D A =.Q R >0 /
Q
} W z ‘ z 2 C !2nf0g Œ.z !/ 2 ! 2 ;
P
that has period lattice and is holomorphic except for double poles at the points
of . The corresponding Weierstrass map
COMPUTATIONAL CLASS FIELD THEORY 517
W W C = E P2 .C /; 0
z ’ Œ} .z/ W } .z/ W 1
is a complex analytic isomorphism between the torus C = and the complex
elliptic curve E P2 .C / defined by the affine Weierstrass equation
y 2 D 4x 3 g2 ./x g3 ./:
The Weierstrass coefficients
g2 ./ D 60 ! 4 g3 ./ D 140 ! 6
P P
and (6-4)
!2nf0g !2nf0g
of E are the Eisenstein series of weight 4 and 6 for the lattice . The natural
addition on C = translates into an algebraic group structure on E .C / some-
times referred to as ‘chord and tangent addition’. On the Weierstrass model E ,
the point O D Œ0 W 1 W 0 D W .0 mod / at infinity is the zero point, and any line
in P2 .C / intersects the curve E in 3 points, counting multiplicities, that have
sum O.
All complex analytic maps C =1 ! C =2 fixing the zero point are multi-
plications z ‘ z with 2 C satisfying 1 2 . These are clearly group
homomorphisms, and in the commutative diagram
/ C =2
C =1
W1 W1 (6-5)
E1 / E
2
the corresponding maps W E1 E2 between algebraic curves are known
as isogenies. For ¤ 0, the isogeny is a finite algebraic map of degree
Œ2 W 1 , and E1 and E2 are isomorphic as complex algebraic curves if
and only if we have 1 D 2 for some 2 C . The isogenies E ! E form
the endomorphism ring
End.E / D f 2 C W g (6-6)
of the curve E , which we can view as a discrete subring of C . The -value
of the analytically defined endomorphism ‘multiplication by 2 C ’ is reflected
algebraically as a true multiplication by of the invariant differential dx=y on
E coming from dz D d.} /=} 0
. If End.E / is strictly larger than Z , it is a
complex quadratic order O and E is said to have complex multiplication (CM)
by O.
To generate the class fields of our imaginary quadratic field K, we employ an
elliptic curve E having CM by ZK . Such a curve can be obtained by taking
equal to ZK or to a fractional ZK -ideal a, but the Weierstrass coefficients .6-4/
for D a will not in general be algebraic.
518 HENRI COHEN AND PETER STEVENHAGEN
Its importance stems from the following theorem, traditionally referred to as the
first main theorem of complex multiplication.
T HEOREM 6.9. The Hilbert class field H of K is the splitting field of the
polynomial HilK .X / over K. This polynomial is irreducible in KŒX , and the
Galois action of the Artin symbol c D H =K .c/ of the ideal class Œc 2 ClK Š
Gal.H =K/ on the roots j .a/ of HilK .X / is given by j .a/c D j .ac 1 /.
To compute HilK .X / from its definition .6-8/, one compiles a list of ZK -ideal
classes in the style of Gauss, who did this in terms of binary quadratic forms.
Every ZK -ideal class Œa has a representative of the form Z C Z , with 2 K
a root of some irreducible polynomial aX 2 C bX C c 2 Z ŒX of discriminant
b 2 4ac D K =Q . If we take for the root in the complex upper half plane H,
the orbit of under the natural action
˛ˇ ˛z C ˇ
.z/ D
ı
z Cı
COMPUTATIONAL CLASS FIELD THEORY 519
where b is nonnegative if jbj D a or a D c. For reduced forms, one sees from the
inequality K =Q D b 2 4ac a2 4a2 D 3a2 that we have bounds jbj a
p
jK =Q j=3, so the list is indeed finite and can easily be generated [Cohen 1993,
Algorithm 5.3.5]. See [Cox 1989] for the classical interpretation of the triples
.a; b; c/ as positive definite integral binary quadratic forms aX 2 C bX Y C cY 2
of discriminant b 2 4ac D K =Q .
If we put j . / D j .Z C Z /, the j -function .6-7/ becomes a holomorphic
function j W H ! C invariant under the action of SL2 .Z /. As it is in particular
invariant under ‘ C 1, it can be expressed in various ways in terms of the
variable q D e 2 i from .6-1/. Among them is the well-known integral Fourier
expansion
1 1
j . / D j .q/ D q C 744 C 196884q C : : : 2 q C Z ŒŒq (6-10)
that explains the normalizing factor 1728 in the definition .6-7/ of j . It implies
[Lang 1987, Chapter 5, ~ 2] that the roots of HilK .X / in .6-8/ are algebraic
integers, and so HilK .X / is a polynomial in Z ŒX that can be computed exactly
from complex approximations of its roots that are sufficiently accurate to yield
the right hand side of .6-8/ in C ŒX to ‘one-digit precision’. For numerical
computations of j . /, one uses approximate values of the Dedekind -function
Y X
. / D q 1=24 .1 q n / D q 1=24 . 1/n q n.3n 1/=2 ; (6-11)
n1 n2Z
520 HENRI COHEN AND PETER STEVENHAGEN
which has a lacunary Fourier expansion that is better suitedpfor numerical pur-
poses than .6-10/. From -values one computes f2 ./ D 2.2/=./ and
finally j . / as
2 ./ C 16/
.f24 3
j ./ D : (6-12)
2 ./
f24
This finishes the description of the classical algorithm to compute the Hilbert
class field H of K.
Having computed the irreducible polynomial HilK .X / of jK D j .ZK /, we
can write down a Weierstrass model EK for C =ZK over H D K.jK / (or even
over Q .jK /) and use it to generate the ray class field extensions H Hm .
Choosing EK is easy in the special cases K D Q .3 /; Q .i /, when one of g2 D
g2 .ZK / and g3 D g3 .ZK / vanishes and the other can be scaled p to have any
nonzero rational value. For K ¤ Q .3 /; Q .i /, the number D g3 =g2 2 C
is determined up to sign, and since we have
4 6 jK
cK D g2 D g3 D g23 g3 2 D 27 ;
jK 1728
It has ‘weight 0’ in the sense that the right side is invariant under simultaneous
scaling .ZK ; z/ ! .ZK ; z/ by 2 C of the lattice ZK and the argument z.
In the special cases K D Q .i / and Q .3 / that have ZK of order 4 and 6,
there are slightly different Weber functions fK that are not the x-coordinates
on a Weierstrass model for C =ZK over H , but an appropriately scaled square
and cube of such x-coordinates, respectively. In all cases, the analogue of the
Kronecker–Weber theorem for K is the following second main theorem of com-
plex multiplication.
COMPUTATIONAL CLASS FIELD THEORY 521
For even m, we adapt the definition by excluding the 2-torsion points satisfying
P D P from the product, and define Tm .X / 2 H Œx of degree .m2 4/=2 by
Y
Tm .x/2 D .m=2/2 .x xP /:
P 2EK Œm.C /;
2P ¤O
The ‘missing’ x-coordinates of the nonzero 2-torsion points are the zeros of the
cubic polynomial wK 2 H Œx in .6-13/. This is a square in the function field of
the elliptic curve .6-13/, and in many ways the natural object to consider is the
‘division polynomial’
Tm .x/
(
if m is odd;
m .x; y/ D
2yTm .x/ if m is even.
This is an element of the function field C .x; y/ living in the quadratic extension
H Œx; y of the polynomial ring H Œx defined by y 2 D wK .x/. It is uniquely
defined up to the sign choice we have for Tm . Most modern texts take the sign
of the highest coefficient of Tm equal to 1. Weber [1908, p. 197] takes it equal
to . 1/m 1 , which amounts to a sign change y ‘ y in mP .x; y/.
By construction, the function m has divisor .1 m /ŒOC P ¤O; mP DO ŒP .
2
formulas
3 3
2mC1 D mC2 m mC1 m 1;
1 2 2
2m D .2y/ m . mC2 m 1 mC1 m 2/
for m that are valid for m > 1 and m > 2. These can be used to compute m
and Tm recursively, using ‘repeated doubling’ of m. One needs the initial values
T1 D T2 D 1 and
T3 D 3X 4 C 6aX 2 C 12bX a2 ;
T4 D 2X 6 C 10aX 4 C 40bX 3 10a2 X 2 8abX 16b 2 2a3 ;
P ROOF OF T HEOREM 6.15. As in the case of Theorem 6.9, we show that the
primes of degree one of K that split completely in the extension K Hm 0 defined
The argument just given shows that we have a concrete realization of the Artin
isomorphism .ZK =mZK / =imŒZK
Gal.H =H / from .2-8/ by complex
m
multiplications. Passing to the projective limit, this yields the analogue
b =Z
Z Gal.K =H / G ab
ab
K K K
of .3-1/. For the analogue of .6-3/, we note first that for imaginary quadratic
K, the subgroup U1 in .3-3/, which equals C , maps isomorphically to the
connected component of the unit element in AK
=K . Because it is the kernel
of the Artin map K in .3-7/, we obtain a commutative diagram
b
Z
1 / Z =Z
AK =.K C /
K K K
W W0 (7-3)
c
EK / E0 ;
K
we have to compute the restriction c W EK Œm ! EK 0
Œm to m-torsion points.
To do so in an efficient way, we view the j -values and x-coordinates of torsion
points involved as weight zero functions on complex lattices such as ZK or c.
As we may scale all lattices as we did for .6-10/ to Z C Z with 2 H, such
functions are modular functions H ! C as defined in [Lang 1987, Chapter 6].
The j -function itself is the primordial modular function: a holomorphic
function on H that is invariant under the full modular group SL2 .Z /. Every
meromorphic function on H that is invariant under SL2 .Z / and, when viewed
as a function of q D e 2 i , meromorphic in q D 0, is in fact a rational function
of j . The Weber function fK in .6-14/ is a function
g2 ./g3 ./
f .z/ D }Œ;1 .z/
./
that depends on the lattice ZK D Z C Z D Œ; 1, and fixing some choice of a
generator of ZK over Z , we can label its m-torsion values used in generating
526 HENRI COHEN AND PETER STEVENHAGEN
Hm as
1 2 2
Fu . / D f .u1 C u2 / with u D .u1 ; u2 / 2 m Z =Z n f.0; 0/g: (7-4)
For m > 1, the functions Fu W H ! C in .7-4/ are known as the Fricke functions
of level m. These are holomorphic functions on H that are x-coordinates of m-
torsion points on a ‘generic elliptic curve’ over Q .j / with j -invariant j . As they
are zeroes of division polynomials in Q .j /ŒX , they are algebraic over Q .j / and
generate a finite algebraic extension of Q .j /, the m-th modular function field
Fm D Q .j ; fFu gu2. 1 Z =Z /2 nf.0;0/g /: (7-5)
m
g ./g ./
˛ Cˇ
2 3
Fu .M / D Fu D }Œ;1 .u1 .˛ C ˇ/ C u2 .
C ı//
Cı ./
D FuM ./:
COMPUTATIONAL CLASS FIELD THEORY 527
1 2
As u D .u1 ; u2 / is in m Z =Z 2 , we only need to know M modulo m, so the
Fricke functions of level m are invariant under the congruence subgroup
.m/ D kerŒSL2 .Z / ! SL2 .Z =mZ /
of SL2 .Z /, and they are permuted by SL2 .Z /. As we have F u1 ; u2 D Fu1 ;u2 ,
we obtain a natural right action of SL2 .Z =mZ /=f˙1g on Fm .
Besides this ‘geometric action’, there is a cyclotomic action of .Z =mZ / on
the functions f 2 Fm via their Fourier expansions, which lie in Q .m /..q 1=m //
since they involve rational expansions in
duces k W F.u1 ;u2 / ‘ F.u1 ;ku2 / . Thus, the two actions may be combined to give
an action of GL2 .Z =mZ /=f˙1g on Fm , with SL2 .Z =m Z /=f˙1g acting geo-
metrically and .Z =mZ / acting as the subgroup f˙ 01 k0 W k 2 .Z =mZ / g=f˙1g.
The invariant functions are SL2 .Z /-invariant with rational q-expansion; so they
lie in Q .j /, and we have a natural isomorphism
GL2 .Z =mZ /=f˙1g Gal.F =Q .j //; (7-8)
m
or, if we take the union F D m Fm on the left hand side and the corresponding
S
projective limit on the right hand side,
GL2 .Z Gal.F=Q .j //:
b/=f˙1g (7-9)
Note that Fm contains Q .m /.j / as the invariant field of SL2 .Z =mZ /=f˙1g,
and that the action of GL2 .Zb/=f˙1g on the subextension Q .j / Q ab .j / with
b.
group Gal.Q ab =Q / Š Z is via the determinant map det W GL2 .Z
b b/=f˙1g ! Z
To discover the explicit form of the homomorphism g in .7-7/, let p D ZK
be a principal prime of K. Then the Artin symbol p is the identity on H , and
the proof of Theorem 6.15 shows that its action on the x-coordinates of the
m-torsion points of EK for m not divisible by can be written as
Fu ./p D Fu ./ D FuM ./;
where M is the matrix in GL2 .Z =mZ / that represents the multiplication by
1
on m ZK =ZK with respect to the basis f; 1g. In explicit coordinates, this
means that if 2 H is a zero of the polynomial X 2 C BX C C of discriminant
B 2 4C D K and D x1 C x2 is the representation of on the Z -basis
Œ; 1 of ZK , then we have
Bx1 C x2 C x1
M D 2 GL2 .Z =mZ /: (7-10)
x1 x2
528 HENRI COHEN AND PETER STEVENHAGEN
b
by the subgroup K K of principal ideles. On the other hand, not all au-
tomorphisms of F come from GL2 .Z b/ as in .7-9/: there is also an action of
the projective linear group PGL2 .Q / D GL2 .Q /C =Q of rational matrices of
C
W W0
E / EM
COMPUTATIONAL CLASS FIELD THEORY 529
b D .Q b / GL2 .Q
b C Q b/
g W K
1
(7-12)
1 Bx1 C x2 C x1
x D x1 C x2 ’ Mx D
x1 x2
to obtain the complete Galois action of Gal.Kab =K/ Š K b =K on modular
function values f . /. The result is known as Shimura’s reciprocity law:
8. Class invariants
Much work has gone into algorithmic improvements of the classical algo-
rithms in Section 6, with the aim of reducing the size of the class polynomials
obtained. Clearly the degree of the polynomials involved cannot be lowered,
as these are the degrees of the field extensions one wants to compute. There
are however methods to reduce the size of their coefficients. These already go
back to Weber, who made extensive use of ‘smaller’ functions than j to compute
class fields in his algebra textbook [Weber 1908]. The function f2 that we used to
compute j in .6-12/, and that carries Weber’s name (as does the elliptic
p function
in .6-14/) provides a good example. A small field such as K D Q . 71/, for
which the class group of order 7 is easily computed by hand, already has the
530 HENRI COHEN AND PETER STEVENHAGEN
X7 CX6 X5 X4 X 3 C X 2 C 2X 1:
for the precise theorems, and indicate here how to use Theorem 7.13 to obtain
such results for arbitrary modular functions f 2 F.
Let f 2 F be any modular function of level m, and assume Q .f / F is
Galois. Suppose we have an explicit Fourier expansion in Q .m /..q 1=m // that
we can use to approximate its values numerically. Suppose also that we know
the explicit action of the generators S W z ‘ 1=z and T W z ‘ z C 1 on f . Then
we can determine the Galois orbit of f ./ for an element 2 H that generates
ZK in the following way. First, we determine elements x D x1 C x2 2 ZK
with the property that they generate .ZK =mZK / =ZK . Then the Galois orbit
of f . / over H is determined using Theorem 7.13, and amounts to computing
the (repeated) action of the matrices g .x/ 2 GL2 .Z =mZ / (given by the right
hand side of .7-10/) on f . This
involves writing g .x/ as a product of powers
of S and T and a matrix 01 k0 acting on f via its Fourier coefficients. Although
f may have a large GL2 .Z =mZ /-orbit over Q .j /, the matrices g .x/ only
generate a small subgroup of GL2 .Z =mZ / isomorphic to .ZK =mZK / =ZK ,
and one often finds that the orbit of f under this subgroup is quite small. In many
cases, one can slightly modify f , multiplying it by suitable roots of unity or
raising it to small powers, to obtain an orbit of length one. This means that f 2 F
b GL2 .Z
is invariant under g ŒZ b/. As we have the fundamental equivalence
K
b , and the Artin symbol of x 1 acts on f ./ as the Artin
x is a finite idele in K
symbol of the form .a; b; c/. We have U D g .x 1 /M 1 2 GL2 .Z b/ for the
matrix M 2 GL2 .Q / defined by
C
p
b C b 2 4ac
h i
Œ; 1M D ; 2a ;
2
since U stabilizes the ZbK -lattice spanned by the basis Œ; 1. Applying Theorem
1
7.13 for the idele x yields the desired formula
p
b C b 2 4ac
.a; b;c/ U
f . / Df :
2a
This somewhat abstract description may be phrased as a simple explicit recipe
for the coefficients of U 2 GL2 .Z b/, which we only need to know modulo m,
see [Stevenhagen 2001].
There are limits to the improvements coming from intelligent choices of mod-
ular functions to generate class fields. For any nonconstant function f 2 F, there
is a polynomial relation .j ; f / D 0 between j and f , with 2 C ŒX; Y some
irreducible polynomial with algebraic coefficients. The reduction factor one
obtains by using class invariants coming from f (if these exist) instead of the
classical j -values is defined as
degf . .f; j //
r .f / D :
degj . .f; j //
By [Hindry and Silverman 2000, Proposition B.3.5], this is, asymptotically, the
inverse of the factor
h.f .//
lim :
h.j. //!1 h.j .//
Here h is the absolute logarithmic height, and we take the limit over all CM-
points SL2 .Z / 2 H. It follows from gonality estimates for modular curves
[Bröker and Stevenhagen 2008, Theorem 4.1] that r .f / is bounded above by
1=.241 /, where 1 is ‘Selberg’s eigenvalue’ as defined in [Sarnak 1995]. The
currently proved bounds [Kim 2003, p. 176] on 1 yield r .f / 32768=325
100:8, and conjectural bounds imply r .f / 96. Thus Weber’s function f2 ,
which has r .f / D 72 and yields class invariants for a positive density subset of
all discriminants, is close to being optimal.
Acknowledgements
Useful comments on earlier versions of this paper were provided by Reinier
Bröker, René Schoof and Marco Streng. Bjorn Poonen provided us with the
reference to [Kim 2003].
COMPUTATIONAL CLASS FIELD THEORY 533
References
[Artin and Tate 1990] E. Artin and J. Tate, Class field theory, 2nd ed., Advanced Book
Classics, Addison-Wesley, Redwood City, CA, 1990.
[Bröker and Stevenhagen 2008] R. Bröker and P. Stevenhagen, “Constructing elliptic
curves of prime order”, pp. 17–28 in Computational Arithmetic Geometry, edited by
K. E. Lauter and K. A. Ribet, Contemp. Math. 463, 2008.
[Buhler and Wagon 2008] J. P. Buhler and S. Wagon, “Basic algorithms in number
theory”, pp. 25–68 in Surveys in algorithmic number theory, edited by J. P. Buhler
and P. Stevenhagen, Math. Sci. Res. Inst. Publ. 44, Cambridge University Press, New
York, 2008.
[Bump et al. 2003] D. Bump, J. W. Cogdell, E. de Shalit, D. Gaitsgory, E. Kowalski,
and S. S. Kudla, An introduction to the Langlands program, Birkhäuser Boston
Inc., Boston, MA, 2003. Lectures presented at the Hebrew University of Jerusalem,
Jerusalem, March 12–16, 2001, Edited by Joseph Bernstein and Stephen Gelbart.
[Cassels and Fröhlich 1967] J. W. S. Cassels and A. Fröhlich (editors), Algebraic
number theory, Academic Press, London, 1967.
[Cohen 1993] H. Cohen, A course in computational algebraic number theory, Graduate
Texts in Mathematics 138, Springer, Berlin, 1993.
[Cohen 2000] H. Cohen, Advanced topics in computational number theory, Graduate
Texts in Mathematics 193, Springer, New York, 2000.
[Cox 1989] D. A. Cox, Primes of the form x 2 C ny 2 : Fermat, class field theory and
complex multiplication, John Wiley & Sons, New York, 1989.
[Deuring 1958] M. Deuring, Die Klassenkörper der komplexen Multiplikation, Enzyk-
lopädie der mathematischen Wissenschaften, Band I2 , Heft 10, Teil II, Teubner,
Stuttgart, 1958.
[Fieker 2001] C. Fieker, “Computing class fields via the Artin map”, Math. Comp.
70:235 (2001), 1293–1303.
[Hindry and Silverman 2000] M. Hindry and J. H. Silverman, Diophantine geometry:
an introduction, Graduate Texts in Mathematics 201, Springer, New York, 2000.
[Kim 2003] H. H. Kim, “Functoriality for the exterior square of GL4 and the symmetric
fourth of GL2 ”, J. Amer. Math. Soc. 16:1 (2003), 139–183.
[Lang 1987] S. Lang, Elliptic functions, Second ed., Graduate Texts in Mathematics
112, Springer, New York, 1987.
[Lang 2002] S. Lang, Algebra, Third ed., Graduate Texts in Mathematics 211, Springer,
New York, 2002.
[Sarnak 1995] P. Sarnak, “Selberg’s eigenvalue conjecture”, Notices Amer. Math. Soc.
42:11 (1995), 1272–1277.
[Schneps 1994] L. Schneps (editor), The Grothendieck theory of dessins d’enfants
(Luminy, 1993), London Math. Soc. Lecture Note Ser. 200, Cambridge Univ. Press,
Cambridge, 1994.
534 HENRI COHEN AND PETER STEVENHAGEN
H ENRI C OHEN
L ABORATOIRE A2X, U.M.R. 5465 DU C.N.R.S.
U NIVERSIT É B ORDEAUX I
351 C OURS DE LA L IB ÉRATION
33405 TALENCE C EDEX
F RANCE
cohen@math.u-bordeaux1.fr
P ETER S TEVENHAGEN
M ATHEMATISCH I NSTITUUT,
U NIVERSITEIT L EIDEN , P OSTBUS 9512
2300 RA L EIDEN
T HE N ETHERLANDS
psh@math.leidenuniv.nl