Suppose $f: \mathbb{R} \to \mathbb{R}$ satisfies $\lvert f(x) - f(y) \rvert \leq \frac{1}{2} \lvert x - y \rvert$ for all $x,y \in \mathbb{R}$, and $f(0) = 0$. Let $x_0 \in \mathbb{R} $ be arbitrary. Define $x_1 = f(x_0)$, $x_2 = f(x_1)$, etc. so that $x_n = f(x_{n-1})$ for all $n\in \mathbb{Z^+}$. Prove that $\lim_{n\to \infty} x_n = 0$.
I am aware that one of this means that the function $f$ is Lipschitz which implies that it is uniformly continuous.
This is my attempt at the proof: Suppose $\varepsilon > 0$. We have $$\lvert x_n - 0 \rvert = \lvert f(x_{n-1}) - f(0) \rvert \leq \frac{1}{2} \lvert x_{n-1} \rvert. $$
From uniform continuity, we can choose $\delta >0$ such that $\lvert x - y \rvert < \delta$ implies that $\lvert f(x) - f(y) \rvert < \varepsilon$. I want to somehow use this information to find an $N\in \mathbb{Z^+}$ such that $\vert x_n - 0 \rvert < \varepsilon$ whenever $n\geq N$ but I'm stuck on how to finish.
Why not iterate what you have? $$|x_n| \leq \frac{1}{2}|x_{n-1}| \leq \frac{1}{2^2} |x_{n-2}| \leq \dots \leq \frac{1}{2^n} |x_0|$$ Note $\frac{1}{2^n} \to 0$ as $n \to \infty.$