So I want to prove: If two manifolds $M$ and $N$ are homeomorphic then $dim(M) = m = n = dim(N)$.
My idea was to use the property of the manifolds that they are locally homeomorphic to the $\mathbb{R}^m$ and $\mathbb{R}^n$ respectively. So I want to take an open subset $U \subset M$ which is homeomorphic to the $\mathbb{R}^m$, but my problem is how do I know that the image $f(U) = V \subset N$ is homeomorphic to the $\mathbb{R}^n$. I probably don't, but do we even have the existence of such $U$ and $V$? If so, why? Is this even the right approach to the proof?
Let $M,N$ be manifolds with dimension m, n respectively. Suppose $\Phi:M \to N$ is homeomorphism. Let $\psi_1: M \supset D \to U \subset \mathbb R^m$ be a map (that is homeomorphism of some open subset of $M$ and open subset of Euclidean space). $U$ is open so we can choose open some ball in it and restrict $\psi_1$ to subset that is mapped onto this ball. So without loss of generality you can assume some subset of $M$ is homeomorphic to open ball in $\mathbb R^m$. Analogously we construct homeomorphism $\psi _2$ from open subset of $N$ to open ball in $\mathbb R^n$. Therefore $\psi_1 \circ \Phi \circ \psi_2 ^{-1}$ maps ball in $\mathbb R^n$ to ball in $\mathbb R^m$. That is what I meant before editting. Open ball in $\mathbb R ^n$ is homeomorphic to $\mathbb R^n$ so final result is that $\mathbb R^n $ and $\mathbb R^m$ are homeomorphic. I assume you know that this implies $n=m$.