and
nonabelian homological algebra
Given a ring (or -algebra) , a left -module, say , is flat if tensoring with over as a functor from left -modules to left -modules is an exact functor (sends short exact sequences to short exact sequences).
Tensoring with is automatically right exact, so it is equivalent to require that tensoring with be left exact. Since Mod is finitely complete, this is also equivalent to requiring that tensoring with be a flat functor.
On an abelian category, the notions of exact functor and flat functor coincide.
The ring may be taken non-unital without any change.
There is a characterisation of flatness that says that a left -module is flat if and only if “everything (that happens in ) happens for a reason (in )”.
The meaning of this is akin to the existence of bases in vector spaces. In a vector space, say , if we have an identity of the form then we cannot necessarily assume that the are all zero. However, if we choose a basis then we can write each in terms of the basis elements, say , and substitute in to get . Now as forms a basis, we can deduce from this that for each , . These last identities happen in the coefficient field, which is standing in place of in the analogy.
When translating this into the language of modules we cannot use bases so we have to be a little more relaxed. The following statement is the right one.
Suppose there is some identity in of the form with and . Then there is a family in such that every can be written in the form and the coefficients have the property that .
The module being flat is equivalent to being able always to do this.
There is an alternative way to phrase this which is less element-centric. The elements correspond to a morphism into from a free module, say . The correspond to a morphism , multiplying the th term by . That we have the identity says that the composition is zero, or that factors through the coequaliser of and . Now we consider the elements . These define another morphism from a free module, say . That the can be expressed in terms of the says that the morphism factors through . That is, there is a morphism such that . We therefore have to factorisations of : one through and one through . The question is as to whether these have any relation to each other. In particular, does factor through ? We can represent all of this in the following diagram.
Saying that is flat says that this lift always occurs.
Taking this a step further, we consider the filtered family of all finite subsets of . This generates a filtered family of finitely generated free modules with compatible morphisms to . So there is a morphism from the colimit of this family to . This morphism is surjective by construction. To show that it is injective, we need to show that any element in one of the terms in the family that dies by the time it reaches has actually died on the way. This is precisely what the above characterisation of flatness is saying: the element corresponding to that dies in is already dead by the time it reaches .
Hence a module is flat if and only if it is a filtered colimit of free modules.
This observation (Wraith, Blass) can be put into the more general context of modelling geometric theories by geometric morphisms from their classifying toposes, or equivalently, certain flat functors from sites for such topoi.