Partiality is a natural phenomenon in computability that we cannot get around. So, the question is whether we can give the areas where partiality occurs, that is, where non-termination happens, more structure. In this paper we consider function classes which besides the total functions only contain finite functions whose domain of definition is an initial segment of the natural numbers. Such functions appear naturally in computation. We show that a rich computability theory can be developed for these functions classes which embraces the central results of classical computability theory, in which all partial (computable) functions are considered. To do so, the concept of a Gödel number is generalised, resulting in a broader class of numberings. The central algorithmic idea in this approach is to search in enumerated lists. In this way, function computability is reduced to set listability. Besides the development of a computability theory for the functions classes, the new numberings – called quasi-Gödel numberings – are studied from a numbering-theoretic perspective: they are complete, and each of the function classes numbered in this way is a retract of the Gödel numbered set of all partial computable functions. Moreover, the Rogers semi-lattice of all computable numberings of the considered function classes is studied and results as in the case of the computable numberings of the partial computable functions are obtained. The function classes are shown to be effectively given algebraic domains in the sense of Scott–Ershov. The quasi-Gödel numberings are exactly the admissible numberings of the computable elements of the domain. Moreover, the domain can be computably mapped onto every other effectively given one so that every admissible numbering of the computable domain elements is generated by a quasi-Gödel numbering via this mapping.
A characteristic feature of the theory of computable functions is the appearance of functions that are only partially defined. The reason is that the set of all total computable functions cannot be defined constructively, which is however possible for supersets that in addition contain certain partial computable functions. From the constructive description of a function class, an indexing of the functions in this class and a universal algorithm for the computation of the functions can be obtained in a canonical way. The existence of such an indexing and a universal algorithmic procedure is of central importance for the theory of computability. In the early days of computability theory (cf. e.g. [23]), only those function schemes were considered that correspond to total functions – thus leading to the class of general recursive functions – but soon one proceeded studying all such schemes and thus the class of partial recursive functions. For the reasons mentioned, it was only for this that the elegant and far-reaching theory as we know it today could be developed. See [37] for an in-depth going discussion.
On the other hand, in applications one is of course only interested in total computable functions, because who wants an algorithm that runs through an infinite loop. This was probably also the reason why initially only the general recursive functions were considered. Also, in various areas of recursive mathematics one is only interested in the total computable functions, namely in theories that deal with the effective approximability of infinite objects by finite ones. Examples are recursive analysis and domain theory (cf. e.g. [1,5,6,20,30,38,44,45,48,49]). Here, one examines infinite objects such as the real numbers, which can be effectively approximated by a sequence of finite objects, e.g. the rational numbers. Each such effective sequence is described by a total computable function. So, total computable functions can be considered as names of such effectively approximable objects. Now, if in applications one is more interested in total functions than in partial ones, is it really necessary to consider all partial computable functions in order to obtain a satisfactory theory of computability, or would it be sufficient, to extend the space of total computable functions by only certain partial ones, namely those whose domain is well structured? In this paper it shall be shown that one can in fact limit oneself to the consideration of certain finite functions. Apart from the total computable functions, it suffices to consider only those finite functions the domain of which is an initial segment of ω. It is also not necessary to add all functions defined on initial segments of the natural numbers to the total computable ones, but only a certain subset of them. Any such subset can be made even more sparse, also by removing infinitely many elements, still we will obtain a satisfying theory of computability.
Functions defined on initial segments of ω appear quite natural in this context. After all, every total function can be approximated by a sequence of such initial segment functions. This is used on various occasions. If, for instance, one evaluates a function defined by primitive recursion, say for argument n, one needs to compute the restriction of the function to the initial segment determined by n. In program testing one uses initial segment functions as sample. As we shall see, the class of functions we are considering is of interest not only in programming but also in other areas of computer science. It has been said already that in theories on the effective approximability of infinite objects by finite ones, total computable functions are used as names of the effectively approximable objects. This assignment can now be meaningfully extended to the initial segment functions. Each such function corresponds to a finite sequence of finite objects, which in turn corresponds to a certain vagueness: the object to be approximated has not yet been precisely determined. Initial segment functions are thus names for neighbourhoods in the topological space of the objects that can be approximated. This can be made more precise as follows: The function class considered here can be effectively mapped to the set of computable elements of an algebraic effectively given domain in such a way that the initial segment functions are mapped onto the base elements of the domain, which, as is known, define a basis for the Scott topology of the domain. Also in the interpretation of a domain as a neighbourhood or information system [39,40], the basic elements correspond to set systems that define an object only vaguely. The advantage of this approach is that names for the objects as well as for the “approximating” neighbourhoods are available in one namespace.
First investigations on the problem whether all partial computable functions have to be considered in order to develop a satisfying theory of computability were together with W. H. Kersjes [21]. In this work we started with a modified Turing machine model which for given computably enumerable set A computed all total computable functions and exactly the initial segment functions with a domain of length in A. Based on the machine model, a numbering of this function class was introduced. Yet, at this time we did not have at hand any characterisation of this numbering as known for Gödel numberings. As a result, in many cases the computability of index functions had to be proven by constructing suitable machines and could not be derived from properties of the numbering. This could only be given in the habilitation thesis [41] of the current author, of which the present paper contains central, so far unpublished results.
The problem was that although the numbering has a computable universal function, this function is not in the corresponding function class. However, the graph of the universal function can be enumerated by a total computable function. This property corresponds to the Enumeration Theorem for Gödel numberings [37, Theorem IV]. The second characteristic property that Gödel numberings share is that they are maximal with respect to reducibility among all numberings whose universal function is computable. Similarly, it turns out in the case of the numbering that for every family of functions in the class under consideration, the graphs of which are computably enumerable, uniformly in i, one can computably pass from i to an index of with respect to . We call numberings that satisfy these two conditions, quasi-Gödel Numberings. As will be shown, any two such numberings are recursively isomorphic. Furthermore, all important theorems known for Gödel numberings can be derived for this new type of numberings, without using any results of classical computability theory. As every Gödel numbering is also a quasi-Gödel numbering, this shows that the new notion is a reasonable generalisation of the concept of Gödel numbering.
In classical computability theory, the concept of computable enumerability has proven to be fundamental. For example, in [37], the concept of a partial recursive operator is traced back to that of a computably enumerable set. As follows already from the definition of quasi-Gödel numberings, the concept of computable enumeration is also of central importance for the approach to computability theory that we want to present here. Many of the proofs consist of constructing enumerations for function graphs.
In the subsequent sections we start with developing computability theory on the basis of quasi-Gödel numberings. In Section 2 we introduce the functions classes which, in addition to the total computable functions, only contain those initial segment functions whose domains have certain given lengths. We then show that these classes have standard numberings with respect to a given Gödel numbering of all partial computable functions. The standard numberings obtained in this way are in particular quasi-Gödel numberings. In addition, we will discuss some applications of these function classes. Section 3 shows that a quasi-Gödel numbering of these function classes can also be obtained without using a Gödel numbering. We present a machine model which computes exactly the functions in such a class and use this to define a numbering that turns out to be quasi-Gödel numbering. This shows that a computability theory can be founded on the function classes considered here without prior knowledge of the theory of all partial computable functions.
In the next sections we derive some central results of computability theory from the properties of quasi-Gödel numberings. In Section 4 we show that the smn-theorem holds, discuss the effectiveness of substitution, give a normal form theorem and prove the recursion theorem, Rice’s theorem and some consequences of these results. In contrast to the theory of all partial computable functions, the partial functions of the kind considered here can be extended to total computable functions, but the extension cannot be effectively computed from an index of the partial function. Also, the length of its domain cannot be computed from the index of an initial segment function. As we shall see, the smn-theorem does not have the same importance in this theory as it does in computability theory with Gödel numbering. There it is mainly used to construct index functions. Here these functions have to be constructed in a different way.
In Section 5 computably enumerable sets are introduced in the usual way as sets that are either empty or the range of a total computable function. They can also be characterised as ranges of the functions considered here, not necessarily total ones. With the help of a quasi-Gödel numbering of this function class we then simultaneously get an enumeration of these sets. On the basis of a few selected theorems it will become clear that in this approach to the theory of computably enumerable sets essentially all classical results apply except for those in the formulation of which the domain characterisation of computably enumerable sets is included. Because of the normalisation of the domains of the considered functions, this characterisation is no longer meaningful here. As will be seen however, in the usual proofs the constructions using this characterisation can be replaced by others. In addition, we show that the numbering of computably enumerable sets introduced in the manner described is computably isomorphic to the numbering of these sets defined via a Gödel numbering. This shows that the approach to computability theory presented here can be used to study computably enumerable sets in the same way as the classical one.
In Sections 6 and 7, respectively, the enumerability of subsets of the functions classes under consideration and the computability of operators between these classes are discussed. Theorems of Rice-Shapiro and Myhill–Shepherdson type are derived.
Section 8 is reserved for a numbering-theoretical investigation of quasi-Gödel numberings. Here we address the question of the existence of minimal supersets of the class of total computable functions for which still quasi-Gödel numberings exist. Furthermore, it is shown that all quasi-Gödel numberings of a function class are computably isomorphic. From this it follows in particular that in Section 2 there is no restriction to construct a quasi-Gödel numbering as a standard numbering for a Gödel numbering. Finally, the Rogers semi-lattices of computable numberings of the function classes under consideration are examined and results known for the case of all partial computable functions are transferred, such as Goetze’s theorem [10,11] that every countable partially ordered set can be embedded isomorphically in this semi-lattice. It also follows from results of Mal’cev [27] and Khutoretskiĭ [22] that the considered function classes have infinitely many incomparable Friedberg numberings and that there are positive numberings of these classes to which no Friedberg numbering can be reduced.
In Section 9 we investigate the connection with domain theory. This theory was established independently by Ershov [6] and Scott [39] in their aim to develop a mathematically pleasing way to study the computable functionals of higher type and to construct a model of the untyped lambda calculus, respectively. As will be shown, the functions considered in the present work are just the computable elements of an effectively given algebraic domain, which contains all total number-theoretic functions in addition to the initial segment functions. The quasi-Gödel numberings studied in the previous sections are precisely the admissible numberings in the sense of domain theory. We show that the domain of number-theoretic functions just described can be computably mapped onto any other effectively given domain. As a consequence, we obtain that every admissible numbering of the computable elements of an effectively given domain can be generated from a quasi-Gödel numbering.
The function classes
In what follows let be a one-to-one and onto computable pair encoding so that . Extend the pairing function as usual to an n-tuple encoding () by setting and . Let () be the associated decodings such that . The sets of all n-ary partial, total, partial computable, and total computable functions, respectively, will be denoted by , , , and . The arity n of these functions and the dimension of the Cartesian products of ω that will be considered in the sequel is always assumed to be at least 1. In some cases the case could be included. But we will not discuss this case.
Let be a Gödel numbering of and be the domain of . Should the arity of the considered functions be clear from the context or its knowledge be not important, we write φ instead of . We proceed accordingly with all other numberings of function classes considered here. The value of a numbering ζ at argument i is denoted by , but sometimes also by . Instead of we also write . Moreover, we write if the computation of converges and if it converges in m steps. If C is a fixed non-empty computably enumerable (c.e.) subset of ω, then we assume it to come with a fixed enumeration and denote the finite part of C enumerated after t steps by .
A subset B of ω is called initial segment of ω if for every we have that also , for all . The cardinality of B is said to be the length of B. If , for some initial segment B of ω, then C is called initial segment of . The length of B is then also said to be the edge length of C.
As has already been pointed out, we will consider functions the domain of which is either , the empty set, or an initial segment of with an edge length in a given subset A of ω. Let 1
The notation derives from the German word ‘Anfangsstück’ for ‘initial segment’.
be the set of functions in the domain of which is either empty or an initial segment of with edge length in A. Then we set
For an infinite c.e. set A, is an enumerable subset of . Let to this end, for , denote the n-tupel . We extend the usual less-or-equal relation on ω coordinatewise to and write to mean and . Then there is some so that
It follows that , for all . If for all and all , , then . In the other case, exists and the domain of is an initial segment of of edge length b. Hence . Observe the use of excluded middle in this proof.
For let and , respectively, be the domain and the range of q. Moreover, let
respectively be the graph and the extended graph of q. Then it is readly verified that the enumeration has the following two properties
Enumerations of a subset of that satisfy Condition (1) are called φ-standard numberings and those that additionally meet Condition (2) are special φ-standard numberings [28]. Enumerations of this kind have first been considered by Lachlan [26] for the case of classes of c.e. sets. The class is an example for the kind of classes he studied, that is, a standard class.
Set
then we have that is a special φ-standard numbering of , for every infinite c.e. .2
Note that the numbering depends effectively on (a code) of A. We will, however, not make use of this fact.
The φ-standard numberings of can be characterised by conditions similar to those known for Gödel numberings. Since their universal function is computable, but not contained in , they will not satisfy the conditions for Gödel numberings.
Let ψ be a φ-standard numbering of. Then the following two conditions hold:
The extended graph of,is enumerable by some function in.
For allthere existssuch that if, for some,enumerates the extended graph of a function, then.
Because ψ is a φ-standard numbering there is some with . Therefore, , is computable and is c.e. By construction, is infinite. Hence, it can be enumerated by a total computable function. Thus, (QGN I) holds.
For the derivation of (QGN II) let so that
If enumerates the extended graph of a function it follows that . Because and ψ is a φ-standard numbering we thus obtain that . □
In the sequel, a numbering of a countable set of functions that satisfies Conditions (QGN I) and (QGN II) is called quasi-Gödel numbering (replace by X in (QGN II)). As we have just seen, every φ-standard numbering of such a function class is a quasi-Gödel numbering. In particular,
Every Gödel numbering is a quasi-Gödel numbering.
As will be shown in Section 8, every quasi-Gödel numbering of is a φ-standard numbering, up to recursive isomorphism. The analogy of Conditions (QGN I) and (QGN II) to the corresponding conditions for Gödel enumerations can best be seen by identifying functions with their graphs. (QGN I) then corresponds to the computability of the universal function of the enumeration and (QGN II) says that every effective enumeration of functions of the considered set can be computably reduced to the given enumeration.
As mentioned earlier, the set of extended graphs of a φ-standard numberable function class is a special case of the classes of c.e. sets studied by Lachlan [26]. He calls these classes standard classes. If one interprets the numbering of such a set of functions as an enumeration of the class of the associated extended graphs, then the Conditions (QGN I) and (QGN II) correspond precisely to Lachlan’s requirements on a standard enumeration of a standard class.
As we see, the classes for infinite c.e. sets A have very pleasant effectivity properties. This already suggests that we have made the right choice with the initial segment functions in our plan to develop a computability theory for a set of functions which, in addition to the total computable functions, only contains certain partial functions. Since every total function can be approximated by a sequence of such initial segment functions, these functions also occur quite naturally in computability theory. For example, a function defined by primitive recursion is evaluated from the beginning, i.e. starting at 0. You proceed in the same way with the normalised μ operator
Moreover, for every infinite , the collection of sets is a basis of a metric topology on , the Baire topology. Finally, this approximation property is used in the definition of computable functionals on sets of total functions (cf. [4,49]). We want to clarify this using the example of a functional . Let be a one-to-one computable coding of all finite sequences of natural numbers and for
Then G is called computable if there is some such that for and , , exactly if there exists with so that . The initial segment function p and in particular the length of its domain is a measure for the amount of information about d that the algorithm g needs to compute . Of course one would like to have such algorithms g that manage with as little information as possible. Gordon and Shamir [12] e.g. investigated whether such algorithms always exist and how they can be constructed.
There are various approaches to define computability for uncountable sets other than or , such as computable analysis [34,44,45,47], domain theory [6,38,43,46], the theory of filter spaces [19], the theory of effectively given spaces [20], the theory of finitely approximable sets [18]. Most of these approaches have in common that the elements of the sets under consideration can be approximated by sequences of other finite objects; the real numbers, for example, by normed Cauchy sequences of rational numbers or descending sequences of closed intervals with rational endpoints. Encoding the finite objects used for the approximation allows to describe the approximating sequences by sequences of natural numbers. In [14–17,25,49] it is therefore proposed to use functions in as names for the elements approximated in this way, which led to the now well developed theory of representations. These assignments can be meaningfully extended to , or to put it another way, it makes sense to also use initial segment functions as names. If one considers that all information contained in the approximating finite objects is encoded in the elements to be approximated, then these objects conversely contain only a finite part of the information contained in the approximated elements (cf. [18,40]). The approximating finite objects and thus also every finite sequence of these objects therefore corresponds to a certain amount of uncertainty with regard to the element to be approximated: this is not yet uniquely determined by the finite approximation. In many cases these uncertainty sets are open sets in the topological space of the elements to be approximated. This observation suggests to take initial segment functions as names for the uncertainty set generated by finite sequences of approximating objects, which has the advantage that one has names for the elements of the considered set as well as for the uncertainty sets occurring in the approximation in one namespace. In addition, the described extension of representations to is continuous: if the total function used in the representation is approximated by initial segment functions, then the element named by the total function is approximated by the uncertainty sets corresponding to the initial segment functions. We want to illustrate this with an example below. In Section 9 we will make the statement precise and prove it for the case of effectively given algebraic domains.
We assume the real numbers be given in signed digit expansion
with . The information about x which we can read off from this expansion is the sequence of signed digits. To each finite initial segment of this sequence corresponds a dyadic rational
approximating x. The uncertainty set coming with this number is the interval including all real numbers containing the information about , that is the sequence , as part of their own information.
Now, for , let and for set
If, in addition, we identify a real number z with the one-point interval , we have thus obtained a representation of both, the reals in and the corresponding uncertainty sets. It is such that for and any sequence of initial segment functions so that and ,
A modified Turing machine model
In the last section we constructed a special φ-standard numbering of for infinite c.e. sets . In this section we present a machine model for the computation of these functions. The numberings derived from this characterisation will be a quasi-Gödel numbering.
In what follows let Σ be a non-empty finite set and be the set of all Turing programs which use Σ as tape alphabet. Moreover, let be an effective enumeration of without repetitions and be a non-empty c.e. set. Finally, let P be a Turing program and be a Turing program realising the following algorithm:
Input:
Set .
Compute .
For : run program P on input for j steps and store whether there is a result.
If there is some so that
For all : and program P stops on input within j steps,
then set ; otherwise increase j by 1 and go to (2).
Output: z.
We write to denote the Turing program consisting of program and the subprogram P. If is the semantic map that, with regard to a fixed input/output convention, assigns to every Turing program the function it computes, then is precisely the function that agrees with on the maximal initial segment of with an edge length in A that is contained in ; and is undefined, otherwise.
For every infinite c.e. set,
Let be the i-th program with respect to an effective one-to-one enumeration of the set of all modified Turing programs with and define
For every infinite c.e. set,is a quasi-Gödel numbering of.
If one compares the above definition of the set with the definition of the numbering in the previous section, one sees that the same rule is behind both: algorithms for the computation of functions in are modified to ones for computing functions in . The only difference is that in the first case this is done by direct manipulation of the algorithms formulated in a given algorithmic language, here the language of Turing programs, and in the second case by effective operations on the indices (names) for these algorithms. Therefore, when defining , a coding of all algorithms had to be used (Gödel numbering ), the properties of which were exploited in the proof of Theorem 2.1. The numbering , on the other hand, can be defined directly by listing the modified programs. However, in the proof of the above theorem one can no longer fall back on any known properties of a numbering, but must prove the existence of the computable functions stated in Conditions (QGN I) and (QGN II) by specifying suitable Turing programs. Since we essentially want to derive all results presented in the next sections from the properties of quasi-Gödel numberings, this procedure shows that a computability theory for can be established and developed without prior knowledge of the theory of all partial computable functions. The assumption about A in this section is to be understood as an abbreviated way of saying that A is the image of a total, one-to-one function that can be computed by a Turing program. It does not mean that one has to know already what a c.e. set is.
(QGN I). Let P be a Turing program realising the following algorithm:
Input: t
If t is odd, set and go to (4); otherwise, find i, j and so that .
Simulate j steps of the computation of the i-th modified Turing program on input .
If the computation of on input stops within j steps, set ; otherwise, set .
Stop.
Output: z.
Let . Then with .
(QGN II). Let be a Turing program computing the function
Moreover, for , let be a program that on input outputs in such a way that it can be read as input by . For two programs and let be the program that first executes and then . Finally, let Q be a program that on input of i computes a j with . Then has the property stated in (QGN II). □
Computability theory for
In this and the following sections let be an infinite c.e. set. In these sections we will show that a sufficiently rich computability theory can be developed for the set of functions . For this purpose we give a selection of important theorems of classical computability theory and show that they also apply to the set of functions considered here. Since this contains in particular all total computable functions, computable sets and relations can be introduced as usual in the theory to be developed here. We do not want to go into this any further.
Let be a numbering of . If satisfies Condition (QGN I), we obtain an analogue to Kleene’s Normal Form Theorem.
Letsatisfy Condition (QGN I). Then there is a primitive recursive function q and an-ary computable predicate T so that
Choose the pair encoding and its decodings as primitive recursive and let enumerate the extended graph of the universal function of the numbering . Then
Therefore, defining and
proves the claim. □
Since the numberings considered here do not have a universal function in the considered function class, we cannot construct index functions as we do in the case of Gödel numberings, by first defining a function that contains the index parameters as arguments and then applying the smn-theorem. We have to obtain such index functions by applying condition (QGN II). Therefore, in the proofs of this and the following sections, we often need to construct functions that enumerate the extended graph of another function. These enumeration functions are essentially defined in two ways. In order not to have to repeat these constructions in the following, we want to present the first of these definition methods in the form of a scheme. Let κ be an effective one-to-one enumeration of , in which for () all elements of the initial segment of of edge length a occur before the remaining elements of the initial segment of edge length b. In the following we say that κ enumerates initial segment by initial segment. Also let 3
The notation derives from the German words ‘Nachfolger’ (successor) and ‘Argument’.
and for all , with
(With this notation we suppress the dependence of the functions κ, , arg and ∗ on n and i and j, respectively.)
As follows from the definition, is the encoded successor of in the enumeration κ.
Letandbe a computable relation so thatifholds. Moreover, letbe defined byThenandenumerates the extended graph of an n-ary function.
Note that enumerates alle coded tuples . The value of is one of these coded tuples. As long as holds, computes the successor of in the enumeration given by κ. Since in this case, satisfies the requirement for the remaining elements in an extended graph. If does not hold, the value of is repeated. In particular, if Q is empty, we have that , for all . Thus, enumerates the extended graph of the nowhere defined function in this case. □
As already mentioned, the concept of enumeration is of central importance for the computability theory to be developed here. The numberings of considered here do not have universal functions in , but the extended graphs of the functions in can be enumerated uniformly. We first show a more general result.
Letsatisfy Condition (QGN I). Then there is somesuch that
By Condition (QGN I), the extended graph of , , has an enumeration . Define
Now, by applying Lemma 4.2 we obtain a function . As is readily verified, it has the properties stated. □
The result we are looking for now follows as special case .
Letsatisfy Condition (QGN I). Then there is someso that
As a further consequence we obtain the smn-theorem.
(smn-Theorem).
Let,satisfy Condition (QGN II) andmeet Condition (QGN I). Then there is a functionso that
By Lemma 4.3 there is some such that . Now, let be as in Condition (QGN II). Since , it follows that . Thus, , is as wanted. □
Just as the smn-theorem is the effective version of the reducibility requirement for Gödel numberings, there is also an effective version of (QGN II) for quasi-Gödel numberings:
There is a function , for all , such that for all , and , if enumerates the extended graph of function r, then .
Letsatisfy Condition (QGN I), for every. Then the following equivalences hold:where
meets Condition (QGN II).
meets Condition (QGN II), for all.
meets Condition (QGN E).
Requirements (4a) and (4b) hold, for all:
There is some function, for all, so that for all,and,.
There exists a functionsuch that for alland, ifenumerates the extended graph of function r, then.
holds trivially. We show next that . By Lemma 4.3 there is some such that enumerates the extended graph of . Let , and such that enumerates the extended graph of function r. According to its definition every element of is of the form , or . Therefore, if we set
then . Moreover enumerates the extended graph of function r. Since satisfies Condition (QGN II), there is a function with . Thus, , has the property stated in Condition (QGN E).
In the same way we obtain that (2) implies (4b): choose . Statement (4a) is just the smn-theorem that has been derived from (2) in Theorem 4.5. For the remaining implication it suffices to show . Let to this end , and so that enumerates the extended graph of r. With Condition (4a) we have that , from which it follows with (4b) that . Therefore, has the properties required in (3). □
For what follows, let be a quasi-Gödel numbering, for all . With the smn-theorem we have shown for a known result of computability theory that it also holds in the computability theory for . Next we want to examine whether substitution is an effective operation. Here we first have to state that is not closed under substitution. Because whenever for the set refrains from being a segment of ω then We therefore introduce a modified substitution. Let be defined by
Then is idempotent, and . If is the usual substitution operation, the modified operation is defined by
For and , agrees with on the maximal initial segment of with an edge length in A that is contained in , and is undefined, otherwise. Therefore, for all functions and with ,
In this case, . Since the domains of the functions are comparable with respect to set inclusion, the intersection is again an initial segment of with an edge length in A. In particular, the modified substitution agrees with the usual substitution for all total functions. This justifies the introduction of , as we are essentially concerned with the total functions. Incidentally, it also happens with normal substitution that information gets lost during the substitution process. If for , , then is undefined. That is, the information coming with is lost. In the case of the modified substitution, in addition all information is lost that comes from points which are not contained in the maximal initial segment of ω with length in A that is included in . This is in agreement with the algorithms defined in the last section using the Turing program .
Letbe an infinite c.e. set andbe a quasi-Gödel numbering of, for. Then there is a functionso that
Let be enumerations as in Condition (QGN I) for and , respectively. Moreover, let
By now applying Lemma 4.2 we obtain a function such that enumerates the extended graph of . Since meets Condition (QGN II), there is some with
By setting , we are therefore done. □
A central result of computability theory is the recursion respectively fixed point theorem. Our next goal is derive this theorem for the function classes and numberings considered in this paper. To this end we have to consider the family . Since numbering is only defined on defined indices in ω, this family is not well defined. With help of the enumeration theorem it can however be extended to situations in which index functions may be not defined. We then obtain
Thus, , for every choice of .
Letbe an infinite c.e. set andbe a quasi-Gödel numbering of, for. Then there existsso that
Again, let be enumerations as in Condition (QGN I) for and , respectively. Moreover, define
Then by applying Lemma 4.2 we obtain a function so that enumerates the extended graph of . Now, using Condition (QGN II) for we have that there is some with
Set , . □
This more technical result allows to derive the recursion theorem.
(Recursion Theorem).
Letbe an infinite c.e. set andbe a quasi-Gödel numbering of, for. Moreover, let. Then there is a functionso that
Let be as in Lemma 4.8. Then there is some index with . Set . Then and
□
As we see, the proof of this theorem follows essentially the same idea as in the case of classical computability theory (cf. e.g. [37]). This will be the case in several of the subsequent results. In each case, however, there are certain auxiliary functions such as function g above, the existence of which has to be demonstrated in another way as in the known theory.
The above result is the fixed point version of the recursion theorem. With help of the smn-theorem we now obtain Kleene’s version [24].
Letbe an infinite c.e. set andbe a quasi-Gödel numbering of, for. Moreover, let. Then there is some indexwith
Similarly, we obtain an effective version of this corollary which says the index can be computed from an index of r.
Letbe an infinite c.e. set andbe a quasi-Gödel numbering of, for. Then there is a functionsuch that
Next, we will derive an effective version of the fixed point formulation above. It says that the fixed point in Theorem 4.9 can be computed from an index of f.
Letbe an infinite c.e. set andbe a quasi-Gödel numbering of, for. Then there is a functionsuch that allwithbeing total,
Let be as in Lemma 4.8, and such that is total. Since for total functions the modified substitution defined above agrees with usual substitution, it follows from Theorem 4.7 that there is a function so that
Set . Then and
□
As a further consequence of the recursion theorem we obtain that the index functions used in this section can be chosen as one-to-one. The padding lemma we derive next will be needed here.
(Padding Lemma).
Letbe an infinite c.e. set andbe a quasi-Gödel numbering of, for. Thenhas a one-to-one padding function, that is, a one-to-one functionso that
Let be an smn-function for the case and defined by
Since the modified substitution of functions in into total functions agrees with the usual one, it follows with Theorem 4.7 that there is a function so that
It then follows with Corollay 4.11 that there exists with
Now, assume that is not one-to-one, let a be minimal with the property that
and choose a j with the property just stated, say . Then,
Thus, is one-to-one. Define
Note that because is one-to-one, if , then there is always some z with , for all with . Therefore . Moreover, p is one-to-one and . □
Letbe an infinite c.e. set andbe a quasi-Gödel numbering of, for. Moreover, let. Then there is a one-to-one functionso that.
It follows that the function v in Condition (QGN II), the function d in Condition (QGN E), the smn-function, the function g in Statement (4) of Theorem 4.6, the function in Theorem 4.7, the function g in Lemma 4.8, and hence the function in the recursion theorem, the function q in Corollary 4.11 and the function e in the effective version of the recursion theorem can all be chosen as one-to-one. A consequence of the latter fact is that every recursive definition has infinitely many fixed points.
Letbe an infinite c.e. set andbe a quasi-Gödel numbering of, for. Then there is a one-to-one functionso that for allfor whichis total, and all,
Let be such that is total. By Theorem 4.7 there is a one-to-one function with . Moreover, as just seen, the function in Theorem 4.12 can be chosen as one-to-one. Thus, we have that
It therefore suffices to define . □
With help of the recursion theorem we can now show that it is not decidable whether a function is defined on an initial segment only, or is total, though has a simple structure. This and several similar results will be consequences of Rice’s theorem [35]. Let to this end, for ,
(Rice).
Letbe an infinite c.e. set andbe a quasi-Gödel numbering of, for. Moreover, let. Thenis computable if, and only if,or.
If or , respectively, then or and hence computable. For the converse implication assume that , but is computable. Then . Let and . Set
then . By the recursion theorem there is hence some index so that . Then , exactly if , a contradiction. □
As a consequence of this theorem we now obtain that the sets and cannot be computable. Initial segment functions can be extended to total computable functions. As we will see now, this cannot be done effectively.
Letbe an infinite c.e. set andbe a quasi-Gödel numbering of, for. Then there is no functionso that, ifthenand.
Assume that there is a function as stated, and let j be a -index of q. We show that there is a function so that and for all , . This will help us to construct a function such that
Since q is total, always one of the cases holds. If the first case holds, is defined. As is an initial segment function, we have that also is total. Therefore, in the second case, is defined as well. Thus, . By applying the recursion theorem we hence obtain an index with . Then .
Now, consider , and suppose that in (3) the first case holds. Then
Therefore, the second case must hold. By the properties of v, we have that for all , . Moreover, is an initial segment function and hence is a total extension of . Because , we have that . Thus,
This shows that there cannot exist a function q with the stated properties.
Next, we will consider the construction of the functions v and g used in the proof above. We will start with the construction of v. Let to this end be an enumeration of the extended graph of the universal function of and be the first with respect to a fixed enumeration of A so that . Moreover, let
and be as in Lemma 4.2. Then enumerates the extended graph of the function
Obviously, . Hence, by (QGN II), there is a function with . As is easily seen, v has the properties mentioned above.
For the construction of function g let enumerate the extended graph of the universal function of . Moreover, define
and construct function as in Lemma 4.2. Then enumerates the extended graph of the function p defined by
As seen above, p is total. Therefore . Hence, by (QGN II), there is a function with which by the definition of p is as required above. □
As consequence of this result it follows that also the edge length of the domain of an initial segment function cannot be computed from given index i.
Letbe an infinite c.e. set andbe a quasi-Gödel numbering of, for. Then there is no functionsuch thatis the edge length of, if.
Again we assume that there is such a function p. Let j be a -index of p. In what follows we construct a function so that
Because p is total, always one of the two cases holds. If in the first case we find not later than the other tuple, it follows that is defined. The same is true, once we know that . Since then , by the properties of p. It follows that . Moreover, is an extension of . This contradicts what we have shown in the previous theorem. Hence, there is no such function p.
It remains to show how the function q can be constructed. Let to this end, h, , respectively, be computable enumerations of the extended graphs of the universal functions of and that exist by Condition (QGN I). Moreover, let the relations and be defined as in the proof of the previous theorem. In addition, let
Note that, if for some , holds then , and hence also will not apply, for all . The reason is that is only defined if . Now, use the relations and the function f just defined and apply Lemma 4.2. Then we obtain a function such that enumerates the extended graph of function r defined by
As seen above, . Because of Condition (QGN II) there is thus some with . Then q is as required. □
Since the effective version of the recursion theorem holds for , it follows by a result of Ershov [7, Satz 9] that is precomplete which means that for every partial computable function there is a total computable function so that for all ,
Consequently, we would not be able to obtain positive results in Theorem 4.17 and Corollary 4.18 by working in classical computability theory. In that case one has more algorithms at hand. However, because of the precompleteness of there also cannot exist any partial computable functions q and p with the properties stated in both results.
Computably enumerable sets
As usual, we call a set computably enumerable (c.e.) if there is a function with or C is empty. Then, of course, it follows in the usual way that a set of natural numbers is computable if and only if the set and its complement are both c.e.4
Note that this result holds only classically, not constructively, as we cannot decide whether a computable set is empty of not.
The following five statements are equivalent:
C is c.e.
, for some.
For some,.
For some computable,.
For some c.e.,.
The proof of is obvious: If C is empty let r be the nowhere defined function. In the other case there is a function with . Then choose .
Next, we show that . If C is empty set . In case C is not empty but finite, say , define
If, finally, C is infinite, then the function with needs be total. So, set .
To show , set . Since f is total computable, it follows as ususally that B is computable.
Since computable sets are c.e., we also have that . So, it remains to show that . If B is empty, the same holds for C. Assume that B is not empty. Then , for some . Set . Then and . Thus, C is c.e.5
Similarly, the implications , , and in Theorem 5.1 are not valid constructively.
□
The above result contains the well-known characterisations of c.e. sets. Only the characterisation via function domains is missing. The structure of the non-total functions is too restricted in our case. We only have that the domain of every function in is c.e. As we will see, however, the central results about c.e. sets can still be derived. Statements (4) and (5) are also known as projection theorems. The next result provides the connection between the function studied in this work and the c.e. sets.
For,
For,
We only show (2). The other statement is a well-known fact in classical computability theory. Because of statement (1) we only have to consider the case that . Then and is a finite set. Therefore the equivalence holds. □
Next, we will derive the well-known closure properties of the class of c.e. sets. In the literature some of them are usually shown by using the function domain characterisation. Here, we will have to give other proofs. For completeness reasons, we include proofs of all statements.
Forand, if B and C are c.e. then so are,,,and.
By Theorem 5.1 there are functions with and . set
Then . Moreover, , and . Hence, these sets are c.e. The computable enumerability of follows with the Projection Theorem 5.1(5), since
In the same way we obtain that is c.e. □
As we have seen in Theorem 5.1, the c.e. sets are the ranges of functions in . This allows us to introduce a numbering of all c.e. sets. Let θ be a quasi-Gödel numbering of and define
Since θ is a quasi-Gödel numbering, satisfies the subsequent normal form theorem.
(Enumeration Theorem).
There is a computable setsuch that for all,
By Condition (QGN I) there is a computable enumeration of the extended graph of the universal function of θ. The we have that
Set . Then B has the asserted properties. □
The result strengthens the Projection Theorem 5.1(4): the c.e. sets can be uniformly obtained from the recursive sets by applying a projection. As follows from the above proof we moreover have
The setis c.e.
Our next aim is to show that for the closure operations in Theorem 5.3 there are corresponding computable index operations. As in the last section, we have to construct functions that enumerate the extended graph of another function. These other functions are now enumerations of c.e. sets. The definition of the graph enumerations is again based on a scheme. which we indicate below. Let to this end be an effective coding of all finite sequences of natural numbers that is one-to-one and onto such that there are total computable functions and with
Then the course of values of function up to t is defined by
Letandbe a computable relation withifholds. Moreover, letbe defined byThenandenumerates the extended graph of a unary computable function which is either nowhere defined or total.
As follows from the definition, . The function first lists the value and repeats this until holds for the first time, and then lists . According to the assumption, in this case. Therefore, we have for all that . Thus, is the extended graph of a total function or the nowhere defined function, depending on whether there is some with , or not. □
There are functionsso that
,
,
,
,
.
(1) By Condition (QGN I) there exists a computable enumeration of the universal function of numbering θ, say . Moreover define
Then it follows for the function constructed according to Lemma 5.6 that enumerates the extended graph of a function that enumerates . By Condition (QGN II) there is therefore a function with . Thus, it suffices to set .
The remaining statements follow in the same way. We only indicate how Q and f have to be chosen in each case.
(2) Set
(3) Set
(4) Set
(5) Set
□
Let be the self-reproducibility problem.
is c.e., but not computable.
Let again enumerate the extended graph of the universal function of θ. Then,
With the projection theorem one obtains that is c.e. It remains to show that is not c.e. Assume to the contrary that is c.e. Then there is some with . If then , a contradiction. So, , that is, . Hence, , again a contradiction. It follows that is not c.e. □
The setis c.e., but not computable.
As we have seen in Corollary 5.5, this set is c.e. If it would be computable, also and hence would be computable, which is not the case. □
As consequence of Theorem 5.8 we next obtain that in terms of -indices, given a computable set, one cannot uniformly pass to its complement.
There is no functionso that for all, ifis computable thenis its complement.
Let enumerate the set and define
Then the function constructed as in Lemma 5.6 is such that for , enumerates the extended graph of the identity function on ω. For all other i, the extended graph of the nowhere defined function is enumerated. Let be as in Condition (QGN II) so that . Then,
Now, assume that there is such a function . Then,
With Corollary 5.9 and the projection theorem it follows that the complement of is c.e. Since is c.e. as well, is even computable, which is not the case. □
Next, we will derive the single-valuedness theorem (cf. [37]). A set is called single-valued if for every there is at most one so that . Each single-valued set is thus the graph of a partial function. The single-valuedness theorem states the existence of an enumeration of all single-valued c.e. sets, which can also be considered as an enumeration of all partial functions with c.e. graph. We therefore derive a further version in which an enumeration of those single-valued c.e. sets is constructed that are graphs of the functions in . For let
(Single-valuedness Theorem I).
There is a functionsuch that for,
is single-valued.
.
.
Ifis single-valued then.
Let again enumerate the extended graph of the universal function of θ, and define
Let be the function constructed as in Lemma 5.6 with respect to relation Q and function f. By Condition (QGN II) there is then a function with . Moreover, it follows from its construction that for all , if then also . Thus, is single-valued. In addition, and . If is single-valued then is an enumeration of . Hence, in this case. □
(Single-valuedness Theorem II).
There is a functionsuch that for,
is single-valued.
.
is either empty, equal to ω, or an initial segment of ω with length in A.
Ifis single-valued andeither empty, equal to ω, or an initial segment of ω with length in A, then.
Let enumerate the extended graph of the universal function of θ, and define
Furthermore, let be constructed according to Lemma 5.6 and the function existing by Condition (QGN II) so that enumerates the extended graph of . If contains an initial segment of ω with length in A, then it follows from the construction of k that . Moreover, if , then . In addition, is smaller than the maximal length of the initial segments of ω that have a length in A and are contained in , if such a length exists at all. Therefore, is single-valued and either empty, equal to ω, or an initial segment of ω with length in A. Furthermore, . Hence, if is single-valued so that is either empty, equal to ω, or an initial segment of ω with length in A, then . □
With the help of the first single-valuedness theorem we are now able to derive the reduction principle.
(Reduction Principle).
Letbe c.e. Then there are disjoint c.e. subsets,of B and C, respectively, so that.
Let . Then X is c.e., say . Let and set as well as . Then and C are as wanted. □
In what follows. let , , , and ≡, respectivly, denote m-reducibility, 1-reducibility, m-equivalence, 1-equivalence and computable isomorphism of sets and numberings, as usual. Since only total computable functions are involved in the corresponding definitions, these carry over unchanged to the theory under development here. The same holds for their well-known properties as well as the definition of m- and 1-completeness. We don’t want to go into detail about this. Let
,,andare 1-complete.
The proof of completeness proceeds as usual. By Corollary 5.9, is c.e. Let B be a c.e. set, say . Then 1-reduces B to ,
Since is c.e., it suffices to show that . Let enumerate the set and
Then it follows for the function constructed according to Lemma 4.2 that enumerates the extended graph of the identity on ω, in case that . Otherwise, it enumerates the extended graph of the nowhere defined function. By applying Condition (QGN II) we now obtain a function so that . As we have already seen, we can assume v to be one-to-one. Observe that
It follows that .
Because of Condition (QGN I) there is an enumeration of the extended graph of the universal function of numbering θ. Then
from which it follows that is c.e. We show that . Let to this end the relation Q be as defined above and set . Moreover, construct the function according Lemma 4.2 on this basis. Then enumerates the extended graph of the function , in case that . Otherwise, it enumerates the extended graph of the nowhere defined function. Let as in Condition (QGN II). Then . Moreover, we have that
Hence, .
Since is c.e., the same holds for . In addition, we have
Thus, , which shows that also is 1-complete. □
In the classical theory of c.e. sets, the sets mentioned in the theorem above , , and are also shown to be 1-complete. Since it is the aim of the present paper to show that this theory can as well be developed on the basis of the functions in and quasi-Gödel numberings, the 1-completeness of and is what was expected. The 1-completeness of and , however, is less obvious because of the special form of the domains of the functions in .
.
The notion of productive set is now introduced as usual. is A-productive, if there is some such that for all , if then . Since and is infinite by the padding lemma, we have that is infinite as well. Therefore p cannot be an initial segment function. That is, .
is A-productive if, and only if, there is a total functionso that, forsuch that.
As usual it can moreover be shown that p can even be chosen as one-to-one and onto, and that A-productiveness is inherited upwards under m-reducibility.
Every A-productive set has an infinite c.e. subset.
Define by and . Then k enumerates the extended graph of . Now, let be as in Condition (QGN II) so that and hence . Assume that is A-productive with productive function and let be as in Theorem 5.7 with . Moreover, let be a -index of the empty set. Set
Then . In addition,
and . Thus, by defining we obtain a one-to-one total computable function and consequently, is an infinite c.e. subset of C. □
is A-productive.
C.
(1) follows by choosing as productive function.
(2) Since A-productiveness is inherited upwards under m-reducibility, we have that, if then C is A-productive. We will now show that for every A-productive set C, .
Let be a one-to-one productive function of C and enumerate set . Moreover, let and
For the function constructed according to Lemma 4.2, it then holds that in case , enumerates the extended graph of the function and otherwise the extended graph of the nowhere defined function. If v is the function existing for this k according to (QGN II), then we have for that . Otherwise, is undefined. By the recursion theorem there is now a function with , and as we have seen there is even a one-to-one function g with this property. It follows that
We therefore obtain
and
Since is one-to-one, total and computable, this proves that . □
If is a c.e. set the complement of which is A-productive, C is called A-creative. From the above results it follows that is A-creative. Note that Myhill’s theorem on the coincidence of the notions of 1-equivalence and computable isomorphism also holds in the approach to the theory of c.e. sets presented here: the proof in [37] uses only arguments which are admissible in our approach as well. Therefore, we obtain the following characterisation of the A-creative sets.
Let. Then the following four statements are equivalent:
C is 1-complete.
C is m-complete.
C is A-creative.
.
Rogers [36] shows that a set is creative exactly if it is the self-reproducibility problem of a Gödel numbering. With Theorem 5.19 we obtain a corresponding result for quasi-Gödel numberings.
A setis A-creative if, and only if, there is a quasi-Gödel numbering χ ofsuch that.
We have already seen that for each quasi-Gödel numbering χ the set is A-creative. Assume conversely that C is A-creative. Then by the preceding theorem. Therefore, there is a one-to-one and onto function so that exactly if . Since f is total, the modified substitution coincides with the usual composition . By Theorem 4.7 there is thus a function with . Moreover, there is a function so that . Let and . Then the numbering χ we looking for is defined by . Obviously, we then have that . As is readily verified, χ is a quasi-Gödel numbering. In addition, we have that
□
We hope that with the results in this section we have presented a convincing selection of theorems showing that the theory of c.e. sets can also be constructed on the basis of the theory of functions from . In particular, all results apply here that are usually derived without referring to the domain characterisation of the c.e. sets such as Myhill’s theorem mentioned above. In the other cases, the above proofs show how one can replace constructions in which the domain characterisation is commonly used by other constructions that are admissible in the theory developed here. We now want to show that the numbering defined here via a quasi-Gödel numbering, which we have shown has many properties of the commonly used numbering W defined at the beginning of Section 2, is not essentially different from W.
.
By the number-theoretic analogue of Myhill’s theorem (cf. [7]) it suffices to prove that and . We first show that . Since θ satisfies Condition (QGN I), . Therefore, there is a function with . Moreover, there is a function so that . Since φ has a padding function, there also such functions that are one-to-one.. Thus, , that is, .
Next, we show that also . Let to this end such that and is total, if is not empty, and is nowhere defined, otherwise. Moreover, let enumerate the extended graph of . Since θ satisfies Condition (QGN II) and has a one-to-one padding function, there is a one-to-one function with . Therefore, , that is, . □
As follows from this result, the A-productive and A-creative sets, respectively, coincide with the productive and the creative ones. Note that the above theorem does not obviate the results on , such as Theorem 5.7. Theorem 5.21 is a metatheorem derived within classical computability theory, whereas the results in this section are results of the theory presented here, derived in this same theory.
In Section 4 we have seen that the sets and are not computable. At the end of this section we want to determine the exact position of these sets in the arithmetic hierarchy.
is-complete.
is-complete.
It suffices to prove (1). Let to this end enumerate the extended graph of the universal function of numbering θ. Then we have that
It follows that . It remains to show that for , . Let . Then there is a ternary computable predicate Z such that
Set and
and let be the function constructed from this according to Lemma 4.2. As can be seen from the construction, for the one-to-one function that exists according to (QGN II) and Corollary 4.14 one then has that
If then is not empty. Let be the smallest element of this set and . Then is undefined, for all , and , for all . Thus, .
If, on the other hand, , then there is some with , for all . It follows in this case that for all , . That is, . So, we have
That is, . □
Enumerability of subsets of
In this and the next section we consider the computability of type-two objects over the function classes . We start with the enumerability of sets of functions in . The usual definition in this case is intensional and uses quasi-Gödel numbers of these functions. As main result a theorem of Rice-Shapiro type is derived, which gives an extensional index-free characterisation of such sets.
Let be a quasi-Gödel numbering of . Then a set is called completely c.e. if the index set of X with respect to is c.e.
For stating the main result of this section, we need a canonical indexing of . Let to this end again be an effective and one-to-one map that enumerates initial segment by initial segment. Then , exactly if . Moreover, let enumerate A, and define
and
Letbe a quasi-Gödel numbering of. Then the following five statements hold:
is a one-to-one numbering of.
is computable.
Letbe the edge length of. Then.
.
is c.e.
(1) follows by the construction. We next show (2) and (3). As is easily seen, the sequence number
where , is computable from i. Thus, if with
for , then , for . As is also readily seen, is computable. Thus the same holds for . Since and for , we further obtain that .
(4) Let enumerate . Moreover, define
and construct as in Lemma 4.2. Then enumerates the extended graph of . According to (QGN II) and Corollary 4.14 there is then a one-to-one function such that ,
(5) Let, in addition, be an enumeration of . Then we have that
The statement is now a consequence of the projection lemma. □
Note that in the proof of Property (5) only Condition (QGN I) was used.
(Rice, Shapiro).
Letbe a quasi-Gödel numbering of. Then,is completely c.e. if, and only if, there is a c.e. setso that
Let us assume first that X has the special form. Then
With Lemma 6.2(5) and the projection lemma it follows that is c.e.
Conversely, suppose that is c.e. The proof now proceeds in three steps.
.
Without restriction assume that r is total. Moreover, suppose that there is no with . To derive a contradiction, it suffices to show that in this case. By our assumption it would follow that is c.e., which is not the case as we have already seen.
Let enumerate . We will show that there is a function with
Then we have that , exactly if . To see this, note that if then , for all . Hence, in this case and thus , as . If , there is some with . Let be the smallest such c and . Then we have for all that . For all other , is undefined. Consequently, and . By our assumption this means that , that is .
For the construction of q we again apply Lemma 4.2 and Condition (QGN II), as we did already many times. We only state the predicate Q and the function f needed in the construction:
.
Again we assume to the contrary that there are so that , , but . Let j be a -index of s. Then we construct a function so that
Note that since , in case that we always have that , independently when will be found. By our assumption . Thus it follows for that . On the other hand, if , then . Because , we have in this case that . This shows that , which is impossible as we have seen.
It remains to construct the function p. Let to this end be a -index of r and be an enumeration of the extended graph of the universal function of numbering . The existence of follows from Condition (QGN I). Define
and construct function as in Lemma 4.2. Then enumerates the extended graph of function d with
As follows from the definition, . By Condition (QGN II) there is then a with . Consequently, p has the properties mentioned above.
There is a c.e. setso that.
Let with and . Then C is c.e. By Claim 1 we have for that
As is well known [32], the completely c.e. subsets of a numbered set generate a topology, called the Ershov topology. Sets as in Equation (4), on the other hand, generate a topology on , called the Scott topology. From the above result it follows that both topologies are equivalent on .
Effective operations on
Various kinds of effective operations have been studied on the partial computable functions. Here, we will consider two kinds: computable operators which use the graph of the argument function as oracle and are hence defined for all functions in , and Markov computable functions which are only defined for the computable functions in . They use quasi-Gödel numbers of the argument function in their computation, that is, algorithms computing the argument function. The main result of the section will be a theorem of Myhill-Shepherson type relating the two kinds of operations.
An operator is computable, if there is a c.e. set so that for ,
We say that C defines the operator .
As follows from the definition, is c.e., if is c.e. Thus, for computable operators we have that . If one assigns a code number to the zero-ary tuple, the above definition and the subsequent results for also include the case of the recursive functionals. However, it should be noted here that and contain the zero-digit constant functions, each of which we identify with the respective constant, as well as the zero-ary nowhere defined function.
Letand G be its restriction to. Thenis computable if, and only if, the following three conditions are satisfied:
For all,
For all,
is c.e.
Assume that is computable. Then it follows from the definition that for and with , . Thus, (1) holds. Moreover,
For the converse inclusion note that is the union of all , where with . Therefore, let q be such an initial segment function. In the enumeration of each element of corresponds to a finite number of questions to . Since is finite, there is thus some with and , which shows that also Condition 2 holds.
For Condition (3) observe that
Recall that the unbounded existential quantifiers in the right-hand side can be brought in front of the expression by using an effective sequence encoding. Moreover, the extended graphs in the expression are c.e. With the projection lemma we hence obtain (3).
Now, conversely, suppose that satisfies Conditions (1)–(3). With (2) we have for that
Let the graph encdoding be as in the proof of Lemma 6.2. Then it follows
Set
Then C defines . Since can be computed form i and because of Lemma 6.2(2) and Condition (3), we further have that C is c.e. Thus, is computable. □
The second type of operator we are going to consider is at the basis of the Russian school of constructive mathematics. Contrary to computable operators these operators are only defined for functions in .
For , let be a quasi-Gödel numbering of . An operator is called Markov-computable if there is a function so that
We say that g realises the operator G.
Our aim is to derive an analogue of the Myhill–Shepherdson theorem [31] for the function classes considered here. We break the proof down in several steps.
The restriction of a computable operatortois Markov-computable.
We use Lemma 4.2 to construct a function such that enumerates the extended graph of the function , where G is the restriction of to . The existence of a function realising G is then a consequence of Condition (QGN II). Let be as in Theorem 4.4. Then enumerates the graph of . Moreover, let the c.e. set C define . Set
By comparing this definition with the condition that C defines one sees that the function constructed as in Lemma 4.2 has the required property. □
Every Markov-computable operatoris monotone. That is, for,
Assume to the contrary that there are so that , but . Since for every ,
there is some with
Let us suppose for the moment that a function can be constructed so that enumerates the extended graph of s, if , and the extended graph of r, otherwise. Then it follows for the function existing for this k by (QGN II) that
If G is realised by , we obtain
By Lemma 6.2(5) the set is c.e. and hence is c.e. as well, which is false. Thus we have a contradiction.
It remains to show that a function as above can indeed be constructed. Let again be as in Lemma 4.4. Then enumerates the extended graph of . Moreover, let j, , respectively, be -indices of s and r, and let enumerate . Then define by
Then is as wanted. □
Letbe Markov-computable. Then, for every,
By the previous lemma the set is a chain with respect to inclusion. For , is contained in this set. Hence, the statement holds trivially. It remains to consider the case that . Because of Lemma 7.5 it suffices to show that
Assume to the contrary that this inclusion is wrong for some . Then there exists so that , but
Statement (5) holds exactly if for all with , .
Assume for the moment that there is some with and , if , and , if . Let realise G. Then we obtain
As seen in the last proof, this is impossible. So, the assumption made at the beginning is wrong.
We will now consider the construction of function v. Let to this end , respectively, be enumerations of and A. Moreover, let be defined by
If , enumerates the extended graph of r; otherwise, step by step lists
until i has been found in . If so, it continues this enumeration until an initial segment of with an edge length in A has been enumerated by . Therefore, in this case, enumerates the extended graph of a function with . It follows that the function existing for this k by Condition (QGN II) has the appropriate properties. □
If , for some and the Markov-computable operator is realised by , then . With Lemma 6.2(5) we also obtain that is c.e. We have now completed all the necessary steps to derive the result we were aiming for.
(Myhill, Shepherdson).
The restriction of every computable operatortois Markov-computable.
Every Markov-computable operatoris the restriction toof a computable operator.
(2) By Lemma 7.5 the set with is a chain with respect to set inclusion. Thus, the union over this chain is single-valued, that is, the graph of an m-ary function. Let be this function. Then we have
The chain is either finite or infinite. In the first case is its maximal element. Since for all , , it follows that also . In the other case, every element of the chain is the graph of a function in . The domains of these functions in the chain therefore form an increasing chain of subsets of . it follows that is total in this case. Hence, in both cases, . With Lemma 7.5 and the remark preceding this theorem it follows that satisfies Conditions (1)–(3) in Theorem 7.2. Hence, is computable. In case that it moreover follows with Lemma 7.6 that . That is, G is the restriction of to . □
Quasi-Gödel numberings and the Rogers semi-lattice of computable numberings
The aim of this section is to look at the quasi-Gödel numbered sets from a numbering-theoretic perspective. We limit ourselves to unary functions, since every n-ary function converts into the unary function with by means of a one-to-one and initial segment-wise enumeration κ of .
As will be seen, any two quasi-Gödel numberings of are computably isomorphic. Furthermore, is a retract of , where and φ, respectively, are a quasi-Gödel and a Gödel numbering. If A, B are infinite c.e. subsets of ω with , then is a retract from . Thus, there are infinitely descending chains with being a retract of and being a retract of . It could still be that there are subsets , which are not necessarily of the form , so that is quasi-Gödel numberable. Another central result is that the set of all such extensions of has no -minimal elements.
We will also study the Rogers semi-lattice of computable numberings of . A central result is every countable partially ordered set can isomorphically be embedded into the Rogers semi-lattice of computable numberings of . In addition, the semi-lattice contains infinitely many Friedberg numberings and positive numberings to which no Friedberg numbering can be reduced.
Let η, γ be numberings of. Then the following three statements hold:
If γ is a quasi-Gödel numbering and, then η satisfies Condition (QGN I).
If η is a quasi-Gödel numbering and, then γ satisfies Condition (QGN II).
If η, γ, respectively, satisfy (QGN I) and (QGN II), then.
(1) Since , there is some with . By assumption, is c.e. Hence this is also true for .
(2) Let with . Moreover, let and so that enumerates the extended graph of r. Since η satisfies (QGN II), there is some with . Set . Then . Whence also γ satisfies (QGN II).
(3) Let be as in Theorem 4.4. Then enumerates the extended graph of function . Since γ satisfies (QGN II) there is some with . Thus, . □
It follows that, if γ is a quasi Gödel numbering of , then η is also a quasi-Gödel numbering of , exactly if . In particular, all quasi-Gödel numberings of are m-equivalent. As we will see next, they are maximal among all numberings of satisfying (QGN I), and minimal among those satisfying (QGN II).
Let η be a numbering of. Then the following three statements are equivalent:
η is a quasi-Gödel numbering.
η satifies (QGN I) and for all numberings γ of, if γ satisfies (QGN I) then.
η satifies (QGN II) and for all numberings γ of, if γ satisfies (QGN II) then.
Assume (1). Then (2) follows with Proposition 8.1(3). Conversely, suppose (2) and let be a quasi-Gödel numbering as in Theorem 3.2. Then , by our assumption. With Proposition 8.1(2) it follows that η satisfies (QGN II). Since it also satisfies (QGN I), η is a quasi-Gödel numbering.
In a similar way it follows that (1) and (3) are equivalent. □
At the end of Section 4 we pointed out that quasi-Gödel numberings are pre-complete. This will be strengthened next.
Let θ be a quasi-Gödel numbering of. Then the following two statements hold:
θ is complete with the nowhere defined function as distinguished element. This means that for anythere existssuch that
θ is cylindrical, that is,, where.
(1) Let be as in Theorem 4.4. Then enumerates the extended graph of . Moreover, let be defined by
Then enumerates the extended graph of , if . Otherwise, enumerates the extended graph of the nowhere defined function. Let be the function existing by (QGN II). Then we have for that . In the other case, is nowhere defined.
(2) Let with be the cylinder of θ. Then . Since by the Ershov–Myhill isomorphism theorem [7, p. 295] 1-equivalence coincides with computable isomorphism, it remains to show that also . Let to this end be the padding function existing by Theorem 4.13. Then
Thus, with . That is, . □
As we have seen above, all quasi-Gödel numberings are m-equivalent. Since such numberings possess padding functions, they are even 1-equivalent. With the Ershov–Myhill isomorphism theorem we thus obtain an extension of Rogers’ Isomorphism Theorem [36] for Gödel numberings to quasi-Gödel numberings.
(Isomorphism Theorem).
All quasi-Gödel numberings are computably isomorphic.
It follows that a numbering of is a quasi-Gödel numbering, if it is computably isomorphic to a quasi-Gödel numbering.
In Section 2 we fixed a Gödel numbering φ to construct a special φ-standard numbering of which then turned out to be a quasi-Gödel numbering. Thus, every quasi-Gödel numbering of is computable isomorphic to a special φ-standard numbering of . This result can be strengthened again.
For every quasi-Gödel numbering θ there is a Gödel numbering ξ so that θ is a special ξ-standard numbering.
Let be the special standard numbering von used in Section 2. Then , for some . Moreover, there is a one-to-one and onto function with . Set . Then ξ is a Gödel numbering, and as is readily verified, is a special ξ-standard numbering of . Moreover, . □
It follows that the construction of a quasi-Gödel numbering of in Section 2 has universal character: every quasi-Gödel numbering is obtained in this way.
In a next step we will examine which other properties the quasi-Gödel numbered set has as a subobject of . Here, a subset with a numbering ζ is called subobject of if (cf. [7,8]).
is an sn-subobject of if, in addition, there is some so that is a special φ-standard n numbering of Z.
is called r-subobject or retract of if, in addition, there is an idempotent onto function and some such that .
is an n-subobject of if, in addition, there exist such that for all , . In this case the numbering is called φ-normal (cf. [28]).
is called principal subobject of and ζ φ-principal numbering, if for every numbering η of Z with one has that .
As seen above, the quasi-Gödel numbering θ is computably isomorphic to a special φ-standard numbering of . This shows
is an sn-subobject of,
In Section 3 we have considered a Turing program that calls arbitrary Turing programs P so that is a program that computes the functions in . By considering the semantics of the programs we obtain an idempotent onto map such that . As we have seen above, θ is computably isomorphic to .
is a retract of.
As is shown by Ershov [7, ], every retract of is an n-subobject and each n-subobject is a principal subobject of . Thus, every quasi-Gödel numbering θ of is φ-normal and a φ-principal numbering. Since every numbering of that satisfies (QGN I) is m-reducible to φ, it follows with Theorem 8.2 that each φ-principal numbering of is a quasi-Gödel numbering is. As a consequence, every φ-normal numbering of is a quasi-Gödel numbering.
Let,and, respectively, be the set of φ-principal, φ-normal and quasi-Gödel numberings of. Then
If B is a c.e. superset of A and γ is a quasi-Gödel numbering of , then the above results remain true if φ is replaced by γ and by . In particular we obtain an analogue of Theorem 8.7.
is a retract of.
So far in this work it was shown that the function classes have a quasi-Gödel numbering for every infinite c.e. set A and that for this a sufficiently rich computability theory can be developed in which the same results apply as in the computability theory for all partial computable functions. If there are classes of functions that include the total computable functions but do not contain all partial computable functions and for which a satisfactory computability theory can be developed, one naturally wonders whether there are -minimal classes of this kind. Here, , if and is infinite. We do not want to treat this problem in full generality, but want to examine whether the family of sets contains -minimal elements, where
Set and . Then each set with is computable and infinite. Since , we obtain that contains infinite descending chains with respect to .
If every function class in were of the form with an infinite c.e. set A, we would of course know that contains no -minimal elements, since from any infinite c.e. set one can remove infinitely many elements without destroying the property of being both infinite and c.e. However, we do not know whether there are other sets for which has a quasi-Gödel numbering. Menzel and Sperschneider [29, p. 76] show that the family of sets
does not contain -minimal elements. Here, for a set X with numbering δ, is enumerable in δ if , for some c.e. set . If now has a quasi-Gödel numbering, then this is m-reducible to φ. So is also enumerable in φ. This leads us to the following result:
has no-minimal elements.
Let be the set of numberings of that satisfy Condition (QGN I). As was shown at the beginning of this section, the quasi-Gödel numberings of are just those numberings in that are maximal with respect to . The numberings in are exactly those numberings of that have a computable universal function (which is however in ). Therefore, these numberings are called computable.
For two numberings η and γ of , defined by
is the direct sum of η and γ. Let be the equivalence class of all numberings of that are m-equivalent with η. As is well known, the m-reducibility relation can be lifted to the equivalence classes yielding a partial order on the set of these classes denoted by ⩽. As shown in [7], the collection of all equivalence classes is an upper semi-lattice, usually called Rogers semi-lattice, with respect to this order with as least upper bound of and . Because the direct sum of two computable numberings is computable again, we obtain for the set :
is a Rogers sub-semi-lattice of the Rogers semi-lattice of all numberings of.
is the greatest element in.
As we will see later in this section, is not a lattice. The next result is an analogue of a theorem by Goetze [10,11] for the Rogers semi-lattice of the computable numberings of .
Every countable partially ordered set can be isomorphically embedded into the Rogers semi-lattice of computable numberings of.
We derive this result in several steps. Let to this end θ be a quasi-Gödel numbering of , a be the least positive element of A and be the set of all computable subsets of ω. Then is a lattice with the empty set as least element. For every let the numbering be defined by
Here, . Note that by the choice of a, for all j with , is defined at least on an initial segment of ω of length a. Therefore, .
For all,.
Since θ satisfies (QGN I) there is an enumeration of the extended graph of the universal function of θ. Then we have
It follows that is c.e. So, it remains to show that . Let to this end with . Then
is a -index of r. □
Note that by Theorem 8.2(3), . On the other hand, . Thus, .
is a lattice that is dually isomorphic zu. The mappingis a dual isomorphism.
Let . First, we show that , if . Consider the following algorithm:
Input: i
If then set and go to Step (4)
If then find j so that
set and go to Step (4).
(After the procedure has finished with this step, we know that .)
Find with
and set .
STOP
Output:.
As we will see in the next step, the indices j and in Steps (2) and (3), respectively, can be computed from i. Therefore, the above is really an algorithm. Let be the function it computes. Then , that is .
By Theorem 4.4 there is function such that for every , , enumerates the extended graph of . Let
Then enumerates the extended graph of the function defined in Step (2) of the above algorithm and , the extended graph of the function defined in Step (3). Let be the functions now existing by Condition (QGN II). Then and . Thus, we can effectively find indices j and from given i with the required properties.
Next, we show that also conversely, implies . To this end we need the following result:
Let B be a computable set. Then the setis computable, exactly if.
Which we will prove in a later step.
Assume that and suppose that . Then we need to show that . Since , it follows with Claim 4 that the set is computable. Because , it follows that is computable as well. Hence , again by Claim 4.
Thus, we have shown that J is a dual isomorphism. Since is a lattice, the same holds for .
Finally, we prove Claim 4. If then , exactly if . Therefore, the set is computable. If , then we have that
By Rice’s theorem the set is not computable, for every . As B is computable it follows that the set cannot be computable. □
Goetze [11] has shown that every countable partially ordered set can be isomorphically embedded in the lattice of all computable set. By Lemma 8.14 it therefore follows that every such set can be isomorphically embedded in the Rogers semi-lattice of computable numberings of . This concludes the proof of Theorem 8.12
In the next section we will show that is an effectively given domain with properties as considered in [42, Theorem 3.1]. As a consequence we obtain that the Rogers semi-lattice of computable numberings of contains a Friedberg numbering, that is a one-to-one computable numbering. As in Khutoretskiĭ [22, Corollary 2] one even obtains that there are infinitely many Friedberg numberings of which are pairwise incomparable with respect to m-reducibiility. Pour-El [33] shows that the equivalence class generated by a Friedberg numbering of is minimal in .
is not a lattice.
also contains minimal elements that are not generated by Friedberg numberings, A numbering η of is called positive, if is c.e. Ershov [7, p. 303] shows that the equivalence class generated by a positive numbering is minimal in the Rogers semi-lattice of numberings of a given set.
has a positive computable numbering to which no Friedberg numbering can be reduced.
The general construction is given by Khutoretskiĭ [22, Example 1]. Here we verify the assumptions made. Let . The we have to show that the sets
can be numbered in a one-to-one way so that the universal functions of these numberings have a c.e. graph. This, however, is a consequence of Mal’cev [27, Theorem 5], if the classes can be enumerated in a quasi-Gödel numbering θ of and the sets
are c.e. Note that
Since it follows that both sets are even computable.
Let and with . Moreover, let j be a θ-index of f. Then
Thus, is enumerable in θ.
Because of Condition (QGN I) there is some that enumerates the extended graph of the universal function of θ. Then we have that
Thus, is c.e. and hence enumerable in θ. □
as effectively given domain
In this section the connection with domain theory is investigated. As will be seen, is an effectively given algebraic domain with the finite functions as its compact elements. Furthermore, the domain-theoretic computability notions coincide with those developed for . The main result says that can be mapped onto every other effectively given algebraic domain D by an effectively continuous operator. Via this operator each quasi-Gödel numbering of defines an admissible numbering of the computable elements of D. Moreover, every such numbering can be obtained in this way. More generally, the operator induces a homomorphism of the Rogers semi-lattice of computable numberings of onto the Rogers semi-lattice of computable numberings of the computable elements of D.
Let be a poset. D is pointed if it contains a least element ⊥. A subset L of D is directed, if it is non-empty and every pair of elements in L has an upper bound in L. D is a directed-complete partial order (dcpo), if every directed subset L of D has a least upper bound in D.
Let and be posets. Then a map is Scott-continuous, if it is monotone and for any directed subset L of D with existing least upper bound, .
Assume that x, y are elements of a poset D. Then x is said to approximate y, written , if for any directed subset L of D the least upper bound of which exists in D, the relation always implies the existence of some with . Moreover, x is compact if . A subset B of D is a basis of D, if for each the set contains a directed subset with least upper bound x. Note that the set of all compact elements of D is included in every basis of D. A directed-complete pointed partial order D is said to be continuous (or a domain) if it has a basis and it is called algebraic (or an algebraic domain) if its compact elements form a basis. Note we here assume that a domain is always pointed which is not usually the case in the literature. Standard references for domain theory and its applications are [2,3,9,13,43,46].
Let D andbe domains. Then the following statements hold:
The approximation relation ≪ is transitive.
.
.
.
is directed with respect to ≪.
is Scott-continuous, exactly if for all,.
Note that by Properties (2), (3) we have that exactly if , in case that x or y is compact.
Let D be a continuous domain with countable basis B and a numbering . Then D is said to be effectively given if the set is c.e.
If D is effectively given, then an element x is computable if is c.e. Let be the set of all computable elements of D. If is another domain, say with basis and numbering so that is effectively given, then a map is computable if G is Scott-continuous and is c.e. Note that for computable maps G, .
Let D be an effectively given domain. Then a numbering of the computable elements of D is called admissible if it satisfies the following two requirements:
is c.e.
There is a function such that for all , if is directed then .
Weihrauch and Deil [48] have shown that for every effectively given domain an admissible numbering can be constructed.
(Weihrauch, Deil, 1980).
Let D be an effectively given domain and let η be an admissible and γ an arbitrary numbering of its computable elements. Then the following statements hold:
η is complete with special element ⊥.
.
.
.
Since η is complete, it ensues with a result of Ershov [7, p. 332] that η is cylindrical. As follows from the definition of an effectively given domain, all basic elements are computable. Moreover, if γ is any numbering of satisfying (A II) then .
Let D be an effectively given domain with basis B and numbering β of the basis elements. Moreover, let η be a numbering ofthat satisfies (A I). Then there is a functionsuch that for allwiththe following statements hold:
,
,
(),
.
Let . Then is c.e. Thus, there is some function so that . Since is directed with respect to ≪, the same holds for . It follows that exists. Moreover, . Let i, j be such that . Since is directed with respect to ≪, we have that for any there is some with . Thus is non-empty and in addition, . Hence, .
In the sequel let such that is a total function enumerating , if is non-empty. Moreover, let with , Then define by
Then , where is the -st element of in the enumeration . Because is directed with respect to ≪, we have that is non-empty. Therefore, is defined. Furthermore, for all a, , from which we obtain that . Conversely, since for all a, , we also have that . Thus, . Now, let with . Then r is as required. □
For the next consequence choose i such that .
For every, there is a functionso that
,
.
After these more technical results which we will need later, we now start investigating the relationship of the function classes with domains. Again we will restrict ourselves to considering only the classes .
Letbe a c.e. infinite set and forsetThenis an effectively given algebraic domain such that:
The nowhere defined function is the least element.
The initial segment functions inare exactly the compact elements.
The functions inare the computable elements.
For numberings of, Conditions (QGN I) and (A I) as well as (QGN II) and (A II) are equivalent. In particular, the quasi-Gödel numberings are exactly the admissible numberings.
The computability notions for operatorsin Definition
7.1
and in this section coincide.
If is directed with respect to ⊑, then L has to be a chain. Thus the union of the graphs of the functions in L is again the graph of a function. This function must be in . It is the least upper bound of L with respect to ⊑. Thus, is directed-complete. Obviously the nowhere defined function is the least element. Every function in is the least upper bound of its restrictions to initial segments of ω with length in A. So, the functions in form a basis.
(2) All functions in are compact. To see this let and L be a directed subset of with . Then . Since is finite, it is covered by the union of the graphs of finitely many functions in L. Because this union is again contained in the graph of some function , as L is directed, we have that . Conversely, if is compact, then consider the directed set L of all functions with . Then . By compactness there is some with . Since , the same must hold for f. Thus, the domain is algebraic.
With Lemma 6.2(4) and Statement (4) we obtain that is c.e. Thus, the domain is effectively given with respect to the numbering of the basis.
(3) Let . Then it follows with Lemma 6.2(5) that is c.e. Hence, . Conversely, if then is c.e. Since we have,
Because the extended graph of the universal function of is computable, by Lemma 6.2(2), it follows that is c.e. With Lemma 5.2(2) we therefore have that .
(4) As in the proof of Lemma 6.2(5) it is only required that θ satisfies Condition (QGN I), it follows that every numbering of with Property (QGN I) satisfies Condition (A I). Conversely, assume that θ is a numbering of satisfying Condition (A I). Then it follows as in the proof of Statement (3) that is c.e. Thus, θ meets Requirement (QGN I).
Next assume that θ has Property (QGN II) and let be directed. Then there exists some with . Hence,
which implies that . As we moreover see, can be uniformly enumerated in i. Therefore, by Condition (QGN II), there is a function so that . Thus, θ fulfils Requirement (A II). Since, for any , the set is c.e., uniformly in i, it conversely follows that θ has Property (QGN II), once it satisfies Requirement (A II).
(5) Let be a c.e. set that defines G. Then
By Lemma 6.2(2) is c.e. With the Tarski–Kuratowski algorithm [37] we can now bring this expression in a -form from which we see that is c.e.
Conversely assume that is c.e. Moreover, Let . By the continuity of G have that
Therefore by setting
we obtain that C is c.e. and defines G. □
The next result shows that each of the algebraic domains can be computably mapped onto any other effectively given domain. For the proof we need an extension of a result by Weihrauch and Schäfer [49].
Let D be an effectively given domain with basis B and numbering β of the base elements. Then there is a computable operatorsuch that the following statements hold for,
Ifthen also.
Ifthen also.
For all,.
Ifis directed then.
Ifandis directed then.
Ifthen.
For,.
Since is c.e., there are functions and so that enumerates and h enumerates . Now, we define functions :
If , we set
where, is a β-index of ⊥.
In case that and as well as and are already defined for , say , then we define , and as follows: if there is with
then set
If there is no such number , then set
As follows form the definition, . By Lemma 9.1(5) there is thus a number with the above property. Hence, is defined also in this case.
In addition to the above let with
Moreover, let
Then C is c.e. As is readily seen, C defines a computable operator G on . For with non-empty domain it follows that . G maps the nowhere defined function onto the function that for 0 has value , and is undefined, otherwise. This implies Statements (1) and (2).
Let . Then we obtain from the definition of G that for and , and . Since , this proves Statement (3). In particular, we have that exists. Moreover, Statements (6) and (7) follow, because G is monotone by Theorem 7.2 and by Statement (2), is finite, for functions .
For Statements (4) and (5), finally, let so that is directed. First, we show that the sequence is unbounded. Assume that . Since the set is directed with respect to ≪ by Lemma 9.1(5), there is some and a number so that
Then .
Suppose that with . The there is some c with . Moreover, because the sequence is unbounded, there is some with as well as a smallest number so that the inclusion in (6) holds. Thus, . Consequently, since , for some , it follows that .
As follows from the above definitions, we have for that for every m there is some i with . Therefore, , if is directed. This shows Statement (4) and, with what we derived before, also Statement (5). □
Letbe a c.e. infinite set and D be an effectively given domain with basis B and numbering β of the base elements. Then there is a computable onto mapso that for,
Ifthen.
Ifis directed then.
Ifandis directed then.
Let be the computable operator constructed in the preceding Lemma. Then we define for ,
Since the basis B is countable, every domain element is the least upper bound of a sequence that is monotonically increasing with respect to ≪. Because of Property (5) of the preceding lemma it therefore follows that Γ is onto. We will show that Γ is continuous. Let to this end . Since G is continuous by Theorem 7.2, we have
In the same way we obtain that
Since every domain element x is uniquely determined by the set , it follows that Γ is continuous. It remains to show that is c.e. We have that
Since the set of all with is c.e. by Theorem 7.2 and is c.e. by Lemma 6.2, the set of all with is c.e. as well. Therefore, Γ is computable. Properties (1)–(3) are a consequence of the corresponding properties of G, □
Assume that the domain D in the previous result is also algebraic. Then we have for and that exactly if . As is readily seen, in this case for every base element u of the domain one can find an initial segment function in that is mapped onto u under Γ. This initial segment map can be chosen in such a way that it has only β-indices of ⊥ and u as values. This makes the idea of extending representations as they are used in computable analysis e.g. (cf. [47]) to maps from to domains precise that was mentioned at the beginning of this paper: initial segment functions are used as names for approximating base elements, or the Scott-open sets they determine, and total functions are names for the limit elements they approximate. By the monotoniciy of Γ the relation of approximation between the functions in , that is the names, is transferred to the domain.
Next, we will show that via the mapping Γ numberings of can be generated from numberings of .
Letbe a c.e. infinite set and D be an effectively given domain. Moreover, let θ be a numbering of. DefineThen η is a numbering of the computable elements of D such that:
If θ satisfies (QGN I) then η meets Condition (A I).
If θ satisfies (QGN II) then η meets Condition (A II).
If θ is quasi-Gödel numbering then η is admissible.
By Corollary 9.6, Γ maps onto . Therefore, the mapping η defined above is a numbering of .
(1) Because of the continuity of Γ we have that
Since Γ is computable, the set is c.e. By Lemma 6.2 the same is true for , if θ satisfies (QGN I). Thus, also is c.e. in this case. That is, η meets the (A I) requirement.
(3) Let θ be a quasi-Gödel numbering. We need to construct a function so that enumerates in such a way that , if is not empty. By (QGN I) there is a function enumerating the universal function of θ. Define
Now, construct according to Lemma 4.2 so that enumerates the extended graph of a function that enumerates , if is not empty, and the extended graph of the nowhere defined function, otherwise. By Condition (QGN II) there is then a function that has the properties we were looking for.
Assume that is directed. Then is not empty. As we have seen, W and are computably isomorphic. Thus, there is some so that . Set . Then it follows wth Theorem 9.9(3) that
Hence, η satisfies Requirement (A II). By Statement (1), η also satisfies (A I). Therefore, η is admissible.
(2) Let ψ be a quasi-Gödel numbering of , and let θ satisfy (QGN II). By Theorem 8.2 there is some with . Let γ be the numbering of defined by . Then we have that . Since γ is admissible by what was shown in the previous step, it follows with Proposition 9.4 that η satisfies (A II). □
As we see, via the mapping Γ numberings of with Properties (A I) and\or (A II) can be obtained from numberings of . A natural question now is whether all numberings of with these properties can be obtained in this way.
Set
Then is a mapping from the set of all numberings of into the set of all numberings of . As follows from the definition, is monotone with respect to .
Letbe a c.e. infinite set and D be an effectively given domain. Then the following statements hold:
For every admissible numbering η ofthere is a quasi-Gödel numbering θ ofwith.
For every numbering η ofsatisfying (A I) there is a numbering θ ofsatisfying (QGN I) with.
(1) Let ψ be a quasi-Gödel numbering of and η an admissible numbering of . By the previous theorem, is an admissible numbering as well. Hence, η and are computably isomorphic, by Proposition 9.4. Thus, there is a computable permutation with , that is, . Let . Then also θ is a quasi-Gödel numbering. Moreover, .
(2) As has already been mentioned, has an admissible numbering, say γ. Let ψ be the quasi-Gödel numbering with , existing by Statement (1). If η is a numbering of satisfying (A I), then , by Proposition 9.4. Therefore, there is some with . Define . Then it follows with Proposition 8.1 that θ satisfies Condition (QGN I). Moreover, . □
The question whether an analogue of Statement (2) is true for numberings of that satisfy Requirement (A II) remains open.
We call numberings of that satisfy (A I) computable. As in the case of the numberings of the m-equivalence classes of the numberings of form a Rogers semi-lattice in which the m-equivalence classes of the computable numberings form a Rogers sub-semi-lattice with the class of admissible numberings as greatest element. Let again be the direct sum of the numberings η and γ of . Then it follows for numberings ψ and θ of that
Moreover, let be the quotient map, that is, .
is a homomorphism of the Rogers semi-lattice of the numberings ofto the Rogers semi-lattice of the numberings ofwhich maps the Rogers sub-semi-lattice of computable numberings ofonto the Rogers sub-semi-lattice of computable numberings of.
Conclusion
Non-termination is a typical phenomenon of algorithms. It cannot be read of the program text whether and in which case it will happen. Approaches to avoid it have been studied and require advanced methods. The question we dealt with in this paper was whether there is a class of algorithms that compute the total (computable) functions – in which one is actually only interested in –, and if non-termination occurs then the area of such inputs has a well-defined structure.
We presented such a class. The typical algorithms we had in mind when starting this research was list searching or the computation of approximations of infinite objects like the real numbers. The algorithms in this class are such that their domain of definition is either the set of all natural numbers, or a finite initial segment of this set of a length in a given set of possible lengths. It is shown that even though besides the total functions there are now only finite partial functions, a rich computability theory can be developed in which the same important results hold as in the classical theory dealing with all possible algorithms. In particular, the theory of computably enumerable sets remains unchanged, except that the domain characterisation of these set is no longer useful. What is presented is a development of computability theory based on the notion of enumeration. The main ingredient in the new approach is the notion of a quasi-Gödel numbering which takes on the role of Gödel numberings in the classical approach. Every Gödel numbering is also a quasi-Gödel numbering.
Besides developing computability theory on the basis of quasi-Gödel numberings, meta-investigations have been carried out: each of the new quasi-Gödel numbered function classes is a retract of the Gödel numbered class of all partial computable functions. Moreover, it is the class of computable elements of an effectively given algebraic domain (in the sense of Scott–Ershov) that can be computably mapped onto every other effectively given domain so that the finite functions in the function classes considered here are mapped onto base elements. This extends the use of representations in computable analysis in such a way that now also the basic open sets used for approximations obtain a finite function as name. Via the mapping every quasi-Gödel numbering induces an admissible numbering of the computable domain elements. It was shown that every admissible numbering can even be obtained in this way.
The class of all partial computable functions, and several of its subclasses, can be characterised in a machine-independent way as smallest classes containing certain basic functions and being closed under operations like composition and primitive recursion. It would be interesting to know whether the function classes considered in this paper can be characterised in a similar way. Among others this could be used to introduce a notion of relativised computability, in particular, a notion of Turing reducibility, and compare it with the classical ones. Another way of doing so, is via the modified Turing machine model presented in Section 3.
Footnotes
Acknowledgement
The author is grateful to the reviewers for their careful review of the manuscript and helpful comments.
References
1.
O.Aberth, Computable Analysis, McGraw-Hill, New York, 1980.
2.
S.Abramsky and A.Jung, Domain theory, in: Semantic Structures, S.Abramskyet al., eds, Handbook of Logic in Computer Science, Vol. 3, Clarendon Press, Oxford, 1994, pp. 1–168.
3.
R.M.Amadio and P.-L.Curien, Domains and Lambda-Calculi, Cambridge University Press, Cambridge, 1998.
4.
M.Davis, Computability and Unsolvability, Mc-Graw-Hill, New York, 1958.
Y.L.Ershov, Computable functionals of finite types, Algebra i Logika11 (1972), 367–437, English translation, Algebra and Logic, 11, 203–242, 1973. doi:10.1007/BF02219096.
7.
Y.L.Ershov, Theorie der numerierungen I, Zeitschrift für mathematische Logik und Grundlagen der Mathematik19 (1973), 289–388. doi:10.1002/malq.19730191901.
8.
Y.L.Ershov, Theorie der numerierungen II, Zeitschrift für mathematische Logik und Grundlagen der Mathematik21 (1975), 473–584. doi:10.1002/malq.19750210164.
9.
G.Gierz, K.H.Hoffmann, K.Keimel, J.D.Lawson, M.W.Mislove and D.S.Scott, Continuous Lattices and Domains, Cambridge University Press, Cambridge, 2003.
10.
B.Goetze, Die struktur des halbverbandes der effektiven numerierungen, Zeitschrift für mathematische Logik und Grundlagen der Mathematik20 (1974), 183–188. doi:10.1002/malq.19740200808.
11.
B.Goetze, The structure of the lattice of recursive sets, Zeitschrift für mathematische Logik und Grundlagen der Mathematik22 (1976), 187–191. doi:10.1002/malq.19760220125.
12.
D.Gordon and E.Shamir, Computation of recursive functionals using minimal initial segments, Theoretical Computer Science23 (1983), 305–315. doi:10.1016/0304-3975(83)90036-1.
13.
C.A.Gunter and D.S.Scott, Semantic domains, in: Handbook of Theoretical Computer Science, Vol. B, Formal Models and Semantics, J.van Leeuwen, ed., Elsevier, Amsterdam, 1990, pp. 633–674.
14.
J.Hauck, Zur Präzisierung des Begriffs berechenbare reelle Funktion, Zeitschrift für mathematische Logik und Grundlagen der Mathematik17 (1971), 295–300. doi:10.1002/malq.19710170135.
15.
J.Hauck, Berechenbare reelle Funktionen, Zeitschrift für mathematische Logik und Grundlagen der Mathematik19 (1973), 121–140. doi:10.1002/malq.19730190804.
16.
J.Hauck, Berechenbare reelle Funktionenfolgen, Zeitschrift für mathematische Logik und Grundlagen der Mathematik22 (1976), 265–282. doi:10.1002/malq.19760220136.
17.
J.Hauck, Konstruktive Darstellungen reeller Zahlen und Funktionen, Zeitschrift für mathematische Logik und Grundlagen der Mathematik24 (1978), 365–374. doi:10.1002/malq.19780241912.
18.
P.G.Hinman, Finitely approximable sets, in: Computation and Proof Theory, M.M.Richteret al., eds, Springer, Berlin, 1984, pp. 233–258. doi:10.1007/BFb0099488.
19.
J.M.E.Hyland, Filter spaces and continuous functionals, Annals of Mathematical Logic16 (1979), 101–143. doi:10.1016/0003-4843(79)90006-8.
20.
T.Kamimura and A.Tang, Effectively given spaces, in: Automata, Languages and Programming, J.Diaz, ed., Springer, Berlin, 1983, pp. 385–396. doi:10.1007/BFb0036923.
21.
W.H.Kersjes, Rekursionstheorie auf Teilmengen von P. Diplomarbeit, RWTH, Aachen, 1982.
22.
A.B.Khutoretskiĭ, On the reducibility of computable numerations, Algebra i Logika8 (1969), 251–264, English translation, Algebra and Logic, 8, 145–151, 1970. doi:10.1007/BF02219834.
23.
S.C.Kleene, General recursive functions of natural numbers, Mathematische Annalen112 (1936), 727–742. doi:10.1007/BF01565439.
24.
S.C.Kleene, Introduction to Metamathematics, Van Nostrand, Princeton, NJ, 1952.
25.
C.Kreitz and K.Weihrauch, Theory of representation, Theoretical Computer Science38 (1985), 35–53. doi:10.1016/0304-3975(85)90208-7.
26.
A.H.Lachlan, Standard classes of recursively enumerable sets, Zeitschrift für mathematische Logik und Grundlagen der Mathematik10 (1964), 23–42. doi:10.1002/malq.19640100203.
27.
A.I.Mal’cev, Algorithms and Recursive Functions, Wolters-Noordhoff, Groningen, 1970.
28.
A.I.Mal’cev, The Metamathematics of Algebraic Structures, B.F.WellsIII., ed., Collected Papers: 1936–1967, North-Holland, Amsterdam, 1971.
29.
W.Menzel and V.Sperschneider, Recursively enumerable extensions of R1 by finite functions, in: Logic and Machines: Decision Problems and Complexity, E.Börgeret al., eds, Springer, Berlin, 1984, pp. 62–76. doi:10.1007/3-540-13331-3_33.
30.
Y.N.Moschovakis, Recursive Analysis, Ph.D. thesis, University of Wisconsin, Madison, Wis, 1963.
31.
J.Myhill and J.C.Shepherdson, Effective operations on partial recursive functions, Zeitschrift für mathematische Logik und Grundlagen der Mathematik1 (1955), 310–317. doi:10.1002/malq.19550010407.
M.B.Pour-El, Gödel numberings versus Friedberg numberings, Proceedings of the American Mathematical Society15 (1964), 252–256.
34.
M.B.Pour-El and J.I.Richards, Computability in Analysis and Physics, Springer, Berlin, 1989.
35.
H.G.Rice, Classes of recursively enumerable sets and their decision problems, Transactions of the American Mathematical Society74 (1953), 358–366. doi:10.1090/S0002-9947-1953-0053041-6.
36.
H.RogersJr., Gödel numberings of partial recursive functions, Journal of Symbolic Logic23 (1958), 331–341. doi:10.2307/2964292.
37.
H.RogersJr., Theory of Recursive Functions and Effective Computability, McGraw-Hill, New York, 1967.
38.
D.Scott, Outline of a Mathematical Theory of Computation. Technical Monograph PRG-2, Oxford University Computing Laboratory, 1970.
39.
D.Scott, Lectures on a Mathematical Theory of Computation. Technical Monograph PRG-19, Oxford University Computing Laboratory, 1981.
40.
D.Scott, Domains for denotational semantics, in: Automata, Languages and Programming, M.Nielsen and E.M.Schmidt, eds, Springer, Berlin, 1982, pp. 577–613. doi:10.1007/BFb0012801.
D.Spreen, Computable one-to-one enumerations of effective domains, Information and Computation84(1) (1990), 26–45. doi:10.1016/0890-5401(90)90032-D.
43.
V.Stoltenberg-Hansen, I.Lindström and E.R.Griffor, Mathematical Theory of Domains, Cambridge University Press, Cambridge, 1994.
44.
A.Turing, On computable numbers, with an application to the Entscheidungsproblem, Proceedings of the London Mathematical Societys2-42(1) (1936/37), 230–265.
45.
A.Turing, A correction, Proceedings of the London Mathematical Societys2-43 (1937), 544–546. doi:10.1112/plms/s2-43.6.544.