Metamath Proof Explorer


Theorem swrdf

Description: A subword of a word is a function from a half-open range of nonnegative integers of the same length as the subword to the set of symbols for the original word. (Contributed by AV, 13-Nov-2018)

Ref Expression
Assertion swrdf WWordVM0NN0WWsubstrMN:0..^NMV

Proof

Step Hyp Ref Expression
1 swrdcl WWordVWsubstrMNWordV
2 wrdf WsubstrMNWordVWsubstrMN:0..^WsubstrMNV
3 1 2 syl WWordVWsubstrMN:0..^WsubstrMNV
4 3 3ad2ant1 WWordVM0NN0WWsubstrMN:0..^WsubstrMNV
5 swrdlen WWordVM0NN0WWsubstrMN=NM
6 5 oveq2d WWordVM0NN0W0..^WsubstrMN=0..^NM
7 6 feq2d WWordVM0NN0WWsubstrMN:0..^WsubstrMNVWsubstrMN:0..^NMV
8 4 7 mpbid WWordVM0NN0WWsubstrMN:0..^NMV