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.
I came up with these (co)end formulas for initial and terminal (co)algebras for the endofunctor . Does it make sense? Has anyone seen these?
Here's the carrier for the initial algebra
with power defined as
And the terminal coalgebra
with copower
You can see that a projection
is a catamorphism. It's a member of the hom-set
or an element of
this is really interesting. I've never seen this construction before
by the way, would this be more a #category theory thing than a #applied category theory thing? no big deal though.
what is the usual construction of initial algebra you have in mind to compare this to?
Is that the Bohm-Berarducci encoding of Fix?
(translated into Hask I guess)
ah, it does look somewhat like Boehm–Berarducci now that you mention it
because the one I have in mind is for some signature , the initial algebra would be given by the directed colimit of
It also reminds me of figure 5 in this paper, which I thought had some interest connections between fixpoint operations and yoneda-y stuff https://arxiv.org/pdf/1907.03481.pdf
It's also reminiscent of Kan extensions, but Kan extensions are in Set, and here we are in the category of algebras.
I'm not yet seeing how to reconcile the more familiar construction with the new one. I'm mainly just surprised that the initial algebra would be an end, because ends are terminal.
In Haskell, this encoding could possibly be considered Boehm-Berarducci.
newtype Mu f = Mu (forall a. (f a -> a) -> a)
and
data Nu f where Nu :: (a -> f a) -> a -> Nu f
The usual construction is what @Christian Williams mentioned: a colimit of a chain for initial algebra. For terminal coalgebra it's a limit of . In Haskell we usually just use Fix, but that's cheating.
yes. so for the initial algebra, how can we translate between this directed colimit and the end construction?
wow, this is extremely relevant to a problem I've been stuck on, thanks for bringing this up.
hope we'll talk about it more tomorrow. also I found this nice webpage by Wadler: http://homepages.inf.ed.ac.uk/wadler/papers/free-rectypes/free-rectypes.txt
I have some notes about (co)algebras, (co)limits, and (co)ends on github: https://github.com/BartoszMilewski/Publications/blob/master/Algebras.pdf
I have a somewhat related question: In his recent video (https://www.youtube.com/watch?v=H7l1hwgRUQc) Paolo mentions in passing that every monad on set can be seen as an infinitary free algebra (of some sort) over a set of variables. Can anyone enlighten me with the construction?
it's due to the correspondence between Lawvere theories and finitary monads on , which extends to a correspondence between (well-behaved) infinitary algebraic theories and monads on
there's a good introduction to Lawvere theories and monads here: https://www.irif.fr/~mellies/mpri/mpri-ens/articles/hyland-power-lawvere-theories-and-monads.pdf
Thanks! What's a "finitary" monad?
intuitively, it's a monad whose underlying functor is "morally" one from — it only depends on finitely-many variables
the usual precise definition is a monad whose underlying endofunctor preserves filtered colimits, though
Ah cool thanks.
Bartosz Milewski said:
You can see that a projection
is a catamorphism. It's a member of the hom-set
or an element of
Neat!