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.
Since functors need not be endofunctors, is there a reason why endofunctor algebras (defined as morphisms) can't be functor algebras (defined as heteromorphisms)?
That is, given an endofunctor we define an algebra of it as a choice of and a morphism in .
Now, for heteromorphisms, they're defined as follows. Given a functor and two objects and we can, following nLab, define a set of heteromorphisms as .
I'm wondering what happens if we try to define functor algebras precisely as these heteromorphisms above. Of course now we don't go back to where we started, but that's okay since the idea is about generalising endo-maps to hetero-maps.
Of course, one could argue that we get much less out now with this generalisation, and I think I agree, but conceptually it seems like a unexplored concept. Has anyone written anything about it?
I'm asking because it looks like this is a step towards generalising this to the dependent setting, which is the one I'm really interested in.
In 'Monads need not be Endofunctors' they define algebras for relative monads. So that's one (less general) treatment of algebras for heterofunctors
Ah, thanks. Is this less general precisely in the ways that an algebra for a monad is less general than an algebra for an endofunctor?
Yeah. I just meant that they're defined only for relative monads, and subject to laws similar to the laws for an algebra over an ordinary monad
Possibly related: [[dialgebra]]
Ah, I was always wondering what happens if we take the definition of a natural transformation as an end and instead take the coend of the same functor. It looks like we get a dialgebra.
Well, we get a quotient of the set of all dialgebras.
I'm also finding there's a notion of an algebra for a profunctor.
Bruno Gavranovic said:
Ah, thanks. Is this less general precisely in the ways that an algebra for a monad is less general than an algebra for an endofunctor?
If you drop the compatibility laws for the unit and multiplication, then you should get a notion of algebra for a functor that generalises algebras for a relative monad in the same way an algebra for an endofunctor generalises algebras for a monad.
And your motivation seems similar to the original motivation for relative monads.
@Bruno Gavranovic beware that if you form a category out of heteromorphisms you now have to specify morphisms at both the domain and codomain to complete a square (which will produce a lot more morphisms unless you constrain or quotient somehow), whereas for algebras or dialgebras one only defines a single morphism.
Mike Shulman said:
Well, we get a quotient of the set of all dialgebras.
I remembered that a way to not quotient is instead to compute the lax coend , where is the lax coend, and . I believe this gets us the category of -dialgebras .
Really? It seems to me that the morphisms in that lax coend from to would be generated by pairs such that and . A dialgebra morphism would instead be a pair such that and .
Ist - 'just' ?
@Matteo Capucci (he/him) no, the comma category is larger: an object in the comma is a triple , whereas in .
2-categorically, it's the [[inserter]] of and .
fosco said:
Matteo Capucci (he/him) no, the comma category is larger: an object in the comma is a triple , whereas in .
I see
Mike Shulman said:
Really? It seems to me that the morphisms in that lax coend from to would be generated by pairs such that and . A dialgebra morphism would instead be a pair such that and .
Ah, the lax coend picks out the other diagonal. I see what you mean
Is it the case the a dialgebra is to a relative monad what an algebra is for a monad? Both dialgebras and relative monads generalise endomaps to not-endo-maps. And just as dialgebras are algebras when one of the functors is identity, so do relative monads reduce to usual monads when one of the functors is identity.
There is a definition of algebra for a relative monad, and it's not the same as a dialgebra.