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: theory: category theory

Topic: two algebra structures


view this post on Zulip Matteo Capucci (he/him) (Jan 17 2022 at 15:10):

Let T,ST, S be monads on C\mathcal C. I'm sure the idea of '(T,S)(T,S)-bialgebra', generalizing bimodules in commutative algebras, has already occurred to someone. By that I mean an object a:Ca : \mathcal C equipped with an algebra structure for TT and one for SS, satisfying some compatbility conditions. I guess one also needs some kind of compatibility between TT and SS (e.g. a distributive law).
Can someone point me to a reference on such objects?

view this post on Zulip Chad Nester (Jan 17 2022 at 15:13):

The tensor product of algebraic theories might be close to what you're after. I think the idea originates with Freyd .

view this post on Zulip Ralph Sarkis (Jan 17 2022 at 15:23):

A somewhat opaque (imo) reference is Section 3 in The formal theory of monads II.

view this post on Zulip Mike Shulman (Jan 17 2022 at 15:57):

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.

view this post on Zulip Mike Shulman (Jan 17 2022 at 15:58):

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).

view this post on Zulip Matteo Capucci (he/him) (Jan 17 2022 at 17:38):

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 RR is a left action of RopR^{\mathrm{op}}, isn't it?

view this post on Zulip Morgan Rogers (he/him) (Jan 17 2022 at 20:39):

@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.

view this post on Zulip Mike Shulman (Jan 17 2022 at 23:09):

Matteo Capucci (he/him) said:

Well a right action of RR is a left action of RopR^{\mathrm{op}}, 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.

view this post on Zulip Matteo Capucci (he/him) (Jan 18 2022 at 08:34):

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? RopR^{op} is just another ring, yielding a moand Rop×R^{op} \times - whose algebras are right action of RR.If AA is both an S×S \times - and an Rop×R^{op} \times - algebra (in a compatible way*), then it's an (S,R)(S,R)-bimodule.

*The compatible way is the commutativity of this, where σ\sigma is the symmetry of ×\times (or in general the distributive law between the two monads) image.png

view this post on Zulip Matteo Capucci (he/him) (Jan 18 2022 at 08:36):

Mike Shulman said:

Matteo Capucci (he/him) said:

Well a right action of RR is a left action of RopR^{\mathrm{op}}, 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!

view this post on Zulip Matteo Capucci (he/him) (Jan 18 2022 at 09:05):

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

view this post on Zulip Matteo Capucci (he/him) (Jan 18 2022 at 09:06):

image.png

view this post on Zulip Matteo Capucci (he/him) (Jan 18 2022 at 09:08):

But you'd certainly need a distributive law between TT and SS, wouldn't you? Or I wouldn't even be able to lift one monad on the other's category of algebras

view this post on Zulip Ralph Sarkis (Jan 18 2022 at 09:30):

I think this is because in this paper, T1T_1 and T2T_2 are (Lawvere) theories which can always be combined like this. In modern notation, I would translate the statement to Mod(T1,Mod(T2,Set))Mod(T2,Mod(T1,Set))Mod(T1T2,Set)\mathrm{Mod}(T_1,\mathrm{Mod}(T_2,\mathbf{Set})) \simeq \mathrm{Mod}(T_2,\mathrm{Mod}(T_1,\mathbf{Set})) \simeq \mathrm{Mod}(T_1\otimes T_2,\mathbf{Set}).
There is a monad corresponding to tensored theory but it doesn't have to be built from T1T_1 and T2T_2 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 P\mathcal{P} (for semilattices) and D\mathcal{D} (for convex algebras). I believe there are also cases where even weak distributive laws will not work.

view this post on Zulip Matteo Capucci (he/him) (Jan 18 2022 at 12:11):

ooh I see

view this post on Zulip Matteo Capucci (he/him) (Jan 18 2022 at 12:13):

Indeed, I now notice Freyd doesn't define T1T_1 and T2T_2 as monads in the paper!
Ralph Sarkis said:

