2 The Yoneda Lemma
Definition 2.1 (Locally small).
We say a category
is locally small if, for any two objects
and ,
the morphisms
in
are parameterised by a set .
If is an object of a
locally small category ,
we have a functor
sending to
and a morphism
to the mapping
(this is functorial
since composition in
is associative).
Dually, we have .
Lemma 2.2 (Yoneda).
Assuming that:
Then
Proof.
-
(i)
Given ,
we define .
Given , we
define
by . This is
natural in
since is a
functor: given
we have
|
For any ,
.
For any ,
for all .
So .
-
(ii)
Later. Seeing examples of usage of (i) is interesting first. □
Corollary 2.3.
Assuming that:
Proof.
Substitute
for
in Lemma 2.2(i): we have a bijection from
to the collection of natural transformations .
For a given ,
the natural transformation
sends
to ,
so this is functorial by associativity of composition .
Similarly, we have a full and faithful functor
sending
to .
We call this the Yoneda embedding: it allows us to regard any locally small category
as a full subcategory of a -valued
functor category. □
Compare with Cayley’s Theorem in group theory (every group is isomorphic to a subgroup of a
permutation group) and ‘Dedekind’s Theorem’ (every poset is isomorphic to a sub-poset of a power
set).
Definition 2.4 (Representable).
We say a functor
is representable if it’s isomorphic to a
for some .
By a representation of ,
we mean a pair
where
is such that
is an isomorphism. We call
a universal element of .
Corollary 2.5.
Suppose
and are both representations
of . Then there is a
unique isomorphism
such that .
Proof.
is equivalent to saying that
commutes,
so
must be the unique isomorphism, whose image under
Yoneda is
.
□
Proof of Yoneda(ii).
Suppose for the moment that
is
small, so that
is
locally small. Given
two
functors : the
first sends an object
to
, and
a morphism
to the diagonal of
The
second is the composite
|
where is a Yoneda
embedding. Then
and
define a natural isomorphism between these two.
In elementary terms, this says that if ,
and is its image under
the diagonal, then
is the composite
|
This makes sense without the assumption that
is small, and it’s true since the composite maps
|
Example 2.6.
-
(a)
The forgetful functor
is represented by ,
is represented by ,
is represented by .
-
(b)
The functor
is represented by .
This is the bijection between subsets of
and functions ,
and it’s natural. But
is not representable, since
isn’t a singleton.
-
(c)
The functor
sending
to the set of open subsets of ,
and
to
is representable by the Sierpinski space
with
open but
not open. This works since continuous maps
are the characteristic functions of open subsets of .
-
(d)
The functor
isn’t representable, but its composite with
is represented by .
-
(e)
For a group
considered as a -object
category, the unique representable functor
is the Cayley representation:
acting on itself by multiplication.
-
(f)
Given two objects
in a locally small category ,
we have a functor
sending
to .
If this functor is representable, we call the representing object a categorical product
and write
for the universal element. Its defining property is that given any pair ,
there is a unique isomorphism
such that
and .
Dually, we have the notion of coproduct
with coprojections ,
.
-
(g)
Given a parallel pair
in a locally small category ,
we have a functor
sending
to
and defined on morphisms in the same way as .
A representation of this functor is called an equaliser of :
it consists of
satisfying ,
and such that any
with
factors uniquely as .
Note that
is monic; we call a monomorphism regular if it occurs as an equaliser.
Dually, we have the notions of coequaliser and regular epi.
In , products are just
cartesian products (also in ,
,
, …). coproducts
in are disjoint
unions . In
, coproducts are
free products .
In , the equaliser of
is the inclusion of
and the coequaliser
of is the quotient of
by the smallest equivalence
relation containing .
Note that in ,
all monomorphisms and all epimorphisms are regular, but in
, a monomorphism
is regular if and only
if is topologised as
a subspace of . An
epimorphism is regular if
and only if is topologised
as a quotient of .
Note that if
is both regular monic and regular epic, then it’s an isomorphism since the pair
of which its equaliser
must satisfy .
Warning.
The following terminology is not standard. These are usually (both!) referred to as
“generating”, but to avoid confusion, in this course we will refer to them with separate names.
Definition 2.7 (Separating / generating family).
Let
be a family of objects of
a locally small category .
-
(a)
We say
is a
separating family if the
functors ,
are jointly
faithful, i.e. given a parallel pair
,
the equations
for all
with
imply
.
-
(b)
We say
is a detecting family if the
jointly reflect isomorphisms, i.e. given ,
if every
with
factors uniquely through ,
then
is an isomorphism.
If , we
call a
separator or a detector.
Proof.
-
(i)
Suppose
is a detecting family, and suppose
satisfy the hypothesis of Definition 2.7(a). Let
of :
then any
with
factors uniquely through ,
so
is an isomorphism, so .
-
(ii)
Suppose
is separating, and
satisfies the hypothesis of Definition 2.7(b). If
satisfy ,
then any
with
satisfies ,
since both are factorisations of
through .
So ;
hence
is monic.
Similarly, if
satisfy ,
then any
satisfies ,
since it factors through ,
so
and hence
is epic. Since
is balanced,
is an isomorphism. □
Example 2.9.
-
(a)
In ,
is a separator and a detector, since
is isomorphic to the identity functor. Also,
is a coseparator and a codetector, since it represents .
-
(b)
In
(respectively ),
(respectively )
is a separator and a detector, since it represents the forgetful functor.
But
has no coseparator or codetector set: given any set
of groups, there is a simple group
with
for all ,
so the only homomorphisms
with
are trivial.
-
(c)
For any small category ,
the set
is separating and detecting in .
This uses Yoneda and Lemma 1.8 (for the detecting case).
-
(d)
In ,
is a separator since it represents .
But
has no detecting set of objects: given a set
of spaces, choose
for all ,
and let
and
be a set of .
Give
the discrete topology and for ,
we set the closed sets be
plus all the subsets of .
The identity
is continuous, but not a homeomorphism, but its restriction to any subset of
is a homeomorphism, so
can’t detect the fact that
isn’t an isomorphism.
-
(e)
Let
be the category whose objects are the ordinals, with identities plus two morphisms
whenever
with composition defined by .
Then
is a detector for :
it can tell that
aren’t isomorphisms since neither factors through the other, and if
it can tell that
aren’t isomorphisms since
doesn’t factor through either.
But
has no separating set: if
is any set of ordinals, choose
for all
and then
can’t separate .
By definition, the functors
preserve monomorphisms, but they don’t always preserve epimorphisms.
Definition 2.10 (Projective).
We say an object
in a locally
small category is
projective if
preserves epimorphisms, i.e. if given
there
exists
with
. Dually,
is
injective if it’s
projective in
.
If satisfies this condition
for all in some class
of epimorphisms, we
call it -projective.
In , we consider the class of
pointwise epimorphisms, i.e. those
such that is
surjective for all .
Proof.
Immediate from Yoneda; given
with
pointwise
epic,
is
for
some
,
so
.
□
“ has
enough pointwise projectives”:
Proposition 2.12.
Assuming that:
Proof.
Set
where the disjoint union is over all pairs
with
and .
A morphism
is uniquely determined by a family of morphisms .
. Hence
is pointwise projective, since all the
are. But we have
whose -th
component is
and this is pointwise epic since any
appears as .
□