The quote above pretty much says it all. Have you ever wondered what would happen if you had a vector space , but instead of the scalars coming from a field they came more generally from a ring[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
Consider the case of a commutative ring and suppose is a left -module. For clarity, 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 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.
For a general (possibly noncommutative) ring, the phrase "-module" is usually meant to mean "left -module."
A small note about 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 any 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". An -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 an -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
Rings as modules
Every ring is a left -module, 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 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 notational issues, as you would need to be very careful to distinguish between when the operation is the internal multiplication of the ring, as opposed to 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 are modules over themselves.
Abelian groups are -modules
It is simple to show that -modules are "exactly the same" as abelian groups.
Summary
Abelian groups are the same as -modules.
Same group, different modules
For example, the field can be viewed as -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 have the structure of a module over various rings.)
A given abelian group can even have different module structures 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.
Summary
A given abelian group can have many different module structures.
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 the converse is also true, and that we have a bijection between the collection of -modules and pairs of -vector spaces with linear endomorphisms. One can then also show that under this bijection the -submodules correspond to -stable subspaces. We'll explore this more fully later.
Summary
-modules are -vector spaces together with a fixed linear endomorphism.
Passing to quotient rings
Suppose is an -module and is a two-sided ideal of . Suppose annihilates, i.e., for all and . Then we can define an -module structure on in the obvious way: for and .
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 both a unique module morphism (sending the element to ) and 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.