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.
Given an endofunctor , it's known that we can form a category whose objects are its algebras (and morphisms are algebra homomorphisms), and a category whose objects are its coalgebras (whose morphisms are coalgebra homomorphisms).
I've recently learned that there is also a notion of a coalgebra-to-algebra morphism (making the appropriate diagram commute) and I'm wondering whether all this data can be organised as some sort of a double, or n-fold category.
It looks like we want two different types of 0-cells (algebras, and coalgebras), where morphisms between the same types of cells would be homorphisms of algebras and respectively coalgebras. Then also we could have a morphism between different types of 0-cells - which would be the coalgebra-to-algebra morphisms. (There's also the algebra-to-coalgebra morphism) which follows in a similar way.
Question: what kind of structure is this? It's not a double category, as I initially suspected. We'd have at least 2 types of 0-cells and three types of 1-cells.
Algebras and coalgebras for an endofunctor form a category. Is there any structure you're interested in that is not captured simply by the categorical structure?
The objects may be distinguished by being in one of two classes, but the morphisms don't appear to have any interesting properties: their shape is uniquely determined by the class of their domain and codomain. So I think it's misleading to say that there are four kinds of 1-cell, as the kinds should be parameterised by the kind of their (co)domain.
I think this category sits inside a larger and perhaps more natural-looking category consisting of objects with a relation to . Then sometimes the relation is functional and sometimes cofunctional.
Nathanael Arkor said:
Algebras and coalgebras for an endofunctor form a category. Is there any structure you're interested in that is not captured simply by the categorical structure?
They both form individual categories, yes. But the coalgebra-to-algebra morphism isn't a morphism in either one of them.
Mike Shulman said:
I think this category sits inside a larger and perhaps more natural-looking category consisting of objects $X$ with a relation to $FX$. Then sometimes the relation is functional and sometimes cofunctional.
Hmm, that sounds plausible.
Nathanael Arkor said:
The objects may be distinguished by being in one of two classes, but the morphisms don't appear to have any interesting properties: their shape is uniquely determined by the class of their domain and codomain. So I think it's misleading to say that there are four kinds of 1-cell, as the kinds should be parameterised by the kind of their (co)domain.
I see. You're saying that once I know the type of the domain and codomain, the type of the morphism is fixed, unlike with, say, double categories.
Bruno Gavranovic said:
Nathanael Arkor said:
Algebras and coalgebras for an endofunctor form a category. Is there any structure you're interested in that is not captured simply by the categorical structure?
They both form individual categories, yes. But the coalgebra-to-algebra morphism isn't a morphism in either one of them.
I mean that there is a category whose objects are either algebras or coalgebras, and whose morphisms are the appropriate notion of morphism in each case. But I agree that seeing this category as sitting inside a larger one seems more natural.
Mike Shulman said:
I think this category sits inside a larger and perhaps more natural-looking category consisting of objects $X$ with a relation to $FX$. Then sometimes the relation is functional and sometimes cofunctional.
One issue with this is that we lose directionality as information available at the type level.
One larger category you might embed this in is the category of dialgebras for all endofunctors on a specific category; in this case the type information would indeed be in the morphisms as there would be a "twisted" type that exchanged the functors and an "untwisted" type that kept them the same.
This might be seen as a -graded category.
Can you elaborate on the "twisted" type? What does it mean to exchange the functors?
Untwisted on left, twisted on right.
Right, but a category of dialgebras chooses only one of them. How do you get the other one?
Ah, well, it wouldn't be the standard category of dialgebras but a "super category" of them. (And you could also combine this with the other construction and have dialgebras in a suitable category of relations ... but you would still want the 'twisted' morphisms so you could formally change which side is which.)
Bruno Gavranovic said:
It looks like we want two different types of 0-cells (algebras, and coalgebras), where morphisms between the same types of cells would be homorphisms of algebras and respectively coalgebras. Then also we could have a morphism between different types of 0-cells - which would be the coalgebra-to-algebra morphisms. (There's also the algebra-to-coalgebra morphism) which follows in a similar way.
Question: what kind of structure is this? It's not a double category, as I initially suspected. We'd have at least 2 types of 0-cells and three types of 1-cells.
Hylomorphisms (algebra to colagebra morphisms) form a profunctor . Then the category you're describing is the [[collage]] of this profunctor. It is basically plus the addition of hylomorphisms that link the two otherwise disjoint categories
If you want morphisms also in the other direction you take the collage of the cohylomorphisms (I really hope they're not really called like this) profunctor , going the other way, and then you take another pushout:
image.png
What's the intuition between thinking about the profunctor between the respective categories?
Profunctors are the way you specify [[heteromorphisms]], that is morphisms between objects of different categories. Hylomorphisms are indeed morphisms between objects naturally residing in different categories. The collage collates homomorphisms and heteromorphisms in one single category.
Ah I see. This makes sense, given the comment from @Nathanael Arkor about the type of morphism being fixed after I know the type of domain and codomain.
James Deikun said:
Ah, well, it wouldn't be the standard category of dialgebras but a "super category" of them. (And you could also combine this with the other construction and have dialgebras in a suitable category of relations ... but you would still want the 'twisted' morphisms so you could formally change which side is which.)
What's a super category? :big_smile: Is your suggestion the same as @Matteo Capucci (he/him)'s?
I think by 'supercategory' James means a category that contains dialgebras (as opposite to a subcategory which is contained)
It's kind of both that, and more specifically a -graded category where the "bosonic" subcategory is the standard category of (all) dialgebras and the "fermionic" morphisms are the "twisted" ones above.
Wow, so really "super" in the sense of physics.
To myself I was like 'imagine if he's actually meaning that super'... well :laughing:
James Deikun said:
It's kind of both that, and more specifically a -graded category where the "bosonic" subcategory is the standard category of (all) dialgebras and the "fermionic" morphisms are the "twisted" ones above.
Is a -graded category a category enriched in -modules?
This reminds me of this nLab article I was looking at a few days ago. I wonder if one can really make sense of this construction in terms of that.
A -graded category is a category equipped with a functor to .
Hm, how does this functor give us these two types of morphisms?
The two types of morphisms are the "even" ones that are mapped to 0 (aka id) and the "odd" ones that are mapped to 1.
By functoriality you get that an odd morphism composed (either side) with an even morphism is odd, and composing two of the same is even.
Here a graded category is one where the objects come in two kinds, called 'even' and 'odd'. Usually it applies to a monoidal category where tensoring an object of the ith kind with one of the jth kind gives one of the (i+j)th kind, where i, j . But I don't know if that's happening here.
And usually it applies to a symmetric monoidal Ab-enriched category where the symmetry works a certain way: switching two 'odd' objects introduces a sign. But that's not happening here.
Bruno Gavranovic said:
Given an endofunctor , it's known that we can form a category whose objects are its algebras (and morphisms are algebra homomorphisms), and a category whose objects are its coalgebras (whose morphisms are coalgebra homomorphisms).
I've recently learned that there is also a notion of a coalgebra-to-algebra morphism (making the appropriate diagram commute) and I'm wondering whether all this data can be organised as some sort of a double, or n-fold category.
It looks like we want two different types of 0-cells (algebras, and coalgebras), where morphisms between the same types of cells would be homorphisms of algebras and respectively coalgebras. Then also we could have a morphism between different types of 0-cells - which would be the coalgebra-to-algebra morphisms. (There's also the algebra-to-coalgebra morphism) which follows in a similar way.
Question: what kind of structure is this? It's not a double category, as I initially suspected. We'd have at least 2 types of 0-cells and three types of 1-cells.
One source of coalgebras over algebras is operational semantics of computation: languages or tests are given as algebras, and the meaning is given by coalgebras over algebras. This is how Gordon Plotkin has been modeling things since I think the 1900 and 90s, and that was summarized in a LICS paper he had with Daniele Turi. Then Ben Worrell and Mike Mislove and I noticed that any semantical correlation is based on evaluating algebras against coalgebras. That is in a paper I think under coalgebra on dusko.org. (I think the published version was truncated. My son was just born and I didn't even register the question.) But then later it turned out that tangent and cotangent bundles arise by testing coalgebras over algebras, and Bertried Fauser even worked out general relativity in that format. That is in a paper called Testing Smooth Coalgebra by Vector Algebra or something like that, which is surely on arxiv. And then that was also used in concept mining for recommender systems and recently to battle echo chambers. And when the coalgebras are the news stream and the algebra the user preferences, then everything gets saturated, and then you have proper coalgebras for a comonad over algebras for a monad. That is in the nucleus paper https://arxiv.org/abs/2004.07353. Aha and here is the smooth coalgebra: https://arxiv.org/abs/1402.4414.
But all that is under the assumption that we start from a problem, and a solution takes a shape of coalgebras over algebras (which turns out to happen whenever the problem is semantical). If we want to know what shape can coalgebras over algebras take in general, then I don't see why there should be a maximally general answer. Most structures can be generalized and if anything, at least the higher dimensions are not in a short supply in our little universe : )