Metamath Proof Explorer


Theorem pthd

Description: Two words representing a trail which also represent a path in a graph. (Contributed by AV, 10-Feb-2021) (Proof shortened by AV, 30-Oct-2021)

Ref Expression
Hypotheses pthd.p φPWordV
pthd.r R=P1
pthd.s φi0..^Pj1..^RijPiPj
pthd.f F=R
pthd.t φFTrailsGP
Assertion pthd φFPathsGP

Proof

Step Hyp Ref Expression
1 pthd.p φPWordV
2 pthd.r R=P1
3 pthd.s φi0..^Pj1..^RijPiPj
4 pthd.f F=R
5 pthd.t φFTrailsGP
6 4 2 eqtri F=P1
7 4 oveq2i 1..^F=1..^R
8 7 raleqi j1..^FijPiPjj1..^RijPiPj
9 8 ralbii i0..^Pj1..^FijPiPji0..^Pj1..^RijPiPj
10 3 9 sylibr φi0..^Pj1..^FijPiPj
11 1 6 10 pthdlem1 φFunP1..^F-1
12 1 6 10 pthdlem2 φP0FP1..^F=
13 ispth FPathsGPFTrailsGPFunP1..^F-1P0FP1..^F=
14 5 11 12 13 syl3anbrc φFPathsGP