Proof of Theorem swrds1
Step | Hyp | Ref
| Expression |
1 | | swrdcl 14386 |
. . 3
⊢ (𝑊 ∈ Word 𝐴 → (𝑊 substr 〈𝐼, (𝐼 + 1)〉) ∈ Word 𝐴) |
2 | | simpl 482 |
. . . . 5
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝐼 ∈ (0..^(♯‘𝑊))) → 𝑊 ∈ Word 𝐴) |
3 | | elfzouz 13419 |
. . . . . . 7
⊢ (𝐼 ∈
(0..^(♯‘𝑊))
→ 𝐼 ∈
(ℤ≥‘0)) |
4 | 3 | adantl 481 |
. . . . . 6
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝐼 ∈ (0..^(♯‘𝑊))) → 𝐼 ∈
(ℤ≥‘0)) |
5 | | elfzoelz 13415 |
. . . . . . . 8
⊢ (𝐼 ∈
(0..^(♯‘𝑊))
→ 𝐼 ∈
ℤ) |
6 | 5 | adantl 481 |
. . . . . . 7
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝐼 ∈ (0..^(♯‘𝑊))) → 𝐼 ∈ ℤ) |
7 | | uzid 12625 |
. . . . . . 7
⊢ (𝐼 ∈ ℤ → 𝐼 ∈
(ℤ≥‘𝐼)) |
8 | | peano2uz 12669 |
. . . . . . 7
⊢ (𝐼 ∈
(ℤ≥‘𝐼) → (𝐼 + 1) ∈
(ℤ≥‘𝐼)) |
9 | 6, 7, 8 | 3syl 18 |
. . . . . 6
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝐼 ∈ (0..^(♯‘𝑊))) → (𝐼 + 1) ∈
(ℤ≥‘𝐼)) |
10 | | elfzuzb 13278 |
. . . . . 6
⊢ (𝐼 ∈ (0...(𝐼 + 1)) ↔ (𝐼 ∈ (ℤ≥‘0)
∧ (𝐼 + 1) ∈
(ℤ≥‘𝐼))) |
11 | 4, 9, 10 | sylanbrc 582 |
. . . . 5
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝐼 ∈ (0..^(♯‘𝑊))) → 𝐼 ∈ (0...(𝐼 + 1))) |
12 | | fzofzp1 13512 |
. . . . . 6
⊢ (𝐼 ∈
(0..^(♯‘𝑊))
→ (𝐼 + 1) ∈
(0...(♯‘𝑊))) |
13 | 12 | adantl 481 |
. . . . 5
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝐼 ∈ (0..^(♯‘𝑊))) → (𝐼 + 1) ∈ (0...(♯‘𝑊))) |
14 | | swrdlen 14388 |
. . . . 5
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝐼 ∈ (0...(𝐼 + 1)) ∧ (𝐼 + 1) ∈ (0...(♯‘𝑊))) → (♯‘(𝑊 substr 〈𝐼, (𝐼 + 1)〉)) = ((𝐼 + 1) − 𝐼)) |
15 | 2, 11, 13, 14 | syl3anc 1369 |
. . . 4
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝐼 ∈ (0..^(♯‘𝑊))) → (♯‘(𝑊 substr 〈𝐼, (𝐼 + 1)〉)) = ((𝐼 + 1) − 𝐼)) |
16 | 6 | zcnd 12455 |
. . . . 5
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝐼 ∈ (0..^(♯‘𝑊))) → 𝐼 ∈ ℂ) |
17 | | ax-1cn 10957 |
. . . . 5
⊢ 1 ∈
ℂ |
18 | | pncan2 11256 |
. . . . 5
⊢ ((𝐼 ∈ ℂ ∧ 1 ∈
ℂ) → ((𝐼 + 1)
− 𝐼) =
1) |
19 | 16, 17, 18 | sylancl 585 |
. . . 4
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝐼 ∈ (0..^(♯‘𝑊))) → ((𝐼 + 1) − 𝐼) = 1) |
20 | 15, 19 | eqtrd 2773 |
. . 3
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝐼 ∈ (0..^(♯‘𝑊))) → (♯‘(𝑊 substr 〈𝐼, (𝐼 + 1)〉)) = 1) |
21 | | eqs1 14345 |
. . 3
⊢ (((𝑊 substr 〈𝐼, (𝐼 + 1)〉) ∈ Word 𝐴 ∧ (♯‘(𝑊 substr 〈𝐼, (𝐼 + 1)〉)) = 1) → (𝑊 substr 〈𝐼, (𝐼 + 1)〉) = 〈“((𝑊 substr 〈𝐼, (𝐼 +
1)〉)‘0)”〉) |
22 | 1, 20, 21 | syl2an2r 681 |
. 2
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝐼 ∈ (0..^(♯‘𝑊))) → (𝑊 substr 〈𝐼, (𝐼 + 1)〉) = 〈“((𝑊 substr 〈𝐼, (𝐼 +
1)〉)‘0)”〉) |
23 | | 0z 12358 |
. . . . . . 7
⊢ 0 ∈
ℤ |
24 | | snidg 4598 |
. . . . . . 7
⊢ (0 ∈
ℤ → 0 ∈ {0}) |
25 | 23, 24 | ax-mp 5 |
. . . . . 6
⊢ 0 ∈
{0} |
26 | 19 | oveq2d 7311 |
. . . . . . 7
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝐼 ∈ (0..^(♯‘𝑊))) → (0..^((𝐼 + 1) − 𝐼)) = (0..^1)) |
27 | | fzo01 13497 |
. . . . . . 7
⊢ (0..^1) =
{0} |
28 | 26, 27 | eqtrdi 2789 |
. . . . . 6
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝐼 ∈ (0..^(♯‘𝑊))) → (0..^((𝐼 + 1) − 𝐼)) = {0}) |
29 | 25, 28 | eleqtrrid 2841 |
. . . . 5
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝐼 ∈ (0..^(♯‘𝑊))) → 0 ∈ (0..^((𝐼 + 1) − 𝐼))) |
30 | | swrdfv 14389 |
. . . . 5
⊢ (((𝑊 ∈ Word 𝐴 ∧ 𝐼 ∈ (0...(𝐼 + 1)) ∧ (𝐼 + 1) ∈ (0...(♯‘𝑊))) ∧ 0 ∈ (0..^((𝐼 + 1) − 𝐼))) → ((𝑊 substr 〈𝐼, (𝐼 + 1)〉)‘0) = (𝑊‘(0 + 𝐼))) |
31 | 2, 11, 13, 29, 30 | syl31anc 1371 |
. . . 4
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝐼 ∈ (0..^(♯‘𝑊))) → ((𝑊 substr 〈𝐼, (𝐼 + 1)〉)‘0) = (𝑊‘(0 + 𝐼))) |
32 | | addid2 11186 |
. . . . . . 7
⊢ (𝐼 ∈ ℂ → (0 +
𝐼) = 𝐼) |
33 | 32 | eqcomd 2739 |
. . . . . 6
⊢ (𝐼 ∈ ℂ → 𝐼 = (0 + 𝐼)) |
34 | 16, 33 | syl 17 |
. . . . 5
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝐼 ∈ (0..^(♯‘𝑊))) → 𝐼 = (0 + 𝐼)) |
35 | 34 | fveq2d 6796 |
. . . 4
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝐼 ∈ (0..^(♯‘𝑊))) → (𝑊‘𝐼) = (𝑊‘(0 + 𝐼))) |
36 | 31, 35 | eqtr4d 2776 |
. . 3
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝐼 ∈ (0..^(♯‘𝑊))) → ((𝑊 substr 〈𝐼, (𝐼 + 1)〉)‘0) = (𝑊‘𝐼)) |
37 | 36 | s1eqd 14334 |
. 2
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝐼 ∈ (0..^(♯‘𝑊))) → 〈“((𝑊 substr 〈𝐼, (𝐼 + 1)〉)‘0)”〉 =
〈“(𝑊‘𝐼)”〉) |
38 | 22, 37 | eqtrd 2773 |
1
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝐼 ∈ (0..^(♯‘𝑊))) → (𝑊 substr 〈𝐼, (𝐼 + 1)〉) = 〈“(𝑊‘𝐼)”〉) |