MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  qredeq Structured version   Visualization version   GIF version

Theorem qredeq 16290
Description: Two equal reduced fractions have the same numerator and denominator. (Contributed by Jeff Hankins, 29-Sep-2013.)
Assertion
Ref Expression
qredeq (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) ∧ (𝑀 / 𝑁) = (𝑃 / 𝑄)) → (𝑀 = 𝑃𝑁 = 𝑄))

Proof of Theorem qredeq
StepHypRef Expression
1 zcn 12254 . . . . . . . . . 10 (𝑀 ∈ ℤ → 𝑀 ∈ ℂ)
21adantr 480 . . . . . . . . 9 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → 𝑀 ∈ ℂ)
3 nncn 11911 . . . . . . . . . 10 (𝑁 ∈ ℕ → 𝑁 ∈ ℂ)
43adantl 481 . . . . . . . . 9 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → 𝑁 ∈ ℂ)
5 nnne0 11937 . . . . . . . . . 10 (𝑁 ∈ ℕ → 𝑁 ≠ 0)
65adantl 481 . . . . . . . . 9 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → 𝑁 ≠ 0)
72, 4, 6divcld 11681 . . . . . . . 8 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (𝑀 / 𝑁) ∈ ℂ)
873adant3 1130 . . . . . . 7 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) → (𝑀 / 𝑁) ∈ ℂ)
98adantr 480 . . . . . 6 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → (𝑀 / 𝑁) ∈ ℂ)
10 zcn 12254 . . . . . . . . . 10 (𝑃 ∈ ℤ → 𝑃 ∈ ℂ)
1110adantr 480 . . . . . . . . 9 ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ) → 𝑃 ∈ ℂ)
12 nncn 11911 . . . . . . . . . 10 (𝑄 ∈ ℕ → 𝑄 ∈ ℂ)
1312adantl 481 . . . . . . . . 9 ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ) → 𝑄 ∈ ℂ)
14 nnne0 11937 . . . . . . . . . 10 (𝑄 ∈ ℕ → 𝑄 ≠ 0)
1514adantl 481 . . . . . . . . 9 ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ) → 𝑄 ≠ 0)
1611, 13, 15divcld 11681 . . . . . . . 8 ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ) → (𝑃 / 𝑄) ∈ ℂ)
17163adant3 1130 . . . . . . 7 ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) → (𝑃 / 𝑄) ∈ ℂ)
1817adantl 481 . . . . . 6 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → (𝑃 / 𝑄) ∈ ℂ)
1933ad2ant2 1132 . . . . . . 7 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) → 𝑁 ∈ ℂ)
2019adantr 480 . . . . . 6 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → 𝑁 ∈ ℂ)
2153ad2ant2 1132 . . . . . . 7 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) → 𝑁 ≠ 0)
2221adantr 480 . . . . . 6 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → 𝑁 ≠ 0)
239, 18, 20, 22mulcand 11538 . . . . 5 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑁 · (𝑀 / 𝑁)) = (𝑁 · (𝑃 / 𝑄)) ↔ (𝑀 / 𝑁) = (𝑃 / 𝑄)))
242, 4, 6divcan2d 11683 . . . . . . . 8 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (𝑁 · (𝑀 / 𝑁)) = 𝑀)
25243adant3 1130 . . . . . . 7 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) → (𝑁 · (𝑀 / 𝑁)) = 𝑀)
2625adantr 480 . . . . . 6 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → (𝑁 · (𝑀 / 𝑁)) = 𝑀)
2726eqeq1d 2740 . . . . 5 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑁 · (𝑀 / 𝑁)) = (𝑁 · (𝑃 / 𝑄)) ↔ 𝑀 = (𝑁 · (𝑃 / 𝑄))))
2823, 27bitr3d 280 . . . 4 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑀 / 𝑁) = (𝑃 / 𝑄) ↔ 𝑀 = (𝑁 · (𝑃 / 𝑄))))
2913ad2ant1 1131 . . . . . . 7 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) → 𝑀 ∈ ℂ)
3029adantr 480 . . . . . 6 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → 𝑀 ∈ ℂ)
31 mulcl 10886 . . . . . . 7 ((𝑁 ∈ ℂ ∧ (𝑃 / 𝑄) ∈ ℂ) → (𝑁 · (𝑃 / 𝑄)) ∈ ℂ)
3219, 17, 31syl2an 595 . . . . . 6 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → (𝑁 · (𝑃 / 𝑄)) ∈ ℂ)
33123ad2ant2 1132 . . . . . . 7 ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) → 𝑄 ∈ ℂ)
3433adantl 481 . . . . . 6 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → 𝑄 ∈ ℂ)
35143ad2ant2 1132 . . . . . . 7 ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) → 𝑄 ≠ 0)
3635adantl 481 . . . . . 6 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → 𝑄 ≠ 0)
3730, 32, 34, 36mulcan2d 11539 . . . . 5 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑀 · 𝑄) = ((𝑁 · (𝑃 / 𝑄)) · 𝑄) ↔ 𝑀 = (𝑁 · (𝑃 / 𝑄))))
3820, 18, 34mulassd 10929 . . . . . . 7 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑁 · (𝑃 / 𝑄)) · 𝑄) = (𝑁 · ((𝑃 / 𝑄) · 𝑄)))
3911, 13, 15divcan1d 11682 . . . . . . . . . 10 ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ) → ((𝑃 / 𝑄) · 𝑄) = 𝑃)
40393adant3 1130 . . . . . . . . 9 ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) → ((𝑃 / 𝑄) · 𝑄) = 𝑃)
4140adantl 481 . . . . . . . 8 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑃 / 𝑄) · 𝑄) = 𝑃)
4241oveq2d 7271 . . . . . . 7 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → (𝑁 · ((𝑃 / 𝑄) · 𝑄)) = (𝑁 · 𝑃))
4338, 42eqtrd 2778 . . . . . 6 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑁 · (𝑃 / 𝑄)) · 𝑄) = (𝑁 · 𝑃))
4443eqeq2d 2749 . . . . 5 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑀 · 𝑄) = ((𝑁 · (𝑃 / 𝑄)) · 𝑄) ↔ (𝑀 · 𝑄) = (𝑁 · 𝑃)))
4537, 44bitr3d 280 . . . 4 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → (𝑀 = (𝑁 · (𝑃 / 𝑄)) ↔ (𝑀 · 𝑄) = (𝑁 · 𝑃)))
4628, 45bitrd 278 . . 3 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑀 / 𝑁) = (𝑃 / 𝑄) ↔ (𝑀 · 𝑄) = (𝑁 · 𝑃)))
47 nnz 12272 . . . . . . . . . 10 (𝑁 ∈ ℕ → 𝑁 ∈ ℤ)
48473ad2ant2 1132 . . . . . . . . 9 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) → 𝑁 ∈ ℤ)
49 simp2 1135 . . . . . . . . 9 ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) → 𝑄 ∈ ℕ)
5048, 49anim12i 612 . . . . . . . 8 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → (𝑁 ∈ ℤ ∧ 𝑄 ∈ ℕ))
5150adantr 480 . . . . . . 7 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑁 ∈ ℤ ∧ 𝑄 ∈ ℕ))
5248adantr 480 . . . . . . . . . 10 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → 𝑁 ∈ ℤ)
53 simpl1 1189 . . . . . . . . . 10 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → 𝑀 ∈ ℤ)
54 nnz 12272 . . . . . . . . . . . 12 (𝑄 ∈ ℕ → 𝑄 ∈ ℤ)
55543ad2ant2 1132 . . . . . . . . . . 11 ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) → 𝑄 ∈ ℤ)
5655adantl 481 . . . . . . . . . 10 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → 𝑄 ∈ ℤ)
5752, 53, 563jca 1126 . . . . . . . . 9 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℤ ∧ 𝑄 ∈ ℤ))
5857adantr 480 . . . . . . . 8 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℤ ∧ 𝑄 ∈ ℤ))
59 simp1 1134 . . . . . . . . . . . 12 ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) → 𝑃 ∈ ℤ)
60 dvdsmul1 15915 . . . . . . . . . . . 12 ((𝑁 ∈ ℤ ∧ 𝑃 ∈ ℤ) → 𝑁 ∥ (𝑁 · 𝑃))
6148, 59, 60syl2an 595 . . . . . . . . . . 11 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → 𝑁 ∥ (𝑁 · 𝑃))
6261adantr 480 . . . . . . . . . 10 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → 𝑁 ∥ (𝑁 · 𝑃))
63 simpr 484 . . . . . . . . . 10 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑀 · 𝑄) = (𝑁 · 𝑃))
6462, 63breqtrrd 5098 . . . . . . . . 9 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → 𝑁 ∥ (𝑀 · 𝑄))
65 gcdcom 16148 . . . . . . . . . . . . . 14 ((𝑁 ∈ ℤ ∧ 𝑀 ∈ ℤ) → (𝑁 gcd 𝑀) = (𝑀 gcd 𝑁))
6647, 65sylan 579 . . . . . . . . . . . . 13 ((𝑁 ∈ ℕ ∧ 𝑀 ∈ ℤ) → (𝑁 gcd 𝑀) = (𝑀 gcd 𝑁))
6766ancoms 458 . . . . . . . . . . . 12 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (𝑁 gcd 𝑀) = (𝑀 gcd 𝑁))
68673adant3 1130 . . . . . . . . . . 11 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) → (𝑁 gcd 𝑀) = (𝑀 gcd 𝑁))
69 simp3 1136 . . . . . . . . . . 11 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) → (𝑀 gcd 𝑁) = 1)
7068, 69eqtrd 2778 . . . . . . . . . 10 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) → (𝑁 gcd 𝑀) = 1)
7170ad2antrr 722 . . . . . . . . 9 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑁 gcd 𝑀) = 1)
7264, 71jca 511 . . . . . . . 8 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑁 ∥ (𝑀 · 𝑄) ∧ (𝑁 gcd 𝑀) = 1))
73 coprmdvds 16286 . . . . . . . 8 ((𝑁 ∈ ℤ ∧ 𝑀 ∈ ℤ ∧ 𝑄 ∈ ℤ) → ((𝑁 ∥ (𝑀 · 𝑄) ∧ (𝑁 gcd 𝑀) = 1) → 𝑁𝑄))
7458, 72, 73sylc 65 . . . . . . 7 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → 𝑁𝑄)
75 dvdsle 15947 . . . . . . 7 ((𝑁 ∈ ℤ ∧ 𝑄 ∈ ℕ) → (𝑁𝑄𝑁𝑄))
7651, 74, 75sylc 65 . . . . . 6 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → 𝑁𝑄)
77 simp2 1135 . . . . . . . . . 10 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) → 𝑁 ∈ ℕ)
7855, 77anim12i 612 . . . . . . . . 9 (((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) ∧ (𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1)) → (𝑄 ∈ ℤ ∧ 𝑁 ∈ ℕ))
7978ancoms 458 . . . . . . . 8 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → (𝑄 ∈ ℤ ∧ 𝑁 ∈ ℕ))
8079adantr 480 . . . . . . 7 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑄 ∈ ℤ ∧ 𝑁 ∈ ℕ))
81 simpr1 1192 . . . . . . . . . 10 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → 𝑃 ∈ ℤ)
8256, 81, 523jca 1126 . . . . . . . . 9 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → (𝑄 ∈ ℤ ∧ 𝑃 ∈ ℤ ∧ 𝑁 ∈ ℤ))
8382adantr 480 . . . . . . . 8 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑄 ∈ ℤ ∧ 𝑃 ∈ ℤ ∧ 𝑁 ∈ ℤ))
84 simp1 1134 . . . . . . . . . . . 12 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) → 𝑀 ∈ ℤ)
85 dvdsmul2 15916 . . . . . . . . . . . 12 ((𝑀 ∈ ℤ ∧ 𝑄 ∈ ℤ) → 𝑄 ∥ (𝑀 · 𝑄))
8684, 55, 85syl2an 595 . . . . . . . . . . 11 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → 𝑄 ∥ (𝑀 · 𝑄))
8786adantr 480 . . . . . . . . . 10 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → 𝑄 ∥ (𝑀 · 𝑄))
88103ad2ant1 1131 . . . . . . . . . . . . 13 ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) → 𝑃 ∈ ℂ)
89 mulcom 10888 . . . . . . . . . . . . 13 ((𝑁 ∈ ℂ ∧ 𝑃 ∈ ℂ) → (𝑁 · 𝑃) = (𝑃 · 𝑁))
9019, 88, 89syl2an 595 . . . . . . . . . . . 12 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → (𝑁 · 𝑃) = (𝑃 · 𝑁))
9190adantr 480 . . . . . . . . . . 11 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑁 · 𝑃) = (𝑃 · 𝑁))
9263, 91eqtrd 2778 . . . . . . . . . 10 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑀 · 𝑄) = (𝑃 · 𝑁))
9387, 92breqtrd 5096 . . . . . . . . 9 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → 𝑄 ∥ (𝑃 · 𝑁))
94 gcdcom 16148 . . . . . . . . . . . . . 14 ((𝑄 ∈ ℤ ∧ 𝑃 ∈ ℤ) → (𝑄 gcd 𝑃) = (𝑃 gcd 𝑄))
9554, 94sylan 579 . . . . . . . . . . . . 13 ((𝑄 ∈ ℕ ∧ 𝑃 ∈ ℤ) → (𝑄 gcd 𝑃) = (𝑃 gcd 𝑄))
9695ancoms 458 . . . . . . . . . . . 12 ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ) → (𝑄 gcd 𝑃) = (𝑃 gcd 𝑄))
97963adant3 1130 . . . . . . . . . . 11 ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) → (𝑄 gcd 𝑃) = (𝑃 gcd 𝑄))
98 simp3 1136 . . . . . . . . . . 11 ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) → (𝑃 gcd 𝑄) = 1)
9997, 98eqtrd 2778 . . . . . . . . . 10 ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) → (𝑄 gcd 𝑃) = 1)
10099ad2antlr 723 . . . . . . . . 9 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑄 gcd 𝑃) = 1)
10193, 100jca 511 . . . . . . . 8 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑄 ∥ (𝑃 · 𝑁) ∧ (𝑄 gcd 𝑃) = 1))
102 coprmdvds 16286 . . . . . . . 8 ((𝑄 ∈ ℤ ∧ 𝑃 ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((𝑄 ∥ (𝑃 · 𝑁) ∧ (𝑄 gcd 𝑃) = 1) → 𝑄𝑁))
10383, 101, 102sylc 65 . . . . . . 7 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → 𝑄𝑁)
104 dvdsle 15947 . . . . . . 7 ((𝑄 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (𝑄𝑁𝑄𝑁))
10580, 103, 104sylc 65 . . . . . 6 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → 𝑄𝑁)
106 nnre 11910 . . . . . . . . 9 (𝑁 ∈ ℕ → 𝑁 ∈ ℝ)
1071063ad2ant2 1132 . . . . . . . 8 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) → 𝑁 ∈ ℝ)
108107ad2antrr 722 . . . . . . 7 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → 𝑁 ∈ ℝ)
109 nnre 11910 . . . . . . . . 9 (𝑄 ∈ ℕ → 𝑄 ∈ ℝ)
1101093ad2ant2 1132 . . . . . . . 8 ((𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) → 𝑄 ∈ ℝ)
111110ad2antlr 723 . . . . . . 7 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → 𝑄 ∈ ℝ)
112108, 111letri3d 11047 . . . . . 6 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑁 = 𝑄 ↔ (𝑁𝑄𝑄𝑁)))
11376, 105, 112mpbir2and 709 . . . . 5 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → 𝑁 = 𝑄)
114 oveq2 7263 . . . . . . . . . 10 (𝑁 = 𝑄 → (𝑀 · 𝑁) = (𝑀 · 𝑄))
115114eqeq1d 2740 . . . . . . . . 9 (𝑁 = 𝑄 → ((𝑀 · 𝑁) = (𝑁 · 𝑃) ↔ (𝑀 · 𝑄) = (𝑁 · 𝑃)))
116115anbi2d 628 . . . . . . . 8 (𝑁 = 𝑄 → ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑁) = (𝑁 · 𝑃)) ↔ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃))))
117 mulcom 10888 . . . . . . . . . . . . . 14 ((𝑀 ∈ ℂ ∧ 𝑁 ∈ ℂ) → (𝑀 · 𝑁) = (𝑁 · 𝑀))
1181, 3, 117syl2an 595 . . . . . . . . . . . . 13 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (𝑀 · 𝑁) = (𝑁 · 𝑀))
1191183adant3 1130 . . . . . . . . . . . 12 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) → (𝑀 · 𝑁) = (𝑁 · 𝑀))
120119adantr 480 . . . . . . . . . . 11 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → (𝑀 · 𝑁) = (𝑁 · 𝑀))
121120eqeq1d 2740 . . . . . . . . . 10 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑀 · 𝑁) = (𝑁 · 𝑃) ↔ (𝑁 · 𝑀) = (𝑁 · 𝑃)))
12288adantl 481 . . . . . . . . . . 11 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → 𝑃 ∈ ℂ)
12330, 122, 20, 22mulcand 11538 . . . . . . . . . 10 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑁 · 𝑀) = (𝑁 · 𝑃) ↔ 𝑀 = 𝑃))
124121, 123bitrd 278 . . . . . . . . 9 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑀 · 𝑁) = (𝑁 · 𝑃) ↔ 𝑀 = 𝑃))
125124biimpa 476 . . . . . . . 8 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑁) = (𝑁 · 𝑃)) → 𝑀 = 𝑃)
126116, 125syl6bir 253 . . . . . . 7 (𝑁 = 𝑄 → ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → 𝑀 = 𝑃))
127126com12 32 . . . . . 6 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑁 = 𝑄𝑀 = 𝑃))
128127ancrd 551 . . . . 5 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑁 = 𝑄 → (𝑀 = 𝑃𝑁 = 𝑄)))
129113, 128mpd 15 . . . 4 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) ∧ (𝑀 · 𝑄) = (𝑁 · 𝑃)) → (𝑀 = 𝑃𝑁 = 𝑄))
130129ex 412 . . 3 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑀 · 𝑄) = (𝑁 · 𝑃) → (𝑀 = 𝑃𝑁 = 𝑄)))
13146, 130sylbid 239 . 2 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1)) → ((𝑀 / 𝑁) = (𝑃 / 𝑄) → (𝑀 = 𝑃𝑁 = 𝑄)))
1321313impia 1115 1 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ (𝑀 gcd 𝑁) = 1) ∧ (𝑃 ∈ ℤ ∧ 𝑄 ∈ ℕ ∧ (𝑃 gcd 𝑄) = 1) ∧ (𝑀 / 𝑁) = (𝑃 / 𝑄)) → (𝑀 = 𝑃𝑁 = 𝑄))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395  w3a 1085   = wceq 1539  wcel 2108  wne 2942   class class class wbr 5070  (class class class)co 7255  cc 10800  cr 10801  0cc0 10802  1c1 10803   · cmul 10807  cle 10941   / cdiv 11562  cn 11903  cz 12249  cdvds 15891   gcd cgcd 16129
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879  ax-pre-sup 10880
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-reu 3070  df-rmo 3071  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-er 8456  df-en 8692  df-dom 8693  df-sdom 8694  df-sup 9131  df-inf 9132  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-div 11563  df-nn 11904  df-2 11966  df-3 11967  df-n0 12164  df-z 12250  df-uz 12512  df-rp 12660  df-fl 13440  df-mod 13518  df-seq 13650  df-exp 13711  df-cj 14738  df-re 14739  df-im 14740  df-sqrt 14874  df-abs 14875  df-dvds 15892  df-gcd 16130
This theorem is referenced by:  qredeu  16291
  Copyright terms: Public domain W3C validator