Let $C$ be a closed subset of $\mathbb R^n$ such that $$\forall x,y \in C, (x,y)\cap C \neq \emptyset$$ where $(x,y)=\{(1-t)x+ty, t\in (0,1)\}$
Prove that C is convex
A quick drawing shows that a concave set cannot satisfy this property (take $2$ points on the boundary such that the line segment between them doesn't intersect $C$).
In order to prove that $C$ is convex, I considered two points $x$,$y$, an arbitrary $\lambda\in (0,1)$ and I attempted to prove that $(1-\lambda)x+\lambda y\in C$. Since $C$ is closed it is enough to build a sequence $t_n$ such that $\forall n, (1-t_n)x+t_n y\in C $ and $t_n \to \lambda $. To achieve this, a natural path is to use some sort of dichotomy: there's some $t_1$ such that $(1-t_1)x+t_1y \in C$. If $t_1 \geq \lambda$, apply the property again with points $x$ and $(1-t_1)x+t_1y$, otherwise apply the property with points $y$ and $(1-t_1)x+t_1y$. How can I prove that $t_n \to \lambda$ ?