Proposition 10
Tag 074L, permanent. Cite it as [Bourbaki, Tag 074L].
Algebra, chapter VII, § 4. Finitely generated modules over a principal ideal domain
— If M is an A-module of finite length, then is (in general non-naturally) isomorphic to M, and the canonical map is an isomorphism. Using VII, p. 19, Th. 2 and II, p. 203, Cor. 1, we reduce to the case where is cyclic. Thus we may suppose that with . Note that any homomorphism is completely determined by the image under of the class of 1 mod , and this element must satisfy the relation ; conversely, for any such that , there exists a homomorphism such that . It follows that is isomorphic to , and since the homothety by is a bijection on K, we also have isomorphic to , which proves the first assertion. This proves that and are isomorphic, so have the same length ; on the other hand is injective, for if is such that the relation (for ) implies , then taking we have . It follows that the image is necessarily equal to .
Bourbaki puts the proof directly after the statement, so what is above is the statement and its proof together.