[step:Identify the two greatest common divisors from the equality of common divisor sets]
Define the set $C_{a,b} \subset \mathbb{Z}_{>0}$ of positive common divisors of $a$ and $b$ by
\begin{align*}
C_{a,b} = \{d \in \mathbb{Z}_{>0} : d \mid a \text{ and } d \mid b\}.
\end{align*}
Define the set $C_{b,r} \subset \mathbb{Z}_{>0}$ of positive common divisors of $b$ and $r$ by
\begin{align*}
C_{b,r} = \{d \in \mathbb{Z}_{>0} : d \mid b \text{ and } d \mid r\}.
\end{align*}
The first step proves $C_{a,b} \subset C_{b,r}$, and the second step proves $C_{b,r} \subset C_{a,b}$. Hence
\begin{align*}
C_{a,b} = C_{b,r}.
\end{align*}
Because $b \ne 0$, neither pair $(a,b)$ nor $(b,r)$ is the zero pair, so both greatest common divisors are defined. By the definition of $\gcd(a,b)$ as the greatest element of $C_{a,b}$ and $\gcd(b,r)$ as the greatest element of $C_{b,r}$, the equality of the two sets gives
\begin{align*}
\gcd(a,b) = \gcd(b,r).
\end{align*}
This proves the Euclidean step for the [greatest common divisor](/page/Greatest%20Common%20Divisor).
[/step]