ArticleslgStudy

computer science

Computably enumerable set

Computably enumerable set 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 Computably enumerable set rather than just read about it. In short: In computability theory, a set S of natural numbers is called computably enumerable (c.e.), recursively enumerable (r.e.), semidecidable, partially decidable, listable, provable or Turing-recognizable if: There is an algorithm such that the set of input numbers for which the algorithm halts is exactly S. Or, equivalently, There is an algorithm that enumerates the members of S.

Computably enumerable set — main illustration
Computably enumerable set — illustration

Key takeaways

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

Reference excerpt

In computability theory, a set S of natural numbers is called computably enumerable (c.e.), recursively enumerable (r.e.), semidecidable, partially decidable, listable, provable or Turing-recognizable if:

There is an algorithm such that the set of input numbers for which the algorithm halts is exactly S. Or, equivalently,

There is an algorithm that enumerates the members of S. That means that its output is a list of all the members of S: s1, s2, s3, ... . If S is infinite, this algorithm will run forever, but each element of S will be returned after a finite amount of time. These elements do not have to be listed in a particular way, say without repetition, let alone from smallest to largest. The first condition suggests why the term semidecidable is sometimes used. More precisely, if a number is in the set, one can decide this by running the algorithm, but if the number is not in the set, the algorithm can run forever, and no information is returned. A set that is "completely decidable" is a computable set. The second condition suggests why computably enumerable is used. The abbreviations c.e. and r.e. are often used, even in print, instead of the full phrase. In computational complexity theory, the complexity class containing all computably enumerable sets is RE. In recursion theory, the lattice of c.e. sets under inclusion is denoted ℰ.

Definition A set S of natural numbers is called computably enumerable if there is a partial computable function whose domain is exactly S, meaning that the function is defined if and only if its input is a member of S.

Equivalent formulations The following are all equivalent properties of a set S of natural numbers:

Semidecidability:

The set S is computably enumerable. That is, S is the domain (co-range) of a partial computable function. The set S is Σ10 (referring to the arithmetical hierarchy). There is a partial computable function f such that: f(x)={1if x∈Sundefined/does not halt if x∉S Enumerability:

The set S is the range of a partial computable function. The set S is the range of a total computable function, or empty. If S is infinite, the function can be chosen to be injective. The set S is the range of a primitive recursive function or empty. Even if S is infinite, repetition of values may be necessary in this case. Diophantine:

There is a polynomial p with integer coefficients and variables x,a1,a2,a3,…,a9 ranging over the natural numbers such that x∈S⇔∃a1,a2,a3,…,a9 (p(x,a1,a2,a3,…,a9)=0). (The number of bound variables in this definition is the best known so far; it might be that a lower number can be used to define all Diophantine sets.) There is a polynomial from the integers to the integers such that the set S contains exactly the non-negative numbers in its range. The equivalence of semidecidability and enumerability can be obtained by the technique of dovetailing. The Diophantine characterizations of a computably enumerable set, while not as straightforward or intuitive as the first definitions, were found by Yuri Matiyasevich as part of the negative solution to Hilbert's Tenth Problem. Diophantine sets predate recursion theory and are therefore historically the first way to describe these sets (although this equivalence was only remarked more than three decades after the introduction of computably enumerable sets).

Examples Every computable set is computably enumerable, but it is not true that every computably enumerable set is computable. For computable sets, the algorithm must also say if an input is not in the set – this is not required of computably enumerable sets. A recursively enumerable language is a computably enumerable subset of a formal language. The set of all provable sentences in an effectively presented axiomatic system is a computably enumerable set. Matiyasevich's theorem states that every computably enumerable set is a Diophantine set (the converse is trivially true). The simple sets are computably enumerable but not computable. The creative sets are computably enumerable but not computable. Any productive set is not computably enumerable. Given a Gödel numbering ϕ of the computable functions, the set {⟨i,x⟩∣ϕi(x)↓} (where ⟨i,x⟩ is the Cantor pairing function and ϕi(x)↓ indicates ϕi(x) is defined) is computably enumerable (cf. picture for a fixed x). This set encodes the halting problem as it describes the input parameters for which each Turing machine halts. Given a Gödel numbering ϕ of the computable functions, the set {⟨x,y,z⟩∣ϕx(y)=z} is computably enumerable. This set encodes the problem of deciding a function value. Given a partial function f from the natural numbers into the natural numbers, f is a partial computable function if and only if the graph of f, that is, the set of all pairs ⟨x,f(x)⟩ such that f(x) is defined, is computably enumerable. As a counter-example, the set S of all computable total unary functions from the natural numbers into the natural numbers is not computably enumerable.

Properties If A and B are computably enumerable sets then A ∩ B, A ∪ B and A × B (with the ordered pair of natural numbers mapped to a single natural number with the Cantor pairing function) are computably enumerable sets. The preimage of a computably enumerable set under a partial computable function is a computably enumerable set. A set T is called co-computably-enumerable or co-c.e. if its complement ℕ∖T is computably enumerable. Equivalently, a set is co-r.e. if and only if it is at level Π10 of the arithmetical hierarchy. The complexity class of co-computably-enumerable sets is denoted co-RE. A set A is computable if and only if both A and the complement of A are computably enumerable. Some pairs of computably enumerable sets are effectively separable and some are not.

The lattice of recursively enumerable sets

The set of all recursively enumerable subsets of the natural numbers can be made into a poset under set inclusion; this poset is a lattice. The theory of this lattice is known to be an undecidable problem. Similarly, the set of all computably enumerable vector spaces also forms a lattice. In fact, one can generalize this even further to the lattice L(Q), which is defined to consist of all recursively enumerable filters, where Q is some free Boolean algebra without any atoms. These lattices are closely tied to the study of recursively enumerable Pi-0-1 classes.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Computably enumerable set

Start with the simplest possible case. Write down what Computably enumerable set 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 Computably enumerable set 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 Computably enumerable set 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 Computably enumerable set

In research
Computably enumerable set 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 Computably enumerable set 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
Computably enumerable set 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 Computably enumerable set 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 “Computably enumerable set” →

How to study Computably enumerable set in 20 minutes

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

Frequently asked questions

What is Computably enumerable set in simple terms?

In computability theory, a set S of natural numbers is called computably enumerable (c.e.), recursively enumerable (r.e.), semidecidable, partially decidable, listable, provable or Turing-recognizable if: There is an algorithm such that the set of input numbers for which the algorithm halts is exac…

Why does Computably enumerable set 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 Computably enumerable set?

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 Computably enumerable set.

Tags

  • Computability theory
  • Theory of computation

Keep exploring