# Real Analysis Closed and Bounded Set Question

Suppose K is a nonempty closed and bounded subset of a metric space X and x $\in$ X. Show the following hypothesis fails: There is a p $\in$ K such that, for all other q $\in$ K, d(p,x) $\leq$ d(q,x). I know this hypothesis holds if K is compact, so clearly the counterexample must not come from $\mathbb{R}$ because of the Heine-Borel theorem. Much appreciated!

• You could try $\mathbb{R}\setminus\{0\}$. – Daniel Fischer Oct 30 '13 at 13:32
• $\mathbb{R}$ \ {0} isn't closed though since singletons are closed, so the complement is open. :/ – Jimmy Xiao Oct 30 '13 at 17:11
• I meant just what user103254 wrote ;) – Daniel Fischer Oct 30 '13 at 21:56

## 1 Answer

I think DF suggested $\mathbb R\setminus \{0\}$ as a candidate for $X$. It is a metric space with the metric induced from $\mathbb R$.

With this $X$, try $x=-1$ and $K=\{x\in X: 0\le x\le 1\}$ (which is a closed subset of $X$).