I have been seing a lot of videos about topology where they describe homeomorphism as the action of "squishing and moving without cutting" or things along this line.
I thought of a way to formalize it and I came up with this:
Let $A,B \subseteq \mathbb R^n$ thus they are homeomorphic if there exist a continous function $H:A×I \to \mathbb R^n$ such that:
For all $a \in A$: $H(a,0)=a$
For all $t \in [0,1]$ the function $H|_{A×{t}}$ is injective(because when we squish and move in the real world no two points of can be in the same place)
$H(A×\{1\})=B$
I haven't been able to prove or disprove this in general(the injective assumption ruined my attempts to disprove it).
I was able to prove it under the assumption that $A$ is open. Indeed the function $f:A \to \mathbb R^n$ defined by $f(a)=H(a,1)$ is an injective continous map from an open subset of $\mathbb R^n$ to $\mathbb R^n$ and thus from the invarience of domain theorem the sets $A,g(A)=B$ are homeomorphic as we want. But this doesn't realy use most of the assumtion of $H$.
Can we prove this at least for closed sets or simply connected sets?
If this is not true, Is there a way to make this interpetation formal such that it will work at least for open and closed sets?