ArticleslgStudy

computer science

Specker sequence

Specker sequence 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 Specker sequence rather than just read about it. In short: In computability theory, a Specker sequence is a computable, monotonically increasing, bounded sequence of rational numbers whose supremum is not a computable real number. The first example of such a sequence was constructed by Ernst Specker.

Specker sequence — main illustration
Specker sequence — illustration

Key takeaways

  • Specker sequence 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 Specker sequence to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Specker sequence from memory before moving on to harder problems.

Reference excerpt

In computability theory, a Specker sequence is a computable, monotonically increasing, bounded sequence of rational numbers whose supremum is not a computable real number. The first example of such a sequence was constructed by Ernst Specker. The existence of Specker sequences has consequences for computable analysis. The fact that such sequences exist means that the collection of all computable real numbers does not satisfy the least upper bound principle of real analysis, even when considering only computable sequences. A common way to resolve this difficulty is to consider only sequences that are accompanied by a modulus of convergence; no Specker sequence has a computable modulus of convergence. More generally, a Specker sequence is called a recursive counterexample to the least upper bound principle, i.e. a construction that shows that this theorem is false when restricted to computable reals. The least upper bound principle has also been analyzed in the program of reverse mathematics, where the exact strength of this principle has been determined. In the terminology of that program, the least upper bound principle is equivalent to ACA0 over RCA0. In fact, the proof of the forward implication, i.e. that the least upper bound principle implies ACA0, is readily obtained from the textbook proof (see Simpson, 1999) of the non-computability of the supremum in the least upper bound principle.

Construction 1 One way to construct a Specker sequence is as follows: let A be any recursively enumerable set of natural numbers that is not decidable, and let (ai) be a computable enumeration of A without repetition. Define a sequence (qn) of rational numbers with the rule

qn=∑i=0n2−ai−1. It is clear that each qn is nonnegative and rational, and that the sequence qn is strictly increasing. Moreover, because ai has no repetition, it is possible to estimate each qn against the series

∑i=0∞2−i−1=1. Thus the sequence (qn) is bounded above by 1. Classically, this means that qn has a supremum x. It can be shown that x is not a computable real number. Suppose, to the contrary, that x were computable. Then the sequence (qi) would have a computable modulus of convergence: there would be a computable function r(n) such that

|qj−qi|<1n for all i,j>r(n). Such a function can be obtained by approximating x and comparing it with successive terms of (qi). Since each new term in the enumeration changes a single digit in the binary expansion, a sufficiently accurate approximation to x determines a stage after which the relevant initial segment can no longer change. If such a function r were computable, it would provide a decision procedure for A. Given k, compute r(2k+1). If k were later enumerated into A, the corresponding term would increase the sequence by 2−k−1. This cannot occur after all terms with indices greater than r(2k+1) are within 2−k−1 of one another. Therefore, if k belongs to A, it must appear among the first r(2k+1) terms of the enumeration. These finitely many terms can be checked effectively, yielding a decision procedure for A. This contradicts the assumption that A is not decidable, so x is not computable.

Construction 2 Another construction of a Specker sequence (xm) can be given using an enumeration of Turing machines. Let {n}(n) denote the action of the n-th Turing machine on the number n. Then let the n-th decimal digit of xm be 4 if m > n and the computation {n}(n) halts within m − n steps. If the computation has not finished after m − n steps (or if m < n), the digit is 3. (See the figure above.)

Each xm is a rational number, since it has a periodic decimal expansion: after the first m decimal places, all digits are 3. The sequence is computable, since to produce xm+1 after having calculated xm, one only has to simulate m + 1 Turing machines running for one step each. The sequence is increasing, because when passing from xm to xm+1, digits can only change from 3 to 4. The sequence is bounded, because it never exceeds 0.4444444... = 4/9. The limit of this sequence is not a computable real number, since its decimal expansion contains a 4 in its n-th decimal place if the computation {n}(n) halts, and a 3 otherwise. Determining the digits of the limit would therefore solve the Halting problem, which is impossible.

See also Computation in the limit

References

Illustrations

Specker sequence: A Specker sequence. The nth digit of xk is 4 if n ≤ k and the nth Turing machine in a computable Gödel numbering halts on input n after k steps; otherwise it is 3.
A Specker sequence. The nth digit of xk is 4 if n ≤ k and the nth Turing machine in a computable Gödel numbering halts on input n after k steps; otherwise it is 3.

Worked examples

Example 1 — a first encounter with Specker sequence

Start with the simplest possible case. Write down what Specker sequence 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 Specker sequence 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 Specker sequence 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 Specker sequence

In research
Specker sequence 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 Specker sequence 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
Specker sequence is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computable analysis, Sequences and series, so understanding it makes those chapters shorter.
In everyday life
Look for Specker sequence 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 “Specker sequence” →

How to study Specker sequence in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Specker sequence 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 Specker sequence out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Specker sequence in simple terms?

In computability theory, a Specker sequence is a computable, monotonically increasing, bounded sequence of rational numbers whose supremum is not a computable real number. The first example of such a sequence was constructed by Ernst Specker.

Why does Specker sequence 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 Specker sequence?

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 Specker sequence.

Tags

  • Computable analysis
  • Sequences and series

Keep exploring