In a course, we defined $\gcd(a,b)$ in a Euclidean domain to be a common divisor of $a,b$ with greatest possible norm/valuation.
Looking at a (commutative) ring $R$ as a category with $r\rightarrow s\iff r\mid s$, we can define $\gcd(a,b)$ to be the product of $a$ and $b$. I like this definition a lot, but I'm not sure how it generalizes coincides with the previous one, since we didn't ask the valuation $\nu$ to satisfy $a\mid b\implies \nu(a)\leq \nu (b)$.
How to resolve this?
Clarification: I'm not asking for help in unwrapping the categorical definition, which simply says $c\mid a,b\iff c\mid \gcd(a,b)$. I am asking why these two definitions are equivalent in a Euclidean domain, if they are. As I recall, a valuation is not part of the data of a Euclidean domain, only its existence.
The issue here is what conditions one requires on a valuation function. From https://en.wikipedia.org/wiki/Euclidean_domain:
Let me interrupt the Wikipedia quotation here to point out that property $EF_2$ is essentially what you are asking about. If $EF_2$ holds for some valuation $\nu$, then of course $a \mid b \implies \nu(a) \le \nu(b)$.
So one way to paraphrase your question is: What if we are using a definition of valuation that requires $EF_1$ but not $EF_2$?
Now we return to our quote from Wikipedia:
So one way to answer your question is: Let's suppose you are working with a valuation $\nu$ that does not satisfy $EF_2$. By the result above, you can switch to another one that does. With respect to that new valuation, the categorical definition of GCD coincides with the "old" definition.