I am reading the book by Peter Smith "An Introduction to Gödel's Theorems". I am struck at the point where he tries to construct an non effective enumerable set by using the diagonalisation idea.
Here is the sketch of the proof :
Denote by $\pi_{e}$ the enumerable set of algorithms. Denote their domain as $W_{e}$. Now consider the set $K=\{e:e \in W_e\}$.
He proves that this set's complement is not effectively enumerable. But in the construction of $K$ are we assuming the axiom of choice? If not, how do we justify the fact that $K$ exists ?
I am new to all this so any intuitive answer can help. Thanks in advance.
Peter Smith's argument is based on the existence of
According to the
every effectively enumerable set of numbers is $W_e$ for some index $e$.
In order to show that the complement of $K = \{e : e \in W_e \}$ is not effectively enumerable, we must apply a "diagonal" argument.
If you consider Recursively enumerable sets and Recursive sets we have to apply the property of :
We can find the details into Herbert Enderton, Computability Theory. An Introduction to Recursion Theory (2011).
Being $K$ r.e. [see the algorithm described in fgp's answer], if also its complement $\overline K$ would be, we should be able to decide the Halting problem.
From Enderton, page 7 :
In this way, we may list all one-place effectively calculable partial function as $\pi_e$.
Using the universal partial function $\Phi$, we can construct an undecidable binary relation, the halting relation $H$ :
But H is not decidable [see page 8] :
The function $f$ is the semicharacteristic function of the set :
$\overline K = \{ e : \Phi(e,e)$ undefined $\}$;
that is the complement of the set :
$K = \{ e : e \in W_e \}$.