Description: Cyclically shifting a word is invariant regarding modulo the word's length. (Contributed by AV, 26-Oct-2018) (Proof shortened by AV, 16-Oct-2022)
Ref | Expression | ||
---|---|---|---|
Assertion | cshwmodn | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | 0csh0 | |
|
2 | oveq1 | |
|
3 | oveq1 | |
|
4 | 0csh0 | |
|
5 | 3 4 | eqtrdi | |
6 | 1 2 5 | 3eqtr4a | |
7 | 6 | a1d | |
8 | lennncl | |
|
9 | 8 | ex | |
10 | 9 | adantr | |
11 | 10 | impcom | |
12 | simprr | |
|
13 | zre | |
|
14 | nnrp | |
|
15 | modabs2 | |
|
16 | 13 14 15 | syl2anr | |
17 | 16 | opeq1d | |
18 | 17 | oveq2d | |
19 | 16 | oveq2d | |
20 | 18 19 | oveq12d | |
21 | 11 12 20 | syl2anc | |
22 | simprl | |
|
23 | 12 11 | zmodcld | |
24 | 23 | nn0zd | |
25 | cshword | |
|
26 | 22 24 25 | syl2anc | |
27 | cshword | |
|
28 | 27 | adantl | |
29 | 21 26 28 | 3eqtr4rd | |
30 | 29 | ex | |
31 | 7 30 | pm2.61ine | |