Proof (closure of computably enumerable languages)

Let $A, B\subseteq \mathbb{W}$ be computably enumerable languages, with computable pseudo-characteristic functions $ψ_A$ and $ψ_B$.

Intersection

$$ \begin{align*} ψ_{A\cap B}(w) = \begin{cases} a &\text{if $ψ_{A}(w) = a = ψ_B(w)$}, \\ \uparrow &\text{otherwise}. \end{cases} \end{align*} $$

Union

Write $A,B$ in $Σ_1$ form: find $C,D\subseteq \mathbb{W}^2$ such that $$ \begin{align*} w\in A \iff \exists v(w,v)\in C, \\ w\in B \iff \exists v(w,v)\in D, \\ \end{align*} $$ Use the zigzag method: splitting $v$ into $v_{(0)}$ and $v_{(1)}$, $$ \begin{align*} w\in A\cup B \iff \exists v \text{ such that } \begin{cases} (w, v_{(1)})\in C & \text{if $\#(v_{(0)})$ is even, and} \\ (w, v_{(1)})\in D & \text{if $\#(v_{(0)})$ is odd}. \end{cases} \end{align*} $$

Concatenation

Define $C,D$ as above. Given $w,v\in \mathbb{W}$, write $I(w,v)$ to denote the initial segment of $w$ of length $\#(v)$ (possibly all of $w$ if $\#(v) \geq |w|$) and $F(w,v)$ to denote the final segment of $w$ that remains after removing $I(w,v)$ (possibly empty).

Split $v$ into three parts: writing $v_{(2)} = (v_{(1)})_{(0)}$ and $v_{(3)} = (v_{(1)})_{(1)}$, we have $v = v_{(0)} * (v_{(2)} * v_{(3)})$. Then $$ \begin{align*} w\in AB \iff \exists v\Bigl(\bigl(I(w, v_{(0)}), v_{(2)}\bigr)\in C \wedge \bigl(F(w, v_{(0)}), v_{(3)}\bigr) \in D\Bigr), \end{align*} $$ putting $AB$ in $Σ_1$ form. Hence $AB$ is computably enumerable.

Complementation and set difference

We have shown the halting problem $\mathbf{K}$ is computably enumerable but not computable, i.e. $Σ_1$ but not $Δ_1$. Thus $\mathbb{W}\setminus \mathbf{K}$ is not $Σ_1$, showing that the class of computably enumerable languages is not closed under complementation.