The fundamental structure theorem for modules over a PID is a direct sum decomposition of each module into a free part and a torsion part. To understand both parts, it helps to look more closely at the ideas of linear (in)dependence and rank.
Definition of linear dependence
Let be a left -module. A set of elements is -linearly dependent if there exist (not all zero) such that
Rank bounds the number of linearly independent elements
Let be an integral domain and be a free -module of finite rank . Then any set of more than elements in is -linearly dependent.
Let be any subset of more than elements. Let be the field of fractions of . Since we have an -module isomorphism and an injective -module morphism (since is an integral domain), we also have an injective -module morphism . Then (the image of ) is a set of more than elements in the -dimensional -vector space and hence must be -linearly dependent. For any nontrivial -linear dependence relation among the elements in , clearing denominators yields a nontrivial -linear dependence relation among the elements in . Thus, the set is -linearly dependent.
Definition of rank of a module
Let be an integral domain and be an -module. The rank of is the maximum[1] number of -linearly independent elements in .
When is a free -module, this notion of rank agrees with our previous notion. When is a field, this notion of rank matches the dimension of an -module as a vector space.
For a general integral domain, however, an -module of rank need not have a "basis." Even if is torsion free, it still might not be a free -module. For example, you can show that when a ring is considered as an -module, an ideal is a free -module exactly when it is principal. So for example, in the ring the ideal is not principal and hence not a free -module. The ring is an integral domain, though, so is torsion free.
The structure of free modules over a PID
Let be a principal ideal domain and be a free -module of finite rank . For every submodule of :
is free of rank ; and
there exists a basis for and nonzero elements such that is a basis for and[2]
Let's walk through the proof of this one. If is the trivial submodule then its rank is 0 and its basis is the empty set, so there's nothing to prove. Now suppose is nontrivial. We'll break this long proof until manageable subsections.
The general idea
The general idea of the proof is to create a direct sum decomposition that also induces a direct sum decomposition with the prescribed properties. One of those properties (the divisibility condition on the ) tells us that should be the "smallest" element among the ; i.e., correspond to the largest ideal among the ideals . So that's where we begin: by looking for a projection from for which the image of is the largest possible ideal of (obtainable from ).
We begin by fixing a temporary basis for . This is equivalent to fixing an -module isomorphism . This also allows us to define the -module projection morphisms . Using these projections, each element can be written uniquely as
We will use this later in the proof.
Finding the element
Note that for every -module morphism the image of is a submodule of , i.e., an ideal of . Since is a PID this ideal is principal, say for some . Now consider the collection of all such principal ideals in that are also nontrivial:
We first note that this collection is nonempty: since is not the trivial submodule, for at least one of the projection morphisms the image must be nontrivial, otherwise we would have for all
Since is Noetherian the collection has at least one maximal element. In other words there is an -module morphism so that the principal ideal is not properly contained in any other element of .[3] Let and be any element with . Note that by the definition of .
Constructing the element
Our next goal is to construct an element so that . Intuitively, we already have and so it would be nice to simply take . We would then have . However, there is no guarantee that the element is actually invertible. We only know that it is nonzero and that is a PID (and not necessarily a field). So we need to be a little bit tricky.
We first show divides for every -module morphism . To see this, fix some -module morphism and let be the ideal generated by and . Since is a PID this ideal is principal, so for some . We can then write for some . But now consider the -module morphism defined by . By construction we have , so that and hence . But we also have so by the maximality of we must have equality: . This prove and hence ; i.e., divides .
We now apply the above property to the projection morphism , and so we see that divides for each . Write for some and define
By construction we have
We therefore have that and hence (since is nonzero and is an integral domain)
Verifying can be part of a basis for
We will now verify that can be taken as one element in a basis for and that can be taken as one element in a basis for . First, let be an arbitrary element and write
Note that
and so is in the kernel of . This shows that we at least have . To see that this is a direct sum decomposition, suppose for some . Then
Thus, we do indeed have and hence we have a direct sum decomposition . This implies that can indeed be taken as one element in a basis for .
Verifying can be part of a basis for
Observe that for every the element is divisible by (since generates the ideal ). So given any we can write for some . Then we can write
By the same computation as above, the second term in the above sum is an element of that is in the kernel of :
We therefore have , and once again the trivial intersection between those two submodules proves this is a direct sum decomposition, . This implies can indeed be taken as one element in a basis for .
Proving is free of rank no more than
We now prove is free of rank , by induction on . (Recall that the rank of is defined as the maximum number of linearly independent elements in .)
If , then for every the set is -linearly dependent; i.e., for some nonzero . But is a submodule of the free -module , which is torsion free, so we must have . This implies is the trivial submodule, a contradiction to our running assumption that is nontrivial.
Now assume that the rank of is and that all submodules of of rank less than are free. In our direct sum decomposition , the submodule has rank and hence by our induction hypothesis is free. By the direct sum decomposition, adjoining to any basis for gives a basis for , so is also free (of rank ).
Proving property (2) of the proposition
Finally, we prove property (2) of the proposition by induction on the rank of . Applying property (1) to the submodule shows that this submodule is free, and because of the direct sum decomposition