Are metric segments convex

convexity-spacesgeneral-topologymetric-spacesreal-analysis

For a metric space $(X,d)$ and points $x,y \in X$ we define the metric segment between them as the following set:

$\left [ x,y \right ] = \left \{ z \in X : d(x,z)+d(z,y)=d(x,y)\right \}$

Can we say that metric segments are convex? That is, for an arbitrary metric space $(X,d)$ and points $x,y,u,v \in X$, does $u,v \in \left [ x,y \right ]$ imply $\left [ u,v \right ] \subseteq \left [ x,y \right ] $?

Best Answer

No. Here's my example:

Let $a=(0,0),\ b=(1,0),\ c=(1,1),\ d=(0,1)$. Let $X$ be a union of segments $ab,bc,cd,da,bd$. Distance between two points is an euclidean length of a shortest path between them, for example $\rho(a,c)=2$. Then $b,d\in [a,c]$ and $(0.5,0.5)\in [b,d]$ but $(0.5,0.5)\notin [a,c]$.

Edit (after the request on the comment):

The fact that it's a metric: Intrinsic metric.

The example of the metric on the whole $\Bbb R^2$. Consider the infinite countryside $\Bbb R^2$ with a mud in the rhomb abcd, where $a=(1,0),\ b=(0,1),\ c=(-1,0),\ d=(0,-1)$. In mud you go much slower (e.g. five times slower) then on the grass (outside mud). The distance is given by the time you have to get from one place to another (infimum over all paths joining two points). Consider two points: $e=(0,-5)$, $f=(0,5)$. The shortest paths go through points $a$ or $c$ and therefore $[e,f]$ is a union of line segments $ea,af,ec,cf$. It's far from being convex.