Math 2.0

Mathematical logic and foundations Definition

Computable set

Builds on Computable functionSubset

Definition

Let A⊆ℕA \subseteq \N be a subset of the natural numbers. The characteristic function of AA is χA ⁣:ℕ→{0,1}\chi_A \colon \N \to \set{0, 1}, with χA(n)=1\chi_A(n) = 1 if n∈An \in A and χA(n)=0\chi_A(n) = 0 if n∉An \notin A. The set AA is computable, or recursive, or decidable, if χA\chi_A is a total computable function. The same definition applies to subsets of ℕk\N^k.

Remarks

Example: the set of prime numbers is computable. A machine can test n≥2n \ge 2 for divisors dd with 2≤d<n2 \le d < n, which takes finitely many steps, and so computes χA\chi_A.

Non-example: the set K={e:program e halts on input e}K = \set{e : \text{program } e \text{ halts on input } e} is not computable, by the undecidability of the halting problem. Its characteristic function is total but not computable.

A set AA is computable if and only if both AA and ℕ∖A\N \setminus A are computably enumerable. The computable sets are closed under union, intersection and complement.

Reading path

To understand this page from the ground up, read these 3 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Computable function concept
  2. Subset concept
  3. Computable set definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Computable_set
About this page
TagDN5G4NAF95
URIm2://DN5G4NAF95
Kinddefinition
WritingW0 stub
MSC03D25, 03D20
DefinesComputable set
UsesComputable function, Subset
Changed2 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.