Proof of Theorem lcmgcdeq
Step | Hyp | Ref
| Expression |
1 | | dvdslcm 16303 |
. . . . . . 7
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑀 ∥ (𝑀 lcm 𝑁) ∧ 𝑁 ∥ (𝑀 lcm 𝑁))) |
2 | 1 | simpld 495 |
. . . . . 6
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → 𝑀 ∥ (𝑀 lcm 𝑁)) |
3 | 2 | adantr 481 |
. . . . 5
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ (𝑀 lcm 𝑁) = (𝑀 gcd 𝑁)) → 𝑀 ∥ (𝑀 lcm 𝑁)) |
4 | | gcddvds 16210 |
. . . . . . . 8
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((𝑀 gcd 𝑁) ∥ 𝑀 ∧ (𝑀 gcd 𝑁) ∥ 𝑁)) |
5 | 4 | simprd 496 |
. . . . . . 7
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑀 gcd 𝑁) ∥ 𝑁) |
6 | | breq1 5077 |
. . . . . . 7
⊢ ((𝑀 lcm 𝑁) = (𝑀 gcd 𝑁) → ((𝑀 lcm 𝑁) ∥ 𝑁 ↔ (𝑀 gcd 𝑁) ∥ 𝑁)) |
7 | 5, 6 | syl5ibrcom 246 |
. . . . . 6
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((𝑀 lcm 𝑁) = (𝑀 gcd 𝑁) → (𝑀 lcm 𝑁) ∥ 𝑁)) |
8 | 7 | imp 407 |
. . . . 5
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ (𝑀 lcm 𝑁) = (𝑀 gcd 𝑁)) → (𝑀 lcm 𝑁) ∥ 𝑁) |
9 | | lcmcl 16306 |
. . . . . . . . . . 11
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑀 lcm 𝑁) ∈
ℕ0) |
10 | 9 | nn0zd 12424 |
. . . . . . . . . 10
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑀 lcm 𝑁) ∈ ℤ) |
11 | | dvdstr 16003 |
. . . . . . . . . 10
⊢ ((𝑀 ∈ ℤ ∧ (𝑀 lcm 𝑁) ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((𝑀 ∥ (𝑀 lcm 𝑁) ∧ (𝑀 lcm 𝑁) ∥ 𝑁) → 𝑀 ∥ 𝑁)) |
12 | 10, 11 | syl3an2 1163 |
. . . . . . . . 9
⊢ ((𝑀 ∈ ℤ ∧ (𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ 𝑁 ∈ ℤ) → ((𝑀 ∥ (𝑀 lcm 𝑁) ∧ (𝑀 lcm 𝑁) ∥ 𝑁) → 𝑀 ∥ 𝑁)) |
13 | 12 | 3com12 1122 |
. . . . . . . 8
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ 𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((𝑀 ∥ (𝑀 lcm 𝑁) ∧ (𝑀 lcm 𝑁) ∥ 𝑁) → 𝑀 ∥ 𝑁)) |
14 | 13 | 3expb 1119 |
. . . . . . 7
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ (𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ)) → ((𝑀 ∥ (𝑀 lcm 𝑁) ∧ (𝑀 lcm 𝑁) ∥ 𝑁) → 𝑀 ∥ 𝑁)) |
15 | 14 | anidms 567 |
. . . . . 6
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((𝑀 ∥ (𝑀 lcm 𝑁) ∧ (𝑀 lcm 𝑁) ∥ 𝑁) → 𝑀 ∥ 𝑁)) |
16 | 15 | adantr 481 |
. . . . 5
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ (𝑀 lcm 𝑁) = (𝑀 gcd 𝑁)) → ((𝑀 ∥ (𝑀 lcm 𝑁) ∧ (𝑀 lcm 𝑁) ∥ 𝑁) → 𝑀 ∥ 𝑁)) |
17 | 3, 8, 16 | mp2and 696 |
. . . 4
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ (𝑀 lcm 𝑁) = (𝑀 gcd 𝑁)) → 𝑀 ∥ 𝑁) |
18 | | absdvdsb 15984 |
. . . . . 6
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑀 ∥ 𝑁 ↔ (abs‘𝑀) ∥ 𝑁)) |
19 | | zabscl 15025 |
. . . . . . 7
⊢ (𝑀 ∈ ℤ →
(abs‘𝑀) ∈
ℤ) |
20 | | dvdsabsb 15985 |
. . . . . . 7
⊢
(((abs‘𝑀)
∈ ℤ ∧ 𝑁
∈ ℤ) → ((abs‘𝑀) ∥ 𝑁 ↔ (abs‘𝑀) ∥ (abs‘𝑁))) |
21 | 19, 20 | sylan 580 |
. . . . . 6
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) →
((abs‘𝑀) ∥
𝑁 ↔ (abs‘𝑀) ∥ (abs‘𝑁))) |
22 | 18, 21 | bitrd 278 |
. . . . 5
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑀 ∥ 𝑁 ↔ (abs‘𝑀) ∥ (abs‘𝑁))) |
23 | 22 | adantr 481 |
. . . 4
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ (𝑀 lcm 𝑁) = (𝑀 gcd 𝑁)) → (𝑀 ∥ 𝑁 ↔ (abs‘𝑀) ∥ (abs‘𝑁))) |
24 | 17, 23 | mpbid 231 |
. . 3
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ (𝑀 lcm 𝑁) = (𝑀 gcd 𝑁)) → (abs‘𝑀) ∥ (abs‘𝑁)) |
25 | 1 | simprd 496 |
. . . . . 6
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → 𝑁 ∥ (𝑀 lcm 𝑁)) |
26 | 25 | adantr 481 |
. . . . 5
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ (𝑀 lcm 𝑁) = (𝑀 gcd 𝑁)) → 𝑁 ∥ (𝑀 lcm 𝑁)) |
27 | 4 | simpld 495 |
. . . . . . 7
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑀 gcd 𝑁) ∥ 𝑀) |
28 | | breq1 5077 |
. . . . . . 7
⊢ ((𝑀 lcm 𝑁) = (𝑀 gcd 𝑁) → ((𝑀 lcm 𝑁) ∥ 𝑀 ↔ (𝑀 gcd 𝑁) ∥ 𝑀)) |
29 | 27, 28 | syl5ibrcom 246 |
. . . . . 6
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((𝑀 lcm 𝑁) = (𝑀 gcd 𝑁) → (𝑀 lcm 𝑁) ∥ 𝑀)) |
30 | 29 | imp 407 |
. . . . 5
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ (𝑀 lcm 𝑁) = (𝑀 gcd 𝑁)) → (𝑀 lcm 𝑁) ∥ 𝑀) |
31 | | dvdstr 16003 |
. . . . . . . . . 10
⊢ ((𝑁 ∈ ℤ ∧ (𝑀 lcm 𝑁) ∈ ℤ ∧ 𝑀 ∈ ℤ) → ((𝑁 ∥ (𝑀 lcm 𝑁) ∧ (𝑀 lcm 𝑁) ∥ 𝑀) → 𝑁 ∥ 𝑀)) |
32 | 10, 31 | syl3an2 1163 |
. . . . . . . . 9
⊢ ((𝑁 ∈ ℤ ∧ (𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ 𝑀 ∈ ℤ) → ((𝑁 ∥ (𝑀 lcm 𝑁) ∧ (𝑀 lcm 𝑁) ∥ 𝑀) → 𝑁 ∥ 𝑀)) |
33 | 32 | 3coml 1126 |
. . . . . . . 8
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ 𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((𝑁 ∥ (𝑀 lcm 𝑁) ∧ (𝑀 lcm 𝑁) ∥ 𝑀) → 𝑁 ∥ 𝑀)) |
34 | 33 | 3expb 1119 |
. . . . . . 7
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ (𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ)) → ((𝑁 ∥ (𝑀 lcm 𝑁) ∧ (𝑀 lcm 𝑁) ∥ 𝑀) → 𝑁 ∥ 𝑀)) |
35 | 34 | anidms 567 |
. . . . . 6
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((𝑁 ∥ (𝑀 lcm 𝑁) ∧ (𝑀 lcm 𝑁) ∥ 𝑀) → 𝑁 ∥ 𝑀)) |
36 | 35 | adantr 481 |
. . . . 5
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ (𝑀 lcm 𝑁) = (𝑀 gcd 𝑁)) → ((𝑁 ∥ (𝑀 lcm 𝑁) ∧ (𝑀 lcm 𝑁) ∥ 𝑀) → 𝑁 ∥ 𝑀)) |
37 | 26, 30, 36 | mp2and 696 |
. . . 4
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ (𝑀 lcm 𝑁) = (𝑀 gcd 𝑁)) → 𝑁 ∥ 𝑀) |
38 | | absdvdsb 15984 |
. . . . . . 7
⊢ ((𝑁 ∈ ℤ ∧ 𝑀 ∈ ℤ) → (𝑁 ∥ 𝑀 ↔ (abs‘𝑁) ∥ 𝑀)) |
39 | | zabscl 15025 |
. . . . . . . 8
⊢ (𝑁 ∈ ℤ →
(abs‘𝑁) ∈
ℤ) |
40 | | dvdsabsb 15985 |
. . . . . . . 8
⊢
(((abs‘𝑁)
∈ ℤ ∧ 𝑀
∈ ℤ) → ((abs‘𝑁) ∥ 𝑀 ↔ (abs‘𝑁) ∥ (abs‘𝑀))) |
41 | 39, 40 | sylan 580 |
. . . . . . 7
⊢ ((𝑁 ∈ ℤ ∧ 𝑀 ∈ ℤ) →
((abs‘𝑁) ∥
𝑀 ↔ (abs‘𝑁) ∥ (abs‘𝑀))) |
42 | 38, 41 | bitrd 278 |
. . . . . 6
⊢ ((𝑁 ∈ ℤ ∧ 𝑀 ∈ ℤ) → (𝑁 ∥ 𝑀 ↔ (abs‘𝑁) ∥ (abs‘𝑀))) |
43 | 42 | ancoms 459 |
. . . . 5
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑁 ∥ 𝑀 ↔ (abs‘𝑁) ∥ (abs‘𝑀))) |
44 | 43 | adantr 481 |
. . . 4
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ (𝑀 lcm 𝑁) = (𝑀 gcd 𝑁)) → (𝑁 ∥ 𝑀 ↔ (abs‘𝑁) ∥ (abs‘𝑀))) |
45 | 37, 44 | mpbid 231 |
. . 3
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ (𝑀 lcm 𝑁) = (𝑀 gcd 𝑁)) → (abs‘𝑁) ∥ (abs‘𝑀)) |
46 | | nn0abscl 15024 |
. . . . . . 7
⊢ (𝑀 ∈ ℤ →
(abs‘𝑀) ∈
ℕ0) |
47 | | nn0abscl 15024 |
. . . . . . 7
⊢ (𝑁 ∈ ℤ →
(abs‘𝑁) ∈
ℕ0) |
48 | 46, 47 | anim12i 613 |
. . . . . 6
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) →
((abs‘𝑀) ∈
ℕ0 ∧ (abs‘𝑁) ∈
ℕ0)) |
49 | | dvdseq 16023 |
. . . . . 6
⊢
((((abs‘𝑀)
∈ ℕ0 ∧ (abs‘𝑁) ∈ ℕ0) ∧
((abs‘𝑀) ∥
(abs‘𝑁) ∧
(abs‘𝑁) ∥
(abs‘𝑀))) →
(abs‘𝑀) =
(abs‘𝑁)) |
50 | 48, 49 | sylan 580 |
. . . . 5
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧
((abs‘𝑀) ∥
(abs‘𝑁) ∧
(abs‘𝑁) ∥
(abs‘𝑀))) →
(abs‘𝑀) =
(abs‘𝑁)) |
51 | 50 | ex 413 |
. . . 4
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) →
(((abs‘𝑀) ∥
(abs‘𝑁) ∧
(abs‘𝑁) ∥
(abs‘𝑀)) →
(abs‘𝑀) =
(abs‘𝑁))) |
52 | 51 | adantr 481 |
. . 3
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ (𝑀 lcm 𝑁) = (𝑀 gcd 𝑁)) → (((abs‘𝑀) ∥ (abs‘𝑁) ∧ (abs‘𝑁) ∥ (abs‘𝑀)) → (abs‘𝑀) = (abs‘𝑁))) |
53 | 24, 45, 52 | mp2and 696 |
. 2
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ (𝑀 lcm 𝑁) = (𝑀 gcd 𝑁)) → (abs‘𝑀) = (abs‘𝑁)) |
54 | | lcmid 16314 |
. . . . . . . 8
⊢
((abs‘𝑀)
∈ ℤ → ((abs‘𝑀) lcm (abs‘𝑀)) = (abs‘(abs‘𝑀))) |
55 | 19, 54 | syl 17 |
. . . . . . 7
⊢ (𝑀 ∈ ℤ →
((abs‘𝑀) lcm
(abs‘𝑀)) =
(abs‘(abs‘𝑀))) |
56 | | gcdid 16234 |
. . . . . . . 8
⊢
((abs‘𝑀)
∈ ℤ → ((abs‘𝑀) gcd (abs‘𝑀)) = (abs‘(abs‘𝑀))) |
57 | 19, 56 | syl 17 |
. . . . . . 7
⊢ (𝑀 ∈ ℤ →
((abs‘𝑀) gcd
(abs‘𝑀)) =
(abs‘(abs‘𝑀))) |
58 | 55, 57 | eqtr4d 2781 |
. . . . . 6
⊢ (𝑀 ∈ ℤ →
((abs‘𝑀) lcm
(abs‘𝑀)) =
((abs‘𝑀) gcd
(abs‘𝑀))) |
59 | | oveq2 7283 |
. . . . . . 7
⊢
((abs‘𝑀) =
(abs‘𝑁) →
((abs‘𝑀) lcm
(abs‘𝑀)) =
((abs‘𝑀) lcm
(abs‘𝑁))) |
60 | | oveq2 7283 |
. . . . . . 7
⊢
((abs‘𝑀) =
(abs‘𝑁) →
((abs‘𝑀) gcd
(abs‘𝑀)) =
((abs‘𝑀) gcd
(abs‘𝑁))) |
61 | 59, 60 | eqeq12d 2754 |
. . . . . 6
⊢
((abs‘𝑀) =
(abs‘𝑁) →
(((abs‘𝑀) lcm
(abs‘𝑀)) =
((abs‘𝑀) gcd
(abs‘𝑀)) ↔
((abs‘𝑀) lcm
(abs‘𝑁)) =
((abs‘𝑀) gcd
(abs‘𝑁)))) |
62 | 58, 61 | syl5ibcom 244 |
. . . . 5
⊢ (𝑀 ∈ ℤ →
((abs‘𝑀) =
(abs‘𝑁) →
((abs‘𝑀) lcm
(abs‘𝑁)) =
((abs‘𝑀) gcd
(abs‘𝑁)))) |
63 | 62 | imp 407 |
. . . 4
⊢ ((𝑀 ∈ ℤ ∧
(abs‘𝑀) =
(abs‘𝑁)) →
((abs‘𝑀) lcm
(abs‘𝑁)) =
((abs‘𝑀) gcd
(abs‘𝑁))) |
64 | 63 | adantlr 712 |
. . 3
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧
(abs‘𝑀) =
(abs‘𝑁)) →
((abs‘𝑀) lcm
(abs‘𝑁)) =
((abs‘𝑀) gcd
(abs‘𝑁))) |
65 | | lcmabs 16310 |
. . . . 5
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) →
((abs‘𝑀) lcm
(abs‘𝑁)) = (𝑀 lcm 𝑁)) |
66 | | gcdabs 16238 |
. . . . 5
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) →
((abs‘𝑀) gcd
(abs‘𝑁)) = (𝑀 gcd 𝑁)) |
67 | 65, 66 | eqeq12d 2754 |
. . . 4
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) →
(((abs‘𝑀) lcm
(abs‘𝑁)) =
((abs‘𝑀) gcd
(abs‘𝑁)) ↔
(𝑀 lcm 𝑁) = (𝑀 gcd 𝑁))) |
68 | 67 | adantr 481 |
. . 3
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧
(abs‘𝑀) =
(abs‘𝑁)) →
(((abs‘𝑀) lcm
(abs‘𝑁)) =
((abs‘𝑀) gcd
(abs‘𝑁)) ↔
(𝑀 lcm 𝑁) = (𝑀 gcd 𝑁))) |
69 | 64, 68 | mpbid 231 |
. 2
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧
(abs‘𝑀) =
(abs‘𝑁)) →
(𝑀 lcm 𝑁) = (𝑀 gcd 𝑁)) |
70 | 53, 69 | impbida 798 |
1
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((𝑀 lcm 𝑁) = (𝑀 gcd 𝑁) ↔ (abs‘𝑀) = (abs‘𝑁))) |