My weaknesses with commutative algebra are really slowing down my progress through Hartshorne. I hope someone can help me understand some statements in the proof of the proposition below.
Prop 6.8: Let $X$ be a complete nonsingular curve over $k$, let $Y$ be any curve over $k$, and let $f:X\to Y$ be a morphism. Then either (1) $f(X)=$ a point, or (2) $f(X)=Y$. In case (2), $K(X)$ is a finite extension field of $K(Y)$, $f$ is a finite morphism, and $Y$ is also complete.
I am confused about two statements in the proof, when we have case (2): First, how do we know that $K(X)$ and $K(Y)$ finitely generated extension fields of $k$? Second, why is it clear that $U=f^{-1}V$?
Also, Hartshorne then goes on to define the degree of any finite morphism $f:X\to Y$ of curves as the degree of the field extension $[K(X):K(Y)]$. But how do we know that $K(X)$ contains $K(Y)$?
It is written (pretty clearly, to my surprise) in the book: the given morphism is dominant and thus $\;K(Y)\subset K(X)\;$ , and since both fields are simple, finite transcendental extensions of $\;k\;$ of trans. degree one, $\;K(X)/K(Y)\;$is algebraic.
This is usually studied in a course in algebraic structures: fields extensions, Galois theory and etc.