These are both regular functions tautologically: has no poles in and has no poles in . These glue!
Different way?
There is another way to define the above map. Pick an affine open , whence and we obtain a map
This restricts to a map from the generic point corresponding to the map , above. Now for a closed point , we look at the local ring and obtain the following diagram:
Thus, since is proper, there exists a unique map by the evaluative criteria for properness. This map actually extends to an affine neighbourhood of . Now recalling that we have , the complement of consists of finitely many points. Because is separated, if these maps agree on the intersection then they must agree everywhere: they glue to give a unique .
Theorem 1
Let be a non-constant map of non-singular proper curves. Then is finite.
Proof
First, is proper. If is a closed point then is a closed subset of . Since has Krull dimension , the closed subsets of are finite sets of closed points or the whole of . By assumption, is non-constant, so is finite. Zariski’s Main Theorem says that a proper morphism with finite fibres is finite.
Proposition 2
Let be a non-singular curve and . Let and in . Then
Now take local equations (uniformisers) that generated the maximal ideals . As we only have finitely many (closed) points, we can assume that if (by deleting the points we don’t need). We take the open
and therefore and cover . Now on each , we have an isomorphism
for if is open, then the restriction of to , , and
We consider and as subsheaves . We have local equations and on a cover of . But now, will have local equations . Therefore will have local equations , which are local equations for .
If further , then implies that is linearly equivalent to an effective divisor (take ) of . But an effective divisor is a non-negative sum of points. So this can only happen if it is a sum of zero points, i.e., .