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 all, I think I've found a way to draw string diagrams in 3 dimensions. Here is a cube of a triple category. cube.png
The cube connects the inner square to the outer square. The four beads are the side faces of the cube.
Cubes compose in three ways: horizontal, vertical, and transversal. cube-comp-h.png cube-comp-v.png cube-comp-t.png
Let me know what you think!
If the cube isn't obvious, here's a picture: cube-exp.png
Interesting. Am I right that the horizontal and vertical compositions don't graphically enforce that the entire faces being composed along match up?
It is enforced: you compose along one of the four beads, which is an entire face of the cube. If two cubes are composable along a face, they share a bead on the left & right or top & bottom - but the two will appear as mirror images of each other, because the cube is viewed from inner to outer.
You have to learn to read from inner to outer. It feels weird at first, because diagrams appear "upside down" on the top face and "backwards" on the left face; but it's actually been easy to become normal.
What I mean is that it's possible to draw a picture in which those two brown beads are different. The fact that they have to be the same is an extra requirement, not imposed by the shape of the pictures.
In contrast to how in an ordinary string diagram, the fact that domains and codomains match in a composition is enforced by the fact that each string in the picture has a single label, rather than an extra requirement that two distinct objects in the picture must have the same label.
I understand.
Okay, so I drew it this way to show the face of composition; but in practice, "the middle disappears" when you compose - these two beads matching is a rule on composition, and then you just get a cube like this: cube-comp-h-red.png
Does that version provide a place to label the vertical arrow in the "outside" of the face being composed along?
Christian Williams said:
Hello all, I think I've found a way to draw string diagrams in 3 dimensions. Here is a cube of a triple category. cube.png
ha, very clever!
Mike Shulman said:
Does that version provide a place to label the vertical arrow in the "outside" of the face being composed along?
No - I first drew the "rule of composition", conditioned by matching in the middle, as in . But then in this cube above it disappears, as in ; it can no longer be composed along, so it is not needed in the diagram.
But just as in ordinary composition, one can still use supplemental notation to record how the composite was formed, ie for horizontally composing along the transformation .
so you have two ways of drawing, one "reduced" with no conditions and you lose the middle label, and one "full" with the middle label plus the condition that the two face-beads match. I think this is all analogous to lower dimensions.
In an ordinary string diagram, the string being composed along is still present and labeled in the diagram.
I'm not trying to be too critical of your syntax; it looks intriguing! I'm just trying to understand the differences.
yes, I understand. I think there's just a couple necessary but small caveats to drawing in the third dimension.
one just has to understand that composing is matching faces, not only edges.
update: the general form of a cube is a bit more than I first drew; see below.
cube-2.png
the outward edges and faces can be arbitrary composites, so we need a notation to delineate where the face starts and stops. for now, using dotted black lines seems to work fine.
for example, here is the associator of a double category, an invertible 3-cell: cube-assoc.png
I think it also helps to make the third dimension more clear.
yesterday @Mike Shulman noticed that so far these cubes have composite domain 2-cell but only a single codomain 2-cell (the outer square, with a big transparent "bead" covering up the inner square). how can we draw a cube with a composite codomain?
well one way to get a cube from a composite to a composite, we can of course compose two cubes, as drawn above horizontally and vertically. then, how do we generalize that picture to denote that the connecting faces are not just composites of single ones for each part of the composite?
here's my attempt so far - just draw one big bead from the inner composite to the outer composite. comp-cod.png
it may look silly, but it might be sufficient. I'm not sure
I think there's probably no need for the bending, actually; just a big bead straight across
okay, I was misleading myself by starting with a horizontal composite. there is no need for the middle brown bead, it's much simpler.
hm, but you still need the brown string to show that the outer face is a composite.
the middle dotted lines mean "no connection between light green and dark green, except for however they are connected by the big bead"
it's like a bridge passing over, and the light colors passing under, no connection between them
whatever notation works best so that the brown string can be there, to show the outer face as a composite
I don't understand what this means.
to draw a cube whose source and targets are both horizontal composites, I'm saying all we need to add to the picture is the vertical morphism along which the target square is a composite. and I'm noticing that it's consistent to simply draw the brown string there between them, floating above the source square; it's not blocking the view of anything below it, because displaying the composite source square requires duplicating its middle vertical morphism (the beige string connecting light green to light yellow) inside each "window bead" of the target.
Could you perhaps give names to all the objects and morphisms and cells? I have a lot of trouble referring to them as "the brown string" and "the beige string".
And label them in the diagram?
ah yes, sorry about that. here it is cube-hcomp-label.png
the source is the composite , and the target is the composite
the cube is framed by , etc. (I forgot to label the transversal but one can infer them.
any way, what I was saying is that if we duplicate , so the beads of the source composite sit inside the beads of the target composite, then we can include in the drawing, the string along which the target beads are composed. we only need some notation like these dotted lines to indicate "no connection between and , former is in the source and latter is in the target"
it's just like poking two holes in a box, rather than one.
Christian Williams said:
the source is the composite , and the target is the composite
I don't see anything labeled or any of those other things.
Could you maybe draw the same thing in ordinary notation, so I can compare?
Thanks! So where are the cells notated in the string diagram picture?
and are the two inner beads, and are the two outer beads.
Can you label them please?
Okay. So what would you draw if the transversal domain is just a single cell and the codomain is a composite pair of them?
we can make either one the inner beads the identity. the two choices are equal
What if the transversal domain is a composite of three cells?
Or if the transversal domain is the composite of two cells horizontally and the transversal codomain is the composite of two cells vertically?
I'm proposing that in general we can add identities as needed, to express domain and codomain as the same form of composite
That seems very artificial.
I think I would find it easier to read with the codomain just given as a separate 2D diagram if necessary.
I really think it's fine. identities are very useful in 2D strings, to make more clear standard forms. std-form.png
in all my drawings, beads are rectangles, giving both domain and codomain the same amount of space, even if they are very different sizes of composites. it gives each concept a clear and standard appearance.
now the issue is just more obvious in 3D, because there is the aspect of depth and visibility. but it's the same idea
if you see a serious problem, let me know. otherwise it's a matter of preference; one can always slice the cube as needed.
Indeed, I was just letting you know what my preference would be. (-:
I'm impressed at how much you've managed to expressed in a (beautifully colourful) planar diagram @Christian Williams! How are you producing these?
thanks! I'm drawing them on Notability
when I finish the thesis, I hope to work with a programmer to make an interactive app for string diagrams