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

Theorem qredeu 15702
 Description: Every rational number has a unique reduced form. (Contributed by Jeff Hankins, 29-Sep-2013.)
Assertion
Ref Expression
qredeu (𝐴 ∈ ℚ → ∃!𝑥 ∈ (ℤ × ℕ)(((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))))
Distinct variable group:   𝑥,𝐴

Proof of Theorem qredeu
Dummy variables 𝑛 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 nnz 11685 . . . . . . . . . 10 (𝑛 ∈ ℕ → 𝑛 ∈ ℤ)
2 gcddvds 15556 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℤ) → ((𝑧 gcd 𝑛) ∥ 𝑧 ∧ (𝑧 gcd 𝑛) ∥ 𝑛))
32simpld 489 . . . . . . . . . 10 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℤ) → (𝑧 gcd 𝑛) ∥ 𝑧)
41, 3sylan2 587 . . . . . . . . 9 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑧 gcd 𝑛) ∥ 𝑧)
5 gcdcl 15559 . . . . . . . . . . . 12 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℤ) → (𝑧 gcd 𝑛) ∈ ℕ0)
61, 5sylan2 587 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑧 gcd 𝑛) ∈ ℕ0)
76nn0zd 11766 . . . . . . . . . 10 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑧 gcd 𝑛) ∈ ℤ)
8 simpl 475 . . . . . . . . . . . 12 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 𝑧 ∈ ℤ)
91adantl 474 . . . . . . . . . . . 12 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 𝑛 ∈ ℤ)
10 nnne0 11347 . . . . . . . . . . . . . . 15 (𝑛 ∈ ℕ → 𝑛 ≠ 0)
1110neneqd 2974 . . . . . . . . . . . . . 14 (𝑛 ∈ ℕ → ¬ 𝑛 = 0)
1211intnand 483 . . . . . . . . . . . . 13 (𝑛 ∈ ℕ → ¬ (𝑧 = 0 ∧ 𝑛 = 0))
1312adantl 474 . . . . . . . . . . . 12 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ¬ (𝑧 = 0 ∧ 𝑛 = 0))
14 gcdn0cl 15555 . . . . . . . . . . . 12 (((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℤ) ∧ ¬ (𝑧 = 0 ∧ 𝑛 = 0)) → (𝑧 gcd 𝑛) ∈ ℕ)
158, 9, 13, 14syl21anc 867 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑧 gcd 𝑛) ∈ ℕ)
16 nnne0 11347 . . . . . . . . . . 11 ((𝑧 gcd 𝑛) ∈ ℕ → (𝑧 gcd 𝑛) ≠ 0)
1715, 16syl 17 . . . . . . . . . 10 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑧 gcd 𝑛) ≠ 0)
18 dvdsval2 15318 . . . . . . . . . 10 (((𝑧 gcd 𝑛) ∈ ℤ ∧ (𝑧 gcd 𝑛) ≠ 0 ∧ 𝑧 ∈ ℤ) → ((𝑧 gcd 𝑛) ∥ 𝑧 ↔ (𝑧 / (𝑧 gcd 𝑛)) ∈ ℤ))
197, 17, 8, 18syl3anc 1491 . . . . . . . . 9 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 gcd 𝑛) ∥ 𝑧 ↔ (𝑧 / (𝑧 gcd 𝑛)) ∈ ℤ))
204, 19mpbid 224 . . . . . . . 8 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑧 / (𝑧 gcd 𝑛)) ∈ ℤ)
21203adant3 1163 . . . . . . 7 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ ∧ 𝐴 = (𝑧 / 𝑛)) → (𝑧 / (𝑧 gcd 𝑛)) ∈ ℤ)
222simprd 490 . . . . . . . . . . . 12 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℤ) → (𝑧 gcd 𝑛) ∥ 𝑛)
231, 22sylan2 587 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑧 gcd 𝑛) ∥ 𝑛)
24 dvdsval2 15318 . . . . . . . . . . . 12 (((𝑧 gcd 𝑛) ∈ ℤ ∧ (𝑧 gcd 𝑛) ≠ 0 ∧ 𝑛 ∈ ℤ) → ((𝑧 gcd 𝑛) ∥ 𝑛 ↔ (𝑛 / (𝑧 gcd 𝑛)) ∈ ℤ))
257, 17, 9, 24syl3anc 1491 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 gcd 𝑛) ∥ 𝑛 ↔ (𝑛 / (𝑧 gcd 𝑛)) ∈ ℤ))
2623, 25mpbid 224 . . . . . . . . . 10 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑛 / (𝑧 gcd 𝑛)) ∈ ℤ)
27 nnre 11318 . . . . . . . . . . . 12 (𝑛 ∈ ℕ → 𝑛 ∈ ℝ)
2827adantl 474 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 𝑛 ∈ ℝ)
296nn0red 11637 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑧 gcd 𝑛) ∈ ℝ)
30 nngt0 11343 . . . . . . . . . . . 12 (𝑛 ∈ ℕ → 0 < 𝑛)
3130adantl 474 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 0 < 𝑛)
32 nngt0 11343 . . . . . . . . . . . 12 ((𝑧 gcd 𝑛) ∈ ℕ → 0 < (𝑧 gcd 𝑛))
3315, 32syl 17 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 0 < (𝑧 gcd 𝑛))
3428, 29, 31, 33divgt0d 11249 . . . . . . . . . 10 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 0 < (𝑛 / (𝑧 gcd 𝑛)))
3526, 34jca 508 . . . . . . . . 9 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑛 / (𝑧 gcd 𝑛)) ∈ ℤ ∧ 0 < (𝑛 / (𝑧 gcd 𝑛))))
36353adant3 1163 . . . . . . . 8 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ ∧ 𝐴 = (𝑧 / 𝑛)) → ((𝑛 / (𝑧 gcd 𝑛)) ∈ ℤ ∧ 0 < (𝑛 / (𝑧 gcd 𝑛))))
37 elnnz 11672 . . . . . . . 8 ((𝑛 / (𝑧 gcd 𝑛)) ∈ ℕ ↔ ((𝑛 / (𝑧 gcd 𝑛)) ∈ ℤ ∧ 0 < (𝑛 / (𝑧 gcd 𝑛))))
3836, 37sylibr 226 . . . . . . 7 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ ∧ 𝐴 = (𝑧 / 𝑛)) → (𝑛 / (𝑧 gcd 𝑛)) ∈ ℕ)
3921, 38opelxpd 5348 . . . . . 6 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ ∧ 𝐴 = (𝑧 / 𝑛)) → ⟨(𝑧 / (𝑧 gcd 𝑛)), (𝑛 / (𝑧 gcd 𝑛))⟩ ∈ (ℤ × ℕ))
4020, 26gcdcld 15561 . . . . . . . . 9 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛))) ∈ ℕ0)
4140nn0cnd 11638 . . . . . . . 8 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛))) ∈ ℂ)
42 1cnd 10321 . . . . . . . 8 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 1 ∈ ℂ)
436nn0cnd 11638 . . . . . . . 8 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑧 gcd 𝑛) ∈ ℂ)
4443mulid1d 10344 . . . . . . . . 9 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 gcd 𝑛) · 1) = (𝑧 gcd 𝑛))
45 zcn 11667 . . . . . . . . . . . 12 (𝑧 ∈ ℤ → 𝑧 ∈ ℂ)
4645adantr 473 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 𝑧 ∈ ℂ)
4746, 43, 17divcan2d 11093 . . . . . . . . . 10 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 gcd 𝑛) · (𝑧 / (𝑧 gcd 𝑛))) = 𝑧)
48 nncn 11319 . . . . . . . . . . . 12 (𝑛 ∈ ℕ → 𝑛 ∈ ℂ)
4948adantl 474 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 𝑛 ∈ ℂ)
5049, 43, 17divcan2d 11093 . . . . . . . . . 10 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 gcd 𝑛) · (𝑛 / (𝑧 gcd 𝑛))) = 𝑛)
5147, 50oveq12d 6894 . . . . . . . . 9 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (((𝑧 gcd 𝑛) · (𝑧 / (𝑧 gcd 𝑛))) gcd ((𝑧 gcd 𝑛) · (𝑛 / (𝑧 gcd 𝑛)))) = (𝑧 gcd 𝑛))
52 mulgcd 15596 . . . . . . . . . 10 (((𝑧 gcd 𝑛) ∈ ℕ0 ∧ (𝑧 / (𝑧 gcd 𝑛)) ∈ ℤ ∧ (𝑛 / (𝑧 gcd 𝑛)) ∈ ℤ) → (((𝑧 gcd 𝑛) · (𝑧 / (𝑧 gcd 𝑛))) gcd ((𝑧 gcd 𝑛) · (𝑛 / (𝑧 gcd 𝑛)))) = ((𝑧 gcd 𝑛) · ((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛)))))
536, 20, 26, 52syl3anc 1491 . . . . . . . . 9 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (((𝑧 gcd 𝑛) · (𝑧 / (𝑧 gcd 𝑛))) gcd ((𝑧 gcd 𝑛) · (𝑛 / (𝑧 gcd 𝑛)))) = ((𝑧 gcd 𝑛) · ((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛)))))
5444, 51, 533eqtr2rd 2838 . . . . . . . 8 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 gcd 𝑛) · ((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛)))) = ((𝑧 gcd 𝑛) · 1))
5541, 42, 43, 17, 54mulcanad 10952 . . . . . . 7 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛))) = 1)
56553adant3 1163 . . . . . 6 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ ∧ 𝐴 = (𝑧 / 𝑛)) → ((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛))) = 1)
5710adantl 474 . . . . . . . . 9 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 𝑛 ≠ 0)
5846, 49, 43, 57, 17divcan7d 11119 . . . . . . . 8 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 / (𝑧 gcd 𝑛)) / (𝑛 / (𝑧 gcd 𝑛))) = (𝑧 / 𝑛))
5958eqeq2d 2807 . . . . . . 7 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝐴 = ((𝑧 / (𝑧 gcd 𝑛)) / (𝑛 / (𝑧 gcd 𝑛))) ↔ 𝐴 = (𝑧 / 𝑛)))
6059biimp3ar 1595 . . . . . 6 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ ∧ 𝐴 = (𝑧 / 𝑛)) → 𝐴 = ((𝑧 / (𝑧 gcd 𝑛)) / (𝑛 / (𝑧 gcd 𝑛))))
61 ovex 6908 . . . . . . . . . . 11 (𝑧 / (𝑧 gcd 𝑛)) ∈ V
62 ovex 6908 . . . . . . . . . . 11 (𝑛 / (𝑧 gcd 𝑛)) ∈ V
6361, 62op1std 7409 . . . . . . . . . 10 (𝑥 = ⟨(𝑧 / (𝑧 gcd 𝑛)), (𝑛 / (𝑧 gcd 𝑛))⟩ → (1st𝑥) = (𝑧 / (𝑧 gcd 𝑛)))
6461, 62op2ndd 7410 . . . . . . . . . 10 (𝑥 = ⟨(𝑧 / (𝑧 gcd 𝑛)), (𝑛 / (𝑧 gcd 𝑛))⟩ → (2nd𝑥) = (𝑛 / (𝑧 gcd 𝑛)))
6563, 64oveq12d 6894 . . . . . . . . 9 (𝑥 = ⟨(𝑧 / (𝑧 gcd 𝑛)), (𝑛 / (𝑧 gcd 𝑛))⟩ → ((1st𝑥) gcd (2nd𝑥)) = ((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛))))
6665eqeq1d 2799 . . . . . . . 8 (𝑥 = ⟨(𝑧 / (𝑧 gcd 𝑛)), (𝑛 / (𝑧 gcd 𝑛))⟩ → (((1st𝑥) gcd (2nd𝑥)) = 1 ↔ ((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛))) = 1))
6763, 64oveq12d 6894 . . . . . . . . 9 (𝑥 = ⟨(𝑧 / (𝑧 gcd 𝑛)), (𝑛 / (𝑧 gcd 𝑛))⟩ → ((1st𝑥) / (2nd𝑥)) = ((𝑧 / (𝑧 gcd 𝑛)) / (𝑛 / (𝑧 gcd 𝑛))))
6867eqeq2d 2807 . . . . . . . 8 (𝑥 = ⟨(𝑧 / (𝑧 gcd 𝑛)), (𝑛 / (𝑧 gcd 𝑛))⟩ → (𝐴 = ((1st𝑥) / (2nd𝑥)) ↔ 𝐴 = ((𝑧 / (𝑧 gcd 𝑛)) / (𝑛 / (𝑧 gcd 𝑛)))))
6966, 68anbi12d 625 . . . . . . 7 (𝑥 = ⟨(𝑧 / (𝑧 gcd 𝑛)), (𝑛 / (𝑧 gcd 𝑛))⟩ → ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ↔ (((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛))) = 1 ∧ 𝐴 = ((𝑧 / (𝑧 gcd 𝑛)) / (𝑛 / (𝑧 gcd 𝑛))))))
7069rspcev 3495 . . . . . 6 ((⟨(𝑧 / (𝑧 gcd 𝑛)), (𝑛 / (𝑧 gcd 𝑛))⟩ ∈ (ℤ × ℕ) ∧ (((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛))) = 1 ∧ 𝐴 = ((𝑧 / (𝑧 gcd 𝑛)) / (𝑛 / (𝑧 gcd 𝑛))))) → ∃𝑥 ∈ (ℤ × ℕ)(((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))))
7139, 56, 60, 70syl12anc 866 . . . . 5 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ ∧ 𝐴 = (𝑧 / 𝑛)) → ∃𝑥 ∈ (ℤ × ℕ)(((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))))
72 elxp6 7433 . . . . . . 7 (𝑥 ∈ (ℤ × ℕ) ↔ (𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)))
73 elxp6 7433 . . . . . . 7 (𝑦 ∈ (ℤ × ℕ) ↔ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ)))
74 simprl 788 . . . . . . . . . . . 12 ((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) → (1st𝑥) ∈ ℤ)
7574ad2antrr 718 . . . . . . . . . . 11 ((((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) ∧ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ))) ∧ ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦))))) → (1st𝑥) ∈ ℤ)
76 simprr 790 . . . . . . . . . . . 12 ((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) → (2nd𝑥) ∈ ℕ)
7776ad2antrr 718 . . . . . . . . . . 11 ((((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) ∧ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ))) ∧ ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦))))) → (2nd𝑥) ∈ ℕ)
78 simprll 798 . . . . . . . . . . 11 ((((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) ∧ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ))) ∧ ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦))))) → ((1st𝑥) gcd (2nd𝑥)) = 1)
79 simprl 788 . . . . . . . . . . . 12 ((𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ)) → (1st𝑦) ∈ ℤ)
8079ad2antlr 719 . . . . . . . . . . 11 ((((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) ∧ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ))) ∧ ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦))))) → (1st𝑦) ∈ ℤ)
81 simprr 790 . . . . . . . . . . . 12 ((𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ)) → (2nd𝑦) ∈ ℕ)
8281ad2antlr 719 . . . . . . . . . . 11 ((((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) ∧ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ))) ∧ ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦))))) → (2nd𝑦) ∈ ℕ)
83 simprrl 800 . . . . . . . . . . 11 ((((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) ∧ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ))) ∧ ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦))))) → ((1st𝑦) gcd (2nd𝑦)) = 1)
84 simprlr 799 . . . . . . . . . . . 12 ((((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) ∧ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ))) ∧ ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦))))) → 𝐴 = ((1st𝑥) / (2nd𝑥)))
85 simprrr 801 . . . . . . . . . . . 12 ((((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) ∧ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ))) ∧ ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦))))) → 𝐴 = ((1st𝑦) / (2nd𝑦)))
8684, 85eqtr3d 2833 . . . . . . . . . . 11 ((((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) ∧ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ))) ∧ ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦))))) → ((1st𝑥) / (2nd𝑥)) = ((1st𝑦) / (2nd𝑦)))
87 qredeq 15701 . . . . . . . . . . 11 ((((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ ∧ ((1st𝑥) gcd (2nd𝑥)) = 1) ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ ∧ ((1st𝑦) gcd (2nd𝑦)) = 1) ∧ ((1st𝑥) / (2nd𝑥)) = ((1st𝑦) / (2nd𝑦))) → ((1st𝑥) = (1st𝑦) ∧ (2nd𝑥) = (2nd𝑦)))
8875, 77, 78, 80, 82, 83, 86, 87syl331anc 1515 . . . . . . . . . 10 ((((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) ∧ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ))) ∧ ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦))))) → ((1st𝑥) = (1st𝑦) ∧ (2nd𝑥) = (2nd𝑦)))
89 fvex 6422 . . . . . . . . . . 11 (1st𝑥) ∈ V
90 fvex 6422 . . . . . . . . . . 11 (2nd𝑥) ∈ V
9189, 90opth 5133 . . . . . . . . . 10 (⟨(1st𝑥), (2nd𝑥)⟩ = ⟨(1st𝑦), (2nd𝑦)⟩ ↔ ((1st𝑥) = (1st𝑦) ∧ (2nd𝑥) = (2nd𝑦)))
9288, 91sylibr 226 . . . . . . . . 9 ((((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) ∧ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ))) ∧ ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦))))) → ⟨(1st𝑥), (2nd𝑥)⟩ = ⟨(1st𝑦), (2nd𝑦)⟩)
93 simplll 792 . . . . . . . . 9 ((((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) ∧ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ))) ∧ ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦))))) → 𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩)
94 simplrl 796 . . . . . . . . 9 ((((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) ∧ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ))) ∧ ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦))))) → 𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩)
9592, 93, 943eqtr4d 2841 . . . . . . . 8 ((((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) ∧ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ))) ∧ ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦))))) → 𝑥 = 𝑦)
9695ex 402 . . . . . . 7 (((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) ∧ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ))) → (((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦)))) → 𝑥 = 𝑦))
9772, 73, 96syl2anb 592 . . . . . 6 ((𝑥 ∈ (ℤ × ℕ) ∧ 𝑦 ∈ (ℤ × ℕ)) → (((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦)))) → 𝑥 = 𝑦))
9897rgen2a 3156 . . . . 5 𝑥 ∈ (ℤ × ℕ)∀𝑦 ∈ (ℤ × ℕ)(((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦)))) → 𝑥 = 𝑦)
9971, 98jctir 517 . . . 4 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ ∧ 𝐴 = (𝑧 / 𝑛)) → (∃𝑥 ∈ (ℤ × ℕ)(((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ ∀𝑥 ∈ (ℤ × ℕ)∀𝑦 ∈ (ℤ × ℕ)(((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦)))) → 𝑥 = 𝑦)))
100993expia 1151 . . 3 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝐴 = (𝑧 / 𝑛) → (∃𝑥 ∈ (ℤ × ℕ)(((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ ∀𝑥 ∈ (ℤ × ℕ)∀𝑦 ∈ (ℤ × ℕ)(((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦)))) → 𝑥 = 𝑦))))
101100rexlimivv 3215 . 2 (∃𝑧 ∈ ℤ ∃𝑛 ∈ ℕ 𝐴 = (𝑧 / 𝑛) → (∃𝑥 ∈ (ℤ × ℕ)(((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ ∀𝑥 ∈ (ℤ × ℕ)∀𝑦 ∈ (ℤ × ℕ)(((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦)))) → 𝑥 = 𝑦)))
102 elq 12031 . 2 (𝐴 ∈ ℚ ↔ ∃𝑧 ∈ ℤ ∃𝑛 ∈ ℕ 𝐴 = (𝑧 / 𝑛))
103 fveq2 6409 . . . . . 6 (𝑥 = 𝑦 → (1st𝑥) = (1st𝑦))
104 fveq2 6409 . . . . . 6 (𝑥 = 𝑦 → (2nd𝑥) = (2nd𝑦))
105103, 104oveq12d 6894 . . . . 5 (𝑥 = 𝑦 → ((1st𝑥) gcd (2nd𝑥)) = ((1st𝑦) gcd (2nd𝑦)))
106105eqeq1d 2799 . . . 4 (𝑥 = 𝑦 → (((1st𝑥) gcd (2nd𝑥)) = 1 ↔ ((1st𝑦) gcd (2nd𝑦)) = 1))
107103, 104oveq12d 6894 . . . . 5 (𝑥 = 𝑦 → ((1st𝑥) / (2nd𝑥)) = ((1st𝑦) / (2nd𝑦)))
108107eqeq2d 2807 . . . 4 (𝑥 = 𝑦 → (𝐴 = ((1st𝑥) / (2nd𝑥)) ↔ 𝐴 = ((1st𝑦) / (2nd𝑦))))
109106, 108anbi12d 625 . . 3 (𝑥 = 𝑦 → ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ↔ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦)))))
110109reu4 3594 . 2 (∃!𝑥 ∈ (ℤ × ℕ)(((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ↔ (∃𝑥 ∈ (ℤ × ℕ)(((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ ∀𝑥 ∈ (ℤ × ℕ)∀𝑦 ∈ (ℤ × ℕ)(((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦)))) → 𝑥 = 𝑦)))
111101, 102, 1103imtr4i 284 1 (𝐴 ∈ ℚ → ∃!𝑥 ∈ (ℤ × ℕ)(((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))))
 Colors of variables: wff setvar class Syntax hints:  ¬ wn 3   → wi 4   ↔ wb 198   ∧ wa 385   ∧ w3a 1108   = wceq 1653   ∈ wcel 2157   ≠ wne 2969  ∀wral 3087  ∃wrex 3088  ∃!wreu 3089  ⟨cop 4372   class class class wbr 4841   × cxp 5308  ‘cfv 6099  (class class class)co 6876  1st c1st 7397  2nd c2nd 7398  ℂcc 10220  ℝcr 10221  0cc0 10222  1c1 10223   · cmul 10227   < clt 10361   / cdiv 10974  ℕcn 11310  ℕ0cn0 11576  ℤcz 11662  ℚcq 12029   ∥ cdvds 15315   gcd cgcd 15547 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1891  ax-4 1905  ax-5 2006  ax-6 2072  ax-7 2107  ax-8 2159  ax-9 2166  ax-10 2185  ax-11 2200  ax-12 2213  ax-13 2375  ax-ext 2775  ax-sep 4973  ax-nul 4981  ax-pow 5033  ax-pr 5095  ax-un 7181  ax-cnex 10278  ax-resscn 10279  ax-1cn 10280  ax-icn 10281  ax-addcl 10282  ax-addrcl 10283  ax-mulcl 10284  ax-mulrcl 10285  ax-mulcom 10286  ax-addass 10287  ax-mulass 10288  ax-distr 10289  ax-i2m1 10290  ax-1ne0 10291  ax-1rid 10292  ax-rnegex 10293  ax-rrecex 10294  ax-cnre 10295  ax-pre-lttri 10296  ax-pre-lttrn 10297  ax-pre-ltadd 10298  ax-pre-mulgt0 10299  ax-pre-sup 10300 This theorem depends on definitions:  df-bi 199  df-an 386  df-or 875  df-3or 1109  df-3an 1110  df-tru 1657  df-ex 1876  df-nf 1880  df-sb 2065  df-mo 2590  df-eu 2607  df-clab 2784  df-cleq 2790  df-clel 2793  df-nfc 2928  df-ne 2970  df-nel 3073  df-ral 3092  df-rex 3093  df-reu 3094  df-rmo 3095  df-rab 3096  df-v 3385  df-sbc 3632  df-csb 3727  df-dif 3770  df-un 3772  df-in 3774  df-ss 3781  df-pss 3783  df-nul 4114  df-if 4276  df-pw 4349  df-sn 4367  df-pr 4369  df-tp 4371  df-op 4373  df-uni 4627  df-iun 4710  df-br 4842  df-opab 4904  df-mpt 4921  df-tr 4944  df-id 5218  df-eprel 5223  df-po 5231  df-so 5232  df-fr 5269  df-we 5271  df-xp 5316  df-rel 5317  df-cnv 5318  df-co 5319  df-dm 5320  df-rn 5321  df-res 5322  df-ima 5323  df-pred 5896  df-ord 5942  df-on 5943  df-lim 5944  df-suc 5945  df-iota 6062  df-fun 6101  df-fn 6102  df-f 6103  df-f1 6104  df-fo 6105  df-f1o 6106  df-fv 6107  df-riota 6837  df-ov 6879  df-oprab 6880  df-mpt2 6881  df-om 7298  df-1st 7399  df-2nd 7400  df-wrecs 7643  df-recs 7705  df-rdg 7743  df-er 7980  df-en 8194  df-dom 8195  df-sdom 8196  df-sup 8588  df-inf 8589  df-pnf 10363  df-mnf 10364  df-xr 10365  df-ltxr 10366  df-le 10367  df-sub 10556  df-neg 10557  df-div 10975  df-nn 11311  df-2 11372  df-3 11373  df-n0 11577  df-z 11663  df-uz 11927  df-q 12030  df-rp 12071  df-fl 12844  df-mod 12920  df-seq 13052  df-exp 13111  df-cj 14176  df-re 14177  df-im 14178  df-sqrt 14312  df-abs 14313  df-dvds 15316  df-gcd 15548 This theorem is referenced by:  qnumdencl  15776  qnumdenbi  15781
 Copyright terms: Public domain W3C validator