Free modules

Motivation


You often hear it said that a "free object" is an object with no other "relations" beyond those required of every object of that type, e.g., a "free group" is a group with no relations beyond those required of every group. But what does that actually mean, and how do you formalize it?

As a first attempt, we could start with a set X and then define the "free object on X" as the "smallest" or "simplest" object F(X) one can create (of the desired type) beginning from only the set X. But how do we formalize the notions of "smallest" or "simplest"? We might reasonably suggest that the definition be such that F(X) has a desirable universal property.

For example, the free group F(X) should be the group such that group morphisms F(X)→G are in natural bijection with set maps X→U(G), where U(G) is the underlying set of elements of G; i.e., where U is the forgetful functor Grp→Set. In this way, the set X would act like a "basis" for the group F(X), in that maps from F(X) are entirely determined by the images of the "basis" elements X. The "free" adjective could then be interpreted as the fact that there are no conditions on the maps from X to U(G); they are simply set maps. You can map the elements of X "freely" to any elements you'd like in U(G), and to every such choice there is a unique corresponding group morphism from the free object F(X) to G. So it's not so much that F(X) is "free" from "relations," but rather that the basis elements in F(X) can be freely mapped to any elements of your chosen target group.

Let's try following this idea for modules, but this time filling in all of the details.

The goal


Let R be a fixed ring and U:R-Mod→Set be the forgetful functor from R-modules to sets. We will show there is a functor F:Set→R-Mod that associates to each set X a "minimal" R-module F(X) with a "free" property as described above. Specifically, to every R-module morphism F(A)→M there will correspond a unique set map A→U(M), and conversely. In other words, for every R-module M and set X there will be a natural bijection of sets

Ī•X,M:HomR-Mod(F(X),M)→âˆŧHomSet(X,U(M)).

Put more simply still, our functor F will be a left adjoint to the forgetful functor U.

Before we construct the functor F, let's take a minute to recall what it means for Ī•X,M to be natural in X and M. Naturality "in M" will mean that for every R-module morphism f:M→N we have a commutative diagram

Similarly, naturality "in X" will mean that for every set map g:X→Y we have a commutative diagram[1]

This naturality condition will have many consequences for our construction, which we'll investigate later.

Anticipating the construction


Suppose for the moment there exists a functor F:Set→R-Mod left adjoint to the forgetful functor U:R-Mod→Set. Let's consider some special sets in Set, namely the initial object (i.e., the empty set) and the terminal object (i.e., the singleton set).

Let's first look at the universal property F(∅) should enjoy, namely that there is a natural bijection

Ī•âˆ…,M:HomR-Mod(F(∅),M)→HomSet(∅,U(M)).

The empty set is the initial object in Set, so there is a unique set map (the empty map) from it to any other set. In other words, the set HomSet(∅,U(M)) is a singleton set. Our bijection above then implies HomR-Mod(F(∅),M) is a singleton set, for every R-module M. This exactly says that F(∅) is the initial object in the category R-Mod, which we've already seen is the zero module. Thus, if the functor F exists, then it must satisfy F(∅)≃0.

Now let's consider a singleton set X={x}. The universal property for F({x}) is that we have a natural set bijection

Ī•{x},M:HomR-Mod(F({x}),M)→HomSet({x},U(M))≃U(M)

This type of property might look familiar. We've seen that HomR-Mod(R,M)≃M as an R-module (at least for commutative rings; for general rings there's at least an isomorphism of abelian groups). This is strong evidence that we likely must have F({x})≃R.

Finally, suppose X is a general set. We will eventually see that left adjoints commute with colimits; e.g., disjoint unions in Set, direct sums in R-Mod, etc. Once we know this, we can immediately deduce that for any set we must have

F(X)≃F(⨆x∈X{x})≃⨁x∈XF({x})≃⨁x∈XR

Based on this quick analysis, we can now predict with decent confidence that the only possible definition of F(X) must be ⨁x∈XR. So let's do that and make sure it all works out.

The construction of F(X)


Inspired by the above analysis, for each set X let's define F(X)=⨁x∈XR, which we will call the free R-module on X.

