Metamath Proof Explorer


Theorem upgrspthswlk

Description: The set of simple paths in a pseudograph, expressed as walk. Notice that this theorem would not hold for arbitrary hypergraphs, since a walk with distinct vertices does not need to be a trail: let E = { p_0, p_1, p_2 } be a hyperedge, then ( p_0, e, p_1, e, p_2 ) is walk with distinct vertices, but not with distinct edges. Therefore, E is not a trail and, by definition, also no path. (Contributed by AV, 11-Jan-2021) (Proof shortened by AV, 17-Jan-2021) (Proof shortened by AV, 30-Oct-2021)

Ref Expression
Assertion upgrspthswlk GUPGraphSPathsG=fp|fWalksGpFunp-1

Proof

Step Hyp Ref Expression
1 spthsfval SPathsG=fp|fTrailsGpFunp-1
2 istrl fTrailsGpfWalksGpFunf-1
3 upgrwlkdvde GUPGraphfWalksGpFunp-1Funf-1
4 3 3exp GUPGraphfWalksGpFunp-1Funf-1
5 4 com23 GUPGraphFunp-1fWalksGpFunf-1
6 5 imp GUPGraphFunp-1fWalksGpFunf-1
7 6 pm4.71d GUPGraphFunp-1fWalksGpfWalksGpFunf-1
8 2 7 bitr4id GUPGraphFunp-1fTrailsGpfWalksGp
9 8 ex GUPGraphFunp-1fTrailsGpfWalksGp
10 9 pm5.32rd GUPGraphfTrailsGpFunp-1fWalksGpFunp-1
11 10 opabbidv GUPGraphfp|fTrailsGpFunp-1=fp|fWalksGpFunp-1
12 1 11 eqtrid GUPGraphSPathsG=fp|fWalksGpFunp-1