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.
Let be monads on . I'm sure the idea of '-bialgebra', generalizing bimodules in commutative algebras, has already occurred to someone. By that I mean an object equipped with an algebra structure for and one for , satisfying some compatbility conditions. I guess one also needs some kind of compatibility between and (e.g. a distributive law).
Can someone point me to a reference on such objects?
The tensor product of algebraic theories might be close to what you're after. I think the idea originates with Freyd .
A somewhat opaque (imo) reference is Section 3 in The formal theory of monads II.
I don't think this would generalize bimodules in commutative algebra, since a bimodule has a left action by one ring and a right action by another one, whereas an object of C that's both a T-algebra and an S-algebra would have a left action by both T and S.
This difference is why you would seem to need extra structure like a distributive law. But if you do have a distributive law, so that TS is a monad, then the TS-algebras can be characterized as objects with both a T-algebra and an S-algebra structure that satisfy an additional compatibility diagram (which it's a nice exercise to write down).
Mike Shulman said:
I don't think this would generalize bimodules in commutative algebra, since a bimodule has a left action by one ring and a right action by another one, whereas an object of C that's both a T-algebra and an S-algebra would have a left action by both T and S.
Well a right action of is a left action of , isn't it?
@Matteo Capucci (he/him) sounds like you want an algebra-coalgebra structure, then, but if you're interested specifically in monads rather than endofunctors then you're probably losing something by introducing an op.
Matteo Capucci (he/him) said:
Well a right action of is a left action of , isn't it?
Yes, but only when the tensor product is symmetric. The action of an endofunctor on an object is not a symmetric binary operation.
Morgan Rogers (he/him) said:
Matteo Capucci (he/him) sounds like you want an algebra-coalgebra structure, then, but if you're interested specifically in monads rather than endofunctors then you're probably losing something by introducing an op.
Why coalgebra? is just another ring, yielding a moand whose algebras are right action of .If is both an and an algebra (in a compatible way*), then it's an -bimodule.
*The compatible way is the commutativity of this, where is the symmetry of (or in general the distributive law between the two monads) image.png
Mike Shulman said:
Matteo Capucci (he/him) said:
Well a right action of is a left action of , isn't it?
Yes, but only when the tensor product is symmetric. The action of an endofunctor on an object is not a symmetric binary operation.
You mean the tensor on the category the monads are defined on? Yeah, that's a fair point!
Chad Nester said:
The tensor product of algebraic theories might be close to what you're after. I think the idea originates with Freyd .
This seems to be what I'm looking for! There's only one thing I can't understand: Freyd says T-algebras in the category of S-algebras are always equivalent to S-algebras in the category of T-algebras:
image.png
But you'd certainly need a distributive law between and , wouldn't you? Or I wouldn't even be able to lift one monad on the other's category of algebras
I think this is because in this paper, and are (Lawvere) theories which can always be combined like this. In modern notation, I would translate the statement to .
There is a monad corresponding to tensored theory but it doesn't have to be built from and using a distributive law. One example is this paper where the authors show the tensor of the theories for semilattices and convex algebras correspond to a monad obtained via a weak distributive law between (for semilattices) and (for convex algebras). I believe there are also cases where even weak distributive laws will not work.
ooh I see
Indeed, I now notice Freyd doesn't define and as monads in the paper!
Ralph Sarkis said:
I think this is because in this paper, and are (Lawvere) theories which can always be combined like this.
What's the reason Lawvere theories (= finitary monads..?) can always be combined like this?
Matteo Capucci (he/him) said:
Morgan Rogers (he/him) said:
Matteo Capucci (he/him) sounds like you want an algebra-coalgebra structure, then, but if you're interested specifically in monads rather than endofunctors then you're probably losing something by introducing an op.
Why coalgebra? is just another ring, yielding a moand ...
I was pointing out that for most monads, you don't have reference to an object that you can simply take the dual of to obtain a new monad, and the only sensible thing I could see lying around to dualize was the map constituting the algebra. For endofunctors (without extra conditions) an -algebra--coalgebra isn't an unreasonable thing to think about, and they even give adjunctions from the category of -algebras to the category of -algebras (again, stressing that this is ignoring the monad structure)
Oh I see, that's a fair point
Matteo Capucci (he/him) said:
What's the reason Lawvere theories (= finitary monads..?) can always be combined like this?
As I understand it, the tensor operation on theories is very syntactical (Definition 3.2 here is more categorical), the operations symbols and axioms in both theories are put together and we add the appropriate distributivity axioms. There is nothing that prevents it from existing.
The reason (imo) why this does not translate to monads is that while the correspondence theory--monad yields , we don't have . In fact, with no distributive law, the RHS is not well-defined because is not a monad on .
denotes the category of Eilenberg--Moore algebra for
It might also be worth noting that the tensor product construction also works when and are multi-sorted theories, and then the sorts of the tensor product theory are the cartesian product of the sorts of and the sorts of (which need not be the same). For example, you can tensor abelian groups and simplicial sets to get simplicial abelian groups.
On the other hand, the construction involving a distributive law of monads only makes sense when and are monads on the same underlying category (~ have the same "sorts").
Fundamentally, the tensor product of theories and the composite monad arising from a distributive law are different things. A algebra is an object with unrelated -algebra and -algebra structures; hence why it requires no additional data relating and . Whereas if is a distributive law between and , then a -algebra is an object with -algebra and -algebra structures that satisfy a compatibility condition mediated by . In principle one could try to construct the "tensor product of monads" in a similar way to the tensor product of theories, without using a distributive law, and I would expect it to exist in good cases like when the base category is locally presentable and the monads are accessible.
In principle one could try to construct the "tensor product of monads" in a similar way to the tensor product of theories, without using a distributive law, and I would expect it to exist in good cases like when the base category is locally presentable and the monads are accessible.
For those interested, one general framework for tensor products of monads is Lucyshyn-Wright's Bifold algebras and commutants for enriched algebraic theories.
Mike Shulman said:
Fundamentally, the tensor product of theories and the composite monad arising from a distributive law are different things. A algebra is an object with unrelated -algebra and -algebra structures; hence why it requires no additional data relating and . Whereas if is a distributive law between and , then a -algebra is an object with -algebra and -algebra structures that satisfy a compatibility condition mediated by .
This makes sense, but I'm confused by Freyd's paper then, where he says the -structure is a morphism of -algebras, and thus it satisfies a commutativity/distributivity condition whereby the two structures commute.
What paper is that?
I presume Algebra valued functors in general and tensor products in particular.
Oh, oops!! I messed up; I confused the tensor product of theories with the coproduct of theories. It's the coproduct for which a algebra is an object with unrelated structures. A algebra is one for which all -operations commute with all -operations, which is sort of the opposite extreme, but again doesn't require the data of a distributive law to specify exactly how the structures relate.
Matteo Capucci (he/him) said:
This makes sense, but I'm confused by Freyd's paper then, where he says the -structure is a morphism of -algebras, and thus it satisfies a commutativity/distributivity condition whereby the two structures commute.
(Let me briefly recall what a theory is to make sure my subsequent explanation makes sense.) A theory is a set of operation symbols each with an arity and a set of equations (we won't need them here). A --algebra in a category with finite products is an object along with, for each of arity , a morphism such that the equations are satisfied (again, we can forget about this here). A morphism of --algebras is a morphism such that for any of arity . Here is this condition as a commutative diagram:
image.png
Now, if you have a --algebra on , what you really have is a --algebra and an --algebra on such that for any of arity and of arity , (you get this if you squint a bit at the distributivity axiom). If you draw this as a commutative diagram, you get the following
image.png
or, by rotating it:
image.png
You can recognize these diagrams as stating that is a --algebra homomorphism and is an -algebra homomorphism respectively.
Thank you Ralph!
Then I grant this is weaker than saying lifts to $$S$-algebras and viceversa, as @Mike Shulman pointed out too?
But then I see the two squares 'work' because and so you can commute the algebra structures
Then tell me where I'm wrong here:
That's not the right definition of (what would be the monad structure?). The algebras for the functor you gave are indeed the --algebras, but the monad that corresponds to the theory is harder to construct, it is the algebraically free monad on that functor. In it is still quite easy.
No, I don't think that's right either; the monad corresponding to an algebraic theory is not in general algebraically-free on any endofunctor. Note that your , as a mere functor, contains no information about the composition of operations in .
With a correct definition of the monad associated to an algebraic theory, then although is an algebraic theory and has an associated monad , the underlying functor of this monad is not the composite (or ), therefore it does not induce a distributive law.
Isn't enough information when there are no equations in the theory? My line of thought was where is the algebraically free monad on (hence the second isomorphism).
If there are no equations in the theory, then yes T-algebras should be the algebras for an endofunctor defined in a simliar way, where "" denotes the set of generating operations.