User:IssaRice/Computability and logic/K is recursively enumerable: Difference between revisions

From Machinelearning
No edit summary
Line 11: Line 11:
We can define the diagonal partial function <math>d(x) := \phi_x(x) + 1</math>. This is a partial recursive function because both <math>\phi_x</math> and <math>x \mapsto x+1</math> are, and we can obtain <math>d</math> via substitution. Thus, <math>d = \phi_e</math> for some <math>e \in \mathbf N</math>.
We can define the diagonal partial function <math>d(x) := \phi_x(x) + 1</math>. This is a partial recursive function because both <math>\phi_x</math> and <math>x \mapsto x+1</math> are, and we can obtain <math>d</math> via substitution. Thus, <math>d = \phi_e</math> for some <math>e \in \mathbf N</math>.


But now <math>K = \operatorname{domain} d = \operatorname{domain} \phi_e</math>. Since a set is recursively enumerable iff it is the domain of some partial recursive function, this shows that <math>K</math> is recursively enumerable.
But now <math>K = \operatorname{domain} d = \operatorname{domain} \phi_e = W_e</math>. Since a set is recursively enumerable iff it is the domain of some partial recursive function, this shows that <math>K</math> is recursively enumerable.


===Using programs===
===Using programs===

Revision as of 20:02, 9 January 2019

K:={x:xWx}

Proofs

Finding a partial recursive function that enumerates K

This proof is from Enderton.[1]

Let ϕ0,ϕ1,ϕ2, be a standard enumeration of the partial recursive functions.

We can define the diagonal partial function d(x):=ϕx(x)+1. This is a partial recursive function because both ϕx and xx+1 are, and we can obtain d via substitution. Thus, d=ϕe for some eN.

But now K=domaind=domainϕe=We. Since a set is recursively enumerable iff it is the domain of some partial recursive function, this shows that K is recursively enumerable.

Using programs

References

  1. Herbert Enderton. Computability Theory. p. 80