How can one prove that:
Given that $A$ is a closed subset of $\mathbb{R}^{n}$, $A$ is convex $\iff \frac{1}{2 }(x+y) \in A$, $\forall x,y \in A.$
I know $\frac{1}{2}(x+y)$ is a extreme point, but I 'm not sure how to link it with the property of closed set. Thank you in advance.