 is such that
 is such that 
 , and let
, and let
 be the minimal polynomial of
 be the minimal polynomial of  .  Then
.  Then
![$ \mathbf{Z}[a]\subset \O _K$](img504.png) , and we have a diagram of schemes
, and we have a diagram of schemes
![$\displaystyle \xymatrix{
{(??)  }\ar@{^(->}[r]\ar[d] &{\Spec (\O _K)}\ar[d] \\...
...pec(\Z[x]/g(x))\\
{\Spec (\mathbf{F}_p) }\ar@{^(->}[r]&{\Spec (\mathbf{Z})}
}$](img505.png) 
 is the factorization of the image of
is the factorization of the image of  in
 in 
![$ \mathbf{F}_p[x]$](img220.png) .
.
The cover 
![$ \pi:\Spec (\mathbf{Z}[a])\rightarrow \Spec (\mathbf{Z})$](img507.png) is easy to understand
because it is defined by the single equation
 is easy to understand
because it is defined by the single equation  .  To give a
maximal ideal
.  To give a
maximal ideal 
 of
 of 
![$ \mathbf{Z}[a]$](img478.png) such that
 such that 
 is the
same as giving a homomorphism
 is the
same as giving a homomorphism 
![$ \varphi :\mathbf{Z}[x]/(g) \rightarrow \overline{\mathbf{F}}_p$](img509.png) (up to
automorphisms of the image), which is in turn the same as giving a
root of
 (up to
automorphisms of the image), which is in turn the same as giving a
root of  in
 in 
 (up to automorphism), which is the same
as giving an irreducible factor of the reduction of
 (up to automorphism), which is the same
as giving an irreducible factor of the reduction of  modulo
 modulo  .
.
![$ \mathbf{Z}[a]$](img478.png) in
 in  is coprime to
 is coprime to  .  Then
the primes
.  Then
the primes 
 in the factorization of
 in the factorization of 
![$ p\mathbf{Z}[a]$](img511.png) do not
decompose further going from
 do not
decompose further going from 
![$ \mathbf{Z}[a]$](img478.png) to
 to  , so finding the
prime ideals of
, so finding the
prime ideals of 
![$ \mathbf{Z}[a]$](img478.png) that contain
 that contain  yields the factorization
of
 yields the factorization
of  .
.![$\displaystyle 0 \to \mathbf{Z}[a]\to \O _K \to H \to 0,$](img512.png) 
 is a finite abelian group of order coprime 
to
 is a finite abelian group of order coprime 
to  .  Tensor product is right exact, and there is
an exact sequence
.  Tensor product is right exact, and there is
an exact sequence
![$\displaystyle \Tor _1(H,\mathbf{F}_p) \to \mathbf{Z}[a]\otimes \mathbf{F}_p \to \O _K\otimes \mathbf{F}_p \to H\otimes \mathbf{F}_p \to 0,
$](img513.png) 
 ,
so
,
so 
![$ \mathbf{Z}[a]\otimes \mathbf{F}_p\cong \O _K\otimes \mathbf{F}_p$](img515.png) .
.
![$ \mathbf{Z}[a]\hookrightarrow \O _K$](img516.png) is defined by a matrix over
is defined by a matrix over 
 that has determinant
 that has determinant
![$ \pm [\O _K:\mathbf{Z}[a]]$](img517.png) , which is coprime to
, which is coprime to  .  The reduction of
this matrix modulo
.  The reduction of
this matrix modulo  is invertible, so it defines an isomorphism
 is invertible, so it defines an isomorphism
![$ \mathbf{Z}[a]\otimes \mathbf{F}_p \to \O _K\otimes \mathbf{F}_p$](img518.png) .
Any homomorphism
.
Any homomorphism 
 is the composition of a homomorphism
 is the composition of a homomorphism
 with a homomorphism
 with a homomorphism 
 .  Since
.  Since 
![$ \O _K\otimes \mathbf{F}_p\cong \mathbf{Z}[a]\otimes \mathbf{F}_p$](img522.png) , the
homomorphisms
, the
homomorphisms 
 are in bijection with the homomorphisms
 are in bijection with the homomorphisms
![$ \mathbf{Z}[a]\to \overline{\mathbf{F}}_p$](img523.png) , which proves the lemma.
, which proves the lemma.
  
As suggested in the proof of the lemma, we find all homomorphisms
 by finding all homomorphism
 by finding all homomorphism 
![$ \mathbf{Z}[a]\to \overline{\mathbf{F}}_p$](img523.png) .  In
terms of ideals, if
.  In
terms of ideals, if 
![$ \mathfrak{p}=(g(a),p)\mathbf{Z}[a]$](img524.png) is a maximal ideal of
 is a maximal ideal of 
![$ \mathbf{Z}[a]$](img478.png) ,
then the ideal
,
then the ideal 
 of
 of  is also maximal, since
 is also maximal, since
![$\displaystyle \O _K/\mathfrak{p}'\cong (\O _K\otimes \mathbf{F}_p)/(g(\tilde{a}...
...bf{Z}[a]\otimes \mathbf{F}_p) / (g(\tilde{a})) \subset \overline{\mathbf{F}}_p.$](img526.png) 
We formalize the above discussion in the following theorem:
 denote the minimal polynomial of
 denote the minimal polynomial of  over
 over 
 .
Suppose that
.
Suppose that 
![$ p\nmid [\O _K:\mathbf{Z}[a]]$](img527.png) is a prime.
Let
 is a prime.
Let
![$\displaystyle \overline{f} = \prod_{i=1}^t \overline{f}_i^{e_i} \in \mathbf{F}_p[x]
$](img528.png) 
 are distinct monic irreducible
polynomials.  
Let
 are distinct monic irreducible
polynomials.  
Let 
 where
where 
![$ f_i\in\mathbf{Z}[x]$](img531.png) is a lift of
 is a lift of 
 in
 in 
![$ \mathbf{F}_p[X]$](img532.png) .
Then
.
Then
 
We return to the example from above, in which 
 , where
, where  is
a root of
 is
a root of 
 .  According to , the maximal
order
.  According to , the maximal
order  has discriminant
 has discriminant  :
:
> Discriminant(MaximalOrder(K)); 2945785The order
![$ \mathbf{Z}[a]$](img478.png) has the same discriminant as
 has the same discriminant as  , so
, so
![$ \mathbf{Z}[a]=\O _K$](img535.png) and we can apply the above theorem.
 and we can apply the above theorem.
> Discriminant(x^5 + 7*x^4 + 3*x^2 - x + 1); 2945785We have
 
 given before the theorem.
 given before the theorem.
If we replace  by
 by  , then the index of
, then the index of 
![$ \mathbf{Z}[b]$](img538.png) in
in  will be a power of
 will be a power of  , which is coprime to
, which is coprime to  ,
so the above method will still work.
,
so the above method will still work.
   > f:=MinimalPolynomial(7*a);
   > f;
   x^5 + 49*x^4 + 1029*x^2 - 2401*x + 16807
   > Discriminant(f);
   235050861175510968365785
   > Discriminant(f)/Discriminant(MaximalOrder(K));
   79792266297612001    // coprime to 5
   > S<t> := PolynomialRing(GF(5));
   > Factorization(S!f);
   [
       <t + 1, 2>,
       <t + 4, 1>,
       <t^2 + 3*t + 3, 1>
   ]
Thus  factors in
 factors in  as
 
as 
 
 by
 by  and try the above algorithm with
 and try the above algorithm with 
![$ \mathbf{Z}[b]$](img538.png) ,
then the method fails because the index of
,
then the method fails because the index of 
![$ \mathbf{Z}[b]$](img538.png) in
 in  is divisible
by
 is divisible
by  .
.
   > f:=MinimalPolynomial(5*a);
   > f;
   x^5 + 35*x^4 + 375*x^2 - 625*x + 3125
   > Discriminant(f) / Discriminant(MaximalOrder(K));
   95367431640625    // divisible by 5
   > Factorization(S!f);
   [
       <t, 5>
   ]
William Stein 2004-05-06