We take a metric space (E,d) and consider two closed subsets A,B having a distance d(A,B) equal to zero. We raise the following question: can A and B be disjoint – A∩B=∅?
If A or B is compact, let’s say A, A∩B cannot be empty. The proof is quite simple. As d(A,B)=0, for all n∈N we can pick up (an,bn)∈A×B with d(an,bn)≤1n+1. As A is compact, we can find a subsequence of (an)n∈N converging to a point a∈A. Even if it means renumbering the subsequence, we can suppose that limn→+∞an=a. As d(a,bn)≤d(a,an)+d(an,bn) and both terms of the right hand side of the inequality converge to zero, (bn)n∈N also converges to a. As B is supposed to be closed, we have a∈B and finally a∈A∩B.
So we have to turn ourselves to the case where A and B are not compact to find a counterexample. If E=Rn with n≥1 that means A and B unbounded.
An example in the real line
Take A={an=n;n∈N} and B={bm=m+1m+2;m∈N}. A and B are disjoint as if n=m+1m+2 and n=m we get the contradiction 1m+2=0 while if n≠m we get the contradiction 1≤|n−m|=1m+2<1. However d(A,B)=0 because limn→+∞d(an−bn)=0.
An example in the real plane
Take A={(x,y);y≥1/x>0} and B={(x,0);x≥0}.
A and B are closed subsets of the real plane and their intersection is empty. The proof is left to the reader.