J
OURNAL DE
T
HÉORIE DES
N
OMBRES DE
B
ORDEAUX
H
ENRI
C
OHEN
F
RANCISCO
D
IAZ
Y D
IAZ
A polynomial reduction algorithm
Journal de Théorie des Nombres de Bordeaux, tome
3, n
o2 (1991),
p. 351-360
<http://www.numdam.org/item?id=JTNB_1991__3_2_351_0>
© Université Bordeaux 1, 1991, tous droits réservés.
L’accès aux archives de la revue « Journal de Théorie des Nombres de Bordeaux » (http://jtnb.cedram.org/) implique l’accord avec les condi-tions générales d’utilisation (http://www.numdam.org/conditions). Toute uti-lisation commerciale ou impression systématique est constitutive d’une infraction pénale. Toute copie ou impression de ce fichier doit conte-nir la présente mention de copyright.
Article numérisé dans le cadre du programme Numérisation de documents anciens mathématiques
A
polynomial
reduction
algorithm.
PAR HENRI COHEN AND FRANCISCO DIAZ Y DIAZ
Résumé 2014 L’algorithme que nous décrivons dans ce papier est une ap-proche pratique de la représentation d’un corps de nombre K par la racine
d’un polynôme aussi canonique que possible. Nous utilisons l’algorithme LLL pour trouver une base de petits vecteurs pour le réseau de Rn image
des entiers de K par le plongement canonique.
Abstract 2014 The algorithm described in this paper is a practical approach
to the problem of giving, for each number field K a polynomial, as canonical as possible, a root of which is a primitive element of the extension
K/Q.
Our algorithm uses the LLL algorithm to find a basis of minimal vectors
for the lattice of Rn determined by the integers of K under the canonical
map.
Very often,
number fields arise as 7~ =Q[0],
where 0 is analgebraic
integer
ofdegree
n root of a minimal monicpolynomial
P EZ[X].
There of course exist an infinite number of suchpolynomials
P,
one for everyalgebraic integer
ofdegree
exactly
equal
to nbelonging
to 7~.Given a number field
7~,
it would be nice be able to find aunique
Pdefining
K if we add a few extraproperties.
Forexample,
this wouldimmediately
solve theproblem
ofdeciding
whether two number fields areisomorphic
or not.In this
note,
wegive
analgorithm
which is a firstapproach
toanswering
this
problem,
and which hasproved
to be very useful. Afterexplaining
thebasic
algorithm,
wegive
fourexamples
for which we thank ourcolleague
M.
Olivier,
and we concludeby giving
a variation on the basicalgorithm
which
gives
apolynomial
which is as canonical aspossible.
1.Description
of thealgorithm
A natural idea is to define a notion of
"simplicity"
of apolynomial.
Forexample,
we could say that apolynomial
issimple
if thelargest
absolutevalue of its coefficients is as small as
possible
(i.e.
the LOCJ norm on thecoefficients),
or such that the sum of the squares of the coefficients is assmall as
possible
(the
L2
norm).
Unfortunately,
we know of noreally
efficient way of
finding
"simple"
polynomials
in this sense, even if we do not ask for thesimplest,
but asimple polynomial
defining
K.What we will in fact consider is the
following
"norm" onpolynomials.
DEFINITION. Let P E
C[X],
and let ai be thecomplex
roots of Prepeated
with
multiplicity.
We define the size of Pby
the formula"
This is not a norm on in the usual mathematical sense, but it seems
reasonable to say that if the size
(in
thissense)
of apolynomial
is notlarge,
then the
polynomial
issimple,
and its coefficients should not be toolarge.
More
precisely,
one can show that if P= L:=o
a k X k
is a monicpoly-nomial and if ,S =
size(P),
then’
hence the size of P is related to the size of
The reason for which we take this definition instead of an L~’ definition on
the coefficients is that we can
apply
the LLLalgorithm
to find apolynomial
of small size which defines the same number field 1~ as the one defined
by
agiven polynomial
P,
while we do not know how to achieve this for thenorms on the coefficients.
The method is as follows. Let K be defined
by
a monic irreduciblepolynomial
P EZ[X].
We firstcompute
anintegral
basis (.¿)1, ... of thering
ofintegers
ofIi ,
by using
forexample
the Pohst-Zassenhaus round 2or round 4
algorithms.
Denote
by
Uj the nisomorphisms
of Ii into C. If we setwhere
the Xi
are inZ,
then x is anarbitrary
algebraic integer
in7~
hencethe minimal
polynomial
of x and d is thedegree
of x . NowPd
defines asubfield of
K,
and inparticular
when n =d,
it defines anequation
for K.Futhermore it is clear that all
equations
for K or its subfields are obtainedin this way.
Now we have
by
definitionhence
This is
clearly
apositive
definitequadratic
form in thex,’s,
and moreprecisely
INote that in the case where 7~ is
totally real,
that is when all the ak arereal
embeddings,
then thissimplifies
towhich is now a
quadratic
form withinteger
coefficients which caneasily
becomputed
from theknowledge
of the w; .In any case, whether 7~ is
totally
real ornot,
we canapply
the LLLalgorithm
to the lattice ~" and thequadratic
formsize(M~).
The result will be a set of n vectors xcorresponding
toreasonably
small values of the,
quadratic
form(see
(LLL]
for
quantitative
statements),
hence topolyno-mials
M,
of smallsize,
which is what we want. Note that we will oftenobtain in this way
algebraic integers
x ofdegree
d n, hence this willgive
us for free some subfields of K. Inparticular,
x = 1 isalways
obtained asa short
vector,
and this defines thesubfield Q
of K. Practicalexperiments
with this method show however
that,
at least for small valuesof n,
there isalways
at least one element x ofdegree
exactly
n, hencedefining
K.On
theother
hand,
it isdefinitely
possible
that nopolynomial
ofdegree
n occurs,although
it is a very rare occurence. That this ispossible
inprinciple
hasbeen shown
by
H. W. Lenstra(private communication),
but inpractice,
on more than 10000polynomials
of variousdegree
we have never encountereda failure. In this unfavorable case, we can of course
try
to look for elements of small norm other than thosegiven
by LLL,
but it will be much slower.Although
the minimalpolynomials
of the elements ofdegree
n that weobtain have
usually
smaller coefficients than thepolynomial
P from whichwe
started,
it is also often the case thatthey
have muchgreater
coefficientsthan those
of P,
and this is because the "size" of P does notdirectly
reflectthe size of the coefficients
(see above).
Note that it is
absolutely
not true that ouralgorithm
willgive
all thesubfields of 7~. In
fact,
the LLLalgorithm gives
usexactly
nvectors,
but a number field ofdegree
n may have much more than n distinct subfields.The
algorithm,
which we name POLRED forpolynomial reduction,
is as follows.Algorithm.
Q[O]
be a number field definedby
a monicirre-ducible
polynomial
P EZ[X].
Thisalgorithm gives
a list ofpolynomials
defining
certain subfields of Ii(including Q),
and which are oftensimpler
than the
polynomial
P so can be used to define the field Ii ifthey
are ofdegree
equal
to thedegree
of AB1.
[Compute
the maximalorder]
Using
forexample
the round 2algo-rithm
(see
e.g.[Ford]),
compute
anintegral
basis ... , ,Wn, aspolynomials
in 0.
2.
[Compute matrix]
If the field h’ istotally
real(which
can beeasily
checked
using
Sturm’salgorithm),
set ~-- for1 i, j
n, which will be an element of Z.Otherwise,
compute
areasonably
accurateapproximation
of 0 and itsconjugates
as the roots of P inC,
then the numerical values ofUj(Wk),
and
finally
compute
(note
that this will be a realnumber).
3.
[Apply
LLL]
Using
the LLLalgorithm
applied
to the innerproduct
defined
by
the matrix M =(mi,j)
and to the standard basis of the latticeZ’~,
compute
an LLL-reduced basisbi ,
... ,bn.
4.
[Compute
characteristicpolynomials]
For 1 i n,compute
thecharacteristic
polynomial Ci
of the elementcorresponding
tobi
on5.
[Compute
minimalpolynomials]
For 1 i n, setwhere the
gcd
isalways
normalized so as to bemonic,
output
thepolyno-mials
P~
and terminate thealgorithm.
Since we will have
Ci
it is clear that thecomputation
ofstep
5gives
us Pi
in terms ofC~ .
2.
Examples
We now
give
examples
of the use of the POLREDalgorithm.
In
~Kwon-Mart~,
the smallest discriminant of aquintic
number field with one realplace
andhaving
themetacyclic
group as the Galois group ofits Galois
closure,
is shown to begenerated
by
a root of thepolynomial
of discriminant
24 ~
13‘~ ~
(2~ . 10429)~.
Using
POLRED on thispolynomial
we find that ourquintic
number field can also begenerated
by
a root of thesimpler polynomial
whose discriminant is
24 ~
133 equal
to the discriminant of the field.The next
example
is taken from work of M. Olivier. Consider thepoly-nomial
This
polynomial
is irreducible overQ,
hence defines a number field K ofdegree
6.Furthermore,
onecomputes
that thecomplex
roots of P areapproximately equal
tohence the Galois group G of the Galois closure of
K,
considered as aper-mutation group on the roots of
P,
is asubgroup
of thealternating
groupAt,. Furthermore,
directcomputations
on the roots show that Ii does nothave any non-trivial subfields. The classification of transitive
permutation
groups of
degree
6 then shows that G isisomorphic
either toA,5
or toA~ .
To
distinguish
between thetwo,
we use a resolvent functiongiven
by
[Stau]
and the resolventpolynomial
thus obtained isA
computation
of the roots of thispolynomial
shows that it has aninteger
root x =-673,
and this shows that G isisomorphic
toA5.
Inaddition,
Q(X)
=R(X)/(X
+673)
is an irreducible fifthdegree polynomial
whichdefines a number field with the same discriminant as K. We have
and the discriminant of
Q
(which
must be asquare)
has 63 decimaldigits.
Now if we
apply
the POLREDalgorithm,
we obtain fivepolynomials,
fourof which
defining
the same field asQ,
and thepolynomial
with smallestdiscriminant is
, , _ _ - I
a much more
appealing
polynomial
thanQ.
Note that we also have
disc(S)
=116992.
There was a small amount of
cheating
in the aboveexample:
sincedisc(Q)
is a 63digit
number,
the POLREDalgorithm,
which inpartic-ular
computes
anintegral
basis of K hence needs to factordisc(Q),
may needquite
a lot of time to factor this discriminant.However,
we can inthis case
help
the POLREDalgorithm
by telling
it thatdisc(Q)
is a square,which we know a
priori,
but which is notusually
tested for in afactoring
algorithm
since it isquite
rare an occurence. This is how the aboveexam-ple
wascomputed
inpractice,
and the wholecomputation,
including
typing
the
commands,
took a few minutes on a workstation.We also find that its Galois group is
isomorphic
toA5,
and the fifthdegree
polynomial
Q(X)
obtained as above isThe use of POLRED
gives
us aspolynomial
of the fifthdegree
with smallestdiscriminant the
polynomial
Now as remarked in
[Oliv],
thepolynomial
P isinteresting
because itgives
aprimitive
sextic number field withA‘5
as Galois group of the Galoisclosure,
and of discriminant d = 287296 =
(2‘~ ~ 67)2 ,
and it is the one with smallestdiscriminant in absolute value.
Curiously enough,
this discriminant is alsothe smallest for
primitive
sextic number fields withA6
as Galois group ofthe Galois closure
(defined
forexample by
+2X5 - X~
+2X 2 -
1).
Anotherinteresting
property
of thepolynomial
P becomesagain
appar-ent with the use of POLRED. If weapply
POLRED to thepolynomial
P itself(which
isalready simple
enough,
but nomatter),
we obtain five othersixth
degree
polynomials,
one of which isNow A. Brumer has noticed that the
plus
part
J+(67)
of the Jacobian of the modular curveXo(67)
isisogenous
to the Jacobian of the curvey2
=T(-x),
and the minuspart
J-(67)
isisogenous
to theproduct
of theJacobian
of y2
=P(-x)
by
theelliptic
curve 67a of[Ant IV].
As a last
example,
wegive examples
of the use of POLRED inshowing
that different
polynomials
generate
isomorphic
fields. Forthis,
we useto-tally
real octicpolynomials
of discriminant 282300416 and 309593125given
in
[PMD].
A
totally
real octic field 7~ of discriminant d = 282300416 isgenerated
Applying
POLRED
toP(X)
we obtainthus
showing
that the fieldsgenerated
by
the roots of thepolynomials given
in[PMD]
areisomorphic,
and also that is a subfield. The fact thatthe same
polynomial
is obtained several timesgives
also some information on the Galois group of the Galois closure of the number fieldI,
since itshows that the
automorphism
group of K is non-trivial.For discriminant d =
309593125,
applying
POLRED to thepolynomial
we obtain
where four of the
polynomials given
for this field in[PMD]
occur, and inaddition a
polynomial
forQ( v’5),
and twoquartic polynomials.
Anotherapplication
of POLRED shows that bothgenerate
theunique
(up
toiso-morphism)
quartic
number field of discriminant 725.If we
apply
POLRED to the otherpolynomials given
in[PMD]
fordis-criminant d =
309593125,
i.e. forand for
we obtain the same
polynomials
(up
to the trivialchange
X into-X),
showing
that the fieldsgenerated
by
all thesepolynomials
areisomorphic.
3. A
pseudo-canonical
defining polynomial
As mentioned in the
introduction,
we can use the basic POLREDal-gorithm
to obtain apolynomial
defining
a number field Ii which is ascanonical as
possible.
We first need a notation. If
Q(X) =
is apolynomial
ofdegree
n, we set
-Algorithm.
Given a number field li definedby
a monic irreduciblepolynomial
P E ofdegree
n, thisalgorithm
outputs
anotherpolyno-mial
defining
7~ which is as canonical aspossible.
1.
[Apply POLRED]
Apply
the POLREDalgorithm
toP,
and letP;
(for
i =1, ... ,
n)
be the npolynomials
which areoutput
by
the POLREDalgorithm.
If none of thePi
are ofdegree
n,output
a messagesaying
thatthe
algorithm
hasfailed,
and terminate thealgorithm.
Otherwise let ,C bethe set of i such that
Pi
is ofdegree
n.2.
[Minimize v(Pi)~
If ,C has asingle
element,
letQ
be this element.Otherwise
for each i E ,Ccompute
v- I ~V(Pi)
and let v be the smallest vifor the
lexicographic ordering
of thecomponents.
LetQ
be anyPi
such thatv(Pi)
= v.3.
[Possible
sign
change]
Search for the non-zero monomial oflargest
degree
d such thatd 0
n(mod 2).
If such a monomialexists,
make if nec-essary thechange
Q(X) 2013
so that thesign
of this monomial4.
[Terminate]
Output
Q
and terminate thealgorithm.
Remarks.
(1)
Asalready
mentioned the POLREDalgorithm
maygive
only
poly-nomials of
degree
less than n, hence the abovealgorithm
will fail in that case. This is a very rare occurence.(2)
At the end ofstep
2 there may be several i such that v. Inthat case, it may be useful to
output
all thepossibilities
(after
executing
step
3 on each ofthem)
instead ofonly
one. Inpractice,
this is also rare.
REFERENCES
[Ford]
D. J. Ford, The construction of maximal orders over a Dedekind domain, J. Symbolic Computation 4(1987),
69-75.[Kwon-Mart]
S.-H. Kwon and J. Martinet, Sur les corps resolubles de degré premier, J.Reine Angew. Math.
375/376
(1987),
12-23.[LLL]
A. K. Lenstra, H. W. Lenstra, Jr. and L. Lovász, Factoring polynomials with rational coefficients, Math. Annalen 61(1982),
515-534.[Oliv]
M. Olivier, Corps sextiques primitifs, Ann. Institut Fourier 40(1990),
757-767.[PMD]
M. Pohst, J. Martinet and F. Diaz y Diaz, The minimum discriminant of totally real octic fields, J. Number Theory 36(1990),
145-159.[Stau]
R. P. Stauduhar, The determination of Galois groups, Math. Comp. 27(1973),
981-996.Centre de Recherches en Math6matiques de Bordeaux 351 Cours de la Lib6ration
33405 Talence Cedex France.