[guided]The proof has a clear arc: Riemann–Roch supplies a $2$-dimensional space of rational functions on $C$ with poles bounded by the canonical divisor $K_C$ of degree $2$; this space gives a morphism $\phi_{K_C}: C \to \mathbb{P}^1_k$; a degree count completes the argument.
**Why $\ell(K_C) = 2$.** Riemann–Roch for $D = K_C$ reads $\ell(K_C) - \ell(K_C - K_C) = \deg K_C - g + 1$. The substitution $K_C - K_C = 0$ gives $\ell(0) = 1$ (since $\mathcal{L}(0) = $ constants $= k$). With $\deg K_C = 2g - 2 = 2$ and $g = 2$, we obtain $\ell(K_C) - 1 = 2 - 2 + 1 = 1$, hence $\ell(K_C) = 2$. Note: $\ell(K_C) = g$ for any smooth projective curve of genus $g$ — this is a standard consequence of Serre duality, which is what the present Riemann–Roch computation reproduces in dimension $1$.
**Why $\phi_{K_C}$ is a morphism, not just a rational map.** A priori, $[f_0 : f_1]$ is undefined at points where both $f_0$ and $f_1$ vanish — base points of the linear system. On a smooth curve, however, every rational map to projective space extends uniquely to a morphism: this is [Rational Maps from Smooth Curves Are Morphisms](/theorems/2172). Concretely, at a putative base point $p$, one factors out the largest power of a uniformiser at $p$ from $(f_0, f_1)$ to obtain coordinates not both vanishing, so the map is defined.
**Why the degree is at most $\deg K_C = 2$.** The degree of $\phi_{K_C}$ is the number of preimages of a generic point of $\mathbb{P}^1_k$, counted with multiplicity. A preimage of $[1 : 0] \in \mathbb{P}^1_k$ is a point $p$ where $f_1/f_0 = 0$, i.e. a zero of the rational function $g = f_1/f_0 \in K(C)^\times$. The divisor of zeros $(g)_0$ has degree at most $\deg K_C = 2$ because the principal divisor $\operatorname{div}(g) = \operatorname{div}(f_1) - \operatorname{div}(f_0)$ has degree $0$, and the polar part $(g)_\infty$ — the divisor of poles — is bounded below by $-K_C - \operatorname{div}(f_0)$ in absolute value... but in fact a cleaner way is to note: for any basis $\{f_0, f_1\}$ of $\mathcal{L}(D)$ giving a base-point-free morphism $\phi: C \to \mathbb{P}^1_k$, the pullback $\phi^*[1:0]$ equals $\operatorname{div}_0(f_1/f_0)$, and this pullback divisor has degree $\deg \phi$. Bounding $\operatorname{div}_0(f_1/f_0) \leq \operatorname{div}(f_1) + K_C$ — an effective divisor of degree $\leq \deg K_C$ — gives $\deg \phi_{K_C} \leq \deg K_C = 2$.
**Why the degree is at least $2$.** If $\deg \phi_{K_C} = 1$, then $\phi_{K_C}: C \to \mathbb{P}^1_k$ would be an isomorphism between smooth projective curves (degree $1$ between smooth projective curves forces birationality, and birational smooth projective curves are isomorphic). But $\mathbb{P}^1_k$ has genus $0$ while $C$ has genus $2$ by hypothesis — a contradiction. Hence $\deg \phi_{K_C} \geq 2$, and combined with the upper bound this gives $\deg \phi_{K_C} = 2$ exactly.
**The deeper picture.** Every genus-$g$ curve $C$ has a canonical map $\phi_{K_C}: C \to \mathbb{P}^{g-1}_k$. For $g = 0$, the canonical divisor has negative degree, so the canonical map does not exist. For $g = 1$, the canonical divisor is trivial ($\deg K_C = 0$, $\ell(K_C) = 1$), so the canonical map collapses to a point. For $g = 2$, the canonical map lands in $\mathbb{P}^1_k$ and is necessarily a degree-$2$ cover — every genus-$2$ curve is hyperelliptic. For $g \geq 3$, the canonical map lands in $\mathbb{P}^{g-1}_k$ and is *generically an embedding* — failing to be an embedding precisely when the curve is hyperelliptic. This dichotomy is the content of the [Canonical Embedding Theorem](/theorems/2197). The present theorem establishes the basic phenomenon at $g = 2$: every genus-$2$ curve admits a $2$-to-$1$ cover of $\mathbb{P}^1_k$.[/guided]