I assume you mean "Turing machine" by "function", otherwise it is meaningless to say a function halts on some input.
Suppose $\mathrm{HALT}$ exists, then we construct a Turing machine $H$ as follows:
On input $\langle M, w\rangle$ where $M$ is an (encoding of) Turing machine:
Construct a Turing machine $N_{\langle M, w\rangle}$ with input $x$ as follows: run $M$ on $x$ and return what $M$ returns.
Run $\mathrm{HALT}$ on $\langle N_{\langle M, w\rangle}, 0\rangle$ and return what $\mathrm{HALT}$ returns.
Note the result of running $N_{\langle M, w\rangle}$ has nothing to do with its input $x$. If $M$ halts on $w$, $N_{\langle M, w\rangle}$ halts on all inputs, thus $\mathrm{HALT}( N_{\langle M, w\rangle}, 0)$ returns true. otherwise $N_{\langle M, w\rangle}$ halts on no input, thus $\mathrm{HALT}( N_{\langle M, w\rangle}, 0)$ returns false.
Now we can see $M$ halts on $w$ if and only if $H$ accepts $\langle M, w\rangle$. Since $H$ always halts, $H$ is a decider for the normal halting problem, a contradiction!
So $\mathrm{HALT}$ does not exist.
f(x)
as an input? $\endgroup$HALT(f, x, y)
? $\endgroup$HALT(f(x),y)
andHALT(f,y)
? You should make sure you understand the difference betweenf(x)
andf
. And also, your question is unclear. For instance, you cannot say "HALT
returns true on somey
". You should presumably say something like "there existsy
such thatHALT(f,y)
returns true". $\endgroup$HALT
supposed to be computable? Isf
supposed to be partial computable? $\endgroup$