How can I prove that $d(A,B)=d(A,\bar{B})=d(\bar{A},\bar{B})$
$\bar{A}$ is the set of all accumulation points $A$
If $d(A,B)=\inf\{ d(a,b)$ with $a\in A , b\in B\}=\alpha$
$d(A,\bar{B})=\inf\{ d(a,b)$ with $a\in A , b\in \bar{B}\}=\beta$
$d(\bar{A},\bar{B})=\inf\{ d(a,b)$ with $a\in \bar{A} , b\in \bar{B}\}=\gamma$
I proved that $\alpha \geq \beta \geq \gamma$
For every $c>0$, there exists $x \in A, y\in \bar B$ such that $d(x,y)\leq d(A,\bar B)+c/2$. There exists $y'\in B$ such that $d(y',y)<c/2$, $d(A,B)\leq d(x,y')\leq d(x,y)+d(y,y')\leq d(A,\bar B)+c/2+c/2$. This implies that $d(A,B)\leq d(A,\bar B)$ and $d(A,B)=d(A,\bar B)$ from the equality that you have proven.
$d(A,B)=d(A,\bar B)$ implies that $d(B,\bar A)=d(B,A)$ and $d(\bar A,B)=d(\bar A,\bar B)$, the result follows from the fact that $d(A,B)=d(B,A)$.