Smith normal form theorem
Smith normal form theorem: Let be a PID and let be an matrix with entries in . Then there exist invertible matrices and such that
where for and . The are determined uniquely up to multiplication by units; they are the Smith invariants (see Smith normal form invariants ).
Interpreting as the matrix of a homomorphism between free modules (compare matrix representation ), Smith normal form yields the invariant factor decomposition in the structure theorem for finitely generated modules over a PID by identifying the cokernel as a direct sum of cyclic modules .
Proof sketch: Use elementary row/column operations corresponding to multiplication by invertible matrices to perform a Euclidean-algorithm-style reduction on entries, producing a diagonal form with each diagonal entry dividing the next. The PID property ensures principal generators for ideals arising during the reduction.