Metamath Proof Explorer


Theorem numclwwlk2lem3

Description: In a friendship graph, the size of the set of walks of length N starting with a fixed vertex X and ending not at this vertex equals the size of the set of all closed walks of length ( N + 2 ) starting at this vertex X and not having this vertex as last but 2 vertex. (Contributed by Alexander van der Vekens, 6-Oct-2018) (Revised by AV, 31-May-2021) (Proof shortened by AV, 3-Nov-2022)

Ref Expression
Hypotheses numclwwlk.v V=VtxG
numclwwlk.q Q=vV,nwnWWalksNG|w0=vlastSwv
numclwwlk.h H=vV,n2wvClWWalksNOnGn|wn2v
Assertion numclwwlk2lem3 GFriendGraphXVNXQN=XHN+2

Proof

Step Hyp Ref Expression
1 numclwwlk.v V=VtxG
2 numclwwlk.q Q=vV,nwnWWalksNG|w0=vlastSwv
3 numclwwlk.h H=vV,n2wvClWWalksNOnGn|wn2v
4 ovexd GFriendGraphXVNXHN+2V
5 eqid hXHN+2hprefixN+1=hXHN+2hprefixN+1
6 1 2 3 5 numclwlk2lem2f1o GFriendGraphXVNhXHN+2hprefixN+1:XHN+21-1 ontoXQN
7 4 6 hasheqf1od GFriendGraphXVNXHN+2=XQN
8 7 eqcomd GFriendGraphXVNXQN=XHN+2