With this definition, you can trivially prove the titular sentence - "hallucination is inevitable" - is untrue.
Let your LLM have a fixed input context length of one byte. Continue training the LLM until such a time as it replies to the input "A" with "yes" and all other inputs with "no".
Define your computable ground truth function such that the correct output for the input "A" is "yes" and the correct output for all other inputs is "no".
This LLM provable never hallucinates - we have exhaustively verified that its output matches the ground truth function for all possible inputs.
There is nothing stopping inductively increasing the size of the input context and the number of entries in the ground truth table arbitrarily, and at no step do hallucinations become "inevitable".