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: theory: applied category theory

Topic: diagrams in Prof and optics


view this post on Zulip sarahzrf (May 01 2020 at 08:36):

absolutely livid to see my exact thoughts suddenly appearing on the arxiv, i was gonna write this paper dammit https://arxiv.org/abs/2004.04526

view this post on Zulip sarahzrf (May 01 2020 at 08:36):

anyway this is great

view this post on Zulip sarahzrf (May 01 2020 at 08:37):

(alright maybe "exact thoughts" is a slight overstatement)

view this post on Zulip sarahzrf (May 01 2020 at 08:39):

image.png

view this post on Zulip Arthur Parzygnat (May 01 2020 at 09:20):

Looks cool! Thanks for letting us know about it!

view this post on Zulip Arthur Parzygnat (May 01 2020 at 09:26):

And by the way, I've had this thought a few times in my life, too, @sarahzrf. Namely, I'm working on something, and suddenly I see a paper and I'm like "omg... did they just do everything I was doing and more!?" and I have a mini panic attack. But then I remind myself, "Hey, if I'm working on this, and so are other people, then that means I'm doing something right." And then after reading their work, I usually learn a lot more and often even find out it's not exactly the same as what I was doing and I have complimentary things to contribute to the overall discussion. Then I'm even more motivated to continue. Anyway, the point is that I've found these moments to actually do more help than harm.

view this post on Zulip Nathaniel Virgo (May 01 2020 at 09:47):

Brilliant, this looks like exactly what I was asking about here: https://categorytheory.zulipchat.com/#narrow/stream/229156-practice.3A-applied.20ct/topic/input-output.20machines/near/192520980

view this post on Zulip Nathaniel Virgo (May 01 2020 at 09:49):

In fact I see you reference my question in the paper! Nice.

view this post on Zulip Mario Román (May 01 2020 at 09:53):

sarahzrf said:

anyway this is great

Thank you, @sarahzrf ! :) I have been working on optics for a while now and I am happy to see this direction felt natural to you as well.

Sorry to hear if it caused a mini panic attack. I am preparing a better version of this right now that I hope I can share soon. If, in the future, you are still interested in the topic maybe we should put notes together and see what we can get.

view this post on Zulip Mario Román (May 01 2020 at 09:56):

Nathaniel Virgo said:

Brilliant, this looks like exactly what I was asking about here: https://categorytheory.zulipchat.com/#narrow/stream/229156-practice.3A-applied.20ct/topic/input-output.20machines/near/192520980

Yes, thank you! Your question is referenced as a motivating example in the introduction :) I was happy to have an example outside optics showing that it was not only me asking this question to myself.

view this post on Zulip sarahzrf (May 01 2020 at 19:12):

yeah, no, i was being mostly tongue-in-cheek about "absolutely livid" :)

view this post on Zulip sarahzrf (May 01 2020 at 19:13):

no mini panic attack heh

view this post on Zulip (=_=) (May 02 2020 at 01:57):

sarahzrf said:

yeah, no, i was being mostly tongue-in-cheek about "absolutely livid" :)

Ah, the great "Yeah, no" (or "Yeah, nah" Down Under), as discussed in Lifehacker, English Stackexchange and Mark Liberman's Language Log.

Serious question: how would a diagram(?) for the semantics of "yeah nah" and "nah yeah" look like?

view this post on Zulip Gershom (May 02 2020 at 02:26):

I am reminded of the famous story of a linguist who noted that the double negative could mean affirmation, but the double positive never meant negation, to which somebody in the audience (reputedly the mathematician Martin Kruskal) sarcastically responded "yeah, yeah."

view this post on Zulip John Baez (May 02 2020 at 02:27):

That is one of my favorite jokes. I didn't know there was a reputed actual guy who reputedly actually said that.

view this post on Zulip Verity Scheel (May 02 2020 at 02:49):

I usually see that joke with “yeah, right”, it’s also one of my favorites :D

view this post on Zulip Matteo Capucci (he/him) (May 02 2020 at 13:31):

Gotta shout out to @Mario Román for this paper, it's awesome. And gorgeous, with all those beautifully typeset diagrams.

view this post on Zulip Mike Shulman (May 02 2020 at 17:11):

FWIW, Wikipedia believes that the wag in the audience was Sidney Morgenbesser and the lecturer was the philosopher J. L. Austin, backing it up with three citations to eulogies or news articles (1, 2, 3).

view this post on Zulip Rich Hilliard (May 02 2020 at 18:47):

That's the way I heard it (Morgenbesser to Austin) back in early 80s around MIT Linguistics.

view this post on Zulip sarahzrf (May 13 2020 at 07:14):

ok wow i got sidetracked and left this one open in a tab for ages

