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.
On the nLab there is currently a number of discussions over whether the set of streams of a set is defined as the final coalgebra of the endofunctor or the endofunctor :
https://nforum.ncatlab.org/discussion/17572/stream/#Item_0
I'd say both deserve to be called "streams", but personally I'd assume unless you said otherwise. There's lots of work that uses that definition, e.g. Rutten's work on "stream calculus".
I'm far from being an expert, but now that I think about it, I have seen both definitions; usually I intend , but Jacobs' coalgebra book (iirc) uses instead ...
In Glasgow the first are called streams and the latter colists
Would it be right to say that costreams are well defined, but that there aren't any?
@Oscar Cunningham what would be your intuitive definition of costream and why do you expect there not to be any?
I was checking my understanding of recursion and corecursion. The set of lists is defined as an initial algebra of the endofunctor , which is the set of finite sequences valued in . @Matteo Capucci (he/him) suggested using the term colist for the elements of the terminal coalgebra of this endofunctor; sequences of elements of that are allowed to be finite or infinite.
The set of streams is defined as the terminal coalgebra of , which is precisely the infinite sequences valued in . So the set of costreams would be the initial algebra of this endofunctor. But I think this is just the empty set, since there's nothing like the in the endofunctor to force you to have any elements at all.
Maybe this argument works: on the category of Sets, or any other Cartesian closed category, commutes with colimits; its category of endofunctor algebras then has colimits and they are "well-behaved", so the initial object in the base (=the empty set) is created and becomes the initial object in the category of algebras, and also a fixpoint: so the initial costream is indeed the emtpy set.
I don't think there's any mathematical doubt here, the question is whether to adopt the nomenclature 'costreams' for such an object, I'd say it's technically OK but not very useful. Hence my :shrug::
To me adding the co makes sense in the initial->terminal direction, not much conversely
But the rules are made up so :shrug:
Matteo Capucci (he/him) said:
To me adding the co makes sense in the initial->terminal direction, not much conversely
:face_with_raised_eyebrow: limits->colimits are in the converse direction
They might be more interesting in other categories though.
I would expect costreams to be inhabited in the category of pointed sets for instance
Ralph Sarkis said:
Matteo Capucci (he/him) said:
To me adding the co makes sense in the initial->terminal direction, not much conversely
:face_with_raised_eyebrow: limits->colimits are in the converse direction
I'm talking about this specific terminological pattern (terminal algebras being named after the corresponding initial algebra)
This topic was moved here from #theory: category theory > Definition of streams by Matteo Capucci (he/him).
It would be nice if we could make a uniform choice of which side has the "co", but I don't think we can hope for that.