Step | Hyp | Ref
| Expression |
1 | | simp3 994 |
. . . 4
⊢ ((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 < 0) → 𝐷 < 0) |
2 | 1 | lt0ne0d 8432 |
. . 3
⊢ ((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 < 0) → 𝐷 ≠ 0) |
3 | | divalglemex 11881 |
. . 3
⊢ ((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 ≠ 0) → ∃𝑟 ∈ ℤ ∃𝑞 ∈ ℤ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) |
4 | 2, 3 | syld3an3 1278 |
. 2
⊢ ((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 < 0) → ∃𝑟 ∈ ℤ ∃𝑞 ∈ ℤ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) |
5 | | nfv 1521 |
. . . . . 6
⊢
Ⅎ𝑞((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 < 0) ∧ (𝑟 ∈ ℤ ∧ 𝑠 ∈
ℤ)) |
6 | | nfre1 2513 |
. . . . . . 7
⊢
Ⅎ𝑞∃𝑞 ∈ ℤ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑠)) |
7 | | nfv 1521 |
. . . . . . 7
⊢
Ⅎ𝑞 𝑟 = 𝑠 |
8 | 6, 7 | nfim 1565 |
. . . . . 6
⊢
Ⅎ𝑞(∃𝑞 ∈ ℤ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑠)) → 𝑟 = 𝑠) |
9 | | oveq1 5860 |
. . . . . . . . . . . 12
⊢ (𝑞 = 𝑡 → (𝑞 · 𝐷) = (𝑡 · 𝐷)) |
10 | 9 | oveq1d 5868 |
. . . . . . . . . . 11
⊢ (𝑞 = 𝑡 → ((𝑞 · 𝐷) + 𝑠) = ((𝑡 · 𝐷) + 𝑠)) |
11 | 10 | eqeq2d 2182 |
. . . . . . . . . 10
⊢ (𝑞 = 𝑡 → (𝑁 = ((𝑞 · 𝐷) + 𝑠) ↔ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) |
12 | 11 | 3anbi3d 1313 |
. . . . . . . . 9
⊢ (𝑞 = 𝑡 → ((0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑠)) ↔ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠)))) |
13 | 12 | cbvrexv 2697 |
. . . . . . . 8
⊢
(∃𝑞 ∈
ℤ (0 ≤ 𝑠 ∧
𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑠)) ↔ ∃𝑡 ∈ ℤ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) |
14 | | simpr 109 |
. . . . . . . . . . . 12
⊢
((((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) ∧ 𝑞 < 𝑡) → 𝑞 < 𝑡) |
15 | | simp2 993 |
. . . . . . . . . . . . . . . . . 18
⊢ ((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 < 0) → 𝐷 ∈
ℤ) |
16 | 15 | znegcld 9336 |
. . . . . . . . . . . . . . . . 17
⊢ ((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 < 0) → -𝐷 ∈
ℤ) |
17 | 15 | zred 9334 |
. . . . . . . . . . . . . . . . . . 19
⊢ ((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 < 0) → 𝐷 ∈
ℝ) |
18 | 17 | lt0neg1d 8434 |
. . . . . . . . . . . . . . . . . 18
⊢ ((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 < 0) → (𝐷 < 0 ↔ 0 < -𝐷)) |
19 | 1, 18 | mpbid 146 |
. . . . . . . . . . . . . . . . 17
⊢ ((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 < 0) → 0 < -𝐷) |
20 | | elnnz 9222 |
. . . . . . . . . . . . . . . . 17
⊢ (-𝐷 ∈ ℕ ↔ (-𝐷 ∈ ℤ ∧ 0 <
-𝐷)) |
21 | 16, 19, 20 | sylanbrc 415 |
. . . . . . . . . . . . . . . 16
⊢ ((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 < 0) → -𝐷 ∈
ℕ) |
22 | 21 | ad5antr 493 |
. . . . . . . . . . . . . . 15
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → -𝐷 ∈ ℕ) |
23 | | simplrr 531 |
. . . . . . . . . . . . . . . 16
⊢ ((((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 < 0) ∧ (𝑟 ∈ ℤ ∧ 𝑠 ∈ ℤ)) ∧ 𝑞 ∈ ℤ) → 𝑠 ∈
ℤ) |
24 | 23 | ad3antrrr 489 |
. . . . . . . . . . . . . . 15
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → 𝑠 ∈ ℤ) |
25 | | simplrl 530 |
. . . . . . . . . . . . . . . 16
⊢ ((((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 < 0) ∧ (𝑟 ∈ ℤ ∧ 𝑠 ∈ ℤ)) ∧ 𝑞 ∈ ℤ) → 𝑟 ∈
ℤ) |
26 | 25 | ad3antrrr 489 |
. . . . . . . . . . . . . . 15
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → 𝑟 ∈ ℤ) |
27 | | simplr 525 |
. . . . . . . . . . . . . . . 16
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → 𝑡 ∈ ℤ) |
28 | 27 | znegcld 9336 |
. . . . . . . . . . . . . . 15
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → -𝑡 ∈ ℤ) |
29 | | simpr 109 |
. . . . . . . . . . . . . . . . 17
⊢ ((((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 < 0) ∧ (𝑟 ∈ ℤ ∧ 𝑠 ∈ ℤ)) ∧ 𝑞 ∈ ℤ) → 𝑞 ∈
ℤ) |
30 | 29 | ad3antrrr 489 |
. . . . . . . . . . . . . . . 16
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → 𝑞 ∈ ℤ) |
31 | 30 | znegcld 9336 |
. . . . . . . . . . . . . . 15
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → -𝑞 ∈ ℤ) |
32 | | simpr1 998 |
. . . . . . . . . . . . . . . 16
⊢
(((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) → 0 ≤ 𝑟) |
33 | 32 | ad2antrr 485 |
. . . . . . . . . . . . . . 15
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → 0 ≤ 𝑟) |
34 | | simpr2 999 |
. . . . . . . . . . . . . . . 16
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → 𝑠 < (abs‘𝐷)) |
35 | | simpll2 1032 |
. . . . . . . . . . . . . . . . . . 19
⊢ ((((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 < 0) ∧ (𝑟 ∈ ℤ ∧ 𝑠 ∈ ℤ)) ∧ 𝑞 ∈ ℤ) → 𝐷 ∈
ℤ) |
36 | 35 | ad3antrrr 489 |
. . . . . . . . . . . . . . . . . 18
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → 𝐷 ∈ ℤ) |
37 | 36 | zred 9334 |
. . . . . . . . . . . . . . . . 17
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → 𝐷 ∈ ℝ) |
38 | | 0red 7921 |
. . . . . . . . . . . . . . . . . 18
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → 0 ∈ ℝ) |
39 | | simpll3 1033 |
. . . . . . . . . . . . . . . . . . 19
⊢ ((((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 < 0) ∧ (𝑟 ∈ ℤ ∧ 𝑠 ∈ ℤ)) ∧ 𝑞 ∈ ℤ) → 𝐷 < 0) |
40 | 39 | ad3antrrr 489 |
. . . . . . . . . . . . . . . . . 18
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → 𝐷 < 0) |
41 | 37, 38, 40 | ltled 8038 |
. . . . . . . . . . . . . . . . 17
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → 𝐷 ≤ 0) |
42 | 37, 41 | absnidd 11124 |
. . . . . . . . . . . . . . . 16
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → (abs‘𝐷) = -𝐷) |
43 | 34, 42 | breqtrd 4015 |
. . . . . . . . . . . . . . 15
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → 𝑠 < -𝐷) |
44 | | simpr3 1000 |
. . . . . . . . . . . . . . . . 17
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → 𝑁 = ((𝑡 · 𝐷) + 𝑠)) |
45 | 27 | zcnd 9335 |
. . . . . . . . . . . . . . . . . . 19
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → 𝑡 ∈ ℂ) |
46 | 36 | zcnd 9335 |
. . . . . . . . . . . . . . . . . . 19
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → 𝐷 ∈ ℂ) |
47 | 45, 46 | mul2negd 8332 |
. . . . . . . . . . . . . . . . . 18
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → (-𝑡 · -𝐷) = (𝑡 · 𝐷)) |
48 | 47 | oveq1d 5868 |
. . . . . . . . . . . . . . . . 17
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → ((-𝑡 · -𝐷) + 𝑠) = ((𝑡 · 𝐷) + 𝑠)) |
49 | 44, 48 | eqtr4d 2206 |
. . . . . . . . . . . . . . . 16
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → 𝑁 = ((-𝑡 · -𝐷) + 𝑠)) |
50 | | simpr3 1000 |
. . . . . . . . . . . . . . . . . 18
⊢
(((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) → 𝑁 = ((𝑞 · 𝐷) + 𝑟)) |
51 | 50 | ad2antrr 485 |
. . . . . . . . . . . . . . . . 17
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → 𝑁 = ((𝑞 · 𝐷) + 𝑟)) |
52 | 30 | zcnd 9335 |
. . . . . . . . . . . . . . . . . . 19
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → 𝑞 ∈ ℂ) |
53 | 52, 46 | mul2negd 8332 |
. . . . . . . . . . . . . . . . . 18
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → (-𝑞 · -𝐷) = (𝑞 · 𝐷)) |
54 | 53 | oveq1d 5868 |
. . . . . . . . . . . . . . . . 17
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → ((-𝑞 · -𝐷) + 𝑟) = ((𝑞 · 𝐷) + 𝑟)) |
55 | 51, 54 | eqtr4d 2206 |
. . . . . . . . . . . . . . . 16
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → 𝑁 = ((-𝑞 · -𝐷) + 𝑟)) |
56 | 49, 55 | eqtr3d 2205 |
. . . . . . . . . . . . . . 15
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → ((-𝑡 · -𝐷) + 𝑠) = ((-𝑞 · -𝐷) + 𝑟)) |
57 | 22, 24, 26, 28, 31, 33, 43, 56 | divalglemnqt 11879 |
. . . . . . . . . . . . . 14
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → ¬ -𝑡 < -𝑞) |
58 | 30 | zred 9334 |
. . . . . . . . . . . . . . 15
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → 𝑞 ∈ ℝ) |
59 | 27 | zred 9334 |
. . . . . . . . . . . . . . 15
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → 𝑡 ∈ ℝ) |
60 | 58, 59 | ltnegd 8442 |
. . . . . . . . . . . . . 14
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → (𝑞 < 𝑡 ↔ -𝑡 < -𝑞)) |
61 | 57, 60 | mtbird 668 |
. . . . . . . . . . . . 13
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → ¬ 𝑞 < 𝑡) |
62 | 61 | adantr 274 |
. . . . . . . . . . . 12
⊢
((((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) ∧ 𝑞 < 𝑡) → ¬ 𝑞 < 𝑡) |
63 | 14, 62 | pm2.21dd 615 |
. . . . . . . . . . 11
⊢
((((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) ∧ 𝑞 < 𝑡) → 𝑟 = 𝑠) |
64 | 36 | adantr 274 |
. . . . . . . . . . . 12
⊢
((((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) ∧ 𝑞 = 𝑡) → 𝐷 ∈ ℤ) |
65 | 26 | adantr 274 |
. . . . . . . . . . . 12
⊢
((((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) ∧ 𝑞 = 𝑡) → 𝑟 ∈ ℤ) |
66 | 24 | adantr 274 |
. . . . . . . . . . . 12
⊢
((((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) ∧ 𝑞 = 𝑡) → 𝑠 ∈ ℤ) |
67 | 30 | adantr 274 |
. . . . . . . . . . . 12
⊢
((((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) ∧ 𝑞 = 𝑡) → 𝑞 ∈ ℤ) |
68 | 27 | adantr 274 |
. . . . . . . . . . . 12
⊢
((((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) ∧ 𝑞 = 𝑡) → 𝑡 ∈ ℤ) |
69 | | simpr 109 |
. . . . . . . . . . . 12
⊢
((((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) ∧ 𝑞 = 𝑡) → 𝑞 = 𝑡) |
70 | 51 | adantr 274 |
. . . . . . . . . . . . 13
⊢
((((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) ∧ 𝑞 = 𝑡) → 𝑁 = ((𝑞 · 𝐷) + 𝑟)) |
71 | 44 | adantr 274 |
. . . . . . . . . . . . 13
⊢
((((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) ∧ 𝑞 = 𝑡) → 𝑁 = ((𝑡 · 𝐷) + 𝑠)) |
72 | 70, 71 | eqtr3d 2205 |
. . . . . . . . . . . 12
⊢
((((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) ∧ 𝑞 = 𝑡) → ((𝑞 · 𝐷) + 𝑟) = ((𝑡 · 𝐷) + 𝑠)) |
73 | 64, 65, 66, 67, 68, 69, 72 | divalglemqt 11878 |
. . . . . . . . . . 11
⊢
((((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) ∧ 𝑞 = 𝑡) → 𝑟 = 𝑠) |
74 | | simpr 109 |
. . . . . . . . . . . 12
⊢
((((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) ∧ 𝑡 < 𝑞) → 𝑡 < 𝑞) |
75 | | simpr1 998 |
. . . . . . . . . . . . . . 15
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → 0 ≤ 𝑠) |
76 | | simpr2 999 |
. . . . . . . . . . . . . . . . 17
⊢
(((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) → 𝑟 < (abs‘𝐷)) |
77 | 76 | ad2antrr 485 |
. . . . . . . . . . . . . . . 16
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → 𝑟 < (abs‘𝐷)) |
78 | 77, 42 | breqtrd 4015 |
. . . . . . . . . . . . . . 15
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → 𝑟 < -𝐷) |
79 | 55, 49 | eqtr3d 2205 |
. . . . . . . . . . . . . . 15
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → ((-𝑞 · -𝐷) + 𝑟) = ((-𝑡 · -𝐷) + 𝑠)) |
80 | 22, 26, 24, 31, 28, 75, 78, 79 | divalglemnqt 11879 |
. . . . . . . . . . . . . 14
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → ¬ -𝑞 < -𝑡) |
81 | 59, 58 | ltnegd 8442 |
. . . . . . . . . . . . . 14
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → (𝑡 < 𝑞 ↔ -𝑞 < -𝑡)) |
82 | 80, 81 | mtbird 668 |
. . . . . . . . . . . . 13
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → ¬ 𝑡 < 𝑞) |
83 | 82 | adantr 274 |
. . . . . . . . . . . 12
⊢
((((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) ∧ 𝑡 < 𝑞) → ¬ 𝑡 < 𝑞) |
84 | 74, 83 | pm2.21dd 615 |
. . . . . . . . . . 11
⊢
((((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) ∧ 𝑡 < 𝑞) → 𝑟 = 𝑠) |
85 | | simplr 525 |
. . . . . . . . . . . . 13
⊢
(((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) → 𝑞 ∈ ℤ) |
86 | 85 | ad2antrr 485 |
. . . . . . . . . . . 12
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → 𝑞 ∈ ℤ) |
87 | | ztri3or 9255 |
. . . . . . . . . . . 12
⊢ ((𝑞 ∈ ℤ ∧ 𝑡 ∈ ℤ) → (𝑞 < 𝑡 ∨ 𝑞 = 𝑡 ∨ 𝑡 < 𝑞)) |
88 | 86, 27, 87 | syl2anc 409 |
. . . . . . . . . . 11
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → (𝑞 < 𝑡 ∨ 𝑞 = 𝑡 ∨ 𝑡 < 𝑞)) |
89 | 63, 73, 84, 88 | mpjao3dan 1302 |
. . . . . . . . . 10
⊢
(((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) ∧ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠))) → 𝑟 = 𝑠) |
90 | 89 | ex 114 |
. . . . . . . . 9
⊢
((((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) ∧ 𝑡 ∈ ℤ) → ((0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠)) → 𝑟 = 𝑠)) |
91 | 90 | rexlimdva 2587 |
. . . . . . . 8
⊢
(((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) → (∃𝑡 ∈ ℤ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑡 · 𝐷) + 𝑠)) → 𝑟 = 𝑠)) |
92 | 13, 91 | syl5bi 151 |
. . . . . . 7
⊢
(((((𝑁 ∈
ℤ ∧ 𝐷 ∈
ℤ ∧ 𝐷 < 0)
∧ (𝑟 ∈ ℤ
∧ 𝑠 ∈ ℤ))
∧ 𝑞 ∈ ℤ)
∧ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) → (∃𝑞 ∈ ℤ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑠)) → 𝑟 = 𝑠)) |
93 | 92 | exp31 362 |
. . . . . 6
⊢ (((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 < 0) ∧ (𝑟 ∈ ℤ ∧ 𝑠 ∈ ℤ)) → (𝑞 ∈ ℤ → ((0 ≤
𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟)) → (∃𝑞 ∈ ℤ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑠)) → 𝑟 = 𝑠)))) |
94 | 5, 8, 93 | rexlimd 2584 |
. . . . 5
⊢ (((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 < 0) ∧ (𝑟 ∈ ℤ ∧ 𝑠 ∈ ℤ)) →
(∃𝑞 ∈ ℤ (0
≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟)) → (∃𝑞 ∈ ℤ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑠)) → 𝑟 = 𝑠))) |
95 | 94 | impd 252 |
. . . 4
⊢ (((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 < 0) ∧ (𝑟 ∈ ℤ ∧ 𝑠 ∈ ℤ)) →
((∃𝑞 ∈ ℤ
(0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟)) ∧ ∃𝑞 ∈ ℤ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑠))) → 𝑟 = 𝑠)) |
96 | 95 | ralrimivva 2552 |
. . 3
⊢ ((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 < 0) → ∀𝑟 ∈ ℤ ∀𝑠 ∈ ℤ ((∃𝑞 ∈ ℤ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟)) ∧ ∃𝑞 ∈ ℤ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑠))) → 𝑟 = 𝑠)) |
97 | | breq2 3993 |
. . . . . 6
⊢ (𝑟 = 𝑠 → (0 ≤ 𝑟 ↔ 0 ≤ 𝑠)) |
98 | | breq1 3992 |
. . . . . 6
⊢ (𝑟 = 𝑠 → (𝑟 < (abs‘𝐷) ↔ 𝑠 < (abs‘𝐷))) |
99 | | oveq2 5861 |
. . . . . . 7
⊢ (𝑟 = 𝑠 → ((𝑞 · 𝐷) + 𝑟) = ((𝑞 · 𝐷) + 𝑠)) |
100 | 99 | eqeq2d 2182 |
. . . . . 6
⊢ (𝑟 = 𝑠 → (𝑁 = ((𝑞 · 𝐷) + 𝑟) ↔ 𝑁 = ((𝑞 · 𝐷) + 𝑠))) |
101 | 97, 98, 100 | 3anbi123d 1307 |
. . . . 5
⊢ (𝑟 = 𝑠 → ((0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟)) ↔ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑠)))) |
102 | 101 | rexbidv 2471 |
. . . 4
⊢ (𝑟 = 𝑠 → (∃𝑞 ∈ ℤ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟)) ↔ ∃𝑞 ∈ ℤ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑠)))) |
103 | 102 | rmo4 2923 |
. . 3
⊢
(∃*𝑟 ∈
ℤ ∃𝑞 ∈
ℤ (0 ≤ 𝑟 ∧
𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟)) ↔ ∀𝑟 ∈ ℤ ∀𝑠 ∈ ℤ ((∃𝑞 ∈ ℤ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟)) ∧ ∃𝑞 ∈ ℤ (0 ≤ 𝑠 ∧ 𝑠 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑠))) → 𝑟 = 𝑠)) |
104 | 96, 103 | sylibr 133 |
. 2
⊢ ((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 < 0) → ∃*𝑟 ∈ ℤ ∃𝑞 ∈ ℤ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) |
105 | | reu5 2682 |
. 2
⊢
(∃!𝑟 ∈
ℤ ∃𝑞 ∈
ℤ (0 ≤ 𝑟 ∧
𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟)) ↔ (∃𝑟 ∈ ℤ ∃𝑞 ∈ ℤ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟)) ∧ ∃*𝑟 ∈ ℤ ∃𝑞 ∈ ℤ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟)))) |
106 | 4, 104, 105 | sylanbrc 415 |
1
⊢ ((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 < 0) → ∃!𝑟 ∈ ℤ ∃𝑞 ∈ ℤ (0 ≤ 𝑟 ∧ 𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))) |