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: event: ACT20

Topic: Tutorial: Monads and Comonads (Paolo Perrone)


view this post on Zulip Paolo Perrone (Jun 16 2020 at 14:02):

Hi all! This is the discussion thread for my tutorial, "Monads and comonads".

view this post on Zulip Paolo Perrone (Jun 16 2020 at 14:03):

Abstract:
We'll introduce monads and comonads, and give some intuition for how they often appear in applications. We'll then talk about Kleisli and Co-Kleisli categories, and show how you can use them to model contexts with either extra outcomes, or extra information.

view this post on Zulip Paolo Perrone (Jul 02 2020 at 02:45):

When and where: Sunday July 5, 20:00 UTC (4 pm EDT)
Zoom meeting: https://mit.zoom.us/j/7055345747
See also the main website.

view this post on Zulip Paolo Perrone (Jul 03 2020 at 15:46):

If anyone would like to do some pre-reading, most of the material I will present is taken from my "Notes in Category Theory with examples from basic mathematics", https://arxiv.org/abs/1912.10642, Chapter 5.

view this post on Zulip Paolo Perrone (Jul 03 2020 at 15:48):

By the way, Christian Williams will be there too, teaching with me!

view this post on Zulip Paolo Perrone (Jul 05 2020 at 19:56):

We are about to start!

view this post on Zulip Deepak Vaid (Jul 05 2020 at 20:12):

Paolo Perrone said:

We are about to start!

Unfortunately, its 1:40 am here so I will have to skip the live session. I will catch up with the recorded version though.

view this post on Zulip Paolo Perrone (Jul 05 2020 at 22:13):

For the ones who asked about probability monads: you can find many explanations here: https://www.youtube.com/playlist?list=PLaILTSnVfqtIebAXFOcee9MvAyBwhIMyr as well as here: https://www.youtube.com/playlist?list=PLSx1kJDjrLRSKKHj4zetTZ45pVnGCRN80

view this post on Zulip Christian Williams (Jul 06 2020 at 02:13):

If you are interested in monads for (universal) algebra, see https://ncatlab.org/nlab/show/Lawvere+theory and the references therein, such as https://www.dpmms.cam.ac.uk/~martin/Research/Publications/2007/hp07.pdf.

Here's a good reference on algebraic theories: https://web.math.rochester.edu/people/faculty/doug/otherpapers/Adamek-et-al-book.pdf

Here's the entry in Bartosz Milewski's Category Theory for Programmers: https://bartoszmilewski.com/2017/08/26/lawvere-theories/

The nLab page for monads https://ncatlab.org/nlab/show/monad+%28in+computer+science%29 also has a lot of good references.

view this post on Zulip Christian Williams (Jul 06 2020 at 02:13):

An algebra of TT, a set AA equipped with a function α:T(A)A\alpha:T(A)\to A, is a set "equipped with TT-structure": the set T(A)T(A) consists of "formal expressions" with variables in AA, and the map α\alpha evaluates these expressions to values. For example if TT is the "free monoid" monad, an algebra maps [a1,a2,,an]a1a2an[a_1,a_2,\dots,a_n]\mapsto a_1a_2\dots a_n, and the algebra laws amount to saying that this operation is associative and unital, i.e. a monoid.

view this post on Zulip Christian Williams (Jul 06 2020 at 02:14):

A Lawvere theory LTL_T is the "category of operations" of a monad TT; there is an equivalence between finitary monads on Set\mathrm{Set} and Lawvere theories (see Sec. 11 of https://arxiv.org/pdf/1112.3076.pdf). A model of LTL_T in Set\mathrm{Set} is a functor M:LTSetM:L_T\to \mathrm{Set} which preserves finite products. This maps each "abstract operation" f:n1f:n\to 1 in LTL_T to a "concrete operation" M(f):AnAM(f):A^n\to A.

view this post on Zulip Christian Williams (Jul 06 2020 at 02:14):

Models of LTL_T are equivalent to algebras of TT, and there are advantages to each perspective. Theories are nice because they are categories, where you can draw out each operation and specify equations as commutative diagrams, which many may find to be more explicit and intuitive than an endofunctor on Set\mathrm{Set} which somehow encapsulates all operations at once. On the other hand, monads are much more general -- as we mentioned briefly at the end, monads exist in any 2-category, and rather than only being maps which add structure to objects, they can themselves be structures of interest.

view this post on Zulip Christian Williams (Jul 06 2020 at 02:14):

So, both are good! It's pretty amazing how much we've generalized algebra in the past century.

view this post on Zulip Paolo Perrone (Jul 06 2020 at 08:41):

Hello all! Here's the video.
https://www.youtube.com/watch?v=ryMkvAOJk20&list=PLCOXjXDLt3pYPE63bVbsVfA41_wa3sZOh