I think this is because in this paper, T1T_1 and T2T_2 are (Lawvere) theories which can always be combined like this.

What's the reason Lawvere theories (= finitary monads..?) can always be combined like this?

view this post on Zulip Morgan Rogers (he/him) (Jan 18 2022 at 12:14):

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? RopR^{op} is just another ring, yielding a moand Rop×R^{op} \times -...

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 RR-algebra-SS-coalgebra isn't an unreasonable thing to think about, and they even give adjunctions from the category of RR-algebras to the category of SS-algebras (again, stressing that this is ignoring the monad structure)

view this post on Zulip Matteo Capucci (he/him) (Jan 18 2022 at 12:15):

Oh I see, that's a fair point

view this post on Zulip Ralph Sarkis (Jan 18 2022 at 13:00):

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 Mod(T,Set)SetT\mathrm{Mod}(T,\mathbf{Set}) \cong \mathbf{Set}^{T}, we don't have Mod(T,Mod(S,Set))(SetS)T\mathrm{Mod}(T,\mathrm{Mod}(S,\mathbf{Set})) \cong (\mathbf{Set}^S)^T. In fact, with no distributive law, the RHS is not well-defined because TT is not a monad on SetS\mathbf{Set}^S.

* CT\mathbf{C}^T denotes the category of Eilenberg--Moore algebra for TT

view this post on Zulip Reid Barton (Jan 18 2022 at 13:06):

It might also be worth noting that the tensor product construction also works when SS and TT are multi-sorted theories, and then the sorts of the tensor product theory are the cartesian product of the sorts of SS and the sorts of TT (which need not be the same). For example, you can tensor abelian groups and simplicial sets to get simplicial abelian groups.

view this post on Zulip Reid Barton (Jan 18 2022 at 13:07):

On the other hand, the construction involving a distributive law of monads only makes sense when SS and TT are monads on the same underlying category (~ have the same "sorts").

view this post on Zulip Mike Shulman (Jan 18 2022 at 17:03):

Fundamentally, the tensor product of theories and the composite monad arising from a distributive law are different things. A TST\otimes S algebra is an object with unrelated TT-algebra and SS-algebra structures; hence why it requires no additional data relating TT and SS. Whereas if λ\lambda is a distributive law between TT and SS, then a TSTS-algebra is an object with TT-algebra and SS-algebra structures that satisfy a compatibility condition mediated by λ\lambda. 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.

view this post on Zulip Nathanael Arkor (Jan 18 2022 at 17:15):

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.

view this post on Zulip Matteo Capucci (he/him) (Jan 19 2022 at 09:57):

Mike Shulman said:

Fundamentally, the tensor product of theories and the composite monad arising from a distributive law are different things. A TST\otimes S algebra is an object with unrelated TT-algebra and SS-algebra structures; hence why it requires no additional data relating TT and SS. Whereas if λ\lambda is a distributive law between TT and SS, then a TSTS-algebra is an object with TT-algebra and SS-algebra structures that satisfy a compatibility condition mediated by λ\lambda.

This makes sense, but I'm confused by Freyd's paper then, where he says the TT-structure is a morphism of SS-algebras, and thus it satisfies a commutativity/distributivity condition whereby the two structures commute.

view this post on Zulip Mike Shulman (Jan 19 2022 at 15:41):

What paper is that?

view this post on Zulip Nathanael Arkor (Jan 19 2022 at 16:09):

I presume Algebra valued functors in general and tensor products in particular.

view this post on Zulip Mike Shulman (Jan 19 2022 at 17:03):

Oh, oops!! I messed up; I confused the tensor product of theories with the coproduct of theories. It's the coproduct for which a T+ST+S algebra is an object with unrelated structures. A TST\otimes S algebra is one for which all TT-operations commute with all SS-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.

view this post on Zulip Ralph Sarkis (Jan 19 2022 at 17:38):

