In computability theory, index sets describe classes of computable functions; specifically, they give all indices of functions in a certain class, according to a fixed Gödel numbering of partial computable functions.
Definition Let φe be a computable enumeration of all partial computable functions, and We be a computable enumeration of all c.e. sets. Let 𝒜 be a class of partial computable functions. If A={x:φx∈𝒜} then A is the index set of 𝒜. In general A is an index set if for every x,y∈ℕ with φx≃φy (i.e. they index the same function), we have x∈A↔y∈A. Intuitively, these are the sets of natural numbers that we describe only with reference to the functions they index.
Index sets and Rice's theorem Most index sets are non-computable, aside from two trivial exceptions. This is stated in Rice's theorem:
Let 𝒞 be a class of partial computable functions with its index set C. Then C is computable if and only if C is empty, or C is all of ℕ. Rice's theorem says "any nontrivial property of partial computable functions is undecidable".
Completeness in the arithmetical hierarchy Index sets provide many examples of sets which are complete at some level of the arithmetical hierarchy. Here, we say a Σn set A is Σn-complete if, for every Σn set B, there is an m-reduction from B to A. Πn-completeness is defined similarly. Here are some examples:
Emp={e:We=∅} is Π1-complete. Fin={e:We is finite} is Σ2-complete. Inf={e:We is infinite} is Π2-complete. Tot={e:φe is total}={e:We=ℕ} is Π2-complete. Con={e:φe is total and constant} is Π2-complete. Cof={e:We is cofinite} is Σ3-complete. Rec={e:We is computable} is Σ3-complete. Ext={e:φe is extendible to a total computable function} is Σ3-complete. Cpl={e:We≡THP} is Σ4-complete, where HP is the halting problem. Empirically, if the "most obvious" definition of a set A is Σn [resp. Πn], we can usually show that A is Σn-complete [resp. Πn-complete].
Notes
References Odifreddi, P. G. (1992). Classical Recursion Theory, Volume 1. Elsevier. p. 668. ISBN 0-444-89483-7. Rogers Jr., Hartley (1987). Theory of Recursive Functions and Effective Computability. MIT Press. p. 482. ISBN 0-262-68052-1.