Proposition 9
Tag 074F, permanent. Cite it as [Bourbaki, Tag 074F].
Algebra, chapter VII, § 4. Finitely generated modules over a principal ideal domain
— Let be a principal ideal domain, let be a system of representatives of irreducible elements of and let be a finitely generated -module. Then there exist positive integers and (), uniquely determined by and zero except for finitely many of them, such that is isomorphic to the direct sum of and the ().
The existence of the integers and () follows from Prop. 8. The integer is uniquely determined: it is the rank of the free module which is the quotient of by its torsion submodule. Finally, the -primary component of is isomorphic to the direct sum of the ; since the family of ideals () is totally ordered by inclusion, the uniqueness of the follows from the Cor. to Prop. 2 of VII, p. 16.
Bourbaki puts the proof directly after the statement, so what is above is the statement and its proof together.