article

In category theory, 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

\phi:C\nrightarrow D,

is defined to be a functor

\phi:D^{\mathrm{op}}\times C\to\mathbf{Set}.

Using the cartesian closure of \mathbf{Cat}, the profunctor \phi can be seen as a functor

\hat{\phi}:C\to\hat{D}

where \hat{D} denotes the category \mathrm{Set}^{D^\mathrm{op}} of presheaves over D.

Composition of profunctors

The composite \psi\phi of two profunctors

\phi:C\nrightarrow D and \psi:D\nrightarrow E

is given by

\psi\phi=\mathrm{Lan}_{Y_D}(\hat{\psi})\circ\phi

where is \mathrm{Lan}_{Y_D}(\hat{\psi}) the left Kan extension of the functor \hat{\psi} along the Yoneda functor Y_D:D\to\hat D of D (which to every object d of D associates the functor D(-,d):D^{\mathrm{op}}\to\mathrm{Set}).

It can be shown that

(\psi\phi)(e,c)=\left(\coprod_{d\in D}\psi(e,d)\times\phi(d,c)\right)/\sim

where \sim is the least equivalence relation such that (y',x')\sim(y,x) whenever there exists a morphism v in B such that

y'=vy and x'v=x.

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.

Properties


Lifting functors to profunctors

A functor F:C\to D can be seen as a profunctor \phi_F:C\nrightarrow D by postcomposing with the Yoneda functor:

\phi_F=Y_D\circ F.

It can be shown that such a functor \phi_F has a right adjoint. Moreover, this is a characterization: a profunctor \phi:C\nrightarrow D has a right adjoint if and only if \hat\phi:C\to\hat D factors through the Cauchy completion of D, i.e. there exists a functor F:C\to D such that \hat\phi=Y_D\circ F.

References


Category theory

 

This article is licensed under the GNU Free Documentation License. It uses material from the "Profunctor".

Home Pageartsbusinesscomputersgameshealthhospitalshomekids & teensnewsphysiciansrecreationreferenceregionalscienceshoppingsocietysportsworld