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'm pretty sure this has been asked before but had trouble finding the information.
Let be a functor and let be a functor algebra. From what I know there are 2 ways to define what "an algebra depending on " should be (in what follows is the carrier of ).
To get an indexed algebra out of a fibered one you use the fibers predicate. In the other direction you "sigma up" your indexed algebra.
Induction is then the fact that each fibered algebra has a section or that each indexed algebra is "inhabited".
My question is what happens for coalgebras?
On your example on : If we let your be a mono into the natural numbers, then what you presented as an -indexed algebra is
By initiality, , hence for all . Like you said, this is what a proof by induction looks like categorically (i.e. showing the existence of such an algebra ), I just found your notation and viewpoint a bit unfamiliar to me. Also, I don't get why you would call this a logical predicate. Is it simply because it is a subcoalgebra? I disagree with this terminology, because to me a logical predicate (or relation) is a certain predicate on an initial algebra, where the carrier of said initial algebra exhibits some higher-order "applicative" behavior and said predicate maps inputs in the predicate to output in the predicate. I gave a (lousy?) presentation (edit: better slides here) on precisely this topic in your university two weeks ago (see also relevant paper) ;).
I will henceforth assume that the notion of a subalgebra on an initial algebra adequately captures the essence of a "predicate proven true by induction" and I hope that you will agree.
So, to answer your question, I will simply consider the dual of a subalgebra, a subcoalgebra. A predicate to the state space of a coalgebra is what is known as a (coalgebraic) invariant, i.e. in Set this corresponds to a subset on states which is preserved through computation.
If has, as you mention, an action on relations/predicates, e.g. , the correct thing to say would be that a is an -algebra (dually, an -coalgebra). Furthermore, in his 2016 book, Jacobs calls the relational counterpart of the above a logical bisimulation, which justifies the terminology you used :grinning_face_with_smiling_eyes:.
Stelios Tsampas said:
On your example on : If we let your be a mono into the natural numbers, then what you presented as an -indexed algebra is
- The existence of a subalgebra into the initial algebra , such that
- is an algebra homomorphism.
By initiality, , hence for all . Like you said, this is what a proof by induction looks like categorically (i.e. showing the existence of such an algebra ), I just found your notation and viewpoint a bit unfamiliar to me. Also, I don't get why you would call this a logical predicate. Is it simply because it is a subcoalgebra? I disagree with this terminology, because to me a logical predicate (or relation) is a certain predicate on an initial algebra, where the carrier of said initial algebra exhibits some higher-order "applicative" behavior and said predicate maps inputs in the predicate to output in the predicate. I gave a (lousy?) presentation (edit: better slides here) on precisely this topic in your university two weeks ago (see also relevant paper) ;).
Hi Stelios thanks for the answer.
Isn't it the case, still looking at , that a family with and is a logical predicate in your terminology?
I have to give your presentation a second look
Stelios Tsampas said:
I will henceforth assume that the notion of a subalgebra on an initial algebra adequately captures the essence of a "predicate proven true by induction" and I hope that you will agree.
What you propose is a proof irrelevant "restriction" of what I described above. More specifically a subalgebra of is in particular a fibered algebra (since it is a morphism into ).
Through the correspondence I laid out above, it is equivalently a map such that structure is respected.
I did not specify the meta theory in my question, and it was kind of assumed that we are working in HoTT, sorry :-)
If you work in HoTT you can hopefully prove an equivalence between the 2 notions but this equivalence will not be a definitional one (ie roundtrip proofs will not go by refl). That is why I make a distinction between fibered and indexed algebras.
Stelios Tsampas said:
So, to answer your question, I will simply consider the dual of a subalgebra, a subcoalgebra. A predicate to the state space of a coalgebra is what is known as a (coalgebraic) invariant, i.e. in Set this corresponds to a subset on states which is preserved through computation.
I think I was rather interested in morphisms out of a coalgebra. In my terminology "cofibered coalgebras"
Because I think that you can formulate coinduction with these? In fact is it possible to formulate coinduction as it can be done for induction?
Principle 1.
Induction is the property that any -fibered algebra has a section
Spelled out: if is an algebra morphism then there is a such that
Naively I would think that coinduction can read
Principle 2.
Coinduction is the fact that any -cofibered coalgebra has a retraction.
Spelled out: if then there is such that
@Stelios Tsampas for what it's worth I think I've found some answer to my question.
Principle 1 above can be formulated as
where is defined as "P is an indexed algebra", the same way I "define" it in my initial question.
So for it's exactly what you get in the proof assistant.
I think "Principle 2 bis" probably looks like "bisimilarity is equality".
The following comes from Practical coinduction - D. Kozen, A. Silva
For set-based coalgebras, one form of the classical coinduction principle states that if two
elements are bisimilar, then their unique images in the final coalgebra are the same.
So my best guess for now is that a coindexed coalgbera is a bisimulation relation. I still have to understand how it all fits together.
Antoine Van Muylder said:
Isn't it the case, still looking at , that a family with and is a logical predicate in your terminology?
I have to give your presentation a second look
In my terminology, I would say is a subalgebra (relative to the initial algebra) or an algebraic invariant (relative to the initial algebra), but because such just holds, such a terminology is a bit redundant.
Again in my terminology, for a predicate to be logical, at least in the way the people dabbling with logical relations use it, then the following should happen:
Basically the property of being a logical predicate is some sort of a generalization of the notion of a coalgebraic invariant, only for higher-order coalgebras! And indeed, the way I define the logical predicate is "an invariant that is relative to itself", or "an invariant that maps inputs in itself to outputs in itself".
Antoine Van Muylder said:
Because I think that you can formulate coinduction with these? In fact is it possible to formulate coinduction as it can be done for induction?
Naively I would think that coinduction can read
Principle 2.
Coinduction is the fact that any -cofibered coalgebra has a retraction.
Spelled out: if then there is such that
You are correct I believe :).
Antoine Van Muylder said:
So my best guess for now is that a coindexed coalgbera is a bisimulation relation. I still have to understand how it all fits together.
I'm trying to think how a "coindexed coalgebra" would look like for relations...
Antoine Van Muylder said:
Stelios Tsampas said:
I will henceforth assume that the notion of a subalgebra on an initial algebra adequately captures the essence of a "predicate proven true by induction" and I hope that you will agree.
What you propose is a proof irrelevant "restriction" of what I described above. More specifically a subalgebra of is in particular a fibered algebra (since it is a morphism into ).
Through the correspondence I laid out above, it is equivalently a map such that structure is respected.
I did not specify the meta theory in my question, and it was kind of assumed that we are working in HoTT, sorry :-)If you work in HoTT you can hopefully prove an equivalence between the 2 notions but this equivalence will not be a definitional one (ie roundtrip proofs will not go by refl). That is why I make a distinction between fibered and indexed algebras.
Ah OK, thank you for explaining. Did you assume that we are working in HoTT simply because it is your default mathematical universe, or are you explicitly looking to explore notions of (categorical) induction and coinduction in a HoTT foundations? I am generally curious to know more about your motivation.
By the way, to give you and idea of where I'm coming from, my recent work on logical predicates and logical relations involve the categorical modelling/systematization of the common proof methods of resp. logical relations and logical predicates, and in the process expose lightweight reasoning principles.
Stelios Tsampas said:
Again in my terminology, for a predicate to be logical, at least in the way the people dabbling with logical relations use it, then the following should happen:
- There needs to be an "operational semantics" associated with , which categorically translates to a (higher-order) coalgebra for some bifunctor B.
- Assuming a bifunctorial predicate lifting , the predicate must be compatible with c in that the successor states under must be in .
So here is the carrier of a coalgebra?
Yeah!
Technically not a coalgebra, but a higher-order coalgebra, if you will. Without being such a carrier the notion of logicality (related inputs to related outputs) does not really apply.
Right. I think my question regarded coalgebraic "coinvariants" if that is even a thing :grinning:
So instead of a coalgebra morphism , a coalgebra morphism (or more generally a morphism )
Stelios Tsampas said:
Antoine Van Muylder said:
Stelios Tsampas said:
I will henceforth assume that the notion of a subalgebra on an initial algebra adequately captures the essence of a "predicate proven true by induction" and I hope that you will agree.
What you propose is a proof irrelevant "restriction" of what I described above. More specifically a subalgebra of is in particular a fibered algebra (since it is a morphism into ).
Through the correspondence I laid out above, it is equivalently a map such that structure is respected.
I did not specify the meta theory in my question, and it was kind of assumed that we are working in HoTT, sorry :-)If you work in HoTT you can hopefully prove an equivalence between the 2 notions but this equivalence will not be a definitional one (ie roundtrip proofs will not go by refl). That is why I make a distinction between fibered and indexed algebras.
Ah OK, thank you for explaining. Did you assume that we are working in HoTT simply because it is your default mathematical universe, or are you explicitly looking to explore notions of (categorical) induction and coinduction in a HoTT foundations? I am generally curious to know more about your motivation.
I formulated my question in HoTT because it is nowadays my default math setting, but also because I'm interested not only in algebra monos but also arbitrary morphisms . Under the fibered-indexed correspondence these translate respectively to and
i.e. induction can be used to prove things but also build objects that are more than proofs
Also it is a setting where I can make sense of why the fibered and indexed view are different: both are weakly equivalent
Maybe you'll find Theorem 3.3.4 (also exercise 4.5.6) in Jacob's book interesting.
Abstractly, the principle of coinduction is presented in Theorem 4.5.8 in the same book (and it says that equality in the final coalgebra is also a final object in its own right). You can perhaps translate it in terms of "coindexing" somehow.
Antoine Van Muylder said:
Stelios Tsampas said:
Antoine Van Muylder said:
Stelios Tsampas said:
I will henceforth assume that the notion of a subalgebra on an initial algebra adequately captures the essence of a "predicate proven true by induction" and I hope that you will agree.
What you propose is a proof irrelevant "restriction" of what I described above. More specifically a subalgebra of is in particular a fibered algebra (since it is a morphism into ).
Through the correspondence I laid out above, it is equivalently a map such that structure is respected.
I did not specify the meta theory in my question, and it was kind of assumed that we are working in HoTT, sorry :-)If you work in HoTT you can hopefully prove an equivalence between the 2 notions but this equivalence will not be a definitional one (ie roundtrip proofs will not go by refl). That is why I make a distinction between fibered and indexed algebras.
Ah OK, thank you for explaining. Did you assume that we are working in HoTT simply because it is your default mathematical universe, or are you explicitly looking to explore notions of (categorical) induction and coinduction in a HoTT foundations? I am generally curious to know more about your motivation.
I formulated my question in HoTT because it is nowadays my default math setting, but also because I'm interested not only in algebra monos but also arbitrary morphisms . Under the fibered-indexed correspondence these translate respectively to and
i.e. induction can be used to prove things but also build objects that are more than proofs
Also it is a setting where I can make sense of why the fibered and indexed view are different: both a weakly equivalent
I see! Indeed, you should be able to generalize this induction principle (no prober subalgebras on initial algebras) for arbitrary morphisms , also epi-mono factorize and see what happens, etc.
Stelios Tsampas said:
By the way, to give you and idea of where I'm coming from, my recent work on logical predicates and logical relations involve the categorical modelling/systematization of the common proof methods of resp. logical relations and logical predicates, and in the process expose lightweight reasoning principles.
Yes I was trying to follow along during your talk 2weeks ago because I remember that classical normalization proofs are not so elegant. I still have to understand how you solve this:)
cool I have to look at Jacobs book. thanks for the discussion
Awesome! Yeah, there's quite a lot of moving parts, but only because the concrete setting has a lot of moving parts. I would be very happy to help you with specific questions, but some things to keep in mind:
This attached slide might also be instructive.
image.png
Antoine Van Muylder said:
cool I have to look at Jacobs book. thanks for the discussion
Cool discussion indeed!
Antoine Van Muylder said:
I formulated my question in HoTT because it is nowadays my default math setting, but also because I'm interested not only in algebra monos but also arbitrary morphisms . Under the fibered-indexed correspondence these translate respectively to and
i.e. induction can be used to prove things but also build objects that are more than proofs
Also it is a setting where I can make sense of why the fibered and indexed view are different: both are weakly equivalent
By the way this is quite compelling a question.
I agree that the proper analogy is "recursion : induction :: corecursion : bisimulation". But it takes a bit of creativity to reformulate this in a way that brings out the categorical duality.
Antoine Van Muylder said:
Naively I would think that coinduction can read
Principle 2.
Coinduction is the fact that any νF-cofibered coalgebra has a retraction.
Spelled out: if f:νF→T then there is r:T→νF such that r∘f=id
...
So my best guess for now is that a coindexed coalgbera is a bisimulation relation.
I would say the connection between these two is that a surjective map is the quotient of its kernel , which is an equivalence relation in (though in HoTT it will in general be a "higher equivalence relation", i.e. a groupoid object). Thus, by the universal property of the quotient, to define a map , it suffices to define a map from to , which we can do by bisimulation.
I am not sure what to say about non-surjective maps .
Antoine Van Muylder said:
So my best guess for now is that a coindexed coalgbera is a bisimulation relation. I still have to understand how it all fits together.
Hmmm if I was to focus on the "bisimulation relation" part of the above quote, forget about the coindexing and follow along the ideas of Antoine from the beginning of the topic, then clearly an -indexed coalgebra is a bisimulation. Let me sketch this, although it's really basic: suppose there is a coalgebra (keep in mind we can generalize to any functor F with a relation lifting) and a relation on . An -indexed coalgebra on amounts to the following:
If then