Matteo Capucci (he/him) said:

This makes sense, but I'm confused by Freyd's paper then, where he says the TT-structure is a morphism of SS-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 TT is a set of operation symbols ΣT\Sigma_T each with an arity and a set of equations (we won't need them here). A TT--algebra in a category C\mathbf{C} with finite products is an object AC0A \in \mathbf{C}_0 along with, for each tΣTt \in \Sigma_T of arity nn, a morphism tA:AnAt^A: A^n \to A such that the equations are satisfied (again, we can forget about this here). A morphism of TT--algebras is a morphism f:ABf: A \rightarrow B such that ftA=tBfnf \circ t^A = t^B \circ f^n for any tΣTt \in \Sigma_T of arity nn. Here is this condition as a commutative diagram:
image.png

view this post on Zulip Ralph Sarkis (Jan 19 2022 at 17:40):

Now, if you have a TST\otimes S--algebra on AA, what you really have is a TT--algebra and an SS--algebra on AA such that for any tΣTt \in \Sigma_T of arity nn and sΣSs \in \Sigma_S of arity mm, tA(sA)n=sA(tA)mt^A \circ (s^A)^n = s^A \circ (t^A)^m (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 sAs^A is a TT--algebra homomorphism and tAt^A is an SS-algebra homomorphism respectively.

view this post on Zulip Matteo Capucci (he/him) (Jan 19 2022 at 21:03):

Thank you Ralph!

view this post on Zulip Matteo Capucci (he/him) (Jan 19 2022 at 21:05):

Then I grant this is weaker than saying TT lifts to $$S$-algebras and viceversa, as @Mike Shulman pointed out too?

view this post on Zulip Matteo Capucci (he/him) (Jan 19 2022 at 21:06):

But then I see the two squares 'work' because (Am)n(An)m(A^m)^n \cong (A^n)^m and so you can commute the algebra structures

view this post on Zulip Matteo Capucci (he/him) (Jan 19 2022 at 21:11):

Then tell me where I'm wrong here:

  1. Every algebraic theory T:ΣTNT:\Sigma_T \to \mathbb N gives rise to a moand MT(X)=σΣTXT(σ)M_T(X) = \sum_{\sigma \in \Sigma_T} X^{T(\sigma)}
  2. Every two algebraic theories TT and SS admit a distributive law MTMSMSMTM_TM_S \Rightarrow M_SM_T since products distribute over coproducts in Set\mathbf{Set}

view this post on Zulip Ralph Sarkis (Jan 19 2022 at 21:44):

That's not the right definition of MTM_T (what would be the monad structure?). The algebras for the functor MTM_T you gave are indeed the TT--algebras, but the monad that corresponds to the theory is harder to construct, it is the algebraically free monad on that functor. In Set\mathbf{Set} it is still quite easy.

view this post on Zulip Mike Shulman (Jan 19 2022 at 22:09):

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 MTM_T, as a mere functor, contains no information about the composition of operations in TT.

view this post on Zulip Mike Shulman (Jan 19 2022 at 22:10):

With a correct definition of the monad MTM_T associated to an algebraic theory, then although TST\otimes S is an algebraic theory and has an associated monad MTSM_{T\otimes S}, the underlying functor of this monad is not the composite MSMTM_S M_T (or MTMSM_T M_S), therefore it does not induce a distributive law.

view this post on Zulip Ralph Sarkis (Jan 20 2022 at 07:19):

Isn't MTM_T enough information when there are no equations in the theory? My line of thought was TAlgMTAlgEM(MT)T\mathrm{-Alg} \cong M_T\mathrm{-Alg} \cong \mathrm{EM}(M_T^*) where MTM_T^* is the algebraically free monad on MTM_T (hence the second isomorphism).

view this post on Zulip Mike Shulman (Jan 21 2022 at 19:45):

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 "T(σ)T(\sigma)" denotes the set of generating operations.