Proof of Theorem dvdssq
Step | Hyp | Ref
| Expression |
1 | | breq1 5072 |
. . 3
⊢ (𝑀 = 0 → (𝑀 ∥ 𝑁 ↔ 0 ∥ 𝑁)) |
2 | | sq0i 13794 |
. . . 4
⊢ (𝑀 = 0 → (𝑀↑2) = 0) |
3 | 2 | breq1d 5079 |
. . 3
⊢ (𝑀 = 0 → ((𝑀↑2) ∥ (𝑁↑2) ↔ 0 ∥ (𝑁↑2))) |
4 | 1, 3 | bibi12d 349 |
. 2
⊢ (𝑀 = 0 → ((𝑀 ∥ 𝑁 ↔ (𝑀↑2) ∥ (𝑁↑2)) ↔ (0 ∥ 𝑁 ↔ 0 ∥ (𝑁↑2)))) |
5 | | nnabscl 14921 |
. . . . 5
⊢ ((𝑀 ∈ ℤ ∧ 𝑀 ≠ 0) → (abs‘𝑀) ∈
ℕ) |
6 | | breq2 5073 |
. . . . . . 7
⊢ (𝑁 = 0 → ((abs‘𝑀) ∥ 𝑁 ↔ (abs‘𝑀) ∥ 0)) |
7 | | sq0i 13794 |
. . . . . . . 8
⊢ (𝑁 = 0 → (𝑁↑2) = 0) |
8 | 7 | breq2d 5081 |
. . . . . . 7
⊢ (𝑁 = 0 → (((abs‘𝑀)↑2) ∥ (𝑁↑2) ↔
((abs‘𝑀)↑2)
∥ 0)) |
9 | 6, 8 | bibi12d 349 |
. . . . . 6
⊢ (𝑁 = 0 → (((abs‘𝑀) ∥ 𝑁 ↔ ((abs‘𝑀)↑2) ∥ (𝑁↑2)) ↔ ((abs‘𝑀) ∥ 0 ↔
((abs‘𝑀)↑2)
∥ 0))) |
10 | | nnabscl 14921 |
. . . . . . . . 9
⊢ ((𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) → (abs‘𝑁) ∈
ℕ) |
11 | | dvdssqlem 16155 |
. . . . . . . . 9
⊢
(((abs‘𝑀)
∈ ℕ ∧ (abs‘𝑁) ∈ ℕ) → ((abs‘𝑀) ∥ (abs‘𝑁) ↔ ((abs‘𝑀)↑2) ∥
((abs‘𝑁)↑2))) |
12 | 10, 11 | sylan2 596 |
. . . . . . . 8
⊢
(((abs‘𝑀)
∈ ℕ ∧ (𝑁
∈ ℤ ∧ 𝑁 ≠
0)) → ((abs‘𝑀)
∥ (abs‘𝑁)
↔ ((abs‘𝑀)↑2) ∥ ((abs‘𝑁)↑2))) |
13 | | nnz 12228 |
. . . . . . . . 9
⊢
((abs‘𝑀)
∈ ℕ → (abs‘𝑀) ∈ ℤ) |
14 | | simpl 486 |
. . . . . . . . 9
⊢ ((𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) → 𝑁 ∈
ℤ) |
15 | | dvdsabsb 15869 |
. . . . . . . . 9
⊢
(((abs‘𝑀)
∈ ℤ ∧ 𝑁
∈ ℤ) → ((abs‘𝑀) ∥ 𝑁 ↔ (abs‘𝑀) ∥ (abs‘𝑁))) |
16 | 13, 14, 15 | syl2an 599 |
. . . . . . . 8
⊢
(((abs‘𝑀)
∈ ℕ ∧ (𝑁
∈ ℤ ∧ 𝑁 ≠
0)) → ((abs‘𝑀)
∥ 𝑁 ↔
(abs‘𝑀) ∥
(abs‘𝑁))) |
17 | | nnsqcl 13731 |
. . . . . . . . . . 11
⊢
((abs‘𝑀)
∈ ℕ → ((abs‘𝑀)↑2) ∈ ℕ) |
18 | 17 | nnzd 12310 |
. . . . . . . . . 10
⊢
((abs‘𝑀)
∈ ℕ → ((abs‘𝑀)↑2) ∈ ℤ) |
19 | | zsqcl 13732 |
. . . . . . . . . . 11
⊢ (𝑁 ∈ ℤ → (𝑁↑2) ∈
ℤ) |
20 | 19 | adantr 484 |
. . . . . . . . . 10
⊢ ((𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) → (𝑁↑2) ∈
ℤ) |
21 | | dvdsabsb 15869 |
. . . . . . . . . 10
⊢
((((abs‘𝑀)↑2) ∈ ℤ ∧ (𝑁↑2) ∈ ℤ) →
(((abs‘𝑀)↑2)
∥ (𝑁↑2) ↔
((abs‘𝑀)↑2)
∥ (abs‘(𝑁↑2)))) |
22 | 18, 20, 21 | syl2an 599 |
. . . . . . . . 9
⊢
(((abs‘𝑀)
∈ ℕ ∧ (𝑁
∈ ℤ ∧ 𝑁 ≠
0)) → (((abs‘𝑀)↑2) ∥ (𝑁↑2) ↔ ((abs‘𝑀)↑2) ∥
(abs‘(𝑁↑2)))) |
23 | | zcn 12210 |
. . . . . . . . . . . . 13
⊢ (𝑁 ∈ ℤ → 𝑁 ∈
ℂ) |
24 | 23 | adantr 484 |
. . . . . . . . . . . 12
⊢ ((𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) → 𝑁 ∈
ℂ) |
25 | | abssq 14902 |
. . . . . . . . . . . 12
⊢ (𝑁 ∈ ℂ →
((abs‘𝑁)↑2) =
(abs‘(𝑁↑2))) |
26 | 24, 25 | syl 17 |
. . . . . . . . . . 11
⊢ ((𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) →
((abs‘𝑁)↑2) =
(abs‘(𝑁↑2))) |
27 | 26 | breq2d 5081 |
. . . . . . . . . 10
⊢ ((𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) →
(((abs‘𝑀)↑2)
∥ ((abs‘𝑁)↑2) ↔ ((abs‘𝑀)↑2) ∥
(abs‘(𝑁↑2)))) |
28 | 27 | adantl 485 |
. . . . . . . . 9
⊢
(((abs‘𝑀)
∈ ℕ ∧ (𝑁
∈ ℤ ∧ 𝑁 ≠
0)) → (((abs‘𝑀)↑2) ∥ ((abs‘𝑁)↑2) ↔
((abs‘𝑀)↑2)
∥ (abs‘(𝑁↑2)))) |
29 | 22, 28 | bitr4d 285 |
. . . . . . . 8
⊢
(((abs‘𝑀)
∈ ℕ ∧ (𝑁
∈ ℤ ∧ 𝑁 ≠
0)) → (((abs‘𝑀)↑2) ∥ (𝑁↑2) ↔ ((abs‘𝑀)↑2) ∥
((abs‘𝑁)↑2))) |
30 | 12, 16, 29 | 3bitr4d 314 |
. . . . . . 7
⊢
(((abs‘𝑀)
∈ ℕ ∧ (𝑁
∈ ℤ ∧ 𝑁 ≠
0)) → ((abs‘𝑀)
∥ 𝑁 ↔
((abs‘𝑀)↑2)
∥ (𝑁↑2))) |
31 | 30 | anassrs 471 |
. . . . . 6
⊢
((((abs‘𝑀)
∈ ℕ ∧ 𝑁
∈ ℤ) ∧ 𝑁
≠ 0) → ((abs‘𝑀) ∥ 𝑁 ↔ ((abs‘𝑀)↑2) ∥ (𝑁↑2))) |
32 | | dvds0 15865 |
. . . . . . . . 9
⊢
((abs‘𝑀)
∈ ℤ → (abs‘𝑀) ∥ 0) |
33 | | zsqcl 13732 |
. . . . . . . . . 10
⊢
((abs‘𝑀)
∈ ℤ → ((abs‘𝑀)↑2) ∈ ℤ) |
34 | | dvds0 15865 |
. . . . . . . . . 10
⊢
(((abs‘𝑀)↑2) ∈ ℤ →
((abs‘𝑀)↑2)
∥ 0) |
35 | 33, 34 | syl 17 |
. . . . . . . . 9
⊢
((abs‘𝑀)
∈ ℤ → ((abs‘𝑀)↑2) ∥ 0) |
36 | 32, 35 | 2thd 268 |
. . . . . . . 8
⊢
((abs‘𝑀)
∈ ℤ → ((abs‘𝑀) ∥ 0 ↔ ((abs‘𝑀)↑2) ∥
0)) |
37 | 13, 36 | syl 17 |
. . . . . . 7
⊢
((abs‘𝑀)
∈ ℕ → ((abs‘𝑀) ∥ 0 ↔ ((abs‘𝑀)↑2) ∥
0)) |
38 | 37 | adantr 484 |
. . . . . 6
⊢
(((abs‘𝑀)
∈ ℕ ∧ 𝑁
∈ ℤ) → ((abs‘𝑀) ∥ 0 ↔ ((abs‘𝑀)↑2) ∥
0)) |
39 | 9, 31, 38 | pm2.61ne 3030 |
. . . . 5
⊢
(((abs‘𝑀)
∈ ℕ ∧ 𝑁
∈ ℤ) → ((abs‘𝑀) ∥ 𝑁 ↔ ((abs‘𝑀)↑2) ∥ (𝑁↑2))) |
40 | 5, 39 | sylan 583 |
. . . 4
⊢ (((𝑀 ∈ ℤ ∧ 𝑀 ≠ 0) ∧ 𝑁 ∈ ℤ) → ((abs‘𝑀) ∥ 𝑁 ↔ ((abs‘𝑀)↑2) ∥ (𝑁↑2))) |
41 | | absdvdsb 15868 |
. . . . 5
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑀 ∥ 𝑁 ↔ (abs‘𝑀) ∥ 𝑁)) |
42 | 41 | adantlr 715 |
. . . 4
⊢ (((𝑀 ∈ ℤ ∧ 𝑀 ≠ 0) ∧ 𝑁 ∈ ℤ) → (𝑀 ∥ 𝑁 ↔ (abs‘𝑀) ∥ 𝑁)) |
43 | | zsqcl 13732 |
. . . . . . 7
⊢ (𝑀 ∈ ℤ → (𝑀↑2) ∈
ℤ) |
44 | 43 | adantr 484 |
. . . . . 6
⊢ ((𝑀 ∈ ℤ ∧ 𝑀 ≠ 0) → (𝑀↑2) ∈
ℤ) |
45 | | absdvdsb 15868 |
. . . . . 6
⊢ (((𝑀↑2) ∈ ℤ ∧
(𝑁↑2) ∈ ℤ)
→ ((𝑀↑2) ∥
(𝑁↑2) ↔
(abs‘(𝑀↑2))
∥ (𝑁↑2))) |
46 | 44, 19, 45 | syl2an 599 |
. . . . 5
⊢ (((𝑀 ∈ ℤ ∧ 𝑀 ≠ 0) ∧ 𝑁 ∈ ℤ) → ((𝑀↑2) ∥ (𝑁↑2) ↔ (abs‘(𝑀↑2)) ∥ (𝑁↑2))) |
47 | | zcn 12210 |
. . . . . . . . . 10
⊢ (𝑀 ∈ ℤ → 𝑀 ∈
ℂ) |
48 | | abssq 14902 |
. . . . . . . . . 10
⊢ (𝑀 ∈ ℂ →
((abs‘𝑀)↑2) =
(abs‘(𝑀↑2))) |
49 | 47, 48 | syl 17 |
. . . . . . . . 9
⊢ (𝑀 ∈ ℤ →
((abs‘𝑀)↑2) =
(abs‘(𝑀↑2))) |
50 | 49 | eqcomd 2745 |
. . . . . . . 8
⊢ (𝑀 ∈ ℤ →
(abs‘(𝑀↑2)) =
((abs‘𝑀)↑2)) |
51 | 50 | adantr 484 |
. . . . . . 7
⊢ ((𝑀 ∈ ℤ ∧ 𝑀 ≠ 0) →
(abs‘(𝑀↑2)) =
((abs‘𝑀)↑2)) |
52 | 51 | breq1d 5079 |
. . . . . 6
⊢ ((𝑀 ∈ ℤ ∧ 𝑀 ≠ 0) →
((abs‘(𝑀↑2))
∥ (𝑁↑2) ↔
((abs‘𝑀)↑2)
∥ (𝑁↑2))) |
53 | 52 | adantr 484 |
. . . . 5
⊢ (((𝑀 ∈ ℤ ∧ 𝑀 ≠ 0) ∧ 𝑁 ∈ ℤ) → ((abs‘(𝑀↑2)) ∥ (𝑁↑2) ↔
((abs‘𝑀)↑2)
∥ (𝑁↑2))) |
54 | 46, 53 | bitrd 282 |
. . . 4
⊢ (((𝑀 ∈ ℤ ∧ 𝑀 ≠ 0) ∧ 𝑁 ∈ ℤ) → ((𝑀↑2) ∥ (𝑁↑2) ↔ ((abs‘𝑀)↑2) ∥ (𝑁↑2))) |
55 | 40, 42, 54 | 3bitr4d 314 |
. . 3
⊢ (((𝑀 ∈ ℤ ∧ 𝑀 ≠ 0) ∧ 𝑁 ∈ ℤ) → (𝑀 ∥ 𝑁 ↔ (𝑀↑2) ∥ (𝑁↑2))) |
56 | 55 | an32s 652 |
. 2
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ 𝑀 ≠ 0) → (𝑀 ∥ 𝑁 ↔ (𝑀↑2) ∥ (𝑁↑2))) |
57 | | 0dvds 15870 |
. . . . 5
⊢ (𝑁 ∈ ℤ → (0
∥ 𝑁 ↔ 𝑁 = 0)) |
58 | | sqeq0 13724 |
. . . . . 6
⊢ (𝑁 ∈ ℂ → ((𝑁↑2) = 0 ↔ 𝑁 = 0)) |
59 | 23, 58 | syl 17 |
. . . . 5
⊢ (𝑁 ∈ ℤ → ((𝑁↑2) = 0 ↔ 𝑁 = 0)) |
60 | 57, 59 | bitr4d 285 |
. . . 4
⊢ (𝑁 ∈ ℤ → (0
∥ 𝑁 ↔ (𝑁↑2) = 0)) |
61 | | 0dvds 15870 |
. . . . 5
⊢ ((𝑁↑2) ∈ ℤ →
(0 ∥ (𝑁↑2)
↔ (𝑁↑2) =
0)) |
62 | 19, 61 | syl 17 |
. . . 4
⊢ (𝑁 ∈ ℤ → (0
∥ (𝑁↑2) ↔
(𝑁↑2) =
0)) |
63 | 60, 62 | bitr4d 285 |
. . 3
⊢ (𝑁 ∈ ℤ → (0
∥ 𝑁 ↔ 0 ∥
(𝑁↑2))) |
64 | 63 | adantl 485 |
. 2
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (0
∥ 𝑁 ↔ 0 ∥
(𝑁↑2))) |
65 | 4, 56, 64 | pm2.61ne 3030 |
1
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑀 ∥ 𝑁 ↔ (𝑀↑2) ∥ (𝑁↑2))) |