Metamath Proof Explorer


Theorem wwlknlsw

Description: If a word represents a walk of a fixed length, then the last symbol of the word is the endvertex of the walk. (Contributed by AV, 8-Mar-2022)

Ref Expression
Assertion wwlknlsw WNWWalksNGWN=lastSW

Proof

Step Hyp Ref Expression
1 wwlknbp1 WNWWalksNGN0WWordVtxGW=N+1
2 lsw WWordVtxGlastSW=WW1
3 2 3ad2ant2 N0WWordVtxGW=N+1lastSW=WW1
4 oveq1 W=N+1W1=N+1-1
5 4 3ad2ant3 N0WWordVtxGW=N+1W1=N+1-1
6 nn0cn N0N
7 pncan1 NN+1-1=N
8 6 7 syl N0N+1-1=N
9 8 3ad2ant1 N0WWordVtxGW=N+1N+1-1=N
10 5 9 eqtrd N0WWordVtxGW=N+1W1=N
11 10 fveq2d N0WWordVtxGW=N+1WW1=WN
12 3 11 eqtr2d N0WWordVtxGW=N+1WN=lastSW
13 1 12 syl WNWWalksNGWN=lastSW