VIII. Recursive Set Yuxi Fu BASICS, Shanghai Jiao Tong University - - PowerPoint PPT Presentation

viii recursive set
SMART_READER_LITE
LIVE PREVIEW

VIII. Recursive Set Yuxi Fu BASICS, Shanghai Jiao Tong University - - PowerPoint PPT Presentation

VIII. Recursive Set Yuxi Fu BASICS, Shanghai Jiao Tong University Decision Problem, Predicate, Number Set The following emphasizes the importance of number set: Decision Problem Predicate on Number Set of Number A central theme of


slide-1
SLIDE 1
  • VIII. Recursive Set

Yuxi Fu

BASICS, Shanghai Jiao Tong University

slide-2
SLIDE 2

Decision Problem, Predicate, Number Set

The following emphasizes the importance of number set: Decision Problem ⇔ Predicate on Number ⇔ Set of Number A central theme of recursion theory is to look for sensible classification of number sets. Classification is often done with the help of reduction.

Computability Theory, by Y. Fu

  • VIII. Recursive Set

1 / 35

slide-3
SLIDE 3

Synopsis

  • 1. Reduction
  • 2. Recursive Set
  • 3. Undecidability
  • 4. Rice Theorem

Computability Theory, by Y. Fu

  • VIII. Recursive Set

2 / 35

slide-4
SLIDE 4
  • 1. Reduction

Computability Theory, by Y. Fu

  • VIII. Recursive Set

3 / 35

slide-5
SLIDE 5

Reduction between Problems

A reduction is a way of defining a solution to a problem with the help of a solution to another problem. In recursion theory we are only interested in reductions that are computable.

Computability Theory, by Y. Fu

  • VIII. Recursive Set

4 / 35

slide-6
SLIDE 6

Reduction

There are several ways of reducing a problem to another. The differences between different reductions from A to B consists in the manner and the extent to which information about B is allowed to settle questions about A.

Computability Theory, by Y. Fu

  • VIII. Recursive Set

5 / 35

slide-7
SLIDE 7

Many-One Reduction

The set A is many-one reducible, or m-reducible, to the set B if there is a total computable function f such that x ∈ A iff f (x) ∈ B for all x. We shall write A ≤m B or more explicitly f : A ≤m B. If f is injective, then it is a one-one reducibility, denoted by ≤1.

Computability Theory, by Y. Fu

  • VIII. Recursive Set

6 / 35

slide-8
SLIDE 8

An Example

Suppose G is a finite graph and k is a natural number.

  • 1. The Independent Set Problem (IndSet) asks if there are k

vertices of G with every pair of which unconnected.

  • 2. The Clique Problem asks if there is a k-complete subgraph of G.

There is a simple one-one reduction from IndSet to Clique.

Computability Theory, by Y. Fu

  • VIII. Recursive Set

7 / 35

slide-9
SLIDE 9

Many-One Reduction

  • 1. ≤m is reflexive and transitive.
  • 2. A ≤m B iff A ≤m B.
  • 3. A ≤m ω iff A = ω; A ≤m ∅ iff A = ∅.
  • 4. ω ≤m A iff A = ∅; ∅ ≤m A iff A = ω.

Computability Theory, by Y. Fu

  • VIII. Recursive Set

8 / 35

slide-10
SLIDE 10

m-Degree

  • 1. A ≡m B if A ≤m B ≤m A. (many-one equivalence)
  • 2. A ≡1 B if A ≤1 B ≤1 A. (one-one equivalence)
  • 3. dm(A) = {B | A ≡m B} is the m-degree represented by A.

Computability Theory, by Y. Fu

  • VIII. Recursive Set

9 / 35

slide-11
SLIDE 11

m-Degree

The set of m-degrees is ranged over by a, b, c, . . .. a ≤m b iff A ≤m B for some A ∈ a and B ∈ b. a <m b iff a ≤m b and b ≤m a.

Computability Theory, by Y. Fu

  • VIII. Recursive Set

10 / 35

slide-12
SLIDE 12

The Structure of m-Degree

  • Proposition. The m-degrees form a distributive lattice.

Computability Theory, by Y. Fu

  • VIII. Recursive Set

11 / 35

slide-13
SLIDE 13

Recursive Permutation

A recursive permutation is one-one recursive function. A is recursively isomorphic to B, written A ≡ B, if there is a recursive permutation p such that p(A) = B.

Computability Theory, by Y. Fu

  • VIII. Recursive Set

12 / 35

slide-14
SLIDE 14

