Second-order arithmetic speaks only of numbers and sets of numbers. To formalize analysis, one codes real numbers, sequences of reals and continuous functions by sets of numbers, with codings chosen so that the basic operations are computable. This lesson presents these codings, proves two theorems of analysis in , and shows that a third one, the monotone convergence theorem, is not provable there. The latter will turn out to be equivalent to arithmetic comprehension.
3.1 Real numbers
Rational numbers are coded by numbers through a computable bijection between and ; in one proves that they form an ordered field with decidable equality and order. Sequences of rationals are coded by sets, a function being identified with its graph.
In , a real number is a sequence of rationals such that for all . Two reals and are equal, , if for all , and if for some .
The sequence represents its limit, and the fixed rate of convergence makes the relation a property, and equality a property. Equality is not decidable: no algorithm decides whether two given reals are equal, a phenomenon that will recur. The sum, product and absolute value of reals are defined termwise, with an adjustment of indices so that the rate is preserved (for instance ), and proves that the reals form an ordered field. A sequence of reals is a double sequence such that each is a real.
Without the rate of convergence, a Cauchy sequence of rationals would still determine a limit, but the order would no longer be , and the limit of a computable Cauchy sequence need not be a computable real: a Specker sequence, constructed below, is an example.
proves: if is a sequence of reals and for all , then converges to a real , that is, for every .
Write , and let ; the sequence exists by comprehension. For ,
where the outer terms use for a real , and the middle term uses the hypothesis; so is a real. For each and , , and , so for every , that is, .
The rate plays the role of a modulus of convergence: the limit is computed from the sequence. Without a modulus, the existence of the limit requires more than .
3.2 Continuous functions
A continuous function on is determined by countable information: approximations of its values on small intervals.
In , a code for a continuous function is a set of quadruples of rationals with , such that:
- consistency: if and , then ;
- totality: for every real and every , there is with and .
The value is the unique real such that for every with .
A quadruple asserts that maps the interval into . Consistency makes these assertions compatible, and totality makes them precise enough at every point. proves that exists, uniformly in . Let be a real in . For each , take the first pair such that codes a quadruple with and . This condition is bounded in and , it implies , and some pair satisfies it by totality; so the sequence exists by comprehension. The two intervals around and contain , so consistency gives for , and is a real. If and , then by consistency, and , so ; uniqueness follows from totality. The function is continuous: given and , take with and , and ; then whenever . Simpson (Section II.6) uses a variant of this definition for arbitrary complete separable metric spaces.
Every continuous function on has a code, and the codes of computable functions can be chosen computable.
3.3 The intermediate value theorem
proves the intermediate value theorem: if is continuous with , then for some .
If for some rational , we are done. Otherwise, for every rational , or . Both relations are in and the code of , and since exactly one holds, "" is equivalent to the formula “not ”. By comprehension, the set of rationals with exists.
Define rationals , , and, with , if , and otherwise. The sequence is defined by primitive recursion relative to , hence exists in , and an induction on the bounded formula expressing the recursion shows that , , and for every . So is a real, and represents the same real.
Suppose . By continuity, there is with for every with . For with , , so , a contradiction. Symmetrically, contradicts . Since the order of the reals is total, .
The proof is not uniform: it distinguishes whether vanishes at a rational, a question ("" is ) that cannot be decided effectively. This is harmless in , which reasons classically. Applied in the ω-model , the theorem shows that every computable with has a computable zero; but no single procedure computes a zero from every code of such an . Such uniformity questions are the subject of Weihrauch reducibility (Weihrauch reducibility).
3.4 Specker sequences
The monotone convergence theorem states that every bounded non-decreasing sequence of reals converges. It is true in , but fails in the ω-model .
There is a computable non-decreasing sequence of rationals in whose limit is not a computable real. Consequently does not prove the monotone convergence theorem.
Let be a computable injective function with range , and . The sequence is computable, non-decreasing, bounded by , and converges to . If were computable, given one could compute such that ; then if and only if for some , since a later would add to the remaining sum. So would be computable.
In , the sequence exists, and it is bounded and non-decreasing by absoluteness. It has no limit in the model: ” is the limit of ” is arithmetic, so a limit would be a computable real equal to . So the monotone convergence theorem fails in the ω-model of .
A computable non-decreasing bounded sequence of rationals whose limit is not computable is called a Specker sequence. The same construction, carried out for an arbitrary injective function, shows that the monotone convergence theorem implies the existence of the ranges of injective functions, and thus arithmetic comprehension (Theorem 1.5 of “Arithmetic comprehension”).
3.5 Exercises
Show that proves that every continuous function with takes the value , for every real .
Solution
Repeat the proof of Theorem 3.4 with in place of . Let be the code of . For a rational , holds if and only if there is with and : such a quadruple gives , and conversely, if , a quadruple with and satisfies . So "" is in , and , and so is "". If for some rational , we are done. Otherwise the set exists by comprehension, and the bisection and the final argument are unchanged.
Reducing to Theorem 3.4 through needs a code for . The natural candidate, the set of quadruples for and , is defined by a formula, with an unbounded search for , so comprehension does not apply to it directly; the direct argument avoids this.
A real is left-c.e. if the set of rationals is c.e. Show that is left-c.e. if and only if it is the limit of a computable non-decreasing sequence of rationals. Deduce that every non-computable left-c.e. real, such as Chaitin’s halting probability (Chaitin), is the limit of a Specker sequence.
Solution
If is the limit of a computable non-decreasing sequence of rationals, then if and only if for some : each is at most , and if , then for large. This is a c.e. condition on . Conversely, let be a computable enumeration of the non-empty c.e. set , and . The sequence is computable, non-decreasing and bounded by ; for , some rational of belongs to , so for large. Hence .
If is moreover not computable, such a sequence, bounded by any rational above , is a Specker sequence. The real is the limit of the computable non-decreasing sequence of rationals, and it is not computable, since (Chaitin).
3.6 Notes and references
The coding of reals and continuous functions follows Simpson’s monograph, Sections II.4–II.6. Specker (1949) constructed computable monotone bounded sequences without computable limit, one of the first results of computable analysis. Computable analysis studies the reals and continuous functions under these codings; see Weihrauch’s book.
- E. Specker, Nicht konstruktiv beweisbare Sätze der Analysis, Journal of Symbolic Logic 14 (1949), 145–158.
- S. G. Simpson, Subsystems of Second Order Arithmetic, 2nd edition, Cambridge University Press, 2009.
- K. Weihrauch, Computable Analysis, Springer, 2000.