[step:Compute the length of a nonzero degree-$m$ divisor on $\mathbb P_k^1$]
We prove the standard length computation needed in this setting. Let $G\in k[s,t]$ be a nonzero homogeneous polynomial of degree $m$. Since $k$ is algebraically closed, $G$ factors as
\begin{align*}
G=c\ell_1^{e_1}\cdots \ell_r^{e_r},
\end{align*}
where $c\in k^\times$, where $\ell_1,\dots,\ell_r\in k[s,t]$ are pairwise non-proportional nonzero linear forms, where $e_1,\dots,e_r\in \mathbb N$, and where
\begin{align*}
e_1+\cdots+e_r=m.
\end{align*}
For each $1\le i\le r$, let
\begin{align*}
q_i:=V_+(\ell_i)\in \mathbb P_k^1
\end{align*}
be the point cut out by $\ell_i$.
Let $D:=\operatorname{Proj}(k[s,t]/(G))$. The support of $D$ is the finite set $\{q_1,\dots,q_r\}$. Fix $i$. In the local ring $\mathcal O_{\mathbb P_k^1,q_i}$, the form $\ell_i$ is a local parameter up to multiplication by a unit, while each $\ell_j$ with $j\ne i$ is a unit because $\ell_j(q_i)\ne 0$. Therefore
\begin{align*}
\mathcal O_{D,q_i}\cong \mathcal O_{\mathbb P_k^1,q_i}/(\ell_i^{e_i}).
\end{align*}
Choosing an affine coordinate $u_i$ at $q_i$ for which $\ell_i$ is a unit multiple of $u_i$, this local Artin ring is isomorphic to
\begin{align*}
k[u_i]_{(u_i)}/(u_i^{e_i}).
\end{align*}
Its $k$-basis is represented by
\begin{align*}
1,u_i,\dots,u_i^{e_i-1},
\end{align*}
so
\begin{align*}
\operatorname{length}_{\mathcal O_{\mathbb P_k^1,q_i}}(\mathcal O_{D,q_i})=e_i.
\end{align*}
Adding the local lengths over all points of the zero-dimensional scheme $D$ gives
\begin{align*}
\operatorname{length}(D)=\sum_{i=1}^r e_i=m.
\end{align*}
Applying this to $G=G_L$ gives
\begin{align*}
\operatorname{length}(X\cap L)=m
\end{align*}
for every $L\in U$.
[/step]