Given that $X$ is a dense subset of the metric space $Y$ and that all Cauchy sequences in $X$ are convergent to points in $Y$ I want to prove that $Y$ is complete.
Here's my attempt so far:
Let $\{y_n\}$ is a Cauchy sequence in $Y$. Assume that $\{y_n\}$ has a subsequence $\{x_n\} \in X$. Then $\{x_n\}$ is also Cauchy (acc. to theorem), and we know that Cauchy sequences in $X$ are convergent. As a subsequence of $\{y_n\}$ is convergent, so is $\{y_n\}$ with the same limit point (acc. to theorem).
Now assume $\{y_n\}$ is a Cauchy sequence with only a finite number of elements within $X$, and infinitely many on $Y-X$. I want to prove that $\{y_n\}$ is convergent also in this case, but I am not sure how to proceed. I have tried to work with a subsequence here too in which I exclude all elements in $X$. That is, I've tried to prove $\{y_{n_k}\} = \{y_i|y_i\not\in X\}$ is convergent, but failed.
Any ideas on how the proof can be finished?