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: comonoids


view this post on Zulip Matteo Capucci (he/him) (Apr 06 2022 at 07:36):

I know that in algebra comonoids/coalgebras/Hopf algebras are quite interesting beasts, but all the examples I know are of two types:

  1. either the comonoid structure is the canonical one induced by a cartesian monoidal product, i.e. δ:AA×A\delta : A \to A \times A is the [[diagonal morphism]] (which I call 'copy' so often I almost forgot the original name)
  2. or AA is some kind of module hence the comonoid structure is given by a map AAAA \to A \otimes A sending aa to aaa \otimes a... but this is a bit disappointing since this is basically the same as the previous example.

This lack of interesting examples might be a byproduct of the fact our metamathematics is overwhelmingly cartesian, hence comonoids are somewhat forced to be copy-like. But is it true? Are there comonoids which don't really come from copying?

A way out might come from structures that 'decompose', so that AA×AA \to A \times A is given by a decomposition of a:Aa : A into a 'left' and 'right' part. Universally, AA should be given by binary trees. But then the left branch of the right branch is not the same as the right branch of the left branch, so coassociativity fails. Also I have no idea how to define a map A1A \to 1 that wouldn't just be discard.

view this post on Zulip Oscar Cunningham (Apr 06 2022 at 07:41):

Are there comonoids which don't really come from copying?

The comonoid axioms sort of define copying (and deleting). We have a process that takes one thing and gives us two things. The coidentity law says that if we delete one of the things then the other is the same as the one we started with. The coassociativity law says that copies of copies are the same as the original copies.

view this post on Zulip Matteo Capucci (he/him) (Apr 06 2022 at 07:47):

Maybe in a monoidal category where \otimes and II are not quite what we are used to this intepretation migth fail

view this post on Zulip Matteo Capucci (he/him) (Apr 06 2022 at 07:48):

e.g. mapping to the unit does not always mean to discard. In categories of optics, copoints are very interesting.

view this post on Zulip Matteo Capucci (he/him) (Apr 06 2022 at 07:49):

Indeed, now that I think about it, in #general: mathematics > parametrised operations I described comonoids in lenses are almost pairs of a monoid and comonoid (EDIT: I didn't mention it explicitly, but that's where the structure I described where came from). Hence comonoids in lenses are at least as interesting and varied as monoids in the base category.

view this post on Zulip Morgan Rogers (he/him) (Apr 06 2022 at 07:52):

I disagree with Oscar on this one. One nice example is to take a finite group GG (or monoid) and consider its algebra C[G]\mathbb{C}[G]. We can equip this with a coalgebra structure generated by sending each element to the sum of pairs whose product gives that element, and extend linearly, and the counit sends each element of G to 1 and extends linearly.

view this post on Zulip Morgan Rogers (he/him) (Apr 06 2022 at 07:53):

If monoids embody composition, it makes sense that comonoids embody decomposition

view this post on Zulip JS PL (he/him) (Apr 06 2022 at 08:02):

The canonical coalgebra structure of the tensor algebra or symmetric algebra are not simply just copying.

view this post on Zulip Matteo Capucci (he/him) (Apr 06 2022 at 08:43):

JS Pacaud Lemay (he/him) said:

The canonical coalgebra structure of the tensor algebra or symmetric algebra are not simply just copying.

Can you elaborate? Isn't aaa \otimes a the equivalence class of (a,a)(a,a) under the quotient π:A×AAA\pi: A \times A \to A \otimes A? In other words, isnt aA×Aa \mapsto A \times A simply ΔA;π\Delta_A ; \pi?

view this post on Zulip Matteo Capucci (he/him) (Apr 06 2022 at 08:44):

Morgan Rogers (he/him) said:

I disagree with Oscar on this one. One nice example is to take a finite group GG (or monoid) and consider its algebra C[G]\mathbb{C}[G]. We can equip this with a coalgebra structure generated by sending each element to the sum of pairs whose product gives that element, and extend linearly, and the counit sends each element of G to 1 and extends linearly.

This is very cool!

view this post on Zulip JS PL (he/him) (Apr 06 2022 at 08:52):

It's essentially similar to the group ring example shared by @Morgan Rogers (he/him)

view this post on Zulip JS PL (he/him) (Apr 06 2022 at 09:04):

The idea is that you're taking words/monomials and then sending it to the sum of all words/monomials which when multiplied together giving you back your starting input.

view this post on Zulip JS PL (he/him) (Apr 06 2022 at 09:05):

@Morgan Rogers (he/him) said it really nicely: you're decomposing

view this post on Zulip JS PL (he/him) (Apr 06 2022 at 09:06):

For examples, take just the polynomial ring R[x]R[x]. One of its comultiplication is defined on monomials as follows:

view this post on Zulip JS PL (he/him) (Apr 06 2022 at 09:07):

Δ(xn)=k=0n(nk)(xnkxk) \Delta(x^n) = \sum \limits^n_{k=0} \binom{n}{k} \cdot ( x^{n-k} \otimes x^k )

