I am given the following problem:
Show that if a metric space (X,d) is compact (meaning X is compact with respect to the metric d), then there exist points a,b ∈ X such that d(a,b) = sup{d(x,y) : x,y in X}. (Hint: You’ll need to use the fact that (X,d) is compact twice. In particular, this means that every compact metric space has an upper bound on how far away two points can be)
However, I am not sure if the problem has left out $X \subseteq \mathbb{R}$. Does the statement hold in a general metric space?
Secondly, how might one go about proving this?