We consider various ways to represent irrational numbers by subrecursive functions: via Cauchy sequences, Dedekind cuts, trace functions, several variants of sum approximations and continued fractions. Let be a class of subrecursive functions. The set of irrational numbers that can be obtained with functions from depends on the representation. We compare the sets obtained by the different representations.
Dedekind cuts yield information about real numbers that cannot been retrieved from Cauchy sequences if we are not allowed to carry out unbounded search. This is true even if the Cauchy sequence has a known modulus of convergence. Assume we have access to a Cauchy sequence C for an irrational number α (so we know that α is irrational). Assume also that
How can you decide if ? Consider C as an oracle. If we ask the oracle for and get the answer 1, then we know that the distance between α and 1 is less than , but we do not know if α lies below or above 1. The only way to decide if is by unbounded search. We have to ask the oracle for for larger and larger values of n. Sooner or later the oracle will give an answer which allows you to conclude if α is less than 1 or not, but there is obviously no way to predict when this will happen. In contrast, if we have access to the Dedekind cut of α, we can easily determine if α is less than 1. The Dedekind cut can be viewed as a function where if and only if . Thus, we can simply ask for the value of . We can conclude that if , and we can conclude that if (since α is irrational). Just one question is needed. No unbounded search is required.
Computations where unbounded search do not occur are called subrecursive computations. When we compute subrecursively we have to determine the maximum number of times the body of a loop should be executed before the execution of the loop starts. The considerations above show that we cannot compute a Dedekind cut subrecursively in a Cauchy sequence. Can a Cauchy sequence be computed subrecursively in a Dedekind cut? Well, Cauchy sequences yield some information that cannot be retrieved from Dedekind cuts without unbounded search. If we have a Cauchy sequence for an irrational number α, then we can subrecursively compute an integer a such that . We cannot compute such an a from a Dedekind cut without carry out unbounded search. However, if we assume that we know this a, then we can compute a Cauchy sequence for α subrecursively in the Dedekind cut of α (see the proof of Theorem 4.2). A Cauchy sequence for α is non-uniformly – but not uniformly – subrecursively computable in the Dedekind cut of α.
Irrational numbers may be traced by functions from rational numbers into rational numbers. A function is a trace function for α if lies strictly closer to α than q. It is easy to see that the Dedekind cut of α can be computed subrecursively in a trace function for α: we have if , and we have if . But can we compute a trace function for α subrecursively in the Dedekind cut of α (we assume that α is irrational)? Let us say that we want to determine a value for . Any value closer to α than 1 will do. We ask the Dedekind cut which tells us that . Now we know that should be strictly greater than 1. But how much greater? We may ask the Dedekind cut if is above or below α. If is below α, we are done. Then, we have a possible value for as has to lie closer to α than 1. But what if is above α? Then we cannot conclude that is closer to α than 1. That might be the case, but we cannot know. Thus, we have to consult the Dedekind cut again and ask if, e.g., is above or below α? If the number is below, we are done. If the number is above, we have we have to consult the Dedekind cut yet another time. The process will terminate sometimes as α is irrational, but we cannot predict when as α may lie arbitrarily close to 1. Unbounded search for an n such that is required.
Let be a sufficiently large natural subrecursive class, e.g., the class of Kalmár elementary functions, the class of primitive recursive function or the class of functions provably total in Peano Arithmetic. Let , and denote the irrational numbers representable by, respectively, Cauchy sequences, Dedekind cuts and trace functions in . The naive considerations above indicates that
These inclusions are strict – and they will be strict for any which is contained in an efficiently enumerable class of total computable functions (this will be proved in Section 8). We cannot turn a Cauchy sequence into a Dedekind cut by subrecursive means, and we cannot turn a Dedekind cut into a trace function by subrecursive means. This requires unbounded search, that is, full Turing computability. On the other hand, a Cauchy sequence can be subrecursively computed in a Dedekind cut, and a Dedekind cut can subrecursively computed in a trace function. Thus, it makes perfectly good sense to talk about three different levels of subrecursive representability of irrational numbers: the T-level, the D-level and the C-level.
Continued fractions belongs at the T-level. Let denote the irrationals represented by continued fractions in subrecursive class . We will prove that for any that is closed under primitive recursive operations. For a number of representations that belong at the C-level and the D-level, see Ko [5,6].
The three levels discussed above are definitely natural. Are there more natural levels? Results of Specker [25] and Lehman [15] indicate that there is a level between the D-level and the C-level. An irrational number may be represented by its binary expansion (which again may be represented by, e.g., a 0–1-valued function). Let denote irrational numbers representable by binary expansions in . Then, we will have
for a sufficiently large natural subrecursive class . We are not going to undertake any technical discussions of the B-level in the current paper, but we will introduce four more levels of subrecursive representability: the ↑-level, the ↓-level, the -level and the -level.
Any irrational number α can be written of the form
where is a strictly monotone increasing sequence of natural numbers and a is an integer. Let be a strictly monotone function. We will say that A is a sum approximation from below of the real number α if there exists such that
Any real number can also be written as a difference between an integer and an infinite sum, and we will say that A is a sum approximation from above of the real number α if there exists such that
Let and denote irrational numbers have sum approximations from, receptively, below and above in . We will see that
whenever is a sufficiently large natural subrecursive class. To put it slightly differently: the ↑-level and the ↓-level are incomparable levels.
Now, how do these two incomparable levels relate to the other levels? Well, it is obvious that both levels are above the B-level. We do not need unbounded search to compute a binary expansion from a sum approximation (from below or above). Moreover, since the levels are incomparable they have to be strictly above the B-level, that is, we have
whenever is a sufficiently large subrecursive class. How the ↑-level and the ↓-level relate to the D-level and the T-level is a somewhat longer story. Let be a subrecursive class that is closed under primitive recursive operations. We will prove that we have
and we believe – but we have no proof – that this inclusion is strict. Furthermore, we will prove that
We believe that also the set is nonempty, and we have a pretty good idea of how to prove that, but we will not present the proof in this paper. Figure 1 gives an overview that is partly based on our beliefs.
Overview: the C-level, the B-level, the D-level, the ↑-level, the ↓-level and the T-level.
The sum approximations discussed above can be considered as sum approximations in base 2. In general, we can sum-approximate any irrational number α in base b when b is an arbitrary natural number strictly greater than 1, that is, we can write α of the form
and of the form
where is a strictly monotone increasing sequence of natural numbers and a is an integer and .
It turns out that the computational complexity of a sum approximation for an irrational number depends significantly on the base of the approximation. A general sum-approximation from below (above) of an irrational number is a function that yields a representation of the number as a sum approximation from below (above) in any base strictly greater than 1 (the exact definition of a general sum-approximation can be found in Section 6). Let and denote the irrational numbers representable by general sum-approximations from, respectively, below and above in the subrecursive class . Obviously, we have and . We will prove that we have
when is closed under elementary operations, and we will prove that we have
when is closed under primitive recursive operations.
Figure 2 gives an overview of how we believe the -level and the -level relate to the other levels. We emphasize that the Venn diagrams in our figures show what we believe is the case and not necessarily what will proved to be case, e.g., we will not prove anything that excludes that both ↑-level and the ↓-level are strictly included in the D-level.
Overview: D-level, the ↑-level, the ↓-level, the -level, the -level and the T-level.
We glimpse the contours of a strange animal in Fig. 2. We believe in the existence of the creature, but we have not yet proved this existence. It remains to prove that the following sets are nonempty
,
,
,
,
when is a class closed under primitive recursive operations.
The research presented in this paper is related to research of Specker [25], Lehman [15], Ko [5,6] and a line of research by Georgiev, Skordev and Weiermann, see [3,23,24]. For more on computable analysis, see Aberth [1] or Weihrauch [27].
Many results presented in this paper overlap with results published elsewhere, e.g., it is well known that the inclusions hold when is a natural subrecursive class. As far as the author know, sum approximations and trace functions are not studied elsewhere (he will not be surprised if he knows too little). Our proofs will be based on the theory of honest functions. This theory makes some of our proofs concise and transparent and helps us to avoid classical diagonalisation arguments.
Preliminaries
General preliminaries
We assume acquaintance with subrecursion theory and, in particular, with the elementary functions. An introduction to this subject can be found in [21] or [22]. Here we just state some important basic facts and definitions, see [21] and [22] for proofs. We will also assume that the reader is familiar with basic concepts of computability theory, e.g., Kleene’s T-predicate and computable indexes. An introduction to elementary computability theory can be found in, e.g., [2] or [14].
The initial elementary functions are the projection functions (), the constants 0 and 1, addition (+) and modified subtraction (). The elementary definition schemes are composition, that is, and bounded sum and bounded product, that is, respectively and . A function is elementary if it can be generated from the initial elementary functions by the elementary definition schemes. A relationis elementary when there exists an elementary function f with range such that iff holds. Relations may also be called predicates, and we will use the two words interchangeably. A function f has elementary graph if the relation is elementary.
The definition scheme is called the bounded μ-operator, and denotes the least such that the relation holds. Let if no such z exists. The class of elementary functions is closed under the bounded μ-operator. The definition scheme
is called primitive recursion. If f is defined by a primitive recursion over g and h and , then f is defined by bounded primitive recursion over g, h and j. The class of elementary functions is closed under bounded primitive recursion, but not under primitive recursion. Moreover, the class of elementary relations is closed under the operations of the propositional calculus and under bounded quantification.
Let and , and let s denote the successor function. The class of elementary functions equals the closure of under composition and bounded primitive recursion. Given this characterisation of the elementary functions, it is easy to see that for any elementary function f, we have for some fixed k.
We will say that a class of functions is closed under the elementary operations when the class contains all the elementary functions and is closed under composition and bounded primitive recursion. We will say that a class of functions is closed under the primitive recursive operations when the class contains all the elementary functions and is closed under composition and (unbounded) primitive recursion.
Uniform systems for coding finite sequences of natural numbers are available inside the class of elementary functions. Let be the code number for the sequence . Then belongs to the elementary functions if f does. We will indicate the use of coding functions with the notations and where . (So is an elementary function.) Our coding system is monotone, that is, holds for any y, and . All the closure properties of the elementary functions can be proved by using Gödel numbering and standard coding techniques.
We use to denote the kth iterate of the function f, that is, and .
Coding of rationals
Subrecursive functions in general, and elementary functions in particular, are formally functions over natural numbers (). We assume some coding of integers () and rational numbers () into the natural numbers. We consider such a coding to be trivial. Therefore we allow for subrecursive functions from rational numbers into natural numbers, from pairs of rational numbers into rational numbers, etc., with no further comment.
As seen above, uniform systems for coding finite sequences of natural numbers are available inside the class of elementary functions. Hence, for any reasonable coding, basic operations on rational numbers – like e.g. addition, subtraction and multiplication – will obviously be elementary.
Occasionally we will have to explicitly consider the size of the encoding of a rational number: we use to denote the natural number that encodes the rational number q. Thus, given a reasonable coding, we have that, e.g., is false, whereas is true.
Honest functions and degrees
The theory of honest functions will help us to make some of our proofs concise and transparent.
A function is honest if it is monotone (), dominates () and has elementary graph.
From now on, we reserve the letters to denote honest functions. Small Greek letter like will denote number-theoretic functions not necessarily being honest.
A function ϕ is elementary in a function ψ, written , if ϕ can be generated from the initial functions ψ, , max, 0, s (successor), (projections) by composition and bounded primitive recursion.
We define the relation by . Now, is an equivalence relation on the honest functions.
The -equivalence classes of honest functions are the honest elementary degrees. Honest elementary degrees will normally just be called degrees, and following the tradition of classical computability theory, we use boldface lowercase Latin letters to denote our degrees.
We will use denote the degree of the honest function f, that is,
We define the relation by ; We will use <, ⩽ to denote the relations induced on the degrees by respectively , .
The structure of honest elementary degrees is a lattice with very strong density properties. For more on this structure and the theory of honest functions, see [12] or [13] (here we will just introduce what we need to prove our results on representability of irrational numbers).
We define the subrecursive class by
The standard notation is really and not , but we skip the E in order to improve the readability.
Letwhere f is an honest function. For any, there existssuch that
Let . Then, we have , that is, ψ can be generated from the initial functions f, , max, 0, s, by composition and bounded primitive recursion. Use induction on such a generation of f to prove that the lemma holds. Use that f is monotone and dominates . □
We will now define an operator transforming an honest function f into a faster increasing honest function . This operator will be called the jump operator.
For any honest function f, we define the jump of f, written , by .
Let f be an honest function. Then,is an honest function.
It is obvious that is monotone and dominates . Let be an elementary function that places a bound on the code number for the sequence of length . Then, is equivalent to
Thus, the relation is elementary since all the functions, relations and operations involved in (∗) are elementary. This proves that has elementary graph. □
Let f and g be honest functions. Then, we have
Suppose . By Lemma 2.4, we have a fixed k such that . Now
Thus
The relation is elementary by Lemma 2.6. The functions elementary in is closed under composition and the bounded μ-operator. Thus, we have . □
Lemma 2.7 entails that whenever f and g are honest functions such that . Hence, the jump operator on the honest functions induces an operator on the honest elementary degrees.
For any honest elementary degree a, we define the jump ofa, written , by where f is some honest function such that . Furthermore, we define the zero degree, written , by .
Letwhere f is an honest function. Then,.
Assume for the sake of a contradiction that . By Lemma 2.4, we have a fixed k such that . But , and we cannot have when f is honest. For , we have . □
Let denote the Kleene T-predicate, and let denote the decoding function known from Kleene’s Normal Form Theorem. We have
when e is a computable index for ϕ. We will need the next theorem which is superficially proved in Kristiansen [7]. A more detailed proof can be found in Kristiansen [8].
(Normal Form Theorem).
Letwhere f is an honest function. Let ϕ be any (Turing) computable function. Then,iff there exists a computable index e for ϕ and a fixedsuch thatMoreover,is an elementary function, andis an elementary predicate.
One application of primitive recursion over functions inyields a function in, that is, ifwhere, then we have.
Let f be an honest function such that . By Lemma 2.4, we have such that and . A straightforward induction on y shows that
Thus, as f is monotone and dominates , we have
This shows that ϕ can be defined by composition and bounded primitive recursion over elementary functions and the function . Hence, we have . □
Let us study a couple of examples: is the class of elementary functions. Let , and let . Then, we have , and the hierarchy
matches the Grzegorczyk hierarchy from stage 3 and upwards, that is, the Grzegorczyk class equals the class . Let where A is the Ackermann function. The function g is honest, and we have for all . The subrecursive class contains all the primitive recursive functions. The jump of g, the function , is not elementary in the Ackermann function.
We finish off this section with a few historical remarks: The theory of honest functions and degrees has its roots in subrecursion theory developed in the 1970s, see, e.g., Meyer and Ritchie [19], Machtey [16–18] and Verbeek [26]. The theory was systematically developed by the author in the late 1990s, see Kristiansen [7–11]. The definition of honest function given above (Definition 2.1) is due to the author and occurs for the first time in Kristiansen [7]. We refer the reader to [13] (or to the related [12]) for more details.
-irrational numbers
Let be a class of functions. A real number α is -irrational if there is in such that for any and , we have
Let denote the class of primitive recursive functions. Lehman [15] proves that a -irrational number has a primitive recursive Cauchy sequence iff it has a primitive recursive continued fraction. A similar, but stronger result, is proved by Georgiev [3]. These results will be corollaries of our theorems.
Letbe a class closed under elementary operations. The following three assertions are equivalent:
α is-irrational.
There isinsuch that for any, we have
There isinsuch that for any, we have
Assume that α is -irrational. Then, we have ν in such that
(for any and ). Let , where , equal the least such that we have for some . The function N is elementary. Let . Now we have and
Thus, (2) holds. This proves that (1) implies (2).
We prove that (2) implies (1). Let where . Let
where is given by (2). Let and . Assume is in the interval . Then we have for some . Hence
If is not in the interval , we have
The function ν is in when ψ is in . This proves that (2) implies (1).
It is straightforward to prove that (2) and (3) are equivalent, and we omit the details. □
Letwhere f is an honest function. A real number α is-irrational iff there issuch that for anyand any, we have
This follows straightforwardly from Definition 3.1 and Lemma 2.4. □
Cauchy sequences, Dedekind cuts and trace functions
A function is a Cauchy sequence for the real number α when
A function is the Dedekind cut of the real number α when iff .
A function is a trace function for the irrational number α when
For any class of functions , let denote the set of irrational numbers that have a Cauchy sequence in ; let denote the set of irrational numbers that have a Dedekind cut in ; let denote the set of irrational numbers that have a trace function in .
Let α be an irrational number. (1) The Dedekind cut of α is elementary in a trace function for α. (2) A Cauchy sequence for α is elementary in the Dedekind cut of α. Thus,.
Assume that T is a trace function for α. Let if , else let . Then, D is the Dedekind cut for α. Moreover, D is obviously elementary in T.
Assume that D is the Dedekind cut of α. We can w.l.o.g. assume . We define the Cauchy sequence C by and
It is obvious that C is a Cauchy sequence for α. Furthermore, C is defined by primitive recursion. It is easy to see that we have for some fixed . This shows that we can define C by bounded primitive recursion over elementary functions and the Dedekind cut D. □
The proof of the next theorem is a standard diagonalisation argument. Still, the proof might be hard to follow, and we will prepare the reader a little bit.
Assume that where and f is honest. Let be the Dedekind cut of α. By the Normal Form Theorem (Theorem 2.10), we have a computable index e and a natural number k such that
This implies that
for every . Recall that the functions in the class formally are functions from natural numbers into natural numbers and that denotes one of the natural numbers that encodes the rational number q. Thus it might be more illuminating to say that we have
for every .
Now, imagine that you have undertaken the never-ending task of writing up a Cauchy sequence of an irrational number. Along the way you are not allowed to carry out non-elementary computations, that is, all the functions you compute have to be in the class . You are done with the elements , and now you want to extend the sequence by finite number of elements such that it will not converge to the number α given by the Dedekind cut in (∗). If you manage to this, you can go on and consider an another irrational number given a by an another Dedekind cut and ensure the Cauchy sequence does not converge to that number either. Indeed, you may work way through all the numbers in the class and ensure that your Cauchy sequence does not converge to a single one of them.
So how can you ensure that your sequence will not converge to α? Well, you search for a natural number i such that
Such a search can be carried out with elementary means. If you find the i you are looking for, you can check if lies strictly below or strictly above α (recall that α is irrational). You can check this because
and hence you can compute elementarily in n and . If it turns out that lies strictly below α, extend your sequence by the rational number where . Then, what you have written up so far, that is, the sequence , is still the start of a Cauchy sequence, moreover, it is the start of a sequence that cannot converge to α. The Cauchy sequence you have started has to converge to a number strictly smaller than α. If it turns out that lies strictly above α, let be and your Cauchy sequence will converge to a number strictly greater than α.
What should you do if there is no i such that (∗∗) holds? If this should be the case, just let equal , and then you increase the value of n by one. Repeat doing this until (∗∗) holds. So just extend your sequence over and over again by the same rational number until (∗∗) holds – it will still be a Cauchy sequence. You cannot increase n forever and ever without making (∗∗) true. When (∗∗) eventually becomes true, you set to a value that ensures your Cauchy sequence will not converge to α.
We hope the considerations above will help the reader to digest the proof of Theorem 4.4.
Let f be an honest function, let, and let D be a Dedekind cut in. There existsuch thatfor all sufficiently large x.
By the Normal Form Theorem (Theorem 2.10), we have such that
When , we have (the inequality holds as ; the equality holds by the definition of ). Thus, the lemma holds. □
For any honest degreea, there exists a real number α such thatand.
Let f be an honest function such that . Let be an elementary function such that for any e there exist infinitely many i such that . We will now define a Cauchy sequence C and a function by simultaneous recursion. Recall that denotes the natural number encoding the rational number q.
Let , and let
and
It is easy to see that C is a Cauchy sequence. Moreover, C (viewed as a function into ) and κ are slow-growing functions defined by simultaneous recursion over elementary functions and elementary relations (the relation is elementary since is honest). We have , and it is easy to see that we have for some fix k. So C can be defined by bounded simultaneous recursion over elementary functions and, thus, C is an elementary function.
Let . We have since C is in . Now, let β be any irrational number in . We need to prove that .
Let D be a Dedekind cut for β. By Lemma 4.3, we have such that
for all sufficiently large .
Pick a sufficiently large n such that and (there are infinitely many such n). Since , we have i such that and . Now, we have
The first equality of (∗) holds by the choice of i and n; the second equality holds since ; the third equality holds by (†) since n, and thus , is large. By (∗) and our definition of C we have
This proves that and, thus, we have . □
Let T be a trace function for the irrational number α. Then, there exists a trace functionfor α such that for allwe have
if,
if.
Moreover,is elementary in T.
Let . Then, is elementary in T. Assume . Then, since lies closer to α than q, we either have or . In the case when , we obviously have . In the case when , we have as α lies closer to than to q. In either case we have . A symmetric argument shows that we have when . □
Letbe a class of functions closed under elementary operations, and let. Then, α is-irrational.
By Lemma 3.2, it is sufficient to prove that there exists in such that
Let be a trace function for α. Let where is the trace function for α given by Lemma 4.5. We have ψ in since closed under elementary operations.
If , we have , and thus . If , we have , and thus . This proves that (∗) holds. □
Let where f is an honest function. Lemma 3.3 states that a real number α is -irrational if and only if there exists such that
holds for any and any . This yields a recipe for constructing irrational numbers which are not -irrational: Take a sufficiently fast increasing sequence of positive natural numbers , and let . Make sure that the numbers in the sequence increase so fast that the distance between α the rational number is too small to satisfy (∗) when ℓ is large. Then, α will not be -irrational.
In the proof of the next lemma we will use this recipe to construct a number which is not -irrational. Moreover, we will pick the elements of the fast increasing sequence such that the Dedekind cut of the number becomes elementary.
Letabe an arbitrary honest degree. Some numbers inare not-irrational.
Let f be an honest function such that . Furthermore, let , and let where is the jump of f. The function is honest by Lemma 2.6. Thus, is an elementary relation.
Let
This example may help the reader:
First we prove that α is not -irrational. Pick an arbitrary . Then, pick such that and (for some ℓ). Let be such that (it is easy to see that such an m exists). Now, we have
and
By (∗) and (∗∗), we have . This proves that there for any k exists n such that . By Lemma 3.3, we conclude that α is not -irrational.
We will now prove that α is in . For any , we have iff
Write q of the form where and . Now, if , then i will be (much) smaller than n and, thus, we can turn the unbounded quantifier in (†) into a bounded one. Moreover, since is an elementary relation, the relation will also be elementary. It follows that (†) is an elementary predicate. The predicate gives the Dedekind cut for α and, thus, α has an elementary Dedekind cut. We conclude that α is in . □
For any honest degreea, there exists an irrational number α such thatand.
Let α be a number in which is not -irrational. Such an α exists by Lemma 4.7. By Lemma 4.6, we have . □
Sum approximations
A strictly monotone increasing function is a sum approximation from below of the real number α if there exists such that
A strictly monotone increasing function is a sum approximation from above of the real number α from above if there exists such that
If A is a sum approximation of α from below (above), we say that A approximates α from below (above).
For any class of functions , let denote the class of irrational numbers that have a sum approximation from below in ; let denote the class of irrational numbers that have a sum approximation from above in .
Let be a strictly monotone function that increases too fast to be elementary. Now, f approximates a real number α from below. No elementary function can approximate α from below as α only has one sum approximation from below. However, the sum approximation of α from above may very well be elementary since this will not be a very fast-increasing function. The one an only function that approximates α from above is the strictly monotone increasing function with range . This function will be elementary when f is honest: The graph of an honest function is elementary, that is, the relation is elementary. Thus, we can elementarily decide if , and then we can also elementarily compute the sum approximation from above.
For any honest degreeathere exits α such that (a), (b)and (c).
Let , and let
where is the jump of f. Now, there is only one monotone increasing function that approximates α from below, namely . Thus, if , we will also have . But that contradicts Lemma 2.9. We conclude that . This proves (a).
We turn to the proof of (b). Let and let
It is obvious that A is a strictly monotone function. In order to conclude that , we have to prove that A is elementary and that A approximates α from above.
First we argue that A is elementary. By Lemma 2.6, is an honest function. Thus, is an elementary predicate. We also have . Thus, A can be defined by bounded primitive recursion over elementary functions. The class of elementary functions is closed under such recursion. Hence, A is an elementary function.
Finally, we argue that A approximates α from above. We have since f is honest. Now, and, thus, and, for any , at most one of x, and is in the range of . Hence, . It follows that . Thus, A approximates α from above.
In order to prove (c), let . Then, we have iff
Now, if , then i will be (much) smaller than n. Hence, we have
and, thus, the predicate (†) is the Dedekind cut for α. The predicate is elementary when is an honest function. Hence, we have . □
For any honest degreeathere exits α such that (a), (b)and (c).
This proof is symmetric to the proof of Theorem 5.2 □
Let be a trace function for α. We can w.l.o.g. assume . We will prove that there is a function in such that
and, for each , we have and such that
The function A that approximates α from below is elementary in ψ: The natural number can easily be computed from the rational number . Let . It is obvious that A is elementary in ψ. Moreover, A is a strictly monotone function which approximates α from below, that is
Thus, in order to complete our proof, it is sufficient to prove that the function ψ which satisfies (†) and (‡) is in .
We will now give an algorithm for computing a function ψ. It will be obvious from the way the algorithm works that this ψ indeed satisfies (†) and (‡).
Let . Assume that we have determined and that . By Lemma 4.5, we have in such that . Hence, there exists a unique such that can be written of the form
where . We compute this m (this can be done elementary in the rational number ). Now, for some we have
and
for all . We can find this i by using the Dedekind cut of α maximum m times (thus, we can find i by bounded primitive recursion). Now we can determine since
The algorithm above shows that there exists a function such that and . The algorithm consults the Dedekind cut of α. By Theorem 4.2, the Dedekind cut of α is in since α is in . The algorithm uses the function for . We have by Lemma 4.5. All other functions applied by the algorithm are elementary. Hence, the function ψ can be defined by a single application of primitive recursion over functions in . By Lemma 2.11, we have . □
It is an open problem if the preceding theorem can be strengthen. We conjecture that the inclusion
does not hold.
This is proof is symmetric to the proof of Theorem 5.4. □
General sum-approximations
An example that might help the reader to understand the next definition, follows immediately after the definition.
Let be such that, for each , we have
where and and (for all ). We say that G is a general sum-approximation from below of the real number α if there exists such that for all we have
We say that G is a general sum-approximation from above of the real number α if there exists such that for all we have
Let us study an example. The base 10 expansion of the well know number π starts by . Let be the general sum-approximation of π from below, and let be the general sum-approximation of π from above. Then, we have
and
The base 3 expansion of π starts by , and we have
and
For any class of functions , let denote the class of irrational numbers that have a general sum-approximation from below in ; let denote the class of irrationals number that have a general sum-approximation from above in .
This proof of the next theorem is straightforward, and we omit the details.
A sum approximation from below (above) of irrational number α is elementary in a general sum-approximation from below (above) of α. Thus
The Dedekind cut of an irrational number α is elementary in a general sum-approximation (from above or below) of α. Thus
Assume that
where G is a general sum-approximation from below. We can w.l.o.g. assume , that is, we assume that . We define the function by where d is the unique natural number such that we have
for some (thus, yields the first digit in the base expansion of the fractional part of α). It is easy to see that ψ can be computed elementary in G: simply use the rational number to find . Now, for any rational number where and let
Now, D is the Dedekind cut for α, and D is elementary in G. The proof that a Dedekind cut is elementary in a general sum-approximation from above is symmetric. □
Letandbe general sum-approximations, respectively form below and above, of α. There exists a trace function T for α that is elementary in. Hence, we have
We can w.l.o.g. assume , that is, we assume that
for any . Let D be the Dedekind cut for α. For any rational number where and let
We know by Theorem 6.4 that D is elementary in . Thus, it is obvious that also T is elementary in . It remains to argue that T is a trace function for α.
Let a be an integer and let b be a natural number strictly greater than 1. If , the we will also have . Hence, we have
for any . By a symmetric argument, we have
for any . Now, let be a rational number where and (so n is different from 0 but may be 1). If , we have
If , we have
This shows that T is a trace function for α. □
This proof is a straightforward generalisation of the proof of Theorem 5.4.
The proof of Theorem 5.4 describes an algorithm that computes a sum approximation in base 2 from a given trace function. Just observe that this algorithm easily can be modified to compute a sum approximation in an arbitrary base b (where b is input). Such a modification will not increase the computational complexity of the algorithm significantly and, thus, a general sum-approximation of an irrational number α can be defined by one application of (unbounded) primitive recursion over a trace function for α. □
This proof is symmetric to the proof of Theorem 6.6. □
Continued fractions
We repeat some standard definitions. For more on continued fractions, see Khintchine [4] or Olds [20].
Let be a sequence of integers where when (thus is the only number in the sequence that may be something else than a positive integer). We define the continued fraction by
We define the nth convergent of the continued fraction by
Each irrational number has one, and only one, continued fraction, and obviously we have
The next lemma states some basic facts. The proofs can be found in any elementary textbook on continued fractions.
Letbe an irrational number, and let the sequences (of natural numbers)andbe given by the equations
andand(for),
andand(for) .
Then
ifis even, then
ifis odd, then
for any, we have
is a best approximation to α, that is, for anyand any
Let denote the function that yields the xth element of the continued fraction (thus, we have e.g. ). We will identify with the continued fraction , and we call a continued fraction.
For any class of functions , let denote the class of irrational numbers that have a continued fraction in .
A trace function for an irrational number α is elementary in a continuous fraction for α. Thus
Let be the continued fraction for α, and let be the function
where denotes the least such that w can be written of the form (for some ). We will prove that T is a trace function for α and that T is elementary in .
Let and be given by the equations in Lemma 7.2. We will prove by induction on k that we have
for any . We have
and
Furthermore, by our induction hypothesis, we have
A similar induction yields . This proves (∗).
By Lemma 7.2(1), we have
The function is elementary in . Thus, by the equations in Lemma 7.2 and (∗), we can compute T by bounded simultaneous recursion over functions elementary in . Bounded simultaneous recursion can be reduced to bounded primitive recursion (modulo elementary operations). Thus, T is elementary in .
It remains to prove that T is a trace function for α. Let n be the least natural number such that the rational number w can be written of the form where . Then we have . By Lemma 7.2(6), we have , and then, by Lemma 7.2(7), we have
Thus, T is a trace function for α. □
Let . We can w.l.o.g. assume . We will prove that .
Let f be an honest function such that . Let be such that
We will prove that there exist such that and
By Lemma 4.6, α is -irrational. Thus, by Lemma 3.3 we have such that
Let . Then
This shows that lies between α and . A symmetric argument will show that lies between α and . This concludes the proof of (∗).
Let . When we know the numbers in the sequence , we can use the recursive equations in Lemma 7.2 to compute and for any . Moreover, by clause (2) and (3) of Lemma 7.2, we have
Let D be the Dedekind cut for α. By (∗) and (∗∗), we have
The Dedekind cut D is in by Theorem 4.2. Moreover, is closed under the bounded μ-operator. Thus, by the equations for , in Lemma 7.2 and the equation above for , we can compute the function by one application of (unbounded) simultaneous recursion over functions in . One application of simultaneous recursion can be reduced to one application of primitive recursion (modulo elementary operations). Thus, by Lemma 2.11, is in . Thus, . □
It is an open problem if the preceding theorem can be strengthen. We conjecture that the inclusion
does not hold.
The big picture
Let be a total function, and let
where and are the elementary functions from Kleene’s Normal Form Theorem (see Theorem 2.10).
A set of functions over the natural numbers is a subrecursive class when there exists a total computable function such that
the function is total,
for every there exists such that .
We say that the function σ generates the class . (So, a subrecursive class is a subset of an efficiently enumerable class of total functions.)
For any subrecursive class, there exists an honest degreeasuch that.
Assume that is generated by the total computable function σ. Let be a computable index for σ, and let
Now, f is a total computable function as σ and are total computable functions. The graph of f is elementary, moreover, f is monotone and dominates . Thus, f is honest. Let . Then, a is an honest degree.
We prove the claim. Assume . Then, we have
This proves the claim.
Now, let ψ be any function in . Then, we have e such that . Let . By the claim, we have
whenever . Thus, we have
for all . This proves that ψ is elementary in f. Thus, is a subset of . □
For any subrecursive classthat is closed under elementary operations, we have
We prove that . By Lemma 8.2, we have an honest degree a such that
By Theorem 4.4, we have α such that and . It follows that and and, thus, cannot be a subset of . The proof that is similar. Use Theorem 4.8 in the place of Theorem 4.4. □
Letbe any subrecursive class that is closed under the elementary operations. We haveand, thus, we also have
By Lemma 8.2, we have an honest degree a such that
By Theorem 5.2, we have α such that and . Thus, and . A symmetric argument shows that there exists α such that and . Use Theorem 5.3 in place of Theorem 5.2. □
For any subrecursive classthat is closed under primitive recursive operations, we have
Every class closed under primitive recursive operations is also closed under elementary operations. Hence, by Theorem 6.5, we have and, by Theorem 7.4, we have .
If we look at the proof of Theorem 7.5, we see that a continuous fraction for an irrational number α can be defined primitive recursively over a trace function for α. So, the proof of Theorem 7.5 shows that . Likewise, the proofs of Theorem 6.6 and Theorem 6.7 show that . □
We leave the proof of the next two corollaries to the reader.
For any subrecursive classthat is closed under elementary operations, we have
For any subrecursive classthat is closed under primitive recursive operations, we have
For any subrecursive classthat is closed under elementary operations, we have
Assume . Then, by Corollary 8.6, we have . This contradicts Corollary 8.4. Thus, we conclude that . A symmetric argument shows that is a strict subset of . □
There is a lot of open problems present. For our conjectures on some of these problems, see the Venn diagram in Fig. 2.
Finally, we will see that our landscape looks very different if we restrict our attention to the -irrational numbers. Then the strange animal in Fig. 2 degenerates to what appears to be its nose.
Letbe a subrecursive class that is closed elementary operations. Let α be an-irrational number in. Then, we have.
Let be such that
for any and . There is such a ν in since α is -irrational. Let be a Cauchy sequence for α. Then, we have
The first inequality of (∗) holds since C is a Cauchy sequence; the last inequality of (∗) holds by (†). Now, (∗) states that lies strictly closer to α than (for any ). Thus, let where n is the least natural number such that (for some ). Then, T is a trace function for α. It is easy to see that T is in when C and ν are in . Hence, we conclude that . □
The next couple of corollaries follow straightforwardly from the preceding theorem, Lemma 4.6 and Corollary 8.5.
Letbe a subrecursive classthat is closed under elementary operations, and let. Then, α is-irrational iff.
Letbe a subrecursive classthat is closed under primitive recursive operations, and let. Then, α is-irrational iffiffiff.
Let be a subrecursive class, and let be a class of real numbers. Then,
Letbe a subrecursive class that is closed under elementary operations. Then,.
We know that . Hence, . By Theorem 8.9, . Hence, . □
Letbe a subrecursive class that is closed under the primitive recursive operations. Then,.
Each of the classes , , , , , , , is a subset of and a superset of . By Theorem 8.9, is contained in . □
References
1.
O.Aberth, Computable Analysis, MacGraw-Hill, New York, 1980.
I.Georgiev, Continued fractions of primitive recursive real numbers, Mathematical Logic Quarterly61(4–5) (2015), 288–306. doi:10.1002/malq.201400013.
4.
A.Y.Khintchine, Continued Fractions, P. Noordhoff, Ltd, Groningen, The Netherlands, 1963. (Translated by Peter Wynn.)
5.
K.Ko, On the definitions of some complexity classes of real numbers, Mathematical Systems Theory16 (1983), 95–109. doi:10.1007/BF01744572.
6.
K.Ko, On the continued fraction representation of computable real numbers, Theoretical Computer Science47 (1986), 299–313. doi:10.1016/0304-3975(86)90154-4.
7.
L.Kristiansen, Information content and computational complexity of recursive sets, in: Gödel ’96, P.Hajek, ed., Springer Lecture Notes in Logic, Vol. 6, Springer-Verlag, Heidelberg, 1996, pp. 235–246.
8.
L.Kristiansen, Papers on subrecursion theory, Dr Scient Thesis, Research Report 217, Department of Informatics, University of Oslo, 1996. ISSN 0806-3036, ISBN 82-7368-130-0.
9.
L.Kristiansen, A jump operator on honest subrecursive degrees, Archive for Mathematical Logic37 (1998), 105–125. doi:10.1007/s001530050086.
10.
L.Kristiansen, Lown, highn, and intermediate subrecursive degrees, in: Combinatorics, Computation and Logic, C.S.Calude and M.J.Dinneen, eds, Springer, Singapore, 1999, pp. 286–300.
11.
L.Kristiansen, Subrecursive degrees and fragments of Peano arithmetic, Archive for Mathematical Logic40 (2001), 365–397. doi:10.1007/PL00003845.
12.
L.Kristiansen, R.Lubarsky, J.-C.Schlage-Puchta and A.Weiermann, On the structure of honest elementary degrees, in: The Infinity Project, S.Friedman, M.Koerwinen and M.Müller, eds, CRM Documents, Vol. 11, CRM (Centre de Recerca Matematica), 2012, pp. 255–279.
13.
L.Kristiansen, J.-C.Schlage-Puchta and A.Weiermann, Streamlined subrecursive degree theory, Annals of Pure and Applied Logic163 (2012), 698–716. doi:10.1016/j.apal.2011.11.004.
14.
C.Leary and L.Kristiansen, A Friendly Introduction to Mathematical Logic, 2nd edn, Milne Library, SUNY Geneseo, Geneseo, NY, 2015.
15.
R.S.Lehman, On primitive recursive real numbers, Fundamenta Mathematica49(2) (1961), 105–118.
16.
M.Machtey, Augmented loop languages and classes of computable functions, Journal of Computer and System Sciences6 (1972), 603–624. doi:10.1016/S0022-0000(72)80032-1.
17.
M.Machtey, The honest subrecursive classes are a lattice, Information and Control24 (1974), 247–263. doi:10.1016/S0019-9958(74)80039-2.
18.
M.Machtey, On the density of honest subrecursive classes, Journal of Computer and System Sciences10 (1975), 183–199. doi:10.1016/S0022-0000(75)80039-0.
19.
A.R.Meyer and D.M.Ritchie, A classification of the recursive functions, Zeitschrift für mathematische Logik und Grundlagen der Mathematik18 (1972), 71–82. doi:10.1002/malq.19720180405.
20.
C.D.Olds, Continued Fractions, New Mathematics Library, Mathematical Association of America, Random House, 1963.
21.
R.Péter, Rekursive Funktionen, Verlag der Ungarischen Akademie der Wissenschaften, Budapest, 1957. (English translation: Academic Press, New York, 1967.)
22.
H.E.Rose, Subrecursion. Functions and Hierarchies, Clarendon Press, Oxford, 1984.