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

Definition df-numer 16071
 Description: The canonical numerator of a rational is the numerator of the rational's reduced fraction representation (no common factors, denominator positive). (Contributed by Stefan O'Rear, 13-Sep-2014.)
Assertion
Ref Expression
df-numer numer = (𝑦 ∈ ℚ ↦ (1st ‘(𝑥 ∈ (ℤ × ℕ)(((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝑦 = ((1st𝑥) / (2nd𝑥))))))
Distinct variable group:   𝑥,𝑦

Detailed syntax breakdown of Definition df-numer
StepHypRef Expression
1 cnumer 16069 . 2 class numer
2 vy . . 3 setvar 𝑦
3 cq 12343 . . 3 class
4 vx . . . . . . . . . 10 setvar 𝑥
54cv 1537 . . . . . . . . 9 class 𝑥
6 c1st 7679 . . . . . . . . 9 class 1st
75, 6cfv 6344 . . . . . . . 8 class (1st𝑥)
8 c2nd 7680 . . . . . . . . 9 class 2nd
95, 8cfv 6344 . . . . . . . 8 class (2nd𝑥)
10 cgcd 15839 . . . . . . . 8 class gcd
117, 9, 10co 7146 . . . . . . 7 class ((1st𝑥) gcd (2nd𝑥))
12 c1 10532 . . . . . . 7 class 1
1311, 12wceq 1538 . . . . . 6 wff ((1st𝑥) gcd (2nd𝑥)) = 1
142cv 1537 . . . . . . 7 class 𝑦
15 cdiv 11291 . . . . . . . 8 class /
167, 9, 15co 7146 . . . . . . 7 class ((1st𝑥) / (2nd𝑥))
1714, 16wceq 1538 . . . . . 6 wff 𝑦 = ((1st𝑥) / (2nd𝑥))
1813, 17wa 399 . . . . 5 wff (((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝑦 = ((1st𝑥) / (2nd𝑥)))
19 cz 11976 . . . . . 6 class
20 cn 11632 . . . . . 6 class
2119, 20cxp 5541 . . . . 5 class (ℤ × ℕ)
2218, 4, 21crio 7103 . . . 4 class (𝑥 ∈ (ℤ × ℕ)(((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝑦 = ((1st𝑥) / (2nd𝑥))))
2322, 6cfv 6344 . . 3 class (1st ‘(𝑥 ∈ (ℤ × ℕ)(((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝑦 = ((1st𝑥) / (2nd𝑥)))))
242, 3, 23cmpt 5133 . 2 class (𝑦 ∈ ℚ ↦ (1st ‘(𝑥 ∈ (ℤ × ℕ)(((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝑦 = ((1st𝑥) / (2nd𝑥))))))
251, 24wceq 1538 1 wff numer = (𝑦 ∈ ℚ ↦ (1st ‘(𝑥 ∈ (ℤ × ℕ)(((1st𝑥) gcd (2nd𝑥)) = 1 ∧ 𝑦 = ((1st𝑥) / (2nd𝑥))))))
 Colors of variables: wff setvar class This definition is referenced by:  qnumval  16073  fnum  16078
 Copyright terms: Public domain W3C validator