Midpoint convexity. A set $C$ is midpoint convex if whenever two points $a, b$ are in $C$, the average or midpoint $(a + b)/2$ is in $C$. Prove that if $C$ is closed and midpoint convex, then $C$ is convex.
Convex set means that $\forall x_1, x_2 \in C, \theta x_1+(1-\theta)x_2 \in C \forall \theta \in[0,1]$
I know $$ \left(x_1+x_2\right)/2 \in C \implies \dfrac{x_1+\dfrac{x_1+x_2}{2}}{2}= \dfrac{x_1}{2}+\dfrac{x_1}{4}+\dfrac{x_2}{4} = \dfrac{3}{4}{x_1} + \dfrac{1}{4}{x_2} \in C $$ Applying this k times I get the following: $$ (1-2^{-k})x_1+2^{-k}x_2=(1-\theta_k)x_1+\theta_k x_2 \in C $$
but I have showed it only for $\theta$ values that takes the form of $2^{-k}$ where $k \in N$
What should I do next?