Proof of Theorem qredeq
Step | Hyp | Ref
| Expression |
1 | | zcn 12254 |
. . . . . . . . . 10
⊢ (𝑀 ∈ ℤ → 𝑀 ∈
ℂ) |
2 | 1 | adantr 480 |
. . . . . . . . 9
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → 𝑀 ∈
ℂ) |
3 | | nncn 11911 |
. . . . . . . . . 10
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
ℂ) |
4 | 3 | adantl 481 |
. . . . . . . . 9
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → 𝑁 ∈
ℂ) |
5 | | nnne0 11937 |
. . . . . . . . . 10
⊢ (𝑁 ∈ ℕ → 𝑁 ≠ 0) |
6 | 5 | adantl 481 |
. . . . . . . . 9
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → 𝑁 ≠ 0) |
7 | 2, 4, 6 | divcld 11681 |
. . . . . . . 8
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (𝑀 / 𝑁) ∈ ℂ) |
8 | 7 | 3adant3 1130 |
. . . . . . 7
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) → (𝑀 / 𝑁) ∈ ℂ) |
9 | 8 | adantr 480 |
. . . . . 6
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → (𝑀 / 𝑁) ∈ ℂ) |
10 | | zcn 12254 |
. . . . . . . . . 10
⊢ (𝑃 ∈ ℤ → 𝑃 ∈
ℂ) |
11 | 10 | adantr 480 |
. . . . . . . . 9
⊢ ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ) → 𝑃 ∈
ℂ) |
12 | | nncn 11911 |
. . . . . . . . . 10
⊢ (𝑄 ∈ ℕ → 𝑄 ∈
ℂ) |
13 | 12 | adantl 481 |
. . . . . . . . 9
⊢ ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ) → 𝑄 ∈
ℂ) |
14 | | nnne0 11937 |
. . . . . . . . . 10
⊢ (𝑄 ∈ ℕ → 𝑄 ≠ 0) |
15 | 14 | adantl 481 |
. . . . . . . . 9
⊢ ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ) → 𝑄 ≠ 0) |
16 | 11, 13, 15 | divcld 11681 |
. . . . . . . 8
⊢ ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ) → (𝑃 / 𝑄) ∈ ℂ) |
17 | 16 | 3adant3 1130 |
. . . . . . 7
⊢ ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) → (𝑃 / 𝑄) ∈ ℂ) |
18 | 17 | adantl 481 |
. . . . . 6
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → (𝑃 / 𝑄) ∈ ℂ) |
19 | 3 | 3ad2ant2 1132 |
. . . . . . 7
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) → 𝑁 ∈ ℂ) |
20 | 19 | adantr 480 |
. . . . . 6
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → 𝑁 ∈ ℂ) |
21 | 5 | 3ad2ant2 1132 |
. . . . . . 7
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) → 𝑁 ≠ 0) |
22 | 21 | adantr 480 |
. . . . . 6
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → 𝑁 ≠ 0) |
23 | 9, 18, 20, 22 | mulcand 11538 |
. . . . 5
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑁 · (𝑀 / 𝑁)) = (𝑁 · (𝑃 / 𝑄)) ↔ (𝑀 / 𝑁) = (𝑃 / 𝑄))) |
24 | 2, 4, 6 | divcan2d 11683 |
. . . . . . . 8
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (𝑁 · (𝑀 / 𝑁)) = 𝑀) |
25 | 24 | 3adant3 1130 |
. . . . . . 7
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) → (𝑁 · (𝑀 / 𝑁)) = 𝑀) |
26 | 25 | adantr 480 |
. . . . . 6
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → (𝑁 · (𝑀 / 𝑁)) = 𝑀) |
27 | 26 | eqeq1d 2740 |
. . . . 5
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑁 · (𝑀 / 𝑁)) = (𝑁 · (𝑃 / 𝑄)) ↔ 𝑀 = (𝑁 · (𝑃 / 𝑄)))) |
28 | 23, 27 | bitr3d 280 |
. . . 4
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑀 / 𝑁) = (𝑃 / 𝑄) ↔ 𝑀 = (𝑁 · (𝑃 / 𝑄)))) |
29 | 1 | 3ad2ant1 1131 |
. . . . . . 7
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) → 𝑀 ∈ ℂ) |
30 | 29 | adantr 480 |
. . . . . 6
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → 𝑀 ∈ ℂ) |
31 | | mulcl 10886 |
. . . . . . 7
⊢ ((𝑁 ∈ ℂ ∧ (𝑃 / 𝑄) ∈ ℂ) → (𝑁 · (𝑃 / 𝑄)) ∈ ℂ) |
32 | 19, 17, 31 | syl2an 595 |
. . . . . 6
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → (𝑁 · (𝑃 / 𝑄)) ∈ ℂ) |
33 | 12 | 3ad2ant2 1132 |
. . . . . . 7
⊢ ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) → 𝑄 ∈ ℂ) |
34 | 33 | adantl 481 |
. . . . . 6
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → 𝑄 ∈ ℂ) |
35 | 14 | 3ad2ant2 1132 |
. . . . . . 7
⊢ ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) → 𝑄 ≠ 0) |
36 | 35 | adantl 481 |
. . . . . 6
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → 𝑄 ≠ 0) |
37 | 30, 32, 34, 36 | mulcan2d 11539 |
. . . . 5
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑀 · 𝑄) = ((𝑁 · (𝑃 / 𝑄)) · 𝑄) ↔ 𝑀 = (𝑁 · (𝑃 / 𝑄)))) |
38 | 20, 18, 34 | mulassd 10929 |
. . . . . . 7
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑁 · (𝑃 / 𝑄)) · 𝑄) = (𝑁 · ((𝑃 / 𝑄) · 𝑄))) |
39 | 11, 13, 15 | divcan1d 11682 |
. . . . . . . . . 10
⊢ ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ) → ((𝑃 / 𝑄) · 𝑄) = 𝑃) |
40 | 39 | 3adant3 1130 |
. . . . . . . . 9
⊢ ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) → ((𝑃 / 𝑄) · 𝑄) = 𝑃) |
41 | 40 | adantl 481 |
. . . . . . . 8
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑃 / 𝑄) · 𝑄) = 𝑃) |
42 | 41 | oveq2d 7271 |
. . . . . . 7
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → (𝑁 · ((𝑃 / 𝑄) · 𝑄)) = (𝑁 · 𝑃)) |
43 | 38, 42 | eqtrd 2778 |
. . . . . 6
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑁 · (𝑃 / 𝑄)) · 𝑄) = (𝑁 · 𝑃)) |
44 | 43 | eqeq2d 2749 |
. . . . 5
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑀 · 𝑄) = ((𝑁 · (𝑃 / 𝑄)) · 𝑄) ↔ (𝑀 · 𝑄) = (𝑁 · 𝑃))) |
45 | 37, 44 | bitr3d 280 |
. . . 4
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → (𝑀 = (𝑁 · (𝑃 / 𝑄)) ↔ (𝑀 · 𝑄) = (𝑁 · 𝑃))) |
46 | 28, 45 | bitrd 278 |
. . 3
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑀 / 𝑁) = (𝑃 / 𝑄) ↔ (𝑀 · 𝑄) = (𝑁 · 𝑃))) |
47 | | nnz 12272 |
. . . . . . . . . 10
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
ℤ) |
48 | 47 | 3ad2ant2 1132 |
. . . . . . . . 9
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) → 𝑁 ∈ ℤ) |
49 | | simp2 1135 |
. . . . . . . . 9
⊢ ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) → 𝑄 ∈ ℕ) |
50 | 48, 49 | anim12i 612 |
. . . . . . . 8
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → (𝑁 ∈ ℤ ∧ 𝑄 ∈ ℕ)) |
51 | 50 | adantr 480 |
. . . . . . 7
⊢ ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑁 ∈ ℤ ∧ 𝑄 ∈ ℕ)) |
52 | 48 | adantr 480 |
. . . . . . . . . 10
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → 𝑁 ∈ ℤ) |
53 | | simpl1 1189 |
. . . . . . . . . 10
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → 𝑀 ∈ ℤ) |
54 | | nnz 12272 |
. . . . . . . . . . . 12
⊢ (𝑄 ∈ ℕ → 𝑄 ∈
ℤ) |
55 | 54 | 3ad2ant2 1132 |
. . . . . . . . . . 11
⊢ ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) → 𝑄 ∈ ℤ) |
56 | 55 | adantl 481 |
. . . . . . . . . 10
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → 𝑄 ∈ ℤ) |
57 | 52, 53, 56 | 3jca 1126 |
. . . . . . . . 9
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℤ ∧ 𝑄 ∈ ℤ)) |
58 | 57 | adantr 480 |
. . . . . . . 8
⊢ ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℤ ∧ 𝑄 ∈ ℤ)) |
59 | | simp1 1134 |
. . . . . . . . . . . 12
⊢ ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) → 𝑃 ∈ ℤ) |
60 | | dvdsmul1 15915 |
. . . . . . . . . . . 12
⊢ ((𝑁 ∈ ℤ ∧ 𝑃 ∈ ℤ) → 𝑁 ∥ (𝑁 · 𝑃)) |
61 | 48, 59, 60 | syl2an 595 |
. . . . . . . . . . 11
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → 𝑁 ∥ (𝑁 · 𝑃)) |
62 | 61 | adantr 480 |
. . . . . . . . . 10
⊢ ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → 𝑁 ∥ (𝑁 · 𝑃)) |
63 | | simpr 484 |
. . . . . . . . . 10
⊢ ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑀 · 𝑄) = (𝑁 · 𝑃)) |
64 | 62, 63 | breqtrrd 5098 |
. . . . . . . . 9
⊢ ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → 𝑁 ∥ (𝑀 · 𝑄)) |
65 | | gcdcom 16148 |
. . . . . . . . . . . . . 14
⊢ ((𝑁 ∈ ℤ ∧ 𝑀 ∈ ℤ) → (𝑁 gcd 𝑀) = (𝑀 gcd 𝑁)) |
66 | 47, 65 | sylan 579 |
. . . . . . . . . . . . 13
⊢ ((𝑁 ∈ ℕ ∧ 𝑀 ∈ ℤ) → (𝑁 gcd 𝑀) = (𝑀 gcd 𝑁)) |
67 | 66 | ancoms 458 |
. . . . . . . . . . . 12
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (𝑁 gcd 𝑀) = (𝑀 gcd 𝑁)) |
68 | 67 | 3adant3 1130 |
. . . . . . . . . . 11
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) → (𝑁 gcd 𝑀) = (𝑀 gcd 𝑁)) |
69 | | simp3 1136 |
. . . . . . . . . . 11
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) → (𝑀 gcd 𝑁) = 1) |
70 | 68, 69 | eqtrd 2778 |
. . . . . . . . . 10
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) → (𝑁 gcd 𝑀) = 1) |
71 | 70 | ad2antrr 722 |
. . . . . . . . 9
⊢ ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑁 gcd 𝑀) = 1) |
72 | 64, 71 | jca 511 |
. . . . . . . 8
⊢ ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑁 ∥ (𝑀 · 𝑄) ∧ (𝑁 gcd 𝑀) = 1)) |
73 | | coprmdvds 16286 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℤ ∧ 𝑀 ∈ ℤ ∧ 𝑄 ∈ ℤ) → ((𝑁 ∥ (𝑀 · 𝑄) ∧ (𝑁 gcd 𝑀) = 1) → 𝑁 ∥ 𝑄)) |
74 | 58, 72, 73 | sylc 65 |
. . . . . . 7
⊢ ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → 𝑁 ∥ 𝑄) |
75 | | dvdsle 15947 |
. . . . . . 7
⊢ ((𝑁 ∈ ℤ ∧ 𝑄 ∈ ℕ) → (𝑁 ∥ 𝑄 → 𝑁 ≤ 𝑄)) |
76 | 51, 74, 75 | sylc 65 |
. . . . . 6
⊢ ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → 𝑁 ≤ 𝑄) |
77 | | simp2 1135 |
. . . . . . . . . 10
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) → 𝑁 ∈ ℕ) |
78 | 55, 77 | anim12i 612 |
. . . . . . . . 9
⊢ (((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) ∧ (𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1)) → (𝑄 ∈ ℤ ∧ 𝑁 ∈ ℕ)) |
79 | 78 | ancoms 458 |
. . . . . . . 8
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → (𝑄 ∈ ℤ ∧ 𝑁 ∈ ℕ)) |
80 | 79 | adantr 480 |
. . . . . . 7
⊢ ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑄 ∈ ℤ ∧ 𝑁 ∈ ℕ)) |
81 | | simpr1 1192 |
. . . . . . . . . 10
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → 𝑃 ∈ ℤ) |
82 | 56, 81, 52 | 3jca 1126 |
. . . . . . . . 9
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → (𝑄 ∈ ℤ ∧ 𝑃 ∈ ℤ ∧ 𝑁 ∈ ℤ)) |
83 | 82 | adantr 480 |
. . . . . . . 8
⊢ ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑄 ∈ ℤ ∧ 𝑃 ∈ ℤ ∧ 𝑁 ∈ ℤ)) |
84 | | simp1 1134 |
. . . . . . . . . . . 12
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) → 𝑀 ∈ ℤ) |
85 | | dvdsmul2 15916 |
. . . . . . . . . . . 12
⊢ ((𝑀 ∈ ℤ ∧ 𝑄 ∈ ℤ) → 𝑄 ∥ (𝑀 · 𝑄)) |
86 | 84, 55, 85 | syl2an 595 |
. . . . . . . . . . 11
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → 𝑄 ∥ (𝑀 · 𝑄)) |
87 | 86 | adantr 480 |
. . . . . . . . . 10
⊢ ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → 𝑄 ∥ (𝑀 · 𝑄)) |
88 | 10 | 3ad2ant1 1131 |
. . . . . . . . . . . . 13
⊢ ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) → 𝑃 ∈ ℂ) |
89 | | mulcom 10888 |
. . . . . . . . . . . . 13
⊢ ((𝑁 ∈ ℂ ∧ 𝑃 ∈ ℂ) → (𝑁 · 𝑃) = (𝑃 · 𝑁)) |
90 | 19, 88, 89 | syl2an 595 |
. . . . . . . . . . . 12
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → (𝑁 · 𝑃) = (𝑃 · 𝑁)) |
91 | 90 | adantr 480 |
. . . . . . . . . . 11
⊢ ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑁 · 𝑃) = (𝑃 · 𝑁)) |
92 | 63, 91 | eqtrd 2778 |
. . . . . . . . . 10
⊢ ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑀 · 𝑄) = (𝑃 · 𝑁)) |
93 | 87, 92 | breqtrd 5096 |
. . . . . . . . 9
⊢ ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → 𝑄 ∥ (𝑃 · 𝑁)) |
94 | | gcdcom 16148 |
. . . . . . . . . . . . . 14
⊢ ((𝑄 ∈ ℤ ∧ 𝑃 ∈ ℤ) → (𝑄 gcd 𝑃) = (𝑃 gcd 𝑄)) |
95 | 54, 94 | sylan 579 |
. . . . . . . . . . . . 13
⊢ ((𝑄 ∈ ℕ ∧ 𝑃 ∈ ℤ) → (𝑄 gcd 𝑃) = (𝑃 gcd 𝑄)) |
96 | 95 | ancoms 458 |
. . . . . . . . . . . 12
⊢ ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ) → (𝑄 gcd 𝑃) = (𝑃 gcd 𝑄)) |
97 | 96 | 3adant3 1130 |
. . . . . . . . . . 11
⊢ ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) → (𝑄 gcd 𝑃) = (𝑃 gcd 𝑄)) |
98 | | simp3 1136 |
. . . . . . . . . . 11
⊢ ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) → (𝑃 gcd 𝑄) = 1) |
99 | 97, 98 | eqtrd 2778 |
. . . . . . . . . 10
⊢ ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) → (𝑄 gcd 𝑃) = 1) |
100 | 99 | ad2antlr 723 |
. . . . . . . . 9
⊢ ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑄 gcd 𝑃) = 1) |
101 | 93, 100 | jca 511 |
. . . . . . . 8
⊢ ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑄 ∥ (𝑃 · 𝑁) ∧ (𝑄 gcd 𝑃) = 1)) |
102 | | coprmdvds 16286 |
. . . . . . . 8
⊢ ((𝑄 ∈ ℤ ∧ 𝑃 ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((𝑄 ∥ (𝑃 · 𝑁) ∧ (𝑄 gcd 𝑃) = 1) → 𝑄 ∥ 𝑁)) |
103 | 83, 101, 102 | sylc 65 |
. . . . . . 7
⊢ ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → 𝑄 ∥ 𝑁) |
104 | | dvdsle 15947 |
. . . . . . 7
⊢ ((𝑄 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (𝑄 ∥ 𝑁 → 𝑄 ≤ 𝑁)) |
105 | 80, 103, 104 | sylc 65 |
. . . . . 6
⊢ ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → 𝑄 ≤ 𝑁) |
106 | | nnre 11910 |
. . . . . . . . 9
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
ℝ) |
107 | 106 | 3ad2ant2 1132 |
. . . . . . . 8
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) → 𝑁 ∈ ℝ) |
108 | 107 | ad2antrr 722 |
. . . . . . 7
⊢ ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → 𝑁 ∈ ℝ) |
109 | | nnre 11910 |
. . . . . . . . 9
⊢ (𝑄 ∈ ℕ → 𝑄 ∈
ℝ) |
110 | 109 | 3ad2ant2 1132 |
. . . . . . . 8
⊢ ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) → 𝑄 ∈ ℝ) |
111 | 110 | ad2antlr 723 |
. . . . . . 7
⊢ ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → 𝑄 ∈ ℝ) |
112 | 108, 111 | letri3d 11047 |
. . . . . 6
⊢ ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑁 = 𝑄 ↔ (𝑁 ≤ 𝑄 ∧ 𝑄 ≤ 𝑁))) |
113 | 76, 105, 112 | mpbir2and 709 |
. . . . 5
⊢ ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → 𝑁 = 𝑄) |
114 | | oveq2 7263 |
. . . . . . . . . 10
⊢ (𝑁 = 𝑄 → (𝑀 · 𝑁) = (𝑀 · 𝑄)) |
115 | 114 | eqeq1d 2740 |
. . . . . . . . 9
⊢ (𝑁 = 𝑄 → ((𝑀 · 𝑁) = (𝑁 · 𝑃) ↔ (𝑀 · 𝑄) = (𝑁 · 𝑃))) |
116 | 115 | anbi2d 628 |
. . . . . . . 8
⊢ (𝑁 = 𝑄 → ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑁) = (𝑁 · 𝑃)) ↔ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)))) |
117 | | mulcom 10888 |
. . . . . . . . . . . . . 14
⊢ ((𝑀 ∈ ℂ ∧ 𝑁 ∈ ℂ) → (𝑀 · 𝑁) = (𝑁 · 𝑀)) |
118 | 1, 3, 117 | syl2an 595 |
. . . . . . . . . . . . 13
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (𝑀 · 𝑁) = (𝑁 · 𝑀)) |
119 | 118 | 3adant3 1130 |
. . . . . . . . . . . 12
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) → (𝑀 · 𝑁) = (𝑁 · 𝑀)) |
120 | 119 | adantr 480 |
. . . . . . . . . . 11
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → (𝑀 · 𝑁) = (𝑁 · 𝑀)) |
121 | 120 | eqeq1d 2740 |
. . . . . . . . . 10
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑀 · 𝑁) = (𝑁 · 𝑃) ↔ (𝑁 · 𝑀) = (𝑁 · 𝑃))) |
122 | 88 | adantl 481 |
. . . . . . . . . . 11
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → 𝑃 ∈ ℂ) |
123 | 30, 122, 20, 22 | mulcand 11538 |
. . . . . . . . . 10
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑁 · 𝑀) = (𝑁 · 𝑃) ↔ 𝑀 = 𝑃)) |
124 | 121, 123 | bitrd 278 |
. . . . . . . . 9
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑀 · 𝑁) = (𝑁 · 𝑃) ↔ 𝑀 = 𝑃)) |
125 | 124 | biimpa 476 |
. . . . . . . 8
⊢ ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑁) = (𝑁 · 𝑃)) → 𝑀 = 𝑃) |
126 | 116, 125 | syl6bir 253 |
. . . . . . 7
⊢ (𝑁 = 𝑄 → ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → 𝑀 = 𝑃)) |
127 | 126 | com12 32 |
. . . . . 6
⊢ ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑁 = 𝑄 → 𝑀 = 𝑃)) |
128 | 127 | ancrd 551 |
. . . . 5
⊢ ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑁 = 𝑄 → (𝑀 = 𝑃 ∧ 𝑁 = 𝑄))) |
129 | 113, 128 | mpd 15 |
. . . 4
⊢ ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑀 = 𝑃 ∧ 𝑁 = 𝑄)) |
130 | 129 | ex 412 |
. . 3
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑀 · 𝑄) = (𝑁 · 𝑃) → (𝑀 = 𝑃 ∧ 𝑁 = 𝑄))) |
131 | 46, 130 | sylbid 239 |
. 2
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑀 / 𝑁) = (𝑃 / 𝑄) → (𝑀 = 𝑃 ∧ 𝑁 = 𝑄))) |
132 | 131 | 3impia 1115 |
1
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) ∧ (𝑀 / 𝑁) = (𝑃 / 𝑄)) → (𝑀 = 𝑃 ∧ 𝑁 = 𝑄)) |