Profunctor
From Wikipedia, the free encyclopedia
In category theory, profunctors are a generalization of relations and also of bimodules.
Contents |
[edit] Definition
A profunctor (also named distributor by the French school and module by the Sydney school) from a category C to a category D, written
- ,
is defined to be a functor
- .
Using the cartesian closure of , the profunctor φ can be seen as a functor
where denotes the category of presheaves over D.
[edit] Composition of profunctors
The composite ψφ of two profunctors
- and
is given by
where is the left Kan extension of the functor along the Yoneda functor of D (which to every object d of D associates the functor ).
It can be shown that
where is the least equivalence relation such that whenever there exists a morphism v in B such that
- y' = vy and x'v = x.
[edit] The bicategory of profunctors
Composition of profunctors is associative only up to isomorphism (because the product is not strictly associative in Set). The best one can hope is therefore to build a bicategory Prof whose
- 0-cells are small categories,
- 1-cells between two small categories are the profunctors between those categories,
- 2-cells between two profunctors are the natural transformations between those profunctors.
[edit] Properties
[edit] Lifting functors to profunctors
A functor can be seen as a profunctor by postcomposing with the Yoneda functor:
- .
It can be shown that such a functor φF has a right adjoint. Moreover, this is a characterization: a profunctor has a right adjoint if and only if factors through the Cauchy completion of D, i.e. there exists a functor such that .
[edit] References
- Bénabou, Jean (2000). "Distributors at Work".
- Borceux, Francis (1994). Handbook of Categorical Algebra. CUP.