Metamath Proof Explorer


Theorem pfxrn2

Description: The range of a prefix of a word is a subset of the range of that word. Stronger version of pfxrn . (Contributed by Thierry Arnoux, 12-Dec-2023)

Ref Expression
Assertion pfxrn2 WWordSL0WranWprefixLranW

Proof

Step Hyp Ref Expression
1 pfxres WWordSL0WWprefixL=W0..^L
2 1 rneqd WWordSL0WranWprefixL=ranW0..^L
3 resss W0..^LW
4 3 rnssi ranW0..^LranW
5 2 4 eqsstrdi WWordSL0WranWprefixLranW