Step | Hyp | Ref
| Expression |
1 | | qredeu 16344 |
. . . . . . 7
⊢ (𝐴 ∈ ℚ →
∃!𝑎 ∈ (ℤ
× ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) |
2 | | riotacl 7243 |
. . . . . . 7
⊢
(∃!𝑎 ∈
(ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎))) → (℩𝑎 ∈ (ℤ ×
ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) ∈ (ℤ ×
ℕ)) |
3 | | 1st2nd2 7856 |
. . . . . . 7
⊢
((℩𝑎
∈ (ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) ∈ (ℤ ×
ℕ) → (℩𝑎 ∈ (ℤ ×
ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) = 〈(1st
‘(℩𝑎
∈ (ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎))))), (2nd
‘(℩𝑎
∈ (ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))))〉) |
4 | 1, 2, 3 | 3syl 18 |
. . . . . 6
⊢ (𝐴 ∈ ℚ →
(℩𝑎 ∈
(ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) = 〈(1st
‘(℩𝑎
∈ (ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎))))), (2nd
‘(℩𝑎
∈ (ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))))〉) |
5 | | qnumval 16422 |
. . . . . . 7
⊢ (𝐴 ∈ ℚ →
(numer‘𝐴) =
(1st ‘(℩𝑎 ∈ (ℤ ×
ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))))) |
6 | | qdenval 16423 |
. . . . . . 7
⊢ (𝐴 ∈ ℚ →
(denom‘𝐴) =
(2nd ‘(℩𝑎 ∈ (ℤ ×
ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))))) |
7 | 5, 6 | opeq12d 4817 |
. . . . . 6
⊢ (𝐴 ∈ ℚ →
〈(numer‘𝐴),
(denom‘𝐴)〉 =
〈(1st ‘(℩𝑎 ∈ (ℤ ×
ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎))))), (2nd
‘(℩𝑎
∈ (ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))))〉) |
8 | 4, 7 | eqtr4d 2782 |
. . . . 5
⊢ (𝐴 ∈ ℚ →
(℩𝑎 ∈
(ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) = 〈(numer‘𝐴), (denom‘𝐴)〉) |
9 | 8 | eqeq1d 2741 |
. . . 4
⊢ (𝐴 ∈ ℚ →
((℩𝑎 ∈
(ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) = 〈𝐵, 𝐶〉 ↔ 〈(numer‘𝐴), (denom‘𝐴)〉 = 〈𝐵, 𝐶〉)) |
10 | 9 | 3ad2ant1 1131 |
. . 3
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
((℩𝑎 ∈
(ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) = 〈𝐵, 𝐶〉 ↔ 〈(numer‘𝐴), (denom‘𝐴)〉 = 〈𝐵, 𝐶〉)) |
11 | | fvex 6781 |
. . . 4
⊢
(numer‘𝐴)
∈ V |
12 | | fvex 6781 |
. . . 4
⊢
(denom‘𝐴)
∈ V |
13 | 11, 12 | opth 5393 |
. . 3
⊢
(〈(numer‘𝐴), (denom‘𝐴)〉 = 〈𝐵, 𝐶〉 ↔ ((numer‘𝐴) = 𝐵 ∧ (denom‘𝐴) = 𝐶)) |
14 | 10, 13 | bitr2di 287 |
. 2
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
(((numer‘𝐴) = 𝐵 ∧ (denom‘𝐴) = 𝐶) ↔ (℩𝑎 ∈ (ℤ ×
ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) = 〈𝐵, 𝐶〉)) |
15 | | opelxpi 5625 |
. . . 4
⊢ ((𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
〈𝐵, 𝐶〉 ∈ (ℤ ×
ℕ)) |
16 | 15 | 3adant1 1128 |
. . 3
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
〈𝐵, 𝐶〉 ∈ (ℤ ×
ℕ)) |
17 | 1 | 3ad2ant1 1131 |
. . 3
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
∃!𝑎 ∈ (ℤ
× ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) |
18 | | fveq2 6768 |
. . . . . . 7
⊢ (𝑎 = 〈𝐵, 𝐶〉 → (1st ‘𝑎) = (1st
‘〈𝐵, 𝐶〉)) |
19 | | fveq2 6768 |
. . . . . . 7
⊢ (𝑎 = 〈𝐵, 𝐶〉 → (2nd ‘𝑎) = (2nd
‘〈𝐵, 𝐶〉)) |
20 | 18, 19 | oveq12d 7286 |
. . . . . 6
⊢ (𝑎 = 〈𝐵, 𝐶〉 → ((1st ‘𝑎) gcd (2nd
‘𝑎)) =
((1st ‘〈𝐵, 𝐶〉) gcd (2nd
‘〈𝐵, 𝐶〉))) |
21 | 20 | eqeq1d 2741 |
. . . . 5
⊢ (𝑎 = 〈𝐵, 𝐶〉 → (((1st ‘𝑎) gcd (2nd
‘𝑎)) = 1 ↔
((1st ‘〈𝐵, 𝐶〉) gcd (2nd
‘〈𝐵, 𝐶〉)) = 1)) |
22 | 18, 19 | oveq12d 7286 |
. . . . . 6
⊢ (𝑎 = 〈𝐵, 𝐶〉 → ((1st ‘𝑎) / (2nd ‘𝑎)) = ((1st
‘〈𝐵, 𝐶〉) / (2nd
‘〈𝐵, 𝐶〉))) |
23 | 22 | eqeq2d 2750 |
. . . . 5
⊢ (𝑎 = 〈𝐵, 𝐶〉 → (𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)) ↔ 𝐴 = ((1st ‘〈𝐵, 𝐶〉) / (2nd ‘〈𝐵, 𝐶〉)))) |
24 | 21, 23 | anbi12d 630 |
. . . 4
⊢ (𝑎 = 〈𝐵, 𝐶〉 → ((((1st
‘𝑎) gcd
(2nd ‘𝑎))
= 1 ∧ 𝐴 =
((1st ‘𝑎)
/ (2nd ‘𝑎))) ↔ (((1st
‘〈𝐵, 𝐶〉) gcd (2nd
‘〈𝐵, 𝐶〉)) = 1 ∧ 𝐴 = ((1st
‘〈𝐵, 𝐶〉) / (2nd
‘〈𝐵, 𝐶〉))))) |
25 | 24 | riota2 7251 |
. . 3
⊢
((〈𝐵, 𝐶〉 ∈ (ℤ ×
ℕ) ∧ ∃!𝑎
∈ (ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) → ((((1st
‘〈𝐵, 𝐶〉) gcd (2nd
‘〈𝐵, 𝐶〉)) = 1 ∧ 𝐴 = ((1st
‘〈𝐵, 𝐶〉) / (2nd
‘〈𝐵, 𝐶〉))) ↔
(℩𝑎 ∈
(ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) = 〈𝐵, 𝐶〉)) |
26 | 16, 17, 25 | syl2anc 583 |
. 2
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
((((1st ‘〈𝐵, 𝐶〉) gcd (2nd
‘〈𝐵, 𝐶〉)) = 1 ∧ 𝐴 = ((1st
‘〈𝐵, 𝐶〉) / (2nd
‘〈𝐵, 𝐶〉))) ↔
(℩𝑎 ∈
(ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) = 〈𝐵, 𝐶〉)) |
27 | | op1stg 7829 |
. . . . . 6
⊢ ((𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
(1st ‘〈𝐵, 𝐶〉) = 𝐵) |
28 | | op2ndg 7830 |
. . . . . 6
⊢ ((𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
(2nd ‘〈𝐵, 𝐶〉) = 𝐶) |
29 | 27, 28 | oveq12d 7286 |
. . . . 5
⊢ ((𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
((1st ‘〈𝐵, 𝐶〉) gcd (2nd
‘〈𝐵, 𝐶〉)) = (𝐵 gcd 𝐶)) |
30 | 29 | 3adant1 1128 |
. . . 4
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
((1st ‘〈𝐵, 𝐶〉) gcd (2nd
‘〈𝐵, 𝐶〉)) = (𝐵 gcd 𝐶)) |
31 | 30 | eqeq1d 2741 |
. . 3
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
(((1st ‘〈𝐵, 𝐶〉) gcd (2nd
‘〈𝐵, 𝐶〉)) = 1 ↔ (𝐵 gcd 𝐶) = 1)) |
32 | 27 | 3adant1 1128 |
. . . . 5
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
(1st ‘〈𝐵, 𝐶〉) = 𝐵) |
33 | 28 | 3adant1 1128 |
. . . . 5
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
(2nd ‘〈𝐵, 𝐶〉) = 𝐶) |
34 | 32, 33 | oveq12d 7286 |
. . . 4
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
((1st ‘〈𝐵, 𝐶〉) / (2nd ‘〈𝐵, 𝐶〉)) = (𝐵 / 𝐶)) |
35 | 34 | eqeq2d 2750 |
. . 3
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) → (𝐴 = ((1st
‘〈𝐵, 𝐶〉) / (2nd
‘〈𝐵, 𝐶〉)) ↔ 𝐴 = (𝐵 / 𝐶))) |
36 | 31, 35 | anbi12d 630 |
. 2
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
((((1st ‘〈𝐵, 𝐶〉) gcd (2nd
‘〈𝐵, 𝐶〉)) = 1 ∧ 𝐴 = ((1st
‘〈𝐵, 𝐶〉) / (2nd
‘〈𝐵, 𝐶〉))) ↔ ((𝐵 gcd 𝐶) = 1 ∧ 𝐴 = (𝐵 / 𝐶)))) |
37 | 14, 26, 36 | 3bitr2rd 307 |
1
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) → (((𝐵 gcd 𝐶) = 1 ∧ 𝐴 = (𝐵 / 𝐶)) ↔ ((numer‘𝐴) = 𝐵 ∧ (denom‘𝐴) = 𝐶))) |