Lemma 5
Tag 042K, permanent. Cite it as [Bourbaki, Tag 042K].
Commutative Algebra, chapter I, § 2. Flat modules
Let be a family of left -modules, , their direct sum and a right -module. If, for all , is flat for , then is flat for .
(a) Suppose first that , and let be a submodule of , , and , being canonically identified with submodules of . Denote by the intersection , and by the image of in under the canonical projection of onto . We have a diagram
where are the canonical injections and is the mapping with the same graph as the restriction of to , which is surjective. It is immediately verified that this diagram is commutative and that its rows are exact. With and used in the same sense as in the proof of Lemma 4, we have a commutative diagram
By Lemma 1 of no. 1 the two rows of this diagram are exact; as E is flat for and , and are injective; moreover, by Lemma 2 of no. 1, is injective. Corollary 2 to Proposition 2 of § 1, no. 4 then shows that is injective and consequently E is M-flat.
(b) If I is a finite set with n elements, the lemma follows by induction on n using (a).
(c) In the general case let be a finitely generated submodule of M. Then there exists a finite subset J of the indexing set I such that is contained in the direct sum . By (b) E is flat for ; the canonical homomorphism , is therefore injective. On the other hand, as is a direct factor of M, the canonical homomorphism is injective (no. 1, Lemma 2). Taking the composition, it follows that is injective and E is flat for M by Lemma 3.
Bourbaki puts the proof directly after the statement, so what is above is the statement and its proof together.