Recursive Invariance

A property of sets is recursively invariant if it is invariant under all recursive permutations.

◮ ‘A is infinite’ is a recursively invariant property. ◮ ‘2 ∈ A’ is not recursively invariant.

Computability Theory, by Y. Fu

  • VIII. Recursive Set

13 / 35

slide-15
SLIDE 15

Myhill Isomorphism Theorem

Myhill Isomorphism Theorem (1955). A ≡ B iff A ≡1 B.

Proof.

The idea is to construct effectively the graph of an isomorphic function h by two simultaneous symmetric inductions: h0 ⊆ h1 ⊆ h2 ⊆ h4 ⊆ . . . ⊆ hi ⊆ . . . such that h =

i∈ω hi.

At stage z + 1 = 2x + 1, if hz(x) is defined, do nothing. Otherwise enumerate {f (x), f (h−1

z (f (x))), . . .} until a number y

not in rng(hz) is found. Let hz+1(x) = y.

Computability Theory, by Y. Fu

  • VIII. Recursive Set

14 / 35

slide-16
SLIDE 16

The Restriction of m-Reduction

Suppose G is a finite directed weighted graph and m is a number.

◮ The Hamiltonian Circle Problem (HC) asks if there is a circle

in G whose overall weight is no more than m.

◮ The Traveling Sales Person Problem TSP asks for the overall

weight of a circle with minimum weight if there are circles. TSP can be reduced to HC. The reduction is not m-reduction.

Computability Theory, by Y. Fu

  • VIII. Recursive Set

15 / 35

slide-17
SLIDE 17
  • 2. Recursive Set

Computability Theory, by Y. Fu

  • VIII. Recursive Set

16 / 35

slide-18
SLIDE 18

Definition of Recursive Set

Let A be a subset of ω. The characteristic function of A is given by cA(x) = 1, if x ∈ A, 0, if x / ∈ A. A is recursive if cA(x) is computable.

Computability Theory, by Y. Fu

  • VIII. Recursive Set

17 / 35

slide-19
SLIDE 19

Fact about Recursive Set

  • Fact. If A is recursive then A is recursive.
  • Fact. If A is recursive and B = ∅, ω, then A ≤m B.
  • Fact. If A, B are recursive and A, B, A, B are infinite then A ≡ B.
  • Fact. If A ≤m B and B is recursive, then A is recursive.
  • Fact. If A ≤m B and A is not recursive, then B is not recursive.

Computability Theory, by Y. Fu

  • VIII. Recursive Set

18 / 35

slide-20
SLIDE 20
  • Theorem. An infinite set is recursive iff it is the range of a total

increasing computable function.

Proof.

Suppose A is recursive and infinite. Then A is range of the increasing function f given by f (0) = µy(y ∈ A), f (n + 1) = µy(y ∈ A and y > f (n)). The function is total, increasing and computable. Conversely suppose A is the range of a total increasing computable function f . Obviously y = f (n) implies n ≤ y. Hence y ∈ A ⇔ y ∈ Ran(f ) ⇔ ∃n ≤ y(f (n) = y).

Computability Theory, by Y. Fu

  • VIII. Recursive Set

19 / 35

slide-21
SLIDE 21
  • 3. Undecidability

Computability Theory, by Y. Fu

  • VIII. Recursive Set

20 / 35

slide-22
SLIDE 22

Unsolvable Problem

A decision problem f : ω → {0, 1} is solvable if it is computable. It is unsolvable if it is not solvable.

Computability Theory, by Y. Fu

  • VIII. Recursive Set

21 / 35

slide-23
SLIDE 23

Undecidable Predicate

A predicate M( x) is decidable if its characteristic function cM( x) given by cM( x) = 1, if M( x) holds, 0, if M( x) does not hold. is computable. It is undecidable if it is not decidable.

Computability Theory, by Y. Fu

  • VIII. Recursive Set

22 / 35

slide-24
SLIDE 24

Non-recursive ⇔ Unsolvable ⇔ Undecidable

Computability Theory, by Y. Fu

  • VIII. Recursive Set

23 / 35

slide-25
SLIDE 25

Some Important Undecidable Sets

K = {x | x ∈ Wx}, K0 = {π(x, y) | x ∈ Wy}, K1 = {x | Wx = ∅}, Fin = {x | Wx is finite}, Inf = {x | Wx is infinite}, Con = {x | φx is total and constant}, Tot = {x | φx is total}, Cof = {x | Wx is cofinite}, Rec = {x | Wx is recursive}, Ext = {x | φx is extensible to a total recursive function}.

