Description: An integer which divides each of two others also divides their gcd. (Contributed by Paul Chapman, 22-Jun-2011) (Revised by Mario Carneiro, 30-May-2014)
Ref | Expression | ||
---|---|---|---|
Assertion | dvdsgcd | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | bezout | |
|
2 | 1 | 3adant1 | |
3 | dvds2ln | |
|
4 | 3 | 3impia | |
5 | 4 | 3coml | |
6 | simp3l | |
|
7 | simp12 | |
|
8 | zcn | |
|
9 | zcn | |
|
10 | mulcom | |
|
11 | 8 9 10 | syl2an | |
12 | 6 7 11 | syl2anc | |
13 | simp3r | |
|
14 | simp13 | |
|
15 | zcn | |
|
16 | zcn | |
|
17 | mulcom | |
|
18 | 15 16 17 | syl2an | |
19 | 13 14 18 | syl2anc | |
20 | 12 19 | oveq12d | |
21 | 5 20 | breqtrd | |
22 | breq2 | |
|
23 | 21 22 | syl5ibrcom | |
24 | 23 | 3expia | |
25 | 24 | rexlimdvv | |
26 | 25 | ex | |
27 | 2 26 | mpid | |