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.
A new paper will hit the arXiv this week:
Abstract. One goal of applied category theory is to understand open systems. We compare two ways of describing open systems as cospans equipped with extra data. First, given a functor , a structured cospan is a diagram in of the form . If and have finite colimits and preserves them, it is known that there is a symmetric monoidal double category whose objects are those of and whose horizontal 1-cells are structured cospans. Second, given a pseudofunctor , a decorated cospan is a diagram in of the form together with an object of . Generalizing the work of Fong, we show that if has finite colimits and is symmetric lax monoidal, there is a symmetric monoidal double category whose objects are those of and whose horizontal 1-cells are decorated cospans. We prove that under certain conditions, these two constructions become isomorphic when we take to be the Grothendieck category of . We illustrate these ideas with applications to electrical circuits, Petri nets, dynamical systems and epidemiological modeling.
So, this paper does two things.
First, it fixes a bunch of applications of decorated cospans. Given a symmetric lax monoidal functor , Brendan Fong proved that there is a symmetric monoidal category with objects of as its objects and equivalence classes of decorated cospans
as its morphisms. Such categories were used to describe a variety of open systems: electrical circuits, Markov processes, chemical reaction networks and dynamical systems. Unfortunately, many applications of decorated cospans were flawed. The problem is that while Fong's decorated cospans are good for decorating the apex with an element of a set , they are unable to decorate it with an object of a category. We generalize decorated cospans to do this.
Second, we give sufficient conditions for a decorated cospan double category to be equivalent - and in fact, isomorphic - to a structured cospan double category.
Suppose has finite colimits and is a symmetric lax monoidal pseudofunctor. Then each category for becomes symmetric monoidal, and becomes a pseudofunctor . Using the Grothendieck construction, also gives an opfibration where . Let be the 2-category of categories with finite colimits, functors preserving finite colimits, and natural transformations. We show that if factors through as a pseudofunctor, the opfibration is also a right adjoint. From the accompanying left adjoint , we construct a symmetric monoidal double category of structured cospans. In our main result, our Theorem 3.2, we prove that this structured cospan double category is isomorphic to the decorated cospan double category coming from . In fact, they are isomorphic as symmetric monoidal double categories.
We illustrate these ideas with examples from electrical circuits, Petri nets, dynamical systems and @Evan Patterson and @James Fairbanks' work on epidemiological modeling. It seems that our theorem handles most cases where open systems can be described either by structured or decorated cospans. But we also give an example - open dynamical systems - that can be described by decorated cospans but not structured cospans.
It is curious that open dynamical systems cannot be described by structured cospans :thinking:
I've expressed some concern about the presentations I've seen on open dynamical systems. In the presentations I've seen, dynamical system were defined in terms of tangent vectors. I've suggested defining them instead in terms of covectors. For example, in the paper, I see
We briefly discussed Sophie Libkind's talk (with Sophie) on the Julia Zulip. At one point in the talk, she was required to "pullback" a dynamical systems and because the system was defined in terms of tangent vectors, this pullback did not feel 100% natural to me. I suggested considering the same dynamical system in the form
I see the world through the lens of discrete differential geometry. In DDG, I can't even write down a dynamical system as a tangent vector, but covectors like the above are perfectly natural in DDG. Also, writing dynamical systems as covectors makes it obvious how to extend to stochastic differential equations. The fact that the tangent vector expression and the cotangent expressions are equivalent is a special feature of smooth continuuum manifolds that is not valid in more general settings such as DDG.
I could be wrong, but I suspect that if you change the way you look at open dynamical systems from tangent vectors to cotangent vectors, they might also be described by structured cospans. In fact, a lot of the CT I've been doing the past couple of months has been trying to prepare myself to understand this stuff enough to prove that myself.
Eric Forgy said:
It is curious that open dynamical systems cannot be described by structured cospans :thinking:
It makes a lot of sense. Structured cospans always rely on a functor from the category where the feet of our structured cospans live to the category where the apex of our structured cospan lives. For structured cospans to work well needs to have some properties. All these properties hold when is a left adjoint, and that's typically the case in examples.
So, we should think of objects of as having "more structure" than objects of , and as "freely" giving objects of that extra structure. A classic example would be where is the category of sets, is the category of graphs, and turns a set into the graph with that set of vertices and no edges. This is a left adjoint, so is "freely" turning a set into a graph.
In the case of open dynamical systems, would be a category of something like "spaces without vector field" and would be a category of something like "spaces with vector field" - that is, dynamical systems!
There is a functor sending any space without vector field to a space with vector field: namely, you give that space the zero vector field. This is the only functorial choice. However, the resulting functor doesn't have the properties needed to make structured cospans work well. For example, it's clearly not a left adjoint.
In short, the problem is that there's no really good "free dynamical system on a space", at least not if a dynamical system is something like a vector field. And I don't think differential forms would help.
But decorated cospans work differently. The apex of a decorated cospan still has more structure than the feet, but there doesn't need to be a "free" way to give the feet that extra structure.
So decorated cospans work fine for open dynamical systems.
Our paper gives sufficient condition for a decorated cospan category to be a structured cospan double category. "Open graphs" meet these conditions but "open dynamical systems" do not. The reason is basically what I just said. We talk about this at the end of Section 5 of our paper.
Thank you for explaining that. I'll come back when / if I have something more concrete to say.
I’m glad to have more of this written up and can’t wait to digest it!
The proofs are quite technical, but main theorem relating structured cospans and decorated cospans is nice. Well, even the theorem statement may sound technical to some - I explained it a few comments up - but it's really not bad, and we illustrate it with boatloads of examples, starting with simple ones and leading up to your work on models of coronavirus!
What we say in Section 5.4 should justify any sort of interplay between structured and decorated cospans that you were forced into.
Thanks for the overview, and congrats on finishing the paper! I look forward to reading it.
If you have questions, just ask! The theorems are a lot easier to understand than their proofs... luckily the theorems are true so you don't need to know the proofs. :upside_down:
True theorems, the best kind!