I need to prove that the language following language is not turing-recognizable: $$\text{dec-haltTM} = \{ \langle M\rangle: \text{$M$ is a TM and the set of words that M halts on is decidable}\}$$
I had the following reduction from $\overline{A_{TM}}$ in mind:
"On input $\langle M, w\rangle$ such that $M$ is a TM and $w$ is a string:
- build a TM $M'$ on input that on input $x$: 1.1 simulate the run of $M$ on $w$. If the simulated run is accepting, accept $\langle M, w\rangle$. 1.2 else enter a loop.
- return $\langle M'\rangle$."
but I'm not sure I can return the output in line 1.1. I tried to create $M'$ such that if $\langle M,w \rangle$ is in $\overline{A_{TM}}$ then $M'$ doesn't halt on any input thus the language is $\emptyset$ regular and decidable. If $\langle M,w\rangle$ is in $A_{TM}$, then the set of words $M'$ halts on is $A_{TM}$, thus not decidable.