Finitely Generated Modules Over a PID
The Basic Idea

We know what it means to have a module over a (commutative, say) ring . We also know that if our ring is actually a field, our module becomes a vector space. But what happens if is "merely" a PID? Answer:
Recall from group theory that all finitely generated abelian groups can be classified up to isomorphism. So if you run into an abelian group of order 24, for instance, you know it's either going to have the same structure as or or or . There are no other possibilities. In much the same way, we can classify all finitely generated modules over a PID. In fact, the result for abelian groups is a special case of this! (Notice is a PID and every abelian group is a -module.)
Today we'll look at a proposition which, thanks to the language of exact sequences, is quite simple and from which the Fundamental Theorem of Finitely Generated Modules over a PID follows almost immediately. The information below is loosely based on section 12.1 of Dummit and Foote's Abstract Algebra as well as this article by K. Conrad.
From English to Math
In short, the proposition says that every finitely generated module over a PID is comprised of a part which is free (i.e. has a basis) and a part which is not free:

Before the proof, let's look at two corollaries:
- If , then is a torsion* module, i.e. . This is another way of saying is not free: a basis for simply does not exist. Why? No finite subset of can be linearly independent! To see this, note that means that for every , there is a nonzero such that . So in particular is a nontrivial relation.
- If (and ) then is a free module. This is clear since implies for some . And indeed is a free module with bases where (a 1 in the th spot and zeros elsewhere).
To prove the proposition, we simply need to show the following is a split short exact sequence:

where is inclusion and is the natural projection map. The exactness of the sequence is immediate: is, of course, injective, is always surjective, and is indeed the image of the inclusion map. To see that the sequence splits, it's enough to prove is free! Why? Because all free modules are projective and any time you have a projective module , the exact sequence , for any modules and always splits! (See proof here.) So let's show is free. The following three facts will do it for us.
Fact #1
is finitely generated.
- This follows from the fact that is finitely generated and is actually true in general: quotients of finitely generated modules are finitely generated. (Here's the proof.)
Fact #2
is torsion free.
- Intuitively this makes sense: we've gotten rid of all the torsion elements by modding them out, so of course what's left over should be torsion free! (Here's the proof.)
Fact #3
If is a PID and is any finitely generated torsion free -module, then is free.
- This is precisely the second corollary following our main proposition above! (So at least you can believe it's true.) Of course to avoid a circular reasoning, we can prove it independently.
Now make the simple observation that Facts #1 and #2 allow us to apply Fact #3 to the -module . So is indeed free and, by our comments above, the sequence splits. Further since is free it is isomorphic to for some . Thus

which completes the proof.
Before we close, let's quickly recall the Fundamental Theorem:

(Moreover, it can be shown that this expression is unique.) From our proposition above, it's clear that the Theorem is just one step away! One need only prove that

I won't include the proof here (it's about two pages long!), but you can find it in section 12.1, Theorem 4 of Dummit and Foote.
So what's the takeaway here?
Using the machinery of homological algebra (e.g. short exact sequences) we were able to see that every finitely generated module over a PID is a direct sum of a free part and a not-free part. (And that reflects the fact that every element in the module either has torsion or it doesn't!) From there one obtains the Fundamental Theorem which says you can identify a finitely generated module over a PID simply by its rank (that's what the integer in the theorem is called) and the invariant factors - the sequence of the 's with the divisibility property. Lastly, if we take our PID to be and our module to be an abelian group (i.e. a -module), we obtain the familiar Fundamental Theorem of Finitely Generated Abelian Groups as a special case.

Footnotes:
* Quick reminder: the torsion submodule of an -module is defined to be the set of all elements for which there exists a nonzero so that .