I've been working on learning about recursion theory, and I've been doing problems with partial recursive functions. I stopped myself when I wrote something like this:
Let $g: \mathbb{N} \rightarrow \mathbb{N}$ be a partial recursive function and let $g(x)\downarrow$ denote that g converges for input x. Now, let $h(x) = \begin{cases} 0 & g(x)\downarrow \\ \uparrow & g(x)\uparrow \end{cases} $
Would $h$ be partial recursive? $h$ would be the partial "characteristic" function of the domain of $g$, but I cannot completely convince myself that $h$ is itself partial recursive. My main point of confusion is whether you can define a partial recursive function by asking if another one converges at an input. I cannot find any clarification on this point in my book.
And, moreover,
$k(x) = \begin{cases} 0 & g(x)\downarrow \\ 1 & g(x)\uparrow \end{cases}$
What would $k$ be considered? Although it converges at every point, it couldn't be recursive, as then it would decide non-recursive sets that are the domains of partial recursive functions.