Let $(X, d)$ be a compact metric space, and suppose $f : X → X$ satisfies $$d(f(x), f(y)) < d(x, y)$$ for all $x \neq y \in X$. Show that f has a unique fixed point.
All I've gotten it so far is that we need to somehow use another function $g(x)=(x,f(x))$.
Thanks