If $S_1, S_2 \subset \Bbb R^3$ are two smooth surfaces, then what is the formal definition of a smooth map from $S_1$ to $S_2$?
I am studying from Pressley's EDG, and the definition is given only in the case where each of $S_1$ and $S_2$ has an atlas containing a single surface patch. Namely, if $\sigma_i$ denotes the surface patch corresponding to $S_i$, $f$ is called smooth if $\sigma_2 ^{-1} \circ f \circ \sigma_1$ is. How does this definition generalize? I know that it has to do with the property of smoothness, as given in the definition, being invariant under reparameterization of patches, but I do not understand how.
Precisely, I am looking for a completely formal definition of a smooth function $f:S_1 \to S_2$ where $S_1$ and $S_2$ do not necessarily have a singleton atlas.