# Structure theorem for finitely generated modules over a principal ideal domain

In mathematics, in the field of abstract algebra, the structure theorem for finitely generated modules over a principal ideal domain is a generalization of the fundamental theorem of finitely generated abelian groups and roughly states that finitely generated modules can be uniquely decomposed in much the same way that integers have a prime factorization. The result provides a simple framework to understand various canonical form results for square matrices over fields.

## Statement

When a vector space over a field F has a finite generating set, then one may extract from it a basis consisting of a finite number n of vectors, and the space is therefore isomorphic to Fn. The corresponding statement with the F generalized to a principal ideal domain R is no longer true, as a finitely generated module over R need not have any basis. However such a module is still isomorphic to a quotient of some module Rn with n finite (to see this it suffices to construct the morphism that sends the elements of the canonical basis Rn to the generators of the module, and take the quotient by its kernel.) By changing the choice of generating set, one can in fact describe the module as the quotient of some Rn by a particularly simple submodule, and this is the structure theorem.

The structure theorem for finitely generated modules over a principal ideal domain usually appears in the following two forms.

### Invariant factor decomposition

For every finitely generated module M over a principal ideal domain R, there is a unique decreasing sequence of proper ideals $(d_1)\supseteq(d_2)\supseteq\cdots\supseteq(d_n)$ such that M isomorphic to the sum of cyclic modules:

$M\cong\bigoplus_i R/(d_i) = R/(d_1)\oplus R/(d_2)\oplus\cdots\oplus R/(d_n).$

The generators $d_i$ of the ideals are unique up to multiplication by a unit, and are called invariant factors of M. Since the ideals should be proper, these factors must not themselves be invertible (this avoids trivial factors in the sum), and the inclusion of the ideals means one has divisibility $d_1\mid d_2\mid\cdots\mid d_n$. The free part is visible in the part of the decomposition corresponding to factors $d_i = 0$. Such factors, if any, occur at the end of the sequence.

While the direct sum is uniquely determined by M, the isomorphism giving the decomposition itself is not unique in general. For instance if R is actually a field, then all occurring ideals must be zero, and one obtains the decomposition of a finite dimensional vector space into a direct sum of one-dimensional subspaces; the number of such factors is fixed, namely the dimension of the space, but there is in a lot of freedom for choosing the subspaces themselves (if dim M > 1).

The nonzero $d_i$ elements, together with the number of $d_i$ which are zero, form a complete set of invariants for the module. Explicitly, this means that any two modules sharing the same set of invariants are necessarily isomorphic.

Some prefer to write the free part of M separately:

$R^f \oplus \bigoplus_i R/(d_i) = R^f \oplus R/(d_1)\oplus R/(d_2)\oplus\cdots\oplus R/(d_{n-f})$

where the visible $d_i$ are nonzero, and f is the number of $d_i$'s in the original sequence which are 0.

### Primary decomposition

Every finitely generated module M over a principal ideal domain R is isomorphic to one of the form
$\bigoplus_i R/(q_i)$
where $(q_i) \neq R$ and the $(q_i)$ are primary ideals. The $q_i$ are unique (up to multiplication by units).

The elements $q_i$ are called the elementary divisors of M. In a PID, nonzero primary ideals are powers of primes, and so $(q_i)=(p_i^{r_i}) = (p_i)^{r_i}$. When $q_i=0$, the resulting indecomposable module is $R$ itself, and this is inside the part of M that is a free module.

The summands $R/(q_i)$ are indecomposable, so the primary decomposition is a decomposition into indecomposable modules, and thus every finitely generated module over a PID is a completely decomposable module. Since PID's are Noetherian rings, this can be seen as a manifestation of the Lasker-Noether theorem.

As before, it is possible to write the free part (where $q_i=0$) separately and express M as:

$R^f \oplus(\bigoplus_i R/(q_i))$

where the visible $q_i$ are nonzero.

## Proofs

One proof proceeds as follows:

This yields the invariant factor decomposition, and the diagonal entries of Smith normal form are the invariant factors.

Another outline of a proof:

