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.
The category of Lawvere theories is cocomplete, and in fact locally finitely presentable. However, I cannot find an explicit description of how to construct colimits in it. In particular, even in the case of finite coproducts, I have trouble describing for two Lawvere theories .
Since one can define the category of Lawvere theories starting from the coslice I can imagine the coproduct is the pushout of along ( are bijective on objects and this property is still true for the pushout ...)
But what if instead I wanted to describe the coproduct of finitary monads on ? The pointwise coproduct of two monads is not even a monad...
Ah! Consider the coproduct of the underlying endofunctors of two monads ; is the free monad on the endofunctor the monad I am looking for?
No, that forgets all information about the monad structures on and .
In general, colimits of monads don't admit explicit descriptions, but have to be constructed by some kind of iterative procedure like a [[transfinite construction of free algebras]].
Is it that difficult even with binary coproducts?
If not the free monad on , my other candidate would have been something like the coproduct of all where one uses the multiplication of the two monads to "reduce" from to and to
I can try to be more precise, but I need a concrete example: fix a set and ; "terms" of type can be sent to
similarly with iterated compositions of multiplications you can pass from to and from to , etc
A coproduct isn't going to cut it, you need some kind of quotient to take account of the monad structures on and .
Indeed! That's why I was trying to use the monad structure of reducing "words"
I'm trying to abstract from how you build a coproduct of monoids, but maybe too naively?
How do you build a coproduct of monoids?
I'm pretty sure there is a quotient there too.
words in te underlying sets, modulo reduction where contiguous elements from the same monoid are multiplied, and identities are canceled
Exactly. "Modulo" is a quotient.
Exactly!
I don't see where we disagree :smile:
Oh, so when you said "the coproduct of all " you mean "the quotient of the coproduct..."?
Yes, I worded it in a confusing way probably
What I mean is the coproduct of all such things, modulo the fact that allow to "reduce terms" from (e.g.) to
by the monad law {something obtained whiskering and } is the same arrow for all choices of something
so you have only one way to descend from to and you coequalize it? I'm writing the idea without checking if it's true, because I have an intuition that I'd like to make more precise
well, it doesn't make sense to coequalize it if there's only one map
Do you have an intuition for what algebras of should be?
At the level of Lawvere theories, yes; a model of is a set that is both a L-structure and a L'-structure
So, it seems to me that there are at least two non-equal maps , and now the naive idea would be to coequalize them
More generally, you want colimits of monads to be algebraic colimits.
It's possible that some construction like that would work if your monads preserve enough colimits. The main difference between free monads and free ordinary monoids is that ordinary monoids are defined with respect to the monoidal structure of cartesian product of sets, which preserves all colimits in each variable, whereas free monads are defined with respect to the monoidal structure of endofunctor composition, which preserves all colimits in the left variable but only those colimits in the right variable that are preserved by the monads themselves qua functors. Generally we assume our monads to be accessible, or even finitary, which means that they preserve filtered colimits but not arbitrary ones (and in particular, not coequalizers). So you need to express the construction of free monads in such a way that preservation of filtered colimits suffices, which usually means constructing it using primarily filtered colimits. That's what the construction at [[transfinite construction of free algebras]] does. Your approach may also work if you're sufficiently careful about phrasing it, and it might even turn out to be a -reduced version of the former.
Ghani and Uustalu gave some explicit formulas to compute coproducts of a special kind of monads on called ideal monads. Basically an ideal monad is one where the image of the unit is “neatly separated” from its complement, in the sense that the monad multiplication never sends anything outside the image of the unit to the image of the unit.
I think some of their results were generalised in this other paper but I am less familiar with it and the characterisations provided are somewhat less explicit (they are in the form of least solutions to some systems of equations of functors, if I remember correctly)
Probably obvious to everyone here, but just in case: if both monads are free on some endofunctors, say and , then you do have a formula: .
Can a monad be free and finitary?
Any monad generated by a signature of operations and equations where the operations have finite arity is finitary. If you have no equations, such a functor is equivalent to the free functor generated by a polynomial functor. So there's lots, if I've understood the question? A concrete example would be the exception monad.
so.. is the monad of magmas (just a binary operation, no eqns) a free monad? (I'm sorry if the question sounds dumb, I know very little about free monads!)
Yes, that's correct. For an endofunctor F, if the forgetful functor R from the category of F-algebras to the base category has a left adjoint L, then the resulting monad RL is the free monad over F. If the base category is complete, then all free monads essentially arise this way. This is a more convenient way of describing free monads on categories such as Set than going via the standard definition. If F is a polynomial functor on Set, an F-algebra is a set with some finite operations and no equations, and in this case, the resulting monad is always finitary, via the correspondence with Lawvere theories.
Remember: no question is dumb in this stream! Relatedly, it's always good to say the thing that's probably obvious, because there's always someone lurking who doesn't know that obvious thing, but they don't even feel justified in asking.
That is a very clear way to put it, thanks!
(^ replying to @Dan Marsden )
yet, I still feel I'm far from grasping the problem at the core. I'd love to learn how to reason in this kind of situation and (for example) I'd like to see a computation done in detail and in a concrete case: take two Lawvere theories , and compute their coproduct when
As has been pointed out, describing colimits of algebraic theories is difficult. However, describing colimits of presentations of algebraic theories is easy: the coproduct is the presentation with the operations and equations of both presentations, and coequalisers are described by adjoining equations.
(Conversely, describing limits of presentations is difficult, but describing limits of algebraic theories is easy.)
Nathanael Arkor said:
As has been pointed out, describing colimits of algebraic theories is difficult. However, describing colimits of presentations of algebraic theories is easy: the coproduct is the presentation with the operations and equations of both presentations, and coequalisers are described by adjoining equations.
I understand
I think somewhat concretely but also a wee bit vaguely we create the Lawvere theory by taking all the operations of , all the operations of , and letting them generate a huge wad of other operations while imposing no interesting relations except those that hold among operations of and those that hold among operations of .
The vagueness is the word "interesting". There are some relations that automatically hold among any operations of any Lawvere theory and I'm calling those "uninteresting".
But I still would like to see a precise computation on the lines of "as complicated as it may be, the coproduct is the colimit of this huge diagram"
"good luck looking inside it, but at least you have a formula"
You should be able to extract a precise computation using colimits from the [[transfinite construction of free algebras]].
Yes. Yet, that's a notoriously difficult read, few people have command of its content and it is not written in a way that you can read it with a modular approach
I can't help you with that colimit stuff, since that's not how I like to think about coproducts of Lawvere theories. In addition to the syntactic description of these coproducts I just sketched, there's the semantic description which is much nicer. For example if is the theory of monoids and is the theory of real Lie algebras, an algebra of (in Set) is a monoid that's also a real Lie algebra.
And the words "monoid" and "real Lie algebra" are irrelevant here: you can replace them with any other two gadgets that can be described as algebras of Lawvere theories.
But in this example, we see an algebra will be equipped with the operations of a monoid, obeying the monoid relations, and the operations of a real Lie algebra, obeying the real Lie algebra relations... and no other interesting relations.
Anyway, if you find this stuff intuitive and obvious, you understand coproducts of Lawvere theories as well as I do so I can't help you further. :upside_down:
fosco said:
Yes. Yet, that's a notoriously difficult read, few people have command of its content and it is not written in a way that you can read it with a modular approach
I'm sad to hear that. All of those things are true about Kelly's original paper, but I'd hoped that the nLab page was an improvement. Can you suggest ways to make it more readable?
I wasn't talking about the nlab article, of course, I was talking about Kelly's paper.
I can suggest the following: you give me a more precise idea of how to adapt what I gather is Theorem 7.2 in the nlab page to my case, and I will type up an addition to the nlab: "As an example, let's compute the coproduct of finitary monads on Set in painstaking detail" :-) this way everybody wins
(you is a plural you, I didn't want to leave the entire burden on Mike)
What is currently imprecise that you need a more precise idea about?
and @John Baez yes, this looks relatively intuitive to me; I'm glad I understand coproducts as well as you do, but this gave me an idea to formulate my question more precisely:
A "lawvere theory" is any of the following gadgets
With appropriate definitions of morphisms of lawvere theories, each of these classes becomes a category, and they are all equivalent to each other.
They are, furthermore, all locally finitely presentable categories, so in particular they are all cocomplete.
I think I understand coproducts only in the first category: pushouts in the coslice . So my question is:
Is it possible to describe "concretely" the coproduct operation in any of the other categories?
@Mike Shulman Nothing is unclear strictly speaking, I probably just feel a bit overwhelmed by all the symbols I'm seeing when I try to parse the page and I'd love someone to sit by my side and do the math with me.
But that's my problem and I don't want to impose on your patience. :smile:
I'll try alone tomorrow (it's night in my timezone) when in theorem 7.2 is discrete with two objects, and let's see how ugly the diagram becomes... pray for me!
In (1), don't you need to require that preserves finite products?
right, fixed (but now product preserving functors are not closed under pushout...?)
Right! So it's more complicated in (1) too.
The horror, the horror!
fosco said:
Nothing is unclear strictly speaking, I probably just feel a bit overwhelmed by all the symbols I'm seeing when I try to parse the page and I'd love someone to sit by my side and do the math with me.
Ok, that's fair. I've certainly felt that way myself when trying to learn something new. Good luck!
it's not even feeling baffled by something totally "new". It's just surprisingly intricate and difficult to prove stuff about Lawvere theories explicitly.
anyway :smile: thanks for your help!
Is it possible to describe "concretely" the coproduct operation in any of the other categories?
I guess my approach is this: if I have a bunch of equivalent categories and I know a nice description of a construction (e.g. coproducts) in one, I declare myself satisfied unless I darn well need to transfer that description to one of the others. I.e. I don't go out of my way looking for trouble... at least not in this way.
I like to say that in math it's good to get yourself into trouble if you know how to get back out of it.
So it is good to have general heuristics for coming up with questions which you can answer in principle but may not know how to answer in practice.
And computing co/limits in a category equivalent to some other category where you know how to compute those co/limits is a good example.
Somehow this particular sort of challenge is not one that I've embraced. But luckily I know people who are good at this stuff.
@fosco I reckon that specialising Theorem 7.2 to coproducts goes as follows.
We use an additional category equivalent to your five ones above, the category of monadic functors over .
Your two monads, say and , correspond to two monadic functors, say and .
If the coproduct exists, then taking the pullback in of and , the diagonal is again monadic, and the induced monad is canonically isomorphic to .
In particular, if both monads are accessible, then the coproduct exists, hence the pullback is monadic. Furthermore, the coproduct is again accessible.
(Is this right? It'd be nice if some real expert could confirm!)
Tom Hirschowitz said:
fosco I reckon that specialising Theorem 7.2 to coproducts goes as follows.
We use an additional category equivalent to your five ones above, the category of monadic functors over .
Your two monads, say and , correspond to two monadic functors, say and .
If the coproduct exists, then taking the pullback in of and , the diagonal is again monadic, and the induced monad is canonically isomorphic to .
In particular, if both monads are accessible, then the coproduct exists, hence the pullback is monadic. Furthermore, the coproduct is again accessible.
(Is this right? It'd be nice if some real expert could confirm!)
Thanks, this is another perspective I didn't think about!
@Mike Shulman now I see where the exposition in the page can be improved:
When speaking of colimits of monads, we are not interested merely in colimits in the category of monads, but algebraic colimits
I understand we do because they are better behaved, but in what sense precisely? And what does one lose in restricting colimits in this way? Also, I don't really understand what is the definition of a -algebra: say is a functor. Then a -algebra should be an object of with a structure of -algebra for every monad image of under , such that for every in the -algebra results as the composition ; in other words a -algebra is an object equipped with a -algebra structure for every $$k\in\cal K$, and such that these algebras are assigned "compatibly with reindexings", i.e. the functor sends to . In other words, a -algebra is a lifting of along the "fibration of algebras" such that the composition is the constant functor at .
If all these equivalent descriptions are true i would be helpful to have them written.
Now, an algebraic colimit is meant to capture the idea that the colimit of is the monad whose category of algebras is the category of -algebras, and -algebras are some sort of , so . (The condition that defines an object in -algebras reminds me of a limit, you only consider algebras compatible with the morphisms in ).
Is this correc? Too sloppy? This notion of colimit seems very rigid, are there interesting colimits of monads that are not algebraic?
@John Baez Indirect as it may be as a reply, my comment to Mike can show you what instead is my approach. Unless I'm able to answer these questions at this exact level of detail, in this order (informal intuition > formalization > computation without leaving holes) I don't feel I understood an idea. :smile:
(All the more because it doesn't seem that an explicit formula for the colimit is available in any of the categories I listed above...)
Regarding algebraic colimits, I think this is indeed the idea, but it doesn't look rigid to me.
It is rather non-algebraic colimits that look pathological.
Indeed, on the "monadic functors" side of the equivalence, algebraic colimits are the limits (because the equivalence is contravariant) which are created by the forgetful functor .
The limit in is the -alg of Theorem 7.2, and to me it is a natural candidate limit: a -algebra is an object with a compatible family of algebra structures for each of the involved monads.
I see, thanks.
Now let's get to the coproduct of two finitary monads: I will try to rephrase the proof when is a discrete diagram...
Without loss of generality one can assume has an initial object, so instead of the coproduct of monads one can start considering the pushout of in the category of pointed endofunctors. Let's call this pushout .
In this particular case an algebra for the diagram in question consists precisely of an object of the base category which is at the same time a -algebra and an -algebra (the compatibility with the morphisms is just one of the requirements for to be algebras for qua monads).
The next step of the proof is to show that these algebras are a reflective subcategory of . To build the reflection, the nlab considers the joint coequalizer of a certain family of maps; call respectively the coprojections into , and then for every define a certain coequalizer of all paraller pairs [...]
I don't understand why these arrows are parallel, because they have different domains: in my case, it seems that the arrows boil down to be and .
[No, this did not make sense.]
So here's a first point where I stop.
A second problem is: let's say I have built a reflection onto -algebras. The next step is to invoke another theorem that through a transfinite construction builds the free monad on a certain pointed endofunctor, which (by yet another theorem) is going to be accessible.
All this line of reasoning is immensely laborious, scattered with small and big leaps of faith, mostly based on implicit constructions, and the whole discussion is held at a level of generality that I would define "counterproductive".
At this point, I accept this is not an easy question to solve at the level of detail I'd like; but I can probably turn this discussion into a more sociological one because this is an instance of a general phenomenon I've experienced through the years. My insistence in understanding this specific argument comes in large part from a concrete desire other than "evolve" a little bit my way of thinking categorically, and to -finally!- grok at least part of the content of Kelly's notoriously difficult paper.
So one problem is that I must confess that I simply can't follow this level of generality, and I'm asking for advice on how to address the issue. Or rather, I know how to address the issue, take baby steps, since the construction is so convoluted because it's very general, let's make it less general:
The line of reasoning that works for every diagram must become a little bit simpler now, right? Yet I can't see how to simplify it, and in fact as it is written, the construction doesn't even typecheck
fosco said:
John Baez Indirect as it may be as a reply, my comment to Mike can show you what instead is my approach. Unless I'm able to answer these questions at this exact level of detail, in this order (informal intuition > formalization > computation without leaving holes) I don't feel I understood an idea. :)
I have much lower standards for claiming to understand an idea in category theory - basically, just enough to limp by. I've always been mainly interested in applying category theory to physics and other external topics, so I try to avoid questions like how you compute colimits in some category until I absolutely need to answer them for some external reason. Luckily there are people like you who tackle such questions!
A second problem is purely sociological: I find the general attitude towards these questions a bit cavalier (I'm not talking about someone's behaviour specifically, let alone the participants to this conversation. It's a general attitude of category theorists, especially the brilliant ones, who tend to forget how difficult it is to enter their train of thoughts from a distance... Kelly and Freyd are the examples I have in mind, calling them brilliant would be an understatement, and yet reading them is often so, so painful).
perhaps Mac Lane's quote about the "right" level of generality should be amended saying that sometimes too much generality is very distracting: I entered this problem with a curiosity (and maybe a mild motivation in terms of a problem I'm trying to work on), and now I find myself I lost two days to penetrate an argument that is ten times more general than I need, and also badly exposed.
You're helping a lot, but this is annoying :grinning:
At this point I wonder, is there any chance that the "words-modulo-reduction" approach leads to something?
I can believe it is a very particular case of Kelly's and-so-on, but knowing this at the moment doesn't add anything to my understanding of the problem, and of the solution. Not to mention, other people might benefit from a different, more elementary point of view, since transfinite arguments in the "and-so-on" ballpark keep popping up from many disparate parts of CT.
John Baez said:
fosco said:
John Baez Indirect as it may be as a reply, my comment to Mike can show you what instead is my approach. Unless I'm able to answer these questions at this exact level of detail, in this order (informal intuition > formalization > computation without leaving holes) I don't feel I understood an idea. :smile:
I have much lower standards for claiming to understand an idea in category theory - basically, just enough to limp by. I've always been mainly interested in applying category theory to physics and other external topics, so I try to avoid questions like how you compute colimits in some category until I absolutely need to answer them for some external reason. Luckily there are people like you who tackle such questions!
My approach does not stem from overzealousness, and I often adopt also your point of view. But I believe "understanding" can be done at different scopes. My point is very simple: if trying to wrap your head around concept X you can't work out at least a couple of specific nontrivial examples of an X, what do you know about X and how can you use an X proficiently?
All this line of reasoning is immensely laborious, scattered with small and big leaps of faith, mostly based on implicit constructions, and the whole discussion is held at a level of generality that I would define "counterproductive".
When I was doing research I had similar frustrations. Eventually I found that I could make more progress by proving things myself than trying to read and digest the published proofs.
Regarding this particular matter of the coproduct of two Lawvere theories: I would prove it along the lines Tom suggests. It is easy to show that the pullback satisfies the conditions of Beck's monadicity theorem except for the existence of the left adjoint. Then I would use the theory of locally presentable categories to get the left adjoint. I'm not sure how I would prove that the result is locally _finitely_ presentable but I have no problem believing it to be true – because it is morally true when thinking from the syntactic perspective.
fosco said:
(All the more because it doesn't seem that an explicit formula for the colimit is available in any of the categories I listed above...)
I found myself experiencing frustration at the absence of explicit colimit computations in the category of categories with pullbacks/finite limits (and functors preserving these). This is still unresolved. I have a plan to make it more explicit, but it's firmly relegated to a backburner for now. I'll be curious to see if you come out with some answers for the finite products case which might make my life easier :grinning:
I vaguely recall hearing that the category of cartesian monoidal categories has biproducts...
Zhen Lin Low said:
I vaguely recall hearing that the category of cartesian monoidal categories has biproducts...
The 2-category of symmetric monoidal categories has (2-categorical) biproducts as worked out in the appendix of this paper, and this restricts to cartesian monoidal categories just fine.
So the coproduct coincides with the product for @fosco 's problem?
@fosco Yes, your description of the -algebras is right. Feel free to add that to the page! I think the notion of "algebraic colimit" is best regarded as a "niceness condition" that's satisfied by nearly all naturally-occurring colimits of monads. (Similar to how the "nice" limits and colimits in functor categories are pointwise -- it's possible for a functor category to have a non-pointwise limit or colimit in weird or pathological cases, if the codomain category is not (co)complete, but nearly always we mainly care about the pointwise ones.) In fact, I think the argument given here for algebraically-free monads should also apply to show that if the category is locally small and complete, then all small colimits of monads are algebraic colimits.
fosco said:
To build the reflection, the nlab considers the joint coequalizer of a certain family of maps; call respectively the coprojections into , and then for every define a certain coequalizer of all paraller pairs [...]
I don't understand why these arrows are parallel, because they have different domains: in my case, it seems that the arrows boil down to be and .
This is definitely a deficiency of the exposition: the phrase "joint coequalizer" is not defined. What it means is that you have two (or more) pairs of arrows, all with the same codomain, and so that the two arrows in each pair have the same domain, but the two pairs may have different domains. So in your case you have two arrows and two more arrows . Then the "joint coequalizer" is the colimit of the diagram consisting of all four arrows.
Someone should write an nLab page [[joint coequalizer]]!
fosco said:
sometimes too much generality is very distracting
I'm reminded of John's remark that "category theorists are dual to ordinary people: they get confused if you surround a nice abstract concept with lots of distracting specifics." (-:O
Morgan Rogers (he/him) said:
So the coproduct coincides with the product for fosco 's problem?
Unfortunately, no. The coproduct for single-sorted Lawvere theories would be more closely related to the pushout under the initial Lawvere theory.
Ah right, it does make more sense that the colimit for luntisorted theories would be easier to compute, since then we're looking for separate models of the two theories rather than a single carrier of the structure coming from both theories...