Proof of Theorem fzopredsuc
Step | Hyp | Ref
| Expression |
1 | | unidm 4082 |
. . . . . 6
⊢ ({𝑁} ∪ {𝑁}) = {𝑁} |
2 | 1 | eqcomi 2747 |
. . . . 5
⊢ {𝑁} = ({𝑁} ∪ {𝑁}) |
3 | | oveq1 7262 |
. . . . . 6
⊢ (𝑀 = 𝑁 → (𝑀...𝑁) = (𝑁...𝑁)) |
4 | | fzsn 13227 |
. . . . . 6
⊢ (𝑁 ∈ ℤ → (𝑁...𝑁) = {𝑁}) |
5 | 3, 4 | sylan9eqr 2801 |
. . . . 5
⊢ ((𝑁 ∈ ℤ ∧ 𝑀 = 𝑁) → (𝑀...𝑁) = {𝑁}) |
6 | | sneq 4568 |
. . . . . . . 8
⊢ (𝑀 = 𝑁 → {𝑀} = {𝑁}) |
7 | | oveq1 7262 |
. . . . . . . . 9
⊢ (𝑀 = 𝑁 → (𝑀 + 1) = (𝑁 + 1)) |
8 | 7 | oveq1d 7270 |
. . . . . . . 8
⊢ (𝑀 = 𝑁 → ((𝑀 + 1)..^𝑁) = ((𝑁 + 1)..^𝑁)) |
9 | 6, 8 | uneq12d 4094 |
. . . . . . 7
⊢ (𝑀 = 𝑁 → ({𝑀} ∪ ((𝑀 + 1)..^𝑁)) = ({𝑁} ∪ ((𝑁 + 1)..^𝑁))) |
10 | 9 | uneq1d 4092 |
. . . . . 6
⊢ (𝑀 = 𝑁 → (({𝑀} ∪ ((𝑀 + 1)..^𝑁)) ∪ {𝑁}) = (({𝑁} ∪ ((𝑁 + 1)..^𝑁)) ∪ {𝑁})) |
11 | | zre 12253 |
. . . . . . . . . . . 12
⊢ (𝑁 ∈ ℤ → 𝑁 ∈
ℝ) |
12 | 11 | lep1d 11836 |
. . . . . . . . . . 11
⊢ (𝑁 ∈ ℤ → 𝑁 ≤ (𝑁 + 1)) |
13 | | peano2z 12291 |
. . . . . . . . . . . . 13
⊢ (𝑁 ∈ ℤ → (𝑁 + 1) ∈
ℤ) |
14 | 13 | zred 12355 |
. . . . . . . . . . . 12
⊢ (𝑁 ∈ ℤ → (𝑁 + 1) ∈
ℝ) |
15 | 11, 14 | lenltd 11051 |
. . . . . . . . . . 11
⊢ (𝑁 ∈ ℤ → (𝑁 ≤ (𝑁 + 1) ↔ ¬ (𝑁 + 1) < 𝑁)) |
16 | 12, 15 | mpbid 231 |
. . . . . . . . . 10
⊢ (𝑁 ∈ ℤ → ¬
(𝑁 + 1) < 𝑁) |
17 | | fzonlt0 13338 |
. . . . . . . . . . 11
⊢ (((𝑁 + 1) ∈ ℤ ∧ 𝑁 ∈ ℤ) → (¬
(𝑁 + 1) < 𝑁 ↔ ((𝑁 + 1)..^𝑁) = ∅)) |
18 | 13, 17 | mpancom 684 |
. . . . . . . . . 10
⊢ (𝑁 ∈ ℤ → (¬
(𝑁 + 1) < 𝑁 ↔ ((𝑁 + 1)..^𝑁) = ∅)) |
19 | 16, 18 | mpbid 231 |
. . . . . . . . 9
⊢ (𝑁 ∈ ℤ → ((𝑁 + 1)..^𝑁) = ∅) |
20 | 19 | uneq2d 4093 |
. . . . . . . 8
⊢ (𝑁 ∈ ℤ → ({𝑁} ∪ ((𝑁 + 1)..^𝑁)) = ({𝑁} ∪ ∅)) |
21 | | un0 4321 |
. . . . . . . 8
⊢ ({𝑁} ∪ ∅) = {𝑁} |
22 | 20, 21 | eqtrdi 2795 |
. . . . . . 7
⊢ (𝑁 ∈ ℤ → ({𝑁} ∪ ((𝑁 + 1)..^𝑁)) = {𝑁}) |
23 | 22 | uneq1d 4092 |
. . . . . 6
⊢ (𝑁 ∈ ℤ → (({𝑁} ∪ ((𝑁 + 1)..^𝑁)) ∪ {𝑁}) = ({𝑁} ∪ {𝑁})) |
24 | 10, 23 | sylan9eqr 2801 |
. . . . 5
⊢ ((𝑁 ∈ ℤ ∧ 𝑀 = 𝑁) → (({𝑀} ∪ ((𝑀 + 1)..^𝑁)) ∪ {𝑁}) = ({𝑁} ∪ {𝑁})) |
25 | 2, 5, 24 | 3eqtr4a 2805 |
. . . 4
⊢ ((𝑁 ∈ ℤ ∧ 𝑀 = 𝑁) → (𝑀...𝑁) = (({𝑀} ∪ ((𝑀 + 1)..^𝑁)) ∪ {𝑁})) |
26 | 25 | ex 412 |
. . 3
⊢ (𝑁 ∈ ℤ → (𝑀 = 𝑁 → (𝑀...𝑁) = (({𝑀} ∪ ((𝑀 + 1)..^𝑁)) ∪ {𝑁}))) |
27 | | eluzelz 12521 |
. . 3
⊢ (𝑁 ∈
(ℤ≥‘𝑀) → 𝑁 ∈ ℤ) |
28 | 26, 27 | syl11 33 |
. 2
⊢ (𝑀 = 𝑁 → (𝑁 ∈ (ℤ≥‘𝑀) → (𝑀...𝑁) = (({𝑀} ∪ ((𝑀 + 1)..^𝑁)) ∪ {𝑁}))) |
29 | | fzisfzounsn 13427 |
. . . . 5
⊢ (𝑁 ∈
(ℤ≥‘𝑀) → (𝑀...𝑁) = ((𝑀..^𝑁) ∪ {𝑁})) |
30 | 29 | adantl 481 |
. . . 4
⊢ ((¬
𝑀 = 𝑁 ∧ 𝑁 ∈ (ℤ≥‘𝑀)) → (𝑀...𝑁) = ((𝑀..^𝑁) ∪ {𝑁})) |
31 | | eluz2 12517 |
. . . . . . . 8
⊢ (𝑁 ∈
(ℤ≥‘𝑀) ↔ (𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑀 ≤ 𝑁)) |
32 | | simpl1 1189 |
. . . . . . . . . 10
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑀 ≤ 𝑁) ∧ ¬ 𝑀 = 𝑁) → 𝑀 ∈ ℤ) |
33 | | simpl2 1190 |
. . . . . . . . . 10
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑀 ≤ 𝑁) ∧ ¬ 𝑀 = 𝑁) → 𝑁 ∈ ℤ) |
34 | | nesym 2999 |
. . . . . . . . . . . 12
⊢ (𝑁 ≠ 𝑀 ↔ ¬ 𝑀 = 𝑁) |
35 | | zre 12253 |
. . . . . . . . . . . . . . . 16
⊢ (𝑀 ∈ ℤ → 𝑀 ∈
ℝ) |
36 | | ltlen 11006 |
. . . . . . . . . . . . . . . 16
⊢ ((𝑀 ∈ ℝ ∧ 𝑁 ∈ ℝ) → (𝑀 < 𝑁 ↔ (𝑀 ≤ 𝑁 ∧ 𝑁 ≠ 𝑀))) |
37 | 35, 11, 36 | syl2an 595 |
. . . . . . . . . . . . . . 15
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑀 < 𝑁 ↔ (𝑀 ≤ 𝑁 ∧ 𝑁 ≠ 𝑀))) |
38 | 37 | biimprd 247 |
. . . . . . . . . . . . . 14
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((𝑀 ≤ 𝑁 ∧ 𝑁 ≠ 𝑀) → 𝑀 < 𝑁)) |
39 | 38 | exp4b 430 |
. . . . . . . . . . . . 13
⊢ (𝑀 ∈ ℤ → (𝑁 ∈ ℤ → (𝑀 ≤ 𝑁 → (𝑁 ≠ 𝑀 → 𝑀 < 𝑁)))) |
40 | 39 | 3imp 1109 |
. . . . . . . . . . . 12
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑀 ≤ 𝑁) → (𝑁 ≠ 𝑀 → 𝑀 < 𝑁)) |
41 | 34, 40 | syl5bir 242 |
. . . . . . . . . . 11
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑀 ≤ 𝑁) → (¬ 𝑀 = 𝑁 → 𝑀 < 𝑁)) |
42 | 41 | imp 406 |
. . . . . . . . . 10
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑀 ≤ 𝑁) ∧ ¬ 𝑀 = 𝑁) → 𝑀 < 𝑁) |
43 | 32, 33, 42 | 3jca 1126 |
. . . . . . . . 9
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑀 ≤ 𝑁) ∧ ¬ 𝑀 = 𝑁) → (𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑀 < 𝑁)) |
44 | 43 | ex 412 |
. . . . . . . 8
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑀 ≤ 𝑁) → (¬ 𝑀 = 𝑁 → (𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑀 < 𝑁))) |
45 | 31, 44 | sylbi 216 |
. . . . . . 7
⊢ (𝑁 ∈
(ℤ≥‘𝑀) → (¬ 𝑀 = 𝑁 → (𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑀 < 𝑁))) |
46 | 45 | impcom 407 |
. . . . . 6
⊢ ((¬
𝑀 = 𝑁 ∧ 𝑁 ∈ (ℤ≥‘𝑀)) → (𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑀 < 𝑁)) |
47 | | fzopred 44702 |
. . . . . 6
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑀 < 𝑁) → (𝑀..^𝑁) = ({𝑀} ∪ ((𝑀 + 1)..^𝑁))) |
48 | 46, 47 | syl 17 |
. . . . 5
⊢ ((¬
𝑀 = 𝑁 ∧ 𝑁 ∈ (ℤ≥‘𝑀)) → (𝑀..^𝑁) = ({𝑀} ∪ ((𝑀 + 1)..^𝑁))) |
49 | 48 | uneq1d 4092 |
. . . 4
⊢ ((¬
𝑀 = 𝑁 ∧ 𝑁 ∈ (ℤ≥‘𝑀)) → ((𝑀..^𝑁) ∪ {𝑁}) = (({𝑀} ∪ ((𝑀 + 1)..^𝑁)) ∪ {𝑁})) |
50 | 30, 49 | eqtrd 2778 |
. . 3
⊢ ((¬
𝑀 = 𝑁 ∧ 𝑁 ∈ (ℤ≥‘𝑀)) → (𝑀...𝑁) = (({𝑀} ∪ ((𝑀 + 1)..^𝑁)) ∪ {𝑁})) |
51 | 50 | ex 412 |
. 2
⊢ (¬
𝑀 = 𝑁 → (𝑁 ∈ (ℤ≥‘𝑀) → (𝑀...𝑁) = (({𝑀} ∪ ((𝑀 + 1)..^𝑁)) ∪ {𝑁}))) |
52 | 28, 51 | pm2.61i 182 |
1
⊢ (𝑁 ∈
(ℤ≥‘𝑀) → (𝑀...𝑁) = (({𝑀} ∪ ((𝑀 + 1)..^𝑁)) ∪ {𝑁})) |