Skip to article frontmatterSkip to article content

7.2Undecidabilty and Unrecognizability by Diagonalization

The University of Melbourne

As mentioned earlier, it turns out that ATMA_{TM} 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 AA and BB have the same size is by showing that we can match each element of AA to a unique element of BB. 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:ABf : A \rightarrow B that maps elements in AA to elements in BB. The function ff is a 1-1 correspondence if it satisfies:

  1. (Injectivity) No two elements in AA get mapped to the same element in BB. Formally, for every x,yAx,y \in A, we have f(x)f(y)f(x) \neq f(y).

  2. (Surjectivity) Every element in BB is mapped to by some element in AA. Formally, for every zBz \in B, there is a xAx \in A such that f(x)=zf(x) = z.

We say that two sets AA and BB have the same size iff there is a 1-1 correspondence f:ABf: A \rightarrow B. Moreover, if set AA has the same size as the set of natural numbers N={1,2,3,}\mathcal{N} = \{1, 2, 3, \ldots\}, then we say that AA is countable.

7.2.1Countable sets

7.2.2Diagonalization for Reals

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\mathcal{R} is uncountable. Thus the set of reals is larger than the set of natural numbers.

7.2.3Diagonalization for Languages

7.2.4Undecidability of TM Acceptance

We can now show that ATMA_{TM} is undecidable by showing that a decider for ATMA_{TM} gives a decider for LDL_D which is impossible since LDL_D is not even recognizable.