Metamath Proof Explorer


Theorem pfxcctswrd

Description: The concatenation of the prefix of a word and the rest of the word yields the word itself. (Contributed by AV, 21-Oct-2018) (Revised by AV, 9-May-2020)

Ref Expression
Assertion pfxcctswrd WWordVM0WWprefixM++WsubstrMW=W

Proof

Step Hyp Ref Expression
1 lencl WWordVW0
2 nn0fz0 W0W0W
3 1 2 sylib WWordVW0W
4 3 adantr WWordVM0WW0W
5 ccatpfx WWordVM0WW0WWprefixM++WsubstrMW=WprefixW
6 4 5 mpd3an3 WWordVM0WWprefixM++WsubstrMW=WprefixW
7 pfxid WWordVWprefixW=W
8 7 adantr WWordVM0WWprefixW=W
9 6 8 eqtrd WWordVM0WWprefixM++WsubstrMW=W