Let $(X,d)$ be a compact metric space. Is the following statement true?
If $f:X\to \mathbb R$ is a continuous mapping, then it maps cauchy sequences into cauchy sequences.
I think this statement is incorrect. Consider $X=[0,1]$ and $d=|x-y|$, then $(X,d)$ is a compact metric space. Now, consider the function $f(x)=\frac{1}{x}$, which is continuous and consider the sequence $x_n=\frac{1}{n}$. Then $x_n$ is cauchy sequence in $X$, but $f(x_n)=n$ in $\mathbb R$ is a diveregent sequence, hence not cauchy.
Is my argument correct? Also, if it is true can you please prove it.
Let $\{x_n\}$ be a cauchy sequence in $X$. Since $X$ is complete, let $x_n \to x$. Now, since $f$ is continuous, $f(x_n) \to f(x)$, which implies $\{f(x_n)\}$ is cauchy.