Yoneda Lemma
by iarnab_kundu, Nov 25, 2018, 5:46 PM
We write some of the proofs of the very useful Yoneda Lemma.
Let
be a locally small category. That means that the
-sets of category
are sets. Let
denote the category of all sets. Given an object
we might construct two functors
and
respectively. We consider the first covariant functor. If there is a morphism
in
then for every object
we have a map of sets
given by pre-composition by
. This map is natural in the sense that if there is a morphism
between two objects
then there is a commutative digaram

This means that there is a natural transformation
. Therefore given a morphism
we have a "morphism" of functors
. On the other hand, if we are given a "morphism" of functors
, can we say that it is induced by a morphism
? The answer to the question is given by Yoneda Lemma which we state in three different ways.
Let
denote the category of covariant functors from
to
. If we have two such functors, that is
then
is the collection of all natural transformations between them. It is not clear to me at this juncture whether this is a locally small category or not.
We have a contravariant functor
given by
. The calculations above show that this is indeed a functor.
Statement 1 - Let
be a covariant functor. Let
be an object. Then there is a natural bijection of sets
.
Remark - We need to explain the naturality above. Let
be the product category, assuming it exists. Then there are two functors
given respectively by
and by
. Then Yoneda Lemma states that these two functors are naturally isomorphic.
Corollary 1- Given two objects
, if the two functors
and
are isomorphic then so are
and
.
Proof- We assume that
is an isomorphism, that is there exists
such that
is the identity map of
and
is the identity map of
. We look at the proof of Yoneda Lemma. Putting
gives us that any natural transformation
is given by
where
. Similarly we obtain
given by
. The proof of Yoneda Lemma tells us that
is given by pre-composition by
,
is given by pre-composition by
and therefore their composition
is given by pre-composition by
. But
is the identity map and is therefore given by the pre-composition with the identity map. Therefore
and hence
.
Similarly
.
Corollory 2- The functor
given by
is fully faithful.
Proof - We first check that
is a functor. It is clear that identity map is taken to the identity natural transformation. Secondly if we have three objects
and three morphisms
and
such that
then we need to check that
. We can check at every object
. Then
is given by pre-composition by
, similarly for g and h. Thus it can be checked.
Now we look at the proof of Yoneda Lemma. We put
and we obtain a map of sets
given by
. But we also have the above map
given by
. But
since
on objects is given by pre-composition by
. For the other direction, we note that any map
is given by
.
Let















This means that there is a natural transformation





Let





We have a contravariant functor


Statement 1 - Let



Remark - We need to explain the naturality above. Let




Corollary 1- Given two objects





Proof- We assume that























Corollory 2- The functor


Proof - We first check that









Now we look at the proof of Yoneda Lemma. We put










This post has been edited 4 times. Last edited by iarnab_kundu, Nov 25, 2018, 9:09 PM