Slide07 UniversalProgram
Slide07 UniversalProgram
Universal Program∗
Xiaofeng Gao
CS363-Computability Theory
∗
Special thanks is given to Prof. Yuxi Fu for sharing his teaching materials.
CSC363-Computability Theory@SJTU Xiaofeng Gao Universal Program 1/34
Universal Functions and Universal Programs
Application of the Universal Program
Effective Operations on Computable Functions
Outline
Outline
General Remark
Intuition
ψ(x, y) ≃ φx (y).
Universal Function
Universal Function
(n)
Question: Is ψU computable?
The Theorem
(n)
Theorem. For each n, the universal function ψU is computable.
The Theorem
(n)
Theorem. For each n, the universal function ψU is computable.
Proof in Detail
Proof in Detail
σ = π(c, j),
if 1 ≤ j ≤ s
New configuration after
th
config(e, π(c, j)) = j instruction of P e is obeyed,
c, otherwise.
if 1 ≤ j ≤ s
No. of next instruction after
th
next(e, π(c, j)) = j instruction of Pe is obeyed on c, and it exists
0, otherwise.
If ln, gn, ch, and v are primitive recursive, then so are config and
next!
u(z) = qt(4, z) + 1.
succ(c, m) = pm c.
zero(c, u(z)), if rm(4, z) = 0,
succ(c, u(z)), if rm(4, z) = 1,
ch(c, z) =
tran(c, u1 (z), u2 (z)),
if rm(4, z) = 2,
c, if rm(4, z) = 3.
j + 1, if rm(4, z) 6= 3,
v(c, j, z) = j + 1, if rm(4, z) = 3 ∧ (c)v1 (z) =6 (c)v2 (z) ,
v3 (z), if rm(4, z) = 3 ∧ (c)v1 (z) = (c)v2 (z) .
Conclusion
Further Constructions
Further Constructions
Theorem. (Kleene)
There is a primitive recursive function U(x) and for each n ≥ 1 a
primitive recursive predicate Tn (e, x, z) such that
(n)
1. φe (x) is defined if and only if ∃z.Tn (e, x, z).
(n)
2. φe (x) ≃ U(µzTn (e, x, z)).
Theorem. (Kleene)
There is a primitive recursive function U(x) and for each n ≥ 1 a
primitive recursive predicate Tn (e, x, z) such that
(n)
1. φe (x) is defined if and only if ∃z.Tn (e, x, z).
(n)
2. φe (x) ≃ U(µzTn (e, x, z)).
Outline
Application: Undecidability
Application: Undecidability
Proof.
1. The primitive recursive functions are effectively denumerable.
Proof (1)
Example: f (x) = x2
Effective Numbering
Now restrict our attention to plans for unary primitive recursive
functions. We can number these plans in an effective way. Define:
θn = φp(n) .
Computability of p(n)
g(x) = θx (x) + 1
= φp(x) (x) + 1
= ψU (p(x), x) + 1
Outline
Proof. Let
1, if z ∈ Wx or z ∈ Wy ,
f (x, y, z) =
undefined, otherwise.
and
(n+2)
f (e1 , e2 , x, y + 1) ≃ φe2 (x, y, f (e1 , e2 , x, y))
(n+2)
≃ ψU (e2 , x, y, f (e1 , e2 , x, y)).