Yoneda Embedding
Prev: The Yoneda Lemma Next: It’s All About Morphisms
Prev: The Yoneda Lemma Next: It’s All About Morphisms
Exercises
- Express the co-Yoneda embedding in Haskell.
- Show that the bijection we established between
fromYandbtoais an isomorphism (the two mappings are the inverse of each other). - Work out the Yoneda embedding for a monoid. What functor corresponds to the monoid’s single object? What natural transformations correspond to monoid morphisms?
- What is the application of the covariant Yoneda embedding to preorders? (Question suggested by Gershom Bazerman.)
- Yoneda embedding can be used to embed an arbitrary functor category in the functor category . Figure out how it works on morphisms (which in this case are natural transformations).