Metamath Proof Explorer


Theorem lswcl

Description: Closure of the last symbol: the last symbol of a not empty word belongs to the alphabet for the word. (Contributed by AV, 2-Aug-2018) (Proof shortened by AV, 29-Apr-2020)

Ref Expression
Assertion lswcl WWordVWlastSWV

Proof

Step Hyp Ref Expression
1 lsw WWordVlastSW=WW1
2 1 adantr WWordVWlastSW=WW1
3 lennncl WWordVWW
4 fzo0end WW10..^W
5 3 4 syl WWordVWW10..^W
6 wrdsymbcl WWordVW10..^WWW1V
7 5 6 syldan WWordVWWW1V
8 2 7 eqeltrd WWordVWlastSWV