Hom functor
In
Formal definition
Let C be a
For all objects A and B in C we define two functors to the category of sets as follows:
Hom(A, –) : C → Set Hom(–, B) : C → Set[1] This is a covariant functorgiven by:This is a contravariant functorgiven by:- Hom(–, B) maps each object X in C to the set of morphisms, Hom(X, B)
- Hom(–, B) maps each morphism h : X → Y to the function
- Hom(h, B) : Hom(Y, B) → Hom(X, B) given by
- for each g in Hom(Y, B).
The functor Hom(–, B) is also called the
Note that fixing the first argument of Hom naturally gives rise to a covariant functor and fixing the second argument naturally gives a contravariant functor. This is an artifact of the way in which one must compose the morphisms.
The pair of functors Hom(A, –) and Hom(–, B) are related in a natural manner. For any pair of morphisms f : B → B′ and h : A′ → A the following diagram commutes:
![](http://upload.wikimedia.org/wikipedia/commons/thumb/d/d2/Hom_functor.svg/320px-Hom_functor.svg.png)
Both paths send g : A → B to f ∘ g ∘ h : A′ → B′.
The commutativity of the above diagram implies that Hom(–, –) is a
- Hom(–, –) : Cop × C → Set
where Cop is the opposite category to C. The notation HomC(–, –) is sometimes used for Hom(–, –) in order to emphasize the category forming the domain.
Yoneda's lemma
Referring to the above commutative diagram, one observes that every morphism
- h : A′ → A
gives rise to a natural transformation
- Hom(h, –) : Hom(A, –) → Hom(A′, –)
and every morphism
- f : B → B′
gives rise to a natural transformation
- Hom(–, f) : Hom(–, B) → Hom(–, B′)
Internal Hom functor
Some categories may possess a functor that behaves like a Hom functor, but takes values in the category C itself, rather than Set. Such a functor is referred to as the internal Hom functor, and is often written as
to emphasize its product-like nature, or as
to emphasize its functorial nature, or sometimes merely in lower-case:
- For examples, see Category of relations.
Categories that possess an internal Hom functor are referred to as closed categories. One has that
- ,
where I is the
where is a
Internal Homs, when chained together, form a language, called the
Properties
Note that a functor of the form
- Hom(–, A) : Cop → Set
is a presheaf; likewise, Hom(A, –) is a copresheaf.
A functor F : C → Set that is
Note that Hom(–, –) : Cop × C → Set is a profunctor, and, specifically, it is the identity profunctor .
The internal hom functor preserves limits; that is, sends limits to limits, while sends limits in , that is
The
Other properties
If A is an abelian category and A is an object of A, then HomA(A, –) is a covariant left-exact functor from A to the category Ab of abelian groups. It is exact if and only if A is projective.[2]
Let R be a
See also
Notes
- ^ Also commonly denoted Cop → Set, where Cop denotes the opposite category, and this encodes the arrow-reversing behaviour of Hom(–, B).
- ^ Jacobson (2009), p. 149, Prop. 3.9.
References
- ISBN 0-387-98403-8.
- Goldblatt, Robert (2006) [1984]. Topoi, the Categorial Analysis of Logic (Revised ed.). ISBN 978-0-486-45026-1. Archived from the originalon 2020-03-21. Retrieved 2009-11-25.
- ISBN 978-0-486-47187-7.
External links
- Hom functor at the nLab
- Internal Hom at the nLab