My question is in the context of this answer.(https://math.stackexchange.com/a/3774433/710290). Please read this answer before getting to my question.
The statement of the theorem is
If $X$ is a complete, compact metric space and $f:X\to X$ is continous and satisfies $d(f(x),f(y))\lt d(x,y)$ for $x\neq y$ then the recursive sequence $f^{(n)}(x)$ is convergent.
Now, in the context of the answer, I have understood that $f$ has a unique fixed point but I can't understand what makes the recursive sequence convergent in the first place at all?
My thinking :
Let $\{a_n\}$ be the recursive sequence where $a_1=x$ and $a_{n+1}=f(a_n) ,\forall n\in \mathbb{N}$. Then since the space $X$ is compact , there is a convergent subsequence $\{a_{r_n}\}$ .
Let $a_{r_n} \to l$ as $n\to \infty$.
Then $a_{r_n+1}=f(a_{r_n})\to f(l)$ as $n\to \infty$ by the continuity of $f$.
Similarly $a_{r_n+2}=f(a_{r_n+1})\to f(f(l))$ as $n\to \infty$
Similarly, for $k\in \mathbb{N}$
$a_{r_n+k}\to f^{(k)}(l)$ as $n\to \infty$
But I don't understand what to conclude from this. Please help.
As a sidenote, before you ask the question why didn't I ask there in the comments , I want to make it clear that I asked it there but didn't get any reply. So I thought of posting this as a separate question.
Thanks for your time and attention.