ArticleslgStudy

computer science

Computation in the limit

Computation in the limit is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Computation in the limit rather than just read about it. In short: 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.

Key takeaways

  • Computation in the limit belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Computation in the limit to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Computation in the limit from memory before moving on to harder problems.

Reference excerpt

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 r(x) is limit computable if there is a total computable function r̂(x,s) such that

r(x)=lims→∞r̂(x,s) The total function r(x) is limit computable in D if there is a total function r̂(x,s) computable in D also satisfying

r(x)=lims→∞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 ϕ(t,i) and there is a second computable function that takes input i and returns a value of t large enough that the ϕ(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 0′ (the Turing jump of the empty set). The relativized limit lemma states that a set is limit computable in D if and only if it is computable from D′. Moreover, the limit lemma (and its relativization) hold uniformly. Thus one can go from an index for the function r̂(x,s) to an index for r̂(x) relative to 0′. One can also go from an index for r̂(x) relative to 0′ to an index for some r̂(x,s) that has limit r̂(x).

Proof As 0′ is a [computably enumerable] set, it must be computable in the limit itself as the computable function can be defined

r̂(x,s)={1if by stage s,x has been enumerated into 0′0if not whose limit r(x) as s goes to infinity is the characteristic function of 0′. It therefore suffices to show that if limit computability is preserved by Turing reduction, as this will show that all sets computable from 0′ are limit computable. Fix sets X,Y which are identified with their characteristic functions and a computable function Xs with limit X. Suppose that Y(z)=ϕX(z) for some Turing reduction ϕ and define a computable function Ys as follows

Ys(z)={ϕXs(z)if ϕXs converges in at most s steps.0otherwise Now suppose that the computation ϕX(z) converges in s steps and only looks at the first s bits of X. Now pick s′>s such that for all z<s+1 Xs′(z)=X(z). If t>s′ then the computation ϕXt(z) converges in at most s′<t steps to ϕX(z). Hence Ys(z) has a limit of ϕX(z)=Y(z), so Y is limit computable. As the Δ20 sets are just the sets computable from 0′ by Post's theorem, the limit lemma also entails that the limit computable sets are the Δ20 sets. An early result foreshadowing the equivalence of limit-computability with Δ20-ness was anticipated by Mostowski in 1954, using a hierarchy 𝐏2(1) and formulas ∃y(limx→∞10−xγ(x,y)<1), where γ(x,y) is a function obtained from an arbitrary primitive recursive function ϱ such that ∃p∀s(ϱ(p,s,y)=0) is equivalent to ∃x0∀x(x>x0⟹γ(x,y)=0).

Extension Iteration of limit computability can be used to climb up the arithmetical hierarchy. Namely, an m-ary function f(x1,…,xm) is Δk+10 iff it can be written in the form limnklimnk−1…limn1g(x1,…,xm,nk,…,n1) for some m+k-ary recursive function g, under the assumption that all limits exist.

Limit computable real numbers A real number x is computable in the limit if there is a computable sequence ri 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 ω of binary digits is computable in the limit if and only if there is a total computable function ϕ(t,i) taking values in the set {0,1} such that for each i the limit limt→∞ϕ(t,i) exists and equals ω(i). Thus for each i, as t increases the value of ϕ(t,i) eventually becomes constant and equals ω(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. Chaitin's constant.

Set-theoretic extension There is a modified version of the limit lemma for α-recursion theory via functions in the α-arithmetical hierarchy, which is a hierarchy defined relative to some admissible ordinal α. For a given admissible ordinal α, define the α-arithmetical hierarchy:

A relation R on α is 𝜮0 if it is α-recursive. R is 𝜮n+1 if it is the projection of a 𝜫n relation. R is 𝜫n if its complement is 𝜮n. Let f be a partial function from α to α. The following are equivalent:

(The graph of) f is 𝜮2. f is weakly α-recursive in 0′, the α-jump of ∅︀ using indices of α-computable functions. There is an α-recursive function f′:α×α→α approximating f such that f(γ)≃limσ→αf′(σ,γ). f≃g denotes that either f(x) and g(x) are both undefined, or they are both defined and equal.

See also Specker sequence

References

J. Schmidhuber, "Hierarchies of generalized Kolmogorov complexities and nonenumerable universal measures computable in the limit", International Journal of Foundations of Computer Science, 2002, doi:10.1142/S0129054102001291. R. Soare. Recursively Enumerable Sets and Degrees. Springer-Verlag 1987. V. Brattka. A Galois connection between Turing jumps and limits. Log. Methods Comput. Sci., 2018, doi:10.23638/LMCS-14(3:13)2018.

Worked examples

Example 1 — a first encounter with Computation in the limit

Start with the simplest possible case. Write down what Computation in the limit claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Computation in the limit before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Computation in the limit ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Computation in the limit

In research
Computation in the limit appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Computation in the limit in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Computation in the limit is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computability theory, Theory of computation, so understanding it makes those chapters shorter.
In everyday life
Look for Computation in the limit outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Computation in the limit” →

How to study Computation in the limit in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Computation in the limit means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Computation in the limit out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Computation in the limit in simple terms?

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.

Why does Computation in the limit matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Computation in the limit?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Computation in the limit.

Tags

  • Computability theory
  • Theory of computation

Keep exploring