We consider various ways to represent irrational numbers by subrecursive functions. An irrational number can be represented by its base-b expansion; by its base-b sum approximation from below; and by its base-b sum approximation from above. Let be a class of subrecursive functions, e.g., the class the primitive recursive functions. The set of irrational numbers that can be obtained by functions from depends on the representation and the base b. We compare the sets obtained by different representations and bases. We also discuss how representations by base-b expansions and sum approximations relate to representations by Cauchy sequences and Dedekind cuts.
The first n digits of a decimal expansion suffice to determine the first n digits of a binary expansion of the same number (we are talking about the digits after the period). On the other hand, any fixed number of digits of a binary expansion are not sufficient to determine the first digit of the decimal expansion of the same number. For example, consider the following two binary expansions
The decimal expansion of α and β start with and , respectively. In other words, to determine the first digit after the period, we possibly need to read digits of a binary expansion where n can be arbitrary large.
Unbounded search cannot occur in subrecursive algorithms. The example above shows that unbounded search is required to convert a binary representation into a decimal representation. In contrast, unbounded search is not required to convert a binary representation into a hexadecimal representation. We can compute the first fractional digit of the hexadecimal representation from the first four fractional digits of the binary representation. Then, we can compute the next fractional digit of the hexadecimal representation from the next four fractional digits of the binary representation, and so on.
Base-b expansions are often called b-adic expansions or b-adic representations in the literature.
of an irrational number α between 0 and 1 by a function where yields the nth digit of the base-b expansion of α. Let be a sufficiently large natural class of subrecursive functions, e.g., the class of elementary functions, the class of primitive recursive functions or the class of functions that we can prove is total in Peano Arithmetic, and let denote the set of irrational numbers between 0 and 1 that have a base-b expansion in , that is, if and only if . The informal considerations above indicate that will depend on b: we should expect that , and we should expect that . For which bases a and b do we, or do we not, have ? It turns out that the inclusion holds if and only if every prime factor of a is a prime factor of b. We will prove this equivalence for any subrecursive class closed under elementary operations (a subrecursive class will be formally defined as an efficiently enumerable set of computable total functions).
Sum approximations form below and above were introduced in Kristiansen [8]. Let α be an irrational number between 0 and 1. We can uniquely write α as an infinite sum of the form
where
and (note that for all i),
and .
Let when , and let . The rational number is an approximation of α that lies below α, and we will say that the function is the base-b sum approximation from below of α. The base-b sum approximation from above of α is a symmetric function such that is an approximation of α that lies above α (and we have ). Let denote the set of irrational numbers that have a base-b sum approximation from below in a sufficiently large subrecursive class , and let denote the set of irrational numbers that have a base-b sum approximation of from above in . An interesting fact about sum approximations is that and are incomparable classes, that is, and (and thus it follows rather straightforwardly that and ). This is really what to expect from results already proven in Kristiansen [8], but we give detailed and neat proofs in this paper.
This paper’s main result on sum approximations is that if and only if if and only if every prime factor of a is a prime factor of b. We prove these equivalences for any closed under primitive recursion (it is an open problem if it suffices to assume that is closed under elementary operations). We will also discuss the relationship between sum approximations and Dedekind cuts, and we will prove, or at least sketch proofs of, a number of results conjectured in Kristiansen [8].
The research presented in this paper continues the research presented in Kristiansen [8]. Although this paper is meant to be self-contained, the reader may in several respects benefit from being familiar with [8] before reading this paper. In [8] we treat a number of notions, e.g., continued fractions, trace functions, general sum approximations and -irrational numbers, that are closely related to base-b sum approximations. We also provide some intuition that might helpful when reading technical parts of this paper. The research presented in this paper is also related to research of Specker [19], Mostkowski [14], Lehman [13], Ko [4,5], Labhalla and Lombardi [11] and a line of research by Georgiev, Skordev and Weiermann, see [3,17,18]. For more on computable real numbers, see Aberth [1] or Weihrauch [21].
Notation and terminology
A base is a natural number strictly greater than 1, and a base-b digit is a natural number in the set .
Let M be an integer, let b be a base, and let be base-b digits. We will use to denote the rational number .
Let M be an integer, and let be an infinite sequence of base-b digits. We say that is the base-b expansion of the real number α if we have
for all . Moreover, we say that the base-b expansion of α is finite if there exists k such that , and we say that the base-b expansion of α is infinite if no such k exists.
We will use denote the set of prime factors of the base b, that is, . We will use to denote the infinite sequence
If is a base-b digit, then denotes the complement digit of , that is, .
It is easy to verify the following claims:
Any real number has a unique base-b expansion: E.g., is not a base-10 expansion of according to the definition above. The one and only base-10 expansion of is .
When is the base-b expansion of the real number α, we have , moreover, if the base-b expansion of α is infinite, we have
for all .
The base-b expansion of the real number α is finite iff the kth digit of the expansion is 0 for all sufficiently large k.
For any and any base-b digits , there exists such that .
For any , there exist and base-b digits such that .
Assume that the base-b expansion of the rational number q is infinite. Then, the base-b expansion of q will be of the form
where and at least one of the digits is different from 0, moreover, at least one of the digits is different from , and if where , then .
If
then
for all .
For any base b and any base-b expansion , we have
The base transition factor
If we consider the first four fractional digits of the base-10 expansion of a real number, we have enough information to determine the first fractional digit of the base-16 expansion of the number. If the base-10 expansion starts with , the base-16 expansion will start with , and if the base-10 expansions starts with , the base-16 expansion will start with . Thus, we have to consider at least four fractional digits, but four will be enough. We never have to consider the fifth fractional digit to determine the first fractional digit of the base-16 expansion. If we want to determine the first two fractional digits of the base-16 expansion, we have to consider the first 8 fractional digits of the base-10 expansion, in general, if we want to determine the first k fractional digits of the base-16 expansion, we have to consider the first fractional digits of the base-10 expansion.
The base transition factor from base a to base b will be formally defined below. The factor tells us how many digits we have to consider when we want to convert a real from base b to base a. The base transition factor from base 16 to base 10 is 4. (It might sound a bit backwards that we are talking about the base transition factor from base 16 to base 10 and about converting reals from base 10 to base 16, but the terminology makes sense when you read on.) The base transition factor from base 2 to base 10 is 1. It is possible to determine k fractional digits of a base-2 expansion by considering k fractional digits of the base-10 expansion.
The base transition factor from base 10 to base 2 is not defined. This coincides with the fact that we cannot convert an irrational number from base 2 to base 10 without carrying out an unbounded search, see the example at the start of Section 1.
Let a and b be bases such that . We will now define the base transition factor from a to b.
Let , where is a prime and (for ), be the prime factorization of b. Then, a can be written of the form where (for ). The base transition factor from a to b is the natural number k such that
The base transition factor from a to b is not defined if . When we assume that the base transition factor from a to b exists, it is understood that we have .
Clause (3) of the next lemma justifies our terminology. If k is the base transition factor from a to b, then a number of the form in base a can be written of the form in base b.
Let k be the base transition factor from a to b. Then
there existssuch that,
for anyand any, there existssuch that,
for anyand any base-a digits, there existssuch that(and thus there exists base-b digitssuch that).
Let
where is a prime and and (for ). It is easily seen from the definition of k that , and thus we have (for ). Furthermore, we have
Hence, let and (1) holds.
We turn to the proof of (2). By (1), we have such that . Thus, let , and (2) holds.
Now it is easy to see that (3) holds. By our definitions, we have . Thus, we have for some . By (2), we have such that . □
(The Base Transition Theorem).
Let k be the base transition factor from a to b, and letandbe, respectively, the base-a and base-b expansion of an arbitrary real number α. Then, for all, we have
We can w.l.o.g. assume . By Definition 2.1, we have
and
for all .
For all, we have.
Assume that the claim does not hold. Then, for some n we have . By Lemma 3.2, we have such that . Thus, , and then, by (†), we have . This contradicts (‡). This proves Claim I.
For all, we have.
It follows straightforwardly from (†) and (‡) that . Thus,
By Lemma 3.2, we have such that
(thus has to be strictly greater than ). It follows that . Hence, . This completes the proof of Claim II.
Now it is easy to see that our theorem holds. By Claim I and (‡), we have
and then the theorem follows by Claim II. □
The next corollary will be needed in the proof of one of our main results.
Let k be the base transition factor from a to b, and letandbe, respectively, the base-a and base-b expansion of an arbitrary real number α. Then, for all, we havewhere.
Assume . By the Base Transition Theorem, we have
Hence
Assume for the sake of contradiction that . Then we have
This contradicts (*), and thus we conclude that . (Note that we by our definitions have for all n. See Definition 2.1.) □
We round off the section with another theorem on the base transition factor. The theorem is a kind of converse version of Theorem 3.3. We will not need this theorem later, but we will need the lemma leading up to the theorem.
Let a and b be bases, let, and letandbe such that. Then, the rational numberhas a finite base-a and an infinite base-b expansion.
There is a base-a digit such that . Thus, we have . The product of two numbers with a finite base-a expansion has a finite base-a expansion. Thus, has a finite base-a expansion as can be written of the form .
Assume that has a finite base-b expansion (and recall that is not an integer). Then there exist and such that . But p does not occur in the prime factorization of b. Thus, the equality contradicts that every base has a unique prime factorization. □
Assume that k is a natural number such that for everyand every, we havewhereandare, respectively, the base-a and base-b expansion of α. Then we have. Moreover, the base transition factor from a to b is the least k with this property.
It follows from Lemma 3.5 that . We leave to the reader to check that there cannot be a natural number less than the base transition factor from a to b that possesses the property. □
Subrecursion theory
General preliminaries
We assume acquaintance with subrecursion theory and, in particular, with the elementary functions. An introduction to this subject can be found in [15] or [16]. Here we just state some important basic facts and definitions, see [15] and [16] 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 [12].
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 characterization 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 addition, subtraction and multiplication – will obviously be elementary. We also consider the next lemma to be obvious, and we skip its proof.
Letdenote base-b expansion of the rational number q. There exists an elementary functionsuch that for any rational number q, we have.
Honest functions and subrecursive classes
The proof of our main results are based on the theory of honest functions. In this subsection, we state and prove lemmas and theorems on honest functions that will be needed later. For more on honest functions, see [9] or [10].
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.
Letwhere f is an honest function. Then there existssuch that
The function ψ can be generated from the initial functions f, , max, 0, s, by composition and bounded primitive recursion. Use induction on such a generation of ψ to prove that the lemma holds. Use that f is monotone and dominates . □
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 [6]. A more detailed proof can be found in Kristiansen [7].
(Normal Form Theorem).
Let f be 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.
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 be an honest function, and let ψ be a unary function such that. Then we havefor all sufficiently large x.
By Lemma 4.4, we have such that . Let . Then we have . □
Let be a total function, and let
where and are the elementary functions from Kleene’s Normal Form Theorem (see Theorem 4.5).
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 function f such 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. A proof of the claim below can be found in Section 8 of Kristiansen [8].
If, then.
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. □
Let ψ be any function over the natural numbers. For any honest function g, there exists an honest function f such that
Let . It is easy to see that is a subrecursive class in the sense of Definition 4.9. Assume . Then, . By Theorem 4.10, we have f such that . □
Base-b expansions
From now on we will restrict our attention to irrational numbers between 0 and 1. This entails no loss of generality.
Let be the base-b expansion of the real number α. We define the function by and (for ). For any class of functions , let .
We will occasionally identify the function with the base-b expansion of α, and we may, e.g., say that is the set of irrational numbers with a base-b expansion in .
Let a and b be bases such that. For any real number, we have.
Let be the base-b expansion of α, and let k be the base transition factor from a to b. By the Base Transition Theorem, we have
where is the elementary function given by Lemma 4.1. Moreover
Thus, is elementary in . □
The preceding theorem says that we can compute elementarily in if is a subset of . We cannot in general compute elementarily in if is not a subset of . This is a consequence of the next theorem. In the proof of the theorem we construct a sequence of rationals that converges to an irrational number α. The sequence is constructed such that α becomes different from every real whose base-a expansion is elementary in a given honest function f. Still, it turns out that α has an elementary base-b expansion. It is possible to construct the sequence for any honest function f and any bases a and b where . We will explain some of the ideas behind the construction such that it becomes easier for the reader to follow the technical proof.
We start the construction by picking a sequence of natural numbers. We set to some suitable number, and then we define by where is the jump of f. There are two reasons why we use to determine the elements of the sequence. One reason is that and must be very far apart from each other. For any fixed k, it must be the case when i is large. If this is not the case, we will not be able to force the sequence to converge to a desired limit, that is, a limit whose base-a expansion is not elementary in f. When , the distance between and will be big enough. Another reason is that has elementary graph ( is honest since f is honest, and thus the graph of is elementary, see Lemma 4.7). This entails that we given x elementarily can decide if there is i such that . This will help us to pick such that the base-b expansion of the limit becomes elementary.
Now we are ready to explain the definition of . The first element in the sequence is some suitable rational that has finite base-a expansion and infinite base-b expansion. In order to avoid confusing and annoying indexes, every second element of the sequence is just a copy of the preceding one, more precisely, equals for all . Thus, are the essential elements of the sequence. For any , we determine the value of by the following scheme:
Step 1. Pick a real number γ whose base-a expansion is elementary in f.
Comments to step 1. The number i tells us how to pick γ, more precisely, the number i yields a computable index that tells us how to compute the function . If the base-a expansion of a real is elementary in f, we will eventually come across an i that tells us to pick that real (we will indeed encounter infinitely many such i’s).
Step 2. Compute the rational number such that
Comments to step 2. The rational number lies close to γ (it lies slightly below). In the next step, we use to force the sequence to converge to something else than γ.
Step 3. Let
where and are suitable rational numbers.
Comments to step 3. The rationals and are suitable when
and are so small that the first digits of the base-b expansion of coincide with the first digits of the base-b expansion of (and thus with the first digits of the base-b expansion of ). This will ensure that the sequence converges. Moreover, the first digits of the base-b expansion of will coincide with the first digits of the base-b expansion of the sequence’s limit.
guarantees that .
guarantees that .
and ensure that has a finite base-a expansion and infinite base-b expansion. It is essential that all the rationals have finite base-a expansions and infinite base-b expansions. When we set to something smaller than , we need a huge initial segment of the base-b expansion of that something smaller to coincide with a huge initial segment of the base-b expansion of . That would not be possible if the base-b expansion of were finite (e.g., the first digit of the base-10 expansion of is different from the first digit of the base-10 expansion of for any small ). Moreover, we have to determine if γ is above or below by examine a bounded segment of the base-a expansion of γ. That would not be possible if the base-a expansion of were infinite.
So far we have explained why the base-a expansion of the limit of is not elementary in f. We have not yet explained why the base-b expansion of this limit is elementary. Well, this is the reason: Recall that we used a function with elementary graph to define the sequence . This entails that we given n easily can find i such that . It is easy in the sense that i can be computed elementarily in n. Now, i is very small compared to n. Thus, we can compute elementarily in n. We cannot compute elementarily in i, but we can do it elementarily in n since n is very much bigger than i. Finally, when is available, we can elementarily compute the nth digit of the base-b expansion . But then we have elementarily computed the nth digit of the base-b expansion of α as the nth digit of the base-b expansion of α is the same as nth digit of the base-b expansion of .
This concludes our intuitive explanation of the proof of Theorem 5.3.
Let a and b be bases such that, and let f be any honest function. There exists an irrational number α such that (i)is elementary, and (ii).
Let . We define the sequence of natural numbers by and where is the jump of f.
Recall that and are the elementary function and the elementary predicate from Theorem 4.5, furthermore, is the elementary function given by Lemma 4.1. We define the sequence of rational numbers by and and
where
k is the least natural number greater than or equal to such that ,
ℓ is the least natural number greater than or equal to such that .
Let .
For any, there existssuch that.
We prove Claim I by induction on i. It is easy to see that the claim holds when . Assume by induction hypothesis that we have such that (we will prove that there is m such that ).
We can w.l.o.g. assume that (the case when is similar). Now, k is the least natural number greater than or equal to such that . We need to find an upper bound for k.
By our induction hypothesis and the definition of we have where . Thus, the base-b expansion of is infinite by Lemma 3.5. Since is rational, its base-b expansion will be of the form
where and at least one of the digits in the sequence will be different from 0 (if they all were zeros, the base b expansion would be finite). Now, where and are natural numbers. Thus, we have . Hence, we have .
Now, since f is an honest function and (for any ), we have
This proves that is greater than . Now it is easy to see that there exists such that
This completes the proof of Claim I.
For any, we haveand
For each i we have and a very fast increasing sequence of natural numbers such that
Thus, it is easy to see that Claim II holds.
We are now prepared to prove clause (ii) of the theorem. Let denote the sum . Then, we have
Assume for the sake of a contradiction that . Thus, (view as a function of n). By Theorem 4.5, we have such that
Pick i, j such that and (there are infinitely many such i and j) and recall that . Then, we have
Now our proof splits into the cases and . In both cases we will deduce a contradiction. Thus, we can conclude that is not elementary in f.
The case. By (**) and (†), we have . By Claim II, we have . Since is an increasing sequence, we have
This contradicts (*).
The case. By the definition of and Claim I, we have for some . Since , we also have for some . Furthermore, it is easy to see that we have for some . Thus, as , we have . Since converges to an irrational number, we conclude that . By (**) and (†), we have . By Claim II, we have . Hence, , and this contradicts (*).
This concludes the proof of clause (ii) of the theorem. It remains to prove that clause (i) also holds. To this end we need the next claim.
Letbe the base-b expansion of. Then, for any natural number j, we have
By Claim I and Lemma 3.5, has an infinite base b expansion. Thus, we have
for any . We may w.l.o.g. assume that where k is the least natural number k such that and (the proof when is symmetric). Now, . Hence
Now, since , we have
As , we have
when . This completes the proof of the Claim III.
The next claim follows easily from Claim III. We have , and then, by Claim III, the first digits of the base-b expansion of α will coincide with the first digits of the base-b expansion of . Hence, Claim IV holds.
Let. Then, the nth digit of the base-b expansion of α is the same as the nth digit of the base-b expansion of, that is.
We are now ready to prove clause (i) of our theorem. We have . The function is the jump of f, and is honest when f is, see Lemma 4.7. It follows that is an elementary relation. Let
It is not hard to see that ψ is an elementary function when we know that the relation is elementary. We will now define the function by course-of-values recursion on i. Let , let , and let
where
k is the least natural number greater than or equal to such that ,
ℓ is the least natural number greater than or equal to such that .
We observe that ϕ is defined by course-of-values recursion over elementary functions. More careful, but very tedious, considerations will show that this course-of-values recursion over elementary functions can be reduced to bounded primitive recursion over elementary functions. Thus, as the elementary functions are closed under bounded primitive recursion, ϕ is an elementary function.
It follows straightforwardly from the definition of the sequence that we have when . We can compute the i such that elementarily in n. Thereafter, we can compute elementarily by computing . By Claim IV we have , and the function is elementary. This proves that the function is elementary. □
An anonymous referee has remarked that Theorem 5.3 can be strengthen. Minor modifications of the proof given above will yield a small polynomial such that we have: For any time constructible functionthere exists α such that (i)is computable by a Turing machine working in timeand (ii)is not computable by a Turing machine working in time(where n denotes the length of the input). The referee claims that the polynomial may be as small as . It should also be possible to strengthen several other results proved in this paper along the same lines. However, a fine-grained complexity analysis of algorithms and constructions is beyond the scope of this paper.
Letbe any subrecursive class which is closed under elementary operations. For any bases a and b, we have
Assume . Let . Thus, is in . By Theorem 5.2, will also be in . Thus, . Thus, .
Assume . Let f be an honest function such that implies . Such an f exists by Theorem 4.10. By Theorem 5.3, we have α such that is elementary and . Thus, is in whereas is not. This shows that . □
Mostowski [14] proves (a theorem obviously equivalent to) the left-right implication of Corollary 5.4 and poses the right-left implication as an open problem (Mostowski’s is the class of primitive recursive functions).
Some of the results in Weihrauch [20] seem to be connected to the results proved above. Weihrauch proves that if and only if a base-b representation of a real can be continuously translated to a base-a representation of the same real, see Corollary 9 in [20].
Base-b expansions, Cauchy sequences and Dedekind cuts
A function is a Cauchy sequence for the real number α when
A function is the Dedekind cut of the real number α when iff .
For any class of functions , let denote the set of irrational numbers (between 0 and 1) that have Cauchy sequences in ; let denote the set of irrational numbers (between 0 and 1) that have Dedekind cuts in .
Let be a sufficiently large and natural subrecursive class. If is the base-b expansion of the irrational number α, then C where
is a Cauchy sequence for α. Thus, we have a Cauchy sequence for α in if the base-b expansion of α is in , and the inclusion holds for any base b. It is also easy to see that the inclusion holds for any base b. Assume that the Dedekind cut of α is in . Then, the base-b expansion of α will also be in because we can compute by the following procedure: First we compute . Then, we use and the Dedekind cut of α to determine by searching for a base-b digit such that
No unbounded search is required. Thus, the base-b expansion of α is in if the Dedekind cut of α is in , and we have .
Let b be an arbitrary base. Pick a base a such that and . By Corollary 5.4, we have and . So, and are incomparable sets, and by the considerations above both of them are subsets of and supersets of , that is, and . This implies that we have
for any base b. More careful considerations will show that (*) holds for any which is closed under elementary operations.
Kristiansen [8] proves the inclusion by a direct diagonalization argument, that is, without considering base-b expansions and the class . Specker [19] was the first to prove that we have for a subrecursive class (Specker’s is the class of primitive recursive functions). He proves (*) with by constructing α such that and . Thus, is not closed under multiplication by natural numbers, but it is rather obvious that both and are. Hence, is different from both and . Since is a subset of and superset of , it follows that is a strict subset of and strict superset of .
Sum approximations
Sum approximations from below and above are explained in Section 1. We will now give our formal definitions.
Let be the base-b expansion of an irrational number α. The base-b sum approximation from below of α is the function defined by and where m is the least m such that
The base-b sum approximation from above of α is the function defined by and where m is the least m such that
(recall that is the complement digit of ).
For any class of functions , let and .
The functions and are not defined if α is rational. When we use the notation it is understood that α is irrational.
Letbe the base-b expansion of the irrational number α. For any, there existsuch that
We prove (*) by induction on n. We have and . Thus, (*) holds with when .
Assume that (*) holds for n (we prove that (*) holds with for n). Consider . Now, might be the digit 0, and might be the digit , and might be neither 0 nor . We split the proof into three cases.
The case when. We have
Thus, by the definition of , we have
Furthermore, we have
Thus, (*) holds with for n.
The case when. Now we have
By the definition of , we have
Furthermore, since the complement digit of is the digit 0, we have
Thus, (*) holds with for n.
The case whenand. In this case both (†) and (‡) hold, and we get
□
For any irrational number α and any base b, we have
The first equality follows straightforwardly from Lemma 7.2. It also follows from Lemma 7.2 that
and thus the second equality holds. □
(i) Let α be an irrational number, and letbe a polynomial such thatfor all. Then,. (ii) Let α be an irrational number and letbe a polynomial such thatfor all. Then,.
We prove (i). Assume where is some nonzero base-b digit. We know that for some i between and . Hence, we can compute from the rational number . Such a computation of requires one application of primitive recursion, but more careful considerations will show that this application of primitive recursion can be reduced to bounded primitive recursion. The set of functions elementary in is closed under bounded primitive recursion. Hence, . The proof of (ii) is similar. □
Let f be an honest function, and letbe the jump of f. (i) Let α be an irrational number such that we havefor infinitely many. Then,. (ii) Let α be an irrational number such that we havefor infinitely many. Then,.
We prove (i). Let x be such that we have when (there are infinitely many such x). Then there exists such that . Let if for some . Now, ψ is a total function. Moreover, . We have for some . Since ψ is strictly increasing, we have . Thus, there are infinitely many x such that .
Assume for the sake of a contradiction that . Then, . This contradicts Lemma 4.8. Thus we conclude that . This completes the proof of (i). The proof of (ii) is symmetric. □
For any honest function f there exist irrational numbers α and β such that such that (i)is elementary and, and (ii)is elementary and. Moreover, (iii) α and β have elementary Dedekind cuts.
We prove (i). Let and where is the jump of f. Let α be the irrational number given by the base-b expansion
Since is honest, it is possible to check elementarily in x if there is i such that . Hence, is elementary. By Lemma 7.4(ii), is elementary. By Lemma 7.5(i), we have . This proves (i). The proof of (ii) is symmetric: Use Lemma 7.4(i) in place of Lemma 7.4(ii), use Lemma 7.5(ii) in place of Lemma 7.5(i), and let if there exists i such that , otherwise, let .
The proof of (iii) is rather straightforward, and we omit the details. The reader that wants more details may consult the proof of Theorem 5.2 in Kristiansen [8]. □
Letbe a subrecursive class closed under elementary operations. For any base b, we have
Pick an honest f such that implies . Such an f exists by Theorem 4.10. By Theorem 7.6(ii), we have α such that and . Thus, . A symmetric argument yields . Use clause (i) of Theorem 7.6 in place of clause (ii). □
We haveand(for any irrational α between 0 and 1).
Let be the base-b expansion of α. It is trivial that we have for some . Let be the elementary function given by Lemma 4.1. Then we have
Thus, . Furthermore, by Lemma 7.2, we have such that
Thus, we have the equality
and we conclude that . □
Let. Then we haveand(for any irrational α between 0 and 1).
We prove that . Let and be, respectively, the base-a and base-b expansion of α.
Assume that we have computed (the computation of is trivial). Then we can compute by the following procedure:
Compute the least s such that
Use s and search for the least t such that , and then let .
First we will argue that we can compute a certain bound for the search in the second step of the procedure. Let k be the base transition factor from a to b, and let ℓ be such that
Obviously, there is a function ψ such that and . It is also obvious that we have
Then, by Corollary 3.4, we have
where . Thus, we have a bound for the number t computed in the second step of the procedure: . This bound is primitive recursive in , and the unbounded search in the second step can be turned into a bounded search when we compute primitive recursively in .
By Theorem 5.2, we have . By Theorem 7.8, we have . By the transitivity of , we have , and thus, we also have .
This proves that we for any n can compute primitive recursively in . Thus, it follows by the straightforward algorithm above that . The proof that is symmetric. □
It is an open problem if the previous theorem holds with for .
Let a and b be bases such that, and let f be any honest function. There exists an irrational number α such that (i)andare elementary, and (ii)and.
Let f be any honest function. By Lemma 4.11, we have an honest function g such that
for all functions ψ. Let α be such that is elementary and . Such an α exists by Theorem 5.3. By (*), we have . By Theorem 7.8, we have and (if or were primitive recursive in f, then so would be). This proves (ii).
To prove that (i) holds, we have to study the construction of α in the proof of Theorem 5.3. We know that is elementary, and it is easy to see that the distance from one nonzero digit to the next nonzero digit in the base-b expansion of α is small. There will definitely be a polynomial such that we have
for all . Hence, by Lemma 7.4(i), we have , and then is elementary since is elementary. The proof that is elementary is similar. Use clause (ii) of Lemma 7.4 in place of clause (i). □
Letbe a subrecursive class closed under primitive recursive operations. For any bases a and b, we have
Assume . Let . Thus, the function is in . By Theorem 7.9, the function is in . Thus, . Thus, .
Assume . Let f be an honest function such that implies . Such an f exists by Theorem 4.10. By Theorem 7.10, we have α such that is primitive recursive and . Thus, contains the function but not the function , and we can conclude that .
This proves that we have if and only if . A very similar argument will show that we have if and only if . □
Sum approximations and Dedekind cuts
The relationship between Dedekind cuts, sum approximations from below and sum approximations from above.
The Venn diagram in Fig. 1 gives a complete description of the relationship between subrecursive Dedekind cuts and subrecursive sum approximations. The diagram was partly conjectured in Kristiansen [8]. Now we are able to prove that the diagram indeed is correct, that is, for any base b and any subrecursive class closed under elementary operations, we can prove that the following sets are nonempty:
,
,
,
,
,
,
.
The setis nonempty. This is obvious. See Kristiansen [8] for more on what we find inside this set, e.g., every irrational whose continued fraction is in , will be in the set.
The setsandare nonempty. It follows from Theorem 7.6 that these sets are nonempty.
The setis nonempty. Consider the irrational number α constructed by diagonalization in proof of Theorem 5.3. The function f that appears in the construction may be any honest function, and the base a that appears in the construction may be any a such that . Pick an f that grows sufficiently fast, and pick a such that . Then the construction guarantees that not in . It follows that the Dedekind cut of α is not in (if the Dedekind cut of α were in , then so would the base-a expansion be; see the discussion in Section 6).
The construction also guarantees that is elementary. Hence, is in . If we take a closer look at the construction, it is not hard to see that there will be a polynomial such that we have
for all . Thus, by Lemma 7.4, we have and , and we can conclude that and are in . Thus, both and are in , but the Dedekind cut of α is not, and thus, α is in the set .
The setsandare nonempty. Again we will consider the construction of the irrational number α in the proof of Theorem 5.3. In the previous paragraph we saw that α will be in both and , but not in , if we base the construction on a suitable base a and a suitable honest function f. Now, α is in since there is a polynomial such that we have
for all , and α is in since we also have
for all .
It is possible to modify the construction of α such that the base-b expansion of α will contain infinitely many very long sequences the digit 0, more precisely, we construct α such that we have
for infinitely many . The diagonalization will still takes place and assure that α is not in , and (‡) will still hold and assure that α is in , but (†) will not hold anymore. Instead (*) holds, and when (*) holds we have by clause (i) of Lemma 7.5. Thus α is in the set .
A symmetric argument shows that set is nonempty: Construct α such that the base-b expansion of α contains infinitely many very long sequences of the digit and apply clause (ii) of Lemma 7.5.
The setis nonempty. Let f be an honest function such that implies (for any function ψ). Such an f exists by Theorem 4.10. Furthermore, let and where is the jump of f, and let α be the real number given by the base-b expansion
Then, we have by Lemma 7.5.
We will now argue that the Dedekind cut of α is elementary (and thus in ). Since is honest, we can elementarily in x compute i such that . This makes it easy to see that is elementary.
Now, how can we elementarily decide if a rational number q lies below or above the irrational number α? Let be the base-b expansion of q. Since q is rational, this expansion will be of the form (the expansion is finite if ). Let be the base-b expansion of α. We invite the reader to check that
Thus, we can decide if by the following procedure:
compute j, n and the rational number such that
compute
check if .
The first step and the third step of this procedure involve only elementary computations. So does the second step as is an elementary function. Hence, we can decide elementarily in q if q lies below or above α, and we conclude that the Dedekind cut of α is elementary.
The readers that want to check that (*) indeed holds should note the following: (i) If the base-b expansion of q is finite, then (*) holds since α is irrational. (ii) If the base-b expansion of q is infinite, then the period of the expansion cannot contain only 0’s or only ’s. It follows that the first digits of the base-b expansion of q do not coincide with first digits of the base-b expansion of α.
Footnotes
Acknowledgement
The author wants to thank one of the referees for valuable advice regarding the presentation.
References
1.
O.Aberth, Computable Analysis, MacGraw-Hill, New York, 1980.
2.
S.B.Cooper, Computability Theory, Chapman and Hall/CRC, Boca Raton, FL2003.
3.
I.Georgiev, Continued fractions of primitive recursive real numbers, Mathematical Logic Quarterly61(4–5) (2015), 288–306. doi:10.1002/malq.201400013.
4.
K.Ko, On the definitions of some complexity classes of real numbers, Mathematical Systems Theory16 (1983), 95–109. doi:10.1007/BF01744572.
5.
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.
6.
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.
7.
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.
8.
L.Kristiansen, On subrecursive representability of irrational numbers, Computability6 (2017), 249–276. doi:10.3233/COM-160063.
9.
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), Bellaterra (Barcelona), 2012, pp. 255–279.
10.
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.
11.
S.Labhalla and H.Lombardi, Real numbers, continued fractions and complexity classes, Annals of Pure and Applied Logic50 (1990), 1–28. doi:10.1016/0168-0072(90)90052-4.
12.
C.Leary and L.Kristiansen, A Friendly Introduction to Mathematical Logic, 2nd edn, Milne Library, SUNY Geneseo, Geneseo, NY, 2015.
13.
R.S.Lehman, On primitive recursive real numbers, Fundamenta Mathematica49 (1961), 105–118. doi:10.4064/fm-49-2-105-118.
R.Péter, Rekursive Funktionen, Verlag der Ungarischen Akademie der Wissenschaften, Budapest, 1957, English translation: Academic Press, New York, 1967.
16.
H.E.Rose, Subrecursion. Functions and Hierarchies, Clarendon Press, Oxford, 1984.
D.Skordev, A.Weiermann and I.Georgiev, -computable real numbers, Journal of Logic and Computation22 (2008), 899–925. doi:10.1093/logcom/exq050.
19.
E.Specker, Nicht Konstruktiv Beweisbare Satze Der Analysis, Journal of Symbolic Logic14 (1949), 145–158. doi:10.2307/2267043.
20.
K.Weihrauch, The degrees of discontinuity of some translators between representations of real numbers, Informatik Berichte 129, Fern Universität Hagen, 1992.