• Denote by tM the torsion submodule of M. Then M/tM is a finitely generated torsion free module, and such a module over a commutative PID is a free module of finite rank, so it is isomorphic to $R^n$ for a positive integer n. This free module can be embedded as a submodule F of M, such that the embedding splits (is a right inverse of) the projection map; it suffices to lift each of the generators of F into M. As a consequence $M= tM\oplus F$.
• For a prime p in R we can then speak of $N_p= \{m\in tM\mid \exists i, mp^i=0\}$ for each prime p. This is a submodule of tM, and it turns out that each Np is a direct sum of cyclic modules, and that tM is a direct sum of Np for a finite number of distinct primes p.
• Putting the previous two steps together, M is decomposed into cyclic modules of the indicated types.

## Corollaries

This includes the classification of finite-dimensional vector spaces as a special case, where $R = K$. Since fields have no non-trivial ideals, every finitely generated vector space is free.

Taking $R=\mathbb{Z}$ yields the fundamental theorem of finitely generated abelian groups.

Let T be a linear operator on a finite-dimensional vector space V over K. Taking $R=K[T]$, the algebra of polynomials with coefficients in K evaluated at T, yields structure information about T. V can be viewed as a finitely generated module over $K[T]$. The last invariant factor is the minimal polynomial, and the product of invariant factors is the characteristic polynomial. Combined with a standard matrix form for $K[T]/p(T)$, this yields various canonical forms:

## Uniqueness

While the invariants (rank, invariant factors, and elementary divisors) are unique, the isomorphism between M and its canonical form is not unique, and does not even preserve the direct sum decomposition. This follows because there are non-trivial automorphisms of these modules which do not preserve the summands.

However, one has a canonical torsion submodule T, and similar canonical submodules corresponding to each (distinct) invariant factor, which yield a canonical sequence:

$0 < \cdots < T < M.$

Compare composition series in Jordan–Hölder theorem.

For instance, if $M \approx \mathbf{Z} \oplus \mathbf{Z}/2$, and $(1,0), (0,1)$ is one basis, then $(1,1), (0,1)$ is another basis, and the change of basis matrix $\begin{bmatrix}1 & 1 \\0 & 1\end{bmatrix}$ does not preserve the summand $\mathbf{Z}$. However, it does preserve the $\mathbf{Z}/2$ summand, as this is the torsion submodule (equivalently here, the 2-torsion elements).

## Generalizations

### Groups

The Jordan–Hölder theorem is a more general result for finite groups (or modules over an arbitrary ring). In this generality, one obtains a composition series, rather than a direct sum.

The Krull–Schmidt theorem and related results give conditions under which a module has something like a primary decomposition, a decomposition as a direct sum of indecomposable modules in which the summands are unique up to order.

### Primary decomposition

The primary decomposition generalizes to finitely generated modules over commutative Noetherian rings, and this result is called the Lasker–Noether theorem.

### Indecomposable modules

By contrast, unique decomposition into indecomposable submodules does not generalize as far, and the failure is measured by the ideal class group, which vanishes for PIDs.

For rings that are not principal ideal domains, unique decomposition need not even hold for modules over a ring generated by two elements. For the ring R = Z[√−5], both the module R and its submodule M generated by 2 and 1 + √−5 are indecomposable. While R is not isomorphic to M, R ⊕ R is isomorphic to M ⊕ M; thus the images of the M summands give indecomposable submodules L1, L2 < R ⊕ R which give a different decomposition of R ⊕ R. The failure of uniquely factorizing R ⊕ R into a direct sum of indecomposable modules is directly related (via the ideal class group) to the failure of the unique factorization of elements of R into irreducible elements of R.

### Non-finitely generated modules

Similarly for modules that are not finitely generated, one cannot expect such a nice decomposition: even the number of factors may vary. There are Z-submodules of Q4 which are simultaneously direct sums of two indecomposable modules and direct sums of three indecomposable modules, showing the analogue of the primary decomposition cannot hold for infinitely generated modules, even over the integers, Z.

Another issue that arises with non-finitely generated modules is that there are torsion-free modules which are not free. For instance, consider the ring Z of integers. Then Q is a torsion-free Z-module which is not free. Another classical example of such a module is the Baer–Specker group, the group of all sequences of integers under termwise addition. In general, the question of which infinitely generated torsion-free abelian groups are free depends on which large cardinals exist. A consequence is that any structure theorem for infinitely generated modules depends on a choice of set theory axioms and may be invalid under a different choice.