Proof (closure of computable languages)

Consider two computable sets $A,B\subseteq \mathbb{W}$, i.e. $χ_A$ and $χ_B$ are computable functions.

The characteristic functions of $A\cap B$, $A\cup B$ and $\mathbb{W}\setminus A$ $$ \begin{align*} χ_{A\cap B}(w) &= \begin{cases} a &\text{if $χ_A(w) = a = χ_B(w)$}, \\ ε &\text{otherwise}, \end{cases} \\ χ_{A\cup B}(w) &= \begin{cases} ε &\text{if $χ_A(w) = ε = χ_B(w)$}, \\ a &\text{otherwise}, \end{cases} \\ χ_{\mathbb{W}\setminus A}(w) &= \begin{cases} a &\text{if $χ_A(w) = ε$}, \\ ε &\text{otherwise} \end{cases} \end{align*} $$ are computable, so they are computable sets.

The concatenation $AB$ is computable: input a word $w\in \mathbb{W}$.

  1. For each initial segment $v$ of $w$,

    1. if $v$ is in $A$ and the remainder of $w$ is in $B$,

      1. then output $w\in AB$.

  2. Otherwise output $w\not\in AB$.

There are only finitely ($|w|$) many initial segments to check, so the algorithm terminates.