Complete Problems in the Arithmetic Hierarchy 243
We can define relativized versions of any of the sets discussed in the
last lecture. For example, the finiteness problem relative to oracle A is the
set
FIN
A
def
= {M | L(M
A
) is finite}.
Lemma 36.1 FIN
HP
is ≤
m
-complete for Σ
0
3
. More generally, if A is ≤
m
-complete for
Σ
0
n
,thenFIN
A
is ≤
m
-complete for Σ
0
n+2
.
Proof. To show that FIN
A
∈ Σ
0
n+2
,notethat
M ∈ FIN
A
⇔ L(M
A
) is finite ⇔∃y ∀z ≥ y ∀tM
A
(z)↑
t
(36.1)
(without loss of generality, consider machines without reject states, so that
halting and accepting are synonymous). The predicate M
A
(z) ↑
t
is ∆
0
n+1
because it is recursive in A, which is Σ
0
n
-complete. By Theorem 35.1(iii), it
is also in Π
0
n+1
, and by Theorem 35.1(ii), it can be expressed in the form of
n+1 alternations of quantifiers beginning with ∀ and followed by a recursive
predicate. Combining this with the Σ
2
quantifier prefix ∃y ∀z ≥ y ∀t in
(36.1), we obtain a Σ
n+2
quantifier prefix followed by a recursive predicate.
This shows that FIN
A
is in Σ
0
n+2
.
To show that FIN
A
is Σ
0
n+2
-hard, let us first recall the proof that FIN
is Σ
0
2
-hard. We had to reduce an arbitrary set in Σ
0
2
to FIN, which meant
we had to construct a reduction
{x |∃y ∀zR(x, y, z)}≤
m
{M | L(M) is finite}
for an arbitrary recursive predicate R(x, y, z). Thus we needed to give a
total recursive function σ such that for all x, σ(x) is a description of a
machine M such that
∃y ∀zR(x, y, z) ⇔ L(M) is finite.
Given x, we built M that on input w enumerated all y of length at
most |w |, and for each such y tried to find z such that ¬R(x, y, z).
Thus if ∀y ∃z ¬R(x, y, z), then L(M)=Σ
∗
; but on the other hand, if
∃y ∀zR(x, y, z), then M looped infinitely on all inputs w of length greater
than the shortest such y, therefore accepted a finite set.
Now we can do exactly the same construction in the presence of an
oracle A.IfR
A
(x, y, z) is recursive in A, this gives a reduction
{x |∃y ∀zR
A
(x, y, z)}≤
m
{M | L(M
A
) is finite}.
We build the oracle machine M
A
that on input w enumerates all y of length
at most |w|, and for each such y tries to find z such that ¬R
A
(x, y, z). The