# Local criterion for flatness

In algebra, the local criterion for flatness gives conditions one can check to show flatness of a module.[1]

## Statement

Given a commutative ring A, an ideal I and an A-module M, suppose either

• A is a Noetherian ring and M is idealwise separated for I: for every ideal ${\displaystyle {\mathfrak {a}}}$, ${\displaystyle \bigcap _{n\geq 1}I^{n}({\mathfrak {a}}\otimes M)=0}$ (for example, this is the case when A is a Noetherian local ring, I its maximal ideal and M finitely generated),

or

Then the following are equivalent:[2]

1. M is a flat module.
2. ${\displaystyle M/I}$ is flat over ${\displaystyle A/I}$ and ${\displaystyle \operatorname {Tor} _{1}^{A}(A/I,M)=0}$.
3. For each ${\displaystyle n\geq 0}$, ${\displaystyle M_{n}=M/I^{n+1}M}$ is flat over ${\displaystyle A_{n}=A/I^{n+1}}$.
4. In the notations of 3., ${\displaystyle M_{0}}$ is ${\displaystyle A_{0}}$-flat and the natural ${\displaystyle \operatorname {gr} _{I}A}$-module surjection
${\displaystyle \operatorname {gr} _{I}A\otimes _{A_{0}}M_{0}\to \operatorname {gr} _{I}M}$
is an isomorphism; i.e., each ${\displaystyle I^{n}/I^{n+1}\otimes _{A_{0}}M_{0}\to I^{n}M/I^{n+1}M}$ is an isomorphism.

The assumption that “A is a Noetherian ring” is used to invoke the Artin–Rees lemma and can be weakened; see (Fujiwara–Gabber–Kato, Proposition 2.2.1.)

## Proof

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 ${\displaystyle A\to B}$ and an ${\displaystyle A}$-module ${\displaystyle M}$, the following are equivalent.

1. For every ${\displaystyle B}$-module ${\displaystyle X}$, ${\displaystyle \operatorname {Tor} _{1}^{A}(X,M)=0.}$
2. ${\displaystyle M\otimes _{A}B}$ is ${\displaystyle B}$-flat and ${\displaystyle \operatorname {Tor} _{1}^{A}(B,M)=0.}$

Moreover, if ${\displaystyle B=A/I}$, the above two are equivalent to

