Let $(X,d)$ be a compact metric space and let $f : X → X$ be a function with the property that $d( f (x), f (y)) < d(x, y)$ whenever $x \neq y$. Show that $f$ has a fixed point, that is, there exists $x_0$ such that $f (x_0) = x_0$. (Hint: consider the function $g(x) = d(x, f (x))$ and argue that it attains its minimum and the minimum is 0)
Thank you all.