Proof of Theorem gcdmultiplez
Step | Hyp | Ref
| Expression |
1 | | 0z 9202 |
. . . 4
⊢ 0 ∈
ℤ |
2 | | zdceq 9266 |
. . . 4
⊢ ((𝑁 ∈ ℤ ∧ 0 ∈
ℤ) → DECID 𝑁 = 0) |
3 | 1, 2 | mpan2 422 |
. . 3
⊢ (𝑁 ∈ ℤ →
DECID 𝑁 =
0) |
4 | | exmiddc 826 |
. . 3
⊢
(DECID 𝑁 = 0 → (𝑁 = 0 ∨ ¬ 𝑁 = 0)) |
5 | | nncn 8865 |
. . . . . . . 8
⊢ (𝑀 ∈ ℕ → 𝑀 ∈
ℂ) |
6 | | mul01 8287 |
. . . . . . . . 9
⊢ (𝑀 ∈ ℂ → (𝑀 · 0) =
0) |
7 | 6 | oveq2d 5858 |
. . . . . . . 8
⊢ (𝑀 ∈ ℂ → (𝑀 gcd (𝑀 · 0)) = (𝑀 gcd 0)) |
8 | 5, 7 | syl 14 |
. . . . . . 7
⊢ (𝑀 ∈ ℕ → (𝑀 gcd (𝑀 · 0)) = (𝑀 gcd 0)) |
9 | 8 | adantr 274 |
. . . . . 6
⊢ ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℤ) → (𝑀 gcd (𝑀 · 0)) = (𝑀 gcd 0)) |
10 | | nnnn0 9121 |
. . . . . . . 8
⊢ (𝑀 ∈ ℕ → 𝑀 ∈
ℕ0) |
11 | | nn0gcdid0 11914 |
. . . . . . . 8
⊢ (𝑀 ∈ ℕ0
→ (𝑀 gcd 0) = 𝑀) |
12 | 10, 11 | syl 14 |
. . . . . . 7
⊢ (𝑀 ∈ ℕ → (𝑀 gcd 0) = 𝑀) |
13 | 12 | adantr 274 |
. . . . . 6
⊢ ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℤ) → (𝑀 gcd 0) = 𝑀) |
14 | 9, 13 | eqtrd 2198 |
. . . . 5
⊢ ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℤ) → (𝑀 gcd (𝑀 · 0)) = 𝑀) |
15 | | oveq2 5850 |
. . . . . . 7
⊢ (𝑁 = 0 → (𝑀 · 𝑁) = (𝑀 · 0)) |
16 | 15 | oveq2d 5858 |
. . . . . 6
⊢ (𝑁 = 0 → (𝑀 gcd (𝑀 · 𝑁)) = (𝑀 gcd (𝑀 · 0))) |
17 | 16 | eqeq1d 2174 |
. . . . 5
⊢ (𝑁 = 0 → ((𝑀 gcd (𝑀 · 𝑁)) = 𝑀 ↔ (𝑀 gcd (𝑀 · 0)) = 𝑀)) |
18 | 14, 17 | syl5ibr 155 |
. . . 4
⊢ (𝑁 = 0 → ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℤ) → (𝑀 gcd (𝑀 · 𝑁)) = 𝑀)) |
19 | | df-ne 2337 |
. . . . 5
⊢ (𝑁 ≠ 0 ↔ ¬ 𝑁 = 0) |
20 | | zcn 9196 |
. . . . . . . . . . 11
⊢ (𝑁 ∈ ℤ → 𝑁 ∈
ℂ) |
21 | | absmul 11011 |
. . . . . . . . . . 11
⊢ ((𝑀 ∈ ℂ ∧ 𝑁 ∈ ℂ) →
(abs‘(𝑀 ·
𝑁)) = ((abs‘𝑀) · (abs‘𝑁))) |
22 | 5, 20, 21 | syl2an 287 |
. . . . . . . . . 10
⊢ ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℤ) →
(abs‘(𝑀 ·
𝑁)) = ((abs‘𝑀) · (abs‘𝑁))) |
23 | | nnre 8864 |
. . . . . . . . . . . . 13
⊢ (𝑀 ∈ ℕ → 𝑀 ∈
ℝ) |
24 | 10 | nn0ge0d 9170 |
. . . . . . . . . . . . 13
⊢ (𝑀 ∈ ℕ → 0 ≤
𝑀) |
25 | 23, 24 | absidd 11109 |
. . . . . . . . . . . 12
⊢ (𝑀 ∈ ℕ →
(abs‘𝑀) = 𝑀) |
26 | 25 | oveq1d 5857 |
. . . . . . . . . . 11
⊢ (𝑀 ∈ ℕ →
((abs‘𝑀) ·
(abs‘𝑁)) = (𝑀 · (abs‘𝑁))) |
27 | 26 | adantr 274 |
. . . . . . . . . 10
⊢ ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℤ) →
((abs‘𝑀) ·
(abs‘𝑁)) = (𝑀 · (abs‘𝑁))) |
28 | 22, 27 | eqtrd 2198 |
. . . . . . . . 9
⊢ ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℤ) →
(abs‘(𝑀 ·
𝑁)) = (𝑀 · (abs‘𝑁))) |
29 | 28 | oveq2d 5858 |
. . . . . . . 8
⊢ ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℤ) → (𝑀 gcd (abs‘(𝑀 · 𝑁))) = (𝑀 gcd (𝑀 · (abs‘𝑁)))) |
30 | 29 | adantr 274 |
. . . . . . 7
⊢ (((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℤ) ∧ 𝑁 ≠ 0) → (𝑀 gcd (abs‘(𝑀 · 𝑁))) = (𝑀 gcd (𝑀 · (abs‘𝑁)))) |
31 | | simpll 519 |
. . . . . . . . 9
⊢ (((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℤ) ∧ 𝑁 ≠ 0) → 𝑀 ∈
ℕ) |
32 | 31 | nnzd 9312 |
. . . . . . . 8
⊢ (((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℤ) ∧ 𝑁 ≠ 0) → 𝑀 ∈
ℤ) |
33 | | nnz 9210 |
. . . . . . . . . 10
⊢ (𝑀 ∈ ℕ → 𝑀 ∈
ℤ) |
34 | | zmulcl 9244 |
. . . . . . . . . 10
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑀 · 𝑁) ∈ ℤ) |
35 | 33, 34 | sylan 281 |
. . . . . . . . 9
⊢ ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℤ) → (𝑀 · 𝑁) ∈ ℤ) |
36 | 35 | adantr 274 |
. . . . . . . 8
⊢ (((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℤ) ∧ 𝑁 ≠ 0) → (𝑀 · 𝑁) ∈ ℤ) |
37 | | gcdabs2 11923 |
. . . . . . . 8
⊢ ((𝑀 ∈ ℤ ∧ (𝑀 · 𝑁) ∈ ℤ) → (𝑀 gcd (abs‘(𝑀 · 𝑁))) = (𝑀 gcd (𝑀 · 𝑁))) |
38 | 32, 36, 37 | syl2anc 409 |
. . . . . . 7
⊢ (((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℤ) ∧ 𝑁 ≠ 0) → (𝑀 gcd (abs‘(𝑀 · 𝑁))) = (𝑀 gcd (𝑀 · 𝑁))) |
39 | | nnabscl 11042 |
. . . . . . . . 9
⊢ ((𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) → (abs‘𝑁) ∈
ℕ) |
40 | | gcdmultiple 11953 |
. . . . . . . . 9
⊢ ((𝑀 ∈ ℕ ∧
(abs‘𝑁) ∈
ℕ) → (𝑀 gcd
(𝑀 ·
(abs‘𝑁))) = 𝑀) |
41 | 39, 40 | sylan2 284 |
. . . . . . . 8
⊢ ((𝑀 ∈ ℕ ∧ (𝑁 ∈ ℤ ∧ 𝑁 ≠ 0)) → (𝑀 gcd (𝑀 · (abs‘𝑁))) = 𝑀) |
42 | 41 | anassrs 398 |
. . . . . . 7
⊢ (((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℤ) ∧ 𝑁 ≠ 0) → (𝑀 gcd (𝑀 · (abs‘𝑁))) = 𝑀) |
43 | 30, 38, 42 | 3eqtr3d 2206 |
. . . . . 6
⊢ (((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℤ) ∧ 𝑁 ≠ 0) → (𝑀 gcd (𝑀 · 𝑁)) = 𝑀) |
44 | 43 | expcom 115 |
. . . . 5
⊢ (𝑁 ≠ 0 → ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℤ) → (𝑀 gcd (𝑀 · 𝑁)) = 𝑀)) |
45 | 19, 44 | sylbir 134 |
. . . 4
⊢ (¬
𝑁 = 0 → ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℤ) → (𝑀 gcd (𝑀 · 𝑁)) = 𝑀)) |
46 | 18, 45 | jaoi 706 |
. . 3
⊢ ((𝑁 = 0 ∨ ¬ 𝑁 = 0) → ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℤ) → (𝑀 gcd (𝑀 · 𝑁)) = 𝑀)) |
47 | 3, 4, 46 | 3syl 17 |
. 2
⊢ (𝑁 ∈ ℤ → ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℤ) → (𝑀 gcd (𝑀 · 𝑁)) = 𝑀)) |
48 | 47 | anabsi7 571 |
1
⊢ ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℤ) → (𝑀 gcd (𝑀 · 𝑁)) = 𝑀) |