A subset S {\displaystyle S} of the natural numbers is called computable if there exists a total computable function f {\displaystyle f} such that f ( x ) = 1 {\displaystyle f(x)=1} if x ∈ S {\displaystyle x\in S} and f ( x ) = 0 {\displaystyle f(x)=0} if x ∉ S {\displaystyle x\notin S} . In other words, the set S {\displaystyle S} is computable if and only if the indicator function 1 S {\displaystyle \mathbb {1} _{S}} is computable.
Examples:
Non-examples:
Main article: List of undecidable problems
If A is a computable set then the complement of A is a computable set. If A and B are computable sets then A ∩ B, A ∪ B and the image of A × B under the Cantor pairing function are computable sets.
A is a computable set if and only if A and the complement of A are both computably enumerable (c.e.). The preimage of a computable set under a total computable function is a computable set. The image of a computable set under a total computable bijection is computable. (In general, the image of a computable set under a computable function is c.e., but possibly not computable).
A is a computable set if and only if it is at level Δ 1 0 {\displaystyle \Delta _{1}^{0}} of the arithmetical hierarchy.
A is a computable set if and only if it is either the range of a nondecreasing total computable function, or the empty set. The image of a computable set under a nondecreasing total computable function is computable.