Description: The last symbol of a word concatenated with the word with the last symbol removed results in the word itself. (Contributed by Alexander van der Vekens, 24-Oct-2018) (Revised by AV, 9-May-2020)
Ref | Expression | ||
---|---|---|---|
Assertion | ccats1pfxeq | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | oveq1 | |
|
2 | 1 | adantl | |
3 | lencl | |
|
4 | 3 | nn0cnd | |
5 | pncan1 | |
|
6 | 4 5 | syl | |
7 | 6 | eqcomd | |
8 | 7 | 3ad2ant1 | |
9 | oveq1 | |
|
10 | 9 | eqcomd | |
11 | 10 | 3ad2ant3 | |
12 | 8 11 | eqtrd | |
13 | 12 | oveq2d | |
14 | 13 | oveq1d | |
15 | simp2 | |
|
16 | nn0p1gt0 | |
|
17 | 3 16 | syl | |
18 | 17 | 3ad2ant1 | |
19 | breq2 | |
|
20 | 19 | 3ad2ant3 | |
21 | 18 20 | mpbird | |
22 | hashneq0 | |
|
23 | 22 | 3ad2ant2 | |
24 | 21 23 | mpbid | |
25 | pfxlswccat | |
|
26 | 15 24 25 | syl2anc | |
27 | 14 26 | eqtrd | |
28 | 27 | adantr | |
29 | 2 28 | eqtr2d | |
30 | 29 | ex | |