I was trying to find out how to construct a $\mathcal C^\infty$ curve that joins two arbitrary line segments. My idea was to use bump functions and the likes, but for that I had to make the line segments lie at $y = 0$ and $y = 1$. Of course, the transformation that transported the segments would have to be a diffeomorphism (at least of some set containing the segments). This I readily found to be equivalent to prescribing the image of four points under some diffeomorphism. A couple ways of doing this occurred to me, but I encountered this question in the process.
What restrictions are there on the cardinal of a set A\subset\Bbb R^2 such that there exists a (auto) diffeomorphism f with f(A) = B for some fixed $B\subset \Bbb R^2? (Obviously #B = # A)
In light of developments, I'll ask for which homeomorphic $A,B\subset\Bbb R^2$ is there a diffeomorphism of $\Bbb R^2$ (or an open set containing $A$,$B$) sending $A$ to $B$?
If $\#A<\infty$ there always exists such an $f$, constructed by appropriate polynomials. (e.g. $f(x,y) = (ax^2+bxy+cy^2,a'x^2+b'xy+c'y^2)$ allows for six points, and so on.
My intuitive guess is that we can do the same for a countable set, but I couldn't justify it myself. For uncountable it seems obvious that the answer is negative in general. Along with an answer for the countable case, I'd like to know if possible of some other examples, possibly more elegant, for the finite case.
Also optional: how does the answer to this question (in a manifold) relate to the geometry of the manifold?