Computable set


In computability theory, a set of natural numbers is computable if there is an algorithm that computes the membership of every natural number in a finite number of steps. A set is noncomputable if it is not computable.

Definition

A subset of the natural numbers is computable if there exists a total computable function such that:
In other words, the set is computable if and only if the indicator function is computable.

Examples

Both A, B are sets in this section.
  • If A is computable then the complement of A is computable.
  • If A and B are computable then:
  • * AB is computable.
  • * AB is computable.
  • * The image of A × B under the Cantor pairing function is computable.
In general, the image of a computable set under a computable function is computably enumerable, but possibly not computable.
  • A is computable if and only if A and the complement of A are both computably enumerable.
  • The preimage of a computable set under a total computable function is computable.
  • The image of a computable set under a total computable bijection is computable.
A is computable if and only if it is at level of the arithmetical hierarchy.
A is computable if and only if it is either the image of a nondecreasing total computable function, or the empty set.