Structure theorem for finitely generated modules over a PID
Structure theorem (f.g. modules over a PID): Let be a principal ideal domain and let be a finitely generated module over . Then there exist an integer and nonzero elements with such that
a decomposition as a direct sum of a free part and cyclic torsion factors. The integer and the invariant factors are unique up to multiplication by units in . In particular, the torsion submodule of is a torsion module and the free summand is a free module of rank .
This theorem is the module-theoretic engine behind the classification of finitely generated abelian groups (the case ); see classification of finitely generated abelian groups . It is closely tied to Smith normal form , and it admits an equivalent primary decomposition form (see the elementary divisor theorem ).
Proof sketch: Present as the cokernel of a homomorphism , represented by a matrix over . Apply Smith normal form to diagonalize that matrix up to invertible row/column operations; the resulting diagonal entries yield the cyclic summands , and the number of zero diagonal entries yields the free rank .