Let $X \subseteq \mathbb{R}^d$. We want to show that $X$ is closed iff every Cauchy sequence in $X$ converges in $X$.
MY attempt:
Let $X$ be a closed set, and pick a convergent sequence $(x_n)$ in $X$. Since $X$ is closed, then we know that $x_n \to x \in X$. Since convergence implies Cauchy, then we have found that every Cauchy sequence in $X$ is convergent, as desired.
Conversely, suppose every Cauchy sequence converges in $X$, we want to show that $X$ is closed. To this end, pick a sequence $(x_n) \subseteq X$ such that $x_n \to L$. We want to show that $L \in X$. Since $(x_n)$ converges, then it must be Cauchy. And by hypothesis, then we must havethat $L \in X$.
Is this correct? thanks for any feedback in advanced.