Description: Extract the last single symbol from a word. (Contributed by Alexander van der Vekens, 23-Sep-2018)
Ref | Expression | ||
---|---|---|---|
Assertion | swrdlsw | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | hashneq0 | |
|
2 | lencl | |
|
3 | nn0z | |
|
4 | elnnz | |
|
5 | fzo0end | |
|
6 | 4 5 | sylbir | |
7 | 6 | ex | |
8 | 2 3 7 | 3syl | |
9 | 1 8 | sylbird | |
10 | 9 | imp | |
11 | swrds1 | |
|
12 | 10 11 | syldan | |
13 | nn0cn | |
|
14 | ax-1cn | |
|
15 | 13 14 | jctir | |
16 | npcan | |
|
17 | 16 | eqcomd | |
18 | 2 15 17 | 3syl | |
19 | 18 | adantr | |
20 | 19 | opeq2d | |
21 | 20 | oveq2d | |
22 | lsw | |
|
23 | 22 | adantr | |
24 | 23 | s1eqd | |
25 | 12 21 24 | 3eqtr4d | |