I am trying to derive by myself
$$
\gcd(ga, gb) = g\gcd(a,b),
$$
but I am stuck proving it fully. Note, that I avoided reading the relevant proof as I am trying to improve my intuition on the process and the proof, so I want to understand if my approach is a dead end or what am I missing to complete it.
My approach is the following:
$GCD(a, b) \implies GCD(a, b) | a \equiv x\cdot GCD(a, b) = a$
similarly
$GCD(a, b) \implies GCD(a, b) | b \equiv y\cdot GCD(a, b) = b$
But
$GCD(a, b) | a \implies GCD(a, b) | ga$
similarly
$GCD(a, b) | b \implies GCD(a, b) | gb$
So it has been proven so far that $GCD(a, b)$ is a common divisor of $ga$ and $gb$. Additionally it is implied that the $GCD(g\cdot a, g\cdot b)$ is a multiple of $GCD(a, b)$ because:
$x\cdot GCD(a,b) = a \equiv g\cdot x\cdot GCD(a,b) = g\cdot a \implies g\cdot a = x \cdot (g \cdot GCD(a,b))$
$y\cdot GCD(a,b) = b \equiv g\cdot y\cdot GCD(a,b) = g\cdot b \implies g\cdot b = y \cdot (g\cdot GCD(a,b))$
Combining the above we can see that $g\cdot GCD(a,b)$ is a common divisor of $ga$ and of $gb$.
But I am stuck here on what step am I missing to prove that it is also the greatest common divisor.
Update
Based on the comment of @user2661923 I thought of the following:
$GCD(a, b) \implies GCD(a, b) | a \equiv x\cdot GCD(a, b) = a$
similarly
$GCD(a, b) \implies GCD(a, b) | b \equiv y\cdot GCD(a, b) = b$
Now for any $d$ where $d |a \And d|b$ i.e. $d$ is a common divisor this implies that $d | GCD(a,b)$ by definition.
Now since:
$d \mid a \Leftrightarrow g\cdot d \mid g\cdot a$
and
$d \mid b \Leftrightarrow g\cdot d \mid g\cdot b$
and
$d \mid GCD(a,b) \Leftrightarrow g\cdot d \mid g\cdot GCD(a,b)$
this proves that $g\cdot GCD$ is also the $GCD$ of $g\cdot a, g\cdot b$
Is this proof correct? I kind of think that I am proving it starting with what I am trying to prove ($d \mid a \Leftrightarrow g\cdot d \mid g\cdot a$)
d|r \iff \exists s \in \Bbb{Z^+}$ such that $(d\times s) = r.~$ Clearly, $(d \times s) = a \iff (gd \times s) = ga.$ – user2661923 Jun 12 '21 at 20:42