Elementary divisor theorem

Over a PID, a finitely generated module decomposes into primary cyclic summands.
Elementary divisor theorem

Elementary divisor theorem: Let RR be a and let MM be a finitely generated RR-module. Then there exist r0r\ge 0 and a finite multiset of prime powers {piei}R\{p_i^{e_i}\}\subset R such that

M    Rr    iR/(piei), M \;\cong\; R^{\,r}\;\oplus\;\bigoplus_i R/(p_i^{e_i}),

where each pip_i is a prime element of RR. The multiset of prime power factors is unique up to associates and reordering.

This is equivalent to the invariant factor decomposition in the by factoring each invariant factor djd_j into prime powers and regrouping into primary components. For R=ZR=\mathbb Z, it recovers the primary decomposition in the