I have a quick question about an old question on the website want to prove
Let $A, B$ be two disjoint closed subsets of a certain metric space $(M,d)$.
- Show that there exist disjoint open subsets $U, V \subseteq M$ such that $A\subseteq U, B\subseteq V$.
In the answer, the author claims
Let $U = \{x | d(x,A) < d(x,B)\},V = \{x|d(x, A) > d(x, B)\}$. Since $d(x, A), d(x, B)$ are continuous functions, U,V are open sets
I am trying to figure out why the continuity of the distance functions tells us that these sets are open.
I tried considering complements but to no avail. Then I tried open balls but I quickly got worried for things with bad regularity.
Question: Could someone elaborate on how the sets $U$ and $V$ are open?