Proposition 5
Tag 04BS, permanent. Cite it as [Bourbaki, Tag 04BS].
Commutative Algebra, chapter II, § 5. Finitely generated projective modules. Invertible fractional ideals
Let A be a semi-local ring and P a finitely generated projective A-module. If the rank of P is defined, P is a free A-module.
Suppose first that A is isomorphic to a product of fields (). The are then identified with the minimal ideals (Algebra, Chapter VIII, § 3, no. 1) of A and, for all , the sum of the K, of index is a maximal ideal of A, the () being the only prime ideals of A. Every finitely generated A-module P is therefore the direct sum of its isotypical components (), being isomorphic to a direct sum of a finite number of A-modules isomorphic to K, (Algebra, Chapter VIII, § 5, no. 1, Proposition 1 and no. 3, Proposition 11); the ring is identified with K, and annihilates the of index , hence ; if all the are equal to the same number , P is isomorphic to , whence the proposition in this case. In the general case, let be the Jacobson radical of A and ; as B is a product of fields, the projective B-module is free by the remarks preceding Proposition 4. Also P is a flat A-module and the proposition then follows from § 3, no. 2, Proposition 5.
Bourbaki puts the proof directly after the statement, so what is above is the statement and its proof together.