Description: The symbol at index (n-1) of a word of length n (not 0) cyclically shifted by N positions (not 0) is the symbol at index (N-1) of the original word. (Contributed by AV, 18-May-2018) (Revised by AV, 21-May-2018) (Revised by AV, 30-Oct-2018)
Ref | Expression | ||
---|---|---|---|
Assertion | cshwidxn | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | simpl | |
|
2 | elfzelz | |
|
3 | 2 | adantl | |
4 | elfz1b | |
|
5 | simp2 | |
|
6 | 4 5 | sylbi | |
7 | 6 | adantl | |
8 | fzo0end | |
|
9 | 7 8 | syl | |
10 | cshwidxmod | |
|
11 | 1 3 9 10 | syl3anc | |
12 | nncn | |
|
13 | 12 | adantl | |
14 | 1cnd | |
|
15 | nncn | |
|
16 | 15 | adantr | |
17 | 13 14 16 | 3jca | |
18 | 17 | 3adant3 | |
19 | 4 18 | sylbi | |
20 | subadd23 | |
|
21 | 19 20 | syl | |
22 | 21 | oveq1d | |
23 | nnm1nn0 | |
|
24 | 23 | 3ad2ant1 | |
25 | simp3 | |
|
26 | nnz | |
|
27 | nnz | |
|
28 | 26 27 | anim12i | |
29 | 28 | 3adant3 | |
30 | zlem1lt | |
|
31 | 29 30 | syl | |
32 | 25 31 | mpbid | |
33 | 24 5 32 | 3jca | |
34 | 4 33 | sylbi | |
35 | addmodid | |
|
36 | 34 35 | syl | |
37 | 22 36 | eqtrd | |
38 | 37 | fveq2d | |
39 | 38 | adantl | |
40 | 11 39 | eqtrd | |