view this post on Zulip sarahzrf (May 13 2020 at 07:14):

i finally read the section w/ pointed profunctors where the diagrams get "inflated"

view this post on Zulip sarahzrf (May 13 2020 at 07:14):

this is nuts, i gotta chew on it @_@

view this post on Zulip sarahzrf (May 13 2020 at 07:49):

this is wonderful
image.png

view this post on Zulip sarahzrf (May 13 2020 at 07:49):

but i wanna see diagrams showing how composition is done :smiling_devil:

view this post on Zulip David Michael Roberts (May 13 2020 at 07:54):

sarahzrf said:

absolutely livid to see my exact thoughts suddenly appearing on the arxiv, i was gonna write this paper...

Know the feeling. Drinfeld is now working with stuff I thought of 9 years ago. I couldn't get people to take me seriously at the time....

view this post on Zulip Mario Román (May 14 2020 at 10:50):

sarahzrf said:

but i wanna see diagrams showing how composition is done :smiling_devil:

This one? with the inflated diagrams I guess it is easier to see just the initial and final results.
opendiagrams-rest.pdf

view this post on Zulip sarahzrf (May 14 2020 at 14:08):

yeah, i kinda wanted to see the inflated version :)

view this post on Zulip sarahzrf (May 14 2020 at 14:08):

but it wasn't a real request to typeset, i figured it would be a pain

view this post on Zulip sarahzrf (May 14 2020 at 14:08):

jeez that looks like a pain to typeset, did you already have that laid out or did you make it just now o.O

view this post on Zulip Mario Román (May 14 2020 at 14:13):

sarahzrf said:

jeez that looks like a pain to typeset, did you already have that laid out or did you make it just now o.O

No, no, that was a Figure on a previous version of the paper :joy:

view this post on Zulip sarahzrf (May 14 2020 at 14:16):

hmm... it occurs to me to make a comparison between like...

view this post on Zulip sarahzrf (May 14 2020 at 14:16):

inflated diagrams are to string diagrams
as
type theories are to logics

view this post on Zulip sarahzrf (Jun 15 2020 at 02:53):

@Mario Román i've just been reading about diagrams for double categories & thinking about what they might be good for expressing in, say, Prof—have you considered anything like that?

view this post on Zulip sarahzrf (Jun 15 2020 at 02:54):

i was thinking that a heteromorphism is exactly a square from the horizontal id : 1 ⇸ 1 to the horizontal P : C ⇸ D, with domain and codomain given by the vertical sides

view this post on Zulip sarahzrf (Jun 15 2020 at 02:55):

you can also kinda express this with bicategory diagrams, but it's a bit more awkward

view this post on Zulip sarahzrf (Jun 15 2020 at 02:59):

anyway, in the notation in that paper, a heteromorphism of P : C ⇸ D in P(A, B) would look like

    | A          C
    |
  f o ------P------
    |
    | B          D

then if you chain a couple, it looks like

    | A          C₁
    |
  f o ------P------
    |
    | B          C₂
    |
  g o ------Q------
    |
    | X          C₃
    |
  h o ------R------
    |
    | Y          C₄

view this post on Zulip sarahzrf (Jun 15 2020 at 03:00):

so you can quite naturally compose heteromorphisms of different profunctors end to end, and then they have these bits trailing off on the right marking the profunctor they came from, and you can read off immediately that the composite heteromorphism belongs to P;Q;R

view this post on Zulip sarahzrf (Jun 15 2020 at 03:00):

whereas in the bicategory diagrams, you'd need to mess around a bit more to make this sensible

view this post on Zulip Jules Hedges (Jun 15 2020 at 10:05):

It's possible I'm getting mixed up, but I'm pretty sure Guillaume is already using David Jaz's double category diagrams in the double category of Tambara modules to study optics

view this post on Zulip Jules Hedges (Jun 15 2020 at 10:06):

Ok, it's not in his paper, but I definitely remember spending an afternoon with him covering a whiteboard in double category diagrams

view this post on Zulip Mario Román (Jun 15 2020 at 15:36):

sarahzrf said:

Mario Román i've just been reading about diagrams for double categories & thinking about what they might be good for expressing in, say, Prof—have you considered anything like that?

TL;DR: yes, thank you for bringing this, I agree. That should be a nice thing to do; probably not that much for the application I wanted but in general. I knew of David's work but had been paying more attention to the bicategorical case until Edward Morehouse and now you pointed this again to me. I guess that for my application the graphical calculus of symmetric monoidal double categories should work more or less similarly, and I guess a clear advantage of the double category is that it separates functors and profunctors nicely (avoiding the awkward: "left adjoint, but also Cauchy completion on the domain").

