
In
mathematical logic
Mathematical logic is the study of Logic#Formal logic, formal logic within mathematics. Major subareas include model theory, proof theory, set theory, and recursion theory (also known as computability theory). Research in mathematical logic com ...
, the arithmetical hierarchy, arithmetic hierarchy or Kleene–Mostowski hierarchy (after mathematicians
Stephen Cole Kleene
Stephen Cole Kleene ( ; January 5, 1909 – January 25, 1994) was an American mathematician. One of the students of Alonzo Church, Kleene, along with Rózsa Péter, Alan Turing, Emil Post, and others, is best known as a founder of the branch of ...
and
Andrzej Mostowski
Andrzej Mostowski (1 November 1913 – 22 August 1975) was a Polish mathematician. He worked primarily in logic and foundations of mathematics and is perhaps best remembered for the Mostowski collapse lemma. He was a member of the Polish Academy ...
) classifies certain
sets based on the complexity of
formula
In science, a formula is a concise way of expressing information symbolically, as in a mathematical formula or a ''chemical formula''. The informal use of the term ''formula'' in science refers to the general construct of a relationship betwe ...
s that
define
A definition is a statement of the meaning of a term (a word, phrase, or other set of symbols). Definitions can be classified into two large categories: intensional definitions (which try to give the sense of a term), and extensional definit ...
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
Computability theory, also known as recursion theory, is a branch of mathematical logic, computer science, and the theory of computation that originated in the 1930s with the study of computable functions and Turing degrees. The field has since ex ...
,
effective descriptive set theory
Effective descriptive set theory is the branch of descriptive set theory dealing with sets of reals having lightface definitions; that is, definitions that do not require an arbitrary real parameter (Moschovakis 1980). Thus effective descriptive ...
, and the study of
formal theories such as
Peano arithmetic
In mathematical logic, the Peano axioms (, ), also known as the Dedekind–Peano axioms or the Peano postulates, are axioms for the natural numbers presented by the 19th-century Italian mathematician Giuseppe Peano. These axioms have been used nea ...
.
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
Analytic or analytical may refer to:
Chemistry
* Analytical chemistry, the analysis of material samples to learn their chemical composition and structure
* Analytical technique, a method that is used to determine the concentration of a chemica ...
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 number
In mathematics, the natural numbers are the numbers 0, 1, 2, 3, and so on, possibly excluding 0. Some start counting with 0, defining the natural numbers as the non-negative integers , while others start with 1, defining them as the positive in ...
s ''n'' (including 0). The Greek letters here are
lightface symbols, which indicates that the formulas do not contain
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 quantifier
Existentialism is a family of philosophy, philosophical views and inquiry that explore the human individual's struggle to lead an Authenticity (philosophy), authentic life despite the apparent Absurdity#The Absurd, absurdity or incomprehensibili ...
s and alternates
times between series of existential and
universal quantifier
In mathematical logic, a universal quantification is a type of quantifier, a logical constant which is interpreted as "given any", "for all", "for every", or "given an arbitrary element". It expresses that a predicate can be satisfied by e ...
s; 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
In mathematical logic, the Peano axioms (, ), also known as the Dedekind–Peano axioms or the Peano postulates, are axioms for the natural numbers presented by the 19th-century Italian mathematician Giuseppe Peano. These axioms have been used nea ...
(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''-
tuple
In mathematics, a tuple is a finite sequence or ''ordered list'' of numbers or, more generally, mathematical objects, which are called the ''elements'' of the tuple. An -tuple is a tuple of elements, where is a non-negative integer. There is o ...
s of natural numbers. These are in fact related by the use of a
pairing function
In mathematics, a pairing function is a process to uniquely encode two natural numbers into a single natural number.
Any pairing function can be used in set theory to prove that integers and rational numbers have the same cardinality as natural ...
.
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
Analytic or analytical may refer to:
Chemistry
* Analytical chemistry, the analysis of material samples to learn their chemical composition and structure
* Analytical technique, a method that is used to determine the concentration of a chemica ...
. 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 set
In computability theory, a set ''S'' of natural numbers is called computably enumerable (c.e.), recursively enumerable (r.e.), semidecidable, partially decidable, listable, provable or Turing-recognizable if:
*There is an algorithm such that the ...
s.
* The set of natural numbers that are indices for
Turing machine
A Turing machine is a mathematical model of computation describing an abstract machine that manipulates symbols on a strip of tape according to a table of rules. Despite the model's simplicity, it is capable of implementing any computer algori ...
s 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
In mathematical logic, the Peano axioms (, ), also known as the Dedekind–Peano axioms or the Peano postulates, are axioms for the natural numbers presented by the 19th-century Italian mathematician Giuseppe Peano. These axioms have been used nea ...
by a
formula.
* Every
subset of
Baire space
In mathematics, a topological space X is said to be a Baire space if countable unions of closed sets with empty interior also have empty interior.
According to the Baire category theorem, compact Hausdorff spaces and complete metric spaces are ...
or
Cantor space is an
open set
In mathematics, an open set is a generalization of an Interval (mathematics)#Definitions_and_terminology, open interval in the real line.
In a metric space (a Set (mathematics), set with a metric (mathematics), distance defined between every two ...
in the usual
topology
Topology (from the Greek language, Greek words , and ) is the branch of mathematics concerned with the properties of a Mathematical object, geometric object that are preserved under Continuous function, continuous Deformation theory, deformat ...
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
In mathematics, a Borel set is any subset of a topological space that can be formed from its open sets (or, equivalently, from closed sets) through the operations of countable union, countable intersection, and relative complement. Borel sets ...
. 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 function
In computability theory, a primitive recursive function is, roughly speaking, a function that can be computed by a computer program whose loops are all "for" loops (that is, an upper bound of the number of iterations of every loop is fixed befor ...
s, 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 function
In computability theory, a primitive recursive function is, roughly speaking, a function that can be computed by a computer program whose loops are all "for" loops (that is, an upper bound of the number of iterations of every loop is fixed befor ...
s 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
,