Prove that a set is closed iff it contains all its accumulation points Prove that a set is closed iff it contains all its accumulation points.
I have no clue on how to approach the above problem. At first I would appreciate hints on how to get started in either direction $\Leftarrow$ or $\Rightarrow$.
This is how we have def. an accumulation point:

A point $x \in X$ is called an accumulation point of $A \subset X$ if for every $U \in U_x$ there is $y$ s.t $y \not = x$ with $y \in U \cap A$. Where $U_x =\{ U \in X: U \text{ neighbour of } x \in X\}$

We have def. a closed set to be the complement of an open set.

I will provide a more general proof for a set $S \subset \mathbb{R}^n $. That is, we prove that 
$\mathbf{Statement:}$ if $S \subset \mathbb{R}^n, S$ is closed iff it contains all its limit (a.k.a. accumulation) points.
$\mathbf{Proof:}$
($\Rightarrow $) Consider that $S$ is closed, that is $S \cup \delta S = S $; consider a limit point $x$ in $S$. THere exists a sequence $\{x_n\} \in S $ such that its limit point is $x$. Suppose by contradiction that $x \notin S$; therefore for any open ball $B_r(x)$ and every $n>N$ with $N$ sufficiently large, $ x_n \in B_r(x) \cap S \neq \emptyset$ and $B_r(x) \cap S^c \neq \emptyset$; so that $x \in \delta S$ but $x \notin S$ which is a contradiction.
($\Leftarrow $) Assume now that the set of all limit points in contained in $S$ and prove that $S=\delta S \cup S$. Take $x \in \delta S$; therefore $\forall\ n \in \mathbb{N}, \exists\ x_n $ such that $x_n \in B_\frac{1}{n} \cap S$. Consequently, either $x$ is a limit point for $S$ or $x \in S$. 
This completes the proof.
$Q.E.D.$
