Proof of Theorem iwrdsplit
Step | Hyp | Ref
| Expression |
1 | | iwrdsplit.s |
. . . 4
⊢ (𝜑 → 𝑆 ∈ V) |
2 | | iwrdsplit.f |
. . . 4
⊢ (𝜑 → 𝐹:ℕ0⟶𝑆) |
3 | | iwrdsplit.n |
. . . . 5
⊢ (𝜑 → 𝑁 ∈
ℕ0) |
4 | | 1nn0 12249 |
. . . . . 6
⊢ 1 ∈
ℕ0 |
5 | 4 | a1i 11 |
. . . . 5
⊢ (𝜑 → 1 ∈
ℕ0) |
6 | 3, 5 | nn0addcld 12297 |
. . . 4
⊢ (𝜑 → (𝑁 + 1) ∈
ℕ0) |
7 | 1, 2, 6 | subiwrd 32352 |
. . 3
⊢ (𝜑 → (𝐹 ↾ (0..^(𝑁 + 1))) ∈ Word 𝑆) |
8 | | 1re 10975 |
. . . . . 6
⊢ 1 ∈
ℝ |
9 | | nn0addge2 12280 |
. . . . . 6
⊢ ((1
∈ ℝ ∧ 𝑁
∈ ℕ0) → 1 ≤ (𝑁 + 1)) |
10 | 8, 3, 9 | sylancr 587 |
. . . . 5
⊢ (𝜑 → 1 ≤ (𝑁 + 1)) |
11 | 1, 2, 6 | subiwrdlen 32353 |
. . . . 5
⊢ (𝜑 → (♯‘(𝐹 ↾ (0..^(𝑁 + 1)))) = (𝑁 + 1)) |
12 | 10, 11 | breqtrrd 5102 |
. . . 4
⊢ (𝜑 → 1 ≤
(♯‘(𝐹 ↾
(0..^(𝑁 +
1))))) |
13 | | wrdlenge1n0 14253 |
. . . . 5
⊢ ((𝐹 ↾ (0..^(𝑁 + 1))) ∈ Word 𝑆 → ((𝐹 ↾ (0..^(𝑁 + 1))) ≠ ∅ ↔ 1 ≤
(♯‘(𝐹 ↾
(0..^(𝑁 +
1)))))) |
14 | 7, 13 | syl 17 |
. . . 4
⊢ (𝜑 → ((𝐹 ↾ (0..^(𝑁 + 1))) ≠ ∅ ↔ 1 ≤
(♯‘(𝐹 ↾
(0..^(𝑁 +
1)))))) |
15 | 12, 14 | mpbird 256 |
. . 3
⊢ (𝜑 → (𝐹 ↾ (0..^(𝑁 + 1))) ≠ ∅) |
16 | | pfxlswccat 14426 |
. . 3
⊢ (((𝐹 ↾ (0..^(𝑁 + 1))) ∈ Word 𝑆 ∧ (𝐹 ↾ (0..^(𝑁 + 1))) ≠ ∅) → (((𝐹 ↾ (0..^(𝑁 + 1))) prefix ((♯‘(𝐹 ↾ (0..^(𝑁 + 1)))) − 1)) ++
〈“(lastS‘(𝐹 ↾ (0..^(𝑁 + 1))))”〉) = (𝐹 ↾ (0..^(𝑁 + 1)))) |
17 | 7, 15, 16 | syl2anc 584 |
. 2
⊢ (𝜑 → (((𝐹 ↾ (0..^(𝑁 + 1))) prefix ((♯‘(𝐹 ↾ (0..^(𝑁 + 1)))) − 1)) ++
〈“(lastS‘(𝐹 ↾ (0..^(𝑁 + 1))))”〉) = (𝐹 ↾ (0..^(𝑁 + 1)))) |
18 | 3 | nn0cnd 12295 |
. . . . . 6
⊢ (𝜑 → 𝑁 ∈ ℂ) |
19 | | 1cnd 10970 |
. . . . . 6
⊢ (𝜑 → 1 ∈
ℂ) |
20 | 18, 19, 11 | mvrraddd 11387 |
. . . . 5
⊢ (𝜑 → ((♯‘(𝐹 ↾ (0..^(𝑁 + 1)))) − 1) = 𝑁) |
21 | 20 | oveq2d 7291 |
. . . 4
⊢ (𝜑 → ((𝐹 ↾ (0..^(𝑁 + 1))) prefix ((♯‘(𝐹 ↾ (0..^(𝑁 + 1)))) − 1)) = ((𝐹 ↾ (0..^(𝑁 + 1))) prefix 𝑁)) |
22 | | nn0fz0 13354 |
. . . . . . . 8
⊢ (𝑁 ∈ ℕ0
↔ 𝑁 ∈ (0...𝑁)) |
23 | 3, 22 | sylib 217 |
. . . . . . 7
⊢ (𝜑 → 𝑁 ∈ (0...𝑁)) |
24 | | elfz0add 13355 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℕ0
∧ 1 ∈ ℕ0) → (𝑁 ∈ (0...𝑁) → 𝑁 ∈ (0...(𝑁 + 1)))) |
25 | 24 | imp 407 |
. . . . . . 7
⊢ (((𝑁 ∈ ℕ0
∧ 1 ∈ ℕ0) ∧ 𝑁 ∈ (0...𝑁)) → 𝑁 ∈ (0...(𝑁 + 1))) |
26 | 3, 5, 23, 25 | syl21anc 835 |
. . . . . 6
⊢ (𝜑 → 𝑁 ∈ (0...(𝑁 + 1))) |
27 | 11 | oveq2d 7291 |
. . . . . 6
⊢ (𝜑 → (0...(♯‘(𝐹 ↾ (0..^(𝑁 + 1))))) = (0...(𝑁 + 1))) |
28 | 26, 27 | eleqtrrd 2842 |
. . . . 5
⊢ (𝜑 → 𝑁 ∈ (0...(♯‘(𝐹 ↾ (0..^(𝑁 + 1)))))) |
29 | | pfxres 14392 |
. . . . 5
⊢ (((𝐹 ↾ (0..^(𝑁 + 1))) ∈ Word 𝑆 ∧ 𝑁 ∈ (0...(♯‘(𝐹 ↾ (0..^(𝑁 + 1)))))) → ((𝐹 ↾ (0..^(𝑁 + 1))) prefix 𝑁) = ((𝐹 ↾ (0..^(𝑁 + 1))) ↾ (0..^𝑁))) |
30 | 7, 28, 29 | syl2anc 584 |
. . . 4
⊢ (𝜑 → ((𝐹 ↾ (0..^(𝑁 + 1))) prefix 𝑁) = ((𝐹 ↾ (0..^(𝑁 + 1))) ↾ (0..^𝑁))) |
31 | | fzossfzop1 13465 |
. . . . 5
⊢ (𝑁 ∈ ℕ0
→ (0..^𝑁) ⊆
(0..^(𝑁 +
1))) |
32 | | resabs1 5921 |
. . . . 5
⊢
((0..^𝑁) ⊆
(0..^(𝑁 + 1)) →
((𝐹 ↾ (0..^(𝑁 + 1))) ↾ (0..^𝑁)) = (𝐹 ↾ (0..^𝑁))) |
33 | 3, 31, 32 | 3syl 18 |
. . . 4
⊢ (𝜑 → ((𝐹 ↾ (0..^(𝑁 + 1))) ↾ (0..^𝑁)) = (𝐹 ↾ (0..^𝑁))) |
34 | 21, 30, 33 | 3eqtrd 2782 |
. . 3
⊢ (𝜑 → ((𝐹 ↾ (0..^(𝑁 + 1))) prefix ((♯‘(𝐹 ↾ (0..^(𝑁 + 1)))) − 1)) = (𝐹 ↾ (0..^𝑁))) |
35 | | lsw 14267 |
. . . . . 6
⊢ ((𝐹 ↾ (0..^(𝑁 + 1))) ∈ Word 𝑆 → (lastS‘(𝐹 ↾ (0..^(𝑁 + 1)))) = ((𝐹 ↾ (0..^(𝑁 + 1)))‘((♯‘(𝐹 ↾ (0..^(𝑁 + 1)))) − 1))) |
36 | 7, 35 | syl 17 |
. . . . 5
⊢ (𝜑 → (lastS‘(𝐹 ↾ (0..^(𝑁 + 1)))) = ((𝐹 ↾ (0..^(𝑁 + 1)))‘((♯‘(𝐹 ↾ (0..^(𝑁 + 1)))) − 1))) |
37 | 20 | fveq2d 6778 |
. . . . 5
⊢ (𝜑 → ((𝐹 ↾ (0..^(𝑁 + 1)))‘((♯‘(𝐹 ↾ (0..^(𝑁 + 1)))) − 1)) = ((𝐹 ↾ (0..^(𝑁 + 1)))‘𝑁)) |
38 | | fzonn0p1 13464 |
. . . . . 6
⊢ (𝑁 ∈ ℕ0
→ 𝑁 ∈ (0..^(𝑁 + 1))) |
39 | | fvres 6793 |
. . . . . 6
⊢ (𝑁 ∈ (0..^(𝑁 + 1)) → ((𝐹 ↾ (0..^(𝑁 + 1)))‘𝑁) = (𝐹‘𝑁)) |
40 | 3, 38, 39 | 3syl 18 |
. . . . 5
⊢ (𝜑 → ((𝐹 ↾ (0..^(𝑁 + 1)))‘𝑁) = (𝐹‘𝑁)) |
41 | 36, 37, 40 | 3eqtrd 2782 |
. . . 4
⊢ (𝜑 → (lastS‘(𝐹 ↾ (0..^(𝑁 + 1)))) = (𝐹‘𝑁)) |
42 | 41 | s1eqd 14306 |
. . 3
⊢ (𝜑 →
〈“(lastS‘(𝐹 ↾ (0..^(𝑁 + 1))))”〉 = 〈“(𝐹‘𝑁)”〉) |
43 | 34, 42 | oveq12d 7293 |
. 2
⊢ (𝜑 → (((𝐹 ↾ (0..^(𝑁 + 1))) prefix ((♯‘(𝐹 ↾ (0..^(𝑁 + 1)))) − 1)) ++
〈“(lastS‘(𝐹 ↾ (0..^(𝑁 + 1))))”〉) = ((𝐹 ↾ (0..^𝑁)) ++ 〈“(𝐹‘𝑁)”〉)) |
44 | 17, 43 | eqtr3d 2780 |
1
⊢ (𝜑 → (𝐹 ↾ (0..^(𝑁 + 1))) = ((𝐹 ↾ (0..^𝑁)) ++ 〈“(𝐹‘𝑁)”〉)) |