Yesterday, I asked the question: Prove that if $A,B$ are closed then, $ \exists\;U,V$ open sets such that $U\cap V= \emptyset$.
Here is the correct question: prove that if $A,B$ are closed sets in a metric space such that $A\cap B= \emptyset$, there exists $U,V$ open sets such that $A\subset U$, $B\subset V$, and $U\cap V= \emptyset$.
I am thinking of going by contradiction, that is: $\forall\; U,V$ open sets such that $A\subset U$, $B\subset V$, and $U\cap V\neq \emptyset$.
Let $ U,V$ open. Then, $\exists\;r_1,r_2$ such that $B(x,r_1)\subset U$ and $B(x,r_2)\subset V.$ I got stuck here!
I'm thinking of using the properties of $T^4-$space but I can't find out a proof! Any solution or reference related to metric spaces?
Sets $A, B$ are called completely separated iff there are disjoint open sets $U,V$ with $A\subset U$ and $B\subset V.$ The definition of a normal ($T_4$) space is a $T_1$ space in which every disjoint pair of closed sets is completely separated. It appears you are trying to prove that a metric space is a normal space.
Let $(X,d)$ be a metric space and let $A,B$ be a disjoint pair of closed subsets of $X.$ For each $a\in A,$ let $r_a>0$ such that $B (a,r_a)\cap B=\emptyset.$ For each $b\in B$ let $s_b>0$ such that $B(b,s_b)\cap A=\emptyset.$
Let $U=\cup_{a\in A}B(a,\frac {1}{2}r_a).$ Let $V=\cup_{b\in B}B(b,\frac {1}{2}s_b).$
The reason $U\cap V=\emptyset$ is that if we suppose $c\in U\cap V$ then there exist $a\in A$ and $b\in B$ such that $d(c,a)<\frac{1}{2}r_a$ and $d(c,b)<\frac {1}{2}s_b.$ But by the def'n of $r_a$ and of $s_b,$ and by the triangle inequality, $$r_a\leq d(a,b)\leq d(a,c)+d(c,b)<\frac {1}{2}r_a+\frac {1}{2}s_b$$
$$s_b\leq d(a,b)\leq d(a,c)+d(c,b)<\frac {1}{2}r_a+\frac {1}{2}s_b.$$ Adding the far left and far right expressions in the two lines above gives $r_a+s_b<r_a+s_b,$ an absurdity. So $c\in U\cap V$ cannot exist.
We can also do this last part by noting that since $d(a,b)\geq r_a$ and $d(a,b)\geq s_b,$ we have $d(a,b)\geq \max (r_a,s_b).$ But $d(a,b)\leq d(a,c)+d(c,b)<(r_a+s_b)/2.$ It would be absurd for real numbers $r,s$ that $\max(r,s)$ is $less$ than their average $(r+s)/2.$