Definition 1
Tag 073W, permanent. Cite it as [Bourbaki, Tag 073W].
Algebra, chapter VII, § 4. Finitely generated modules over a principal ideal domain
— In the notation and hypotheses of Th. 1, the ideals of are called the invariant factors of the submodule with respect to the module .
In the case where is either the ring of rational integers or the polynomial ring in one indeterminate over a field , there is a canonical way of choosing a generator for each ideal of : a positive integer in the case of , or a monic polynomial in the case of (VII, p. 5). In each of these cases, the canonical generator of the invariant factor is also called an invariant factor of with respect to , by abuse of language.
Bourbaki puts the proof directly after the statement, so what is above is the statement and its proof together.