Arithmetical hierarchy explained

Arithmetical hierarchy should not be confused with Levy hierarchy.

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).[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

0
\Sigma
n
and
0
\Pi
n
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

\phi

is logically equivalent to a formula having no unbounded quantifiers, i.e. in which all quantifiers are bounded quantifiers then

\phi

is assigned the classifications
0
\Sigma
0
and
0
\Pi
0
.

The classifications

0
\Sigma
n
and
0
\Pi
n
are defined inductively for every natural number n using the following rules:

\phi

is logically equivalent to a formula of the form

\existsm1\existsm2 … \existsmk\psi

, where

\psi

is
0
\Pi
n
, then

\phi

is assigned the classification
0
\Sigma
n+1
.

\phi

is logically equivalent to a formula of the form

\forallm1\forallm2 … \forallmk\psi

, where

\psi

is
0
\Sigma
n
, then

\phi

is assigned the classification
0
\Pi
n+1
.

A

0
\Sigma
n
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
0
\Pi
n
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

0
\Sigma
n
or
0
\Pi
n
it will be assigned the classifications
0
\Sigma
m
and
0
\Pi
m
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.

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
0
\Sigma
n
and
0
\Pi
n
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
0
\Sigma
n
formulas and universal in
0
\Pi
n
formulas.

The superscript

0

in the symbols
0
\Sigma
n
,
0
\Pi
n
, and
0
\Delta
n
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.

Examples

0
\Sigma
1
sets of numbers are those definable by a formula of the form

\existsn1\existsnk\psi(n1,\ldots,nk,m)

where

\psi

has only bounded quantifiers. These are exactly the recursively enumerable sets.
0
\Pi
2
. Intuitively, an index

e

falls into this set if and only if for every

m

"there is an

s

such that the Turing machine with index

e

halts on input

m

after

s

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
0
\Sigma
1
formula.
0
\Sigma
1
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,
0
\Sigma
1
sets are sometimes called effectively open. Similarly, every
0
\Pi
1
set is closed and the
0
\Pi
1
sets are sometimes called effectively closed.
0
\Pi
2
subset of Cantor or Baire space is a

G\delta

set
, that is, a set that equals the intersection of countably many open sets. Moreover, each of these open sets is
0
\Sigma
1
and the list of Gödel numbers of these open sets has a computable enumeration. If

\phi(X,n,m)

is a
0
\Sigma
0
formula with a free set variable

X

and free number variables

n,m

then the
0
\Pi
2
set

\{X\mid\foralln\existsm\phi(X,n,m)\}

is the intersection of the
0
\Sigma
1
sets of the form

\{X\mid\existsm\phi(X,n,m)\}

as

n

ranges over the set of natural numbers.
0
\Sigma
0
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

n

for

\varphi(n)

); thus their corresponding decision problems are included in E (as

n

is exponential in its number of bits). This no longer holds under alternative definitions of
0
\Sigma
0
that allow the use of primitive recursive functions, as now the quantifiers may be bound by any primitive recursive function of the arguments.
0
\Sigma
0
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

\{n:f(n)=0\}

for a primitive recursive function

f

. This is because allowing bounded quantifier adds nothing to the definition: for a primitive recursive

f

,

\forallk<n:f(k)=0

is the same as

f(0)+f(1)+...f(n)=0

, and

\existsk<n:f(k)=0

is the same as

f(0)f(1)\ldotsf(n)=0

; with course-of-values recursion each of these can be defined by a single primitive recursive function.

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\inX\LeftrightarrowN\models\varphi(\underlinen),

where

\underlinen

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

0
\Sigma
n
,
0
\Pi
n
, and
0
\Delta
n
, where

n

is a natural number, as follows. If X is definable by a
0
\Sigma
n
formula then X is assigned the classification
0
\Sigma
n
. If X is definable by a
0
\Pi
n
formula then X is assigned the classification
0
\Pi
n
. If X is both
0
\Sigma
n
and
0
\Pi
n
then

X

is assigned the additional classification
0
\Delta
n
.

Note that it rarely makes sense to speak of

