In Sean Carroll's Spacetime and Geometry, an introductory section on manifolds contains the following:
A chart or coordinate system consists of a subset $U$ of a set $M$ along with a one-to-one map $\phi : U \to \mathbf R^n$, such that the image $\phi(U)$ is open in $\mathbf R^n$, [...]. (Any map is onto its image, so the map $\phi : U \to \phi(U)$ is invertible if it is one-to-one.) We then can say that $U$ is an open set in $M$. A $C^\infty$ atlas is an indexed collection of charts $\{(U_\alpha, \phi_\alpha)\}$ that satisfies two conditions:
- The union of the $U_\alpha$ is equal to $M$; that is, the $U_\alpha$ cover $M$.
- The charts are smoothly sewn together. More precisely, if two charts overlap, $U_\alpha \cap U_\beta \ne \emptyset$, then the map $(\phi_\alpha \circ \phi_\beta^{-1})$ takes points in $\phi_\beta(U_\alpha \cup U_\beta) \subset \mathbf R^n$ onto an open set $\phi_\alpha(U_\alpha \cup U_\beta) \subset \mathbf R^n$, and all of these maps must be $C^\infty$ where they are defined. [...]
[...] a $C^\infty$ $n$-dimensional manifold is simply a set $M$ along with a maximal atlas, one that contains every possible compatible chart.
On a first reading, the statement
We then can say that $U$ is an open set in $M$
seems to say that $\phi$ being an invertible function from $U$ to the open subset $\phi(U) \subset \mathbf R^n$ implies that $U$ is an open subset of $M$. This would certainly be the case if $M$ was a metric space and $\phi$ was continuous (Rudin, Theorem 4.8). But, looking closer, it was never established that $\phi$ is continuous, nor that $M$ is a metric space.
Now, I am not very familiar with manifolds, but could it be that the author actually means that the notion of an open subset of $M$ is defined through this construction? I suppose we could use $\phi$ to define a distance function $d: U \to \mathbf R$, $$d(p, q) = |\phi(p) - \phi(q)|,$$ but this would only make $U$, and not $M$, into a metric space. But maybe the idea is something similar to this?
Looking at Wikipedia, it seems like maybe the correct idea is instead to use the sets $U_\alpha$ to define a topology $\tau$ on $M$, and then any member of $\tau$ is open by definition, which seems quite different from the notion of openness for metric spaces. In that case it seems Carroll calls $U$ open a bit prematurely, but maybe this is still what he means?
So, what notion of openness is Carroll actually referring to?