Following our previous notes on direct sums of modules, this means that the elements of F(X) are the set maps with the property that for all but finitely many x∈X. Of course, as with all direct sums, it is common to instead think of F(X) as "formal finite -linear combinations of elements of X"; i.e., expressions of the form ∑x∈Xrxx, where rx=0R for all but finitely many x∈X.

Note that the R-module structure on F(X) is as described for general direct sums. When we think of the elements of F(X) as certain set maps f:X→U(R), the additive operation is "addition of outputs" and the R-action is "scaling outputs"; when we think of the elements of F(X) as formal sums, the additive operation is "addition of coefficients" and the R-action is "scaling coefficients."

What is the arrow function of F? For each set map g:X→Y, the corresponding module morphism F(g):F(X)→F(Y) is defined as follows. If we identify the elements of the free modules as finite formal sums, then F(g) is given by

∑x∈Xrxxâ†Ļ∑y∈Y(∑x∈g−1(y)rx)y.

In other words, we use the set map g to send each x to an element in y, and then combine coefficients of "like terms".

If we view the elements of F(X) as certain set maps f:X→U(R), then F(g) maps each such set map f to the set map f~:Y→U(R) defined by

f~(y)=∑x∈g−1(y)rx.

We leave it to the diligent reader to verify that we have now indeed defined a bona fide functor F:Set→R-Mod.

One more observation (to be elaborated upon later): there is a "copy"[2] of the set X inside of the free module F(X), obtained by identifying each element x0∈X with the R-linear combination that has coefficient 1R for x0, and coefficient 0R for all other x∈X. (If we view the elements of F(X) as certain set maps f:X→U(R), then we are mapping each element x0∈X to the "characteristic function fx0 defined by fx0(x0)=1R and fx0(x)=0R for all x≠x0.) These specific linear combinations are the analogue in module theory of the standard basis vectors in linear algebra.

Verifying adjointness


If we're being careful, we should verify that our functor is indeed left adjoint to the forgetful functor, and that means explicitly describing the required natural bijections. Let's content ourselves with simply outlining how that goes.

First suppose X is any set, M is any R-module and g:F(X)→M is a module morphism. By using the identification above of a copy of X in F(X), we then also have a set map X→U(M). More specifically, for each x0∈X let fx0∈F(X) be the "standard basis element" corresponding to x0. We can then send x0 to the image of fx0 under the given morphism g. This is how we construct our set map

Ī•X,M:HomR(F(X),M)→HomSet(X,U(M)).

We can verify this set map is bijective by constructing the inverse set map. Suppose now g:X→U(M) is any set map. We can then define a map on F(X) by applying g to the "basis" elements and "using linearity." More precisely, in the formal sum notation, suppose v=∑x∈Xrxx is an element in the free module F(X). Define a map ΈX,M(g):F(X)→M by sending v to the element in M given by the (actual) sum ∑x∈Xrxg(x).

Challenge

Can you verify our two set maps Ī•X,M and ΈX,M are mutual inverses, and that Ī•X,M satisfies the naturality condition outlined above?

Free modules in general


Definition of free

Suppose M is an R-module. We say M is free if it is isomorphic (as an R-module) to F(X) for some finite set X. In that case we can also say M is free on X.

In terms of elements, this is just like a basis for a vector space. If X is a subset of the elements of M, then M is free on X exactly when the set of elements of X generates M and are R-linearly independent in M; the first condition guarantees that every m∈M can be written as m=∑x∈Xrxx for some rx∈X, while the second condition guarantees that such an expression is unique.

For a more categorical approach, observe the following about subsets X of elements of M:

  1. A subset X⊆U(M) generates M exactly when the corresponding module morphism Ī€:F(X)→M is surjective; and
  2. A subset X⊆U(M) is "linearly independent in M" exactly when the corresponding module morphism Ī€:F(X)→M is injective. We can take this as the definition of linear independence, and declare the relations on X to be the elements of the submodule ker⁥(Ī€)⊆F(X).

Suggested next note


Examples of free modules


  1. If you're wondering why the vertical arrows in the second diagram are flipped, it's because a certain functor is "contravariant" (or equivalently, we need to use an "opposite" category as part of the formal formulation of what's going on). â†Šī¸Ž

  2. More precisely, there is an injective set map from X to the underlying set of elements of F(X), i.e., there is a set map X→U(F(X)). This is the unit of the adjunction. â†Šī¸Ž