Proof of Theorem elz2
Step | Hyp | Ref
| Expression |
1 | | elznn0 12334 |
. 2
⊢ (𝑁 ∈ ℤ ↔ (𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨
-𝑁 ∈
ℕ0))) |
2 | | nn0p1nn 12272 |
. . . . . 6
⊢ (𝑁 ∈ ℕ0
→ (𝑁 + 1) ∈
ℕ) |
3 | 2 | adantl 482 |
. . . . 5
⊢ ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0)
→ (𝑁 + 1) ∈
ℕ) |
4 | | 1nn 11984 |
. . . . . 6
⊢ 1 ∈
ℕ |
5 | 4 | a1i 11 |
. . . . 5
⊢ ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0)
→ 1 ∈ ℕ) |
6 | | recn 10961 |
. . . . . . . 8
⊢ (𝑁 ∈ ℝ → 𝑁 ∈
ℂ) |
7 | 6 | adantr 481 |
. . . . . . 7
⊢ ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0)
→ 𝑁 ∈
ℂ) |
8 | | ax-1cn 10929 |
. . . . . . 7
⊢ 1 ∈
ℂ |
9 | | pncan 11227 |
. . . . . . 7
⊢ ((𝑁 ∈ ℂ ∧ 1 ∈
ℂ) → ((𝑁 + 1)
− 1) = 𝑁) |
10 | 7, 8, 9 | sylancl 586 |
. . . . . 6
⊢ ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0)
→ ((𝑁 + 1) − 1)
= 𝑁) |
11 | 10 | eqcomd 2744 |
. . . . 5
⊢ ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0)
→ 𝑁 = ((𝑁 + 1) −
1)) |
12 | | rspceov 7322 |
. . . . 5
⊢ (((𝑁 + 1) ∈ ℕ ∧ 1
∈ ℕ ∧ 𝑁 =
((𝑁 + 1) − 1)) →
∃𝑥 ∈ ℕ
∃𝑦 ∈ ℕ
𝑁 = (𝑥 − 𝑦)) |
13 | 3, 5, 11, 12 | syl3anc 1370 |
. . . 4
⊢ ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0)
→ ∃𝑥 ∈
ℕ ∃𝑦 ∈
ℕ 𝑁 = (𝑥 − 𝑦)) |
14 | 4 | a1i 11 |
. . . . 5
⊢ ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0)
→ 1 ∈ ℕ) |
15 | 6 | adantr 481 |
. . . . . . 7
⊢ ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0)
→ 𝑁 ∈
ℂ) |
16 | | negsub 11269 |
. . . . . . 7
⊢ ((1
∈ ℂ ∧ 𝑁
∈ ℂ) → (1 + -𝑁) = (1 − 𝑁)) |
17 | 8, 15, 16 | sylancr 587 |
. . . . . 6
⊢ ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0)
→ (1 + -𝑁) = (1
− 𝑁)) |
18 | | simpr 485 |
. . . . . . 7
⊢ ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0)
→ -𝑁 ∈
ℕ0) |
19 | | nnnn0addcl 12263 |
. . . . . . 7
⊢ ((1
∈ ℕ ∧ -𝑁
∈ ℕ0) → (1 + -𝑁) ∈ ℕ) |
20 | 4, 18, 19 | sylancr 587 |
. . . . . 6
⊢ ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0)
→ (1 + -𝑁) ∈
ℕ) |
21 | 17, 20 | eqeltrrd 2840 |
. . . . 5
⊢ ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0)
→ (1 − 𝑁) ∈
ℕ) |
22 | | nncan 11250 |
. . . . . . 7
⊢ ((1
∈ ℂ ∧ 𝑁
∈ ℂ) → (1 − (1 − 𝑁)) = 𝑁) |
23 | 8, 15, 22 | sylancr 587 |
. . . . . 6
⊢ ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0)
→ (1 − (1 − 𝑁)) = 𝑁) |
24 | 23 | eqcomd 2744 |
. . . . 5
⊢ ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0)
→ 𝑁 = (1 − (1
− 𝑁))) |
25 | | rspceov 7322 |
. . . . 5
⊢ ((1
∈ ℕ ∧ (1 − 𝑁) ∈ ℕ ∧ 𝑁 = (1 − (1 − 𝑁))) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥 − 𝑦)) |
26 | 14, 21, 24, 25 | syl3anc 1370 |
. . . 4
⊢ ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0)
→ ∃𝑥 ∈
ℕ ∃𝑦 ∈
ℕ 𝑁 = (𝑥 − 𝑦)) |
27 | 13, 26 | jaodan 955 |
. . 3
⊢ ((𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨
-𝑁 ∈
ℕ0)) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥 − 𝑦)) |
28 | | nnre 11980 |
. . . . . . 7
⊢ (𝑥 ∈ ℕ → 𝑥 ∈
ℝ) |
29 | | nnre 11980 |
. . . . . . 7
⊢ (𝑦 ∈ ℕ → 𝑦 ∈
ℝ) |
30 | | resubcl 11285 |
. . . . . . 7
⊢ ((𝑥 ∈ ℝ ∧ 𝑦 ∈ ℝ) → (𝑥 − 𝑦) ∈ ℝ) |
31 | 28, 29, 30 | syl2an 596 |
. . . . . 6
⊢ ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑥 − 𝑦) ∈ ℝ) |
32 | | letric 11075 |
. . . . . . . 8
⊢ ((𝑦 ∈ ℝ ∧ 𝑥 ∈ ℝ) → (𝑦 ≤ 𝑥 ∨ 𝑥 ≤ 𝑦)) |
33 | 29, 28, 32 | syl2anr 597 |
. . . . . . 7
⊢ ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑦 ≤ 𝑥 ∨ 𝑥 ≤ 𝑦)) |
34 | | nnnn0 12240 |
. . . . . . . . 9
⊢ (𝑦 ∈ ℕ → 𝑦 ∈
ℕ0) |
35 | | nnnn0 12240 |
. . . . . . . . 9
⊢ (𝑥 ∈ ℕ → 𝑥 ∈
ℕ0) |
36 | | nn0sub 12283 |
. . . . . . . . 9
⊢ ((𝑦 ∈ ℕ0
∧ 𝑥 ∈
ℕ0) → (𝑦 ≤ 𝑥 ↔ (𝑥 − 𝑦) ∈
ℕ0)) |
37 | 34, 35, 36 | syl2anr 597 |
. . . . . . . 8
⊢ ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑦 ≤ 𝑥 ↔ (𝑥 − 𝑦) ∈
ℕ0)) |
38 | | nn0sub 12283 |
. . . . . . . . . 10
⊢ ((𝑥 ∈ ℕ0
∧ 𝑦 ∈
ℕ0) → (𝑥 ≤ 𝑦 ↔ (𝑦 − 𝑥) ∈
ℕ0)) |
39 | 35, 34, 38 | syl2an 596 |
. . . . . . . . 9
⊢ ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑥 ≤ 𝑦 ↔ (𝑦 − 𝑥) ∈
ℕ0)) |
40 | | nncn 11981 |
. . . . . . . . . . 11
⊢ (𝑥 ∈ ℕ → 𝑥 ∈
ℂ) |
41 | | nncn 11981 |
. . . . . . . . . . 11
⊢ (𝑦 ∈ ℕ → 𝑦 ∈
ℂ) |
42 | | negsubdi2 11280 |
. . . . . . . . . . 11
⊢ ((𝑥 ∈ ℂ ∧ 𝑦 ∈ ℂ) → -(𝑥 − 𝑦) = (𝑦 − 𝑥)) |
43 | 40, 41, 42 | syl2an 596 |
. . . . . . . . . 10
⊢ ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → -(𝑥 − 𝑦) = (𝑦 − 𝑥)) |
44 | 43 | eleq1d 2823 |
. . . . . . . . 9
⊢ ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (-(𝑥 − 𝑦) ∈ ℕ0 ↔ (𝑦 − 𝑥) ∈
ℕ0)) |
45 | 39, 44 | bitr4d 281 |
. . . . . . . 8
⊢ ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑥 ≤ 𝑦 ↔ -(𝑥 − 𝑦) ∈
ℕ0)) |
46 | 37, 45 | orbi12d 916 |
. . . . . . 7
⊢ ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → ((𝑦 ≤ 𝑥 ∨ 𝑥 ≤ 𝑦) ↔ ((𝑥 − 𝑦) ∈ ℕ0 ∨ -(𝑥 − 𝑦) ∈
ℕ0))) |
47 | 33, 46 | mpbid 231 |
. . . . . 6
⊢ ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → ((𝑥 − 𝑦) ∈ ℕ0 ∨ -(𝑥 − 𝑦) ∈
ℕ0)) |
48 | 31, 47 | jca 512 |
. . . . 5
⊢ ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → ((𝑥 − 𝑦) ∈ ℝ ∧ ((𝑥 − 𝑦) ∈ ℕ0 ∨ -(𝑥 − 𝑦) ∈
ℕ0))) |
49 | | eleq1 2826 |
. . . . . 6
⊢ (𝑁 = (𝑥 − 𝑦) → (𝑁 ∈ ℝ ↔ (𝑥 − 𝑦) ∈ ℝ)) |
50 | | eleq1 2826 |
. . . . . . 7
⊢ (𝑁 = (𝑥 − 𝑦) → (𝑁 ∈ ℕ0 ↔ (𝑥 − 𝑦) ∈
ℕ0)) |
51 | | negeq 11213 |
. . . . . . . 8
⊢ (𝑁 = (𝑥 − 𝑦) → -𝑁 = -(𝑥 − 𝑦)) |
52 | 51 | eleq1d 2823 |
. . . . . . 7
⊢ (𝑁 = (𝑥 − 𝑦) → (-𝑁 ∈ ℕ0 ↔ -(𝑥 − 𝑦) ∈
ℕ0)) |
53 | 50, 52 | orbi12d 916 |
. . . . . 6
⊢ (𝑁 = (𝑥 − 𝑦) → ((𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0)
↔ ((𝑥 − 𝑦) ∈ ℕ0
∨ -(𝑥 − 𝑦) ∈
ℕ0))) |
54 | 49, 53 | anbi12d 631 |
. . . . 5
⊢ (𝑁 = (𝑥 − 𝑦) → ((𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0))
↔ ((𝑥 − 𝑦) ∈ ℝ ∧ ((𝑥 − 𝑦) ∈ ℕ0 ∨ -(𝑥 − 𝑦) ∈
ℕ0)))) |
55 | 48, 54 | syl5ibrcom 246 |
. . . 4
⊢ ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑁 = (𝑥 − 𝑦) → (𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨ -𝑁 ∈
ℕ0)))) |
56 | 55 | rexlimivv 3221 |
. . 3
⊢
(∃𝑥 ∈
ℕ ∃𝑦 ∈
ℕ 𝑁 = (𝑥 − 𝑦) → (𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨ -𝑁 ∈
ℕ0))) |
57 | 27, 56 | impbii 208 |
. 2
⊢ ((𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨
-𝑁 ∈
ℕ0)) ↔ ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥 − 𝑦)) |
58 | 1, 57 | bitri 274 |
1
⊢ (𝑁 ∈ ℤ ↔
∃𝑥 ∈ ℕ
∃𝑦 ∈ ℕ
𝑁 = (𝑥 − 𝑦)) |