The quote above pretty much says it all. Have you ever wondered what would happen if you had a vector space , but instead of a field of scalars you had a ring of scalars[1]? If so, you just stumbled upon the definition of a module.
Definition of module
Let be a ring. A left -module (or left module over ) is an abelian group together with a left action of on that satisfies the following compatibility conditions:
for all and
for all and
for all and
for all
Analogously, a right -module (or right module over ) is an abelian group together with a right action of on that satisfies the following compatibility conditions:
for all and
for all and
for all and
for all
You could reasonably complain about the the use of the word "action" in the above definition, since it hasn't been defined here and you possibly only encountered it previously in the context of a group acting on a set. However, it is being used here very much in the same spirit as in group theory, in that it is a set map that satisfies the expected compatibility conditions between the algebraic structures on and (detailed explicitly above). With a bit more category theory under our belts, we could reasonably consider defining the general notion of an action of an object of one category on an object of another. Something to keep in the back of our minds...
Modules over commutative rings
Suppose is a left module over a commutative ring . For clarity, let's denote the left action of a ring element on a module element by . Now define a right action of on by setting . You can quickly check that this does indeed define a right action of on , giving (the underlying abelian group of ) the structure of a right -module. The only property that requires the commutativity of is the "associativity" of the action. Indeed, on the one hand we have
while on the other hand we have
Thus, we need the original left -action on to satisfy for every and . Fortunately this is true when is assumed to be commutative.[2]
Modules over commutative rings
When is a commutative ring, there is no real distinction between left and right -modules. So, we simply refer to both as -modules. More precisely, the categories of left -modules and right -modules are equivalent (isomorphic, even).
For a general (possibly noncommutative) ring, the phrase "-module" is usually meant to mean "left -module."
The action of zero
It will be occasionally useful to have the following simple result:
Zero acts as zero
If is an -module, then for every and for every .
Here's a quick proof, directly analogous to the similar statement for vector spaces (a special case of modules!). For every we have . By additive cancellation (in the abelian group ) we then have . Similarly, , and additive cancellation once again gives .
Examples
Given the common quote about modules, our first example of a module really must be:
Vector Spaces
If is a field then -modules are exactly the same as -vector spaces. What do we really mean when we say "are exactly the same as"? In this case we mean "literally the same, up to naming conventions". A -vector space is usually defined to be a set together with a binary operation and a map satisfying a list of conditions. The first of those conditions are exactly the conditions for to be an abelian group; the rest are the same as our conditions for to be a -module. So the only differences are that we call an -vector space (instead of an -module) and call the field of scalars (instead of simply the ring acting on ).
Summary
Modules over fields are vector spaces. More precisely, the categories of -modules and -vector spaces are equivalent (isomorphic, even).
Rings as modules
Every ring can be given the structure of a left module over itself, using the action of left multiplication on itself. In this context, the submodules of (when considered as a left -module) are exactly the left ideals of (when considered as a ring).
Once again, we should ask what we mean when we say "are exactly the left ideals." Here we mean that there is a (natural) bijection between the set of left ideals of the ring and the set of submodules of .
In theory, one could consider -module structures on defined by other (left) actions of on itself, but in practice I have never seen that done. Perhaps it is because of the inherent notational issues, as you would need to be very careful to distinguish between when the operation is the internal multiplication of the ring and when it is the ring action; perhaps one could write for the former and for the latter? If I come across a discussion or example of this in action (pun intended), I'll be sure to link it here.
Summary
Rings can be considered as modules over themselves.
(This statement can be made categorically precise, but it requires some setup.)
Abelian groups are -modules
It is simple to show[3] that -modules are "exactly the same" as abelian groups.
Summary
Abelian groups are the same as -modules. More precisely, the categories of abelian groups and (left) -modules are equivalent (isomorphic, even).
Same group, different modules
A given abelian group can even have different module structures, even for the same ring . Being specific about the type of module (i.e., the ring doing the acting) can be important when talking about module morphisms.
For example, the field can be viewed as an -module, a -module, or a -module. (As usual, what we really mean is that the abelian group consisting of the real numbers under addition can be endowed with the structure of a module over various rings.)
Summary
A given abelian group can have many different module structures, even for the same ring . In other words, the forgetful functor is not injective on objects.
Vector spaces with linear endomorphisms
Suppose is a field. If is an -vector space and is a -linear transformation, then we can define an -module structure on by for every and . It is straightforward to show[4] the converse is also true, and that we have a bijection between the collection of -modules and pairs of consisting of a -vector space and a -linear endomorphism of that vector space. One can then also show that under this bijection the -submodules correspond to -stable subspaces. We'll explore this more fully later.
Summary
When is a field, modules over the polynomial ring are (equivalent to) -vector spaces together with a fixed linear endomorphism.
Passing to quotient rings
Suppose is an -module and is a two-sided ideal of that annihilates, i.e., for all and . Then we can define an -module structure on in the obvious way: for and . (You should verify that the "annihilation" condition is needed to ensure this action is well defined.)
For example, if is a finite abelian group of order , then for every , i.e., the ideal annihilates. We can therefore also view as a -module.
The zero module
For every ring the trivial group is also an -module (with trivial action of ). This module is often denoted simply . It is the zero object in the category of left -modules, i.e., it is both an initial and a terminal object in the category. For each -module , there is a unique module morphism (sending the element to ) as well as a unique module morphism (sending every element to ). A module morphism is trivial (i.e., for all ) exactly when it factors through the 0 module.