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: learning: questions

Topic: Monads with Operations


view this post on Zulip Joshua Meyers (Oct 28 2023 at 02:40):

Let T\mathcal{T} be a Lawvere theory with with generating object xx. This induces an adjunction F:SetT-Alg:UF:\text{Set}\rightleftarrows\mathcal{T}\text{-Alg}:U defined by U(A)AxU(A)\coloneqq Ax and F(S)T-Alg(xS,)F(S)\coloneqq \mathcal{T}\text{-Alg}(x^S,-).

This in turn induces a monad MUF:SetSetM\coloneqq UF : \text{Set}\to\text{Set}, sending SS to T-Alg(xS,x)\mathcal{T}\text{-Alg}(x^S,x). Lots of familiar monads come about this way: the list monad, the free group monad, the Maybe monad, etc.

But when we construct a monad this way, we get an additional structure: For any operation o:xnxo:x^n \to x of T\mathcal{T}, we get a morphism o:M×nM\overline{o}:M^{\times n} \to M defined by (T-Alg(xS,x))nT-Alg(xS,xn)oT-Alg(xS,x)(\mathcal{T}\text{-Alg}(x^S,x))^n \cong \mathcal{T}\text{-Alg}(x^S,x^n) \xrightarrow{o_*} \mathcal{T}\text{-Alg}(x^S, x). Moreover, these morphisms define a product-preserving functor TEnd(Set)\mathcal{T}\to \text{End}(\text{Set}) sending xMx\mapsto M and ooo\mapsto \overline{o}

For example, in the case where T\mathcal{T} is the theory for a monoid, we find that MM (the list monad) is a monoid in the category of endofunctors in two different ways: (1) in the monoidal category (End(Set),,idSet)(\text{End}(\text{Set}), \circ, \text{id}_{\text{Set}}), and (2) in the monoidal category (End(Set),×,c1)(\text{End}(\text{Set}), \times, c_1).

Does anyone talk about this sort of monad with extra structure? What can be said about it?

view this post on Zulip Todd Trimble (Oct 28 2023 at 09:43):

It seems to me that all monads MM (let's say on Set\mathrm{Set}) bear this type of structure, insofar as all monads on Set\mathrm{Set} can be construed as infinitary Lawvere theories.

M(j)M(j) can be thought of as codifying the set of jj-ary operations of the monad qua theory, in the sense that if XX is an MM-algebra, then the algebra structure on XX induces (via what the nLab calls the "coYoneda lemma") a map

jM(j)XjM(X)X\int^j M(j) \cdot X^j \cong M(X) \to X

hence a map M(j)XjXM(j) \cdot X^j \to X dinatural in jj, hence a map M(j)Set(Xj,X)M(j) \to \mathrm{Set}(X^j, X) natural in jj which interprets elements in M(j)M(j) as operations on XX. And so it would go when we correspondingly think of MM itself as an MM-module via the monad multiplication:

jM(j)M()jMMM\int^j M(j) \cdot M(-)^j \cong M \circ M \to M

which is what you're describing.

view this post on Zulip Joshua Meyers (Nov 03 2023 at 17:13):

Thanks! This is helpful. The context I'm thinking about is the language NRA in Limsoon Wong's thesis (see https://www.comp.nus.edu.sg/~wongls/psZ/wls-thesis.pdf on page 38). Here I guess we could get the operations M()jMM(-)^j\to M by the procedure you are describing but you would need the ambient category to be Set\text{Set} for sure, and Wong assumes much less in this case --- it is a cartesian category (not even closed!) with a strong monad MM and then you have operations 1M1\to M and M×MMM\times M \to M forming a monoid.

view this post on Zulip Todd Trimble (Nov 04 2023 at 01:12):

(Ugh, finally. I thought I had sent this 6 hours ago, but then noticed it in my drafts folder, and have been struggling to send this again for the past 10 minutes.)

view this post on Zulip Joshua Meyers (Nov 04 2023 at 02:23):

I still only see your message about it

view this post on Zulip Joshua Meyers (Nov 04 2023 at 02:26):

I got your PM though!

view this post on Zulip Todd Trimble (Nov 04 2023 at 02:38):

The system seems to be malfunctioning for me.

view this post on Zulip Todd Trimble (Nov 04 2023 at 02:38):

Let me try something else.

view this post on Zulip Todd Trimble (Nov 04 2023 at 02:39):

(Original message)

At this point I'm confused as to what you're asking. It's not true that for any strong monad on a cartesian category, you get a (cartesian) monoid structure on MM for free: just consider the identity monad.

view this post on Zulip Todd Trimble (Nov 04 2023 at 02:39):

Something we can say: suppose MM is a strong monad on a cartesian category C\mathcal{C}, and (X,α:M(X)X)(X, \alpha: M(X) \to X) is an MM-algebra. Then, if JJ is an object such that XJX^J exists (i.e., if there exists a representing object for the functor C(J×,X)\mathcal{C}(J \times -, X)), then for each morphism t:1M(J)t: 1 \to M(J), we have an accompanying operation XJXX^J \to X formed as the composite

XJ1×XJt×idM(J)×XJM(J×XJ)M(X)αX.X^J \cong 1 \times X^J \overset{t \times \mathrm{id}}{\to} M(J) \times X^J \to M(J \times X^J) \to M(X) \overset{\alpha}{\to} X.

where the first unlabeled non-isomorphism comes from the strength, and the second is MM applied to the universal arrow J×XJXJ \times X^J \to X.

view this post on Zulip Todd Trimble (Nov 04 2023 at 02:39):

For example, suppose C\mathcal{C} has finite coproducts and cartesian product distributes over these coproducts. By abuse of notation, let jj denote the jj-fold coproduct of copies of the terminal object 11. Then the ordinary cartesian power XjX^j gives the above representing object, and for every formal "operation" t:1M(j)t: 1 \to M(j) we can form an actual operation XjXX^j \to X as above, for every MM-algebra XX. This applies in particular to algebras of the form M(c)M(c), and we get operations M(c)jM(c)M(c)^j \to M(c) that are natural in cc, hence a natural operation MjMM^j \to M.

view this post on Zulip Todd Trimble (Nov 04 2023 at 02:39):

I don't immediately see a way of getting rid of the distributivity requirement. But you see that we can make do with far less than C=Set\mathcal{C} = \mathrm{Set}.

view this post on Zulip Patrick Nicodemus (Nov 04 2023 at 16:12):

Todd Trimble said:

The system seems to be malfunctioning for me.

I was having problems with Zulip yesterday, for me sending much smaller messages worked.

view this post on Zulip Todd Trimble (Nov 04 2023 at 16:38):

Thanks, Patrick. That's what I wound up doing.