Definition 2
Tag 04BN, permanent. Cite it as [Bourbaki, Tag 04BN].
Commutative Algebra, chapter II, § 5. Finitely generated projective modules. Invertible fractional ideals
*Let be an integer . A projective -module is said to be of rank if it is finitely generated and for every prime ideal of .*
Clearly every finitely generated free -module is of rank in the sense of Definition 2, being equal to the dimension (or rank) of defined in Algebra, Chapter II, § 7, no. 2.
A projective module of rank 0 is zero (§ 3, no. 3, Corollary 2 to Theorem 1). If is not reduced to 0 and a projective -module is of rank , the integer is determined uniquely; it is then denoted by .
Bourbaki puts the proof directly after the statement, so what is above is the statement and its proof together.