Definition (Euclidean domain)

A ring $R$ is a Euclidean domain if it is an integral domain and there exists a Euclidean function $$ \begin{align*} ϕ: R\setminus \set{0} \to \Z_{\geq 0} \end{align*} $$ satisfying

  1. $ϕ(ab) \geq ϕ(b)$ for all $a,b\neq 0$; and

  2. for all $a,b\in R$ with $b\neq 0$, there exists $q,r\in R$ such that $a = qb + r$ and either $r=0$ or $ϕ(r)<ϕ(b)$.