Let $f:[0,1] \to [0,1]$ be continuous. Define the sequence $(x_n)$ by successive approximation as follows: $x_0 \in [0,1]$ and $x_{n+1} = f(x_n)$ for all non-negative integers n.
I wanted to prove that if $(x_{n+1}-x_n) \to 0$ as $n\to \infty$ then $(x_n)$ converges to a fixed point of $f$ , but I'm unsure about how rigorous my attempt is:
Consider the continuous function $g(x) = f(x) -x$ . Assume that $f$ has no fixed point, $\nexists \ c \in [0,1]$ such that $g(c)=0 \implies \epsilon' > 0$ such that $|g(x)| > \epsilon' \ \ \ \forall x\in[0,1]$
But we know that $\forall \epsilon > 0 \ \ \ \exists N , n\ge N \implies |x_{n+1}-x_n| = |f(x_n)-x_n | = |g(x_n)| < \epsilon$, which contradicts our assumption and implies that $(g(x_n)) \to c \ $ such that $g(c) = 0$ and therefore $(x_n) \to c \ $ as $n \to \infty$
Is my last logical jump rigorous, and if not, how would you go about fixing my argument?