# Flat module

In homological algebra and algebraic geometry, a flat module over a ring R is an R-module M such that taking the tensor product over R with M preserves exact sequences. A module is faithfully flat if taking the tensor product with a sequence produces an exact sequence if and only if the original sequence is exact.

Vector spaces over a field are flat modules. Free modules, or more generally projective modules, are also flat, over any R. For finitely generated modules over a Noetherian ring, flatness and projectivity are equivalent. For finitely generated modules over local rings, flatness, projectivity and freeness are all equivalent.[1] The field of quotients of an integral domain, and, more generally, any localization of a commutative ring are flat modules. The product of the local rings of a commutative ring is a faithfully flat module.

Flatness was introduced by Serre (1956) in his paper Géometrie Algébrique et Géométrie Analytique. See also flat morphism.

## Definition

### Commutative rings

Let M be an R-module. The following conditions are all equivalent, so M is flat if it satisfies any (thus all) of them:

• The functor
${\displaystyle F_{M}:\operatorname {Mod} (R)\to \operatorname {Mod} (R),\quad N\mapsto M\otimes _{R}N}$
is exact, where ${\displaystyle \operatorname {Mod} (R)}$ is the category of ${\displaystyle R}$-modules.
• For all prime ideals ${\displaystyle {\mathfrak {p}}}$ of R, the module ${\displaystyle M_{\mathfrak {p}}}$ is a flat ${\displaystyle R_{\mathfrak {p}}}$-module.
• For all maximal ideals ${\displaystyle {\mathfrak {m}}}$ of R, the module ${\displaystyle M_{\mathfrak {m}}}$ is a flat ${\displaystyle R_{\mathfrak {m}}}$-module.
• For every injective morphism ${\displaystyle \phi :K\to L}$ of ${\displaystyle R}$-modules ${\displaystyle K}$ and ${\displaystyle L}$, the induced map
${\displaystyle F_{M}(\phi ):M\otimes _{R}K\to M\otimes _{R}L,}$
is injective.
• For every finitely generated ideal ${\displaystyle I\hookrightarrow R}$, the induced morphism ${\displaystyle I\otimes _{R}M\to R\otimes _{R}M\cong M}$ is injective.
• There exists a directed system of ${\displaystyle R}$-modules ${\displaystyle \{F_{\alpha }\}_{\alpha }}$ with the following properties:
1. For all ${\displaystyle \alpha }$, ${\displaystyle F_{\alpha }}$ is a finitely generated, free ${\displaystyle R}$-module.
2. The direct limit is ${\displaystyle M}$: ${\displaystyle \varinjlim _{\alpha }F_{\alpha }=M.}$
• [2] For every linear dependency in ${\displaystyle M,}$
${\displaystyle r^{T}x=\sum _{i=1}^{k}r_{i}x_{i}=0,}$
where ${\displaystyle r_{i}\in R,x_{i}\in M}$, there exists a matrix ${\displaystyle A\in R^{k\times j}}$ such that
1. ${\displaystyle Ay=x}$ has a solution for some ${\displaystyle y\in M^{j}.}$
2. ${\displaystyle r^{T}A=0.}$
• For every ${\displaystyle R}$-module ${\displaystyle N}$,
${\displaystyle \operatorname {Tor} _{1}^{R}(N,M)=0}$
• For every finitely generated ideal ${\displaystyle I\subset R,}$
${\displaystyle \operatorname {Tor} _{1}^{R}(R/I,M)=0.}$
• For every map ${\displaystyle f:F\to M}$, where ${\displaystyle F}$ is a finitely generated free ${\displaystyle R}$-module, and for every finitely generated ${\displaystyle R}$-submodule ${\displaystyle K\leq \ker f}$, ${\displaystyle f}$ factors through a map to a free ${\displaystyle R}$-module ${\displaystyle G}$ that kills ${\displaystyle K}$:

### General rings

When R isn't commutative one needs the more careful statement that, if M is a flat left R-module, the tensor product with M maps exact sequences of right R-modules to exact sequences of abelian groups.

Taking tensor products (over arbitrary rings) is always a right exact functor. Therefore, the R-module M is flat if and only if for any injective homomorphism KL of R-modules, the induced homomorphism K${\displaystyle \otimes }$ML${\displaystyle \otimes }$M is also injective.

## Examples

