A Simple Intuition for Understanding the Yoneda Lemma
The Yoneda Lemma says:
An object is determined by how every other object maps into it.
Instead of studying an object directly, study all morphisms into it.
The Hom Functor
For each object in a category , consider
the set of arrows from to .
This defines a functor
called a representable functor.
The Lemma
For any functor
there is a natural bijection
where:
- is the set of natural transformations
- is the value of the functor at
Meaning
Every natural transformation
is completely determined by a single element
Why This Works
Evaluate the transformation at the identity morphism:
Then
and this one element reconstructs all of .
Famous Consequence
If
then
Objects are fully encoded by their relationships.
Intuition
Do not ask:
“What is ?”
Ask:
“How does everything map into ?”
Those mapping patterns are the object.
One Line Summary
That is the famous Yoneda Lemma.