Step | Hyp | Ref
| Expression |
1 | | revcl 14402 |
. . . 4
⊢ (𝑊 ∈ Word 𝐴 → (reverse‘𝑊) ∈ Word 𝐴) |
2 | | revcl 14402 |
. . . 4
⊢
((reverse‘𝑊)
∈ Word 𝐴 →
(reverse‘(reverse‘𝑊)) ∈ Word 𝐴) |
3 | | wrdf 14150 |
. . . 4
⊢
((reverse‘(reverse‘𝑊)) ∈ Word 𝐴 → (reverse‘(reverse‘𝑊)):(0..^(♯‘(reverse‘(reverse‘𝑊))))⟶𝐴) |
4 | | ffn 6584 |
. . . 4
⊢
((reverse‘(reverse‘𝑊)):(0..^(♯‘(reverse‘(reverse‘𝑊))))⟶𝐴 → (reverse‘(reverse‘𝑊)) Fn
(0..^(♯‘(reverse‘(reverse‘𝑊))))) |
5 | 1, 2, 3, 4 | 4syl 19 |
. . 3
⊢ (𝑊 ∈ Word 𝐴 → (reverse‘(reverse‘𝑊)) Fn
(0..^(♯‘(reverse‘(reverse‘𝑊))))) |
6 | | revlen 14403 |
. . . . . . 7
⊢
((reverse‘𝑊)
∈ Word 𝐴 →
(♯‘(reverse‘(reverse‘𝑊))) = (♯‘(reverse‘𝑊))) |
7 | 1, 6 | syl 17 |
. . . . . 6
⊢ (𝑊 ∈ Word 𝐴 →
(♯‘(reverse‘(reverse‘𝑊))) = (♯‘(reverse‘𝑊))) |
8 | | revlen 14403 |
. . . . . 6
⊢ (𝑊 ∈ Word 𝐴 → (♯‘(reverse‘𝑊)) = (♯‘𝑊)) |
9 | 7, 8 | eqtrd 2778 |
. . . . 5
⊢ (𝑊 ∈ Word 𝐴 →
(♯‘(reverse‘(reverse‘𝑊))) = (♯‘𝑊)) |
10 | 9 | oveq2d 7271 |
. . . 4
⊢ (𝑊 ∈ Word 𝐴 →
(0..^(♯‘(reverse‘(reverse‘𝑊)))) = (0..^(♯‘𝑊))) |
11 | 10 | fneq2d 6511 |
. . 3
⊢ (𝑊 ∈ Word 𝐴 → ((reverse‘(reverse‘𝑊)) Fn
(0..^(♯‘(reverse‘(reverse‘𝑊)))) ↔
(reverse‘(reverse‘𝑊)) Fn (0..^(♯‘𝑊)))) |
12 | 5, 11 | mpbid 231 |
. 2
⊢ (𝑊 ∈ Word 𝐴 → (reverse‘(reverse‘𝑊)) Fn (0..^(♯‘𝑊))) |
13 | | wrdfn 14159 |
. 2
⊢ (𝑊 ∈ Word 𝐴 → 𝑊 Fn (0..^(♯‘𝑊))) |
14 | | simpr 484 |
. . . . 5
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) → 𝑥 ∈ (0..^(♯‘𝑊))) |
15 | 8 | adantr 480 |
. . . . . 6
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) →
(♯‘(reverse‘𝑊)) = (♯‘𝑊)) |
16 | 15 | oveq2d 7271 |
. . . . 5
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) →
(0..^(♯‘(reverse‘𝑊))) = (0..^(♯‘𝑊))) |
17 | 14, 16 | eleqtrrd 2842 |
. . . 4
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) → 𝑥 ∈
(0..^(♯‘(reverse‘𝑊)))) |
18 | | revfv 14404 |
. . . 4
⊢
(((reverse‘𝑊)
∈ Word 𝐴 ∧ 𝑥 ∈
(0..^(♯‘(reverse‘𝑊)))) →
((reverse‘(reverse‘𝑊))‘𝑥) = ((reverse‘𝑊)‘(((♯‘(reverse‘𝑊)) − 1) − 𝑥))) |
19 | 1, 17, 18 | syl2an2r 681 |
. . 3
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) →
((reverse‘(reverse‘𝑊))‘𝑥) = ((reverse‘𝑊)‘(((♯‘(reverse‘𝑊)) − 1) − 𝑥))) |
20 | 15 | oveq1d 7270 |
. . . . 5
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) →
((♯‘(reverse‘𝑊)) − 1) = ((♯‘𝑊) − 1)) |
21 | 20 | fvoveq1d 7277 |
. . . 4
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) → ((reverse‘𝑊)‘(((♯‘(reverse‘𝑊)) − 1) − 𝑥)) = ((reverse‘𝑊)‘(((♯‘𝑊) − 1) − 𝑥))) |
22 | | lencl 14164 |
. . . . . . . . . . . 12
⊢ (𝑊 ∈ Word 𝐴 → (♯‘𝑊) ∈
ℕ0) |
23 | 22 | nn0zd 12353 |
. . . . . . . . . . 11
⊢ (𝑊 ∈ Word 𝐴 → (♯‘𝑊) ∈ ℤ) |
24 | | fzoval 13317 |
. . . . . . . . . . 11
⊢
((♯‘𝑊)
∈ ℤ → (0..^(♯‘𝑊)) = (0...((♯‘𝑊) − 1))) |
25 | 23, 24 | syl 17 |
. . . . . . . . . 10
⊢ (𝑊 ∈ Word 𝐴 → (0..^(♯‘𝑊)) = (0...((♯‘𝑊) − 1))) |
26 | 25 | eleq2d 2824 |
. . . . . . . . 9
⊢ (𝑊 ∈ Word 𝐴 → (𝑥 ∈ (0..^(♯‘𝑊)) ↔ 𝑥 ∈ (0...((♯‘𝑊) − 1)))) |
27 | 26 | biimpa 476 |
. . . . . . . 8
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) → 𝑥 ∈ (0...((♯‘𝑊) − 1))) |
28 | | fznn0sub2 13292 |
. . . . . . . 8
⊢ (𝑥 ∈
(0...((♯‘𝑊)
− 1)) → (((♯‘𝑊) − 1) − 𝑥) ∈ (0...((♯‘𝑊) − 1))) |
29 | 27, 28 | syl 17 |
. . . . . . 7
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) → (((♯‘𝑊) − 1) − 𝑥) ∈
(0...((♯‘𝑊)
− 1))) |
30 | 25 | adantr 480 |
. . . . . . 7
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) → (0..^(♯‘𝑊)) = (0...((♯‘𝑊) − 1))) |
31 | 29, 30 | eleqtrrd 2842 |
. . . . . 6
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) → (((♯‘𝑊) − 1) − 𝑥) ∈
(0..^(♯‘𝑊))) |
32 | | revfv 14404 |
. . . . . 6
⊢ ((𝑊 ∈ Word 𝐴 ∧ (((♯‘𝑊) − 1) − 𝑥) ∈ (0..^(♯‘𝑊))) → ((reverse‘𝑊)‘(((♯‘𝑊) − 1) − 𝑥)) = (𝑊‘(((♯‘𝑊) − 1) − (((♯‘𝑊) − 1) − 𝑥)))) |
33 | 31, 32 | syldan 590 |
. . . . 5
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) → ((reverse‘𝑊)‘(((♯‘𝑊) − 1) − 𝑥)) = (𝑊‘(((♯‘𝑊) − 1) − (((♯‘𝑊) − 1) − 𝑥)))) |
34 | | peano2zm 12293 |
. . . . . . . . 9
⊢
((♯‘𝑊)
∈ ℤ → ((♯‘𝑊) − 1) ∈
ℤ) |
35 | 23, 34 | syl 17 |
. . . . . . . 8
⊢ (𝑊 ∈ Word 𝐴 → ((♯‘𝑊) − 1) ∈
ℤ) |
36 | 35 | zcnd 12356 |
. . . . . . 7
⊢ (𝑊 ∈ Word 𝐴 → ((♯‘𝑊) − 1) ∈
ℂ) |
37 | | elfzoelz 13316 |
. . . . . . . 8
⊢ (𝑥 ∈
(0..^(♯‘𝑊))
→ 𝑥 ∈
ℤ) |
38 | 37 | zcnd 12356 |
. . . . . . 7
⊢ (𝑥 ∈
(0..^(♯‘𝑊))
→ 𝑥 ∈
ℂ) |
39 | | nncan 11180 |
. . . . . . 7
⊢
((((♯‘𝑊)
− 1) ∈ ℂ ∧ 𝑥 ∈ ℂ) →
(((♯‘𝑊) −
1) − (((♯‘𝑊) − 1) − 𝑥)) = 𝑥) |
40 | 36, 38, 39 | syl2an 595 |
. . . . . 6
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) → (((♯‘𝑊) − 1) −
(((♯‘𝑊) −
1) − 𝑥)) = 𝑥) |
41 | 40 | fveq2d 6760 |
. . . . 5
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) → (𝑊‘(((♯‘𝑊) − 1) − (((♯‘𝑊) − 1) − 𝑥))) = (𝑊‘𝑥)) |
42 | 33, 41 | eqtrd 2778 |
. . . 4
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) → ((reverse‘𝑊)‘(((♯‘𝑊) − 1) − 𝑥)) = (𝑊‘𝑥)) |
43 | 21, 42 | eqtrd 2778 |
. . 3
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) → ((reverse‘𝑊)‘(((♯‘(reverse‘𝑊)) − 1) − 𝑥)) = (𝑊‘𝑥)) |
44 | 19, 43 | eqtrd 2778 |
. 2
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) →
((reverse‘(reverse‘𝑊))‘𝑥) = (𝑊‘𝑥)) |
45 | 12, 13, 44 | eqfnfvd 6894 |
1
⊢ (𝑊 ∈ Word 𝐴 → (reverse‘(reverse‘𝑊)) = 𝑊) |