Description: Define the gcd operator. For example, ( -u 6 gcd 9 ) = 3 ( ex-gcd ). For an alternate definition, based on the definition in ApostolNT p. 15, see dfgcd2 . (Contributed by Paul Chapman, 21-Mar-2011)
Ref | Expression | ||
---|---|---|---|
Assertion | df-gcd | |
Step | Hyp | Ref | Expression |
---|---|---|---|
0 | cgcd | |
|
1 | vx | |
|
2 | cz | |
|
3 | vy | |
|
4 | 1 | cv | |
5 | cc0 | |
|
6 | 4 5 | wceq | |
7 | 3 | cv | |
8 | 7 5 | wceq | |
9 | 6 8 | wa | |
10 | vn | |
|
11 | 10 | cv | |
12 | cdvds | |
|
13 | 11 4 12 | wbr | |
14 | 11 7 12 | wbr | |
15 | 13 14 | wa | |
16 | 15 10 2 | crab | |
17 | cr | |
|
18 | clt | |
|
19 | 16 17 18 | csup | |
20 | 9 5 19 | cif | |
21 | 1 3 2 2 20 | cmpo | |
22 | 0 21 | wceq | |