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

Theorem qredeu 16291
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 12272 . . . . . . . . . 10 (𝑛 ∈ ℕ → 𝑛 ∈ ℤ)
2 gcddvds 16138 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℤ) → ((𝑧 gcd 𝑛) ∥ 𝑧 ∧ (𝑧 gcd 𝑛) ∥ 𝑛))
32simpld 494 . . . . . . . . . 10 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℤ) → (𝑧 gcd 𝑛) ∥ 𝑧)
41, 3sylan2 592 . . . . . . . . 9 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑧 gcd 𝑛) ∥ 𝑧)
5 gcdcl 16141 . . . . . . . . . . . 12 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℤ) → (𝑧 gcd 𝑛) ∈ ℕ0)
61, 5sylan2 592 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑧 gcd 𝑛) ∈ ℕ0)
76nn0zd 12353 . . . . . . . . . 10 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑧 gcd 𝑛) ∈ ℤ)
8 simpl 482 . . . . . . . . . . . 12 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 𝑧 ∈ ℤ)
91adantl 481 . . . . . . . . . . . 12 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 𝑛 ∈ ℤ)
10 nnne0 11937 . . . . . . . . . . . . . . 15 (𝑛 ∈ ℕ → 𝑛 ≠ 0)
1110neneqd 2947 . . . . . . . . . . . . . 14 (𝑛 ∈ ℕ → ¬ 𝑛 = 0)
1211intnand 488 . . . . . . . . . . . . 13 (𝑛 ∈ ℕ → ¬ (𝑧 = 0 ∧ 𝑛 = 0))
1312adantl 481 . . . . . . . . . . . 12 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ¬ (𝑧 = 0 ∧ 𝑛 = 0))
14 gcdn0cl 16137 . . . . . . . . . . . 12 (((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℤ) ∧ ¬ (𝑧 = 0 ∧ 𝑛 = 0)) → (𝑧 gcd 𝑛) ∈ ℕ)
158, 9, 13, 14syl21anc 834 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑧 gcd 𝑛) ∈ ℕ)
16 nnne0 11937 . . . . . . . . . . 11 ((𝑧 gcd 𝑛) ∈ ℕ → (𝑧 gcd 𝑛) ≠ 0)
1715, 16syl 17 . . . . . . . . . 10 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑧 gcd 𝑛) ≠ 0)
18 dvdsval2 15894 . . . . . . . . . 10 (((𝑧 gcd 𝑛) ∈ ℤ ∧ (𝑧 gcd 𝑛) ≠ 0 ∧ 𝑧 ∈ ℤ) → ((𝑧 gcd 𝑛) ∥ 𝑧 ↔ (𝑧 / (𝑧 gcd 𝑛)) ∈ ℤ))
197, 17, 8, 18syl3anc 1369 . . . . . . . . 9 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 gcd 𝑛) ∥ 𝑧 ↔ (𝑧 / (𝑧 gcd 𝑛)) ∈ ℤ))
204, 19mpbid 231 . . . . . . . 8 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑧 / (𝑧 gcd 𝑛)) ∈ ℤ)
21203adant3 1130 . . . . . . 7 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ ∧ 𝐴 = (𝑧 / 𝑛)) → (𝑧 / (𝑧 gcd 𝑛)) ∈ ℤ)
222simprd 495 . . . . . . . . . . . 12 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℤ) → (𝑧 gcd 𝑛) ∥ 𝑛)
231, 22sylan2 592 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑧 gcd 𝑛) ∥ 𝑛)
24 dvdsval2 15894 . . . . . . . . . . . 12 (((𝑧 gcd 𝑛) ∈ ℤ ∧ (𝑧 gcd 𝑛) ≠ 0 ∧ 𝑛 ∈ ℤ) → ((𝑧 gcd 𝑛) ∥ 𝑛 ↔ (𝑛 / (𝑧 gcd 𝑛)) ∈ ℤ))
257, 17, 9, 24syl3anc 1369 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 gcd 𝑛) ∥ 𝑛 ↔ (𝑛 / (𝑧 gcd 𝑛)) ∈ ℤ))
2623, 25mpbid 231 . . . . . . . . . 10 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑛 / (𝑧 gcd 𝑛)) ∈ ℤ)
27 nnre 11910 . . . . . . . . . . . 12 (𝑛 ∈ ℕ → 𝑛 ∈ ℝ)
2827adantl 481 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 𝑛 ∈ ℝ)
296nn0red 12224 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑧 gcd 𝑛) ∈ ℝ)
30 nngt0 11934 . . . . . . . . . . . 12 (𝑛 ∈ ℕ → 0 < 𝑛)
3130adantl 481 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 0 < 𝑛)
32 nngt0 11934 . . . . . . . . . . . 12 ((𝑧 gcd 𝑛) ∈ ℕ → 0 < (𝑧 gcd 𝑛))
3315, 32syl 17 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 0 < (𝑧 gcd 𝑛))
3428, 29, 31, 33divgt0d 11840 . . . . . . . . . 10 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 0 < (𝑛 / (𝑧 gcd 𝑛)))
3526, 34jca 511 . . . . . . . . 9 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑛 / (𝑧 gcd 𝑛)) ∈ ℤ ∧ 0 < (𝑛 / (𝑧 gcd 𝑛))))
36353adant3 1130 . . . . . . . 8 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ ∧ 𝐴 = (𝑧 / 𝑛)) → ((𝑛 / (𝑧 gcd 𝑛)) ∈ ℤ ∧ 0 < (𝑛 / (𝑧 gcd 𝑛))))
37 elnnz 12259 . . . . . . . 8 ((𝑛 / (𝑧 gcd 𝑛)) ∈ ℕ ↔ ((𝑛 / (𝑧 gcd 𝑛)) ∈ ℤ ∧ 0 < (𝑛 / (𝑧 gcd 𝑛))))
3836, 37sylibr 233 . . . . . . 7 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ ∧ 𝐴 = (𝑧 / 𝑛)) → (𝑛 / (𝑧 gcd 𝑛)) ∈ ℕ)
3921, 38opelxpd 5618 . . . . . 6 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ ∧ 𝐴 = (𝑧 / 𝑛)) → ⟨(𝑧 / (𝑧 gcd 𝑛)), (𝑛 / (𝑧 gcd 𝑛))⟩ ∈ (ℤ × ℕ))
4020, 26gcdcld 16143 . . . . . . . . 9 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛))) ∈ ℕ0)
4140nn0cnd 12225 . . . . . . . 8 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛))) ∈ ℂ)
42 1cnd 10901 . . . . . . . 8 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 1 ∈ ℂ)
436nn0cnd 12225 . . . . . . . 8 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑧 gcd 𝑛) ∈ ℂ)
4443mulid1d 10923 . . . . . . . . 9 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 gcd 𝑛) · 1) = (𝑧 gcd 𝑛))
45 zcn 12254 . . . . . . . . . . . 12 (𝑧 ∈ ℤ → 𝑧 ∈ ℂ)
4645adantr 480 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 𝑧 ∈ ℂ)
4746, 43, 17divcan2d 11683 . . . . . . . . . 10 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 gcd 𝑛) · (𝑧 / (𝑧 gcd 𝑛))) = 𝑧)
48 nncn 11911 . . . . . . . . . . . 12 (𝑛 ∈ ℕ → 𝑛 ∈ ℂ)
4948adantl 481 . . . . . . . . . . 11 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 𝑛 ∈ ℂ)
5049, 43, 17divcan2d 11683 . . . . . . . . . 10 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 gcd 𝑛) · (𝑛 / (𝑧 gcd 𝑛))) = 𝑛)
5147, 50oveq12d 7273 . . . . . . . . 9 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (((𝑧 gcd 𝑛) · (𝑧 / (𝑧 gcd 𝑛))) gcd ((𝑧 gcd 𝑛) · (𝑛 / (𝑧 gcd 𝑛)))) = (𝑧 gcd 𝑛))
52 mulgcd 16184 . . . . . . . . . 10 (((𝑧 gcd 𝑛) ∈ ℕ0 ∧ (𝑧 / (𝑧 gcd 𝑛)) ∈ ℤ ∧ (𝑛 / (𝑧 gcd 𝑛)) ∈ ℤ) → (((𝑧 gcd 𝑛) · (𝑧 / (𝑧 gcd 𝑛))) gcd ((𝑧 gcd 𝑛) · (𝑛 / (𝑧 gcd 𝑛)))) = ((𝑧 gcd 𝑛) · ((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛)))))
536, 20, 26, 52syl3anc 1369 . . . . . . . . 9 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (((𝑧 gcd 𝑛) · (𝑧 / (𝑧 gcd 𝑛))) gcd ((𝑧 gcd 𝑛) · (𝑛 / (𝑧 gcd 𝑛)))) = ((𝑧 gcd 𝑛) · ((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛)))))
5444, 51, 533eqtr2rd 2785 . . . . . . . 8 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 gcd 𝑛) · ((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛)))) = ((𝑧 gcd 𝑛) · 1))
5541, 42, 43, 17, 54mulcanad 11540 . . . . . . 7 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛))) = 1)
56553adant3 1130 . . . . . 6 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ ∧ 𝐴 = (𝑧 / 𝑛)) → ((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛))) = 1)
5710adantl 481 . . . . . . . . 9 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 𝑛 ≠ 0)
5846, 49, 43, 57, 17divcan7d 11709 . . . . . . . 8 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → ((𝑧 / (𝑧 gcd 𝑛)) / (𝑛 / (𝑧 gcd 𝑛))) = (𝑧 / 𝑛))
5958eqeq2d 2749 . . . . . . 7 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝐴 = ((𝑧 / (𝑧 gcd 𝑛)) / (𝑛 / (𝑧 gcd 𝑛))) ↔ 𝐴 = (𝑧 / 𝑛)))
6059biimp3ar 1468 . . . . . 6 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ ∧ 𝐴 = (𝑧 / 𝑛)) → 𝐴 = ((𝑧 / (𝑧 gcd 𝑛)) / (𝑛 / (𝑧 gcd 𝑛))))
61 ovex 7288 . . . . . . . . . . 11 (𝑧 / (𝑧 gcd 𝑛)) ∈ V
62 ovex 7288 . . . . . . . . . . 11 (𝑛 / (𝑧 gcd 𝑛)) ∈ V
6361, 62op1std 7814 . . . . . . . . . 10 (𝑥 = ⟨(𝑧 / (𝑧 gcd 𝑛)), (𝑛 / (𝑧 gcd 𝑛))⟩ → (1st𝑥) = (𝑧 / (𝑧 gcd 𝑛)))
6461, 62op2ndd 7815 . . . . . . . . . 10 (𝑥 = ⟨(𝑧 / (𝑧 gcd 𝑛)), (𝑛 / (𝑧 gcd 𝑛))⟩ → (2nd𝑥) = (𝑛 / (𝑧 gcd 𝑛)))
6563, 64oveq12d 7273 . . . . . . . . 9 (𝑥 = ⟨(𝑧 / (𝑧 gcd 𝑛)), (𝑛 / (𝑧 gcd 𝑛))⟩ → ((1st𝑥) gcd (2nd𝑥)) = ((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛))))
6665eqeq1d 2740 . . . . . . . 8 (𝑥 = ⟨(𝑧 / (𝑧 gcd 𝑛)), (𝑛 / (𝑧 gcd 𝑛))⟩ → (((1st𝑥) gcd (2nd𝑥)) = 1 ↔ ((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛))) = 1))
6763, 64oveq12d 7273 . . . . . . . . 9 (𝑥 = ⟨(𝑧 / (𝑧 gcd 𝑛)), (𝑛 / (𝑧 gcd 𝑛))⟩ → ((1st𝑥) / (2nd𝑥)) = ((𝑧 / (𝑧 gcd 𝑛)) / (𝑛 / (𝑧 gcd 𝑛))))
6867eqeq2d 2749 . . . . . . . 8 (𝑥 = ⟨(𝑧 / (𝑧 gcd 𝑛)), (𝑛 / (𝑧 gcd 𝑛))⟩ → (𝐴 = ((1st𝑥) / (2nd𝑥)) ↔ 𝐴 = ((𝑧 / (𝑧 gcd 𝑛)) / (𝑛 / (𝑧 gcd 𝑛)))))
6966, 68anbi12d 630 . . . . . . 7 (𝑥 = ⟨(𝑧 / (𝑧 gcd 𝑛)), (𝑛 / (𝑧 gcd 𝑛))⟩ → ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ↔ (((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛))) = 1 ∧ 𝐴 = ((𝑧 / (𝑧 gcd 𝑛)) / (𝑛 / (𝑧 gcd 𝑛))))))
7069rspcev 3552 . . . . . 6 ((⟨(𝑧 / (𝑧 gcd 𝑛)), (𝑛 / (𝑧 gcd 𝑛))⟩ ∈ (ℤ × ℕ) ∧ (((𝑧 / (𝑧 gcd 𝑛)) gcd (𝑛 / (𝑧 gcd 𝑛))) = 1 ∧ 𝐴 = ((𝑧 / (𝑧 gcd 𝑛)) / (𝑛 / (𝑧 gcd 𝑛))))) → ∃𝑥 ∈ (ℤ × ℕ)(((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))))
7139, 56, 60, 70syl12anc 833 . . . . 5 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ ∧ 𝐴 = (𝑧 / 𝑛)) → ∃𝑥 ∈ (ℤ × ℕ)(((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))))
72 elxp6 7838 . . . . . . 7 (𝑥 ∈ (ℤ × ℕ) ↔ (𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)))
73 elxp6 7838 . . . . . . 7 (𝑦 ∈ (ℤ × ℕ) ↔ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ)))
74 simprl 767 . . . . . . . . . . . 12 ((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) → (1st𝑥) ∈ ℤ)
7574ad2antrr 722 . . . . . . . . . . 11 ((((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) ∧ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ))) ∧ ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦))))) → (1st𝑥) ∈ ℤ)
76 simprr 769 . . . . . . . . . . . 12 ((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) → (2nd𝑥) ∈ ℕ)
7776ad2antrr 722 . . . . . . . . . . 11 ((((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) ∧ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ))) ∧ ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦))))) → (2nd𝑥) ∈ ℕ)
78 simprll 775 . . . . . . . . . . 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 767 . . . . . . . . . . . 12 ((𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ)) → (1st𝑦) ∈ ℤ)
8079ad2antlr 723 . . . . . . . . . . 11 ((((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) ∧ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ))) ∧ ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦))))) → (1st𝑦) ∈ ℤ)
81 simprr 769 . . . . . . . . . . . 12 ((𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ)) → (2nd𝑦) ∈ ℕ)
8281ad2antlr 723 . . . . . . . . . . 11 ((((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) ∧ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ))) ∧ ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦))))) → (2nd𝑦) ∈ ℕ)
83 simprrl 777 . . . . . . . . . . 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 776 . . . . . . . . . . . 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 778 . . . . . . . . . . . 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 2780 . . . . . . . . . . 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 16290 . . . . . . . . . . 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 1393 . . . . . . . . . 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 6769 . . . . . . . . . . 11 (1st𝑥) ∈ V
90 fvex 6769 . . . . . . . . . . 11 (2nd𝑥) ∈ V
9189, 90opth 5385 . . . . . . . . . 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 771 . . . . . . . . 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 773 . . . . . . . . 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 2788 . . . . . . . 8 ((((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) ∧ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ))) ∧ ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦))))) → 𝑥 = 𝑦)
9695ex 412 . . . . . . 7 (((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℤ ∧ (2nd𝑥) ∈ ℕ)) ∧ (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ ∧ ((1st𝑦) ∈ ℤ ∧ (2nd𝑦) ∈ ℕ))) → (((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦)))) → 𝑥 = 𝑦))
9772, 73, 96syl2anb 597 . . . . . 6 ((𝑥 ∈ (ℤ × ℕ) ∧ 𝑦 ∈ (ℤ × ℕ)) → (((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦)))) → 𝑥 = 𝑦))
9897rgen2 3126 . . . . 5 𝑥 ∈ (ℤ × ℕ)∀𝑦 ∈ (ℤ × ℕ)(((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦)))) → 𝑥 = 𝑦)
9971, 98jctir 520 . . . 4 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ ∧ 𝐴 = (𝑧 / 𝑛)) → (∃𝑥 ∈ (ℤ × ℕ)(((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ ∀𝑥 ∈ (ℤ × ℕ)∀𝑦 ∈ (ℤ × ℕ)(((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦)))) → 𝑥 = 𝑦)))
100993expia 1119 . . 3 ((𝑧 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝐴 = (𝑧 / 𝑛) → (∃𝑥 ∈ (ℤ × ℕ)(((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ ∀𝑥 ∈ (ℤ × ℕ)∀𝑦 ∈ (ℤ × ℕ)(((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦)))) → 𝑥 = 𝑦))))
101100rexlimivv 3220 . 2 (∃𝑧 ∈ ℤ ∃𝑛 ∈ ℕ 𝐴 = (𝑧 / 𝑛) → (∃𝑥 ∈ (ℤ × ℕ)(((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ ∀𝑥 ∈ (ℤ × ℕ)∀𝑦 ∈ (ℤ × ℕ)(((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ∧ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦)))) → 𝑥 = 𝑦)))
102 elq 12619 . 2 (𝐴 ∈ ℚ ↔ ∃𝑧 ∈ ℤ ∃𝑛 ∈ ℕ 𝐴 = (𝑧 / 𝑛))
103 fveq2 6756 . . . . . 6 (𝑥 = 𝑦 → (1st𝑥) = (1st𝑦))
104 fveq2 6756 . . . . . 6 (𝑥 = 𝑦 → (2nd𝑥) = (2nd𝑦))
105103, 104oveq12d 7273 . . . . 5 (𝑥 = 𝑦 → ((1st𝑥) gcd (2nd𝑥)) = ((1st𝑦) gcd (2nd𝑦)))
106105eqeq1d 2740 . . . 4 (𝑥 = 𝑦 → (((1st𝑥) gcd (2nd𝑥)) = 1 ↔ ((1st𝑦) gcd (2nd𝑦)) = 1))
107103, 104oveq12d 7273 . . . . 5 (𝑥 = 𝑦 → ((1st𝑥) / (2nd𝑥)) = ((1st𝑦) / (2nd𝑦)))
108107eqeq2d 2749 . . . 4 (𝑥 = 𝑦 → (𝐴 = ((1st𝑥) / (2nd𝑥)) ↔ 𝐴 = ((1st𝑦) / (2nd𝑦))))
109106, 108anbi12d 630 . . 3 (𝑥 = 𝑦 → ((((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))) ↔ (((1st𝑦) gcd (2nd𝑦)) = 1 ∧ 𝐴 = ((1st𝑦) / (2nd𝑦)))))
110109reu4 3661 . 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 291 1 (𝐴 ∈ ℚ → ∃!𝑥 ∈ (ℤ × ℕ)(((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝐴 = ((1st𝑥) / (2nd𝑥))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  w3a 1085   = wceq 1539  wcel 2108  wne 2942  wral 3063  wrex 3064  ∃!wreu 3065  cop 4564   class class class wbr 5070   × cxp 5578  cfv 6418  (class class class)co 7255  1st c1st 7802  2nd c2nd 7803  cc 10800  cr 10801  0cc0 10802  1c1 10803   · cmul 10807   < clt 10940   / cdiv 11562  cn 11903  0cn0 12163  cz 12249  cq 12617  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-1st 7804  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-q 12618  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:  qnumdencl  16371  qnumdenbi  16376
  Copyright terms: Public domain W3C validator