Metamath Proof Explorer


Theorem lswccats1

Description: The last symbol of a word concatenated with a singleton word is the symbol of the singleton word. (Contributed by AV, 6-Aug-2018) (Proof shortened by AV, 22-Oct-2018)

Ref Expression
Assertion lswccats1 WWordVSVlastSW++⟨“S”⟩=S

Proof

Step Hyp Ref Expression
1 simpl WWordVSVWWordV
2 s1cl SV⟨“S”⟩WordV
3 2 adantl WWordVSV⟨“S”⟩WordV
4 s1nz ⟨“S”⟩
5 4 a1i WWordVSV⟨“S”⟩
6 lswccatn0lsw WWordV⟨“S”⟩WordV⟨“S”⟩lastSW++⟨“S”⟩=lastS⟨“S”⟩
7 1 3 5 6 syl3anc WWordVSVlastSW++⟨“S”⟩=lastS⟨“S”⟩
8 lsws1 SVlastS⟨“S”⟩=S
9 8 adantl WWordVSVlastS⟨“S”⟩=S
10 7 9 eqtrd WWordVSVlastSW++⟨“S”⟩=S