In mathematical logic, the arithmetical hierarchy, arithmetic hierarchy or Kleene–Mostowski hierarchy (after mathematicians Stephen Cole Kleene and Andrzej Mostowski) classifies certain sets based on the complexity of formulas that define them. Any set that receives a classification is called arithmetical. The arithmetical hierarchy was invented independently by Kleene (1943) and Mostowski (1946). The arithmetical hierarchy is important in computability theory, effective descriptive set theory, and the study of formal theories such as Peano arithmetic. The Tarski–Kuratowski algorithm provides an easy way to get an upper bound on the classifications assigned to a formula and the set it defines. The hyperarithmetical hierarchy and the analytical hierarchy extend the arithmetical hierarchy to classify additional formulas and sets.
The arithmetical hierarchy of formulas The arithmetical hierarchy assigns classifications to the formulas in the language of first-order arithmetic. The classifications are denoted Σn0 and Πn0 for natural numbers n (including 0). The Greek letters here are lightface symbols, which indicates that the formulas do not contain set parameters. If a formula ϕ is logically equivalent to a formula in which all quantifiers are bounded then ϕ is assigned the classifications Σ00 and Π00. The classifications Σn0 and Πn0 are defined inductively for every natural number n using the following rules:
If ϕ is logically equivalent to a formula of the form ∃m1∃m2⋯∃mkψ, where ψ is Πn0, then ϕ is assigned the classification Σn+10. If ϕ is logically equivalent to a formula of the form ∀m1∀m2⋯∀mkψ, where ψ is Σn0, then ϕ is assigned the classification Πn+10. A Σn0 formula is equivalent to a formula that begins with some existential quantifiers and alternates n−1 times between series of existential and universal quantifiers; while a Πn0 formula is equivalent to a formula that begins with some universal quantifiers and alternates analogously. Because every first-order formula has a prenex normal form, every formula is assigned at least one classification. Because redundant quantifiers can be added to any formula, once a formula is assigned the classification Σn0 or Πn0 it will be assigned the classifications Σm0 and Πm0 for every m > n. The only relevant classification assigned to a formula is thus the one with the least n; all the other classifications can be determined from it.
The arithmetical hierarchy of sets of natural numbers A set X of natural numbers is defined by a formula φ in the language of Peano arithmetic (the first-order language with symbols "0" for zero, "S" for the successor function, "+" for addition, "×" for multiplication, and "=" for equality), if the elements of X are exactly the numbers that satisfy φ. That is, for all natural numbers n,
n∈X⇔ℕ⊨φ(n_), where n_ is the numeral in the language of arithmetic corresponding to n. A set is definable in first-order arithmetic if it is defined by some formula in the language of Peano arithmetic. Each set X of natural numbers that is definable in first-order arithmetic is assigned classifications of the form Σn0, Πn0, and Δn0, where n is a natural number, as follows. If X is definable by a Σn0 formula then X is assigned the classification Σn0. If X is definable by a Πn0 formula then X is assigned the classification Πn0. If X is both Σn0 and Πn0 then X is assigned the additional classification Δn0. It rarely makes sense to speak of Δn0 formulas; the first quantifier of a formula is either existential or universal. So a Δn0 set is not necessarily defined by a Δn0 formula in the sense of a formula that is both Σn0 and Πn0; rather, there are both Σn0 and Πn0 formulas that define the set. For example, the set of odd natural numbers n is definable by either ∀k(n≠2×k) or ∃k(n=2×k+1). A parallel definition is used to define the arithmetical hierarchy on finite Cartesian powers of the set of natural numbers. Instead of formulas with one free variable, formulas with k free first-order variables are used to define the arithmetical hierarchy on sets of k-tuples of natural numbers. These are in fact related by the use of a pairing function.
Meaning of the notation The following meanings can be attached to the notation for the arithmetical hierarchy on formulas. The subscript n in the symbols Σn0 and Πn0 indicates the number of alternations of blocks of universal and existential first-order quantifiers that are used in a formula. Moreover, the outermost block is existential in Σn0 formulas and universal in Πn0 formulas. The superscript 0 in the symbols Σn0, Πn0, and Δn0 indicates the type of the objects being quantified over. Type 0 objects are natural numbers, and objects of type i+1 are functions that map the set of objects of type i to the natural numbers. Quantification over higher type objects, such as functions from natural numbers to natural numbers, is described by a superscript greater than 0, as in the analytical hierarchy. The superscript 0 indicates quantifiers over numbers, the superscript 1 would indicate quantification over functions from numbers to numbers (type 1 objects), the superscript 2 would correspond to quantification over functions that take a type 1 object and return a number, and so on.
… excerpt ends here. Continue reading the full article.