• For any multiplicatively closed subset ${\displaystyle S}$ of a commutative ring ${\displaystyle R}$, the localization ring ${\displaystyle S^{-1}R}$ is flat as an ${\displaystyle R}$-module. For example, ${\displaystyle \mathbb {Q} }$ is flat over ${\displaystyle \mathbb {Z} }$ (though not projective).
• Every free ${\displaystyle \mathbb {Z} }$-module (in fact any free module over a ring) is a flat module.
• For each integer ${\displaystyle n}$ > 1, ${\displaystyle \mathbb {Z} /n\mathbb {Z} }$ is not flat over ${\displaystyle \mathbb {Z} }$, because ${\displaystyle n:\mathbb {Z} \to \mathbb {Z} ,\,x\mapsto nx}$ is injective, but tensored with ${\displaystyle \mathbb {Z} /n\mathbb {Z} }$ it is not.
• Similarly, ${\displaystyle \mathbb {Q} /\mathbb {Z} }$ is not flat over ${\displaystyle \mathbb {Z} .}$
• Let ${\displaystyle R=k[t],k}$ a field, and ${\displaystyle S=R[x]/(tx-1)}$. Since ${\displaystyle S}$ is the same thing as the localization ${\displaystyle R[t^{-1}]}$, it is flat over ${\displaystyle R}$. On the other hand, ${\displaystyle R[x]/(tx-t)}$ is not flat over ${\displaystyle R}$ since ${\displaystyle t}$ is a torsion element on it (so it is not torsion-free).
• Let ${\displaystyle A}$ be a noetherian ring and ${\displaystyle I}$ an ideal. Then the completion ${\displaystyle A\to {\widehat {A}}}$ with respect to ${\displaystyle I}$ is flat.[3] It is faithfully flat if and only if ${\displaystyle I}$ is contained in the Jacobson radical of ${\displaystyle A}$.[4] (cf. Zariski ring.)
• The direct sum ${\displaystyle \bigoplus _{i\in I}M_{i}}$ is flat if and only if each ${\displaystyle M_{i}}$ is flat.
• Every product of flat ${\displaystyle A}$-modules is flat if and only if ${\displaystyle A}$ is a coherent ring.[5]
• (Kunz) A noetherian ring containing a field of characteristic ${\displaystyle p}$ is regular if and only if the Frobenius morphism ${\displaystyle R}$${\displaystyle R}$ is flat and ${\displaystyle R}$ is reduced.

## Case of commutative rings

When M is a finitely-generated R-module, being flat is the same as being locally free in the following sense: M is a flat R-module if and only if for every prime ideal (or even just for every maximal ideal) P of R, the localization ${\displaystyle M_{P}}$ is free as a module over the localization ${\displaystyle R_{P}.}$[1]

Let R be a local ring with nilpotent maximal ideal (e.g., an artinian local ring) and M a module over it. Then M flat implies M free.[1]

The local criterion for flatness states:[6]

Let R be a local noetherian ring, S a local noetherian R-algebra with ${\displaystyle {\mathfrak {m}}_{R}S\subset {\mathfrak {m}}_{S}}$, and M a finitely generated S-module. Then M is flat over R if and only if ${\displaystyle \operatorname {Tor} _{1}^{R}(M,R/{\mathfrak {m}}_{R})=0.}$

The significance of this is that S need not be finite over R and we only need to consider the maximal ideal of R instead of an arbitrary ideal of R.

The next criterion is also useful for testing flatness:[7]

Let R, S be as in the local criterion for flatness. Assume S is Cohen–Macaulay and R is regular. Then S is flat over R if and only if ${\displaystyle \dim S=\dim R+\dim S/{\mathfrak {m}}_{R}S.}$

If S is an R-algebra, i.e., we have a homomorphism ${\displaystyle f\colon R\to S}$, then S has the structure of an R-module, and hence it makes sense to ask if S is flat over R. In this setting we have:

If S is flat over R, then S is faithfully flat over R if and only if every prime ideal of R is the inverse image under f of a prime ideal in S. In other words, if and only if the induced map ${\displaystyle f^{*}\colon \operatorname {Spec} (S)\to \operatorname {Spec} (R)}$ is surjective.

Flat modules over commutative rings are always torsion-free (that is, the multiplication by any regular element of the ring in injective in the module). Projective modules (and thus free modules) are always flat. For certain common classes of rings, these statements can be reversed (for example, every torsion-free module over a Dedekind ring is automatically flat and flat modules over perfect rings are always projective), as is subsumed in the following diagram of module properties:

An integral domain is called a Prüfer domain if every torsion-free module over it is flat.

## Categorical colimits

In general, arbitrary direct sums and direct limits of flat modules are flat, a consequence of the fact that the tensor product commutes with direct sums and direct limits (in fact with all colimits), and that both direct sums and direct limits are exact functors. Submodules and factor modules of flat modules need not be flat in general (e.g. Z/nZ is not a flat Z-module for n>1). However we have the following result: the homomorphic image of a flat module M is flat if and only if the kernel is a pure submodule of M.

