A club is a particular sort of doctrine or monad on categories, one which encapsulates the following frequently observed phenomenon: to describe free algebras with respect to the monad, it frequently suffices to describe the free algebra on the terminal category, and then a certain “categorical wreath product” gives the free algebra on :
Examples of this phenomenon include the monad for monoidal categories, symmetric monoidal categories, braided monoidal categories, categories with finite products, closed symmetric monoidal categories, and many others.
Mike Shulman: How do you get closed symmetric monoidal categories? I thought that was one of the ones that Kelly couldn’t handle because it involves extranatural transformations.
Todd Trimble: You can get them, but there are points to watch. The real trouble to watch out in doctrines of “mixed variance” is the possibility of producing loops or “islands” in the process of composing extranaturals, but as it happens this doesn’t occur in free smc categories. They do occur for compact closed categories, and that’s fatal. The classical example is trace in compact closed categories, where the composite
is not a well-defined extranatural since it depends on .
Here are some details on clubs of mixed variance, which I was going to get to but here is a first pass. First, as you might expect, one replaces below by a category enriched in pointed sets whose objects are finite signed sets and whose non-basepoint morphisms are oriented 1-cobordisms. Let’s say that two morphisms in have a “defined” composition if no islands are produced, else their composition is taken to be the basepoint. Now let be the free smc category on one generator. There is a “graph functor” which takes a morphism of to its extranaturality graph. The crucial observation (and it’s a bit nontrivial; the proof relies on a cut-elimination theorem) is that no basepoint morphism lies in the image of , i.e., no islands can occur in formal compositions for this doctrine.
In cases like that, the basic club idea will work. Given a category , the free smc category has the expected objects given by formal iterated applications of hom and tensor to objects of . A morphism is given by a morphism of together with a labeling of the oriented edges of its underlying graph (an oriented 1-cobordism) by morphisms of . Then, you compose morphisms of this “categorical wreath product” in the obvious way, composing the morphism-labels of edges in 1-cobordisms as they get pasted together.
It should also be mentioned (I’m sure you know this) that in such mixed variance cases, even if there are no islands in formal compositions, the result is merely a monad on , not a 2-monad. On the other hand, you do get a 2-monad if you restict to categories, functors, and natural isomorphisms.
Mike Shulman: Ah, right, thanks. Now I remember how Kelly dealt with graphs in that way by just throwing away the “bad composites”. I must have forgotten about it because I thought it was so weird. (-: Is that sort of club also a generalized operad for some cartesian monad on ?
Todd Trimble: I’m pretty sure that it’s a cartesian monad on , and actually I don’t know any real examples of Kelly’s clubs which aren’t.
Let be the category of finite sets (including the empty set ) and permutations between them, and let be the category of small categories. We define a “wreath product” action of the category on , where is the slice category of over
taking a pair to the category whose objects are tuples
with , , and . A morphism is a tuple
consisting of a morphism in and morphisms in , composed in the obvious way.
This generalizes the standard notion of wreath product: given a group and a permutation representation, i.e., a homomorphism , and given a group , the wreath product is defined to be the semidirect product
with the action of on induced from the action on .
Another, more abstract, way to describe this substitution product is as follows: there is a cartesian monad on whose algebras are symmetric strict monoidal categories, and we have , where is the terminal category. The substitution product can then be described as the following pullback in .
See below for a general version of this construction.
We describe how the substitution action lifts to a self-action denoted by the same symbol:
To start, given a pair , the domain of is the category described above. The functor
sends an object to .
The effect of on morphisms may be summarized as “substituting the permutations into the permutation ”. To describe this more precisely, we give a little preface. The hom-set of permutations on may be identified with the set of total (or linear) orders on , if we identify the identity element with the standard order on . The sets are components of an operad where the operadic multiplication
takes a linear ordering of linearly ordered sets of and produces the evident linear ordering on the disjoint sum of the sets.
Then, given a morphism in , we define
Given the abstract description above of the substitution product in terms of the cartesian monad , the functor can be described as the composite
where is the multiplication of the monad .
The substitution product thus indicated,
is the product for a monoidal category structure on . The monoidal unit is the functor which names the 1-element set. Abstractly, we can observe that the cartesian monad induces a pseudomonad on the bicategory of spans in , which has a Kleisli bicategory in which a 1-cell is a span in . We then have
and the monoidal structure above is that induced from the bicategory composition in .
Under this monoidal product, the substitution action indicated earlier,
carries a structure of actegory over the monoidal category , in the sense that there is a coherent associativity
for , , and a category , and similarly coherent left and right unit isomorphisms.
Definition: A club over is a monoid in the monoidal category . By the abstract characterization above, this is equivalent to a monad in the bicategory on the object , or equivalently a -operad in the sense of Leinster.
A club over induces (via the actegory structure) a 2-monad on , and an algebra over the club is an algebra for this monad. That is, an algebra over a club is a category together with an action compatible in the usual way with the monoid structure on .
Given a club structure on , we think of the objects as formal operations of arity . An algebra over , , gives in effect an interpretation of each of arity as an actual operation .
The free -algebra over a category is just . For the free algebra over the terminal category , notice that
(strictly speaking, the on the left is a category over and the on the right is just the category). Thus, in a manner of speaking, the free algebra generated by is obtained by wreathing the free algebra generated by with , as adumbrated in the idea section above.
The identity carries a club structure. The multiplication of the club, on the object level, is given by the assignment
and on morphisms, it is given by the operad structure on discussed above. Algebras over this club are symmetric (strict) monoidal categories. Algebras in the “pseudo” sense over the induced 2-monad on are symmetric monoidal categories. Alternatively, if is the free symmetric monoidal category on one generator, then the symmetric monoidal equivalence carries a club structure whose strict algebras are symmetric monoidal categories.
Let be the braid category, equipped with the usual forgetful functor . The club multiplication, at the level of morphisms, is “substitution” of braids into a braid on elements. Pseudo-algebras over the induced 2-monad on are braided monoidal categories. Alternatively, as in the previous example, braided monoidal categories are also strict algebras over a club of the form where is the free braided monoidal category on one generator.
Let be any (permutative) operad valued in , with underlying species . Then category of elements gives a functor , and this carries a club structure induced from the operad structure on . In this way, clubs generalize operads. In fact, operads in can be identified with those clubs for which the functor is a discrete fibration.
The foregoing construction can be generalized to any cartesian monad on . Since a monad is a monoid in the monoidal category of endofunctors, the slice category inherits a monoidal structure. We also have an “evaluate at ” functor , which has a right adjoint defined by pulling back: given , we define an endofunctor of by the following pullbacks:
This right adjoint is fully faithful and embeds into as the endofunctors equipped with a cartesian natural transformation to . Finally, the cartesianness of implies that is closed under the monoidal structure of . This induced monoidal structure on is, in the case when is the symmetric strict monoidal category monad, exactly the substitution product defined above. Thus, a club is a monoid for this monoidal structure, and the inclusion of into thereby sends it to a monad over .
Note, however, that this construction depends on no special features of ; it can be performed for any cartesian monad on any category with finite limits. This can be found in (Kelly, Clubs and datatype constructors).
(To be written…)
The clubs described in the preceding two sections are examples of covariant clubs: the operations on their algebras are covariant functors . However, many doctrines on , such as the doctrine of closed categories, involve functors which are covariant in some arguments and contravariant in others, together with extranatural transformations between them. For example, in the doctrine for closed monoidal categories, there is an extranatural transformation of the form
which is dinatural in and natural in .
It turns out that many doctrines of “mixed variance” can also be described by an extension of the club notion. This applies particularly to closed monoidal, closed symmetric monoidal, and -autonomous categories. But there are some subtleties, some of which can be explained by looking at a non-example: the doctrine of compact closed categories.
The underlying arity of an operation of mixed variance will be a signed set, i.e., a finite set where a sign or is assigned to each element . The element is given the sign (resp., ) if argument of the operation appears covariantly (resp., contravariantly). For example, for the operation
the underlying arity is an ordered list of signs .
The underlying arity of an extranatural transformation for a given doctrine is an arrow of signed sets , called a graph (or EKM graph, for Eilenberg, Kelly and Mac Lane), which by definition is a partition of the signed elements of into mated pairs, such that
Mated elements, one in and one in , have the same sign;
Mated elements, both in or both in , have opposite signs.
An EKM graph may be identified with a directed graph whose edges are mated pairs, oriented in the direction from an -element to a -element if the mates have the same sign, or from to if the mates are -elements, or from to if the mates are -elements. Such a graph may also be considered as an oriented 1-cobordism between oriented 0-manifolds without loops (circles).
For example, the arity of the evaluation map in closed monoidal categories,
is an arrow with an oriented edge from the third placeholder of the domain to the first placeholder, and an oriented edge from the second placeholder of the domain to the placeholder of the codomain.
Hence we obtain a directed graph whose vertices are signed sets and whose edges are EKM graphs between the signed sets. An immediate question is how to compose graphs to form a category, and in particular what to do about “loops” or “islands” which may arise in composing such 1-cobordisms. The first answer that may come to mind is simply to ignore them (in other words, regard the pairings as morphisms in a bicategory of co-relations, and compose them as such). An answer more relevant to clubs will emerge in the next section.
An example in which loops arise in compositions of extranatural transformations is the doctrine of compact closed (symmetric monoidal) categories. The classic example is the composition
where denotes a monoidal unit, is a unit for an adjunction , and is a counit for (in a symmetric monoidal category, such adjunctions are inevitably ambidextrous).
This composition obviously does not define an extranatural transformtion from a constant functor to itself, precisely because of dependence on (for example, when interpreted in the compact closed category of finite-dimensional vector spaces, the value is ). In general, the presence of loops in compositions of extranaturality graphs should be seen as reflecting a fatal ill-definedness of composition of the extranatural transformations giving rise to them, and in such situations an alarm should sound: “Danger, Will Robinson!”.
The lesson learned is that the doctrine of compact closed categories is not describable by a club, and that for the purposes of clubs there is no use for compositions of graphs which produce loops. If one insists on assigning a value to composition in such cases, it might as well be a junk value , and therefore it is justifiable to regard signed sets and arrows between them as carrying a structure of category enriched in the symmetric monoidal category of pointed sets (= category of sets and partially defined functions).
Let be the category enriched in pointed sets whose objects are finite signed sets, and whose morphisms are graphs as described above, composed as in the bicategory of cospans between sets unless this results in the creation of loops (in which case the composition is defined to be the basepoint of the hom-set it belongs to). There is no harm in thinking of as an ordinary category.
Let be the full subcategory of whose objects are functors such that for every morphism of , is not the basepoint of the hom-set it belongs to. There is an action
for which the objects of are pairs where is an object of and is a lift of through the function
Morphisms of are pairs where is a morphism of directed graphs to the underlying graph of . Again, this action lifts to a monoidal product
with monoidal unit naming the 1-point set, positively signed. The action of on becomes an actegory with respect to the monoidal category structure.
Definition: A club over is a monoid in the monoidal category .
A club over induces (via the actegory structure) a monad on , and an algebra over the club is an algebra for this monad.
Clubs over are not however examples of generalized operads over a cartesian monad.