Metamath Proof Explorer


Theorem pfxwrdsymb

Description: A prefix of a word is a word over the symbols it consists of. (Contributed by AV, 3-Dec-2022)

Ref Expression
Assertion pfxwrdsymb S Word A S prefix L Word S 0 ..^ L

Proof

Step Hyp Ref Expression
1 pfxval0 S Word A S prefix L = S substr 0 L
2 swrdwrdsymb S Word A S substr 0 L Word S 0 ..^ L
3 1 2 eqeltrd S Word A S prefix L Word S 0 ..^ L