Step | Hyp | Ref
| Expression |
1 | | ffn 6600 |
. . . 4
⊢ (𝐹:𝐴⟶𝐵 → 𝐹 Fn 𝐴) |
2 | 1 | 3ad2ant3 1134 |
. . 3
⊢ ((𝑊 ∈ Word 𝐴 ∧ (𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) ∧ 𝐹:𝐴⟶𝐵) → 𝐹 Fn 𝐴) |
3 | | swrdvalfn 14364 |
. . . . 5
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) → (𝑊 substr 〈𝑀, 𝑁〉) Fn (0..^(𝑁 − 𝑀))) |
4 | 3 | 3expb 1119 |
. . . 4
⊢ ((𝑊 ∈ Word 𝐴 ∧ (𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊)))) → (𝑊 substr 〈𝑀, 𝑁〉) Fn (0..^(𝑁 − 𝑀))) |
5 | 4 | 3adant3 1131 |
. . 3
⊢ ((𝑊 ∈ Word 𝐴 ∧ (𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) ∧ 𝐹:𝐴⟶𝐵) → (𝑊 substr 〈𝑀, 𝑁〉) Fn (0..^(𝑁 − 𝑀))) |
6 | | swrdrn 14365 |
. . . . 5
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) → ran (𝑊 substr 〈𝑀, 𝑁〉) ⊆ 𝐴) |
7 | 6 | 3expb 1119 |
. . . 4
⊢ ((𝑊 ∈ Word 𝐴 ∧ (𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊)))) → ran (𝑊 substr 〈𝑀, 𝑁〉) ⊆ 𝐴) |
8 | 7 | 3adant3 1131 |
. . 3
⊢ ((𝑊 ∈ Word 𝐴 ∧ (𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) ∧ 𝐹:𝐴⟶𝐵) → ran (𝑊 substr 〈𝑀, 𝑁〉) ⊆ 𝐴) |
9 | | fnco 6549 |
. . 3
⊢ ((𝐹 Fn 𝐴 ∧ (𝑊 substr 〈𝑀, 𝑁〉) Fn (0..^(𝑁 − 𝑀)) ∧ ran (𝑊 substr 〈𝑀, 𝑁〉) ⊆ 𝐴) → (𝐹 ∘ (𝑊 substr 〈𝑀, 𝑁〉)) Fn (0..^(𝑁 − 𝑀))) |
10 | 2, 5, 8, 9 | syl3anc 1370 |
. 2
⊢ ((𝑊 ∈ Word 𝐴 ∧ (𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) ∧ 𝐹:𝐴⟶𝐵) → (𝐹 ∘ (𝑊 substr 〈𝑀, 𝑁〉)) Fn (0..^(𝑁 − 𝑀))) |
11 | | wrdco 14544 |
. . . 4
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝐹:𝐴⟶𝐵) → (𝐹 ∘ 𝑊) ∈ Word 𝐵) |
12 | 11 | 3adant2 1130 |
. . 3
⊢ ((𝑊 ∈ Word 𝐴 ∧ (𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) ∧ 𝐹:𝐴⟶𝐵) → (𝐹 ∘ 𝑊) ∈ Word 𝐵) |
13 | | simp2l 1198 |
. . 3
⊢ ((𝑊 ∈ Word 𝐴 ∧ (𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) ∧ 𝐹:𝐴⟶𝐵) → 𝑀 ∈ (0...𝑁)) |
14 | | lenco 14545 |
. . . . . . . . . . 11
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝐹:𝐴⟶𝐵) → (♯‘(𝐹 ∘ 𝑊)) = (♯‘𝑊)) |
15 | 14 | eqcomd 2744 |
. . . . . . . . . 10
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝐹:𝐴⟶𝐵) → (♯‘𝑊) = (♯‘(𝐹 ∘ 𝑊))) |
16 | 15 | oveq2d 7291 |
. . . . . . . . 9
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝐹:𝐴⟶𝐵) → (0...(♯‘𝑊)) = (0...(♯‘(𝐹 ∘ 𝑊)))) |
17 | 16 | eleq2d 2824 |
. . . . . . . 8
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝐹:𝐴⟶𝐵) → (𝑁 ∈ (0...(♯‘𝑊)) ↔ 𝑁 ∈ (0...(♯‘(𝐹 ∘ 𝑊))))) |
18 | 17 | biimpd 228 |
. . . . . . 7
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝐹:𝐴⟶𝐵) → (𝑁 ∈ (0...(♯‘𝑊)) → 𝑁 ∈ (0...(♯‘(𝐹 ∘ 𝑊))))) |
19 | 18 | expcom 414 |
. . . . . 6
⊢ (𝐹:𝐴⟶𝐵 → (𝑊 ∈ Word 𝐴 → (𝑁 ∈ (0...(♯‘𝑊)) → 𝑁 ∈ (0...(♯‘(𝐹 ∘ 𝑊)))))) |
20 | 19 | com13 88 |
. . . . 5
⊢ (𝑁 ∈
(0...(♯‘𝑊))
→ (𝑊 ∈ Word 𝐴 → (𝐹:𝐴⟶𝐵 → 𝑁 ∈ (0...(♯‘(𝐹 ∘ 𝑊)))))) |
21 | 20 | adantl 482 |
. . . 4
⊢ ((𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) → (𝑊 ∈ Word 𝐴 → (𝐹:𝐴⟶𝐵 → 𝑁 ∈ (0...(♯‘(𝐹 ∘ 𝑊)))))) |
22 | 21 | 3imp21 1113 |
. . 3
⊢ ((𝑊 ∈ Word 𝐴 ∧ (𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) ∧ 𝐹:𝐴⟶𝐵) → 𝑁 ∈ (0...(♯‘(𝐹 ∘ 𝑊)))) |
23 | | swrdvalfn 14364 |
. . 3
⊢ (((𝐹 ∘ 𝑊) ∈ Word 𝐵 ∧ 𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘(𝐹 ∘ 𝑊)))) → ((𝐹 ∘ 𝑊) substr 〈𝑀, 𝑁〉) Fn (0..^(𝑁 − 𝑀))) |
24 | 12, 13, 22, 23 | syl3anc 1370 |
. 2
⊢ ((𝑊 ∈ Word 𝐴 ∧ (𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) ∧ 𝐹:𝐴⟶𝐵) → ((𝐹 ∘ 𝑊) substr 〈𝑀, 𝑁〉) Fn (0..^(𝑁 − 𝑀))) |
25 | | 3anass 1094 |
. . . . . . 7
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) ↔ (𝑊 ∈ Word 𝐴 ∧ (𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))))) |
26 | 25 | biimpri 227 |
. . . . . 6
⊢ ((𝑊 ∈ Word 𝐴 ∧ (𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊)))) → (𝑊 ∈ Word 𝐴 ∧ 𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊)))) |
27 | 26 | 3adant3 1131 |
. . . . 5
⊢ ((𝑊 ∈ Word 𝐴 ∧ (𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) ∧ 𝐹:𝐴⟶𝐵) → (𝑊 ∈ Word 𝐴 ∧ 𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊)))) |
28 | | swrdfv 14361 |
. . . . . 6
⊢ (((𝑊 ∈ Word 𝐴 ∧ 𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) ∧ 𝑖 ∈ (0..^(𝑁 − 𝑀))) → ((𝑊 substr 〈𝑀, 𝑁〉)‘𝑖) = (𝑊‘(𝑖 + 𝑀))) |
29 | 28 | fveq2d 6778 |
. . . . 5
⊢ (((𝑊 ∈ Word 𝐴 ∧ 𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) ∧ 𝑖 ∈ (0..^(𝑁 − 𝑀))) → (𝐹‘((𝑊 substr 〈𝑀, 𝑁〉)‘𝑖)) = (𝐹‘(𝑊‘(𝑖 + 𝑀)))) |
30 | 27, 29 | sylan 580 |
. . . 4
⊢ (((𝑊 ∈ Word 𝐴 ∧ (𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) ∧ 𝐹:𝐴⟶𝐵) ∧ 𝑖 ∈ (0..^(𝑁 − 𝑀))) → (𝐹‘((𝑊 substr 〈𝑀, 𝑁〉)‘𝑖)) = (𝐹‘(𝑊‘(𝑖 + 𝑀)))) |
31 | | wrdfn 14231 |
. . . . . 6
⊢ (𝑊 ∈ Word 𝐴 → 𝑊 Fn (0..^(♯‘𝑊))) |
32 | 31 | 3ad2ant1 1132 |
. . . . 5
⊢ ((𝑊 ∈ Word 𝐴 ∧ (𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) ∧ 𝐹:𝐴⟶𝐵) → 𝑊 Fn (0..^(♯‘𝑊))) |
33 | | elfzodifsumelfzo 13453 |
. . . . . . 7
⊢ ((𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) → (𝑖 ∈ (0..^(𝑁 − 𝑀)) → (𝑖 + 𝑀) ∈ (0..^(♯‘𝑊)))) |
34 | 33 | 3ad2ant2 1133 |
. . . . . 6
⊢ ((𝑊 ∈ Word 𝐴 ∧ (𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) ∧ 𝐹:𝐴⟶𝐵) → (𝑖 ∈ (0..^(𝑁 − 𝑀)) → (𝑖 + 𝑀) ∈ (0..^(♯‘𝑊)))) |
35 | 34 | imp 407 |
. . . . 5
⊢ (((𝑊 ∈ Word 𝐴 ∧ (𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) ∧ 𝐹:𝐴⟶𝐵) ∧ 𝑖 ∈ (0..^(𝑁 − 𝑀))) → (𝑖 + 𝑀) ∈ (0..^(♯‘𝑊))) |
36 | | fvco2 6865 |
. . . . 5
⊢ ((𝑊 Fn (0..^(♯‘𝑊)) ∧ (𝑖 + 𝑀) ∈ (0..^(♯‘𝑊))) → ((𝐹 ∘ 𝑊)‘(𝑖 + 𝑀)) = (𝐹‘(𝑊‘(𝑖 + 𝑀)))) |
37 | 32, 35, 36 | syl2an2r 682 |
. . . 4
⊢ (((𝑊 ∈ Word 𝐴 ∧ (𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) ∧ 𝐹:𝐴⟶𝐵) ∧ 𝑖 ∈ (0..^(𝑁 − 𝑀))) → ((𝐹 ∘ 𝑊)‘(𝑖 + 𝑀)) = (𝐹‘(𝑊‘(𝑖 + 𝑀)))) |
38 | 30, 37 | eqtr4d 2781 |
. . 3
⊢ (((𝑊 ∈ Word 𝐴 ∧ (𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) ∧ 𝐹:𝐴⟶𝐵) ∧ 𝑖 ∈ (0..^(𝑁 − 𝑀))) → (𝐹‘((𝑊 substr 〈𝑀, 𝑁〉)‘𝑖)) = ((𝐹 ∘ 𝑊)‘(𝑖 + 𝑀))) |
39 | | fvco2 6865 |
. . . 4
⊢ (((𝑊 substr 〈𝑀, 𝑁〉) Fn (0..^(𝑁 − 𝑀)) ∧ 𝑖 ∈ (0..^(𝑁 − 𝑀))) → ((𝐹 ∘ (𝑊 substr 〈𝑀, 𝑁〉))‘𝑖) = (𝐹‘((𝑊 substr 〈𝑀, 𝑁〉)‘𝑖))) |
40 | 5, 39 | sylan 580 |
. . 3
⊢ (((𝑊 ∈ Word 𝐴 ∧ (𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) ∧ 𝐹:𝐴⟶𝐵) ∧ 𝑖 ∈ (0..^(𝑁 − 𝑀))) → ((𝐹 ∘ (𝑊 substr 〈𝑀, 𝑁〉))‘𝑖) = (𝐹‘((𝑊 substr 〈𝑀, 𝑁〉)‘𝑖))) |
41 | 14 | ancoms 459 |
. . . . . . . . . . . . 13
⊢ ((𝐹:𝐴⟶𝐵 ∧ 𝑊 ∈ Word 𝐴) → (♯‘(𝐹 ∘ 𝑊)) = (♯‘𝑊)) |
42 | 41 | eqcomd 2744 |
. . . . . . . . . . . 12
⊢ ((𝐹:𝐴⟶𝐵 ∧ 𝑊 ∈ Word 𝐴) → (♯‘𝑊) = (♯‘(𝐹 ∘ 𝑊))) |
43 | 42 | oveq2d 7291 |
. . . . . . . . . . 11
⊢ ((𝐹:𝐴⟶𝐵 ∧ 𝑊 ∈ Word 𝐴) → (0...(♯‘𝑊)) = (0...(♯‘(𝐹 ∘ 𝑊)))) |
44 | 43 | eleq2d 2824 |
. . . . . . . . . 10
⊢ ((𝐹:𝐴⟶𝐵 ∧ 𝑊 ∈ Word 𝐴) → (𝑁 ∈ (0...(♯‘𝑊)) ↔ 𝑁 ∈ (0...(♯‘(𝐹 ∘ 𝑊))))) |
45 | 44 | biimpd 228 |
. . . . . . . . 9
⊢ ((𝐹:𝐴⟶𝐵 ∧ 𝑊 ∈ Word 𝐴) → (𝑁 ∈ (0...(♯‘𝑊)) → 𝑁 ∈ (0...(♯‘(𝐹 ∘ 𝑊))))) |
46 | 45 | ex 413 |
. . . . . . . 8
⊢ (𝐹:𝐴⟶𝐵 → (𝑊 ∈ Word 𝐴 → (𝑁 ∈ (0...(♯‘𝑊)) → 𝑁 ∈ (0...(♯‘(𝐹 ∘ 𝑊)))))) |
47 | 46 | com13 88 |
. . . . . . 7
⊢ (𝑁 ∈
(0...(♯‘𝑊))
→ (𝑊 ∈ Word 𝐴 → (𝐹:𝐴⟶𝐵 → 𝑁 ∈ (0...(♯‘(𝐹 ∘ 𝑊)))))) |
48 | 47 | adantl 482 |
. . . . . 6
⊢ ((𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) → (𝑊 ∈ Word 𝐴 → (𝐹:𝐴⟶𝐵 → 𝑁 ∈ (0...(♯‘(𝐹 ∘ 𝑊)))))) |
49 | 48 | 3imp21 1113 |
. . . . 5
⊢ ((𝑊 ∈ Word 𝐴 ∧ (𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) ∧ 𝐹:𝐴⟶𝐵) → 𝑁 ∈ (0...(♯‘(𝐹 ∘ 𝑊)))) |
50 | 12, 13, 49 | 3jca 1127 |
. . . 4
⊢ ((𝑊 ∈ Word 𝐴 ∧ (𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) ∧ 𝐹:𝐴⟶𝐵) → ((𝐹 ∘ 𝑊) ∈ Word 𝐵 ∧ 𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘(𝐹 ∘ 𝑊))))) |
51 | | swrdfv 14361 |
. . . 4
⊢ ((((𝐹 ∘ 𝑊) ∈ Word 𝐵 ∧ 𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘(𝐹 ∘ 𝑊)))) ∧ 𝑖 ∈ (0..^(𝑁 − 𝑀))) → (((𝐹 ∘ 𝑊) substr 〈𝑀, 𝑁〉)‘𝑖) = ((𝐹 ∘ 𝑊)‘(𝑖 + 𝑀))) |
52 | 50, 51 | sylan 580 |
. . 3
⊢ (((𝑊 ∈ Word 𝐴 ∧ (𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) ∧ 𝐹:𝐴⟶𝐵) ∧ 𝑖 ∈ (0..^(𝑁 − 𝑀))) → (((𝐹 ∘ 𝑊) substr 〈𝑀, 𝑁〉)‘𝑖) = ((𝐹 ∘ 𝑊)‘(𝑖 + 𝑀))) |
53 | 38, 40, 52 | 3eqtr4d 2788 |
. 2
⊢ (((𝑊 ∈ Word 𝐴 ∧ (𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) ∧ 𝐹:𝐴⟶𝐵) ∧ 𝑖 ∈ (0..^(𝑁 − 𝑀))) → ((𝐹 ∘ (𝑊 substr 〈𝑀, 𝑁〉))‘𝑖) = (((𝐹 ∘ 𝑊) substr 〈𝑀, 𝑁〉)‘𝑖)) |
54 | 10, 24, 53 | eqfnfvd 6912 |
1
⊢ ((𝑊 ∈ Word 𝐴 ∧ (𝑀 ∈ (0...𝑁) ∧ 𝑁 ∈ (0...(♯‘𝑊))) ∧ 𝐹:𝐴⟶𝐵) → (𝐹 ∘ (𝑊 substr 〈𝑀, 𝑁〉)) = ((𝐹 ∘ 𝑊) substr 〈𝑀, 𝑁〉)) |