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: Initial algebras as heteromorphisms


view this post on Zulip Bruno Gavranović (Nov 14 2022 at 18:52):

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 F:CCF : \mathcal{C} \to \mathcal{C} we define an algebra of it as a choice of A:CA : \mathcal{C} and a morphism in HomC(F(A),A)\textsf{Hom}_{C}(F(A), A).

Now, for heteromorphisms, they're defined as follows. Given a functor G:CDG : \mathcal{C} \to \mathcal{D} and two objects C:CC : \mathcal{C} and D:DD : \mathcal{D} we can, following nLab, define a set of heteromorphisms as HetC,D(C,D)HomD(G(C),D)\textsf{Het}_{\mathcal{C}, \mathcal{D}}(C, D) \coloneqq \textsf{Hom}_{\mathcal{D}}(G(C), D).

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.

view this post on Zulip Dylan Braithwaite (Nov 14 2022 at 19:03):

In 'Monads need not be Endofunctors' they define algebras for relative monads. So that's one (less general) treatment of algebras for heterofunctors

view this post on Zulip Bruno Gavranović (Nov 14 2022 at 19:04):

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?

view this post on Zulip Dylan Braithwaite (Nov 14 2022 at 19:09):

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

view this post on Zulip Mike Shulman (Nov 14 2022 at 19:12):

Possibly related: [[dialgebra]]

view this post on Zulip Bruno Gavranović (Nov 14 2022 at 19:14):

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.

view this post on Zulip Mike Shulman (Nov 14 2022 at 19:17):

Well, we get a quotient of the set of all dialgebras.

view this post on Zulip Bruno Gavranović (Nov 14 2022 at 19:23):

I'm also finding there's a notion of an algebra for a profunctor.

view this post on Zulip Nathanael Arkor (Nov 14 2022 at 20:47):

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.

view this post on Zulip Nathanael Arkor (Nov 14 2022 at 20:48):

And your motivation seems similar to the original motivation for relative monads.

view this post on Zulip Morgan Rogers (he/him) (Nov 15 2022 at 06:20):

@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.

view this post on Zulip Bruno Gavranović (Nov 22 2022 at 00:12):

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 Xdiscr(D(FX,GX))\square\int^{X} \text{discr}(\mathcal{D}(FX, GX)), where \square\int is the lax coend, F,G:CDF, G : \mathcal{C} \to \mathcal{D} and discr:SetCat\text{discr} : \mathbf{Set} \to \mathbf{Cat}. I believe this gets us the category of F,GF, G-dialgebras .

view this post on Zulip Mike Shulman (Nov 22 2022 at 01:23):

Really? It seems to me that the morphisms in that lax coend from x:FXGXx : FX \to GX to y:FYGYy : FY \to GY would be generated by pairs (ϕ:XY,z:FYGX)(\phi : X\to Y, z : FY \to GX) such that Gϕz=yG \phi \circ z = y and zFϕ=xz \circ F\phi = x. A dialgebra morphism would instead be a pair (ϕ:XY,w:FXGY)(\phi : X\to Y, w : FX \to GY) such that yFϕ=wy \circ F\phi = w and Gϕx=wG\phi \circ x = w.

view this post on Zulip Matteo Capucci (he/him) (Nov 22 2022 at 10:09):

Ist (F,G)(F,G)-Dialg\bf Dialg 'just' FGF \downarrow G?

view this post on Zulip fosco (Nov 22 2022 at 10:15):

@Matteo Capucci (he/him) no, the comma category is larger: an object in the comma is a triple (A,B,FAGB)(A,B,FA\to GB), whereas in F,G-DialgF,G\text{-Dialg} A=BA=B.

view this post on Zulip Mike Shulman (Nov 22 2022 at 10:22):

2-categorically, it's the [[inserter]] of FF and GG.

view this post on Zulip Matteo Capucci (he/him) (Nov 22 2022 at 16:27):

fosco said:

Matteo Capucci (he/him) no, the comma category is larger: an object in the comma is a triple (A,B,FAGB)(A,B,FA\to GB), whereas in F,G-DialgF,G\text{-Dialg} A=BA=B.

I see

view this post on Zulip Bruno Gavranović (Nov 23 2022 at 08:58):

Mike Shulman said:

Really? It seems to me that the morphisms in that lax coend from x:FXGXx : FX \to GX to y:FYGYy : FY \to GY would be generated by pairs (ϕ:XY,z:FYGX)(\phi : X\to Y, z : FY \to GX) such that Gϕz=yG \phi \circ z = y and zFϕ=xz \circ F\phi = x. A dialgebra morphism would instead be a pair (ϕ:XY,w:FXGY)(\phi : X\to Y, w : FX \to GY) such that yFϕ=wy \circ F\phi = w and Gϕx=wG\phi \circ x = w.

Ah, the lax coend picks out the other diagonal. I see what you mean

view this post on Zulip Bruno Gavranović (Dec 02 2022 at 19:11):

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.

view this post on Zulip Nathanael Arkor (Dec 02 2022 at 19:18):

There is a definition of algebra for a relative monad, and it's not the same as a dialgebra.