Lemma (Euclidean algorithm for polynomials)

For all $f,g\in$ $\mathbb{F}[t]$ with $g\neq 0$, there exists $q,r\in \mathbb{F}[t]$ such that $$ \begin{align*} f(t) = q(t) g(t) + r(t) \quad \text{and} \quad \deg(r) < \deg(g). \end{align*} $$

Proof