Metamath Proof Explorer


Theorem pfxres

Description: Value of the subword extractor for left-anchored subwords. (Contributed by Stefan O'Rear, 24-Aug-2015) (Revised by AV, 2-May-2020)

Ref Expression
Assertion pfxres SWordAL0SSprefixL=S0..^L

Proof

Step Hyp Ref Expression
1 pfxmpt SWordAL0SSprefixL=x0..^LSx
2 wrdf SWordAS:0..^SA
3 2 adantr SWordAL0SS:0..^SA
4 elfzuz3 L0SSL
5 4 adantl SWordAL0SSL
6 fzoss2 SL0..^L0..^S
7 5 6 syl SWordAL0S0..^L0..^S
8 3 7 feqresmpt SWordAL0SS0..^L=x0..^LSx
9 1 8 eqtr4d SWordAL0SSprefixL=S0..^L