view this post on Zulip JS PL (he/him) (Apr 06 2022 at 09:08):

So for example, Δ(x)=x1+1x\Delta(x) = x \otimes 1 + 1 \otimes x and Δ(x2)=x21+2(xx)+1x2\Delta(x^2) = x^2 \otimes 1 + 2 \cdot (x \otimes x) + 1 \otimes x^2

view this post on Zulip JS PL (he/him) (Apr 06 2022 at 09:09):

As you can see, this comultiplication does not simply copy

view this post on Zulip JS PL (he/him) (Apr 06 2022 at 09:10):

This comultiplication makes R[x]R[x] a bialgebra with the standard multiplication.

view this post on Zulip JS PL (he/him) (Apr 06 2022 at 09:11):

R[x]R[x] also has another comultiplication where you drop the binomial coefficient

view this post on Zulip JS PL (he/him) (Apr 06 2022 at 09:11):

Δ(xn)=k=0nxnkxk \Delta(x^n) = \sum \limits^n_{k=0} x^{n-k} \otimes x^k

view this post on Zulip JS PL (he/him) (Apr 06 2022 at 09:12):

and this is similar to @Morgan Rogers (he/him) group ring example. BUT this comultiplication does not make R[x]R[x] a bialgebra with the standard multiplication. Instead you need to use another multiplication.

view this post on Zulip JS PL (he/him) (Apr 06 2022 at 09:13):

Anyways, hopefully this a convincing example that shows that coalgebra are not just about copying, but about decomposing.

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

I see, when you said 'canonical' I thought you referred to the my example (2), which probably isn't canonical at all!

view this post on Zulip Morgan Rogers (he/him) (Apr 06 2022 at 09:30):

I always found coalgebras really hard to think about (or even imagine) back when I was still trying to use the set theory that was hardwired into me in undergrad, which makes sense: comonoids in sets can only have the trivial copying operation! Once you appreciate that you can use a commutative binary operation to turn composition into decomposition in a natural way (by taking sums in my example) then you can quickly find a lot more examples.

view this post on Zulip Dan Marsden (Apr 06 2022 at 09:39):

Well every comonad is a comonoid in the endofunctor category, so you get lots of examples that way that don't have a straightforward copy/delete feel about them.

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

Dan Marsden said:

Well every comonad is a comonoid in the endofunctor category, so you get lots of examples that way that don't have a straightforward copy/delete feel about them.

good point!

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

Morgan Rogers (he/him) said:

Once you appreciate that you can use a commutative binary operation to turn composition into decomposition in a natural way (by taking sums in my example) then you can quickly find a lot more examples.

This is an extremely nice trick

view this post on Zulip Robin Piedeleu (Apr 06 2022 at 10:45):

This may seem like cheating but in Rel - the smc of sets and relations, which is self-dual - you can take any monoid you like and turn it into a comonoid that non-deterministically decomposes an element into its possible products under the dual monoid operation. On its own, this feels like just a matter of perspective (reading an operation in one direction as composing things or in the other as decomposing things), but it gets a lot more interesting when you realise that, in Rel, the monoid and comonoid versions of the same operation can cohabit. For example, if the monoid is an abelian group, the monoid and comonoid operations interact to form a commutative Frobenius algebra!

view this post on Zulip Simon Burton (Apr 06 2022 at 11:31):

Here's an algebraic geometry example. Take a polynomial ring k[x]k[x] over a field kk. Then write k[x]k[x]k[x]\otimes k[x] as k[a,b]k[a,b]. A comultiplication is given by m:k[x]k[a,b]m:k[x]\to k[a,b] that sends xa+b.x\mapsto a+b. This is expressing addition, but contraviariantly, so it comes out as a "co-addition." A similar example works with algebraic groups. Take GL(2), as 2x2 matrices, then these have four components, so we need four variables, but then one more variable for the nonzero determinant: k[a,b,c,d,e]/(adbc=e1)k[a,b,c,d,e]/(ad-bc=e^{-1}) . Once again if you write out the multiplication for this group, you get something contravariant, so it is a comultiplication.

view this post on Zulip Joe Moeller (Apr 06 2022 at 13:59):

The intuition I have for coalgebras, which is present in the examples everyone is giving, is that as you said it should be like chopping something into two parts. But also like you said, this isn't associative, and anyway the "two parts" thing is where the cartesian-ness is hiding. So we can fix this intuition by saying we're going to take the list/formal sum of all ways to chop something into two parts. Then this gets to be associative because if you chop it and chop the left part, or chop it and chop the right part, both results will be in the list of all ways to chop into three parts. And this is the sort of thing that naturally lives in a tensor product (the sort that characterize bilinearity) rather than a cartesian product.

view this post on Zulip Joe Moeller (Apr 06 2022 at 14:00):

All of this is literal when you consider "combinatorial bialgebras".