Step | Hyp | Ref
| Expression |
1 | | revcl 14474 |
. . . 4
⊢ (𝑊 ∈ Word 𝐴 → (reverse‘𝑊) ∈ Word 𝐴) |
2 | | revcl 14474 |
. . . 4
⊢
((reverse‘𝑊)
∈ Word 𝐴 →
(reverse‘(reverse‘𝑊)) ∈ Word 𝐴) |
3 | | wrdf 14222 |
. . . 4
⊢
((reverse‘(reverse‘𝑊)) ∈ Word 𝐴 → (reverse‘(reverse‘𝑊)):(0..^(♯‘(reverse‘(reverse‘𝑊))))⟶𝐴) |
4 | | ffn 6600 |
. . . 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 14475 |
. . . . . . 7
⊢
((reverse‘𝑊)
∈ Word 𝐴 →
(♯‘(reverse‘(reverse‘𝑊))) = (♯‘(reverse‘𝑊))) |
7 | 1, 6 | syl 17 |
. . . . . 6
⊢ (𝑊 ∈ Word 𝐴 →
(♯‘(reverse‘(reverse‘𝑊))) = (♯‘(reverse‘𝑊))) |
8 | | revlen 14475 |
. . . . . 6
⊢ (𝑊 ∈ Word 𝐴 → (♯‘(reverse‘𝑊)) = (♯‘𝑊)) |
9 | 7, 8 | eqtrd 2778 |
. . . . 5
⊢ (𝑊 ∈ Word 𝐴 →
(♯‘(reverse‘(reverse‘𝑊))) = (♯‘𝑊)) |
10 | 9 | oveq2d 7291 |
. . . 4
⊢ (𝑊 ∈ Word 𝐴 →
(0..^(♯‘(reverse‘(reverse‘𝑊)))) = (0..^(♯‘𝑊))) |
11 | 10 | fneq2d 6527 |
. . 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 14231 |
. 2
⊢ (𝑊 ∈ Word 𝐴 → 𝑊 Fn (0..^(♯‘𝑊))) |
14 | | simpr 485 |
. . . . 5
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) → 𝑥 ∈ (0..^(♯‘𝑊))) |
15 | 8 | adantr 481 |
. . . . . 6
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) →
(♯‘(reverse‘𝑊)) = (♯‘𝑊)) |
16 | 15 | oveq2d 7291 |
. . . . 5
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) →
(0..^(♯‘(reverse‘𝑊))) = (0..^(♯‘𝑊))) |
17 | 14, 16 | eleqtrrd 2842 |
. . . 4
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) → 𝑥 ∈
(0..^(♯‘(reverse‘𝑊)))) |
18 | | revfv 14476 |
. . . 4
⊢
(((reverse‘𝑊)
∈ Word 𝐴 ∧ 𝑥 ∈
(0..^(♯‘(reverse‘𝑊)))) →
((reverse‘(reverse‘𝑊))‘𝑥) = ((reverse‘𝑊)‘(((♯‘(reverse‘𝑊)) − 1) − 𝑥))) |
19 | 1, 17, 18 | syl2an2r 682 |
. . 3
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) →
((reverse‘(reverse‘𝑊))‘𝑥) = ((reverse‘𝑊)‘(((♯‘(reverse‘𝑊)) − 1) − 𝑥))) |
20 | 15 | oveq1d 7290 |
. . . . 5
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) →
((♯‘(reverse‘𝑊)) − 1) = ((♯‘𝑊) − 1)) |
21 | 20 | fvoveq1d 7297 |
. . . 4
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) → ((reverse‘𝑊)‘(((♯‘(reverse‘𝑊)) − 1) − 𝑥)) = ((reverse‘𝑊)‘(((♯‘𝑊) − 1) − 𝑥))) |
22 | | lencl 14236 |
. . . . . . . . . . . 12
⊢ (𝑊 ∈ Word 𝐴 → (♯‘𝑊) ∈
ℕ0) |
23 | 22 | nn0zd 12424 |
. . . . . . . . . . 11
⊢ (𝑊 ∈ Word 𝐴 → (♯‘𝑊) ∈ ℤ) |
24 | | fzoval 13388 |
. . . . . . . . . . 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 477 |
. . . . . . . 8
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) → 𝑥 ∈ (0...((♯‘𝑊) − 1))) |
28 | | fznn0sub2 13363 |
. . . . . . . 8
⊢ (𝑥 ∈
(0...((♯‘𝑊)
− 1)) → (((♯‘𝑊) − 1) − 𝑥) ∈ (0...((♯‘𝑊) − 1))) |
29 | 27, 28 | syl 17 |
. . . . . . 7
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) → (((♯‘𝑊) − 1) − 𝑥) ∈
(0...((♯‘𝑊)
− 1))) |
30 | 25 | adantr 481 |
. . . . . . 7
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) → (0..^(♯‘𝑊)) = (0...((♯‘𝑊) − 1))) |
31 | 29, 30 | eleqtrrd 2842 |
. . . . . 6
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) → (((♯‘𝑊) − 1) − 𝑥) ∈
(0..^(♯‘𝑊))) |
32 | | revfv 14476 |
. . . . . 6
⊢ ((𝑊 ∈ Word 𝐴 ∧ (((♯‘𝑊) − 1) − 𝑥) ∈ (0..^(♯‘𝑊))) → ((reverse‘𝑊)‘(((♯‘𝑊) − 1) − 𝑥)) = (𝑊‘(((♯‘𝑊) − 1) − (((♯‘𝑊) − 1) − 𝑥)))) |
33 | 31, 32 | syldan 591 |
. . . . 5
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) → ((reverse‘𝑊)‘(((♯‘𝑊) − 1) − 𝑥)) = (𝑊‘(((♯‘𝑊) − 1) − (((♯‘𝑊) − 1) − 𝑥)))) |
34 | | peano2zm 12363 |
. . . . . . . . 9
⊢
((♯‘𝑊)
∈ ℤ → ((♯‘𝑊) − 1) ∈
ℤ) |
35 | 23, 34 | syl 17 |
. . . . . . . 8
⊢ (𝑊 ∈ Word 𝐴 → ((♯‘𝑊) − 1) ∈
ℤ) |
36 | 35 | zcnd 12427 |
. . . . . . 7
⊢ (𝑊 ∈ Word 𝐴 → ((♯‘𝑊) − 1) ∈
ℂ) |
37 | | elfzoelz 13387 |
. . . . . . . 8
⊢ (𝑥 ∈
(0..^(♯‘𝑊))
→ 𝑥 ∈
ℤ) |
38 | 37 | zcnd 12427 |
. . . . . . 7
⊢ (𝑥 ∈
(0..^(♯‘𝑊))
→ 𝑥 ∈
ℂ) |
39 | | nncan 11250 |
. . . . . . 7
⊢
((((♯‘𝑊)
− 1) ∈ ℂ ∧ 𝑥 ∈ ℂ) →
(((♯‘𝑊) −
1) − (((♯‘𝑊) − 1) − 𝑥)) = 𝑥) |
40 | 36, 38, 39 | syl2an 596 |
. . . . . 6
⊢ ((𝑊 ∈ Word 𝐴 ∧ 𝑥 ∈ (0..^(♯‘𝑊))) → (((♯‘𝑊) − 1) −
(((♯‘𝑊) −
1) − 𝑥)) = 𝑥) |
41 | 40 | fveq2d 6778 |
. . . . 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 6912 |
1
⊢ (𝑊 ∈ Word 𝐴 → (reverse‘(reverse‘𝑊)) = 𝑊) |