Only countably many ordinals can be described by an algorithm. There are two natural ways of doing so. In Cantor’s spirit, an ordinal is computable if it is the order type of a computable well-ordering of numbers. In von Neumann’s spirit, an ordinal is constructive if it has a notation: a number that tells whether the ordinal is zero, a successor or a limit, and in the last two cases gives notations for its predecessor or for a sequence converging to it. Kleene’s system of notations makes the second idea precise. The two notions define the same ordinals, whose supremum is the Church–Kleene ordinal .
2.1 Computable well-orderings
An ordinal is computable if it is the order type of a computable relation that well-orders its field : , and means . The same convention defines c.e. well-orderings and, without the well-foundedness condition, computable and c.e. linear orders.
- If is computable and , then is computable.
- If and are computable, so are and .
- From an index of a c.e. linear order with infinite field, one computes an index of a computable linear order of isomorphic to it. In particular, the order type of every c.e. well-ordering is computable.
- If , then is the type of the initial segment of below some element , defined by the computable relation .
- Represent on the disjoint union of the fields, coded by and , with all elements of the first copy below those of the second; and on pairs ordered by comparing first and then (the anti-lexicographic order).
- Let be a c.e. linear order of its field , which is c.e. If is infinite, let be the -th element of in order of enumeration, repetitions omitted: is a computable bijection from onto , and is a c.e. linear order of isomorphic to . It is computable: for , exactly one of and belongs to , so is decided by waiting until one of them is enumerated. This procedure is uniform in an index of . If is a well-ordering with finite field, its type is finite, hence computable.
The Church–Kleene ordinal is the least ordinal that is not computable.
By (1), the computable ordinals are exactly the ordinals below . There are countably many computable relations, so is countable. By (2), it is a limit ordinal, closed under addition and multiplication. One can show that it is also closed under exponentiation, a fact we do not use; the first exercise shows that is computable.
2.2 Kleene’s O
The set of notations, the map from to ordinals, and the relation are defined simultaneously as the least sets satisfying:
- and ;
- if , then , , and if and only if or ;
- if is total, and for every , then , , and if and only if for some .
An ordinal is constructive if it is for some .
A notation tells which case applies, by its prime factorization, and gives the predecessor or a fundamental sequence. The cases are exclusive on : , but , so is not of the form with . A finite ordinal has exactly one notation, obtained from by applications of , but every infinite constructive ordinal has infinitely many: a limit has one for each program of each of its fundamental sequences, and has one for each notation of . The relation is a partial order on with , but two notations of the same ordinal on different branches are incomparable.
- For , the set is well-ordered by , with order type , and . In particular the constructive ordinals are closed downward.
- There is a c.e. relation such that for every and every , if and only if .
- By induction along the inductive definition. For , the set is empty. For , the set is , of type , with ordinals . For , the set is the increasing union of the sets below , each an initial segment of the next one by the induction hypothesis and the fact that ; its type and its set of ordinals are the supremum .
- Let be the least relation containing, for every , the pair and the pairs with , and containing whenever and or , for some . It is generated by c.e. rules, so it is c.e. By induction on , is ; the restriction ensures that is empty.
The relation is therefore c.e. on each initial segment, uniformly in a notation of its upper bound. The set itself is not c.e., nor even arithmetic: the next lesson shows that it is but not (Corollary 3.8).
2.3 From notations to well-orderings and back
Every constructive ordinal is computable. Moreover, there is a total computable function that maps every to an index of a computable well-ordering of type .
Let be the c.e. relation of Proposition 2.5 (2), and let be the set of pairs with , , and or . It is c.e., uniformly in . For , every is in , so is the order on , a well-ordering of type by Proposition 2.5 (1).
It is decidable whether is one of the notations of the finite ordinals; if it is the notation of , output a fixed index of the usual order on . Otherwise, if , the sequence with , , … reaches a notation , so and has an infinite field; output the index given by Proposition 2.2 (3) for . This function is total computable, and its value on is an index of a computable well-ordering of type .
The converse requires arithmetic on notations, defined by the recursion theorem.
There is a total computable function such that for all , , , , when , and whenever .
By the recursion theorem (Corollary 5.2 of “Kleene's fixed point theorem”), applied to a pair as input, there is a partial computable function satisfying
where is an index of the function , computed from , and the index of given by the recursion theorem, and for all other . It is total, by induction on : the successor case calls the function on , and the limit case only computes an index, without evaluating .
The properties are proved by induction on . For they are immediate. For with , the notation belongs to , with , and ; if , then , so . For , the terms are in , and by the last property for ; so , and , since addition is continuous in its right argument. If , then for some , and . Finally .
There is a total computable function such that if , then and for every .
Let be the sum, with in the order of enumeration, of the elements of , and if is empty. Let and . Then by Lemma 2.7, the function is total computable with an index computed from , and belongs to when . Every is in some , and , since .
Every computable ordinal is constructive: from an index of a computable well-ordering , one computes with .
By the recursion theorem (Corollary 5.2 of “Kleene's fixed point theorem”), there is a total computable function such that , where is an index of the c.e. set , computed from and an index of . We show by induction along the well-ordering that and , the type of the initial segment below . If this holds for all , then , and by Lemma 2.8, and for all ; the supremum of the right-hand side is . Finally , with an index of , satisfies . Since the constructive ordinals are closed downward, is constructive.
The constructive ordinals are exactly the computable ordinals, that is, the ordinals below .
The two conversions are uniform, but the second one only gives an upper bound . An exact uniform conversion is impossible (see the exercises): a notation contains more information than a well-ordering, namely the decomposition of the ordinal into successor and limit steps.
2.4 Relativization
All definitions relativize to an oracle : an ordinal is -computable if it is the type of an -computable well-ordering, is defined with in place of , and the results of this lesson hold relative to . The least non--computable ordinal is written . It is countable for every , and every countable ordinal is -computable for some , namely for a set coding a well-ordering of that type; so is the supremum of the ordinals . One has for many non-computable , for instance every arithmetic , and for . Both facts rely on the next lesson. If is arithmetic and is an -computable well-ordering of type at least , then a computable linear order is a well-ordering if and only if it embeds into , a condition since is arithmetic; this contradicts Proposition 3.6. For , the set of indices of computable well-orderings is , hence computable in by the -completeness of (admitted in the next lesson), and the well-orderings with indices , placed one after the other in increasing order of , form an -computable well-ordering of type at least .
2.5 Exercises
Show that is computable.
Solution
By the recursion theorem, as in Lemma 2.7, there is a total computable function with (the notation of ), for , where and , and with . By induction on , , , and implies . For : since , so by Lemma 2.7 the notations are -increasing, of types , with supremum ; and gives . For , the sequence is -increasing by the induction hypothesis, and its supremum is by continuity of exponentiation.
Let , a notation for , and . Then , since , and , so is at least the tower of height . The sequence is computable, and for an index of it is a notation of an ordinal at least . The constructive ordinals being closed downward, is constructive, hence computable by Proposition 2.6.
Show that there is a total computable function such that is an index of a computable well-ordering of type if , and of type otherwise. Deduce that no partial computable function maps every index of a computable well-ordering to a notation for its exact order type.
Solution
Call a number special if enters exactly at stage of a fixed enumeration; whether is special is decidable, and there is at most one special number. Let be an index of the order on in which a special number, if there is one, is the largest element, and the other numbers are ordered as usual. It is computable, uniformly in . Its type is if , and otherwise.
Suppose that maps indices of well-orderings to notations of their exact types. Then is a notation for or for , and a notation for has the form , while a notation for has the form . So if and only if is a power of , which would make computable.
2.6 Notes and references
Church and Kleene (1936–1938) introduced constructive ordinals and the system ; Markwald (1954) proved that computable and constructive ordinals coincide. Sacks’s monograph is the standard reference for higher computability theory.
- S. C. Kleene, On notation for ordinal numbers, Journal of Symbolic Logic 3 (1938), 150–155.
- H. Rogers, Jr., Theory of Recursive Functions and Effective Computability, McGraw-Hill, 1967, Chapter 11.
- G. E. Sacks, Higher Recursion Theory, Perspectives in Mathematical Logic, Springer, 1990.