Step | Hyp | Ref
| Expression |
1 | | opelxpi 4636 |
. . . 4
⊢ ((𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
〈𝐵, 𝐶〉 ∈ (ℤ ×
ℕ)) |
2 | 1 | 3adant1 1005 |
. . 3
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
〈𝐵, 𝐶〉 ∈ (ℤ ×
ℕ)) |
3 | | qredeu 12029 |
. . . 4
⊢ (𝐴 ∈ ℚ →
∃!𝑎 ∈ (ℤ
× ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) |
4 | 3 | 3ad2ant1 1008 |
. . 3
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
∃!𝑎 ∈ (ℤ
× ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) |
5 | | fveq2 5486 |
. . . . . . 7
⊢ (𝑎 = 〈𝐵, 𝐶〉 → (1st ‘𝑎) = (1st
‘〈𝐵, 𝐶〉)) |
6 | | fveq2 5486 |
. . . . . . 7
⊢ (𝑎 = 〈𝐵, 𝐶〉 → (2nd ‘𝑎) = (2nd
‘〈𝐵, 𝐶〉)) |
7 | 5, 6 | oveq12d 5860 |
. . . . . 6
⊢ (𝑎 = 〈𝐵, 𝐶〉 → ((1st ‘𝑎) gcd (2nd
‘𝑎)) =
((1st ‘〈𝐵, 𝐶〉) gcd (2nd
‘〈𝐵, 𝐶〉))) |
8 | 7 | eqeq1d 2174 |
. . . . 5
⊢ (𝑎 = 〈𝐵, 𝐶〉 → (((1st ‘𝑎) gcd (2nd
‘𝑎)) = 1 ↔
((1st ‘〈𝐵, 𝐶〉) gcd (2nd
‘〈𝐵, 𝐶〉)) = 1)) |
9 | 5, 6 | oveq12d 5860 |
. . . . . 6
⊢ (𝑎 = 〈𝐵, 𝐶〉 → ((1st ‘𝑎) / (2nd ‘𝑎)) = ((1st
‘〈𝐵, 𝐶〉) / (2nd
‘〈𝐵, 𝐶〉))) |
10 | 9 | eqeq2d 2177 |
. . . . 5
⊢ (𝑎 = 〈𝐵, 𝐶〉 → (𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)) ↔ 𝐴 = ((1st ‘〈𝐵, 𝐶〉) / (2nd ‘〈𝐵, 𝐶〉)))) |
11 | 8, 10 | anbi12d 465 |
. . . 4
⊢ (𝑎 = 〈𝐵, 𝐶〉 → ((((1st
‘𝑎) gcd
(2nd ‘𝑎))
= 1 ∧ 𝐴 =
((1st ‘𝑎)
/ (2nd ‘𝑎))) ↔ (((1st
‘〈𝐵, 𝐶〉) gcd (2nd
‘〈𝐵, 𝐶〉)) = 1 ∧ 𝐴 = ((1st
‘〈𝐵, 𝐶〉) / (2nd
‘〈𝐵, 𝐶〉))))) |
12 | 11 | riota2 5820 |
. . 3
⊢
((〈𝐵, 𝐶〉 ∈ (ℤ ×
ℕ) ∧ ∃!𝑎
∈ (ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) → ((((1st
‘〈𝐵, 𝐶〉) gcd (2nd
‘〈𝐵, 𝐶〉)) = 1 ∧ 𝐴 = ((1st
‘〈𝐵, 𝐶〉) / (2nd
‘〈𝐵, 𝐶〉))) ↔
(℩𝑎 ∈
(ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) = 〈𝐵, 𝐶〉)) |
13 | 2, 4, 12 | syl2anc 409 |
. 2
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
((((1st ‘〈𝐵, 𝐶〉) gcd (2nd
‘〈𝐵, 𝐶〉)) = 1 ∧ 𝐴 = ((1st
‘〈𝐵, 𝐶〉) / (2nd
‘〈𝐵, 𝐶〉))) ↔
(℩𝑎 ∈
(ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) = 〈𝐵, 𝐶〉)) |
14 | | op1stg 6118 |
. . . . . 6
⊢ ((𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
(1st ‘〈𝐵, 𝐶〉) = 𝐵) |
15 | | op2ndg 6119 |
. . . . . 6
⊢ ((𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
(2nd ‘〈𝐵, 𝐶〉) = 𝐶) |
16 | 14, 15 | oveq12d 5860 |
. . . . 5
⊢ ((𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
((1st ‘〈𝐵, 𝐶〉) gcd (2nd
‘〈𝐵, 𝐶〉)) = (𝐵 gcd 𝐶)) |
17 | 16 | 3adant1 1005 |
. . . 4
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
((1st ‘〈𝐵, 𝐶〉) gcd (2nd
‘〈𝐵, 𝐶〉)) = (𝐵 gcd 𝐶)) |
18 | 17 | eqeq1d 2174 |
. . 3
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
(((1st ‘〈𝐵, 𝐶〉) gcd (2nd
‘〈𝐵, 𝐶〉)) = 1 ↔ (𝐵 gcd 𝐶) = 1)) |
19 | 14 | 3adant1 1005 |
. . . . 5
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
(1st ‘〈𝐵, 𝐶〉) = 𝐵) |
20 | 15 | 3adant1 1005 |
. . . . 5
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
(2nd ‘〈𝐵, 𝐶〉) = 𝐶) |
21 | 19, 20 | oveq12d 5860 |
. . . 4
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
((1st ‘〈𝐵, 𝐶〉) / (2nd ‘〈𝐵, 𝐶〉)) = (𝐵 / 𝐶)) |
22 | 21 | eqeq2d 2177 |
. . 3
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) → (𝐴 = ((1st
‘〈𝐵, 𝐶〉) / (2nd
‘〈𝐵, 𝐶〉)) ↔ 𝐴 = (𝐵 / 𝐶))) |
23 | 18, 22 | anbi12d 465 |
. 2
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
((((1st ‘〈𝐵, 𝐶〉) gcd (2nd
‘〈𝐵, 𝐶〉)) = 1 ∧ 𝐴 = ((1st
‘〈𝐵, 𝐶〉) / (2nd
‘〈𝐵, 𝐶〉))) ↔ ((𝐵 gcd 𝐶) = 1 ∧ 𝐴 = (𝐵 / 𝐶)))) |
24 | | riotacl 5812 |
. . . . . . 7
⊢
(∃!𝑎 ∈
(ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎))) → (℩𝑎 ∈ (ℤ ×
ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) ∈ (ℤ ×
ℕ)) |
25 | | 1st2nd2 6143 |
. . . . . . 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 ‘𝑎)))))〉) |
26 | 3, 24, 25 | 3syl 17 |
. . . . . 6
⊢ (𝐴 ∈ ℚ →
(℩𝑎 ∈
(ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) = 〈(1st
‘(℩𝑎
∈ (ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎))))), (2nd
‘(℩𝑎
∈ (ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))))〉) |
27 | | qnumval 12117 |
. . . . . . 7
⊢ (𝐴 ∈ ℚ →
(numer‘𝐴) =
(1st ‘(℩𝑎 ∈ (ℤ ×
ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))))) |
28 | | qdenval 12118 |
. . . . . . 7
⊢ (𝐴 ∈ ℚ →
(denom‘𝐴) =
(2nd ‘(℩𝑎 ∈ (ℤ ×
ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))))) |
29 | 27, 28 | opeq12d 3766 |
. . . . . 6
⊢ (𝐴 ∈ ℚ →
〈(numer‘𝐴),
(denom‘𝐴)〉 =
〈(1st ‘(℩𝑎 ∈ (ℤ ×
ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎))))), (2nd
‘(℩𝑎
∈ (ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))))〉) |
30 | 26, 29 | eqtr4d 2201 |
. . . . 5
⊢ (𝐴 ∈ ℚ →
(℩𝑎 ∈
(ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) = 〈(numer‘𝐴), (denom‘𝐴)〉) |
31 | 30 | eqeq1d 2174 |
. . . 4
⊢ (𝐴 ∈ ℚ →
((℩𝑎 ∈
(ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) = 〈𝐵, 𝐶〉 ↔ 〈(numer‘𝐴), (denom‘𝐴)〉 = 〈𝐵, 𝐶〉)) |
32 | 31 | 3ad2ant1 1008 |
. . 3
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
((℩𝑎 ∈
(ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) = 〈𝐵, 𝐶〉 ↔ 〈(numer‘𝐴), (denom‘𝐴)〉 = 〈𝐵, 𝐶〉)) |
33 | | qnumcl 12120 |
. . . . 5
⊢ (𝐴 ∈ ℚ →
(numer‘𝐴) ∈
ℤ) |
34 | | qdencl 12121 |
. . . . 5
⊢ (𝐴 ∈ ℚ →
(denom‘𝐴) ∈
ℕ) |
35 | | opthg 4216 |
. . . . 5
⊢
(((numer‘𝐴)
∈ ℤ ∧ (denom‘𝐴) ∈ ℕ) →
(〈(numer‘𝐴),
(denom‘𝐴)〉 =
〈𝐵, 𝐶〉 ↔ ((numer‘𝐴) = 𝐵 ∧ (denom‘𝐴) = 𝐶))) |
36 | 33, 34, 35 | syl2anc 409 |
. . . 4
⊢ (𝐴 ∈ ℚ →
(〈(numer‘𝐴),
(denom‘𝐴)〉 =
〈𝐵, 𝐶〉 ↔ ((numer‘𝐴) = 𝐵 ∧ (denom‘𝐴) = 𝐶))) |
37 | 36 | 3ad2ant1 1008 |
. . 3
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
(〈(numer‘𝐴),
(denom‘𝐴)〉 =
〈𝐵, 𝐶〉 ↔ ((numer‘𝐴) = 𝐵 ∧ (denom‘𝐴) = 𝐶))) |
38 | 32, 37 | bitrd 187 |
. 2
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) →
((℩𝑎 ∈
(ℤ × ℕ)(((1st ‘𝑎) gcd (2nd ‘𝑎)) = 1 ∧ 𝐴 = ((1st ‘𝑎) / (2nd ‘𝑎)))) = 〈𝐵, 𝐶〉 ↔ ((numer‘𝐴) = 𝐵 ∧ (denom‘𝐴) = 𝐶))) |
39 | 13, 23, 38 | 3bitr3d 217 |
1
⊢ ((𝐴 ∈ ℚ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℕ) → (((𝐵 gcd 𝐶) = 1 ∧ 𝐴 = (𝐵 / 𝐶)) ↔ ((numer‘𝐴) = 𝐵 ∧ (denom‘𝐴) = 𝐶))) |