Yoneda Lemma
Let's check naturality carefully in both components of the family
where
Notation reminder: For a presheaf and arrow we write . For we have given by precomposition with .
1. Naturality in the first variable (in ) — postcomposition by
Fix . Let be a natural transformation of presheaves. The square to prove commutes is:
We must show for every
Take arbitrary and . Evaluate both sides at the component and argument .
Left-hand side (LHS):
Right-hand side (RHS):
But is a natural transformation . Naturality at the arrow says
Apply both sides to and get
So RHS = LHS for the chosen and . Since were arbitrary, the natural transformations are equal. Thus the square commutes. QED for naturality in .
2. Naturality in the second variable (in ) — precomposition by
Fix . Let be a morphism in . The square to prove commutes is:
We must show for every
Again take arbitrary and . Evaluate both sides at component and argument .
Left-hand side (LHS):
By functoriality of (contravariant), , so
Right-hand side (RHS):
But (postcompose with to get an arrow ), and . So
Hence LHS = RHS (= ) for arbitrary . Therefore the square commutes. QED for naturality in .
3. Naturality on the product (general morphism )
A morphism in from to is a pair with and . On the functors
the induced maps are
We need to show the square
commutes, i.e. for all ,
Evaluate both sides at an arbitrary and .
Left-hand side (LHS):
(used functoriality .)
Right-hand side (RHS):
Now , and . Thus
Use naturality of at the arrow :
Apply both sides to to obtain
Therefore RHS (= ), which equals LHS. Since were arbitrary, the two natural transformations coincide on all components and values. Thus the product square commutes and is natural as a transformation on .
4. Naturality of the inverse
Because is a natural bijection with inverse , is also natural. Concretely:
For :
So postcomposition by commutes with .
For :
So precomposition by commutes with .
Hence is natural in both variables and is the inverse natural transformation to .
Conclusion
We have shown in full elementwise detail that for every arrow in and every arrow in all required squares commute. Therefore the family is natural in both components and gives a natural isomorphism of functors
This completes the proof of the Yoneda Lemma.