The following question was sent to me by a friend and I didn't really ask him about its source so I couldn't provide the source of it. I solved the question and I need to ensure my answer not just for him but also for myself since it's important to me too.
Question: Prove or Disprove: if $L$ is a decidable language, so is $\text{Prefix}(L)$.
My Answer: I think that the claim is wrong. I used the language:
$$L=\{\langle M,x,t\rangle\ |\ M\text{ halts on }x\text{ within }t\text{ steps}\}$$
It's clear that $L$ is decidable. I assume by contradiction that $\text{Prefix}(L)$ is decidable also.
Claim: $\text{Prefix}(L)$ is decideable $\iff \text{HALT}$ is decidable.
$(\Longrightarrow)$: Let $\langle M,x,t\rangle\in L$ so $M$ halts on $x$ within $t$ steps therefore $\langle M,x\rangle\in \text{HALT}$.
$(\Longleftarrow)$: Let $\langle M,x\rangle\in \text{HALT}$ so $M$ halts on $x$ within finite number of steps, let's call this number $t$, therefore $\langle M,x,t\rangle\in \text{Prefix}(L)$.
Conclusion: if $\text{Prefix}(L)$ is decidable then the $\text{HALT}$ problem is decidable too, which is known to be wrong. QED.