Long form: Thank you, @sarahzrf, for pointing that. I agree, I knew (the first part of) that paper; although I decided to go with monoidal bicategories because they were more familiar to me and they seemed to justify nicely the relation with monoidal diagrams. In any case, trying to use the double version of these things would be really nice. I understand that the idea would be to go to symmetric monoidal double categories. Also, Edward Morehouse (who I think is working on these) pointed me to the fact that I should be trying to see how the story worked in monoidal double categories; I think you both are right, that should be a clear "further work" on what I was doing. Let me try to link here what I know related to that, in case it helps anyone:

Maybe it was David Jaz Myers that proposed us to use these diagrams during the ACT school. I think David Dalrymple drew a lot of optics diagrams in double categories on Twitter. There is also this paper by Sprunger and Katsumata that I looked into and does something with "double categories with one object" (I think David Dalrymple also cites it). Also, Chad Nester may be able to say more on that, he was working with similar things at the same time (with different applications in mind).

But then I went back to monoidal bicategories for this paper. As you say, you can still repeat that in monoidal bicategories, it is just that you need to decide to bend some wire (which, in the particular application I wanted is fine, in general, it feels a bit awkward). The fact that it was awkward pushed me to consider the pointed profunctors. I learnt a trick like the one you mention from Marsden's "Category Theory using String Diagrams" (in Cat instead of Prof). I guess also an advantage of double categories over bicategories is to track which things are functors and profunctors. I was more focused on monoidal bicategories and getting that into a decent form, but it is true that a lot of people around me is using monoidal double categories.

view this post on Zulip sarahzrf (Jun 15 2020 at 16:03):

i do still think your open diagrams seem nicer than these for working with stuff atm—e.g., it's not clear to me how to deal with the monoidal structure on Prof here without having to go 3 dimensional

view this post on Zulip sarahzrf (Jun 15 2020 at 16:04):

just, i was struck by the fact that the first, really basic use cases for open diagrams seem to be automatically captured by double category diagrams very nicely

view this post on Zulip sarahzrf (Jun 15 2020 at 16:05):

and i was wondering if maybe that's a hint toward a more principled basis for open diagrams, or a generalization of them, etc etc

view this post on Zulip sarahzrf (Jun 15 2020 at 17:15):

aaahh okay if you did go 3d then these would be your cross sections image.png

view this post on Zulip Mario Román (Jun 15 2020 at 18:24):

