Categories with Zero Morphisms
Todd Trimble cleared up the confusion with pointed sets and zero morphisms. The problem is that my sources were wrong to say that the monoidal structure on is the categorical product. First, here’s the answer in Todd’s own words:
The zero morphism statement is fine as stated. It just
follows from the fact that the standard monoidal product
on pointed sets is smash product.FWIW, here are details. Recall that the smash product
of two pointed sets A, B (with basepoints 0_A, 0_B) isA /\ B = A x B / ({0_A} x B) \/ (A x {0_B})
where the indicated quotient means the denominator is
identified with a point (and we define the basepoint of
A /\ B to be this point).If C is a category enriched in pointed sets, and a and b
are objects of C, we define the zero morphism 0_ab
from a to be to be to be the basepoint of hom(a, b).
Notice that compositionhom(b, c) /\ hom(a, b) –> hom(a, c)
takes a pair (g, 0_ab) [similarly, a pair (0_bc, f)] to 0_ac,
by definition of smash product. Hence, composition of
a zero morphism with another morphism, on either side,
yields a zero morphism.
Truth be told I’d been thinking about these “smash products”, but they aren’t the regular categorical product I’d been assured worked.
Okay, let’s go over this a bit. Given pointed sets and
we define their smash product
as follows. First we take everything in
other than
and call it
. Similarly, we say
is everything in
except the point
. We take the product
and then throw in the new point
, which we use as the new special point.
Another way to look at it is to take the regular product , but to “smash” it down a bit. We say that every pair of the form
or
is “really the same”, and smash all of them together into one special point.
The identity object for this monoidal structure on is the set
, as you should check. Also verify that the smash product is associative (up to isomorphism, naturally).
Now a -category
has a special morphism in each hom-set, which we’ll (leadingly) call
. If we take any other arrow
, together they form the pair
. But since
is the special point of that set, this pair (and any other pair of the form
or
is the marked point of the smash product. Then the composition function has to send this special point to the special point
. Voila: zero morphisms. Compose one with anything and you get another zero morphism back.
The Underlying Category
In the setup for an enriched category, we have a locally-small monoidal category, which we equip with an “underlying set” functor . This lets us turn a hom-object into a hom-set, and now we want to extend this “underlying” theme to the entire 2-category
.
Okay, we could start by finding “underlying” analogues for each piece of the whole structure, but there’s a better way. We just take the setup of the “underlying set” from our monoidal categories and port it over to our 2-categories of enriched categories.
In particular, there’s a -category
that has a single object
and
. This behaves sort of like a “unit
-category”, and we define
. This is a 2-functor from
to
, and it assigns to an enriched category the “underlying” ordinary category. Let’s look at this a bit more closely.
A -functor
picks out an object
, while a
-natural transformation
consists of the single component
— an element of
. Thus the underlying category
has the same objects as
, while
is the “underlying set” of
.
Given a -functor
we get a regular functor
. It sends the object
of
to the object
of
. Its action on arrows of
(natural transformations of functors from
to
shouldn’t be too hard to work out.
Given a -natural transformation
of
-functors we get a natural transformation
. Its component
in
is an element of an “underlying hom-set” — an arrow from
to the appropriate hom-object. But this is just the same as the component
of the
-natural transformation we started with, so we don’t really need to distinguish them.
At this point, some of these conditions tend to diverge. The ordinary naturality condition for a transformation between functors acting on the underlying categories turns out to be weaker than the -naturality condition for a transformation between
-functors, for example. In general if I start talking about
-categories then everything associated to them will be similarly enriched. If I mean a regular functor between the underlying categories I’ll try to say so. That is, once I lay out
-categories
and
, then if I talk about a functor
I automatically mean a
-functor. If I mean to talk about a regular functor
I’ll say as much. Similarly, if I assert a natural transformation
I must mean
-natural, or I would have said
.
2-functors
Of course along with 2-categories, we must have 2-functors to map from one to another.
So, what’s a 2-functor? Since we defined a 2-category as a category enriched over , a 2-functor should be a functor enriched over
. That is, it consists of a function on objects and a functor for each hom-category, each of which consists of a function on 1-morphisms (the objects of the hom-category) and a function for each set of 2-morphisms. Then there are a bunch of relations.
Let’s expand this a bit. A 2-category has a collection
of objects, a collection
of 1-morphisms for each pair
of objects, and a collection
of 2-morphisms for each pair
of 1-morphisms between the same pair of objects. And all the same remarks go for another 2-category
.
So a 2-functor has
- a function
- for each pair
of objects of
, a functor
, each consisting of
- a function
- for each pair
of 1-morphisms from
to
a function
- a function
Now the composition functors give us functions for composing 1-morphisms and “horizontally” composing 2-morphisms, and the hom-categories give us functions
for “vertically” composing 2-morphisms. For each object we have an identity 1-morphism, and for each 1-morphism we have an identity 2-morphism. A 2-functor will preserve all these structures. First of all, since there are functors between the hom-categories the vertical composition is preserved, along with the identity 2-morphisms. The diagrams for enriched functors say that the identity 1-morphisms, the composition of 1-morphisms, and the horizontal composition of 2-morphisms are all preserved.
The 2-category of Enriched Categories
So we know that — the collection of all categories — forms a 2-category with functors as 1-morphisms and with natural transformations as 2-morphisms. It shouldn’t surprise us, then, that the collection
of all categories enriched over a monoidal category
also comprises a 2-category.
We need two concepts to make this go through: an “enriched” notion of a functor, and an “enriched” notion of a natural transformation. As we might expect, both of them will just be written out like the familiar notions of functor and natural transformation, but substituting the new monoidal structure for the cartesian monoidal structure of .
First of all, a functor from category to
is a function
, along with functions
for each hom-set. So to define a
-functor we keep the function on objects and replace the functions between hom-sets with morphisms between hom-objects. Of course, these must preserve compositions and identities, as encoded in the following diagrams:

which by now should look very familiar.
A natural transformation between two functors from
to
picks out a morphism
in
for each object
in
, subject to a “naturality” condition. To find an analogue of picking out a morphism from a hom-set we use the same trick we did for the identity: we pick a morphism from
to a hom-object. That is, a
-natural transformation consists of an
-indexed family of arrows
, which make the following diagram commute:

You should try to write this diagram out in the case of to verify that it becomes the familiar naturality square in that context.
Now the exact same constructions we used to compose natural transformations “vertically” and “horizontally” apply to -natural transformations, and the same arguments we used in the case of
apply to give a 2-category
of categories, functors, and natural transformations, all enriched over the monoidal category
.
2-Categories
Here’s another example of an enriched category. This one is extremely important, and to a certain extent it’s been my goal in my coverage of category theory. It’s also a very basic chunk of what they talk about over at the n-Category Café.
The monoidal category we use is . If set-theoretical questions make you nervous, read this as “small categories”. It does work out for general categories, though. We know that
is cartesian, and thus monoidal. We can take pairwise products of categories, and the terminal category is
— the category with one object and one (identity) morphism. The “underlying” functor gives the collection of objects in a given category.
Okay, so what’s a category enriched over
? We’ve got a collection of objects, and for each pair of objects
in
we have a category
of morphisms. In each of these we have a collection of objects (called “1-morphisms”), and for each pair
of 1-morphisms in
we have a collection of morphisms
(called “2-morphisms”).
Wow, that looks confusing. Okay, let’s say it again a little differently. We have:
- a collection of objects (“0-morphisms”)
- collections of 1-morphisms that go from one object to another
- collections of 2-morphisms that go from one 1-morphism between a pair of objects to another 1-morphism between the same pair of objects
There’s also a “composition” functor between the categories of 1-morphisms. This takes a 1-morphism from to
and one from
to
and gives a composite 1-morphism from
to
. Since it’s a functor, it also acts on 2-morphisms. If
is a 2-morphism in
(that is, both
and
go from
to
) and
is a 2-morphism in
, then we get a composite 2-morphism
. Of course, we also can take
and
and get a composite 2-morphism
by using the composition in the category
. The composition functor
is associative.
For each object there’s an identity 1-morphism
. And then it has an identity 2-morphism
. The 1-morphism
acts as the identity for the composition functor
, and it’s easy enough to verify that
is not only the identity for the composition
in
, but it’s also the identity for the composition
of 2-morphisms.
We call this structure a “2-category”, or more specifically a “strict 2-category”. We’ll get to weak ones eventually.
So do we know any good examples? Sure. The first is itself! Here the objects are categories, the 1-morphisms are functors between categories, and the 2-morphisms are natural transformations between functors. In fact we already saw right when we defined a natural transformation that given a pair of categories we have a category of functors between them, which is halfway to having a 2-category right there! And then we know we have both compositions of 2-morphisms because those are just the “horizonatal” and “vertical” compositions we first needed when we talked about units and counits of adjunctions.
Speaking of adjunctions, they give another 2-category: . The objects here again are categories, but now the 1-morphisms are adjunctions between categories. And then we have conjugate pairs between adjunctions, with the “horizontal” and “vertical” compositions between them as our 2-morphisms.
And as a last example, what’s a 2-category with one object? Well, we have our object
, and a category
. Any two 1-morphisms (the objects of this category) can be composed with each other by
, and there’s an identity 1-morphism. Now let’s just shift our language and say “object” instead of “1-morphism”, “morphism” instead of “2-morphism”,
instead of
, and
instead of
. What we’re left with is exactly the definition of a strict monoidal category! That is: just as a category with one object is a monoid, so a 2-category with one object is a monoidal category!
There are a lot of 2-categories out there, and we’ll be mentioning many more as the time goes on.
An example of an enriched category
Sorry for the delay, but the cable setup took more than I’d expected (there will me more on this over at Yankee Freak-Out). Today, I’d like to run through an example of a monoidal category, and what sort of enriched categories it gives rise to.
The category I’m interested in is the ordinal . Remember that this consists of the objects
and
, with one non-identity arrow
. We can make this into a monoidal category by saying
. Then
is the monoidal identity object.
So what is a category enriched over ? Well, first it has a collection of objects. For each pair
of objects we either have the hom-object
or
.
To have “identity morphisms” means we need an arrow for each object
. But the only such arrow in
is
, so
. For composition, we need arrows
. Thus if
and
are both
, then so must be
.
Now we can see that this is just a different way of talking about a preorder. The identity morphism corresponds to the reflexive axiom, and the composition morphism corresponds to the transitive action. In short: if and only if
.
Another example I’ve seen bandied about uses the category of “pointed sets”. This is just a set with an identified “point”. For example,
is a pointed set, and
is a different pointed set. The morphisms are “pointed functions”, which have to preserve the point — a morphism
consists of a function
with
. This category has finite products, so it’s monoidal.
The usual statement is that categories enriched over are the same as categories with “zero morphisms”. These are like categories with zero objects, but without needing an object to factor things through. Every hom-set has a special “zero” morphism, and the composition of a zero morphism with any other morphism is another zero morphism. The problem is, whenever I try to show this it doesn’t seem to work out. I think that there’s something askew or oversimplified with the statement somewhere.
Your mission, should you choose to accept it, is to figure out what the right statement is, and to prove it. Let me know by email (if you can’t find my email you aren’t trying very hard) and I’ll post it up for all to see, and for your own greater glory.
Enriched Categories II
So we have the basic data of a category enriched over a monoidal category
. Of course, what I left out were the relations that have to hold. And they’re just the same as those from categories, but now written in terms of
instead of
: associativity and identity relations, as encoded in the following commutative diagrams:

Notice how these are very similar to the axioms for a monoidal category or a monoid object. And this shouldn’t be unexpected by now, since we know that a monoid is just a (small) category with only one object. In fact, if we only have one object in a -enriched category we get back exactly a monoid object in
!
Now, often we’re thinking of our hom-objects as “hom-sets with additional structure”. There should be a nice way to forget that extra structure and recover just a regular category again. To an extent this is true, but for some monoidal categories the “underlying set” functor isn’t really an underlying set at all. For now, though, let’s look at a familiar category of “sets with extra structure” and see how we get the underlying set out of the category itself.
Again, the good example to always refer back to for enriched categories is , the category of abelian groups with tensor product as the monoidal structure. We recall that the functor giving the free abelian group on a set is left adjoint to the forgetful functor from abelian groups to sets. That is,
. We also know that we can consider an element of the underlying set
of an abelian group as a function from a one-point set into
. That is,
. Putting these together, we see that
, since
is the free abelian group on one generator.
But is also the identity object for the tensor product! The same sort of argument goes through for all our usual sets-with-structure, telling us that in all these cases the “underlying set” functor is represented by the monoidal identity
, which is the free object on one generator. We take this as our general rule, giving the representable functor
. In many cases (but not all!) this is the usual “underlying set” functor, but now we’ve written it entirely in terms of the monoidal category
!
As time goes by, we’ll use this construction to recover the “underlying category” of an enriched category. The basic idea should be apparent, but before we can really write it down properly we need to enrich the notions of functors and natural transformations.
Enriched Categories
I’d like to move on now to another way of blending various structures. We’ve seen that in certain situations the set of morphisms between two objects in a category naturally has deeper structure itself. For example, the set of homomorphisms between two abelian groups is itself an abelian group, because abelian groups are modules over the commutative ring . More generally, the set of homomorphisms between two
-modules naturally has the structure of a
-module, and sometimes more.
We need a good way of talking about this sort of thing, where we replace hom sets by “hom objects” in some other category . When this happens we say that our category is “enriched” over
. So to rephrase what I said above, the category of
-modules is enriched over
. Similarly, locally small categories are enriched over
.
When we talk about categories — which usually for us means locally small categories — we are implicitly using a number of properties of . In particular, to set up compositions we need to be able to take pairs of morphisms, which the cartesian product handles for us nicely:
. We also need to be able to pick out a special morphism in each set of endomorphisms to be the identity, which we can take to be the image of a function from a one-point set to the set of endomorphisms
sort of like we did for monoid objects.
For setting up the relations a category must satisfy we need to be able to build triples from pairs in two ways:
We also need to pair a morphism with a (unique) identity morphism:
What are the important properties of the category of sets that make it useful for these purposes? It’s just the fact that equipped with finite products (including a singleton set as terminal object) is a monoidal category! So let’s take a monoidal category
— a useful example to have always at hand is
— and try to use it for enrichment. As we proceed, we’ll write
for the underlying regular category (that is, forget that
is monoidal).
So, given such a monoidal category we’ll define a
-category
to consist of a class of objects
, and for each pair
of objects a “hom-object”
. For each triple of objects
there is a composition
. For each object
there is an “identity”, described by an arrow
.
I’ll be spending some time on this, so let’s leave it at the definition for now. Go through and unpack it for the case of an -category, and see what the definition says such a thing should look like.
Correction
Todd Trimble pointed out to me a mistake I made in saying that internalizations commute. I glossed over a number of important subtleties and he set me straight.
Now I’m just getting back from a visit to Bourbon Street, since the real intarwobs and television won’t be reaching my apartment until Wednesday morning. I’ve skimmed his points and they check out, but I invite him to post them here as a comment so I don’t mangle them. Basically, I think I’m “morally” right (and I’m sure I’ve read John Baez saying somthing along these lines), but I’ve messed something up in my presentation as I attempt to get back in the saddle. I’d be glad of any clarification that can be made to see where I’ve gone Pete Tong.
These last two posts are sort of the tail end of internalization anyhow, and I was planning on moving on to something new on Monday. If they’re a little messy, so be it.
Internal Categories
Just like we have monid objects, we can actually define something we could sensibly call a “category object”. In this case, however, it will be a little more accurate to use the term “internal category”.
This is because a (small) category isn’t just a set with extra structure. It’s two sets with extra structure. We have a set of objects, a set
of morphisms, a function
assigning the identity morphism to each object, functions
and
assigning the source and target objects to each morphism, and an arrow
telling us how to compose certain pairs of morphisms. This involves a “fibered product”, which is just the pullback in
. We take the arrows
and
from
to
and pull back the square to get the set of all pairs of morphisms so that the source object of one is the target of the other.
Then there are a bunch of relations which hold:
- The source of the identity arrow on an object is the object itself.
- The target of the identity arrow on an object is the object itself.
- The identity arrow on an object acts as a left and right identity for the composition.
- The source of a composition is the source of the second member of the pair.
- The target of a composition is the target of the first member of the pair.
- The composition is associative.
I’ll leave you to write these out purely in terms of the functions ,
,
, and
.
Now we can take this whole setup and drop it into any other category, as long as that category has pairwise pullbacks. If does have these pullbacks, then a category internal to
(or a “category object”) consists of a pair of objects and four morphisms of
, which must satisfy the above relations. Then a category internal to
is a small category.
When we’re talking about categorifying something like a group, we want to replace the underlying set of a group with a small category. That is, we want to have a group object in . But we know that internalizations commute, so this is the same thing as a “category object” in groups! That is, instead of looking for a category with a multiplication functor and so on, we can instead look for a pair of groups with source, target, composition, and identity homomorphisms between them.
