I was working on a few proofs about topological equivalence, and I realized that things would be a lot easier if I could form some shortcut that exempted me from proving the continuity of both a function mapping two topological spaces and its inverse. So I conjectured the following, and attempted to prove it:
If a function $f: A\to B$ is bijective and continuous, then its inverse $f^{-1}:B\to A$ is also continuous.
However, that was false, which surprised me. I found a counterexample at this previously asked math SE question. In the given counterexample, the set $A$ from which $f$ was mapping was split into two separate intervals.
My question is this: under what conditions is my conjecture true? What added property must $f$, $A$, and $B$ have for continuity to imply bicontinuity? My intuition tells me that most functions have this property, but I don't know how to tell when.