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: colored operad definition confusion


view this post on Zulip Asad Saeeduddin (Sep 16 2021 at 07:20):

I've been trying to work with colored operads in a typed language. I was basing my work on the following definition from this ncatlab page:

image.png

after spending a couple evenings locked in combat with the typechecker i decided to give up and draw some stuff on a whiteboard. now that i've done so, i don't understand how this definition should work. specifically, regarding this bit:

image.png

the definition seems to suggest that the composition of a 1-tuple (c) should exist. but i can't figure out how to make this work in a graphical interpretation as a tree (presumably this represents some kind of disembodied root with no children). when composing, it seems to be impossible to do anything sensible with the composition of any tree with a forest involving a "disembodied root". i suppose this is also how i should interpret the typechecker's resistance

so my main question here is, am i reading the definition wrong or thinking about it/implementing it wrong? is the composition operation supposed to be defined for empty forests?

view this post on Zulip Amar Hadzihasanovic (Sep 16 2021 at 07:28):

For a 1-tuple (c)(c), you get a “composition operation” P(;c)P(;c)P( ; c) \to P( ; c), which the axioms should ensure is just the identity. Algebraically you should think of P(;c)P( ; c) as the “constants of colour/type/sort cc”.

view this post on Zulip Amar Hadzihasanovic (Sep 16 2021 at 07:28):

That is, they are operations without any inputs.

view this post on Zulip Amar Hadzihasanovic (Sep 16 2021 at 07:29):

Because of that, you can't plug anything “into” them, but they can be plugged “into” other operations; in the tree picture, the latter will reduce the number of leaves of the tree...

view this post on Zulip Asad Saeeduddin (Sep 16 2021 at 07:59):

@Amar Hadzihasanovic thank you for explaining. so the composition operation when the tree has no inputs works out very nicely, just as you say (you simply discard the forest you are to compose it onto and return the tree). where i run into difficulties is when these "no-input" trees show up in the forest side of the composition.

if i imagine the free colored operad generated by any given directed hypergraph, a multimorphism represents:

note that unless i ask for additional equipment, it seems that this doesn't give me any way of "capping off" or "duplicating" links in the tree. roughly speaking, what we're describing pertains to a symmetric monoidal category, not a cartesian one (at least yet).

so this is a multicategory. this means, given a forest of such trees, and another tree, such that the roots of the former match the leaves of the latter, i'm supposed to construct a tree representing their composition. but when one of the trees in the forest is a "no-input" tree, what exactly should be the result? specifically, what is supposed to happen to the "leaf link" that agreed with the no-input tree's root?

view this post on Zulip Asad Saeeduddin (Sep 16 2021 at 08:15):

sorry, i'm being incredibly long winded here: a more concise way to say this is that if composition is defined on a nullary list of predecessors, we essentially get what looks like the "weakening" of a cartesian multicategory, allowing you to drop arbitrary parts of the "context". requiring this to exist in an arbitrary multicategory seems wrong (or at least "non-linear")

view this post on Zulip James Deikun (Sep 16 2021 at 09:45):

You don't need to drop arbitrary parts of the context; the nullary operation itself provides a way to drop the specific part of the context in question.