Let $X$ be a convex set and $f:X\mapsto \mathbb R$ be a continously differentiable convex function and $x_0$ be an element of $X$ such that $$\forall x\in X:f(x_0)\le f(x).$$
Let $y_0\in Y\subset X$ ($Y$ is not necessarily connected) satisfy $$\forall y\in Y:\|x_0-y_0\|\le\|x_o-y\|.$$
Is it true that $\forall y\in Y:f(y_0)\le f(y)$ ?