Download Incomputable Languages - Computability - Lecture Slide and more Slides Computer Science in PDF only on Docsity!
1
Incomputable Languages
2
Agenda
Incomputable Languages
Existence Proof
Explicit undecidable language: ATM
Unrecognizable Language
Neither recognizable nor corecognizable
Example of a “real world” unsolvable
problem
4
Incomputable Languages
Existential Proof
We start first with an indirect proof that an undecidable language exists. In fact, we can show that a language exists that is neither
recognizable nor corecognizable : I.e.,
there is no TM which halts on all positive
instances, and there is no TM which halts on
all negative instances so we have no way of necessarily telling when an arbitrary string is or isn’t in the language.
The proof is “existential” in that a counting
argument is used to show that the language must exist, but we don’t know a priori what the language is.
5
Incomputable Languages
Existence Proof
The idea is simple: We show that there are many
more languages than Turing machines.
Every TM can be encoded in binary by some
string. Consequently the cardinality^1 of the set of TM’s is no greater than that of {0,1}*. Recall
the notion of countable : A set S is countable
if there is a 1-to-1 function f : S N from S to
the natural numbers. Equivalently, an infinite
set is countable if there is a bijection N S.
THM: The set of bit strings {0,1}* is countable.
7
Countability of
{TM-Languages}
Consequently, as every TM is described by a
bit string, there can only be as many TM’s
as bit strings. In particular, the following
sets are countable:
L 1 = {recognizable languages}
L 2 = {corecognizable languages}
DEF: A language L over the alphabet S is
corecognizable if S*-L is recognizable.
8
Countability of
{TM-Languages}
Therefore,
L 1 L 2 = {languages which are accepted or
rejected by a TM} is a union of countable sets so is countable itself. However, next we will see that the
power set P ({0,1}*) – the set of binary
languages!– is uncountable. As a corollary, there must be strictly more binary languages
than languages in L 1 L 2. Therefore:
THM: A language of bit strings exists which is neither recognizable nor corecognizable.
So let’s prove that P ({0,1}*) is uncountable:
10
Uncountability of P (S*)
A: f represents pal.
Suppose that P (S*) were countable. Thus it
would be possible to find a bijection from N
to P (S*) and hence list all binary languages
as a sequence
L 1 , L 2 , L 3 , L 4 , L 5 , L 6 , L 7 , …
supposedly containing every language of bit
strings. The lists creates a table whose rows describe the associated function for each subset:
x e^0 1 00 01 10 11 000 001 010 011 100 101 111 0000 …
f (x) 1 1 1 1 0 0 1 1 0 1 0 0 1 1 1 …
11
Uncountability of P (S*)
e (^0 1 00 01 10 11) …
L 1 1 1 1 1 0 0 1
L 2 0 0 0 0 0 0 0
L 3 1 0 0 0 0 0 0
L 4 1 1 0 1 0 0 0
L 5 1 1 1 1 1 1 1
L 6 0 0 1 0 0 0 1
L 7 1 0 0 1 1 1 1
...
strings in {0,1}*
13
Uncountability of P (S*)
Cantor’s Diabolical Diagonal
Levil is created as follows: The j th^ column of Levil
is the opposite of the j th^ column of the j th
row Li. In other words, Levil is the anti-
diagonal of the table. This guarantees
that Levil disagrees with every listed
language on some string: If the j th
language contains the j th^ string, then Levil
doesn’t, and if the j th^ language doesn’t
contain the j th^ string, then Levil does.
Let’s see how this works in practice:
r evil
14
Cantor Diagonalization
e (^0 1 00 01 10 11) …
L 1
L 2
L 3
L 4
L 5
L 6
L 7
...
Levil
strings in {0,1}*
16
Cantor Diagonalization
e (^0 1 00 01 10 11) …
L 1 1 1 1 1 0 0 1
L 2 0 0 0 0 0 0 0
L 3
L 4
L 5
L 6
L 7
...
Levil 0 1
strings in {0,1}*
17
Cantor Diagonalization
e (^0 1 00 01 10 11) …
L 1 1 1 1 1 0 0 1
L 2 0 0 0 0 0 0 0
L 3 1 0 0 0 0 0 0
L 4
L 5
L 6
L 7
...
Levil 0 1 1
strings in {0,1}*
19
Cantor Diagonalization
e (^0 1 00 01 10 11) …
L 1 1 1 1 1 0 0 1
L 2 0 0 0 0 0 0 0
L 3 1 0 0 0 0 0 0
L 4 1 1 0 1 0 0 0
L 5 1 1 1 1 1 1 1
L 6
L 7
...
Levil 0 1 1 0 0
strings in {0,1}*
20
Cantor Diagonalization
e (^0 1 00 01 10 11) …
L 1 1 1 1 1 0 0 1
L 2 0 0 0 0 0 0 0
L 3 1 0 0 0 0 0 0
L 4 1 1 0 1 0 0 0
L 5 1 1 1 1 1 1 1
L 6 0 0 1 0 0 0 1
L 7
...
Levil 0 1 1 0 0 1
strings in {0,1}*