arithmetical hierarchy#The arithmetical hierarchy of formulas
{{No footnotes|date=June 2021}}
{{short description|Hierarchy of complexity classes for formulas defining sets}}
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).P. G. Hinman, Recursion-Theoretic Hierarchies (p.89), Perspectives in Logic, 1978. Springer-Verlag Berlin Heidelberg, ISBN 3-540-07904-1.
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 and for natural numbers n (including 0). The Greek letters here are lightface symbols, which indicates that the formulas do not contain {{Clarify|text=set parameters.|date=August 2024}}
If a formula is logically equivalent to a formula having no unbounded quantifiers, i.e. in which all quantifiers are bounded quantifiers then is assigned the classifications and .
The classifications and are defined inductively for every natural number n using the following rules:
- If is logically equivalent to a formula of the form , where is , then is assigned the classification .
- If is logically equivalent to a formula of the form , where is , then is assigned the classification .
A formula is equivalent to a formula that begins with some existential quantifiers and alternates times between series of existential and universal quantifiers; while a 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 or it will be assigned the classifications and 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,
:
where is the numeral in the language of arithmetic corresponding to . 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 , , and , where is a natural number, as follows. If X is definable by a formula then X is assigned the classification . If X is definable by a formula then X is assigned the classification . If X is both and then is assigned the additional classification .
Note that it rarely makes sense to speak of formulas; the first quantifier of a formula is either existential or universal. So a set is not necessarily defined by a formula in the sense of a formula that is both and ; rather, there are both and formulas that define the set. For example, the set of odd natural numbers is definable by either or .
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 in the symbols and 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 formulas and universal in formulas.
The superscript in the symbols , , and indicates the type of the objects being quantified over. Type 0 objects are natural numbers, and objects of type are functions that map the set of objects of type 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.
Examples
- The sets of numbers are those definable by a formula of the form where has only bounded quantifiers. These are exactly the recursively enumerable sets.
- The set of natural numbers that are indices for Turing machines that compute total functions is . Intuitively, an index falls into this set if and only if for every "there is an such that the Turing machine with index halts on input after steps". A complete proof would show that the property displayed in quotes in the previous sentence is definable in the language of Peano arithmetic by a formula.
- Every subset of Baire space or Cantor space is an open set in the usual topology on the space. Moreover, for any such set there is a computable enumeration of Gödel numbers of basic open sets whose union is the original set. For this reason, sets are sometimes called effectively open. Similarly, every set is closed and the sets are sometimes called effectively closed.
- Every arithmetical subset of Cantor space or Baire space is a Borel set. The lightface Borel hierarchy extends the arithmetical hierarchy to include additional Borel sets. For example, every subset of Cantor or Baire space is a set, that is, a set that equals the intersection of countably many open sets. Moreover, each of these open sets is and the list of Gödel numbers of these open sets has a computable enumeration. If is a formula with a free set variable and free number variables then the set is the intersection of the sets of the form as ranges over the set of natural numbers.
- The formulas can be checked by going over all cases one by one, which is possible because all their quantifiers are bounded. The time for this is polynomial in their arguments (e.g. polynomial in for ); thus their corresponding decision problems are included in E (as is exponential in its number of bits). This no longer holds under alternative definitions of that allow the use of primitive recursive functions, as now the quantifiers may be bounded by any primitive recursive function of the arguments.
- The formulas under an alternative definition, that allows the use of primitive recursive functions with bounded quantifiers, correspond to sets of natural numbers of the form for a primitive recursive function . This is because allowing bounded quantifier adds nothing to the definition: for a primitive recursive ,
Relativized arithmetical hierarchies
Just as we can define what it means for a set X to be recursive relative to another set Y by allowing the computation defining X to consult Y as an oracle we can extend this notion to the whole arithmetic hierarchy and define what it means for X to be
For example, let Y be a set of natural numbers. Let X be the set of numbers divisible by an element of Y. Then X is defined by the formula
Arithmetic reducibility and degrees
Arithmetical reducibility is an intermediate notion between Turing reducibility and hyperarithmetic reducibility.
A set is arithmetical (also arithmetic and arithmetically definable) if it is defined by some formula in the language of Peano arithmetic. Equivalently X is arithmetical if X is
The relation
:
is an equivalence relation. The equivalence classes of this relation are called the arithmetic degrees; they are partially ordered under
The arithmetical hierarchy of subsets of Cantor and Baire space
The Cantor space, denoted
The ordinary axiomatization of second-order arithmetic uses a set-based language in which the set quantifiers can naturally be viewed as quantifying over Cantor space. A subset of Cantor space is assigned the classification
Note that while both the elements of the Cantor space (regarded as sets of natural numbers) and subsets of the Cantor space are classified in arithmetic hierarchies, these are not the same hierarchy. In fact the relationship between the two hierarchies is interesting and non-trivial. For instance the
There are two ways that a subset of Baire space can be classified in the arithmetical hierarchy.
- A subset of Baire space has a corresponding subset of Cantor space under the map that takes each function from
\omega to\omega to the characteristic function of its graph. A subset of Baire space is given the classification\Sigma^0_n ,\Pi^0_n , or\Delta^0_n if and only if the corresponding subset of Cantor space has the same classification. - An equivalent definition of the arithmetical hierarchy on Baire space is given by defining the arithmetical hierarchy of formulas using a functional version of second-order arithmetic; then the arithmetical hierarchy on subsets of Cantor space can be defined from the hierarchy on Baire space. This alternate definition gives exactly the same classifications as the first definition.
A parallel definition is used to define the arithmetical hierarchy on finite Cartesian powers of Baire space or Cantor space, using formulas with several free variables. The arithmetical hierarchy can be defined on any effective Polish space; the definition is particularly simple for Cantor space and Baire space because they fit with the language of ordinary second-order arithmetic.
Note that we can also define the arithmetic hierarchy of subsets of the Cantor and Baire spaces relative to some set of natural numbers. In fact boldface
Extensions and variations
It is possible to define the arithmetical hierarchy of formulas using a language extended with a function symbol for each primitive recursive function. This variation slightly changes the classification of
A more semantic variation of the hierarchy can be defined on all finitary relations on the natural numbers; the following definition is used. Every computable relation is defined to be
- If the relation
R(n_1,\ldots,n_l,m_1,\ldots, m_k)\, is\Sigma^0_n then the relationS(n_1,\ldots, n_l) = \forall m_1\cdots \forall m_k R(n_1,\ldots,n_l,m_1,\ldots,m_k) is defined to be\Pi^0_{n+1} - If the relation
R(n_1,\ldots,n_l,m_1,\ldots, m_k)\, is\Pi^0_n then the relationS(n_1,\ldots,n_l) = \exists m_1\cdots \exists m_k R(n_1,\ldots,n_l,m_1,\ldots,m_k) is defined to be\Sigma^0_{n+1}
This variation slightly changes the classification of some sets. In particular,
Properties
The following properties hold for the arithmetical hierarchy of sets of natural numbers and the arithmetical hierarchy of subsets of Cantor or Baire space.
- The collections
\Pi^0_n and\Sigma^0_n are closed under finite unions and finite intersections of their respective elements. - A set is
\Sigma^0_n if and only if its complement is\Pi^0_n . A set is\Delta^0_n if and only if the set is both\Sigma^0_n and\Pi^0_n , in which case its complement will also be\Delta^0_n . - The inclusions
\Pi^0_n \subsetneq \Pi^0_{n+1} and\Sigma^0_n \subsetneq \Sigma^0_{n+1} hold for alln . Thus the hierarchy does not collapse. This is a direct consequence of Post's theorem. - The inclusions
\Delta^0_n \subsetneq \Pi^0_n ,\Delta^0_n \subsetneq \Sigma^0_n and\Sigma^0_n \cup \Pi^0_n \subsetneq \Delta^0_{n+1} hold forn \geq 1 .
:*For example, for a universal Turing machine T, the set of pairs (n,m) such that T halts on n but not on m, is in
:*
Relation to Turing machines
{{See also|Post's theorem}}
=Computable sets=
If S is a Turing computable set, then both S and its complement are recursively enumerable (if T is a Turing machine giving 1 for inputs in S and 0 otherwise, we may build a Turing machine halting only on the former, and another halting only on the latter).
By Post's theorem, both S and its complement are in
Similarly, for every set S in
=Summary of main results=
The Turing computable sets of natural numbers are exactly the sets at level
No oracle machine is capable of solving its own halting problem (a variation of Turing's proof applies). The halting problem for a
Post's theorem establishes a close connection between the arithmetical hierarchy of sets of natural numbers and the Turing degrees. In particular, it establishes the following facts for all n ≥ 1:
- The set
\emptyset^{(n)} (the nth Turing jump of the empty set) is many-one complete in\Sigma^0_n . - The set
\mathbb{N} \setminus \emptyset^{(n)} is many-one complete in\Pi^0_n . - The set
\emptyset^{(n-1)} is Turing complete in\Delta^0_n .
The polynomial hierarchy is a "feasible resource-bounded" version of the arithmetical hierarchy in which polynomial length bounds are placed on the numbers involved (or, equivalently, polynomial time bounds are placed on the Turing machines involved). It gives a finer classification of some sets of natural numbers that are at level
Relation to other hierarchies
{{pointclasses}}
See also
References
{{Reflist}}
{{refbegin}}
- {{citation |first=Giorgie |last=Japaridze |author-link = Giorgi Japaridze|title=The logic of arithmetical hierarchy |journal=Annals of Pure and Applied Logic |volume=66 |issue=2 |year=1994 |pages=89–112 |doi = 10.1016/0168-0072(94)90063-9 |zbl = 0804.03045 }}.
- {{citation |last=Moschovakis |first=Yiannis N. |author-link=Yiannis N. Moschovakis |title=Descriptive Set Theory |publisher=North Holland |year=1980 |isbn=0-444-70199-0 |zbl = 0433.03025 |series = Studies in Logic and the Foundations of Mathematics |volume =100 }}.
- {{citation |last=Nies |first=André |title = Computability and randomness |series = Oxford Logic Guides |volume=51 |location=Oxford |publisher=Oxford University Press |year=2009 |isbn=978-0-19-923076-1 |zbl = 1169.03034 }}.
- {{citation |last=Rogers |first = H. Jr. |author-link = Hartley Rogers Jr.|title = Theory of recursive functions and effective computability |publisher=McGraw-Hill | year=1967 |zbl = 0183.01401 |location=Maidenhead }}.
{{refend}}
{{-}}
{{ComplexityClasses}}
Category:Mathematical logic hierarchies