Category Theory
Zulip Server
Archive

You're reading the public-facing archive of the Category Theory Zulip server.
To join the server you need an invite. Anybody can get an invite by contacting Matteo Capucci at name dot surname at gmail dot com.
For all things related to this archive refer to the same person.


Stream: learning: questions

Topic: ✔ A confusion with the source-target of structured cospans


view this post on Zulip Adittya Chaudhuri (Aug 30 2025 at 12:58):

Given a functor F ⁣:AXF \colon \mathsf{A} \to \mathsf{X}, @John Baez and Kenny Courser defined a structured cospan as a cospan in X\mathsf{X} of the form F(a)ixoF(b)F(a) \xrightarrow{i} x \xleftarrow{o} F(b) in the Section 2 of this paper. Now, when the category A\mathsf{A} and X\mathsf{X} have finite colimits and FF preserves them, then one can define a symmetric monoidal double category whose objects are objects of A\mathsf{A} and horizontal 1-morphisms from aAa \in \mathsf{A} to bAb \in \mathsf{A} consists of the structured cospans of the form F(a)ixoF(b)F(a) \xrightarrow{i} x \xleftarrow{o} F(b).

My question is the following:

Let F(a)=F(a)F(a)=F(a') and F(b)=F(b)F(b)=F(b') such that aaa \neq a' and bbb \neq b'. Then, in a way, a horizontal 1-morphism F(a)ixoF(b)F(a) \xrightarrow{i} x \xleftarrow{o} F(b) has atleast two sources viz. aa and aa' and atleast two targets viz. bb and bb'. I must be misunderstanding something fundamentally, as the above sounds a bit awkward.

However, if FF admits a right adjoint G ⁣:XAG \colon \mathsf{X} \to \mathsf{A}, then as shown by Baez-Courser here in page 6 that F(a)ixoF(b)F(a) \xrightarrow{i} x \xleftarrow{o} F(b) is same as the cospan aiG(x)oba \xrightarrow{i} G(x) \xleftarrow{o}b in A\mathsf{A}. In that case, my confusion does not arise. However, in the same paper, Baez-Courser discussed that it is convenient to consider the structured cospan in the form of F(a)ixoF(b)F(a) \xrightarrow{i} x \xleftarrow{o} F(b).

Now, in this paper, @Evan Patterson and others considered the right-adjoint version of structured cospans to define open signed graphs (as horizontal 1-morphisms) in Proposition 2.4 and to define open signed categories (as horizontal 1-morphisms) in Proposition 2.10. So, in this case, my confusion about "multiple source-target of a horizontal 1-morphism" does not arise. However, in this paper @John Baez and @Jade Master defined open petri nets in the form of F(a)ixoF(b)F(a) \xrightarrow{i} x \xleftarrow{o} F(b). So, again, I am getting a bit confused with the said "source-target issue".

I have a feeling that I am misunderstanding something very fundamentally, which I am not able to see at the moment , where exactly I am misunderstanding. I apologise priorly, if my question sounds very naive.

view this post on Zulip John Baez (Aug 30 2025 at 13:42):

Adittya Chaudhuri said:

Given a functor F ⁣:AXF \colon \mathsf{A} \to \mathsf{X}, John Baez and Kenny Courser defined a structured cospan as a cospan in X\mathsf{X} of the form F(a)ixoF(b)F(a) \xrightarrow{i} x \xleftarrow{o} F(b) in the Section 2 of this paper. Now, when the category A\mathsf{A} and X\mathsf{X} have finite colimits and FF preserves them, then one can define a symmetric monoidal double category whose objects are objects of A\mathsf{A} and horizontal 1-morphisms from aAa \in \mathsf{A} to bAb \in \mathsf{A} consists of the structured cospans of the form F(a)ixoF(b)F(a) \xrightarrow{i} x \xleftarrow{o} F(b).

My question is the following:

Let F(a)=F(a)F(a)=F(a') and F(b)=F(b)F(b)=F(b') such that aaa \neq a' and bbb \neq b'. Then, in a way, a horizontal 1-morphism F(a)ixoF(b)F(a) \xrightarrow{i} x \xleftarrow{o} F(b) has at least two sources viz. aa and aa' and at least two targets viz. bb and bb'. I must be misunderstanding something.

Right, you're misunderstanding something. It's impossible for a morphism to have two different sources or two different targets.

In category theory (and double category theory) we're not allowed do ask whether morphism from aa to bb is equal to a morphism from aa' to bb' unless a=aa = a' and b=bb = b'. It's a 'type error' to ask that sort of question, as you're now doing.

One way to ensure that this is impossible to ask this sort of question is to decree a morphism in a category (or double category) to be a triple consisting of its source aa, its target bb and then fhom(a,b)f \in \text{hom}(a,b).

The best way may be to use some type theory, but I don't want to get into that.

So, let's take the first approach. Then, in the double category of structured cospans, a horizontal morphism is a triple consisting of an object aAa \in \mathsf{A}, an object bAb \in \mathsf{A} and a diagram

F(a)ixoF(b)F(a) \xrightarrow{i} x \xleftarrow{o} F(b)

in X\mathsf{X}.

So, it's impossible for this morphism to also have some source aa' unless a=aa' = a, or target bb' unless b=bb' = b.

In our paper, Kenny and I weren't so pedantic. We assumed the readers knew that in category theory it's against the rules to ask if a morphism in one homset is equal to a morphism in some other homset. So, we just said a horizontal morphism from aa to bb is a structured cospan

F(a)ixoF(b)F(a) \xrightarrow{i} x \xleftarrow{o} F(b)

This defines the homset hom(a,b)\text{hom}(a,b). It's up to the reader to make sure the set of all horizontal morphisms is the disjoint union of these homsets.

view this post on Zulip Adittya Chaudhuri (Aug 30 2025 at 14:01):

Thanks very much. I got now where exactly I was misunderstanding.

view this post on Zulip Notification Bot (Aug 30 2025 at 14:01):

Adittya Chaudhuri has marked this topic as resolved.

view this post on Zulip Mike Shulman (Aug 30 2025 at 15:28):

FWIW, the definition of a category with a family of homsets doesn't require type theory.

view this post on Zulip John Baez (Aug 31 2025 at 10:09):

Yes. However, viewing that definition through the eyes of material set theory, one can still get distracted by questions like "what if the same morphism is an element of two distinct homsets?" - as @Adittya Chaudhuri was in this thread.

I believe nothing bad can happen with that definition even if a morphism is an element of two distinct homsets. You just have to keep in mind things like: in this framework, composition is not a single operation, but a bunch of different operations, so fgf \circ g does not make sense unless you say which \circ operation you mean. (The nLab article just writes fgf \circ g.)

However, all this is easily confusing and distressing to beginners.