Description: Cyclically shifting a length 2 word swaps its symbols. (Contributed by Thierry Arnoux, 19-Sep-2023)
Ref | Expression | ||
---|---|---|---|
Assertion | cshw1s2 | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | s2len | |
|
2 | 1 | oveq2i | |
3 | 1re | |
|
4 | 2rp | |
|
5 | 0le1 | |
|
6 | 1lt2 | |
|
7 | modid | |
|
8 | 3 4 5 6 7 | mp4an | |
9 | 2 8 | eqtri | |
10 | 9 1 | opeq12i | |
11 | 10 | oveq2i | |
12 | s2cl | |
|
13 | tpid2g | |
|
14 | 3 13 | ax-mp | |
15 | fz0tp | |
|
16 | 14 15 | eleqtrri | |
17 | tpid3g | |
|
18 | 4 17 | ax-mp | |
19 | 18 15 | eleqtrri | |
20 | 1 | oveq2i | |
21 | 19 20 | eleqtrri | |
22 | swrdval2 | |
|
23 | 16 21 22 | mp3an23 | |
24 | 12 23 | syl | |
25 | 2m1e1 | |
|
26 | 25 | oveq2i | |
27 | fzo01 | |
|
28 | 26 27 | eqtri | |
29 | 28 | a1i | |
30 | simpr | |
|
31 | 30 28 | eleqtrdi | |
32 | elsni | |
|
33 | 31 32 | syl | |
34 | 33 | oveq1d | |
35 | 0p1e1 | |
|
36 | 34 35 | eqtrdi | |
37 | 36 | fveq2d | |
38 | s2fv1 | |
|
39 | 38 | ad2antlr | |
40 | 37 39 | eqtrd | |
41 | 29 40 | mpteq12dva | |
42 | fconstmpt | |
|
43 | 0nn0 | |
|
44 | simpr | |
|
45 | xpsng | |
|
46 | 43 44 45 | sylancr | |
47 | s1val | |
|
48 | 47 | adantl | |
49 | 46 48 | eqtr4d | |
50 | 42 49 | eqtr3id | |
51 | 24 41 50 | 3eqtrd | |
52 | 11 51 | eqtrid | |
53 | 9 | oveq2i | |
54 | pfx1s2 | |
|
55 | 53 54 | eqtrid | |
56 | 52 55 | oveq12d | |
57 | 1z | |
|
58 | cshword | |
|
59 | 12 57 58 | sylancl | |
60 | df-s2 | |
|
61 | 60 | a1i | |
62 | 56 59 61 | 3eqtr4d | |