If $(X,\tau_X)$ and $(Y,\tau_Y)$ are topological spaces and $\phi : X \to Y$ is a homeomorphisms is I'm trying to prove/disprove that connected sets are mapped into connected sets (which I think is true).
My attempt is:
Suppose $A \subset X$ is a connected set, which means it cannot be partitioned into two disjoint non empty subsets in $X$, suppose $\phi(A) = B$ is disconnected instead, this means that $\mathcal{O}_Y^1 \cup \mathcal{O}_Y^2 = B = \phi(A)$, where $\mathcal{O}_Y^1, \mathcal{O}_Y^2 \in \tau_Y$ and $\mathcal{O}_Y^1 \cap \mathcal{O}_Y^2 = \emptyset$ (and non empty as well). But this implies $$A = \phi^{-1}(\mathcal{O}_Y^1 \cup \mathcal{O}_Y^2) = \phi^{-1}(\mathcal{O}_Y^1) \cup \phi^{-1}(\mathcal{O}_Y^2) = \mathcal{O}_X^1 \cup \mathcal{O}_X^2 $$
where $\mathcal{O}_X^1,\mathcal{O}_X^2 \in \tau_X$ are open disjoint in $X$, which means $A$ would be disconnected. The sets are not empty because $\mathcal{O}_Y^1, \mathcal{O}_Y^2$ are assumed not empty, so they have non empty pre-images.
Is my proof correct?
No, it is not correct (although it can be corrected):