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.
Hello,
Over the past several weeks, I've developed some rudimentary intuition for spans. I think of them as generalizations of functions (i.e. multi-valued partial functions). An endomorphism in is a directed graph.
Now, I am hoping to develop a similar intuition for cospans. I can see that it is related to inputs and outputs, but my intuition kind of stops there at the moment. How should we think about cospans in terms of familiar things? "Familiar" being vaguely what someone with a degree in physics/engineering, but little to no exposure to CT, might know.
Can't you make a cospan into a span by working in an opposite category? Then maybe your intuition would apply already to that?
To some extent :blush:
For example,
but how about ?
Maybe that helps more than I original thought if I try to think about but my intuition is not so great with either :sweat_smile:
However, I supect their should be some ways to develop intuition directly with cospans and that is what I'm after :blush:
If you think of spans as "proof-relevant relations", then you can think of a cospan as a "proof-relevant corelation". (Like a relation is a subset of a cartesian product, a corelation is a quotient of a disjoint union. If you didn't meet them before, they're super intuitive once you've drawn a bunch of dots with some circles around them)
This has a nice intro :+1:
but the example with directed graphs seems special since a directed graph is already a span, so the example is a cospan of spans. Still helpful :+1:
This also has a nice discussion:
Eric Forgy said:
To some extent :blush:
For example,
but how about ?
Well,
When developing the theory of span or cospan (bi)categories, it's good to know that
so any theorem about span categories is also a theorem about cospan categories, and vice versa!
However, spans in are very different than cospans in , so it's good to know a battery of theorems about each one.
Spans and cospans between two fixed sets X and Y are related as well. Given a cospan you can get a span where B contains an element (x,y) mapping to x and y whenever x and y map to the same element in the cospan. This is a 0-dimensional version of the comma category construction. Dually given a span , you can get a cospan by taking preimages...i .e. a cospan mapping x and y to e whenever there is an element in your span mapping to x and y. This is the 0-dimensional cocomma construction.
iirc. These two constructions form an idempotent adjunction and factor through Bool-profunctors between X and Y.
Check out the end of this article for more info: https://ncatlab.org/nlab/show/profunctor
Jade Master said:
Spans and cospans between two fixed sets X and Y are related as well. Given a cospan you can get a span where B contains an element (x,y) mapping to x and y whenever x and y map to the same element in the cospan. This is a 0-dimensional version of the comma category construction. Dually given a span , you can get a cospan by taking preimages...i .e. a cospan mapping x and y to e whenever there is an element in your span mapping to x and y. This is the 0-dimensional cocomma construction.
Is this not just the pullback and pushout?
That might be a simpler way to think about it...
Yeah I'm pretty sure that's right because comma and cocomma categories are lax pullbacks and pushouts.
Jade Master said:
Spans and cospans between two fixed sets X and Y are related as well. Given a cospan you can get a span where B contains an element (x,y) mapping to x and y whenever x and y map to the same element in the cospan.
If I understand you correctly, this is called "taking the pullback".
A cospan is precisely the sort of diagram you can take the pullback of, getting the span
As you said, contains an element mapping to and whenever and map to the same element in .
Okay, so Cole already said this! I often respond to a post and then scroll down and see people already said the same thing. But I hope it's not too unpleasant to hear different people say the same thing in different ways.
:+1:
If a category has pullbacks, there is a bicategory whose
If is furthermore a cartesian monoidal category with pullbacks (hence finitely complete), then
which relates spans to bimodules. This was a fun journey spelled out in another stream here.
Similarly, if a category has pushouts, you can form the obvious bicategory
with composition of cospans given by the pushout of the span connecting adjacent cospans.
If is cocartesian monoidal with pushouts, then
I find all this super fascinating which is why I'm trying to gain better intuition for cospans :blush:
Jade Master said:
That might be a simpler way to think about it...
I think it funny when I am studying something from a really abstract perspective without realizing that I already know it much better in more concrete terms.