1 Definitions and Examples
Definition 1.1 (Category).
A category
consists of:
-
(a)
a collection
of objects .
-
(b)
a collection
of morphisms .
-
(c)
two operations ,
from
to :
we write
for “
is a morphism and
and ”.
-
(d)
an operation from
to
sending
to .
-
(e)
a partial binary operation
on ,
such that
is defined if and only if ,
and in this case we have
and .
These are subject to the axioms:
Remark 1.2.
-
(a)
and
needn’t be sets. If they are, we call
a small category.
-
(b)
We could formalise the definition without mentioning objects, but we don’t.
-
(c)
means “first ,
then ”.
Example 1.3.
-
(a)
category of all sets and the functions between them. (Formally, a morphism of
is a pair
where
is a set-theoretic function, and
is its codomain.)
-
(b)
We have categories:
-
of groups and group homomorphisms
-
of rings and homomorphisms
-
of vector spaces over a field
-
and so on
-
(c)
We have categories
-
of topological spaces and continuous maps
-
of metric spaces and non-expansive maps (i.e.
such that )
-
of smooth manifolds and
maps
Also for
topological groups and continuous homomorphisms, etc...
-
(d)
We have a category with
the same objects as ,
but morphisms
are homotopy classes of continuous maps.
In general, given and
an equivalence relation
on
such that
|
and
|
we can form a quotient category .
-
(e)
The category has
the same objects as ,
but morphisms
are relations ,
with composition defined by
|
We can also define the category
of sets with partial functions.
-
(f)
For any category , the opposite
category has the same
objects and morphisms as
but
and
are interchanged and composition is reversed.
This yields a duality principle: if is a
true statement about categories, so is
obtained by reversing arrows in .
-
(g)
A (small) category with one object
is a monoid (a semigroup with an identity). In particular, a group is a
object
small category whose morphisms are all isomorphisms.
-
(h)
A groupoid is a category whose morphisms are all isomorphisms. For example, the fundamental groupoid
of a topological
space has points
of as objects, and
morphisms are homotopy
classes of paths from
to (c.f. the
fundamental group ).
-
(i)
A discrete category is one whose only morphisms are identities. If
is such that for any
pair of objects there is
at most one morphism
then becomes a reflexive,
transitive relation on .
We call such a
a preorder. In particular, a poset is a small preorder whose only isomorphisms are identities.
-
(j)
Given a field , the category
has natural numbers as
objects, and morphisms
are matrices,
with entries from ,
and composition is matrix multiplication.
Definition 1.4 (Functor).
Let
and be categories.
A functor consists
of mappings
and
such that:
We write
for the category of small categories and the functors between them.
Example 1.5.
-
(a)
We have forgetful functors ,
,
,
… or slightly more interestingly, ,
,
,
,
…
-
(b)
The construction of free groups is a functor :
given a set ,
is the group freely generated by ,
such that every mapping
where
has a group structure extends uniquely to a homomorphism .
Given ,
we define
to be the unique homomorphism extending .
If we also have ,
and
are both homomorphisms extending .
-
(c)
Given a set ,
we define
to be the set of subsets of .
Given ,
we define
by .
So
is a functor .
-
(d)
But we also have a functor
(or ):
and, for ,
is given by .
We use the term “contravariant functor ”
for a functor .
-
(e)
Given a vector space
over ,
we write
for the space of linear maps .
Given ,
we write
for the mapping .
This defines a functor .
-
(f)
The mapping ,
defines a functor .
-
(g)
A functor between monoids is a monoid homomorphism; a functor between posets is a monotone
map.
-
(h)
Given a group ,
a functor
is given by a set
equipped with a -action
,
i.e. a permutation representation of .
Similarly, a functor
is a -linear
representation of .
-
(i)
The fundamental group construction is a functor ,
where
is the category of topological spaces with basepoints, and morphisms being the continuous maps
which preserve the basepoints.
Definition 1.6 (Natural transformation).
Given categories
and
, and two functors
, a natural
transformation
assigns to each
a morphism
in , such
that for any
in , the
square
commutes (we call this square
the
naturality square for
at
). Given
as above,
and
, we
define
by
. We write
for the
category
of functors
and natural transformations between them.
Example 1.7.
-
(a)
Given a vector space ,
we have a linear map
sending
to the linear form
on .
These maps define a natural transformation .
-
(b)
There is a natural transformation ,
where is the free
group functor and is
the forgetful functor ,
whose value at
is the inclusion .
The naturality square commutes by
the definition of .
-
(c)
For any , we have a
mapping given by
. This is a natural
transformation
since
for any .
-
(d)
Given order-preserving maps
between posets, there exists a unique natural transformation
if and
only if
for all .
-
(e)
Given two group homomorphisms ,
a natural transformation
is given by
such that
for all , or
equivalently ,
i.e.
and
are conjugate homomorphisms. In particular, the group of natural transformations
is the centraliser
of the image of .
-
(f)
If and
are
-sets considered as
functors , a natural
transformation
is a -invariant
map, i.e.
such that
for all ,
.
-
(g)
The Hurewicz homomorphism links the homotopy and homology groups of a space
. Elements of
are homotopy classes of
basepoint-preserving maps .
If we think of
as ,
defines a
singular -cycle on
and homotopic maps differ
by an -boundary, so we
get a well-defined map .
is a homomorphism, and it’s
a natural transformation ,
where is the
forgetful functor .
We have isomorphisms of categories: e.g.
defined by ,
is its
own inverse.
But we have a weaker notion of equivalence of categories.
Lemma 1.8.
Assuming that:
Then is an
isomorphism in
if
and only if
is an
isomorphism in
for each
.
Proof.
-
Obvious since composition in .
-
Suppose each
has an inverse .
Given in
, in
the diagram we have
.
□
Definition 1.9 (Equivalence of categories).
Let
and
be categories. An equivalence between
and
consists of functors
and
together with natural isomorphisms ,
.
We write
if there exists an equivalence between
and .
We say
is a categorical property if
|
Example 1.10.
-
(a)
The category of sets and partial
functions is equivalent to (the
category of pointed sets). We define
by and
if , with
if
and undefined
otherwise. Then define
by and
if ,
then
|
Then ;
,
but there is an isomorphism .
Note that .
-
(b)
We have an equivalence :
both functors are ,
and both isomorphisms are .
-
(c)
We have an equivalence :
we define
by ,
is the linear map
represented by
(with respect to standard
bases). TO define ,
choose a basis for each ,
and define ,
|
;
the choice of bases yields isomorphisms
for each ,
which form a natural transformation .
Definition 1.11 (Faithful / full / essentially surjective).
Let
be a
functor.
Note that if is full and faithful,
it’s essentially injective: given
in , the
unique
with is
an isomorphism.
We say is a full
subcategory if the inclusion
is a full functor.
Lemma 1.12.
Assuming that:
Proof.
-
Suppose give ,
and
as in Definition 1.9. Then
witnesses the fact that
is essentially surjective. If
satisfy ,
then ;
but ,
so .
Suppose given ;
then
satisfies
but
is faithful for the same reason as ,
so .
-
For each ,
chose
and an isomorphism .
Given ,
define
to be the unique morphism such that .
Functoriality follows from uniqueness, and naturality of .
We define
to be the unique morphism such that .
is an isomorphism, and naturality squares for
are mapped by
to naturality squares for ,
so they commute. □
Definition 1.13 (Skeleton).
By a skeleton of a category ,
we mean a full subcategory containing just one object from each isomorphism class.
We say
is skeletal if it’s a skeleton of itself.
However, working with skeletal categories involves heavy use of the axiom of choice.
Definition 1.14 (Monomorphism / epimorphism).
Let
be a morphism in a category .
We say
is a monomorphism (or monic) if, given ,
.
We say
is an epimorphism (or epic) if it’s a monomorphism in .
We write
to indicate that
is monic, and
to indicate that it’s epic.
We say
is balanced if every arrow which is monic and epic is an isomorphism.
We will call a monic morphism
split if it has a left inverse (and similarly we may define the notion of split epic).
Example 1.15.
-
(a)
In ,
monic
injective (
obvious; for
consider morphisms ).
Also, epic
surjective (
obvious; for
consider morphisms ).
-
(b)
In ,
monic
injective (for
consider homomorphisms ),
and epic
surjective (but
is quite non-trivial – it uses free products with amalgamation).
-
(c)
In ,
monic
injective, but epic does not imply surjective (for example, consider ).
-
(d)
In ,
monic
injective and epic
surjective (as in )
but
isn’t balanced.
-
(e)
In preorder, all morphisms are monic and epic, so a preorder is balanced if and only if it’s an
equivalence relation.