Profunctor

1

In category theory, a branch of mathematics, profunctors are a generalization of relations and also of bimodules.

Definition

A profunctor (also named distributor by the French school and module by the Sydney school) ,\phi from a category C to a category D, written is defined to be a functor where denotes the opposite category of D and denotes the category of sets. Given morphisms respectively in D, C and an element, we write to denote the actions. Using the cartesian closure of, the category of small categories, the profunctor \phi can be seen as a functor where \hat{D} denotes the category of presheaves over D. A correspondence from C to D is a profunctor.

Profunctors as categories

An equivalent definition of a profunctor is a category whose objects are the disjoint union of the objects of C and the objects of D, and whose morphisms are the morphisms of C and the morphisms of D, plus zero or more additional morphisms from objects of D to objects of C. The sets in the formal definition above are the hom-sets between objects of D and objects of C. (These are also known as het-sets, since the corresponding morphisms can be called heteromorphisms.) The previous definition can be recovered by the restriction of the hom-functor to. This also makes it clear that a profunctor can be thought of as a relation between the objects of C and the objects of D, where each member of the relation is associated with a set of morphisms. A functor is a special case of a profunctor in the same way that a function is a special case of a relation.

Composition of profunctors

The composite \psi\phi of two profunctors is given by where is the left Kan extension of the functor \hat{\psi} along the Yoneda functor of D (which to every object d of D associates the functor ). It can be shown that where \sim is the least equivalence relation such that whenever there exists a morphism v in D such that Equivalently, profunctor composition can be written using a coend

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

Properties

Lifting functors to profunctors

A functor F : C\to D can be seen as a profunctor by postcomposing with the Yoneda functor: It can be shown that such a profunctor \phi_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 F : C\to D such that.

This article is derived from Wikipedia and licensed under CC BY-SA 4.0. View the original article.

Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc.
Bliptext is not affiliated with or endorsed by Wikipedia or the Wikimedia Foundation.

Edit article