Prove that $x \in \mathbb{R}$ is a limit point of a set $A \subset \mathbb{R}$ if and only if $d(x, A \setminus {x})=0$.
I think I have it right but I would like to have it checked.
We assume that $x$ is a limit point of the set $A$. Then we will have every neighbourhood $(x-r,x+r)$ where $r$ is the radius and is arbitrary intersects the set $A$, so we can phrase as $\forall r > 0 a \in A$ and $x \ne a$ such that $d(a,x)< r$. Now, $$\inf\{d(a,x) \text{ where } a \in A \text{ and } a \neq x\}=0. $$ Essentially letting $r$ become very small and close to $0$ to make $d(a,x)$ become $0$. Therefore, $d(x,A\setminus\{x\})=0$.
Now, we assume that $d(x,A\setminus\{x\})=0$. Because $d(x,A\setminus\{x\}) = \inf\{d(a,x) \text{ where } a \in A \text{ and } a \ne x\}$, we will have $$ \inf\{d(a,x) \text{ where } a \in A \text{ and } a \ne x\} =0. $$ Now, forall $r>0$ $a \in A$ and $x \ne a$ such that $d(a,x)< r$ which means every neighbourhood of $x$ contains a point of $A$ that is different from $x$. Therefore, $x$ is a limit point of the set $A$.