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

Proof sketch (optional): Start from the invariant factor decomposition and use unique factorization in a PID to write each djd_j as a product of prime powers. Show that R/(ab)R/(a)R/(b)R/(ab)\cong R/(a)\oplus R/(b) when (a,b)=1(a,b)=1, then iterate and regroup by primes.