Computability Theory, by Y. Fu

  • VIII. Recursive Set

24 / 35

slide-26
SLIDE 26
  • Fact. K is undecidable.

Proof.

If K were recursive, the characteristic function c(x) = 1, if x ∈ Wx, 0, if x / ∈ Wx, would be computable. Let m be an index for g(x) = 0, if c(x) = 0, ↑, if c(x) = 1. Then m ∈ Wm iff c(m) = 0 iff m / ∈ Wm.

Computability Theory, by Y. Fu

  • VIII. Recursive Set

25 / 35

slide-27
SLIDE 27

K is often used to prove undecidability result.

◮ To show that A is undecidable, it suffices to construct an

m-reduction from K to A.

Computability Theory, by Y. Fu

  • VIII. Recursive Set

26 / 35

slide-28
SLIDE 28
  • Fact. There is a computable function h such that both Dom(h)

and Ran(h) are undecidable.

Proof.

Define h(x) = x, if x ∈ Wx, ↑, if x / ∈ Wx. Clearly x ∈ Dom(h) iff x ∈ Wx iff x ∈ Ran(h).

Computability Theory, by Y. Fu

  • VIII. Recursive Set

27 / 35

slide-29
SLIDE 29
  • Fact. Both Tot and {x | φx ≃ λz.0} are undecidable.

Proof.

Consider the function f defined by f (x, y) = 0, if x ∈ Wx, ↑, if x / ∈ Wx. By S-m-n Theorem there is an injective primitive recursive function k(x) such that φk(x)(y) ≃ f (x, y). It is clear that k : K ≤1 Tot and k : K ≤1 {x | φx ≃ λ.0}.

Computability Theory, by Y. Fu

  • VIII. Recursive Set

28 / 35

slide-30
SLIDE 30
  • Fact. Both {x | c ∈ Wx} and {x | c ∈ Ex} are undecidable.

Proof.

Consider the function f defined by f (x, y) = y, if x ∈ Wx, ↑, if x / ∈ Wx. By S-m-n Theorem there is some injective primitive recursive function k(x) such that φk(x)(y) ≃ f (x, y). It is clear that k is a one-one reduction from K to both {x | c ∈ Wx} and {x | c ∈ Ex}.

Computability Theory, by Y. Fu

  • VIII. Recursive Set

29 / 35

slide-31
SLIDE 31
  • Fact. The predicate ‘φx(y) is defined’ is undecidable.
  • Fact. The predicate ‘φx ≃ φy’ is undecidable.

Computability Theory, by Y. Fu

  • VIII. Recursive Set

30 / 35

slide-32
SLIDE 32
  • 4. Rice Theorem

Computability Theory, by Y. Fu

  • VIII. Recursive Set

31 / 35

slide-33
SLIDE 33

Henry Rice Classes of Recursively Enumerable Sets and their Decision

  • Problems. Transactions of the American Mathematical Society,

77:358-366, 1953.

Computability Theory, by Y. Fu

  • VIII. Recursive Set

32 / 35

slide-34
SLIDE 34

Rice Theorem (1953). If ∅ B C, then {x | φx ∈ B} is not recursive.

Proof.

Suppose f∅ ∈ B and g ∈ B. Let f be defined by f (x, y) = g(y), if x ∈ Wx, ↑, if x / ∈ Wx. By S-m-n Theorem there is some injective primitive recursive function k(x) such that φk(x)(y) ≃ f (x, y). It is clear that k is a one-one reduction from K to {x | φx ∈ B}.

Computability Theory, by Y. Fu

  • VIII. Recursive Set

33 / 35

slide-35
SLIDE 35

Applying Rice Theorem

Assume that f (x) ≃ φx(x) + 1 could be extended to a total computable function say g(x). Let e be an index of g(x). Then φe(e) = g(e) = f (e) = φe(e) + 1. Contradiction. So we may use Rice Theorem to conclude that Ext = {x | φx is extensible to a total recursive function} is not recursive. Comment: Not every partial recursive function can be obtained by restricting a total recursive function.

Computability Theory, by Y. Fu

  • VIII. Recursive Set

34 / 35

slide-36
SLIDE 36

Remark on Rice Theorem

Rice Theorem deals with programme independent properties. It talks about classes of computable functions rather than classes

  • f programmes.

All non-trivial semantic problems are algorithmically undecidable.

Computability Theory, by Y. Fu

  • VIII. Recursive Set

35 / 35