Yes, exactly. These are cross sections. References to that should be on the paper (Schommer-Pries' thesis, and an article by Bartlett, if I remember correctly). An open diagram encodes a derivation from the empty diagram, I think that is maybe the parallelism you want (?) (both if you use bicategories like on that paper or double categories)

view this post on Zulip sarahzrf (Jun 15 2020 at 18:25):

how do you typeset the diagrams in that paper?

view this post on Zulip Mario Román (Jun 15 2020 at 18:30):

A mixture of online editors, like Tikzit and mathcha, with then editing the Tikz code by hand. It takes patience, but it worked for me

view this post on Zulip Cole Comfort (Jun 15 2020 at 20:15):

One could alternatively use the tikz code of Bartlett et al where they use "bubbles" rather than "sheets". You can just download the source code and copy it.
https://arxiv.org/abs/1509.06811

I haven't fully read your paper @Mario Román , but I am curious what does your paper provide in addition to the paper which I mentioned. Is it that you are elaborating on the example of optics using their notation?

view this post on Zulip sarahzrf (Jun 15 2020 at 20:25):

partial answer: image.png

view this post on Zulip sarahzrf (Jun 15 2020 at 20:32):

tangentially: i followed the citation to the bartlett et al paper earlier today—i hadnt bothered before—and from a quick scroll to check out what their diagrams are like, a couple of things they pointed out / drew seem rly interesting to me:
image.png
image.png

view this post on Zulip sarahzrf (Jun 15 2020 at 20:36):

  1. it somehow didn't 100% occur to me from the description in @Mario Román's paper that a diagram for a profunctor defines a space, and then the internal diagrams are the diagrams you can draw in that space—i think part of it was that since you can glue together open diagrams as wholes, i kept sort of thinking of the bubble and the diagram inside it as one collective thing

  2. oh hey i hadn't quite noticed that the topology of the outer diagram determines the topology of the space you're making your inner diagrams in and changes their equational properties

view this post on Zulip sarahzrf (Jun 15 2020 at 20:38):

or, like... on point #2, that's not quite the right description, but it's at least along the same lines of what im trying to describe—like, u can see how in that 2nd diagram in the 2nd image i posted, that loop could be pulled up just fine if we were in a plane, but it can't go thru the hole as-is

view this post on Zulip sarahzrf (Jun 15 2020 at 20:39):

...except it doesnt rly make sense to suggest doing that, since bits of diagram that fit in one piece of pipe can't go in another piece of pipe—they're heteromorphisms of that particular profunctor—but it still feels like something is going on here...

view this post on Zulip sarahzrf (Jun 15 2020 at 20:40):

i meant to work out this bit in mario's paper and i forgot to come back to it and it never 100% clicked, especially the fact that it's apparently part of an adjunction
image.png
seems relevant?

view this post on Zulip sarahzrf (Jun 15 2020 at 20:41):

oooh right ok that's literally what they're applying there :sweat_smile:

view this post on Zulip Mario Román (Jun 16 2020 at 09:40):

Cole Comfort said:

One could alternatively use the tikz code of Bartlett et al where they use "bubbles" rather than "sheets". You can just download the source code and copy it.
https://arxiv.org/abs/1509.06811

I haven't fully read your paper Mario Román , but I am curious what does your paper provide in addition to the paper which I mentioned. Is it that you are elaborating on the example of optics using their notation?

Let me be first totally clear that the answer is "not much" if the interest is on the monoidal bicategories themselves (for that I am using these references) instead of the application. The goal of the paper is not to create another tool but to apply the existing tool of the graphical calculus of monoidal bicategories to a problem (the proposal of pointed profunctors is what I am using to present this differently). The rest of the answer is longer:

The problem is not as much optics but all other "combs", "input-output machines" and diagrams-with-holes-like things (causality, games, learners, categories with feedback, there was even a discussion on zulip recently on how to try to approach these things (link)). I think the contribution of this paper is to make the distance from "this would be almost a diagram in a monoidal category but it is not and it is difficult to reason graphically about it" to "I could use monoidal bicategories and there this would be totally formal" smaller for an audience that, like me, was in principle not even thinking of being working with monoidal bicategories; and does not necessarily know any of the prerequisites for quantum field theory. So, I want to make clear that the goal (or the claim) was not to develop the graphical calculus of monoidal bicategories, internal diagrams for quantum, or to provide anything new on that (instead, I just send the reader to the previous work there).

Having said this, I only identified [BDSPV] and added the references to all of this after I had written most of the text. This is partly why the presentation of the same idea in this text is this different. In particular, they say:

We do not need to, and do not, make this notion of an ‘interior morphism’ geometrically precise; the equalities (46–49) provide the foundation and formalism for the internal string diagram calculations, and the pictures (50) are merely a convenient graphical mnemonic notation. [BDSPV, §4.2]

We already had a convenient notation for open diagrams (e.g. Riley, on optics), but I also wanted to have a category in which they were a particular case of the calculus of monoidal bicategories. This is why I take the time to explain the monoidal bicategory of pointed profunctors and my notation is different, instead of just taking it from BDSPV. What I may be providing in addition to BDSPV is the proposal of using Prof\mathbf{Prof}^\ast to reduce the justification of internal diagrams to the justification of calculi for monoidal bicategories. This seemed important for my application; it is a minor comment that seems to be missing on BDSPV and that, to the best of my limited knowledge, seems to justify the calculus even better than "a convenient mnemonic notation". This is why I use diagrams in the monoidal bicategory of pointed profunctors instead of internal diagrams. But again, this minor change is not the goal of the paper.

On notation: this may be psychological but, if I imagine the wires inside 3d bubbles, I think I can braid them (maybe it is just me, but isn't a braided category precisely that (?)). However, I remember to understand the goal on BDSPV is also general monoidal categories, I guess BDSPV would go on that concern by still using the same notation if the categories they deal with are not braided. I preferred to stick to a functor-box-like notation partly because of this and uniformity.

The shorter version for ACT does not make all of this discussion; it just makes everything fit as a particular case of the calculus of monoidal bicategories (Schommer-Pries, Bartlett, Vicary, Douglas; the references for this are still the same). This was because I just do not feel confident that I completely follow how they address those concerns; and I wanted to use the calculus of some monoidal bicategory. The 2nd arxiv'd version of my paper (no page limits, yay!) takes longer but does this discussion. It not only references the rest of the work by Bartlett, Douglas, Schommer-Pries and Vicary but specifically [BDSPV] as the same idea of inflating diagrams. I actually found it via Nick's Hu thesis, also referenced there. On retrospective, and after having received feedback, I think this discussion deserves to be also on the short version more prominently to make the readers also follow the link to quantum field theory.

view this post on Zulip Guillaume Boisseau (Jun 20 2020 at 14:46):

@Jules Hedges indeed I had (framed) double categories in mind when doing diagrams in Tamb. The oriented-wire notation is partly from there too