Profunctor – Wikipedia

From Wikipedia, the free encyclopedia

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

Definition[edit]

A profunctor (also named distributor by the French school and module by the Sydney school)

ϕ{displaystyle ,phi }

from a category

C{displaystyle C}

to a category

D{displaystyle D}

, written

is defined to be a functor

where

Dop{displaystyle D^{mathrm {op} }}

denotes the opposite category of

D{displaystyle D}

and

Set{displaystyle mathbf {Set} }

denotes the category of sets. Given morphisms

f:dd,g:cc{displaystyle fcolon dto d’,gcolon cto c’}

respectively in

D,C{displaystyle D,C}

and an element

xϕ(d,c){displaystyle xin phi (d’,c)}

, we write

xfϕ(d,c),gxϕ(d,c){displaystyle xfin phi (d,c),gxin phi (d’,c’)}

to denote the actions.

Using the cartesian closure of

Cat{displaystyle mathbf {Cat} }

, the category of small categories, the profunctor

ϕ{displaystyle phi }

can be seen as a functor

where

D^{displaystyle {hat {D}}}

denotes the category

SetDop{displaystyle mathrm {Set} ^{D^{mathrm {op} }}}

of presheaves over

D{displaystyle D}

.

A correspondence from

C{displaystyle C}

to

D{displaystyle D}

is a profunctor

DC{displaystyle Dnrightarrow C}

.

Profunctors as categories[edit]

An equivalent definition of a profunctor

ϕ:CD{displaystyle phi colon Cnrightarrow D}

is a category whose objects are the disjoint union of the objects of

C{displaystyle C}

and the objects of

D{displaystyle D}

, and whose morphisms are the morphisms of

C{displaystyle C}

and the morphisms of

D{displaystyle D}

, plus zero or more additional morphisms from objects of

D{displaystyle D}

to objects of

C{displaystyle C}

. The sets in the formal definition above are the hom-sets between objects of

D{displaystyle D}

and objects of

C{displaystyle C}

. (These are also known as het-sets, since the corresponding morphisms can be called heteromorphisms.[1]) The previous definition can be recovered by the restriction of the hom-functor

ϕop×ϕSet{displaystyle phi ^{text{op}}times phi to mathbf {Set} }

to

Dop×C{displaystyle D^{text{op}}times C}

.

This also makes it clear that a profunctor can be thought of as a relation between the objects of

C{displaystyle C}

and the objects of

D{displaystyle 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[edit]

The composite

ψϕ{displaystyle psi phi }

of two profunctors

is given by

where

LanYD(ψ^){displaystyle mathrm {Lan} _{Y_{D}}({hat {psi }})}

is the left Kan extension of the functor

ψ^{displaystyle {hat {psi }}}

along the Yoneda functor

YD:DD^{displaystyle Y_{D}colon Dto {hat {D}}}

of

D{displaystyle D}

(which to every object

d{displaystyle d}

of

D{displaystyle D}

associates the functor

D(,d):DopSet{displaystyle D(-,d)colon D^{mathrm {op} }to mathrm {Set} }

).

It can be shown that

where

{displaystyle sim }

is the least equivalence relation such that

(y,x)(y,x){displaystyle (y’,x’)sim (y,x)}

whenever there exists a morphism

v{displaystyle v}

in

D{displaystyle D}

such that

Equivalently, profunctor composition can be written using a coend

The bicategory of profunctors[edit]

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[edit]

Lifting functors to profunctors[edit]

A functor

F:CD{displaystyle Fcolon Cto D}

can be seen as a profunctor

ϕF:CD{displaystyle phi _{F}colon Cnrightarrow D}

by postcomposing with the Yoneda functor:

It can be shown that such a profunctor

ϕF{displaystyle phi _{F}}

has a right adjoint. Moreover, this is a characterization: a profunctor

ϕ:CD{displaystyle phi colon Cnrightarrow D}

has a right adjoint if and only if

ϕ^:CD^{displaystyle {hat {phi }}colon Cto {hat {D}}}

factors through the Cauchy completion of

D{displaystyle D}

, i.e. there exists a functor

F:CD{displaystyle Fcolon Cto D}

such that

ϕ^=YDF{displaystyle {hat {phi }}=Y_{D}circ F}

.

References[edit]