So, I'm familiar with the halting problem and its proof. However, I also understand that the proof is for any universal machine $U$; that is, the set $\{(x,y)\in\{0,1\}^{<\omega}\times\{0,1\}^{<\omega}: U(x,y)\downarrow\}$ is not computable. Specifically, I've seen the proof by contradiction that the set's complement is not semicomputable.
However, given a specific, non-universal machine $M$ with alphabet, say, $\{0,1\}$, could you define a machine $M^\prime$ such that, say, $M^\prime(w)=M(w)$ if and only if $M(w)$ halts, and $M^\prime(w)=0$ if $M$ does not halt on input $w$? Or would this, in some way, solve the halting problem, so such a machine $M^\prime$ cannot exist?
Sorry, in advance, if this seems like too basic a question or if it's been asked before. I can't really think of a way to phrase the question simply to look up whether or not it's been answered before. Thank you!
The standard proof that the halting problem is unsolvable gives a machine $M$ such that there is no total machine $M'$ can determine correctly the set of $n$ for which $M(n)$ halts.
This machine $M$ is not universal in the sense of computability theory. Rather $M(e)$ attempts to compute $\phi_e(e)$; if $U(e,e)$ halts and returns a number greater than $0$ then $M(e)$ does not halt, while if $U(e,e)$ halts and returns $0$ then $M(e)$ halts and returns $1$. If $U(e,e)$ does not halt then neither does $M(e)$. You can check that this gives a sound definition of a machine $M$, and that no machine $M'$ can solve the halting problem for $M$ in the sense given in the question.