Description: The reverse of a word has the same length as the original. (Contributed by Stefan O'Rear, 26-Aug-2015)
Ref | Expression | ||
---|---|---|---|
Assertion | revlen | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | revval | |
|
2 | 1 | fveq2d | |
3 | wrdf | |
|
4 | 3 | adantr | |
5 | simpr | |
|
6 | lencl | |
|
7 | 6 | adantr | |
8 | nn0z | |
|
9 | fzoval | |
|
10 | 7 8 9 | 3syl | |
11 | 5 10 | eleqtrd | |
12 | fznn0sub2 | |
|
13 | 11 12 | syl | |
14 | 13 10 | eleqtrrd | |
15 | 4 14 | ffvelcdmd | |
16 | 15 | fmpttd | |
17 | ffn | |
|
18 | hashfn | |
|
19 | 16 17 18 | 3syl | |
20 | hashfzo0 | |
|
21 | 6 20 | syl | |
22 | 2 19 21 | 3eqtrd | |