Following SGA 1, Exposé IV, we first prove a few lemmas, which are interesting themselves. (See also this blog post by Akhil Mathew for a proof of a special case.)
Lemma 1 — Given a ring homomorphism and an -module , the following are equivalent.
For every -module ,
is -flat and
Moreover, if , the above two are equivalent to
for every -module killed by some power of .
Proof: The equivalence of the first two can be seen by studying the Tor spectral sequence. Here is a direct proof: if 1. is valid and is an injection of -modules with cokernel C, then, as A-modules,
.
Since and the same for , this proves 2. Conversely, considering where F is B-free, we get:
.
Here, the last map is injective by flatness and that gives us 1. To see the "Moreover" part, if 1. is valid, then and so
By descending induction, this implies 3. The converse is trivial.
Lemma 2 — Let be a ring and a module over it. If for every , then the natural grade-preserving surjection
is an isomorphism. Moreover, when I is nilpotent,
is flat if and only if is flat over and is an isomorphism.
Proof: The assumption implies that and so, since tensor product commutes with base extension,
.
For the second part, let denote the exact sequence and . Consider the exact sequence of complexes:
Then (it is so for large and then use descending induction). 3. of Lemma 1 then implies that is flat.
Proof of the main statement.
: If is nilpotent, then, by Lemma 1, and is flat over . Thus, assume that the first assumption is valid. Let be an ideal and we shall show is injective. For an integer , consider the exact sequence
Since by Lemma 1 (note kills ), tensoring the above with , we get:
.
Tensoring with , we also have:
We combine the two to get the exact sequence:
Now, if is in the kernel of , then, a fortiori, is in . By the Artin–Rees lemma, given , we can find such that . Since , we conclude .
follows from Lemma 2.
: Since , the condition 4. is still valid with replaced by . Then Lemma 2 says that is flat over .
Tensoring with M, we see is the kernel of . Thus, the implication is established by an argument similar to that of
Application: characterization of an étale morphism
The local criterion can be used to prove the following:
Proposition — Given a morphism of finite type between Noetherian schemes, is étale (flat and unramified) if and only if for each x in X, f is an analytically local isomorphism near x; i.e., with , is an isomorphism.
Proof: Assume that is an isomorphism and we show f is étale. First, since is faithfully flat (in particular is a pure subring), we have:
.
Hence, is unramified (separability is trivial). Now, that is flat follows from (1) the assumption that the induced map on completion is flat and (2) the fact that flatness descends under faithfully flat base change (it shouldn’t be hard to make sense of (2)).
Next, we show the converse: by the local criterion, for each n, the natural map
is an isomorphism. By induction and the five lemma, this implies is an isomorphism for each n. Passing to limit, we get the asserted isomorphism.
Mumford’s Red Book gives an extrinsic proof of the above fact (Ch. III, § 5, Theorem 3).