Proof (hyperelliptic iff degree 2 effective divisor with l(D)=2 exists)

Hyperelliptic $\implies$ $D$ exists

If there is a morphism $ϕ: V\to \mathbb{P}^1$ of degree 2, then $D := ϕ^\ast(\infty) \equiv \sum_{P\in ϕ\inv(\infty)} e_P \cdot P$ is an effective divisor of degree 2. Note $1$ and $ϕ^\ast(x_1/x_0)$ have poles bounded by $D$ (since $ν_P(ϕ^\ast(x_1/x_0)) = e_Pν_{ϕ(P)}(x_1/x_0)$), so $l(D)\geq 2$.

On the other hand, say $D = P + Q$. $l(P) = 1$, because there does not exist any non-constant degree 1 morphism (i.e. isomorphism) $V\to \mathbb{P}^1$ because their genera are different, so $l(D) \leq l(P)+1 = 2$. Hence $l(D) = 2$.

$D$ exists $\implies$ hyperelliptic

Since $D$ is effective, $1\in L(D)$, so $L(D)$ is spanned by $\set{1,f}$ for some non-constant $f\in k(V)$. $f$ cannot has degree 1, so $f^\ast(\infty)$ cannot have degree 1. Therefore $f^\ast(\infty) = D$ and $f$ is a degree 2 morphism $V\to \mathbb{P}^1$.