According to Wikipedia (https://en.wikipedia.org/wiki/Euclidean_domain), the property $a\mid b\Rightarrow f(a)\leq f(b)$ is not necessary to have an Euclidean domain.
If we have a function $f$ satisfying : for all $a$ and $b$ in $R$ with $b\neq 0$, there are $q$ and $r$ in $R$ such that $a = bq + r$ and either $r = 0$ or $f(r) < f(b)$, then the function $g(x):=\min_{k\in R\setminus\{0\}}f(kx)$ satisfies both properties.
I can prove that $a\mid b\Rightarrow g(a)\leq g(b)$ but how to prove the other property for $g$?
A similar question was asked here Definition of Euclidean domain but no proof was given.
Thanks !