7.2Undecidabilty and Unrecognizability by Diagonalization
The University of Melbourne
As mentioned earlier, it turns out that ATM is undecidable so there
are undecidable problems. Worse than that, there actually are problems
that are not even recognizable!
We begin by showing that there exists a language that is not
recognizable. The idea is to show that there are more languages than
there are Turing machines and thus there is a language that is not
recognized by any Turing machine. But the set of languages is infinite
and so is the set of Turing machines, so first we need a way to compare
the sizes of infinite sets.
To compare the sizes of finite sets, we can simply count the number of
elements in both sets and then compare the counts. We cannot do this for
infinite sets. However, observe that another way to show that two finite
sets A and B have the same size is by showing that we can match each
element of A to a unique element of B. If the sets have different
sizes, there is no such matching.
Fortunately, this idea of matching extends to infinite sets. Formally,
the matching is given by a function f:A→B that maps
elements in A to elements in B. The function f is a 1-1
correspondence if it satisfies:
(Injectivity) No two elements in A get mapped to the same element
in B. Formally, for every x,y∈A, we have f(x)=f(y).
(Surjectivity) Every element in B is mapped to by some element in
A. Formally, for every z∈B, there is a x∈A such that
f(x)=z.
We say that two sets A and B have the same size iff there is a 1-1
correspondence f:A→B. Moreover, if set A has the same
size as the set of natural numbers N={1,2,3,…},
then we say that A is countable.
To show that there are more languages than Turing machines, we will use
a technique called diagonalization. First, we present the technique in
a simpler setting and use it to show that the set of real numbers
R is uncountable. Thus the set of reals is larger than the
set of natural numbers.
We can now show that ATM is undecidable by showing that a decider
for ATM gives a decider for LD which is impossible since LD
is not even recognizable.