Lemma 10.81.2. Let $M$ be an $R$-module. Then $M$ is flat if and only if the following condition holds: if $P$ is a finitely presented $R$-module and $f: P \to M$ a module map, then there is a free finite $R$-module $F$ and module maps $h: P \to F$ and $g: F \to M$ such that $f = g \circ h$.

Proof. This is just a reformulation of condition (4) from Lemma 10.81.1. $\square$

In your comment you can use Markdown and LaTeX style mathematics (enclose it like $\pi$). A preview option is available if you wish to see how it works out (just click on the eye in the toolbar).