I was trying to understand the proof to the GCD theorem. It seems like I'm missing sommething though. I was reading it in this wikiproof article and the first proof uses the GCD with remainder theorem. I didn't really understand it, so I tried to read the proof
gcd{a,b}∖a∧gcd{a,b}∖b GCD is a common divisor
gcd{a,b}∖(a−qb) Common Divisor Divides Integer Combination
gcd{a,b}∖r as r=a−qb
gcd{a,b}≤gcd{b,r} Definition of gcd{b,r} as the greatest common divisor of b and r
The argument works the other way around:
gcd{b,r}∖b∧gcd{b,r}∖r GCD is a common divisor
gcd{b,r}∖(qb+r) Common Divisor Divides Integer Combination
gcd{b,r}∖a as a=qb+r
gcd{b,r}≤gcd{a,b} Definition of gcd{a,b} as the greatest common divisor of a and b
Thus gcd{a,b}=gcd{b,r}
Before we get to how the "argument works the other way around", I didn't understand the last step
gcd{a,b}≤gcd{b,r}
, how do we know the gcd of b,r is greater than that of a,b. Thanks.