0
\Delta
n
formulas; the first quantifier of a formula is either existential or universal. So a
0
\Delta
n
set is not necessarily defined by a
0
\Delta
n
formula in the sense of a formula that is both
0
\Sigma
n
and
0
\Pi
n
; rather, there are both
0
\Sigma
n
and
0
\Pi
n
formulas that define the set. For example, the set of odd natural numbers

n

is definable by either

\forallk(n2 x k)

or

\existsk(n=2 x 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.

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

0
\Sigma
n
,
0
\Delta
n
or
0
\Pi
n
in Y, denoted respectively
0,Y
\Sigma
n
,
0,Y
\Delta
n
and
0,Y
\Pi
n
. To do so, fix a set of natural numbers Y and add a predicate for membership of Y to the language of Peano arithmetic. We then say that X is in
0,Y
\Sigma
n
if it is defined by a
0
\Sigma
n
formula in this expanded language. In other words, X is
0,Y
\Sigma
n
if it is defined by a
0
\Sigma
n
formula allowed to ask questions about membership of Y. Alternatively one can view the
0,Y
\Sigma
n
sets as those sets that can be built starting with sets recursive in Y and alternately taking unions and intersections of these sets up to n times.

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

\phi(n)=\existsm\existst(Y(m)\landm x t=n)

so X is in
0,Y
\Sigma
1
(actually it is in
0,Y
\Delta
0
as well, since we could bound both quantifiers by n).

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

0
\Sigma
n
or
0
\Pi
n
for some natural number n. A set X is arithmetical in a set Y, denoted

X\leqAY

, if X is definable as some formula in the language of Peano arithmetic extended by a predicate for membership of Y. Equivalently, X is arithmetical in Y if X is in
0,Y
\Sigma
n
or
0,Y
\Pi
n
for some natural number n. A synonym for

X\leqAY

is: X is arithmetically reducible to Y.

The relation

X\leqAY

is reflexive and transitive, and thus the relation

\equivA

defined by the rule

X\equivAY\iffX\leqAY\landY\leqAX

is an equivalence relation. The equivalence classes of this relation are called the arithmetic degrees; they are partially ordered under

\leqA

.

The arithmetical hierarchy of subsets of Cantor and Baire space

The Cantor space, denoted

2\omega

, is the set of all infinite sequences of 0s and 1s; the Baire space, denoted

\omega\omega

or

l{N}

, is the set of all infinite sequences of natural numbers. Note that elements of the Cantor space can be identified with sets of natural numbers and elements of the Baire space with functions from natural numbers to natural numbers.

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

0
\Sigma
n
if it is definable by a
0
\Sigma
n
formula. The set is assigned the classification
0
\Pi
n
if it is definable by a
0
\Pi
n
formula. If the set is both
0
\Sigma
n
and
0
\Pi
n
then it is given the additional classification
0
\Delta
n
. For example, let

O\subseteq2\omega

be the set of all infinite binary strings that aren't all 0 (or equivalently the set of all non-empty sets of natural numbers). As

O=\{X\in2\omega|\existsn(X(n)=1)\}

we see that

O

is defined by a
0
\Sigma
1
formula and hence is a
0
\Sigma
1
set.

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

0
\Pi
n
elements of the Cantor space are not (in general) the same as the elements

X

of the Cantor space so that

\{X\}

is a
0
\Pi
n
subset of the Cantor space. However, many interesting results relate the two hierarchies.

There are two ways that a subset of Baire space can be classified in the arithmetical hierarchy.

\omega

to

\omega

to the characteristic function of its graph. A subset of Baire space is given the classification
0
\Sigma
n
,
0
\Pi
n
, or
0
\Delta
n
if and only if the corresponding subset of Cantor space has the same classification.

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

0
\Sigma
n
is just the union of
0,Y
\Sigma
n
for all sets of natural numbers Y. Note that the boldface hierarchy is just the standard hierarchy of Borel sets.

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

0
\Sigma
0
, since using primitive recursive functions in first-order Peano arithmetic requires, in general, an unbounded existential quantifier, and thus some sets that are in
0
\Sigma
0
by this definition are strictly in
0
\Sigma
1
by the definition given in the beginning of this article. The class
0
\Sigma
1
and thus all higher classes in the hierarchy remain unaffected.

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

0
\Sigma
0
. The classifications
0
\Sigma
n
and
0
\Pi
n
are defined inductively with the following rules.

R(n1,\ldots,nl,m1,\ldots,mk)

is
0
\Sigma
n
then the relation

S(n1,\ldots,nl)=\forallm1 … \forallmkR(n1,\ldots,nl,m1,\ldots,mk)

is defined to be
0
\Pi
n+1

R(n1,\ldots,nl,m1,\ldots,mk)

is
0
\Pi
n
then the relation

S(n1,\ldots,nl)=\existsm1 … \existsmkR(n1,\ldots,nl,m1,\ldots,mk)

is defined to be
0
\Sigma
n+1
This variation slightly changes the classification of some sets. In particular,
0
\Sigma
0
, as a class of sets (definable by the relations in the class), is identical to
0
\Delta
1
as the latter was formerly defined. It can be extended to cover finitary relations on the natural numbers, Baire space, and Cantor space.

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.

0
\Pi
n
and
0
\Sigma
n
are closed under finite unions and finite intersections of their respective elements.
0
\Sigma
n
if and only if its complement is
0
\Pi
n
. A set is
0
\Delta
n
if and only if the set is both
0
\Sigma
n
and
0
\Pi
n
, in which case its complement will also be
0
\Delta
n
.
0
\Pi
n

\subsetneq

0
\Pi
n+1
and
0
\Sigma
n

\subsetneq

0
\Sigma
n+1
hold for all

n

. Thus the hierarchy does not collapse. This is a direct consequence of Post's theorem.
0
\Delta
n

\subsetneq

0
\Pi
n
,
0
\Delta
n

\subsetneq

0
\Sigma
n
and
0
\Sigma
n

\cup

0
\Pi
n

\subsetneq

0
\Delta
n+1
hold for

n\geq1

.
0
\Delta
2
(being computable with an oracle to the halting problem) but not in
0
\Sigma
1

\cup

0
\Pi
1
.
0
\Sigma
0

=

0
\Pi
0

=

0
\Delta
0

=

0
\Sigma
0

\cup

0
\Pi
0

\subseteq

0
\Delta
1
. The inclusion is strict by the definition given in this article, but an identity with
0
\Delta
1
holds under one of the variations of the definition given above.

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

0
\Sigma
1
. This means that S is both in
0
\Sigma
1
and in
0
\Pi
1
, and hence it is in
0
\Delta
1
.

Similarly, for every set S in

0
\Delta
1
, both S and its complement are in
0
\Sigma
1
and are therefore (by Post's theorem) recursively enumerable by some Turing machines T1 and T2, respectively. For every number n, exactly one of these halts. We may therefore construct a Turing machine T that alternates between T1 and T2, halting and returning 1 when the former halts or halting and returning 0 when the latter halts. Thus T halts on every n and returns whether it is in S; so S is computable.

Summary of main results

The Turing computable sets of natural numbers are exactly the sets at level

0
\Delta
1
of the arithmetical hierarchy. The recursively enumerable sets are exactly the sets at level
0
\Sigma
1
.

No oracle machine is capable of solving its own halting problem (a variation of Turing's proof applies). The halting problem for a

0,Y
\Delta
n
oracle in fact sits in
0,Y
\Sigma
n+1
.

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:

\emptyset(n)

(the nth Turing jump of the empty set) is many-one complete in
0
\Sigma
n
.

N\setminus\emptyset(n)

is many-one complete in
0
\Pi
n
.

\emptyset(n-1)

is Turing complete in
0
\Delta
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

0
\Delta
1
of the arithmetical hierarchy.

See also

References

Notes and References

  1. P. G. Hinman, Recursion-Theoretic Hierarchies (p.89), Perspectives in Logic, 1978. Springer-Verlag Berlin Heidelberg, ISBN 3-540-07904-1.