Let $X$ and $Y$ be metric spaces and $X$ and $Y$ are homeomorphic under $f:X\to Y$, then for every $A\subset X$, $X-A$ and $Y-f(A)$ are homeomorphic.
It is quite intuitive but how can we write the proof rigorously? How can we construct the new homeomorphism $g:A-X\to Y-f(A)$?
Could anyone please give some hints? I could not find any such theorem in the internet.
Thanks!