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 and then define the "free object on " as the "smallest" or "simplest" object one can create (of the desired type) beginning from only the set . But how do we formalize the notions of "smallest" or "simplest"? We might reasonably suggest that the definition be such that has a desirable universal property.
For example, the free group should be the group such that group morphisms are in natural bijection with set maps , where is the underlying set of elements of ; i.e., where is the forgetful functor . In this way, the set would act like a "basis" for the group , in that maps from are entirely determined by the images of the "basis" elements . The "free" adjective could then be interpreted as the fact that there are no conditions on the maps from to ; they are simply set maps. You can map the elements of "freely" to any elements you'd like in , and to every such choice there is a unique corresponding group morphism from the free object to . So it's not so much that is "free" from "relations," but rather that the basis elements in 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 be a fixed ring and be the forgetful functor from -modules to sets. We will show there is a functor that associates to each set a "minimal" -module with a "free" property as described above. Specifically, to every -module morphism there will correspond a unique set map , and conversely. In other words, for every -module and set there will be a natural bijection of sets
Put more simply still, our functor will be a left adjoint to the forgetful functor .
Before we construct the functor , let's take a minute to recall what it means for to be natural in and . Naturality "in " will mean that for every -module morphism we have a commutative diagram
Similarly, naturality "in " will mean that for every set map 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 left adjoint to the forgetful functor . Let's consider some special sets in , 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 should enjoy, namely that there is a natural bijection
The empty set is the initial object in , so there is a unique set map (the empty map) from it to any other set. In other words, the set is a singleton set. Our bijection above then implies is a singleton set, for every -module . This exactly says that is the initial object in the category , which we've already seen is the zero module. Thus, if the functor exists, then it must satisfy .
Now let's consider a singleton set . The universal property for is that we have a natural set bijection
This type of property might look familiar. We've seen that as an -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 .
Finally, suppose is a general set. We will eventually see that left adjoints commute with colimits; e.g., disjoint unions in , direct sums in , etc. Once we know this, we can immediately deduce that for any set we must have
Based on this quick analysis, we can now predict with decent confidence that the only possible definition of must be . So let's do that and make sure it all works out.
The construction of
Inspired by the above analysis, for each set let's define , which we will call the free -module on .
Following our previous notes on direct sums of modules, this means that the elements of are the set maps with the property that for all but finitely many . Of course, as with all direct sums, it is common to instead think of as "formal finite -linear combinations of elements of "; i.e., expressions of the form , where for all but finitely many .
Note that the -module structure on is as described for general direct sums. When we think of the elements of as certain set maps , the additive operation is "addition of outputs" and the -action is "scaling outputs"; when we think of the elements of as formal sums, the additive operation is "addition of coefficients" and the -action is "scaling coefficients."
What is the arrow function of ? For each set map , the corresponding module morphism is defined as follows. If we identify the elements of the free modules as finite formal sums, then is given by
In other words, we use the set map to send each to an element in , and then combine coefficients of "like terms".
If we view the elements of as certain set maps , then maps each such set map to the set map defined by
We leave it to the diligent reader to verify that we have now indeed defined a bona fide functor .
One more observation (to be elaborated upon later): there is a "copy"[2] of the set inside of the free module , obtained by identifying each element with the -linear combination that has coefficient for , and coefficient for all other . (If we view the elements of as certain set maps , then we are mapping each element to the "characteristic function defined by and for all .) 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 is any set, is any -module and is a module morphism. By using the identification above of a copy of in , we then also have a set map . More specifically, for each let be the "standard basis element" corresponding to . We can then send to the image of under the given morphism . This is how we construct our set map
We can verify this set map is bijective by constructing the inverse set map. Suppose now is any set map. We can then define a map on by applying to the "basis" elements and "using linearity." More precisely, in the formal sum notation, suppose is an element in the free module . Define a map by sending to the element in given by the (actual) sum .
Challenge
Can you verify our two set maps and are mutual inverses, and that satisfies the naturality condition outlined above?
Free modules in general
Definition of free
Suppose is an -module. We say is free if it is isomorphic (as an -module) to for some finite set . In that case we can also say is free on .
In terms of elements, this is just like a basis for a vector space. If is a subset of the elements of , then is free on exactly when the set of elements of generates and are -linearly independent in ; the first condition guarantees that every can be written as for some , while the second condition guarantees that such an expression is unique.
For a more categorical approach, observe the following about subsets of elements of :
A subset generates exactly when the corresponding module morphism is surjective; and
A subset is "linearly independent in " exactly when the corresponding module morphism is injective. We can take this as the definition of linear independence, and declare the relations on to be the elements of the submodule .
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). âŠī¸
More precisely, there is an injective set map from to the underlying set of elements of , i.e., there is a set map . This is the unit of the adjunction. âŠī¸