Proof. The implication follows from the fact that . For the implication , take . For , take . The implication is immediate.
Let us show that . Note first that an injective continuous map is open and a homeomorphism onto its image. It follows that the implication holds when and are homeomorphic to and .
Consider now the general case. There is a finite subset of containing such that and are homeomorphic to a finite disjoint union of copies of . By the discussion above, the restriction of to a connected component of is open and a homeomorphism onto its image, so the same holds for .
∎