This is an archived version pinned as of the submission of my master's thesis. An up-to-date version may be found online.
Representable functors between categories
module category-theory.representable-functors-categories where
Imports
open import category-theory.categories open import category-theory.functors-categories open import category-theory.natural-transformations-functors-categories open import category-theory.representable-functors-precategories open import foundation.category-of-sets open import foundation.universe-levels
Idea
Given a category C and an object c, there
is a functor from C to the
category of sets represented by c that:
- sends an object
xofCto the sethom c xand - sends a morphism
g : hom x yofCto the functionhom c x → hom c ydefined by postcomposition withg.
The functoriality axioms follow, by
function extensionality, from
associativity and the left unit law for the category C.
Definition
representable-functor-Category : {l1 l2 : Level} (C : Category l1 l2) (c : obj-Category C) → functor-Category C (Set-Category l2) representable-functor-Category C = representable-functor-Precategory (precategory-Category C)
Natural transformations between representable functors
A morphism f : hom b c in a category C defines a
natural transformation
from the functor represented by c to the functor represented by b. Its
components hom c x → hom b x are defined by precomposition with f.
representable-natural-transformation-Category : {l1 l2 : Level} (C : Category l1 l2) {b c : obj-Category C} (f : hom-Category C b c) → natural-transformation-Category ( C) ( Set-Category l2) ( representable-functor-Category C c) ( representable-functor-Category C b) representable-natural-transformation-Category C = representable-natural-transformation-Precategory (precategory-Category C)