User:IssaRice/Computability and logic/K is recursively enumerable

From Machinelearning

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.

Discussion. The definition of d doesn't seem to be important. Actually, I think we can just take d(x)=ϕx(x). But it seems Enderton did the plus one to make a further point (namely, that it looks like we might be diagonalizing out of this class of functions, but luckily we're not, thanks to our objects only being partial functions).

Using programs

References

  1. Herbert Enderton. Computability Theory. p. 80