Step | Hyp | Ref
| Expression |
1 | | qredeu 16215 |
. . . . . . 7
⊢ (𝐴 ∈ ℚ →
∃!𝑎 ∈ (ℤ
× ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) |
2 | | riotacl 7188 |
. . . . . . 7
⊢
(∃!𝑎 ∈
(ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎))) → (℩𝑎 ∈ (ℤ ×
ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) ∈ (ℤ ×
ℕ)) |
3 | | 1st2nd2 7800 |
. . . . . . 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 16293 |
. . . . . . 7
⊢ (𝐴 ∈ ℚ →
(numer‘𝐴) =
(1st ‘(℩𝑎 ∈ (ℤ ×
ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))))) |
6 | | qdenval 16294 |
. . . . . . 7
⊢ (𝐴 ∈ ℚ →
(denom‘𝐴) =
(2nd ‘(℩𝑎 ∈ (ℤ ×
ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))))) |
7 | 5, 6 | opeq12d 4792 |
. . . . . 6
⊢ (𝐴 ∈ ℚ →
〈(numer‘𝐴),
(denom‘𝐴)〉 =
〈(1st ‘(℩𝑎 ∈ (ℤ ×
ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎))))), (2nd
‘(℩𝑎
∈ (ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))))〉) |
8 | 4, 7 | eqtr4d 2780 |
. . . . 5
⊢ (𝐴 ∈ ℚ →
(℩𝑎 ∈
(ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) = 〈(numer‘𝐴), (denom‘𝐴)〉) |
9 | 8 | eqeq1d 2739 |
. . . 4
⊢ (𝐴 ∈ ℚ →
((℩𝑎 ∈
(ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) = 〈𝐵, 𝐶〉 ↔ 〈(numer‘𝐴), (denom‘𝐴)〉 = 〈𝐵, 𝐶〉)) |
10 | 9 | 3ad2ant1 1135 |
. . 3
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
((℩𝑎 ∈
(ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) = 〈𝐵, 𝐶〉 ↔ 〈(numer‘𝐴), (denom‘𝐴)〉 = 〈𝐵, 𝐶〉)) |
11 | | fvex 6730 |
. . . 4
⊢
(numer‘𝐴)
∈ V |
12 | | fvex 6730 |
. . . 4
⊢
(denom‘𝐴)
∈ V |
13 | 11, 12 | opth 5360 |
. . 3
⊢
(〈(numer‘𝐴), (denom‘𝐴)〉 = 〈𝐵, 𝐶〉 ↔ ((numer‘𝐴) = 𝐵 ∧ (denom‘𝐴) = 𝐶)) |
14 | 10, 13 | bitr2di 291 |
. 2
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
(((numer‘𝐴) = 𝐵 ∧ (denom‘𝐴) = 𝐶) ↔ (℩𝑎 ∈ (ℤ ×
ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) = 〈𝐵, 𝐶〉)) |
15 | | opelxpi 5588 |
. . . 4
⊢ ((𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
〈𝐵, 𝐶〉 ∈ (ℤ ×
ℕ)) |
16 | 15 | 3adant1 1132 |
. . 3
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
〈𝐵, 𝐶〉 ∈ (ℤ ×
ℕ)) |
17 | 1 | 3ad2ant1 1135 |
. . 3
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
∃!𝑎 ∈ (ℤ
× ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) |
18 | | fveq2 6717 |
. . . . . . 7
⊢ (𝑎 = 〈𝐵, 𝐶〉 → (1st ‘𝑎) = (1st
‘〈𝐵, 𝐶〉)) |
19 | | fveq2 6717 |
. . . . . . 7
⊢ (𝑎 = 〈𝐵, 𝐶〉 → (2nd ‘𝑎) = (2nd
‘〈𝐵, 𝐶〉)) |
20 | 18, 19 | oveq12d 7231 |
. . . . . 6
⊢ (𝑎 = 〈𝐵, 𝐶〉 → ((1st ‘𝑎) gcd (2nd
‘𝑎)) =
((1st ‘〈𝐵, 𝐶〉) gcd (2nd
‘〈𝐵, 𝐶〉))) |
21 | 20 | eqeq1d 2739 |
. . . . 5
⊢ (𝑎 = 〈𝐵, 𝐶〉 → (((1st ‘𝑎) gcd (2nd
‘𝑎)) = 1 ↔
((1st ‘〈𝐵, 𝐶〉) gcd (2nd
‘〈𝐵, 𝐶〉)) = 1)) |
22 | 18, 19 | oveq12d 7231 |
. . . . . 6
⊢ (𝑎 = 〈𝐵, 𝐶〉 → ((1st ‘𝑎) / (2nd ‘𝑎)) = ((1st
‘〈𝐵, 𝐶〉) / (2nd
‘〈𝐵, 𝐶〉))) |
23 | 22 | eqeq2d 2748 |
. . . . 5
⊢ (𝑎 = 〈𝐵, 𝐶〉 → (𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)) ↔ 𝐴 = ((1st ‘〈𝐵, 𝐶〉) / (2nd ‘〈𝐵, 𝐶〉)))) |
24 | 21, 23 | anbi12d 634 |
. . . 4
⊢ (𝑎 = 〈𝐵, 𝐶〉 → ((((1st
‘𝑎) gcd
(2nd ‘𝑎))
= 1 ∧ 𝐴 =
((1st ‘𝑎)
/ (2nd ‘𝑎))) ↔ (((1st
‘〈𝐵, 𝐶〉) gcd (2nd
‘〈𝐵, 𝐶〉)) = 1 ∧ 𝐴 = ((1st
‘〈𝐵, 𝐶〉) / (2nd
‘〈𝐵, 𝐶〉))))) |
25 | 24 | riota2 7196 |
. . 3
⊢
((〈𝐵, 𝐶〉 ∈ (ℤ ×
ℕ) ∧ ∃!𝑎
∈ (ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) → ((((1st
‘〈𝐵, 𝐶〉) gcd (2nd
‘〈𝐵, 𝐶〉)) = 1 ∧ 𝐴 = ((1st
‘〈𝐵, 𝐶〉) / (2nd
‘〈𝐵, 𝐶〉))) ↔
(℩𝑎 ∈
(ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) = 〈𝐵, 𝐶〉)) |
26 | 16, 17, 25 | syl2anc 587 |
. 2
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
((((1st ‘〈𝐵, 𝐶〉) gcd (2nd
‘〈𝐵, 𝐶〉)) = 1 ∧ 𝐴 = ((1st
‘〈𝐵, 𝐶〉) / (2nd
‘〈𝐵, 𝐶〉))) ↔
(℩𝑎 ∈
(ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) = 〈𝐵, 𝐶〉)) |
27 | | op1stg 7773 |
. . . . . 6
⊢ ((𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
(1st ‘〈𝐵, 𝐶〉) = 𝐵) |
28 | | op2ndg 7774 |
. . . . . 6
⊢ ((𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
(2nd ‘〈𝐵, 𝐶〉) = 𝐶) |
29 | 27, 28 | oveq12d 7231 |
. . . . 5
⊢ ((𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
((1st ‘〈𝐵, 𝐶〉) gcd (2nd
‘〈𝐵, 𝐶〉)) = (𝐵 gcd 𝐶)) |
30 | 29 | 3adant1 1132 |
. . . 4
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
((1st ‘〈𝐵, 𝐶〉) gcd (2nd
‘〈𝐵, 𝐶〉)) = (𝐵 gcd 𝐶)) |
31 | 30 | eqeq1d 2739 |
. . 3
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
(((1st ‘〈𝐵, 𝐶〉) gcd (2nd
‘〈𝐵, 𝐶〉)) = 1 ↔ (𝐵 gcd 𝐶) = 1)) |
32 | 27 | 3adant1 1132 |
. . . . 5
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
(1st ‘〈𝐵, 𝐶〉) = 𝐵) |
33 | 28 | 3adant1 1132 |
. . . . 5
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
(2nd ‘〈𝐵, 𝐶〉) = 𝐶) |
34 | 32, 33 | oveq12d 7231 |
. . . 4
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
((1st ‘〈𝐵, 𝐶〉) / (2nd ‘〈𝐵, 𝐶〉)) = (𝐵 / 𝐶)) |
35 | 34 | eqeq2d 2748 |
. . 3
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) → (𝐴 = ((1st
‘〈𝐵, 𝐶〉) / (2nd
‘〈𝐵, 𝐶〉)) ↔ 𝐴 = (𝐵 / 𝐶))) |
36 | 31, 35 | anbi12d 634 |
. 2
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
((((1st ‘〈𝐵, 𝐶〉) gcd (2nd
‘〈𝐵, 𝐶〉)) = 1 ∧ 𝐴 = ((1st
‘〈𝐵, 𝐶〉) / (2nd
‘〈𝐵, 𝐶〉))) ↔ ((𝐵 gcd 𝐶) = 1 ∧ 𝐴 = (𝐵 / 𝐶)))) |
37 | 14, 26, 36 | 3bitr2rd 311 |
1
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) → (((𝐵 gcd 𝐶) = 1 ∧ 𝐴 = (𝐵 / 𝐶)) ↔ ((numer‘𝐴) = 𝐵 ∧ (denom‘𝐴) = 𝐶))) |