I was just reading through a proof about the maximum possible cardinality of a separable Hausdorff space, but I'm stuck on one part of it. The essence of the proof is copied and pasted below, and they say "it's easy to see that $f$ is injective." I'm having trouble proving that $f$ is injective, probably because I'm new at topology.
Let $X$ be a separable Hausdorff space and let $A$ be a countable dense subset of $X$. Define a function $f:X\to\mathcal P(\mathcal P(A))$ by setting $f(x)=\{B\subseteq A:x\in\overline{B}\}$. Using the fact that $X$ is Hausdorff, it's easy to see that $f$ is injective, whence $|X|\le|\mathcal P(\mathcal P(A))|\le2^{2^{\aleph_0}}$.
My proof so far is as follows: We prove that $f$ is injective by contradiction. Suppose $f$ is not injective; that is, suppose $\exists x_1, x_2 \in X$ with $x_1 \neq x_2$ and $f(x_1) = f(x_2).$
$X$ is Hausdorff $\implies \exists U_1, U_2$ open in $X$ such that $x_1 \in U_1, x_2 \in U_2$, and $U_1 \cap U_2 = \varnothing$. Since $f(x_1) = f(x_2),$ then if $B \subseteq A$, $x_1 \in \overline B \iff x_2 \in \overline B$. We now consider 3 cases; note that cases 1 and 2 are not necessarily mutually exclusive.
Case 1: $\exists B\subseteq A: x_1 \in B$. Then consider $B_1 = \{x_1\} \subseteq A.$ $x_2 \notin B_1$ but $x_2 \in \overline{B_1}$, so $x_2$ is a limit point of $B_1$. But $U_2$ is an open set containing $x_2$ with $(U_2 \setminus \{x_2\}) \cap B_1 = \varnothing$, a contradiction.
Case 2: $\exists B \subseteq A: x_2 \in B$. Then consider $B_2 = \{x_2\} \subseteq A.$ $x_1 \notin B_2$ but $x_1 \in \overline{B_2}$, so $x_1$ is a limit point of $B_2$. But $U_1$ is an open set containing $x_1$ with $(U_1 \setminus \{x_1\}) \cap B_2 = \varnothing$, a contradiction.
Case 3: $\forall B \subseteq A$, $x_1 \notin B$ and $x_2 \notin B$. Let $B_0 \in f(x_1)$, then $x_1$ and $x_2$ must both be limit points of $B_0$....but now I'm stuck here, and not sure how to arrive at a contradiction. Please help!