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

Theorem qredeu 16361
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 12342 . . . . . . . . . 10 (𝑛 ∈ ℕ → 𝑛 ∈ ℤ)
2 gcddvds 16208 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℤ) → ((𝑧 gcd 𝑛) ∥ 𝑧 ∧ (𝑧 gcd 𝑛) ∥ 𝑛))
32simpld 495 . . . . . . . . . 10 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℤ) → (𝑧 gcd 𝑛) ∥ 𝑧)
41, 3sylan2 593 . . . . . . . . 9 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑧 gcd 𝑛) ∥ 𝑧)
5 gcdcl 16211 . . . . . . . . . . . 12 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℤ) → (𝑧 gcd 𝑛) ∈ ℕ0)
61, 5sylan2 593 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑧 gcd 𝑛) ∈ ℕ0)
76nn0zd 12423 . . . . . . . . . 10 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑧 gcd 𝑛) ∈ ℤ)
8 simpl 483 . . . . . . . . . . . 12 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 𝑧 ∈ ℤ)
91adantl 482 . . . . . . . . . . . 12 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 𝑛 ∈ ℤ)
10 nnne0 12007 . . . . . . . . . . . . . . 15 (𝑛 ∈ ℕ → 𝑛 ≠ 0)
1110neneqd 2950 . . . . . . . . . . . . . 14 (𝑛 ∈ ℕ → ¬ 𝑛 = 0)
1211intnand 489 . . . . . . . . . . . . 13 (𝑛 ∈ ℕ → ¬ (𝑧 = 0 ∧ 𝑛 = 0))
1312adantl 482 . . . . . . . . . . . 12 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ¬ (𝑧 = 0 ∧ 𝑛 = 0))
14 gcdn0cl 16207 . . . . . . . . . . . 12 (((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℤ) ∧ ¬ (𝑧 = 0 ∧ 𝑛 = 0)) → (𝑧 gcd 𝑛) ∈ ℕ)
158, 9, 13, 14syl21anc 835 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑧 gcd 𝑛) ∈ ℕ)
16 nnne0 12007 . . . . . . . . . . 11 ((𝑧 gcd 𝑛) ∈ ℕ → (𝑧 gcd 𝑛) ≠ 0)
1715, 16syl 17 . . . . . . . . . 10 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑧 gcd 𝑛) ≠ 0)
18 dvdsval2 15964 . . . . . . . . . 10 (((𝑧 gcd 𝑛) ∈ ℤ ∧ (𝑧 gcd 𝑛) ≠ 0 ∧ 𝑧 ∈ ℤ) → ((𝑧 gcd 𝑛) ∥ 𝑧 ↔ (𝑧 / (𝑧 gcd 𝑛)) ∈ ℤ))
197, 17, 8, 18syl3anc 1370 . . . . . . . . 9 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 gcd 𝑛) ∥ 𝑧 ↔ (𝑧 / (𝑧 gcd 𝑛)) ∈ ℤ))
204, 19mpbid 231 . . . . . . . 8 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑧 / (𝑧 gcd 𝑛)) ∈ ℤ)
21203adant3 1131 . . . . . . 7 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ ∧ 𝐴 = (𝑧 / 𝑛)) → (𝑧 / (𝑧 gcd 𝑛)) ∈ ℤ)
222simprd 496 . . . . . . . . . . . 12 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℤ) → (𝑧 gcd 𝑛) ∥ 𝑛)
231, 22sylan2 593 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑧 gcd 𝑛) ∥ 𝑛)
24 dvdsval2 15964 . . . . . . . . . . . 12 (((𝑧 gcd 𝑛) ∈ ℤ ∧ (𝑧 gcd 𝑛) ≠ 0 ∧ 𝑛 ∈ ℤ) → ((𝑧 gcd 𝑛) ∥ 𝑛 ↔ (𝑛 / (𝑧 gcd 𝑛)) ∈ ℤ))
257, 17, 9, 24syl3anc 1370 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 gcd 𝑛) ∥ 𝑛 ↔ (𝑛 / (𝑧 gcd 𝑛)) ∈ ℤ))
2623, 25mpbid 231 . . . . . . . . . 10 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑛 / (𝑧 gcd 𝑛)) ∈ ℤ)
27 nnre 11980 . . . . . . . . . . . 12 (𝑛 ∈ ℕ → 𝑛 ∈ ℝ)
2827adantl 482 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 𝑛 ∈ ℝ)
296nn0red 12294 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑧 gcd 𝑛) ∈ ℝ)
30 nngt0 12004 . . . . . . . . . . . 12 (𝑛 ∈ ℕ → 0 < 𝑛)
3130adantl 482 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 0 < 𝑛)
32 nngt0 12004 . . . . . . . . . . . 12 ((𝑧 gcd 𝑛) ∈ ℕ → 0 < (𝑧 gcd 𝑛))
3315, 32syl 17 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 0 < (𝑧 gcd 𝑛))
3428, 29, 31, 33divgt0d 11910 . . . . . . . . . 10 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 0 < (𝑛 / (𝑧 gcd 𝑛)))
3526, 34jca 512 . . . . . . . . 9 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑛 / (𝑧 gcd 𝑛)) ∈ ℤ ∧ 0 < (𝑛 / (𝑧 gcd 𝑛))))
36353adant3 1131 . . . . . . . 8 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ ∧ 𝐴 = (𝑧 / 𝑛)) → ((𝑛 / (𝑧 gcd 𝑛)) ∈ ℤ ∧ 0 < (𝑛 / (𝑧 gcd 𝑛))))
37 elnnz 12329 . . . . . . . 8 ((𝑛 / (𝑧 gcd 𝑛)) ∈ ℕ ↔ ((𝑛 / (𝑧 gcd 𝑛)) ∈ ℤ ∧ 0 < (𝑛 / (𝑧 gcd 𝑛))))
3836, 37sylibr 233 . . . . . . 7 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ ∧ 𝐴 = (𝑧 / 𝑛)) → (𝑛 / (𝑧 gcd 𝑛)) ∈ ℕ)
3921, 38opelxpd 5628 . . . . . 6 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ ∧ 𝐴 = (𝑧 / 𝑛)) → ⟨(𝑧 / (𝑧 gcd 𝑛)), (𝑛 / (𝑧 gcd 𝑛))⟩ ∈ (ℤ × ℕ))
4020, 26gcdcld 16213 . . . . . . . . 9 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛))) ∈ ℕ0)
4140nn0cnd 12295 . . . . . . . 8 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛))) ∈ ℂ)
42 1cnd 10971 . . . . . . . 8 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 1 ∈ ℂ)
436nn0cnd 12295 . . . . . . . 8 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑧 gcd 𝑛) ∈ ℂ)
4443mulid1d 10993 . . . . . . . . 9 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 gcd 𝑛) · 1) = (𝑧 gcd 𝑛))
45 zcn 12324 . . . . . . . . . . . 12 (𝑧 ∈ ℤ → 𝑧 ∈ ℂ)
4645adantr 481 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 𝑧 ∈ ℂ)
4746, 43, 17divcan2d 11753 . . . . . . . . . 10 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 gcd 𝑛) · (𝑧 / (𝑧 gcd 𝑛))) = 𝑧)
48 nncn 11981 . . . . . . . . . . . 12 (𝑛 ∈ ℕ → 𝑛 ∈ ℂ)
4948adantl 482 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 𝑛 ∈ ℂ)
5049, 43, 17divcan2d 11753 . . . . . . . . . 10 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 gcd 𝑛) · (𝑛 / (𝑧 gcd 𝑛))) = 𝑛)
5147, 50oveq12d 7289 . . . . . . . . 9 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (((𝑧 gcd 𝑛) · (𝑧 / (𝑧 gcd 𝑛))) gcd ((𝑧 gcd 𝑛) · (𝑛 / (𝑧 gcd 𝑛)))) = (𝑧 gcd 𝑛))
52 mulgcd 16254 . . . . . . . . . 10 (((𝑧 gcd 𝑛) ∈ ℕ0 ∧ (𝑧 / (𝑧 gcd 𝑛)) ∈ ℤ ∧ (𝑛 / (𝑧 gcd 𝑛)) ∈ ℤ) → (((𝑧 gcd 𝑛) · (𝑧 / (𝑧 gcd 𝑛))) gcd ((𝑧 gcd 𝑛) · (𝑛 / (𝑧 gcd 𝑛)))) = ((𝑧 gcd 𝑛) · ((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛)))))
536, 20, 26, 52syl3anc 1370 . . . . . . . . 9 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (((𝑧 gcd 𝑛) · (𝑧 / (𝑧 gcd 𝑛))) gcd ((𝑧 gcd 𝑛) · (𝑛 / (𝑧 gcd 𝑛)))) = ((𝑧 gcd 𝑛) · ((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛)))))
5444, 51, 533eqtr2rd 2787 . . . . . . . 8 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 gcd 𝑛) · ((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛)))) = ((𝑧 gcd 𝑛) · 1))
5541, 42, 43, 17, 54mulcanad 11610 . . . . . . 7 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛))) = 1)
56553adant3 1131 . . . . . 6 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ ∧ 𝐴 = (𝑧 / 𝑛)) → ((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛))) = 1)
5710adantl 482 . . . . . . . . 9 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 𝑛 ≠ 0)
5846, 49, 43, 57, 17divcan7d 11779 . . . . . . . 8 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 / (𝑧 gcd 𝑛)) / (𝑛 / (𝑧 gcd 𝑛))) = (𝑧 / 𝑛))
5958eqeq2d 2751 . . . . . . 7 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝐴 = ((𝑧 / (𝑧 gcd 𝑛)) / (𝑛 / (𝑧 gcd 𝑛))) ↔ 𝐴 = (𝑧 / 𝑛)))
6059biimp3ar 1469 . . . . . 6 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ ∧ 𝐴 = (𝑧 / 𝑛)) → 𝐴 = ((𝑧 / (𝑧 gcd 𝑛)) / (𝑛 / (𝑧 gcd 𝑛))))
61 ovex 7304 . . . . . . . . . . 11 (𝑧 / (𝑧 gcd 𝑛)) ∈ V
62 ovex 7304 . . . . . . . . . . 11 (𝑛 / (𝑧 gcd 𝑛)) ∈ V
6361, 62op1std 7834 . . . . . . . . . 10 (𝑥 = ⟨(𝑧 / (𝑧 gcd 𝑛)), (𝑛 / (𝑧 gcd 𝑛))⟩ → (1st𝑥) = (𝑧 / (𝑧 gcd 𝑛)))
6461, 62op2ndd 7835 . . . . . . . . . 10 (𝑥 = ⟨(𝑧 / (𝑧 gcd 𝑛)), (𝑛 / (𝑧 gcd 𝑛))⟩ → (2nd𝑥) = (𝑛 / (𝑧 gcd 𝑛)))
6563, 64oveq12d 7289 . . . . . . . . 9 (𝑥 = ⟨(𝑧 / (𝑧 gcd 𝑛)), (𝑛 / (𝑧 gcd 𝑛))⟩ → ((1st𝑥) gcd (2nd𝑥)) = ((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛))))
6665eqeq1d 2742 . . . . . . . 8 (𝑥 = ⟨(𝑧 / (𝑧 gcd 𝑛)), (𝑛 / (𝑧 gcd 𝑛))⟩ → (((1st𝑥) gcd (2nd𝑥)) = 1 ↔ ((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛))) = 1))
6763, 64oveq12d 7289 . . . . . . . . 9 (𝑥 = ⟨(𝑧 / (𝑧 gcd 𝑛)), (𝑛 / (𝑧 gcd 𝑛))⟩ → ((1st𝑥) / (2nd𝑥)) = ((𝑧 / (𝑧 gcd 𝑛)) / (𝑛 / (𝑧 gcd 𝑛))))
6867eqeq2d 2751 . . . . . . . 8 (𝑥 = ⟨(𝑧 / (𝑧 gcd 𝑛)), (𝑛 / (𝑧 gcd 𝑛))⟩ → (𝐴 = ((1st𝑥) / (2nd𝑥)) ↔ 𝐴 = ((𝑧 / (𝑧 gcd 𝑛)) / (𝑛 / (𝑧 gcd 𝑛)))))
6966, 68anbi12d 631 . . . . . . 7 (𝑥 = ⟨(𝑧 / (𝑧 gcd 𝑛)), (𝑛 / (𝑧 gcd 𝑛))⟩ → ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ↔ (((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛))) = 1 ∧ 𝐴 = ((𝑧 / (𝑧 gcd 𝑛)) / (𝑛 / (𝑧 gcd 𝑛))))))
7069rspcev 3561 . . . . . 6 ((⟨(𝑧 / (𝑧 gcd 𝑛)), (𝑛 / (𝑧 gcd 𝑛))⟩ ∈ (ℤ × ℕ) ∧ (((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛))) = 1 ∧ 𝐴 = ((𝑧 / (𝑧 gcd 𝑛)) / (𝑛 / (𝑧 gcd 𝑛))))) → ∃𝑥 ∈ (ℤ × ℕ)(((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))))
7139, 56, 60, 70syl12anc 834 . . . . 5 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ ∧ 𝐴 = (𝑧 / 𝑛)) → ∃𝑥 ∈ (ℤ × ℕ)(((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))))
72 elxp6 7858 . . . . . . 7 (𝑥 ∈ (ℤ × ℕ) ↔ (𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)))
73 elxp6 7858 . . . . . . 7 (𝑦 ∈ (ℤ × ℕ) ↔ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ)))
74 simprl 768 . . . . . . . . . . . 12 ((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) → (1st𝑥) ∈ ℤ)
7574ad2antrr 723 . . . . . . . . . . 11 ((((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) ∧ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ))) ∧ ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦))))) → (1st𝑥) ∈ ℤ)
76 simprr 770 . . . . . . . . . . . 12 ((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) → (2nd𝑥) ∈ ℕ)
7776ad2antrr 723 . . . . . . . . . . 11 ((((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) ∧ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ))) ∧ ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦))))) → (2nd𝑥) ∈ ℕ)
78 simprll 776 . . . . . . . . . . 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 768 . . . . . . . . . . . 12 ((𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ)) → (1st𝑦) ∈ ℤ)
8079ad2antlr 724 . . . . . . . . . . 11 ((((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) ∧ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ))) ∧ ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦))))) → (1st𝑦) ∈ ℤ)
81 simprr 770 . . . . . . . . . . . 12 ((𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ)) → (2nd𝑦) ∈ ℕ)
8281ad2antlr 724 . . . . . . . . . . 11 ((((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) ∧ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ))) ∧ ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦))))) → (2nd𝑦) ∈ ℕ)
83 simprrl 778 . . . . . . . . . . 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 777 . . . . . . . . . . . 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 779 . . . . . . . . . . . 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 2782 . . . . . . . . . . 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 16360 . . . . . . . . . . 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 1394 . . . . . . . . . 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 6784 . . . . . . . . . . 11 (1st𝑥) ∈ V
90 fvex 6784 . . . . . . . . . . 11 (2nd𝑥) ∈ V
9189, 90opth 5395 . . . . . . . . . 10 (⟨(1st𝑥), (2nd𝑥)⟩ = ⟨(1st𝑦), (2nd𝑦)⟩ ↔ ((1st𝑥) = (1st𝑦) ∧ (2nd𝑥) = (2nd𝑦)))
9288, 91sylibr 233 . . . . . . . . 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 772 . . . . . . . . 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 774 . . . . . . . . 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 2790 . . . . . . . 8 ((((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) ∧ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ))) ∧ ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦))))) → 𝑥 = 𝑦)
9695ex 413 . . . . . . 7 (((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) ∧ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ))) → (((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦)))) → 𝑥 = 𝑦))
9772, 73, 96syl2anb 598 . . . . . 6 ((𝑥 ∈ (ℤ × ℕ) ∧ 𝑦 ∈ (ℤ × ℕ)) → (((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦)))) → 𝑥 = 𝑦))
9897rgen2 3129 . . . . 5 𝑥 ∈ (ℤ × ℕ)∀𝑦 ∈ (ℤ × ℕ)(((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦)))) → 𝑥 = 𝑦)
9971, 98jctir 521 . . . 4 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ ∧ 𝐴 = (𝑧 / 𝑛)) → (∃𝑥 ∈ (ℤ × ℕ)(((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ ∀𝑥 ∈ (ℤ × ℕ)∀𝑦 ∈ (ℤ × ℕ)(((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦)))) → 𝑥 = 𝑦)))
100993expia 1120 . . 3 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝐴 = (𝑧 / 𝑛) → (∃𝑥 ∈ (ℤ × ℕ)(((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ ∀𝑥 ∈ (ℤ × ℕ)∀𝑦 ∈ (ℤ × ℕ)(((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦)))) → 𝑥 = 𝑦))))
101100rexlimivv 3223 . 2 (∃𝑧 ∈ ℤ ∃𝑛 ∈ ℕ 𝐴 = (𝑧 / 𝑛) → (∃𝑥 ∈ (ℤ × ℕ)(((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ ∀𝑥 ∈ (ℤ × ℕ)∀𝑦 ∈ (ℤ × ℕ)(((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦)))) → 𝑥 = 𝑦)))
102 elq 12689 . 2 (𝐴 ∈ ℚ ↔ ∃𝑧 ∈ ℤ ∃𝑛 ∈ ℕ 𝐴 = (𝑧 / 𝑛))
103 fveq2 6771 . . . . . 6 (𝑥 = 𝑦 → (1st𝑥) = (1st𝑦))
104 fveq2 6771 . . . . . 6 (𝑥 = 𝑦 → (2nd𝑥) = (2nd𝑦))
105103, 104oveq12d 7289 . . . . 5 (𝑥 = 𝑦 → ((1st𝑥) gcd (2nd𝑥)) = ((1st𝑦) gcd (2nd𝑦)))
106105eqeq1d 2742 . . . 4 (𝑥 = 𝑦 → (((1st𝑥) gcd (2nd𝑥)) = 1 ↔ ((1st𝑦) gcd (2nd𝑦)) = 1))
107103, 104oveq12d 7289 . . . . 5 (𝑥 = 𝑦 → ((1st𝑥) / (2nd𝑥)) = ((1st𝑦) / (2nd𝑦)))
108107eqeq2d 2751 . . . 4 (𝑥 = 𝑦 → (𝐴 = ((1st𝑥) / (2nd𝑥)) ↔ 𝐴 = ((1st𝑦) / (2nd𝑦))))
109106, 108anbi12d 631 . . 3 (𝑥 = 𝑦 → ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ↔ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦)))))
110109reu4 3670 . 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 292 1 (𝐴 ∈ ℚ → ∃!𝑥 ∈ (ℤ × ℕ)(((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396  w3a 1086   = wceq 1542  wcel 2110  wne 2945  wral 3066  wrex 3067  ∃!wreu 3068  cop 4573   class class class wbr 5079   × cxp 5588  cfv 6432  (class class class)co 7271  1st c1st 7822  2nd c2nd 7823  cc 10870  cr 10871  0cc0 10872  1c1 10873   · cmul 10877   < clt 11010   / cdiv 11632  cn 11973  0cn0 12233  cz 12319  cq 12687  cdvds 15961   gcd cgcd 16199
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1802  ax-4 1816  ax-5 1917  ax-6 1975  ax-7 2015  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2158  ax-12 2175  ax-ext 2711  ax-sep 5227  ax-nul 5234  ax-pow 5292  ax-pr 5356  ax-un 7582  ax-cnex 10928  ax-resscn 10929  ax-1cn 10930  ax-icn 10931  ax-addcl 10932  ax-addrcl 10933  ax-mulcl 10934  ax-mulrcl 10935  ax-mulcom 10936  ax-addass 10937  ax-mulass 10938  ax-distr 10939  ax-i2m1 10940  ax-1ne0 10941  ax-1rid 10942  ax-rnegex 10943  ax-rrecex 10944  ax-cnre 10945  ax-pre-lttri 10946  ax-pre-lttrn 10947  ax-pre-ltadd 10948  ax-pre-mulgt0 10949  ax-pre-sup 10950
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1545  df-fal 1555  df-ex 1787  df-nf 1791  df-sb 2072  df-mo 2542  df-eu 2571  df-clab 2718  df-cleq 2732  df-clel 2818  df-nfc 2891  df-ne 2946  df-nel 3052  df-ral 3071  df-rex 3072  df-reu 3073  df-rmo 3074  df-rab 3075  df-v 3433  df-sbc 3721  df-csb 3838  df-dif 3895  df-un 3897  df-in 3899  df-ss 3909  df-pss 3911  df-nul 4263  df-if 4466  df-pw 4541  df-sn 4568  df-pr 4570  df-op 4574  df-uni 4846  df-iun 4932  df-br 5080  df-opab 5142  df-mpt 5163  df-tr 5197  df-id 5490  df-eprel 5496  df-po 5504  df-so 5505  df-fr 5545  df-we 5547  df-xp 5596  df-rel 5597  df-cnv 5598  df-co 5599  df-dm 5600  df-rn 5601  df-res 5602  df-ima 5603  df-pred 6201  df-ord 6268  df-on 6269  df-lim 6270  df-suc 6271  df-iota 6390  df-fun 6434  df-fn 6435  df-f 6436  df-f1 6437  df-fo 6438  df-f1o 6439  df-fv 6440  df-riota 7228  df-ov 7274  df-oprab 7275  df-mpo 7276  df-om 7707  df-1st 7824  df-2nd 7825  df-frecs 8088  df-wrecs 8119  df-recs 8193  df-rdg 8232  df-er 8481  df-en 8717  df-dom 8718  df-sdom 8719  df-sup 9179  df-inf 9180  df-pnf 11012  df-mnf 11013  df-xr 11014  df-ltxr 11015  df-le 11016  df-sub 11207  df-neg 11208  df-div 11633  df-nn 11974  df-2 12036  df-3 12037  df-n0 12234  df-z 12320  df-uz 12582  df-q 12688  df-rp 12730  df-fl 13510  df-mod 13588  df-seq 13720  df-exp 13781  df-cj 14808  df-re 14809  df-im 14810  df-sqrt 14944  df-abs 14945  df-dvds 15962  df-gcd 16200
This theorem is referenced by:  qnumdencl  16441  qnumdenbi  16446
  Copyright terms: Public domain W3C validator