Here, I'm defining $d(x,K) = \inf_{z\in K} d(x,z)$. Since $d$ is continuous and $K$ compact, them there is a point $z\in K$ such that $d(x,K) = d(x,z)$. I know that if $(X,d)$ have the structure of a Length Space with $d$ intrinsic to the length functional, then we can easily show that $z \in \partial K$. My question is: if $(X,d)$ have no such structure, can this be false? Is it possible to have an interior point $z \in K$ that is the minimum?
I'm more interested in the case of a closed ball in $X$ that is compact by hypothesis. Is it possible to construct a compact closed ball in which this happens?
Thank you very much.