Slide09 RESet
Slide09 RESet
Xiaofeng Gao
CS363-Computability Theory
∗
Special thanks is given to Prof. Yuxi Fu for sharing his teaching materials.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 1/72
Recursive Sets
Recursively Enumerable Set
Special Sets
Outline
1 Recursive Sets
Decidable Predicate
Reduction
Rice Theorem
3 Special Sets
Productive Sets
Creative Set
Simple Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 2/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
Outline
1 Recursive Sets
Decidable Predicate
Reduction
Rice Theorem
3 Special Sets
Productive Sets
Creative Set
Simple Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 3/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 4/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
Recursive Set
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 5/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
Solvable Problem
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 6/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
Examples
(a) N.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 7/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
Unsolvable Problem
K = {x | x ∈ Wx },
Fin = {x | Wx is finite},
Inf = {x | Wx is infinite},
Cof = {x | Wx is cofinite},
Rec = {x | Wx is recursive},
Tot = {x | φx is total},
Ext = {x | φx is extensible to a total recursive function}.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 8/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
Cofinite
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 9/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
Cofinite
Example 1: {x | x ≥ 5} is cofinite.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 9/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
Cofinite
Example 1: {x | x ≥ 5} is cofinite.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 9/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
Cofinite
Example 1: {x | x ≥ 5} is cofinite.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 9/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
Extensible Functions
Ext = {x | φx is extensible to a total recursive function}.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 10/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
Extensible Functions
Ext = {x | φx is extensible to a total recursive function}.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 10/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
Extensible Functions
Ext = {x | φx is extensible to a total recursive function}.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 10/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
Extensible Functions
Ext = {x | φx is extensible to a total recursive function}.
Decidable Predicate
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 11/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
Algebra of Decidability
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 12/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
Algebra of Decidability
Proof.
cA = 1−̇cA .
cA∩B = cA · cB .
cA∪B = max(cA , cB ).
cA\B = cA · cB .
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 12/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 13/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
Many-One Reduction
x ∈ A iff f (x) ∈ B
for all x.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 14/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
Many-One Reduction
2. A ≤m B iff A ≤m B.
3. A ≤m N iff A = N; A ≤m ∅ iff A = ∅.
4. N ≤m A iff A 6= ∅; ∅ ≤m A iff A 6= N.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 15/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
Non-Recursive Set
Proposition. K = {x | x ∈ Wx } is not recursive.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 16/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
Non-Recursive Set
Proposition. K = {x | x ∈ Wx } is not recursive.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 16/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
Non-Recursive Set
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 17/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
Non-Recursive Set
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 17/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
Rice Theorem
Henry Rice.
Classes of Recursively Enumerable Sets and their Decision Problems.
Transactions of the American mathematical Society, 77:358-366,
1953.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 18/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
Rice Theorem
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 19/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
Rice Theorem
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 19/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
Fin = {x | Wx is finite},
Inf = {x | Wx is infinite},
Cof = {x | Wx is cofinite},
Rec = {x | Wx is recursive},
Tot = {x | φx is total}
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 20/72
Recursive Sets Decidable Predicate
Recursively Enumerable Set Reduction
Special Sets Rice Theorem
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 21/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Outline
1 Recursive Sets
Decidable Predicate
Reduction
Rice Theorem
3 Special Sets
Productive Sets
Creative Set
Simple Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 22/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 23/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
is computable.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 24/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 25/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 26/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Quick Review
Theorem. M(x) is decidable iff both M(x) and ¬M(x) are partially
decidable.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 27/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 28/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 28/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Example
1. The halting problem is partially decidable. Its partial characteristic
function is given by
1, if Px (y) ↓,
χH (x, y) =
undefined, otherwise.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 29/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Example
1. The halting problem is partially decidable. Its partial characteristic
function is given by
1, if Px (y) ↓,
χH (x, y) =
undefined, otherwise.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 29/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Example
1. The halting problem is partially decidable. Its partial characteristic
function is given by
1, if Px (y) ↓,
χH (x, y) =
undefined, otherwise.
Example (Cont.)
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 30/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Example (Cont.)
5. {x | Wx 6= ∅} is r.e.
Proof: Wx 6= ∅ ⇔ ∃y∃t(Px (y) ↓ in t steps).
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 30/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Example (Cont.)
5. {x | Wx 6= ∅} is r.e.
Proof: Wx 6= ∅ ⇔ ∃y∃t(Px (y) ↓ in t steps).
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 30/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Index Theorem
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 31/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Index Theorem
Proof:
“⇒": A is r.e. ⇒ χA is computable ⇒ “x ∈ A ⇔ x ∈ χA ".
Thus A is the domain of unary computable function χA .
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 31/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Index Theorem
Proof:
“⇒": A is r.e. ⇒ χA is computable ⇒ “x ∈ A ⇔ x ∈ χA ".
Thus A is the domain of unary computable function χA .
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 31/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 32/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 32/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
P(x) ↓ in y steps.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 32/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 33/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 33/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Uniformisation Theorem
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 34/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Uniformisation Theorem
We may think of c(x) as a choice function for R(x, y). The theorem
states that the choice function is computable.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 34/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Complementation Theorem
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 35/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Complementation Theorem
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 35/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Complementation Theorem
x ∈ A ⇔ ∃yR(x, y),
x ∈ A ⇔ ∃yS(x, y).
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 35/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 36/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 36/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 36/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 36/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 37/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 37/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Graph Theorem
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 38/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Graph Theorem
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 38/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Graph Theorem
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 38/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Listing Theorem
Listing Theorem. A is r.e. iff either A = ∅ or A is the range of a
unary total computable function.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 39/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Listing Theorem
Listing Theorem. A is r.e. iff either A = ∅ or A is the range of a
unary total computable function.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 39/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Listing Theorem
Listing Theorem. A is r.e. iff either A = ∅ or A is the range of a
unary total computable function.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 39/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Listing Theorem
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 40/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
An Example
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 41/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
An Example
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 41/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 42/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 42/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 43/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
g(0) = f (0),
g(n + 1) = f (µy(f (y) > g(n))).
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 43/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 44/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 44/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 45/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 45/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
An Alternative Proof
f (x, y) =
Let
1 if Px (x) does not converge in y or fewer steps,
undefined otherwise.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 46/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Closure Theorem
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 47/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Closure Theorem
Wr(x,y) = Wx ∪ Wy ,
Ws(x,y) = Wx ∩ Wy .
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 47/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Closure Theorem
Wr(x,y) = Wx ∪ Wy ,
Ws(x,y) = Wx ∩ Wy .
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 47/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Rice-Shapiro Theorem
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 48/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 49/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 49/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 49/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 49/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 50/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 50/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
z ∈ K ⇒ φs(z) = f ⇒ s(z) ∈
/ A;
z∈/ K ⇒ φs(z) = θ ⇒ s(z) ∈ A.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 50/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
(2) ∀f ∈ A , ∃ finite θ ∈ A , θ ⊆ f .
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 51/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Corollary
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 52/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Corollary
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 52/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Corollary
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 52/72
Recursive Sets
Partial Decidable Predicates
Recursively Enumerable Set
Theorems
Special Sets
Fin = {x | Wx is finite},
Inf = {x | Wx is infinite},
Cof = {x | Wx is cofinite},
Rec = {x | Wx is recursive},
Tot = {x | φx is total},
Con = {x | φx is total and constant},
Ext = {x | φx is extensible to a total recursive function}.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 53/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Outline
1 Recursive Sets
Decidable Predicate
Reduction
Rice Theorem
3 Special Sets
Productive Sets
Creative Set
Simple Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 54/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Non-r.e. Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 55/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Non-r.e. Sets
Example. Consider K = {x | x 6∈ Wx }
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 55/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Non-r.e. Sets
Example. Consider K = {x | x 6∈ Wx }
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 55/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Non-r.e. Sets
Example. Consider K = {x | x 6∈ Wx }
We call K productive.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 55/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Productive Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 56/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Productive Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 56/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Productive Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 56/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Reduction Theorem
Theorem. Suppose that A and B are sets such that A is productive,
and there is a total computable function such that x ∈ A iff f (x) ∈ B.
Then B is productive.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 57/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Reduction Theorem
Theorem. Suppose that A and B are sets such that A is productive,
and there is a total computable function such that x ∈ A iff f (x) ∈ B.
Then B is productive.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 57/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Reduction Theorem
Theorem. Suppose that A and B are sets such that A is productive,
and there is a total computable function such that x ∈ A iff f (x) ∈ B.
Then B is productive.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 57/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Reduction Theorem
Theorem. Suppose that A and B are sets such that A is productive,
and there is a total computable function such that x ∈ A iff f (x) ∈ B.
Then B is productive.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 57/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Reduction Theorem
Theorem. Suppose that A and B are sets such that A is productive,
and there is a total computable function such that x ∈ A iff f (x) ∈ B.
Then B is productive.
Proof
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 58/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Examples
1. {x | φx 6= 0} is productive.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 59/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Examples
1. {x | φx 6= 0} is productive.
0 if x ∈ Wx
Proof. f (x, y) = . Reduce from K.
↑ if x 6∈ Wx
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 59/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Examples
1. {x | φx 6= 0} is productive.
0 if x ∈ Wx
Proof. f (x, y) = . Reduce from K.
↑ if x 6∈ Wx
2. {x | c ∈
/ Wx } is productive.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 59/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Examples
1. {x | φx 6= 0} is productive.
0 if x ∈ Wx
Proof. f (x, y) = . Reduce from K.
↑ if x 6∈ Wx
2. {x | c ∈
/ Wx } is productive.
y if x ∈ Wx
Proof. f (x, y) = . Reduce from K.
↑ if x 6∈ Wx
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 59/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Examples
1. {x | φx 6= 0} is productive.
0 if x ∈ Wx
Proof. f (x, y) = . Reduce from K.
↑ if x 6∈ Wx
2. {x | c ∈
/ Wx } is productive.
y if x ∈ Wx
Proof. f (x, y) = . Reduce from K.
↑ if x 6∈ Wx
3. {x | c ∈
/ Ex } is productive.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 59/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 60/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 60/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 60/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 60/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Creative Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 61/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Creative Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 61/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Creative Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 61/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Examples
1. {x | c ∈ Wx } is creative.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 62/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Examples
1. {x | c ∈ Wx } is creative.
2. {x | c ∈ Ex } is creative.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 62/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Examples
1. {x | c ∈ Wx } is creative.
2. {x | c ∈ Ex } is creative.
3. A = {x | φx (x) = 0} is creative.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 62/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Examples
1. {x | c ∈ Wx } is creative.
2. {x | c ∈ Ex } is creative.
3. A = {x | φx (x) = 0} is creative.
Proof. A is r.e.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 62/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Examples
1. {x | c ∈ Wx } is creative.
2. {x | c ∈ Ex } is creative.
3. A = {x | φx (x) = 0} is creative.
Proof. A is r.e.
To obtain a productive function for A, by s-m-n theorem one gets a
total computable function g(x) such that φg(x) (y) = 0 ⇔ φx (y) is
defined.
Then g(x) ∈ A ⇔ g(x) ∈ Wx . So if Wx ⊆ A we must have
g(x) ∈ A \ Wx .
Thus g is a productive function for A.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 62/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 63/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 63/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Examples
1. A = {x | c ∈ Wx } is creative. It corresponds to
A = {f ∈ C1 | f (c) ↓}.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 64/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Examples
1. A = {x | c ∈ Wx } is creative. It corresponds to
A = {f ∈ C1 | f (c) ↓}.
2. A = {x | c ∈ Ex } is creative. It corresponds to
A = {f ∈ C1 | ∃x(f (x) ↓ c)}.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 64/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Examples
1. A = {x | c ∈ Wx } is creative. It corresponds to
A = {f ∈ C1 | f (c) ↓}.
2. A = {x | c ∈ Ex } is creative. It corresponds to
A = {f ∈ C1 | ∃x(f (x) ↓ c)}.
3. A = {x | Wx 6= ∅} is creative. It corresponds to
A = {f ∈ C1 | f 6= f∅ }.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 64/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Discussion
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 65/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Discussion
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 65/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Subset Theorem
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 66/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Subset Theorem
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 66/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Subset Theorem
Theorem. A productive set contains an infinite r.e. subset.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 67/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Subset Theorem
Theorem. A productive set contains an infinite r.e. subset.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 67/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Subset Theorem
Theorem. A productive set contains an infinite r.e. subset.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 67/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Subset Theorem
Theorem. A productive set contains an infinite r.e. subset.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 67/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Subset Theorem
Theorem. A productive set contains an infinite r.e. subset.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 67/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Subset Theorem
Theorem. A productive set contains an infinite r.e. subset.
It follows that the infinite set {g(e0 ), . . . , g(kn (e0 )), . . .} is a r.e.
subset of A.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 67/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Illumination
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 68/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Corollary
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 69/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Simple Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 70/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Simple Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 71/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Simple Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 71/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Simple Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 71/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Simple Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 72/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Simple Sets
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 72/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Simple Sets
(i) A is r.e.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 72/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Simple Sets
(i) A is r.e.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 72/72
Recursive Sets Productive Sets
Recursively Enumerable Set Creative Set
Special Sets Simple Sets
Simple Sets
(i) A is r.e.
CSC363-Computability Theory@SJTU Xiaofeng Gao Recursive and Recursively Enumerable Set 72/72