Limits and Colimits
Prev: Declarative Programming Next: Free Monoids
Prev: Declarative Programming Next: Free Monoids
Exercises
- How would you describe a pushout in the category of C++ classes?
- Show that the limit of the identity functor is the initial object.
- Subsets of a given set form a category. A morphism in that category is defined to be an arrow connecting two sets if the first is the subset of the second. What is a pullback of two sets in such a category? What’s a pushout? What are the initial and terminal objects?
- Can you guess what a coequalizer is?
- Show that, in a category with a terminal object, a pullback towards the terminal object is a product.
- Similarly, show that a pushout from an initial object (if one exists) is the coproduct.