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.
Where can I find a self-contained and clean proof of the fact that each polynomial endofunctor on Set has an initial algebra?
A fairly clean argument is sketched at https://ncatlab.org/nlab/show/transfinite+construction+of+free+algebras, if you accept that polynomial functors are accessible.
Thanks for the link, but I don't know what an accessible functor is, so the page doesn't look self-contained and accessible to me. :P
It's probably worth giving polynomial endofunctors on Set as an example at https://ncatlab.org/nlab/show/accessible+functor, then.
For endofunctors of arising from , we need to know preserves -filtered colimits for some . This would follow from knowing preserved filtered colimits, but maybe only the polynomial functor itself does. My guess is that we have to take to be as small as it can be, i.e. , and then use the fact filtered colimits commute with limits in .
I'm being a little bit lazy, and a little bit busy, and not checking this myself, sorry!
is accessible because any right or left adjoint between locally presentable categories is accessible.
Added the examples Mike discussed to https://ncatlab.org/nlab/show/accessible+functor
Although I still haven't looked at the proofs, because they seem to be a bit too technical to be understandable in a short space of time, let me ask the following questions: I read (probably in the HoTT book) that some classical uses transfinite recursion can be replaced by (higher) inductive types. So I thought the proof that W-types exist must use transfinite recursion. But I just can't imagine transfinite recursion to be relevant here because all examples of W-types that come to my mind (such as natural numbers or binary trees) can simply be constructed as "the smallest set of strings over the alphabet of constructors satisfying ...".
Is the notion of a W-type (in Set) the same as the notion of an initial algebra of an endofunctor, or is it more general?
If transfinite recursion is necessary for the existence of W-types: is there some special class of W-types that don't need transfinite recursion to construct?
If you have constructors of infinite arity then "strings" might not be enough. But in fact you can construct W-types in ZF for example using some kind of encoding of trees.
I see. But if one has only finite arities (but maybe infinitely many constructors!) one doesn't need transfinite recursion, right?
Also, what does ZF have but type theory not, that allows the first to construct W-types for itself while the latter needs to have their existence postulated via additional rules of inference?
Leopold Schlicht said:
I see. But if one has only finite arities (but maybe infinitely many constructors!) one doesn't need transfinite recursion, right?
In the finite arity case, even the transfinite recursion construction doesn't need much. You only need to build a sequence of length , and doing this constructively isn't a problem.
The subtlety is in the infinite arity case. In that case, the transfinite recursion construction needs to continue up to some ordinal whose cofinality exceeds the arities of all constructors, and constructing that ordinal can be a problem: even in ZF, which is a very mild sort of "non-classicality", it's (probably?) consistent that there is no ordinal of uncountable cofinality. Nevertheless, the construction of W-types via trees still works in ZF even in the infinite arity case.
Leopold Schlicht said:
Also, what does ZF have but type theory not, that allows the first to construct W-types for itself while the latter needs to have their existence postulated via additional rules of inference?
That probably depends on which particular type theory you consider, but one issue is the impredicative-style definition "the smallest set such that ...".
Also, in a type theory context you usually want W-types to have computation rules which are definitional equalities, and it seems unlikely that you could get those through this kind of construction.
Reid Barton said:
even in ZF, which is a very mild sort of "non-classicality", it's (probably?) consistent that there is no ordinal of uncountable cofinality. Nevertheless, the construction of W-types via trees still works in ZF even in the infinite arity case.
Just take the ordinal of size !
I'm not actually sure how you'd build W-types otherwise.
Cody Roux said:
the ordinal of size
But you need choice to know that there is an ordinal of that size, right?
There is a construction of W-types in any topos with natural numbers object in Words, free algebras, and coequalizers, summarized informally starting on page 121.
As Reid said, you can construct W-types either from transfinite recursion or from powersets. In particular, the latter shows that they exist in any topos, which is much a weaker assumption than ZF. Ordinary predicative type theory doesn't have either one, so W-types have to be postulated. However, powersets don't suffice to construct higher inductive types, as some of them can't even be constructed in ZF; to get those it seems you have to use transfinite recursion or else postulate them.
It's consistent with ZF that every uncountable cardinal is singular, but that is not the same as saying they all have countable cofinality. But I'm not sure which way it falls.
Aha, here's the answer: https://math.stackexchange.com/questions/416218/in-zf-does-there-exist-an-ordinal-of-provably-uncountable-cofinality
The standard law of headlines applies to that question
Reid Barton said:
Cody Roux said:
the ordinal of size
But you need choice to know that there is an ordinal of that size, right?
I don't think so: you can take the set of well-orders over some set, and that set itself is well ordered without choice, of the "right" cardinality.
Wait, I guess not, per David Robert's link. Huh.
But there is an ordinal with countable cofinality? I wonder why the proof doesn't generalize.
The ordinal with countable cofinality, namely , is asserted to exist by its own axiom. (-:
Thanks all!
What are the minimal prerequisites a Martin-Löf-type type theory needs to satisfy in order to be able to construct W-types?
Mike Shulman said:
As Reid said, you can construct W-types either from transfinite recursion or from powersets.
But isn't the proof using power sets Reid sketched also based on transfinite recursion?
Reid Barton said:
But in fact you can construct W-types in ZF for example using some kind of encoding of trees.
Can you make that more precise?
Leopold Schlicht said:
What are the minimal prerequisites a Martin-Löf-type type theory needs to satisfy in order to be able to construct W-types?
When working in type theory, usually we just assert that things like W-types exist. You probably aren't going to be able to construct them with a definitional computation rule from anything else. If you're okay with a typal computation rule, then you can construct them in the same ways you do in set theory, from transfinite recursion (using choice) or power sets (using propositional resizing).
But isn't the proof using power sets Reid sketched also based on transfinite recursion?
No. Reid pointed to a proof in Blass's paper Words, free algebras, and coequalizers, and there's also a sketch in Moerdijk-Palmgren Wellfounded trees in categories. In particular, they show how to encode trees using functions and powersets.
Thanks! I would really like to know the two proofs, but unfortunately I am not able to quickly extract the ideas from the two papers (I don't have the time to read them in detail).
Mike Shulman said:
The ordinal with countable cofinality, namely , is asserted to exist by its own axiom. (-:
I'm confused about the definition of cofinality I guess: I thought was the least ordinal with countable cofinality: that is the smallest ordinal such that every function has an upper bound for countable .
Certainly this ordinal exists in ZF (Andre Hirshowitz taught me this way back in the day in Nice!)
The ordinal you describe is an initial ordinal, i.e. its cofinality is itself. In particular it does not have countable cofinality. The least ordinal with countable cofinality is , a.k.a. the first infinite ordinal.
Specifically, your , which is usually written , is the least ordinal with uncountable cofinality.
So now I'm really confused: I thought you could take the set of well-orders , and this set had provably uncountable cofinality, in ZF.
This contradicts the linked result. What is failing here? Is it the "provably", is it the "uncountable" or is it "you can take the set" (surely not that one)?
If we take what is written there at face value, what fails is "provably". is provably uncountable, of course.
I guess you mean for the well-orders to themselves be ordered by order type. Since there are distinct well-orders of the same order type, this is only a preorder. It seems plausible that this preorder has countable cofinality provably in ZF by some kind of argument. However, when we form the quotient by the "same order type" relation to get a partial order (hence an actual ordinal), the result might not have countable cofinality any more. The reason is that we need choice to pass from a countable sequence in the quotient (for which we are supposed to find an upper bound) to a countable sequence in the original preorder.
Aaah I see. Thanks @Reid Barton !
Can the transfinite recursion proof of the existence of W-types be phrased as an application of Zorn's lemma? (Can each transfinite recursion proof be phrased as an application of Zorn's lemma? Probably not, but due to my limited experience I haven't yet seen a counterexample.)
Now that I look at the SO question more closely; it only talks about ordinals with uncountable cofinality. Does the answer also exclude all WF posets? Your comment makes it sound like it does.
Leopold Schlicht said:
Can the transfinite recursion proof of the existence of W-types be phrased as an application of Zorn's lemma? (Can each transfinite recursion proof be phrased as an application of Zorn's lemma? Probably not, but due to my limited experience I haven't yet seen a counterexample.)
Most likely yes, or at least, as a consequence of Zorn's Fixed Point Theorem (see here) but there are other aspects to consider, e.g. how many ordinals you can prove exist, which seem more important to me than whether or not you use choice (my previous questions/comments notwithstanding).
A particularly crucial one is the predicative/impredicative distinction.
Well, since Zorn's lemma is equivalent over ZF to transfinite recursion and to all other forms of the axiom of choice, the answer must be trivially yes. But I doubt offhand that it looks very natural when written in terms of Zorn's lemma.
Thanks!
Let be a -set of constructors and a function assigning an index set to each constructor. We want to define the W-type that corresponds to this "branching signature" . We proceed by transfinite induction:
Then we can let . But this lives in a universe bigger than . So we need to stop our transfinite recursion at a specific ordinal number. Which one?
How can such an argument be formalized in Martin-Löf type theory? Ordinal numbers are usually discussed in a material set theory. (I know that the HoTT book discusses ordinals, but as far as I can see, that approach exploits univalence, which basically enables one to define an ordinal as a well-ordered set, without needing to consider equivalence classes.) Also, how can one construct the ordinal at which one stops the transfinite recursion in MLTT?
Note that the above argument uses the "axiom of replacement": the universe is closed under . So I can't imagine that one can construct just using power sets and functions (or in an arbitrary elementary topos) by encoding it as a set of trees. But as you told me this is possible. Can somebody give me a sketch of the argument?
You should just read the paper by Blass I linked above, starting at page 121. The construction could not be summarized more concisely here.
Reid's answer pertains to your final question about sets of trees. The construction of W-types in a topos does not proceed by a transfinite iteration, but "directly".
For the first, one must first of all assume an axiom of choice. In this case, the standard argument works just fine for all parts of the proof. Univalence is not needed; the only important property of "ordinals" in this argument is that they are well-ordered sets.
Mike Shulman said:
For the first, one must first of all assume an axiom of choice. In this case, the standard argument works just fine for all parts of the proof. Univalence is not needed; the only important property of "ordinals" in this argument is that they are well-ordered sets.
Alright, thanks. But at which ordinal does the transfinite recursion I described stop?
At any ordinal whose cofinality is greater than .
Can such an ordinal be constructed more directly, so that one doesn't have to know what cofinality means? :-)
Reid Barton said:
You should just read the paper by Blass I linked above, starting at page 121. The construction could not be summarized more concisely here.
I don't see any mathematical construction being described in the paragraphs starting at page 121. The only very rough idea I can extract is that one encodes an element of a W-type using a set of positions and a function from that set to the set of constructors/arguments. But the example given on page 122 is totally confusing and not very enlightening: that's a tree in which each constructor has finite arity, so one could just as well encode it as a finite string. So I didn't get the point when I first skimmed through the paper. The paper goes on encoding the whole construction in an arbitrary elementary topos -- but I'd like to see the construction being carried out in ordinary mathematical language.
I doubt that's the most concise description possible. :-)
@Mike Shulman So one doesn't need replacement in the proof of the existence of W-types?
Leopold Schlicht said:
Can such an ordinal be constructed more directly, so that one doesn't have to know what cofinality means? :-)
The successor cardinal of works. (All assuming choice, of course.)
Leopold Schlicht said:
Mike Shulman So one doesn't need replacement in the proof of the existence of W-types?
One doesn't need replacement to prove that W-types exist. But the particular proof you are talking about using a transfinite iteration does use replacement.
Mike Shulman said:
Leopold Schlicht said:
Can such an ordinal be constructed more directly, so that one doesn't have to know what cofinality means? :-)
The successor cardinal of works. (All assuming choice, of course.)
But I doubt you would be able to prove that this works without essentially invoking cofinality.
Leopold Schlicht said:
the example given on page 122 is totally confusing and not very enlightening: that's a tree in which each constructor has finite arity, so one could just as well encode it as a finite string.
One could, but in this paragraph he is not encoding it that way. Instead he is using it as an example to describe a general encoding that works for infinite arities as well.
Thanks!
Mike Shulman said:
At any ordinal whose cofinality is greater than .
Really any ordinal greater than ...? I would think there's a problem when choosing a very big ordinal: as increases, the cardinality of gets bigger and bigger -- maybe bigger than the true . (Although I don't know whether cofinality is monotone, so this could be the reason for my confusion.)
Mike Shulman said:
The successor cardinal of works. (All assuming choice, of course.)
Why does one need choice here?
Mike Shulman said:
One could, but in this paragraph he is not encoding it that way. Instead he is using it as an example to describe a general encoding that works for infinite arities as well.
I see. :-)
Oh, I see now, your original definition of was wrong. You have to take colimits at limit stages, not coproducts. Otherwise you end up with duplicated stuff already at . The colimits are what prevent the size from getting out of control: you continue adding new stuff, but after a point all of it gets identified with stuff you already had.
Cofinality is not monotone: has cofinality , but has cofinality .
One needs choice because without choice, it's possible that all infinite cardinals are singular, so there may not be any ordinal that works.
Ah, thanks!