Euclidean Domain is GCD Domain

Theorem
Let $\left({D, +, \times}\right)$ be a Euclidean domain.

Then any two elements $a, b \in D$ have a greatest common divisor $d$ such that:
 * $d \backslash a \land d \backslash b$
 * $x \backslash a \land x \backslash b \implies x \backslash d$

and $d$ is written $\gcd \left\{{a, b}\right\}$.

For any $a, b \in D$:
 * $\exists s, t \in D: s a + t b = d$

Any two greatest common divisors of any $a, b$ are associates.

Proof
Let $a, b \in D$.

Let $U \subseteq D$ be the set of all elements $h a + k b$ of $D$ where $h, k \in D$.

Then $U$ is an ideal of $D$.

By Euclidean Domain is Principal Ideal Domain, $U$ is a principal ideal, $\left({d}\right)$ say.

As $a, b \in U$ it follows that $d$ is a divisor of $a$ and $b$, i.e.:


 * $d \backslash a \land d \backslash b$

Since $d$ itself is in $U$, we have:
 * $\exists s, t \in D: s a + t b = d$

So:
 * $x \backslash a \land x \backslash b \implies x \backslash d$

by Common Divisor Divides Integer Combination.

So $d$ is a greatest common divisor of $a$ and $b$.

If $d$ and $d'$ are both greatest common divisors of $a$ and $b$, then $d \backslash a \land d \backslash b$ and so $d \backslash d'$.

Similarly $d' \backslash d$.

So $d$ and $d'$ are associates.