1. ${\displaystyle \operatorname {Tor} _{1}^{A}(X,M)=0}$ for every ${\displaystyle A}$-module ${\displaystyle X}$ killed by some power of ${\displaystyle I}$.

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 ${\displaystyle N\hookrightarrow N'}$ is an injection of ${\displaystyle B}$-modules with cokernel C, then, as A-modules,

${\displaystyle \operatorname {Tor} _{1}^{A}(C,M)=0\to N\otimes _{A}M\to N'\otimes _{A}M}$.

Since ${\displaystyle N\otimes _{A}M\simeq N\otimes _{B}(B\otimes _{A}N)}$ and the same for ${\displaystyle N'}$, this proves 2. Conversely, considering ${\displaystyle 0\to R\to F\to X\to 0}$ where F is B-free, we get:

${\displaystyle \operatorname {Tor} _{1}^{A}(F,M)=0\to \operatorname {Tor} _{1}^{A}(X,M)\to R\otimes _{A}M\to F\otimes _{A}M}$.

Here, the last map is injective by flatness and that gives us 1. To see the "Moreover" part, if 1. is valid, then ${\displaystyle \operatorname {Tor} _{1}^{A}(I^{n}X/I^{n+1}X,M)=0}$ and so

${\displaystyle \operatorname {Tor} _{1}^{A}(I^{n+1}X,M)\to \operatorname {Tor} _{1}^{A}(I^{n}X,M)\to 0.}$

By descending induction, this implies 3. The converse is trivial. ${\displaystyle \square }$

Lemma 2  Let ${\displaystyle A}$ be a ring and ${\displaystyle M}$ a module over it. If ${\displaystyle \operatorname {Tor} _{1}^{A}(A/I^{n},M)=0}$ for every ${\displaystyle n>0}$, then the natural grade-preserving surjection

${\displaystyle \operatorname {gr} _{I}(A)\otimes _{A_{0}}M_{0}\to \operatorname {gr} _{I}M}$

is an isomorphism. Moreover, when I is nilpotent,

${\displaystyle M}$ is flat if and only if ${\displaystyle M_{0}}$ is flat over ${\displaystyle A_{0}}$ and ${\displaystyle \operatorname {gr} _{I}A\otimes _{A_{0}}M_{0}\to \operatorname {gr} _{I}M}$ is an isomorphism.

Proof: The assumption implies that ${\displaystyle I^{n}\otimes M=I^{n}M}$ and so, since tensor product commutes with base extension,

${\displaystyle \operatorname {gr} _{I}(A)\otimes _{A_{0}}M_{0}=\oplus _{0}^{\infty }(I^{n})_{0}\otimes _{A_{0}}M_{0}=\oplus _{0}^{\infty }(I^{n}\otimes _{A}M)_{0}=\oplus _{0}^{\infty }(I^{n}M)_{0}=\operatorname {gr} _{I}M}$.

For the second part, let ${\displaystyle \alpha _{i}}$ denote the exact sequence ${\displaystyle 0\to \operatorname {Tor} _{1}^{A}(A/I^{i},M)\to I^{i}\otimes M\to I^{i}M\to 0}$ and ${\displaystyle \gamma _{i}:0\to 0\to I^{i}/I^{i+1}\otimes M{\overset {\simeq }{\to }}I^{i}M/I^{i+1}M\to 0}$. Consider the exact sequence of complexes:

${\displaystyle \alpha _{i+1}\to \alpha _{i}\to \gamma _{i}.}$

Then ${\displaystyle \operatorname {Tor} _{1}^{A}(A/I^{i},M)=0,i>0}$ (it is so for large ${\displaystyle i}$ and then use descending induction). 3. of Lemma 1 then implies that ${\displaystyle M}$ is flat. ${\displaystyle \square }$

Proof of the main statement.

${\displaystyle 2.\Rightarrow 1.}$: If ${\displaystyle I}$ is nilpotent, then, by Lemma 1, ${\displaystyle \operatorname {Tor} _{1}^{A}(-,M)=0}$ and ${\displaystyle M}$ is flat over ${\displaystyle A}$. Thus, assume that the first assumption is valid. Let ${\displaystyle {\mathfrak {a}}\subset A}$ be an ideal and we shall show ${\displaystyle {\mathfrak {a}}\otimes M\to M}$ is injective. For an integer ${\displaystyle k>0}$, consider the exact sequence

${\displaystyle 0\to {\mathfrak {a}}/(I^{k}\cap {\mathfrak {a}})\to A/I^{k}\to A/({\mathfrak {a}}+I^{k})\to 0.}$

Since ${\displaystyle \operatorname {Tor} _{1}^{A}(A/({\mathfrak {a}}+I^{k}),M)=0}$ by Lemma 1 (note ${\displaystyle I^{k}}$ kills ${\displaystyle A/({\mathfrak {a}}+I^{k})}$), tensoring the above with ${\displaystyle M}$, we get:

${\displaystyle 0\to {\mathfrak {a}}/(I^{k}\cap {\mathfrak {a}})\otimes M\to A/I^{k}\otimes M=M/I^{k}M}$.

Tensoring ${\displaystyle M}$ with ${\displaystyle 0\to I^{k}\cap {\mathfrak {a}}\to {\mathfrak {a}}\to {\mathfrak {a}}/(I^{k}\cap {\mathfrak {a}})\to 0}$, we also have:

${\displaystyle (I^{k}\cap {\mathfrak {a}})\otimes M{\overset {f}{\to }}{\mathfrak {a}}\otimes M{\overset {g}{\to }}{\mathfrak {a}}/(I^{k}\cap {\mathfrak {a}})\otimes M\to 0.}$

We combine the two to get the exact sequence:

${\displaystyle (I^{k}\cap {\mathfrak {a}})\otimes M{\overset {f}{\to }}{\mathfrak {a}}\otimes M{\overset {g'}{\to }}M/I^{k}M.}$

Now, if ${\displaystyle x}$ is in the kernel of ${\displaystyle {\mathfrak {a}}\otimes M\to M}$, then, a fortiori, ${\displaystyle x}$ is in ${\displaystyle \operatorname {ker} (g')=\operatorname {im} (f)=(I^{k}\cap {\mathfrak {a}})\otimes M}$. By the Artin–Rees lemma, given ${\displaystyle n>0}$, we can find ${\displaystyle k>0}$ such that ${\displaystyle I^{k}\cap {\mathfrak {a}}\subset I^{n}{\mathfrak {a}}}$. Since ${\displaystyle \cap _{n\geq 1}I^{n}({\mathfrak {a}}\otimes M)=0}$, we conclude ${\displaystyle x=0}$.

${\displaystyle 1.\Rightarrow 4.}$ follows from Lemma 2.

${\displaystyle 4.\Rightarrow 3.}$: Since ${\displaystyle (A_{n})_{0}=A_{0}}$, the condition 4. is still valid with ${\displaystyle M,A}$ replaced by ${\displaystyle M_{n},A_{n}}$. Then Lemma 2 says that ${\displaystyle M_{n}}$ is flat over ${\displaystyle A_{n}}$.

${\displaystyle 3.\Rightarrow 2.}$ Tensoring ${\displaystyle 0\to I\to A\to A/I\to 0}$ with M, we see ${\displaystyle \operatorname {Tor} _{1}^{A}(A/I,M)}$ is the kernel of ${\displaystyle I\otimes M\to M}$. Thus, the implication is established by an argument similar to that of ${\displaystyle 2.\Rightarrow 1.}$${\displaystyle \square }$

## Application: characterization of an étale morphism

The local criterion can be used to prove the following:

Proposition  Given a morphism ${\displaystyle f:X\to Y}$ of finite type between Noetherian schemes, ${\displaystyle f}$ 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 ${\displaystyle y=f(x)}$, ${\displaystyle {\widehat {f_{x}^{*}}}:{\widehat {{\mathcal {O}}_{y,Y}}}\to {\widehat {{\mathcal {O}}_{x,X}}}}$ is an isomorphism.

Proof: Assume that ${\displaystyle {\widehat {{\mathcal {O}}_{y,Y}}}\to {\widehat {{\mathcal {O}}_{x,X}}}}$ is an isomorphism and we show f is étale. First, since ${\displaystyle {\mathcal {O}}_{x}\to {\widehat {{\mathcal {O}}_{x}}}}$ is faithfully flat (in particular is a pure subring), we have:

${\displaystyle {\mathfrak {m}}_{y}{\mathcal {O}}_{x}={\mathfrak {m}}_{y}{\widehat {{\mathcal {O}}_{x}}}\cap {\mathcal {O}}_{x}={\widehat {{\mathfrak {m}}_{y}}}{\widehat {{\mathcal {O}}_{x}}}\cap {\mathcal {O}}_{x}={\widehat {{\mathfrak {m}}_{x}}}\cap {\mathcal {O}}_{x}={\mathfrak {m}}_{x}}$.

Hence, ${\displaystyle f}$ is unramified (separability is trivial). Now, that ${\displaystyle {\mathcal {O}}_{y}\to {\mathcal {O}}_{x}}$ 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 ${\displaystyle {\mathfrak {m}}_{y}^{n}/{\mathfrak {m}}_{y}^{n+1}\to {\mathfrak {m}}_{x}^{n}/{\mathfrak {m}}_{x}^{n+1}}$ is an isomorphism. By induction and the five lemma, this implies ${\displaystyle {\mathcal {O}}_{y}/{\mathfrak {m}}_{y}^{n}\to {\mathcal {O}}_{x}/{\mathfrak {m}}_{x}^{n}}$ is an isomorphism for each n. Passing to limit, we get the asserted isomorphism. ${\displaystyle \square }$

Mumford’s Red Book gives an extrinsic proof of the above fact (Ch. III, § 5, Theorem 3).

## Miracle flatness theorem

B. Conrad calls the next theorem the miracle flatness theorem.[3]

Theorem  Let ${\displaystyle R\to S}$ be a local ring homomorphism between local Noetherian rings. If S is flat over R, then

${\displaystyle \dim S=\dim R+\dim S/{\mathfrak {m}}_{R}S}$.

Conversely, if this dimension equality holds, if R is regular and if S is Cohen–Macaulay (e.g., regular), then S is flat over R.

## Notes

1. Matsumura, Ch. 8, § 22.
2. Matsumura, Theorem 22.3.

## References

• Matsumura, Hideyuki (1989), Commutative ring theory, Cambridge Studies in Advanced Mathematics, 8 (2nd ed.), Cambridge University Press, ISBN 978-0-521-36764-6, MR 1011461
• Exposé IV of Grothendieck, Alexander; Raynaud, Michèle (2003) [1971], Revêtements étales et groupe fondamental (SGA 1), Documents Mathématiques (Paris) [Mathematical Documents (Paris)], 3, Paris: Société Mathématique de France, arXiv:math/0206203, Bibcode:2002math......6203G, ISBN 978-2-85629-141-2, MR 2017446
• Fujiwara, K.; Gabber, O.; Kato, F.: “On Hausdorff completions of commutative rings in rigid geometry.” Journal of Algebra, 322 (2011), 293-321.