Detailed syntax breakdown of Definition df-gcd
Step | Hyp | Ref
| Expression |
1 | | cgcd 11875 |
. 2
class
gcd |
2 | | vx |
. . 3
setvar 𝑥 |
3 | | vy |
. . 3
setvar 𝑦 |
4 | | cz 9191 |
. . 3
class
ℤ |
5 | 2 | cv 1342 |
. . . . . 6
class 𝑥 |
6 | | cc0 7753 |
. . . . . 6
class
0 |
7 | 5, 6 | wceq 1343 |
. . . . 5
wff 𝑥 = 0 |
8 | 3 | cv 1342 |
. . . . . 6
class 𝑦 |
9 | 8, 6 | wceq 1343 |
. . . . 5
wff 𝑦 = 0 |
10 | 7, 9 | wa 103 |
. . . 4
wff (𝑥 = 0 ∧ 𝑦 = 0) |
11 | | vn |
. . . . . . . . 9
setvar 𝑛 |
12 | 11 | cv 1342 |
. . . . . . . 8
class 𝑛 |
13 | | cdvds 11727 |
. . . . . . . 8
class
∥ |
14 | 12, 5, 13 | wbr 3982 |
. . . . . . 7
wff 𝑛 ∥ 𝑥 |
15 | 12, 8, 13 | wbr 3982 |
. . . . . . 7
wff 𝑛 ∥ 𝑦 |
16 | 14, 15 | wa 103 |
. . . . . 6
wff (𝑛 ∥ 𝑥 ∧ 𝑛 ∥ 𝑦) |
17 | 16, 11, 4 | crab 2448 |
. . . . 5
class {𝑛 ∈ ℤ ∣ (𝑛 ∥ 𝑥 ∧ 𝑛 ∥ 𝑦)} |
18 | | cr 7752 |
. . . . 5
class
ℝ |
19 | | clt 7933 |
. . . . 5
class
< |
20 | 17, 18, 19 | csup 6947 |
. . . 4
class
sup({𝑛 ∈
ℤ ∣ (𝑛 ∥
𝑥 ∧ 𝑛 ∥ 𝑦)}, ℝ, < ) |
21 | 10, 6, 20 | cif 3520 |
. . 3
class if((𝑥 = 0 ∧ 𝑦 = 0), 0, sup({𝑛 ∈ ℤ ∣ (𝑛 ∥ 𝑥 ∧ 𝑛 ∥ 𝑦)}, ℝ, < )) |
22 | 2, 3, 4, 4, 21 | cmpo 5844 |
. 2
class (𝑥 ∈ ℤ, 𝑦 ∈ ℤ ↦
if((𝑥 = 0 ∧ 𝑦 = 0), 0, sup({𝑛 ∈ ℤ ∣ (𝑛 ∥ 𝑥 ∧ 𝑛 ∥ 𝑦)}, ℝ, < ))) |
23 | 1, 22 | wceq 1343 |
1
wff gcd =
(𝑥 ∈ ℤ, 𝑦 ∈ ℤ ↦
if((𝑥 = 0 ∧ 𝑦 = 0), 0, sup({𝑛 ∈ ℤ ∣ (𝑛 ∥ 𝑥 ∧ 𝑛 ∥ 𝑦)}, ℝ, < ))) |