Step |
Hyp |
Ref |
Expression |
1 |
|
qredeu |
⊢ ( 𝐴 ∈ ℚ → ∃! 𝑎 ∈ ( ℤ × ℕ ) ( ( ( 1st ‘ 𝑎 ) gcd ( 2nd ‘ 𝑎 ) ) = 1 ∧ 𝐴 = ( ( 1st ‘ 𝑎 ) / ( 2nd ‘ 𝑎 ) ) ) ) |
2 |
|
riotacl |
⊢ ( ∃! 𝑎 ∈ ( ℤ × ℕ ) ( ( ( 1st ‘ 𝑎 ) gcd ( 2nd ‘ 𝑎 ) ) = 1 ∧ 𝐴 = ( ( 1st ‘ 𝑎 ) / ( 2nd ‘ 𝑎 ) ) ) → ( ℩ 𝑎 ∈ ( ℤ × ℕ ) ( ( ( 1st ‘ 𝑎 ) gcd ( 2nd ‘ 𝑎 ) ) = 1 ∧ 𝐴 = ( ( 1st ‘ 𝑎 ) / ( 2nd ‘ 𝑎 ) ) ) ) ∈ ( ℤ × ℕ ) ) |
3 |
1 2
|
syl |
⊢ ( 𝐴 ∈ ℚ → ( ℩ 𝑎 ∈ ( ℤ × ℕ ) ( ( ( 1st ‘ 𝑎 ) gcd ( 2nd ‘ 𝑎 ) ) = 1 ∧ 𝐴 = ( ( 1st ‘ 𝑎 ) / ( 2nd ‘ 𝑎 ) ) ) ) ∈ ( ℤ × ℕ ) ) |
4 |
|
elxp6 |
⊢ ( ( ℩ 𝑎 ∈ ( ℤ × ℕ ) ( ( ( 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 ‘ 𝑎 ) ) ) ) ) 〉 ∧ ( ( 1st ‘ ( ℩ 𝑎 ∈ ( ℤ × ℕ ) ( ( ( 1st ‘ 𝑎 ) gcd ( 2nd ‘ 𝑎 ) ) = 1 ∧ 𝐴 = ( ( 1st ‘ 𝑎 ) / ( 2nd ‘ 𝑎 ) ) ) ) ) ∈ ℤ ∧ ( 2nd ‘ ( ℩ 𝑎 ∈ ( ℤ × ℕ ) ( ( ( 1st ‘ 𝑎 ) gcd ( 2nd ‘ 𝑎 ) ) = 1 ∧ 𝐴 = ( ( 1st ‘ 𝑎 ) / ( 2nd ‘ 𝑎 ) ) ) ) ) ∈ ℕ ) ) ) |
5 |
|
qnumval |
⊢ ( 𝐴 ∈ ℚ → ( numer ‘ 𝐴 ) = ( 1st ‘ ( ℩ 𝑎 ∈ ( ℤ × ℕ ) ( ( ( 1st ‘ 𝑎 ) gcd ( 2nd ‘ 𝑎 ) ) = 1 ∧ 𝐴 = ( ( 1st ‘ 𝑎 ) / ( 2nd ‘ 𝑎 ) ) ) ) ) ) |
6 |
5
|
eleq1d |
⊢ ( 𝐴 ∈ ℚ → ( ( numer ‘ 𝐴 ) ∈ ℤ ↔ ( 1st ‘ ( ℩ 𝑎 ∈ ( ℤ × ℕ ) ( ( ( 1st ‘ 𝑎 ) gcd ( 2nd ‘ 𝑎 ) ) = 1 ∧ 𝐴 = ( ( 1st ‘ 𝑎 ) / ( 2nd ‘ 𝑎 ) ) ) ) ) ∈ ℤ ) ) |
7 |
|
qdenval |
⊢ ( 𝐴 ∈ ℚ → ( denom ‘ 𝐴 ) = ( 2nd ‘ ( ℩ 𝑎 ∈ ( ℤ × ℕ ) ( ( ( 1st ‘ 𝑎 ) gcd ( 2nd ‘ 𝑎 ) ) = 1 ∧ 𝐴 = ( ( 1st ‘ 𝑎 ) / ( 2nd ‘ 𝑎 ) ) ) ) ) ) |
8 |
7
|
eleq1d |
⊢ ( 𝐴 ∈ ℚ → ( ( denom ‘ 𝐴 ) ∈ ℕ ↔ ( 2nd ‘ ( ℩ 𝑎 ∈ ( ℤ × ℕ ) ( ( ( 1st ‘ 𝑎 ) gcd ( 2nd ‘ 𝑎 ) ) = 1 ∧ 𝐴 = ( ( 1st ‘ 𝑎 ) / ( 2nd ‘ 𝑎 ) ) ) ) ) ∈ ℕ ) ) |
9 |
6 8
|
anbi12d |
⊢ ( 𝐴 ∈ ℚ → ( ( ( numer ‘ 𝐴 ) ∈ ℤ ∧ ( denom ‘ 𝐴 ) ∈ ℕ ) ↔ ( ( 1st ‘ ( ℩ 𝑎 ∈ ( ℤ × ℕ ) ( ( ( 1st ‘ 𝑎 ) gcd ( 2nd ‘ 𝑎 ) ) = 1 ∧ 𝐴 = ( ( 1st ‘ 𝑎 ) / ( 2nd ‘ 𝑎 ) ) ) ) ) ∈ ℤ ∧ ( 2nd ‘ ( ℩ 𝑎 ∈ ( ℤ × ℕ ) ( ( ( 1st ‘ 𝑎 ) gcd ( 2nd ‘ 𝑎 ) ) = 1 ∧ 𝐴 = ( ( 1st ‘ 𝑎 ) / ( 2nd ‘ 𝑎 ) ) ) ) ) ∈ ℕ ) ) ) |
10 |
9
|
biimprd |
⊢ ( 𝐴 ∈ ℚ → ( ( ( 1st ‘ ( ℩ 𝑎 ∈ ( ℤ × ℕ ) ( ( ( 1st ‘ 𝑎 ) gcd ( 2nd ‘ 𝑎 ) ) = 1 ∧ 𝐴 = ( ( 1st ‘ 𝑎 ) / ( 2nd ‘ 𝑎 ) ) ) ) ) ∈ ℤ ∧ ( 2nd ‘ ( ℩ 𝑎 ∈ ( ℤ × ℕ ) ( ( ( 1st ‘ 𝑎 ) gcd ( 2nd ‘ 𝑎 ) ) = 1 ∧ 𝐴 = ( ( 1st ‘ 𝑎 ) / ( 2nd ‘ 𝑎 ) ) ) ) ) ∈ ℕ ) → ( ( numer ‘ 𝐴 ) ∈ ℤ ∧ ( denom ‘ 𝐴 ) ∈ ℕ ) ) ) |
11 |
10
|
adantld |
⊢ ( 𝐴 ∈ ℚ → ( ( ( ℩ 𝑎 ∈ ( ℤ × ℕ ) ( ( ( 1st ‘ 𝑎 ) gcd ( 2nd ‘ 𝑎 ) ) = 1 ∧ 𝐴 = ( ( 1st ‘ 𝑎 ) / ( 2nd ‘ 𝑎 ) ) ) ) = 〈 ( 1st ‘ ( ℩ 𝑎 ∈ ( ℤ × ℕ ) ( ( ( 1st ‘ 𝑎 ) gcd ( 2nd ‘ 𝑎 ) ) = 1 ∧ 𝐴 = ( ( 1st ‘ 𝑎 ) / ( 2nd ‘ 𝑎 ) ) ) ) ) , ( 2nd ‘ ( ℩ 𝑎 ∈ ( ℤ × ℕ ) ( ( ( 1st ‘ 𝑎 ) gcd ( 2nd ‘ 𝑎 ) ) = 1 ∧ 𝐴 = ( ( 1st ‘ 𝑎 ) / ( 2nd ‘ 𝑎 ) ) ) ) ) 〉 ∧ ( ( 1st ‘ ( ℩ 𝑎 ∈ ( ℤ × ℕ ) ( ( ( 1st ‘ 𝑎 ) gcd ( 2nd ‘ 𝑎 ) ) = 1 ∧ 𝐴 = ( ( 1st ‘ 𝑎 ) / ( 2nd ‘ 𝑎 ) ) ) ) ) ∈ ℤ ∧ ( 2nd ‘ ( ℩ 𝑎 ∈ ( ℤ × ℕ ) ( ( ( 1st ‘ 𝑎 ) gcd ( 2nd ‘ 𝑎 ) ) = 1 ∧ 𝐴 = ( ( 1st ‘ 𝑎 ) / ( 2nd ‘ 𝑎 ) ) ) ) ) ∈ ℕ ) ) → ( ( numer ‘ 𝐴 ) ∈ ℤ ∧ ( denom ‘ 𝐴 ) ∈ ℕ ) ) ) |
12 |
4 11
|
syl5bi |
⊢ ( 𝐴 ∈ ℚ → ( ( ℩ 𝑎 ∈ ( ℤ × ℕ ) ( ( ( 1st ‘ 𝑎 ) gcd ( 2nd ‘ 𝑎 ) ) = 1 ∧ 𝐴 = ( ( 1st ‘ 𝑎 ) / ( 2nd ‘ 𝑎 ) ) ) ) ∈ ( ℤ × ℕ ) → ( ( numer ‘ 𝐴 ) ∈ ℤ ∧ ( denom ‘ 𝐴 ) ∈ ℕ ) ) ) |
13 |
3 12
|
mpd |
⊢ ( 𝐴 ∈ ℚ → ( ( numer ‘ 𝐴 ) ∈ ℤ ∧ ( denom ‘ 𝐴 ) ∈ ℕ ) ) |