| ID | eb5c784e-1937-469e-a5c2-804287d1a4ec |
|---|---|
| DeertopiaVisibility | public |
Hom-functor (category theory)
Given any object of a locally-small category , one may construct several functors referred to as hom-functors.
(Covariant) hom-functor
For any fixed object of a locally-small category , the covariant hom-functor
sends objects to hom-sets ,
and sends -morphisms to functions post-composing their argument with .
Considering the mapping naturally gives rise to the covariant hom-functor by fixing the first argument.
The covariant hom-functor makes a star appearance in the Haskell programming language, being the function type itself (or equivalently, the reader monad):
instance Functor ((->) s) where
fmap g f = g . f
Contravariant hom-functor
Β«TODOΒ»
Considering the mapping naturally gives rise to the contravariant hom-functor by fixing the first argument.
Two-sided represented functor
If you fix neither side, you get the two-sided represented functor. See Two-sided represented functor.
References
[cite:@nlab:hom-functor]
[cite:@enwiki:1278466099]