Daniel Lazard proved in 1969 that a module M is flat if and only if it is a direct limit of finitely-generated free modules.[8] As a consequence, one can deduce that every finitely-presented flat module is projective.

An abelian group is flat (viewed as a Z-module) if and only if it is torsion-free.

## Homological algebra

Flatness may also be expressed using the Tor functors, the left derived functors of the tensor product. A left R-module M is flat if and only if TornR(–, M) = 0 for all ${\displaystyle n\geq 1}$ (i.e., if and only if TornR(X, M) = 0 for all ${\displaystyle n\geq 1}$ and all right R-modules X). Similarly, a right R-module M is flat if and only if TornR(M, X) = 0 for all ${\displaystyle n\geq 1}$ and all left R-modules X. Using the Tor functor's long exact sequences, one can then easily prove facts about a short exact sequence

${\displaystyle 0\;\rightarrow \;A\;{\overset {f}{\longrightarrow }}\;B\;{\overset {g}{\longrightarrow }}\;C\;\rightarrow \;0}$
• If A and C are flat, then so is B
• If B and C are flat, then so is A

If A and B are flat, C need not be flat in general. However, it can be shown that

• If A is pure in B and B is flat, then A and C are flat.

## Flat resolutions

A flat resolution of a module M is a resolution of the form

... → F2F1F0M → 0

where the Fi are all flat modules. Any free or projective resolution is necessarily a flat resolution. Flat resolutions can be used to compute the Tor functor.

The length of a finite flat resolution is the first subscript n such that Fn is nonzero and Fi = 0 for i greater than n. If a module M admits a finite flat resolution, the minimal length among all finite flat resolutions of M is called its flat dimension[9] and denoted fd(M). If M does not admit a finite flat resolution, then by convention the flat dimension is said to be infinite. As an example, consider a module M such that fd(M) = 0. In this situation, the exactness of the sequence 0 → F0M → 0 indicates that the arrow in the center is an isomorphism, and hence M itself is flat.[10]

In some areas of module theory, a flat resolution must satisfy the additional requirement that each map is a flat pre-cover of the kernel of the map to the right. For projective resolutions, this condition is almost invisible: a projective pre-cover is simply an epimorphism from a projective module. These ideas are inspired from Auslander's work in approximations. These ideas are also familiar from the more common notion of minimal projective resolutions, where each map is required to be a projective cover of the kernel of the map to the right. However, projective covers need not exist in general, so minimal projective resolutions are only of limited use over rings like the integers.

## Flat covers

While projective covers for modules do not always exist, it was speculated that for general rings, every module would have a flat cover, that is, every module M would be the epimorphic image of a flat module F such that every map from a flat module onto M factors through F, and any endomorphism of F over M is an automoprhism. This flat cover conjecture was explicitly first stated in (Enochs 1981, p 196). The conjecture turned out to be true, resolved positively and proved simultaneously by L. Bican, R. El Bashir and E. Enochs.[11] This was preceded by important contributions by P. Eklof, J. Trlifaj and J. Xu.

Since flat covers exist for all modules over all rings, minimal flat resolutions can take the place of minimal projective resolutions in many circumstances. The measurement of the departure of flat resolutions from projective resolutions is called relative homological algebra, and is covered in classics such as (MacLane 1963) and in more recent works focussing on flat resolutions such as (Enochs & Jenda 2000).

## In constructive mathematics

Flat modules have increased importance in constructive mathematics, where projective modules are less useful. For example, that all free modules are projective is equivalent to the full axiom of choice, so theorems about projective modules, even if proved constructively, do not necessarily apply to free modules. In contrast, no choice is needed to prove that free modules are flat, so theorems about flat modules can still apply.[12]

## References

1. ^ a b c Matsumura 1970, Proposition 3.G
2. ^ Bourbaki, Ch. I, § 2. Proposition 13, Corollay 1.
3. ^ Matsumura 1970, Corollary 1 of Theorem 55, p. 170
4. ^ Matsumura 1970, Theorem 56
5. ^ http://mathoverflow.net/questions/120403/flatness-of-power-series-rings/
6. ^ Eisenbud 1994, Theorem 6.8
7. ^ Eisenbud 1994, Theorem 18.16
8. ^ Lazard, D. (1969), "Autour de la platitude", Bulletin de la Société Mathématique de France, 97: 81–128
9. ^ Lam 1999, p. 183.
10. ^ A module isomorphic to an flat module is of course flat.
11. ^
12. ^