Suppose $(X,d)$ is compact and we have a mapping $T:X \rightarrow X$ such that $d(Tx,Ty)<d(x,y)$ for every $x,y\in X$ with $x\neq y$. The question is that to show $T$ has a unique fixed point.
Our professor gave us the following hint: Consider $inf d(x,Tx)$.
What I tried:
I defined $f: X\rightarrow \mathbb{R}$ such that $f(x)=d(x,Tx)$. Since $X$ is compact, it attains its infimum. But, I could not show that the infimum of this function must be zero. Can you help me to verify this?
Thanks for any help.