To sum up what I think I learned regarding my original question:
- It's convenient to think of the "category of elements" construction as fundamentally being one on profunctors rather than just presheaves. In this sense, it can be viewed as a generalisation of the arrow category construction.
- Comma categories are then a particularly nice instance of these, arising as the category of elements of Hom(F−,G−) viewed as a profunctor from D to C, for F:C→E and G:D→E.
- The category of elements of a profunctor gives a notion of graph of a profunctor. The other notions of graph come from the compact closed bicategory structure on Prof - explicitly, that profunctors C×D→E naturally correspond to profunctors C→Dop×E.
Ruby Khondaker (she/her) has marked this topic as resolved.
Bryce Clarke said:
Comma categories are examples of categories of elements of a distributor or profunctor. Given a distributor P:A↛B viewed as a functor Aop×B→Set, its category of elements El(P) has objects given by triples (a∈A,b∈B,p∈P(a,b)) and morphisms (f,g):(a,b,p)→(a′,b′,p′) given by morphisms f:a→a′ in A and g:b→b′ in B such that P(f,1b′)(p′)=P(1a,g)(p).
In praise of @Bryce Clarke's message which I found very enlightning a big month ago, let me share a small application of this viewpoint that I hope will illustrate its elegance.
I follow the notations of the quoted message. Let C be a monoidal category and ⊥ be an object of C. We consider the associated category of Chu spaces:
- whose objects are triples (a,b,p) where a and b are two objects of C and p:a⊗b→⊥ is a morphism of C,
- whose morphisms (a,b,p)→(a′,b′,p′) are pairs of morphisms f:a→a′ and g:b′→b which verify the "adjunction-like" equation
p′∘(f⊗1b′)=p∘(1a⊗g)
This category, of Chu spaces built from C and ⊥, is exactly the category of elements of an appropriate profunctor! namely P:C↛Cop given by the formula
P(a,b):=C(a⊗b,⊥)
You should add this observation to the nLab article [[Chu construction]] :)
Vincent Moreau said:
This category, of Chu spaces built from C and ⊥, is exactly the category of elements of an appropriate profunctor! namely P:C↛Cop given by the formula
P(a,b):=C(a⊗b,⊥)
Is this the same as the category of elements of the comma ⊗/⊤→C×C?