I am studying the rigorous definition of manifolds and diffeomorphisms, and am confused about the following. Intuition would suggest a square is not diffeomorphic to a circle because the square has sharp corners which are not differentiable, whereas the circle does not. (I have also heard people make statements along these lines.)
On the other hand, I am free to equip the square with charts that make it smooth. In fact, any reasonable way I can imagine to cover the square with charts leads to smooth transition maps, just like for the circle. The charts have no knowledge of the square's "corners."
So is the square in fact diffeomorphic to the circle, and if so, what do people mean when they talk about shapes with "sharp corners" not being smooth? (To be clear, I'm talking about the boundaries of these shapes as 1D manifolds.)
EDIT: Here is my atlas for the square, consisting of two charts, that I claim is a $C^\infty$-atlas.
Let $Q$ denote the unit square in $\mathbb R^2$, i.e., $Q=\{(x,0)\cup(1,x)\cup(x,1)\cup(0,x)|0\leq x\leq1]\}$ (ordered pairs denote points in $\mathbb R^2$, not intervals). Equip this set with the topology inherited from the standard topology on $\mathbb R^2$.
For simplicity, let $A=Q\backslash(0,0), B=Q\backslash(0,1)$.
Here are my two charts:
$(A,\phi_A:A\to\mathbb R)$
$(x,0)\mapsto x$
$(1,x)\mapsto 1+x$
$(x,1)\mapsto 3-x)$
$(0,x)\mapsto 4-x)$
$\,$
$(B,\phi_B:B\to\mathbb R)$
$(1,x)\mapsto x$
$(x,1)\mapsto 2-x)$
$(0,x)\mapsto 3-x)$
$(x,0)\mapsto 3+x$
I'd rather not go through the painstaking task of writing out the chart transition maps from $A$ to $B$ and vice versa, but I think it's straightforward to see that they are $C^\infty$ maps from $\mathbb R$ to $\mathbb R$.
Using your notation, you're right that you can define an atlas for $Q$ that makes it diffeomorphic to $S^1$ with the usual smooth structure. However, there isn't a smooth bijective map $S^1 \rightarrow Q \subset \mathbb{R}^2$ since the ambient space determines whether a map is smooth or not. In fact, a smooth manifold is just a Hausdorff topological space together with a smooth atlas, so ignoring the rest of $\mathbb{R}^2$ allows you to give it different smooth structures. Some textbooks emphasize this with notation like $(M, \{\phi_i\}_{i \in I})$. Hope this helps.