In algebra, flat modules include free modules, projective modules, and, over a principal ideal domain, torsion-free modules. Formally, a module M over a ring R is flat if 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. Flatness was introduced by Jean-Pierre Serre in his seminal 1956 paper "Géométrie algébrique et géométrie analytique".
Definition A left module M over a ring R is flat if the following condition is satisfied: for every injective linear map φ:K→L of right R-modules, the map φ⊗RM:K⊗RM→L⊗RM is also injective, where φ⊗RM is the map induced by k⊗m↦φ(k)⊗m. For this definition, it is enough to restrict the injections φ to the inclusions of finitely generated ideals into R. Equivalently, an R-module M is flat if the tensor product with M is an exact functor; that is if, for every short exact sequence of R-modules 0→K→L→J→0, the sequence 0→K⊗RM→L⊗RM→J⊗RM→0 is also exact. (This is an equivalent definition since the tensor product is a right exact functor.) These definitions apply also if R is a non-commutative ring, and M is a left R-module; in this case, K, L and J must be right R-modules, and the tensor products are not R-modules in general, but only abelian groups.
Characterizations Flatness can also be characterized by the following equational condition, which means that R-linear relations in M stem from linear relations in R. A left R-module M is flat if and only if, for every linear relation ∑i=1mrixi=0 with ri∈R and xi∈M, there exist elements yj∈M and ai,j∈R such that ∑i=1mriai,j=0 for j=1,…,n, and xi=∑j=1nai,jyj for i=1,…,m. It is equivalent to define n elements of a module, and a linear map from Rn to this module, which maps the standard basis of Rn to the n elements. This allows rewriting the previous characterization in terms of homomorphisms, as follows. An R-module M is flat if and only if the following condition holds: for every map f:F→M, where F is a finitely generated free R-module, and for every finitely generated R-submodule K of kerf, the map f factors through a map g to a free R-module G such that g(K)=0:
Relations to other module properties Flatness is related to various other module properties, such as being free, projective, or torsion-free. In particular, every flat module is torsion-free, every projective module is flat, and every free module is projective. There are finitely generated modules that are flat and not projective. However, finitely generated flat modules are all projective over the rings that are most commonly considered. Moreover, a finitely generated module is flat if and only it is locally free, meaning all the localizations at prime ideals are free modules. This is partly summarized in the following graphic.
Torsion-free modules Every flat module is torsion-free. This results from the above characterization in terms of relations by taking m=1. The converse holds over the integers, and more generally over principal ideal domains and Dedekind rings. An integral domain over which every torsion-free module is flat is called a Prüfer domain.
Free and projective modules A module M is projective if and only if there are a free module G and two linear maps i:M→G and p:G→M such that p∘i=idM. In particular, every free module is projective (take G=M and i=p=idM). Every projective module is flat. This can be proven from the above characterizations of flatness and projectivity in terms of linear maps by taking g=i∘f and h=p. Conversely, finitely generated flat modules are projective under mild conditions that are generally satisfied in commutative algebra and algebraic geometry. This makes the concept of flatness useful mainly for modules that are not finitely generated. A finitely presented module (that is the quotient of a finitely generated free module by a finitely generated submodule) that is flat is always projective. This can be proven by taking f surjective and K=kerf in the above characterization of flatness in terms of linear maps. The condition g(K)=0 implies the existence of a linear map i:M→G such that i∘f=g, and thus h∘i∘f=h∘g=f. As f is surjective, one has thus h∘i=idM, and M is projective. Over a Noetherian ring, every finitely generated flat module is projective, since every finitely generated module is finitely presented. The same result is true over an integral domain, even if it is not Noetherian. On a local ring every finitely generated flat module is free. A finitely generated flat module that is not projective can be built as follows. Let R=Fℕ be the set of infinite sequences whose terms belong to a fixed field F. It is a commutative ring with addition and multiplication defined componentwise. This ring is absolutely flat (that is, every module is flat). The module R/I, where I is the ideal of the sequences with a finite number of nonzero terms, is thus flat and finitely generated (only one generator), but it is not projective.
Non-examples If I is an ideal in a Noetherian commutative ring R, then R/I is not a flat module, except if I is generated by an idempotent (that is an element equal to its square). In particular, if R is an integral domain, R/I is flat only if I equals R or is the zero ideal. Over an integral domain, a flat module is torsion free. Thus, a module that contains nonzero torsion elements is not flat. In particular ℚ/ℤ and all fields of positive characteristic are non-flat ℤ-modules, where ℤ is the ring of integers and ℚ is the field of the rational numbers.
Direct sums, limits and products The direct sum ⨁i∈IMi of modules is flat if and only if each Mi is flat. The direct limit of flat modules is flat. In particular, the direct limit of free modules is flat. Conversely, every flat module can be written as the direct limit of finitely-generated free modules. Direct products of flat modules need not in general be flat. In fact, given a ring R, every direct product of flat R-modules is flat if and only if R is a coherent ring (that is, every finitely generated ideal is finitely presented).
… excerpt ends here. Continue reading the full article.

