# Computation in the limit

(Redirected from Limiting recursive)

In computability theory, a function is called limit computable if it is the limit of a uniformly computable sequence of functions. The terms computable in the limit, limit recursive and recursively approximable are also used. One can think of limit computable functions as those admitting an eventually correct computable guessing procedure at their true value. A set is limit computable just when its characteristic function is limit computable.

If the sequence is uniformly computable relative to D, then the function is limit computable in D.

## Formal definition

A total function ${\displaystyle r(x)}$  is limit computable if there is a total computable function ${\displaystyle {\hat {r}}(x,s)}$  such that

${\displaystyle \displaystyle r(x)=\lim _{s\to \infty }{\hat {r}}(x,s)}$

The total function ${\displaystyle r(x)}$  is limit computable in D if there is a total function ${\displaystyle {\hat {r}}(x,s)}$  computable in D also satisfying

${\displaystyle \displaystyle r(x)=\lim _{s\to \infty }{\hat {r}}(x,s)}$

A set of natural numbers is defined to be computable in the limit if and only if its characteristic function is computable in the limit. In contrast, the set is computable if and only if it is computable in the limit by a function ${\displaystyle \phi (t,i)}$  and there is a second computable function that takes input i and returns a value of t large enough that the ${\displaystyle \phi (t,i)}$  has stabilized.

## Limit lemma

The limit lemma states that a set of natural numbers is limit computable if and only if the set is computable from ${\displaystyle 0'}$  (the Turing jump of the empty set). The relativized limit lemma states that a set is limit computable in ${\displaystyle D}$  if and only if it is computable from ${\displaystyle D'}$ . Moreover, the limit lemma (and its relativization) hold uniformly. Thus one can go from an index for the function ${\displaystyle {\hat {r}}(x,s)}$  to an index for ${\displaystyle {\hat {r}}(x)}$  relative to ${\displaystyle 0'}$ . One can also go from an index for ${\displaystyle {\hat {r}}(x)}$  relative to ${\displaystyle 0'}$  to an index for some ${\displaystyle {\hat {r}}(x,s)}$  that has limit ${\displaystyle {\hat {r}}(x)}$ .

### Proof

As ${\displaystyle 0'}$  is a [computably enumerable] set, it must be computable in the limit itself as the computable function can be defined

${\displaystyle \displaystyle {\hat {r}}(x,s)={\begin{cases}1&{\text{if by stage }}s,x{\text{ has been enumerated into }}0'\\0&{\text{if not}}\end{cases}}}$

whose limit ${\displaystyle r(x)}$  as ${\displaystyle s}$  goes to infinity is the characteristic function of ${\displaystyle 0'}$ .

It therefore suffices to show that if limit computability is preserved by Turing reduction, as this will show that all sets computable from ${\displaystyle 0'}$  are limit computable. Fix sets ${\displaystyle X,Y}$  which are identified with their characteristic functions and a computable function ${\displaystyle X_{s}}$  with limit ${\displaystyle X}$ . Suppose that ${\displaystyle Y(z)=\phi ^{X}(z)}$  for some Turing reduction ${\displaystyle \phi }$  and define a computable function ${\displaystyle Y_{s}}$  as follows

${\displaystyle \displaystyle Y_{s}(z)={\begin{cases}\phi ^{X_{s}}(z)&{\text{if }}\phi ^{X_{s}}{\text{ converges in at most }}s{\text{ steps.}}\\0&{\text{otherwise }}\end{cases}}}$

Now suppose that the computation ${\displaystyle \phi ^{X}(z)}$  converges in ${\displaystyle s}$  steps and only looks at the first ${\displaystyle s}$  bits of ${\displaystyle X}$ . Now pick ${\displaystyle s'>s}$  such that for all ${\displaystyle z  ${\displaystyle X_{s'}(z)=X(z)}$ . If ${\displaystyle t>s'}$  then the computation ${\displaystyle \phi ^{X_{t}}(z)}$  converges in at most ${\displaystyle s'  steps to ${\displaystyle \phi ^{X}(z)}$ . Hence ${\displaystyle Y_{s}(z)}$  has a limit of ${\displaystyle \phi ^{X}(z)=Y(z)}$ , so ${\displaystyle Y}$  is limit computable.

As the ${\displaystyle \Delta _{2}^{0}}$  sets are just the sets computable from ${\displaystyle 0'}$  by Post's theorem, the limit lemma also entails that the limit computable sets are the ${\displaystyle \Delta _{2}^{0}}$  sets.

## Limit computable real numbers

A real number x is computable in the limit if there is a computable sequence ${\displaystyle r_{i}}$  of rational numbers (or, which is equivalent, computable real numbers) which converges to x. In contrast, a real number is computable if and only if there is a sequence of rational numbers which converges to it and which has a computable modulus of convergence.

When a real number is viewed as a sequence of bits, the following equivalent definition holds. An infinite sequence ${\displaystyle \omega }$  of binary digits is computable in the limit if and only if there is a total computable function ${\displaystyle \phi (t,i)}$  taking values in the set ${\displaystyle \{0,1\}}$  such that for each i the limit ${\displaystyle \lim _{t\rightarrow \infty }\phi (t,i)}$  exists and equals ${\displaystyle \omega (i)}$ . Thus for each i, as t increases the value of ${\displaystyle \phi (t,i)}$  eventually becomes constant and equals ${\displaystyle \omega (i)}$ . As with the case of computable real numbers, it is not possible to effectively move between the two representations of limit computable reals.

## Examples

• The real whose binary expansion encodes the halting problem is computable in the limit but not computable.
• The real whose binary expansion encodes the truth set of first-order arithmetic is not computable in the limit.