I am studying Real Analysis with the book "Real mathematical analysis" and it has been a very challenging (but not impossible) read for me so far. However, some of the exercises are pretty brutal, so one I have been stuck on is (page.129/exercise 47)
Suppose $A,B\subseteq\mathbb{R}^2$
(a) If $A$ and $B$ are homeomorphic, are their complements homeomorphic
(b) If $A$ and $B$ are homeomorphic and compact, are their complements homeomorphic
(c) If $A$ and $B$ are homeomorphic, compact and connected, are their complements homeomorphic
As the conditions get progressively more restrictive, I am very sure, that only the last one has a chance of being true and indeed, it is. For the first one, I simply used the fact, that $(0,1)$ is homeomorphic to $\mathbb{R}$, but their complements are not homeomorphic, and set $A=(0,1)\times \{0\}$ and $B=\mathbb{R}\times\{0\}$, where the complement of $A$ is connected, while the complement of $B$ is not. However, with the added restriction of compactness, I can't disconnect $\mathbb{R}^2$, as that would require an unbounded set, and after 2 hours of banging my head against the wall, I still can't find a counterexample and so I want to ask here for one. I can probably wager, that both $A$ and $B$ are disconnected, and that the counterexample will arise from the complement of $A$ being disconnected, while the complement of $B$ will be connected, as that has been the only tool mentioned so far for distinguishing non homeomorphic sets.