This proof proceeds by induction, and will be seen to rather subtly combine the inductive hypothesis and a couple of lemmas:
b (inductive hyp)<b
(
a:
.
u,v:
. GCD(a;b
;u
a+v
b
))
Thm* a,b,y:
. GCD(a;b;y)
GCD(b;a;y)
Thm* a,b,y,k:
. GCD(a;b;y)
GCD(a;b+k
a;y)
Note the complex argument of the last lemma is suggestive of the division theorem
Thm* a:
, b:
.
q:
, r:
b. a = q
b+r
Let's proceed. Use true-for-less induction on
a:
.
u,v:
. GCD(a;b;u
a+v
b)
under the inductive hyp mentioned above for <b
It turns out that the inductive hyp will be used with
. b
:
. b
<b
(
u,v:
. GCD(b;b
;u
b+v
b
))
Recall we are trying to show that
u,v:
. GCD(a;b;u
a+v
b)
If a:
. GCD(a;0;a)
So assume for the rest that b = 0
Let's improve the match between our goal and our simplified inductive hyp. It is enough to show
, u,v:
. GCD(b;a;u
b+v
a)
since a,b,y:
. GCD(a;b;y)
GCD(b;a;y)
a,b:
. a+b = b+a
Using division, b+r
. u,v:
. GCD(b;r+q
b;u
b+v
(r+q
b))
Applying our simplified inductive hyp the the remainder x,y:
. GCD(b;r;x
b+y
r)
a,b,y,k:
. GCD(a;b;y)
GCD(a;b+k
a;y)
, x,y:
. GCD(b;r+q
b;x
b+y
r)
which differs from our new goal only in one argument to
So, it is enough to show
, which would follow from u,v:
. u
b+v
(r+q
b) = x
b+y
r
, by using u:
. u
b+y
(r+q
b) = x
b+y
r
y forv , which would follow from
, which is satisfied by u:
. u
b+y
q
b = x
b
x-q y
QED
About:
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |