 
 
 
 
 
   
 of finite type is said to be unramified
if
 of finite type is said to be unramified
if  
 .
. 
 be a
 be a  -algebra. Assume
-algebra. Assume  is generated by
 is generated by
 
 as an
 as an  -algebra.
Then
-algebra.
Then 
 is generated by
 is generated by 
 
as an ideal of
 .
. the ideal of
 the ideal of 
 generated by
 generated by  .
Then we define a subset
.
Then we define a subset  of
 of  as follows.
 as follows.
 
Now we claim the following facts.
 is closed under addition.
 is closed under addition.
 is stable under  multiplication by any element of
 is stable under  multiplication by any element of   .
.
 .
. 
 .
.
 is closed under multiplication.
 is closed under multiplication.
 , we have
, we have
|  | ||
|  |  | 
So the subset  is a
 is a  -subalgebra of
-subalgebra of  containing the generators
 containing the generators
  
 of
 of  . Thus we have
. Thus we have  .
.
  
 of finite type is  unramified
if and only if the diagonal map
 of finite type is  unramified
if and only if the diagonal map 
 is an open immersion.
 is an open immersion. is open.
then
 is open.
then 
 is a clopen (``closed and open'') subset of
 is a clopen (``closed and open'') subset of 
 .
Namely,
.
Namely,
 
is a decomposition of the scheme
 into two Zariski open set.
Thus we have
 into two Zariski open set.
Thus we have
 
We then note in particular that
 has
a distinguished global section (``the identity'')
 has
a distinguished global section (``the identity'')  defined by
 defined by
 
Then we see that
 
So we have
 
as required.
Let us now prove the ``only if'' part. The question is local on  and on
 and on  .
So we may assume that
.
So we may assume that  is of the form
 is of the form
 
where
 is a finitely generated algebra over
 is a finitely generated algebra over  .
Let
.
Let 
 be the ideal of definition of the diagonal.
The previous Lemma tells us that
 be the ideal of definition of the diagonal.
The previous Lemma tells us that  is finitely generated over
 
is finitely generated over 
 .
By the assumption we have
.
By the assumption we have
 
Now we use the Nakayama's lemma (theorem below) to find an element
 such that
 
such that 
 
Then it is easy to see that
 is an idempotent and that
 is an idempotent and that 
 is its range.
is its range.
  
 
 
 
 
