The aim of this blog is to provide a trivial but nice example of Yoneda Lemma, and then we prove the Yoneda Lemma.
Let be a locally small category, that is, is a set.
The Yoneda lemma claim that
Let us look at a simple example. Let be the category of set, and be the identity functor.
Then let us consider the natural transformation betwenen and .
What is natural transormation here? How could you map to and make sure the diagram commute?
The evaluation map! Let us pick a and let . Here is the evaluation map at .
It is not hard to see the map from to is injective.
To see it is surjective, let and consider with the following diagram.
The diagram tells us that:
i.e. and , we have
Hence the map from to is surjective.
That is a cute example of Yoneda Lemma.
In general, the proof of Yoneda Lemma is literally same idea.
Let be a functor, and considering the following diagram.
If . The diagram shows that for every we have .
Hence each (arrow in , i.e. function) is completely determined by .
i.e.
Conversely, pick an element , consider an function
The diagram force us to define for all since
Then we can check that the following diagram commute.
Pick a ,
Here is a function from to , .
Hence the diagram commute.
Hence we have
The case is claimed by duality.
No comments:
Post a Comment