Professional Documents
Culture Documents
Lecture #15
Sarmad Abbasi
Virtual University
Theory of Computation
1/1
Recursion Theorem
Some Applications of Recursion Theorem
Decidability of Logical Theories.
Theory of Computation
2/1
Recursion Theorem
Theory of Computation
3/1
Recursion Theorem
On input hMi,w
Theory of Computation
4/1
Recursion Theorem
Theory of Computation
5/1
Recursion Theorem
Lets consider another machine T .
1
On input hMi, w
print hMi
Thus
t(hMi, w) = hMi
The recursion theorem says that there is a TM R such that
r (w) = hRi.
Namely that there is a machine that prints its own description. We
have already seen how to do this.
Theory of Computation
6/1
Recursion Theorem
The recursion theorem says that a machine can obtain its own
description and can go on to compute with it.
By using recursion theorem we can add the following statement to our
informal description any TM M that we are designing.
Obtain own description hSELF i
Theory of Computation
7/1
Recursion Theorem
On input w
Print hSELF i
This is the machine that prints its own description. It is easy to design
if we have recursion theorem at our disposal.
Theory of Computation
8/1
Recursion Theorem
Theory of Computation
9/1
Recursion Theorem
Lets prove
ATM is undecidable
Using the recursion theorem. Suppose ATM is decidable. Then there is
a decider H that decides ATM .
Theory of Computation
10 / 1
Recursion Theorem
On input w
Theory of Computation
11 / 1
Recursion Theorem
On input hMi, w
Theory of Computation
12 / 1
Recursion Theorem
The recursion theorem now says that there is TM which we call B such
that it computes a function b with
b(w) = T (hBi, w)
but
T (hBi, w) = accept if and only if
H rejects hB, wi. Thus B accepts w if and only if H rejects hB, wi.
Hence, L(H) 6= ATM , a contradiction.
Theory of Computation
13 / 1
Recursion Theorem
Theorem
MINTM is not Turing-Recognizable.
Theory of Computation
14 / 1
Recursion Theorem
MINTM is infinite.
Theory of Computation
15 / 1
Recursion Theorem
On input w
Simulate D on input w.
Theory of Computation
16 / 1
Recursion Theorem
Theory of Computation
17 / 1
Recursion Theorem
Theorem
Let t : be a computable function. There is a TM F such that
t(hF i)
accepts the same language as F .
Theory of Computation
18 / 1
Recursion Theorem
Theory of Computation
19 / 1
Recursion Theorem
Input w.
Simulate G on w.
Theory of Computation
20 / 1
Logical Theories
What is a theorem?
What is a proof?
What is truth?
Theory of Computation
21 / 1
Logical Theories
Theory of Computation
22 / 1
Logical Theories
Theory of Computation
23 / 1
Logical Theories
(, ) are paranthesis.
, are quantifiers.
Theory of Computation
24 / 1
Recursion Theorem
Note that if we need more than one variable we can use x, xx, xxx and
so on. However, we will write them as x1 , x2 , ... Also, we will allow other
boolean operators like . Thus p q is a short form for q p.
Theory of Computation
25 / 1
Logical Theories
Theory of Computation
26 / 1
Recursion Theorem
Theory of Computation
27 / 1
Logical Theories
Theory of Computation
28 / 1
Logical Theories
R1 (x1 ) R2 (x1 , x2 , x3 ).
Theory of Computation
29 / 1
Logical Theories
We have only defined the syntax of formulas. Let us now give it some
meaning. For that we need to specify two items.
1
Theory of Computation
30 / 1
Recursion Theorem
Theory of Computation
31 / 1
Logical Theories
Theory of Computation
32 / 1
Recursion Theorem
Now, let us take another model M2 = (N, <). This model assigns h to
R1 . Now the sentence is not true.
If Ri is assigned to a customary symbol we can switch to infix notation.
Thus in M1 we can write:
xy [x y y x]
Theory of Computation
33 / 1
Logical Theories
Theory of Computation
34 / 1
Logical Theories
Theory of Computation
35 / 1