Proposition 7
Tag 0485, permanent. Cite it as [Bourbaki, Tag 0485].
Commutative Algebra, chapter II, § 3. Local rings. Passage from the local to the global
Let be a reduced local ring, its maximal ideal, the family of minimal prime ideals of , the field of fractions of and a finitely generated -module. For to be free it is necessary and sufficient that
If M is free, clearly the two sides of (1) are equal to the rank of M for all . Suppose now that the condition is satisfied and denote by the common value of the two sides of (1); by Corollary 2 to Proposition 4 M has a system of generators (). Suppose first that is an integral domain, in which case for all . The elements () generate the vector space over the field of fractions K of ; but as by hypothesis this space is of dimension over K, the elements are linearly independent over K. It follows (Algebra, Chapter II, § 1, no. 13, Remark 1) that the are linearly independent over and hence form a basis of M.
Passing to the general case, there exists a surjective homomorphism from onto M. Consider the commutative diagram
where (resp. ) is the mapping (resp. ),
(resp. ) being the canonical mapping, and is the product of the . Then and, as is a local integral domain, it follows from the first part of the argument that each of the is an isomorphism; then so is . On the other hand, as is reduced, (, no. 6, Proposition 13), whence since is free (Algebra, Chapter II, , no. 7, Remark); as is the kernel of , this shows that is injective. It follows that is injective, hence is injective and, as is surjective by definition, this shows that is free.
Bourbaki puts the proof directly after the statement, so what is above is the statement and its proof together.