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.
I recently learned about combinatorial species (which I find particularly beautiful).
Let be the groupoid of finite sets and bijections. A species is defined as a functor .
There is a notion of composition of species. If and are two species, and is a finite set, then
I.e., a structure is specified by
This is clearly not the composition as endofunctors on .
My first question is: do the two compositions relate in some way?
Second, for fun, I wanted to see what happens if we ask the endofunctor to "act like a monad" with respect to the species composition. I.e., (at least) to have a natural transformation . It seems that we obtain "tree-like" structures that can be grafted together. (it reminded me of operad, but I know very little beyond the definition, so I'm not sure).
Second question: does this "act like a monad w.r.t. the species composition" make sense?
Any species defines an endofunctor by
where I'm identifying with some -element set, and the symmetric group acts on both and in the obvious ways. This formula should remind you strongly of a Taylor series, and functors of the form are called analytic functors.
Composition of species corresponds to composition of analytic functors:
Peva Blanchard said:
Second, for fun, I wanted to see what happens if we ask the endofunctor to "act like a monad" with respect to the species composition. I.e., (at least) to have a natural transformation . It seems that we obtain "tree-like" structures that can be grafted together. (it reminded me of operad, but I know very little beyond the definition, so I'm not sure).
Very smart!
A monoid object in the category of species with its composition tensor product is exactly an operad. This is one of the slickest ways to define operads.
So, unpacking this a bit: an operad is a species with a multiplication and also the unit where is the unit object for the composition tensor product, and and need to obey the associative law and left/right unit laws.
It's very good to take this definition and unpack it even further to get a longer and very explicit definition of 'operad'.
So we can say:
1) A monoid object in the monoidal category of endofunctors on Set with its composition tensor product is a monad.
2) A monoid object in the monoidal category of species with its composition tensor product is an operad.
It's not a coincidence that they rhyme: Peter May did that on purpose.
Even better, using the formula I wrote down, any operad gives a monad ! But we only get certain specially nice monads this way.
Oh wow, thank you! CT is so full of wonders.
(It's a symmetric operad btw, I think "operad" on the nLab refers to the non-symmetric version)
Oh, and I guess the difference between a symmetric operad vs a non-symmetric would be analog to the difference between exponential generating function and an ordinary generating function ?
By the way, I arrived to this topic quite unexpectedly. With a friend, we are studying a random field on graphs (e.g., scoring for recommendation in social networks). We want to compute correlation functions, so I started learning about Feynman diagrams (the simple ones, not QFT and alike). I ended up on combinatorial species: it seems that it allows me to focus on the combinatorics without the physics.
There is, for instance, this result that says that to compute cumulants, you only need to consider the connected diagrams without vacuum sub-diagrams (I think). But I read that from a physics book, so this still seems pretty mysterious to me. Hopefully, I can rederive the result in terms of species.
Morgan Rogers (he/him) said:
(It's a symmetric operad btw, I think "operad" on the nLab refers to the non-symmetric version)
What??? That's not the usual default version. Anyway, if you want non-symmetric operads, just replace , the category of finite sets and bijections, by the category of finite totally ordered sets and order-preserving bijections.
(I'm calling it because it's equivalent to the discrete category on the set ).
Then everything I said still works, and you get a corresponding theory of species that describe structures you can put on totally ordered sets, and non-symmetric operads, also called 'planar' operads.
And as Peva notes, there's both a theory of generating functions for species, called exponential generating functions, and a theory of generating functions for species you can put on totally ordered sets, called the theory of ordinary generating functions.
These two parallel frameworks are just two of an infinitude of similar frameworks, but they are the most famous two.
Morgan Rogers (he/him) said:
(It's a symmetric operad btw, I think "operad" on the nLab refers to the non-symmetric version)
No, it refers to several versions of [[operad]], but at the top of the page is the symmetric aka permutative version.
Okay, good! I was shocked by what Morgan said, but too lazy to check.
@Peva Blanchard let me give you a few references
Peva Blanchard said:
Oh, and I guess the difference between a symmetric operad vs a non-symmetric would be analog to the difference between exponential generating function and an ordinary generating function ?
There are three things you can do with the sequence of sets determining a species
the exponential , as it should.
this second construction has a problem though: there are two species, the species of permutations ( is the set of bijections of an -set) and the species of linear orders ( is the set of total orders taht one can put on an -set) such that have both elements. So,
without having that as functors.
There is a solution to this problem: take into account the reason why and are not isomorphic: they are not isomorphic qua left -sets.
this leads to the definition of the "reduced" formal power series associated to a species -it has another name but I'm lazy to go and check now- where instead of the cardinality you consider the cardinality of the quotient of each by its left -action, where is the equivalence relation "being in the same orbit". So
Now some work for you: find the reduced generating series of and , they will evidently be different. Problem solved!
for the equivalence between species and analytic functors, Joyal's paper is the standard one, but I found a very well-written article of Adamek quite enlightening
Warning! This is not an equivalence between the category of species and the category of analytic functors, which I think I've seen asserted incorrectly in the literature. However, Joyal did show that it is an equivalence between the groupoid of species and the groupoid of analytic functors.
For example, take the species which is terminal at a set of cardinality and initial for all other finite cardinalities, and take the species which is terminal at a set of cardinality and initial for all other finite cardinalities. There is no species map . However, there is a natural transformation between their analytic functors, where the analytic functor on is the identity functor on and the analytic functor on takes a set to its symmetric square [the quotient of that identifies with ]. This natural transformation is induced by the diagonal map .
@Todd Trimble The informal definition in the introduction to the operads nLab page doesn't mention actions of symmetric groups and makes a comparison to multicategories (and iirc on the multicategories page the default is the non-symmetric version). Symmetric operads are introduced under that heading. So I think what I said was a meaningful clarification for someone who looked up operads in response to John's comment.
What you call a "clarification"
I think "operad" on the nLab refers to the non-symmetric version
is what I would still call misleading, because it suggests the very thing that made John react. It could also dissuade someone from using the nLab article, thinking "oh, then, that's not the thing I'm after" if they take you at your word.
But everything in your last comment before the last sentence is certainly valid and worth mentioning, and luckily the discussion after your first comment really has clarified matters.
In the service of yet further clarification, now would be a good time to remind readers here that Idea sections in the nLab are typically breezy and sketchy and leave stuff out, and people should always look below the Idea section if they want correct definitions.
I wouldn't mention symmetric group actions if I were giving a 5-minute elevator pitch about operads, but I might mention that May introduced operads to characterize infinite loop spaces, and it's true that for this the symmetric group actions are crucial.
fosco said:
Now some work for you: find the reduced generating series of and , they will evidently be different. Problem solved!
Thanks for the input! The puzzle was very instructive and entertaining! Here's my take.
First, we have actions.
I think the "freeness" of the action is what makes the difference between the two.
Indeed, assume that there is a natural isomorphism . Fix an arbitrary permutation , and let be the corresponding linear order on . A consequence of the naturality condition is that induces a bijection between the orbit of and the orbit of under the action of . Taking the identity for reveals the contradiction. On one side, the orbit has size , and on the other, the orbit has size .
Now let's look at the rgs series of . For every , the number of conjugacy classes in is, I think, the number of partitions of , i.e., the Bell number . (If I remember correctly, two permutations are conjugate iff they have the same cycle decomposition). So
Regarding the rgs series of , for every , the number of orbits in under the action of is , since the action is transitive. Hence,
to complete the proof: I should say that there are Bell numbers that are different than . E.g., .
Todd Trimble said:
What you call a "clarification"
I think "operad" on the nLab refers to the non-symmetric version
is what I would still call misleading, because it suggests the very thing that made John react. It could also dissuade someone from using the nLab article, thinking "oh, then, that's not the thing I'm after" if they take you at your word.
Fair enough, I apologize. I eventually put together that my misremembering of the structure of the operads page comes from confusing it with the multicategories page I mentioned, where one can find (after the formal definition of multicategory) the warning:
Many people (especially non-category theorists) use the word multicategory or the word colored operad to mean what we would call a symmetric multicategory / symmetric operad. These are multicategories equipped with an action of the symmetric group on the multimorphisms such that the composition is equivariant with respect to these actions.
The conclusion of this (tangent to the topical) conversation for me is that if "operad" means "symmetric operad" by default, then the motivation/explanation in the opening of the [[operad]] page should be replaced with a source of intuition that more obviously comes equipped with symmetries, such as the loop space example.
Okay, thanks. If anyone feels moved to put in more about that into the Idea section, have at it! (Maybe I'd get around to that, maybe not.)
I could give it a quick try. Right the page is locked - someone else is editing it.
Todd Trimble said:
for the equivalence between species and analytic functors, Joyal's paper is the standard one, but I found a very well-written article of Adamek quite enlightening
Warning! This is not an equivalence between the category of species and the category of analytic functors, which I think I've seen asserted incorrectly in the literature. However, Joyal did show that it is an equivalence between the groupoid of species and the groupoid of analytic functors.
For example, take the species which is terminal at a set of cardinality and initial for all other finite cardinalities, and take the species which is terminal at a set of cardinality and initial for all other finite cardinalities. There is no species map . However, there is a natural transformation between their analytic functors, where the analytic functor on is the identity functor on and the analytic functor on takes a set to its symmetric square [the quotient of that identifies with ]. This natural transformation is induced by the diagonal map .
I certainly should have added that there is however an equivalence between the category of species and the category of analytic functors whose morphisms are quasi-cartesian natural transformations between them. This means all the naturality squares are quasi-cartesian: commutative squares for which the unique mediating morphism from its span to the pullback of its cospan is an epimorphism (see e.g. Fiore, bottom of page 5 and corollary 4.6).
Todd, you're right. But I should have added it, sorry for not mentioning the subtlety! :smile:
I'm trying to work through this
John Baez said:
Anyway, if you want non-symmetric operads, just replace , the category of finite sets and bijections, by the category of finite totally ordered sets and order-preserving bijections.
(I'm calling it because it's equivalent to the discrete category on the set ).Then everything I said still works, and you get a corresponding theory of species that describe structures you can put on totally ordered sets, and non-symmetric operads, also called 'planar' operads.
but I've run into an issue. It might be because I'm trying to do this first instead of the symmetric version, but still, maybe I can ask for a hint.
(edit: the short version is, do we also need to impose that the multiplication and unit of the monad are cartesian natural transformations?)
I think we're talking about the ordinary generating function because I don't think we have an action of , so we have a functor , and we're considering the polynomial functor on
Adding the extra data to turn this into a monad should yield a non-symmetric operad.
The interpretation is that is the hom-set of morphisms with arity . Then is just the set of all the morphisms regardless of their arity, while an is to be thought of as a morphism "formally applied" to elements of , so each input to the morphism gets an element of .
This means in particular that an element of consists of an element of for some , together with another elements of (i.e. morphisms in the operad), which we think of as being wired up to its inputs.
Then the idea is that given a monad , the multiplication gives the composition law and gives the identity. Specifically, takes in a morphism "formally applied" to a bunch of other morphisms and returns a single morphism, while picks out some morphism to be the identity.
But here's the problem: in working my way through what the monad laws say here, I can't seem to see anything that forces to pick out an element of rather than for some other , so it seems like the identity can have an arity other than 1. And similarly, I can't find anything that forces to preserve the number of inputs. So if we have elements of , it seems like we can compose them to get something with an arity other than .
Is it that these things are actually implied by the monad laws and I've missed something (which is quite possible), or is there some other condition we need to impose on the monad to enforce this?
is it that and have to be cartesian natural transformations?
I didn't mean that if is given some arbitrary monad structure then becomes a nonsymmetric operad. That's like swimming upstream. I meant that if we give the category of functors its "substitution" tensor product , a monoid object in this category is a nonsymmetric operad.
There's a monoidal functor from the category of functors to the category of monads on , defined on objects by
It follows that if is a monoid object, become a monad.
I could be wrong, but this is what I was trying to say.
The analogue for symmetric operads is this:
The category of species is the category of functors where is the groupoid of finite sets and bijections. If we give the category of species its "substitution" tensor product , a monoid object in this category is a symmetric operad.
By the way, you seem to be defining species to be functors . That makes the generating function well-defined but for a well-behaved category it's often good to use the larger category of functors , which is equivalent to , since then we can use a bunch of results about presheaf categories without thinking.