MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  usgr2pth Structured version   Visualization version   GIF version

Theorem usgr2pth 28033
Description: In a simple graph, there is a path of length 2 iff there are three distinct vertices so that one of them is connected to each of the two others by an edge. (Contributed by Alexander van der Vekens, 27-Jan-2018.) (Revised by AV, 5-Jun-2021.) (Proof shortened by AV, 31-Oct-2021.)
Hypotheses
Ref Expression
usgr2pthlem.v 𝑉 = (Vtx‘𝐺)
usgr2pthlem.i 𝐼 = (iEdg‘𝐺)
Assertion
Ref Expression
usgr2pth (𝐺 ∈ USGraph → ((𝐹(Paths‘𝐺)𝑃 ∧ (♯‘𝐹) = 2) ↔ (𝐹:(0..^2)–1-1→dom 𝐼𝑃:(0...2)–1-1𝑉 ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧})))))
Distinct variable groups:   𝑥,𝐹,𝑦,𝑧   𝑥,𝐺,𝑦,𝑧   𝑥,𝐼,𝑦,𝑧   𝑥,𝑃,𝑦,𝑧   𝑥,𝑉,𝑦,𝑧

Proof of Theorem usgr2pth
Dummy variable 𝑖 is distinct from all other variables.
StepHypRef Expression
1 usgr2pthspth 28031 . . . . 5 ((𝐺 ∈ USGraph ∧ (♯‘𝐹) = 2) → (𝐹(Paths‘𝐺)𝑃𝐹(SPaths‘𝐺)𝑃))
2 usgrupgr 27455 . . . . . . 7 (𝐺 ∈ USGraph → 𝐺 ∈ UPGraph)
32adantr 480 . . . . . 6 ((𝐺 ∈ USGraph ∧ (♯‘𝐹) = 2) → 𝐺 ∈ UPGraph)
4 isspth 27993 . . . . . . . . 9 (𝐹(SPaths‘𝐺)𝑃 ↔ (𝐹(Trails‘𝐺)𝑃 ∧ Fun 𝑃))
54a1i 11 . . . . . . . 8 (𝐺 ∈ UPGraph → (𝐹(SPaths‘𝐺)𝑃 ↔ (𝐹(Trails‘𝐺)𝑃 ∧ Fun 𝑃)))
6 usgr2pthlem.v . . . . . . . . . . 11 𝑉 = (Vtx‘𝐺)
7 usgr2pthlem.i . . . . . . . . . . 11 𝐼 = (iEdg‘𝐺)
86, 7upgrf1istrl 27973 . . . . . . . . . 10 (𝐺 ∈ UPGraph → (𝐹(Trails‘𝐺)𝑃 ↔ (𝐹:(0..^(♯‘𝐹))–1-1→dom 𝐼𝑃:(0...(♯‘𝐹))⟶𝑉 ∧ ∀𝑖 ∈ (0..^(♯‘𝐹))(𝐼‘(𝐹𝑖)) = {(𝑃𝑖), (𝑃‘(𝑖 + 1))})))
98anbi1d 629 . . . . . . . . 9 (𝐺 ∈ UPGraph → ((𝐹(Trails‘𝐺)𝑃 ∧ Fun 𝑃) ↔ ((𝐹:(0..^(♯‘𝐹))–1-1→dom 𝐼𝑃:(0...(♯‘𝐹))⟶𝑉 ∧ ∀𝑖 ∈ (0..^(♯‘𝐹))(𝐼‘(𝐹𝑖)) = {(𝑃𝑖), (𝑃‘(𝑖 + 1))}) ∧ Fun 𝑃)))
10 oveq2 7263 . . . . . . . . . . . . . . . . 17 ((♯‘𝐹) = 2 → (0..^(♯‘𝐹)) = (0..^2))
11 f1eq2 6650 . . . . . . . . . . . . . . . . 17 ((0..^(♯‘𝐹)) = (0..^2) → (𝐹:(0..^(♯‘𝐹))–1-1→dom 𝐼𝐹:(0..^2)–1-1→dom 𝐼))
1210, 11syl 17 . . . . . . . . . . . . . . . 16 ((♯‘𝐹) = 2 → (𝐹:(0..^(♯‘𝐹))–1-1→dom 𝐼𝐹:(0..^2)–1-1→dom 𝐼))
1312biimpd 228 . . . . . . . . . . . . . . 15 ((♯‘𝐹) = 2 → (𝐹:(0..^(♯‘𝐹))–1-1→dom 𝐼𝐹:(0..^2)–1-1→dom 𝐼))
1413adantl 481 . . . . . . . . . . . . . 14 ((𝐺 ∈ USGraph ∧ (♯‘𝐹) = 2) → (𝐹:(0..^(♯‘𝐹))–1-1→dom 𝐼𝐹:(0..^2)–1-1→dom 𝐼))
1514com12 32 . . . . . . . . . . . . 13 (𝐹:(0..^(♯‘𝐹))–1-1→dom 𝐼 → ((𝐺 ∈ USGraph ∧ (♯‘𝐹) = 2) → 𝐹:(0..^2)–1-1→dom 𝐼))
16153ad2ant1 1131 . . . . . . . . . . . 12 ((𝐹:(0..^(♯‘𝐹))–1-1→dom 𝐼𝑃:(0...(♯‘𝐹))⟶𝑉 ∧ ∀𝑖 ∈ (0..^(♯‘𝐹))(𝐼‘(𝐹𝑖)) = {(𝑃𝑖), (𝑃‘(𝑖 + 1))}) → ((𝐺 ∈ USGraph ∧ (♯‘𝐹) = 2) → 𝐹:(0..^2)–1-1→dom 𝐼))
1716ad2antrl 724 . . . . . . . . . . 11 ((𝐺 ∈ UPGraph ∧ ((𝐹:(0..^(♯‘𝐹))–1-1→dom 𝐼𝑃:(0...(♯‘𝐹))⟶𝑉 ∧ ∀𝑖 ∈ (0..^(♯‘𝐹))(𝐼‘(𝐹𝑖)) = {(𝑃𝑖), (𝑃‘(𝑖 + 1))}) ∧ Fun 𝑃)) → ((𝐺 ∈ USGraph ∧ (♯‘𝐹) = 2) → 𝐹:(0..^2)–1-1→dom 𝐼))
18 oveq2 7263 . . . . . . . . . . . . . . . . . 18 ((♯‘𝐹) = 2 → (0...(♯‘𝐹)) = (0...2))
1918feq2d 6570 . . . . . . . . . . . . . . . . 17 ((♯‘𝐹) = 2 → (𝑃:(0...(♯‘𝐹))⟶𝑉𝑃:(0...2)⟶𝑉))
20 df-f1 6423 . . . . . . . . . . . . . . . . . . 19 (𝑃:(0...2)–1-1𝑉 ↔ (𝑃:(0...2)⟶𝑉 ∧ Fun 𝑃))
2120simplbi2 500 . . . . . . . . . . . . . . . . . 18 (𝑃:(0...2)⟶𝑉 → (Fun 𝑃𝑃:(0...2)–1-1𝑉))
2221a1i 11 . . . . . . . . . . . . . . . . 17 ((♯‘𝐹) = 2 → (𝑃:(0...2)⟶𝑉 → (Fun 𝑃𝑃:(0...2)–1-1𝑉)))
2319, 22sylbid 239 . . . . . . . . . . . . . . . 16 ((♯‘𝐹) = 2 → (𝑃:(0...(♯‘𝐹))⟶𝑉 → (Fun 𝑃𝑃:(0...2)–1-1𝑉)))
2423adantl 481 . . . . . . . . . . . . . . 15 ((𝐺 ∈ USGraph ∧ (♯‘𝐹) = 2) → (𝑃:(0...(♯‘𝐹))⟶𝑉 → (Fun 𝑃𝑃:(0...2)–1-1𝑉)))
2524com3l 89 . . . . . . . . . . . . . 14 (𝑃:(0...(♯‘𝐹))⟶𝑉 → (Fun 𝑃 → ((𝐺 ∈ USGraph ∧ (♯‘𝐹) = 2) → 𝑃:(0...2)–1-1𝑉)))
26253ad2ant2 1132 . . . . . . . . . . . . 13 ((𝐹:(0..^(♯‘𝐹))–1-1→dom 𝐼𝑃:(0...(♯‘𝐹))⟶𝑉 ∧ ∀𝑖 ∈ (0..^(♯‘𝐹))(𝐼‘(𝐹𝑖)) = {(𝑃𝑖), (𝑃‘(𝑖 + 1))}) → (Fun 𝑃 → ((𝐺 ∈ USGraph ∧ (♯‘𝐹) = 2) → 𝑃:(0...2)–1-1𝑉)))
2726imp 406 . . . . . . . . . . . 12 (((𝐹:(0..^(♯‘𝐹))–1-1→dom 𝐼𝑃:(0...(♯‘𝐹))⟶𝑉 ∧ ∀𝑖 ∈ (0..^(♯‘𝐹))(𝐼‘(𝐹𝑖)) = {(𝑃𝑖), (𝑃‘(𝑖 + 1))}) ∧ Fun 𝑃) → ((𝐺 ∈ USGraph ∧ (♯‘𝐹) = 2) → 𝑃:(0...2)–1-1𝑉))
2827adantl 481 . . . . . . . . . . 11 ((𝐺 ∈ UPGraph ∧ ((𝐹:(0..^(♯‘𝐹))–1-1→dom 𝐼𝑃:(0...(♯‘𝐹))⟶𝑉 ∧ ∀𝑖 ∈ (0..^(♯‘𝐹))(𝐼‘(𝐹𝑖)) = {(𝑃𝑖), (𝑃‘(𝑖 + 1))}) ∧ Fun 𝑃)) → ((𝐺 ∈ USGraph ∧ (♯‘𝐹) = 2) → 𝑃:(0...2)–1-1𝑉))
296, 7usgr2pthlem 28032 . . . . . . . . . . . 12 ((𝐹:(0..^(♯‘𝐹))–1-1→dom 𝐼𝑃:(0...(♯‘𝐹))⟶𝑉 ∧ ∀𝑖 ∈ (0..^(♯‘𝐹))(𝐼‘(𝐹𝑖)) = {(𝑃𝑖), (𝑃‘(𝑖 + 1))}) → ((𝐺 ∈ USGraph ∧ (♯‘𝐹) = 2) → ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧}))))
3029ad2antrl 724 . . . . . . . . . . 11 ((𝐺 ∈ UPGraph ∧ ((𝐹:(0..^(♯‘𝐹))–1-1→dom 𝐼𝑃:(0...(♯‘𝐹))⟶𝑉 ∧ ∀𝑖 ∈ (0..^(♯‘𝐹))(𝐼‘(𝐹𝑖)) = {(𝑃𝑖), (𝑃‘(𝑖 + 1))}) ∧ Fun 𝑃)) → ((𝐺 ∈ USGraph ∧ (♯‘𝐹) = 2) → ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧}))))
3117, 28, 303jcad 1127 . . . . . . . . . 10 ((𝐺 ∈ UPGraph ∧ ((𝐹:(0..^(♯‘𝐹))–1-1→dom 𝐼𝑃:(0...(♯‘𝐹))⟶𝑉 ∧ ∀𝑖 ∈ (0..^(♯‘𝐹))(𝐼‘(𝐹𝑖)) = {(𝑃𝑖), (𝑃‘(𝑖 + 1))}) ∧ Fun 𝑃)) → ((𝐺 ∈ USGraph ∧ (♯‘𝐹) = 2) → (𝐹:(0..^2)–1-1→dom 𝐼𝑃:(0...2)–1-1𝑉 ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧})))))
3231ex 412 . . . . . . . . 9 (𝐺 ∈ UPGraph → (((𝐹:(0..^(♯‘𝐹))–1-1→dom 𝐼𝑃:(0...(♯‘𝐹))⟶𝑉 ∧ ∀𝑖 ∈ (0..^(♯‘𝐹))(𝐼‘(𝐹𝑖)) = {(𝑃𝑖), (𝑃‘(𝑖 + 1))}) ∧ Fun 𝑃) → ((𝐺 ∈ USGraph ∧ (♯‘𝐹) = 2) → (𝐹:(0..^2)–1-1→dom 𝐼𝑃:(0...2)–1-1𝑉 ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧}))))))
339, 32sylbid 239 . . . . . . . 8 (𝐺 ∈ UPGraph → ((𝐹(Trails‘𝐺)𝑃 ∧ Fun 𝑃) → ((𝐺 ∈ USGraph ∧ (♯‘𝐹) = 2) → (𝐹:(0..^2)–1-1→dom 𝐼𝑃:(0...2)–1-1𝑉 ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧}))))))
345, 33sylbid 239 . . . . . . 7 (𝐺 ∈ UPGraph → (𝐹(SPaths‘𝐺)𝑃 → ((𝐺 ∈ USGraph ∧ (♯‘𝐹) = 2) → (𝐹:(0..^2)–1-1→dom 𝐼𝑃:(0...2)–1-1𝑉 ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧}))))))
3534com23 86 . . . . . 6 (𝐺 ∈ UPGraph → ((𝐺 ∈ USGraph ∧ (♯‘𝐹) = 2) → (𝐹(SPaths‘𝐺)𝑃 → (𝐹:(0..^2)–1-1→dom 𝐼𝑃:(0...2)–1-1𝑉 ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧}))))))
363, 35mpcom 38 . . . . 5 ((𝐺 ∈ USGraph ∧ (♯‘𝐹) = 2) → (𝐹(SPaths‘𝐺)𝑃 → (𝐹:(0..^2)–1-1→dom 𝐼𝑃:(0...2)–1-1𝑉 ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧})))))
371, 36sylbid 239 . . . 4 ((𝐺 ∈ USGraph ∧ (♯‘𝐹) = 2) → (𝐹(Paths‘𝐺)𝑃 → (𝐹:(0..^2)–1-1→dom 𝐼𝑃:(0...2)–1-1𝑉 ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧})))))
3837ex 412 . . 3 (𝐺 ∈ USGraph → ((♯‘𝐹) = 2 → (𝐹(Paths‘𝐺)𝑃 → (𝐹:(0..^2)–1-1→dom 𝐼𝑃:(0...2)–1-1𝑉 ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧}))))))
3938impcomd 411 . 2 (𝐺 ∈ USGraph → ((𝐹(Paths‘𝐺)𝑃 ∧ (♯‘𝐹) = 2) → (𝐹:(0..^2)–1-1→dom 𝐼𝑃:(0...2)–1-1𝑉 ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧})))))
40 2nn0 12180 . . . . . 6 2 ∈ ℕ0
41 f1f 6654 . . . . . 6 (𝐹:(0..^2)–1-1→dom 𝐼𝐹:(0..^2)⟶dom 𝐼)
42 fnfzo0hash 14090 . . . . . 6 ((2 ∈ ℕ0𝐹:(0..^2)⟶dom 𝐼) → (♯‘𝐹) = 2)
4340, 41, 42sylancr 586 . . . . 5 (𝐹:(0..^2)–1-1→dom 𝐼 → (♯‘𝐹) = 2)
44 oveq2 7263 . . . . . . . . . . . . . . . . . 18 (2 = (♯‘𝐹) → (0..^2) = (0..^(♯‘𝐹)))
4544eqcoms 2746 . . . . . . . . . . . . . . . . 17 ((♯‘𝐹) = 2 → (0..^2) = (0..^(♯‘𝐹)))
46 f1eq2 6650 . . . . . . . . . . . . . . . . 17 ((0..^2) = (0..^(♯‘𝐹)) → (𝐹:(0..^2)–1-1→dom 𝐼𝐹:(0..^(♯‘𝐹))–1-1→dom 𝐼))
4745, 46syl 17 . . . . . . . . . . . . . . . 16 ((♯‘𝐹) = 2 → (𝐹:(0..^2)–1-1→dom 𝐼𝐹:(0..^(♯‘𝐹))–1-1→dom 𝐼))
4847biimpd 228 . . . . . . . . . . . . . . 15 ((♯‘𝐹) = 2 → (𝐹:(0..^2)–1-1→dom 𝐼𝐹:(0..^(♯‘𝐹))–1-1→dom 𝐼))
4948imp 406 . . . . . . . . . . . . . 14 (((♯‘𝐹) = 2 ∧ 𝐹:(0..^2)–1-1→dom 𝐼) → 𝐹:(0..^(♯‘𝐹))–1-1→dom 𝐼)
5049adantr 480 . . . . . . . . . . . . 13 ((((♯‘𝐹) = 2 ∧ 𝐹:(0..^2)–1-1→dom 𝐼) ∧ 𝑃:(0...2)–1-1𝑉) → 𝐹:(0..^(♯‘𝐹))–1-1→dom 𝐼)
5150ad2antrr 722 . . . . . . . . . . . 12 ((((((♯‘𝐹) = 2 ∧ 𝐹:(0..^2)–1-1→dom 𝐼) ∧ 𝑃:(0...2)–1-1𝑉) ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧}))) ∧ 𝐺 ∈ USGraph) → 𝐹:(0..^(♯‘𝐹))–1-1→dom 𝐼)
52 f1f 6654 . . . . . . . . . . . . . . 15 (𝑃:(0...2)–1-1𝑉𝑃:(0...2)⟶𝑉)
53 oveq2 7263 . . . . . . . . . . . . . . . . . 18 (2 = (♯‘𝐹) → (0...2) = (0...(♯‘𝐹)))
5453eqcoms 2746 . . . . . . . . . . . . . . . . 17 ((♯‘𝐹) = 2 → (0...2) = (0...(♯‘𝐹)))
5554adantr 480 . . . . . . . . . . . . . . . 16 (((♯‘𝐹) = 2 ∧ 𝐹:(0..^2)–1-1→dom 𝐼) → (0...2) = (0...(♯‘𝐹)))
5655feq2d 6570 . . . . . . . . . . . . . . 15 (((♯‘𝐹) = 2 ∧ 𝐹:(0..^2)–1-1→dom 𝐼) → (𝑃:(0...2)⟶𝑉𝑃:(0...(♯‘𝐹))⟶𝑉))
5752, 56syl5ib 243 . . . . . . . . . . . . . 14 (((♯‘𝐹) = 2 ∧ 𝐹:(0..^2)–1-1→dom 𝐼) → (𝑃:(0...2)–1-1𝑉𝑃:(0...(♯‘𝐹))⟶𝑉))
5857imp 406 . . . . . . . . . . . . 13 ((((♯‘𝐹) = 2 ∧ 𝐹:(0..^2)–1-1→dom 𝐼) ∧ 𝑃:(0...2)–1-1𝑉) → 𝑃:(0...(♯‘𝐹))⟶𝑉)
5958ad2antrr 722 . . . . . . . . . . . 12 ((((((♯‘𝐹) = 2 ∧ 𝐹:(0..^2)–1-1→dom 𝐼) ∧ 𝑃:(0...2)–1-1𝑉) ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧}))) ∧ 𝐺 ∈ USGraph) → 𝑃:(0...(♯‘𝐹))⟶𝑉)
60 eqcom 2745 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑃‘0) = 𝑥𝑥 = (𝑃‘0))
6160biimpi 215 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑃‘0) = 𝑥𝑥 = (𝑃‘0))
62613ad2ant1 1131 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) → 𝑥 = (𝑃‘0))
63 eqcom 2745 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑃‘1) = 𝑦𝑦 = (𝑃‘1))
6463biimpi 215 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑃‘1) = 𝑦𝑦 = (𝑃‘1))
65643ad2ant2 1132 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) → 𝑦 = (𝑃‘1))
6662, 65preq12d 4674 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) → {𝑥, 𝑦} = {(𝑃‘0), (𝑃‘1)})
6766eqeq2d 2749 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) → ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ↔ (𝐼‘(𝐹‘0)) = {(𝑃‘0), (𝑃‘1)}))
6867biimpcd 248 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} → (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) → (𝐼‘(𝐹‘0)) = {(𝑃‘0), (𝑃‘1)}))
6968adantr 480 . . . . . . . . . . . . . . . . . . . . . 22 (((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧}) → (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) → (𝐼‘(𝐹‘0)) = {(𝑃‘0), (𝑃‘1)}))
7069impcom 407 . . . . . . . . . . . . . . . . . . . . 21 ((((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧})) → (𝐼‘(𝐹‘0)) = {(𝑃‘0), (𝑃‘1)})
71 eqcom 2745 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑃‘2) = 𝑧𝑧 = (𝑃‘2))
7271biimpi 215 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑃‘2) = 𝑧𝑧 = (𝑃‘2))
73723ad2ant3 1133 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) → 𝑧 = (𝑃‘2))
7465, 73preq12d 4674 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) → {𝑦, 𝑧} = {(𝑃‘1), (𝑃‘2)})
7574eqeq2d 2749 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) → ((𝐼‘(𝐹‘1)) = {𝑦, 𝑧} ↔ (𝐼‘(𝐹‘1)) = {(𝑃‘1), (𝑃‘2)}))
7675biimpcd 248 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝐼‘(𝐹‘1)) = {𝑦, 𝑧} → (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) → (𝐼‘(𝐹‘1)) = {(𝑃‘1), (𝑃‘2)}))
7776adantl 481 . . . . . . . . . . . . . . . . . . . . . 22 (((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧}) → (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) → (𝐼‘(𝐹‘1)) = {(𝑃‘1), (𝑃‘2)}))
7877impcom 407 . . . . . . . . . . . . . . . . . . . . 21 ((((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧})) → (𝐼‘(𝐹‘1)) = {(𝑃‘1), (𝑃‘2)})
7970, 78jca 511 . . . . . . . . . . . . . . . . . . . 20 ((((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧})) → ((𝐼‘(𝐹‘0)) = {(𝑃‘0), (𝑃‘1)} ∧ (𝐼‘(𝐹‘1)) = {(𝑃‘1), (𝑃‘2)}))
8079rexlimivw 3210 . . . . . . . . . . . . . . . . . . 19 (∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧})) → ((𝐼‘(𝐹‘0)) = {(𝑃‘0), (𝑃‘1)} ∧ (𝐼‘(𝐹‘1)) = {(𝑃‘1), (𝑃‘2)}))
8180rexlimivw 3210 . . . . . . . . . . . . . . . . . 18 (∃𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧})) → ((𝐼‘(𝐹‘0)) = {(𝑃‘0), (𝑃‘1)} ∧ (𝐼‘(𝐹‘1)) = {(𝑃‘1), (𝑃‘2)}))
8281rexlimivw 3210 . . . . . . . . . . . . . . . . 17 (∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧})) → ((𝐼‘(𝐹‘0)) = {(𝑃‘0), (𝑃‘1)} ∧ (𝐼‘(𝐹‘1)) = {(𝑃‘1), (𝑃‘2)}))
8382a1i13 27 . . . . . . . . . . . . . . . 16 ((♯‘𝐹) = 2 → (∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧})) → (𝐺 ∈ USGraph → ((𝐼‘(𝐹‘0)) = {(𝑃‘0), (𝑃‘1)} ∧ (𝐼‘(𝐹‘1)) = {(𝑃‘1), (𝑃‘2)}))))
84 fzo0to2pr 13400 . . . . . . . . . . . . . . . . . . . 20 (0..^2) = {0, 1}
8510, 84eqtrdi 2795 . . . . . . . . . . . . . . . . . . 19 ((♯‘𝐹) = 2 → (0..^(♯‘𝐹)) = {0, 1})
8685raleqdv 3339 . . . . . . . . . . . . . . . . . 18 ((♯‘𝐹) = 2 → (∀𝑖 ∈ (0..^(♯‘𝐹))(𝐼‘(𝐹𝑖)) = {(𝑃𝑖), (𝑃‘(𝑖 + 1))} ↔ ∀𝑖 ∈ {0, 1} (𝐼‘(𝐹𝑖)) = {(𝑃𝑖), (𝑃‘(𝑖 + 1))}))
87 2wlklem 27937 . . . . . . . . . . . . . . . . . 18 (∀𝑖 ∈ {0, 1} (𝐼‘(𝐹𝑖)) = {(𝑃𝑖), (𝑃‘(𝑖 + 1))} ↔ ((𝐼‘(𝐹‘0)) = {(𝑃‘0), (𝑃‘1)} ∧ (𝐼‘(𝐹‘1)) = {(𝑃‘1), (𝑃‘2)}))
8886, 87bitrdi 286 . . . . . . . . . . . . . . . . 17 ((♯‘𝐹) = 2 → (∀𝑖 ∈ (0..^(♯‘𝐹))(𝐼‘(𝐹𝑖)) = {(𝑃𝑖), (𝑃‘(𝑖 + 1))} ↔ ((𝐼‘(𝐹‘0)) = {(𝑃‘0), (𝑃‘1)} ∧ (𝐼‘(𝐹‘1)) = {(𝑃‘1), (𝑃‘2)})))
8988imbi2d 340 . . . . . . . . . . . . . . . 16 ((♯‘𝐹) = 2 → ((𝐺 ∈ USGraph → ∀𝑖 ∈ (0..^(♯‘𝐹))(𝐼‘(𝐹𝑖)) = {(𝑃𝑖), (𝑃‘(𝑖 + 1))}) ↔ (𝐺 ∈ USGraph → ((𝐼‘(𝐹‘0)) = {(𝑃‘0), (𝑃‘1)} ∧ (𝐼‘(𝐹‘1)) = {(𝑃‘1), (𝑃‘2)}))))
9083, 89sylibrd 258 . . . . . . . . . . . . . . 15 ((♯‘𝐹) = 2 → (∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧})) → (𝐺 ∈ USGraph → ∀𝑖 ∈ (0..^(♯‘𝐹))(𝐼‘(𝐹𝑖)) = {(𝑃𝑖), (𝑃‘(𝑖 + 1))})))
9190ad2antrr 722 . . . . . . . . . . . . . 14 ((((♯‘𝐹) = 2 ∧ 𝐹:(0..^2)–1-1→dom 𝐼) ∧ 𝑃:(0...2)–1-1𝑉) → (∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧})) → (𝐺 ∈ USGraph → ∀𝑖 ∈ (0..^(♯‘𝐹))(𝐼‘(𝐹𝑖)) = {(𝑃𝑖), (𝑃‘(𝑖 + 1))})))
9291imp 406 . . . . . . . . . . . . 13 (((((♯‘𝐹) = 2 ∧ 𝐹:(0..^2)–1-1→dom 𝐼) ∧ 𝑃:(0...2)–1-1𝑉) ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧}))) → (𝐺 ∈ USGraph → ∀𝑖 ∈ (0..^(♯‘𝐹))(𝐼‘(𝐹𝑖)) = {(𝑃𝑖), (𝑃‘(𝑖 + 1))}))
9392imp 406 . . . . . . . . . . . 12 ((((((♯‘𝐹) = 2 ∧ 𝐹:(0..^2)–1-1→dom 𝐼) ∧ 𝑃:(0...2)–1-1𝑉) ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧}))) ∧ 𝐺 ∈ USGraph) → ∀𝑖 ∈ (0..^(♯‘𝐹))(𝐼‘(𝐹𝑖)) = {(𝑃𝑖), (𝑃‘(𝑖 + 1))})
9451, 59, 933jca 1126 . . . . . . . . . . 11 ((((((♯‘𝐹) = 2 ∧ 𝐹:(0..^2)–1-1→dom 𝐼) ∧ 𝑃:(0...2)–1-1𝑉) ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧}))) ∧ 𝐺 ∈ USGraph) → (𝐹:(0..^(♯‘𝐹))–1-1→dom 𝐼𝑃:(0...(♯‘𝐹))⟶𝑉 ∧ ∀𝑖 ∈ (0..^(♯‘𝐹))(𝐼‘(𝐹𝑖)) = {(𝑃𝑖), (𝑃‘(𝑖 + 1))}))
9520simprbi 496 . . . . . . . . . . . . 13 (𝑃:(0...2)–1-1𝑉 → Fun 𝑃)
9695adantl 481 . . . . . . . . . . . 12 ((((♯‘𝐹) = 2 ∧ 𝐹:(0..^2)–1-1→dom 𝐼) ∧ 𝑃:(0...2)–1-1𝑉) → Fun 𝑃)
9796ad2antrr 722 . . . . . . . . . . 11 ((((((♯‘𝐹) = 2 ∧ 𝐹:(0..^2)–1-1→dom 𝐼) ∧ 𝑃:(0...2)–1-1𝑉) ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧}))) ∧ 𝐺 ∈ USGraph) → Fun 𝑃)
9894, 97jca 511 . . . . . . . . . 10 ((((((♯‘𝐹) = 2 ∧ 𝐹:(0..^2)–1-1→dom 𝐼) ∧ 𝑃:(0...2)–1-1𝑉) ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧}))) ∧ 𝐺 ∈ USGraph) → ((𝐹:(0..^(♯‘𝐹))–1-1→dom 𝐼𝑃:(0...(♯‘𝐹))⟶𝑉 ∧ ∀𝑖 ∈ (0..^(♯‘𝐹))(𝐼‘(𝐹𝑖)) = {(𝑃𝑖), (𝑃‘(𝑖 + 1))}) ∧ Fun 𝑃))
995, 9bitrd 278 . . . . . . . . . . . 12 (𝐺 ∈ UPGraph → (𝐹(SPaths‘𝐺)𝑃 ↔ ((𝐹:(0..^(♯‘𝐹))–1-1→dom 𝐼𝑃:(0...(♯‘𝐹))⟶𝑉 ∧ ∀𝑖 ∈ (0..^(♯‘𝐹))(𝐼‘(𝐹𝑖)) = {(𝑃𝑖), (𝑃‘(𝑖 + 1))}) ∧ Fun 𝑃)))
1002, 99syl 17 . . . . . . . . . . 11 (𝐺 ∈ USGraph → (𝐹(SPaths‘𝐺)𝑃 ↔ ((𝐹:(0..^(♯‘𝐹))–1-1→dom 𝐼𝑃:(0...(♯‘𝐹))⟶𝑉 ∧ ∀𝑖 ∈ (0..^(♯‘𝐹))(𝐼‘(𝐹𝑖)) = {(𝑃𝑖), (𝑃‘(𝑖 + 1))}) ∧ Fun 𝑃)))
101100adantl 481 . . . . . . . . . 10 ((((((♯‘𝐹) = 2 ∧ 𝐹:(0..^2)–1-1→dom 𝐼) ∧ 𝑃:(0...2)–1-1𝑉) ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧}))) ∧ 𝐺 ∈ USGraph) → (𝐹(SPaths‘𝐺)𝑃 ↔ ((𝐹:(0..^(♯‘𝐹))–1-1→dom 𝐼𝑃:(0...(♯‘𝐹))⟶𝑉 ∧ ∀𝑖 ∈ (0..^(♯‘𝐹))(𝐼‘(𝐹𝑖)) = {(𝑃𝑖), (𝑃‘(𝑖 + 1))}) ∧ Fun 𝑃)))
10298, 101mpbird 256 . . . . . . . . 9 ((((((♯‘𝐹) = 2 ∧ 𝐹:(0..^2)–1-1→dom 𝐼) ∧ 𝑃:(0...2)–1-1𝑉) ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧}))) ∧ 𝐺 ∈ USGraph) → 𝐹(SPaths‘𝐺)𝑃)
103 simpr 484 . . . . . . . . . 10 ((((((♯‘𝐹) = 2 ∧ 𝐹:(0..^2)–1-1→dom 𝐼) ∧ 𝑃:(0...2)–1-1𝑉) ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧}))) ∧ 𝐺 ∈ USGraph) → 𝐺 ∈ USGraph)
104 simp-4l 779 . . . . . . . . . 10 ((((((♯‘𝐹) = 2 ∧ 𝐹:(0..^2)–1-1→dom 𝐼) ∧ 𝑃:(0...2)–1-1𝑉) ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧}))) ∧ 𝐺 ∈ USGraph) → (♯‘𝐹) = 2)
105103, 104, 1syl2anc 583 . . . . . . . . 9 ((((((♯‘𝐹) = 2 ∧ 𝐹:(0..^2)–1-1→dom 𝐼) ∧ 𝑃:(0...2)–1-1𝑉) ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧}))) ∧ 𝐺 ∈ USGraph) → (𝐹(Paths‘𝐺)𝑃𝐹(SPaths‘𝐺)𝑃))
106102, 105mpbird 256 . . . . . . . 8 ((((((♯‘𝐹) = 2 ∧ 𝐹:(0..^2)–1-1→dom 𝐼) ∧ 𝑃:(0...2)–1-1𝑉) ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧}))) ∧ 𝐺 ∈ USGraph) → 𝐹(Paths‘𝐺)𝑃)
107106, 104jca 511 . . . . . . 7 ((((((♯‘𝐹) = 2 ∧ 𝐹:(0..^2)–1-1→dom 𝐼) ∧ 𝑃:(0...2)–1-1𝑉) ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧}))) ∧ 𝐺 ∈ USGraph) → (𝐹(Paths‘𝐺)𝑃 ∧ (♯‘𝐹) = 2))
108107ex 412 . . . . . 6 (((((♯‘𝐹) = 2 ∧ 𝐹:(0..^2)–1-1→dom 𝐼) ∧ 𝑃:(0...2)–1-1𝑉) ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧}))) → (𝐺 ∈ USGraph → (𝐹(Paths‘𝐺)𝑃 ∧ (♯‘𝐹) = 2)))
109108exp41 434 . . . . 5 ((♯‘𝐹) = 2 → (𝐹:(0..^2)–1-1→dom 𝐼 → (𝑃:(0...2)–1-1𝑉 → (∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧})) → (𝐺 ∈ USGraph → (𝐹(Paths‘𝐺)𝑃 ∧ (♯‘𝐹) = 2))))))
11043, 109mpcom 38 . . . 4 (𝐹:(0..^2)–1-1→dom 𝐼 → (𝑃:(0...2)–1-1𝑉 → (∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧})) → (𝐺 ∈ USGraph → (𝐹(Paths‘𝐺)𝑃 ∧ (♯‘𝐹) = 2)))))
1111103imp 1109 . . 3 ((𝐹:(0..^2)–1-1→dom 𝐼𝑃:(0...2)–1-1𝑉 ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧}))) → (𝐺 ∈ USGraph → (𝐹(Paths‘𝐺)𝑃 ∧ (♯‘𝐹) = 2)))
112111com12 32 . 2 (𝐺 ∈ USGraph → ((𝐹:(0..^2)–1-1→dom 𝐼𝑃:(0...2)–1-1𝑉 ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧}))) → (𝐹(Paths‘𝐺)𝑃 ∧ (♯‘𝐹) = 2)))
11339, 112impbid 211 1 (𝐺 ∈ USGraph → ((𝐹(Paths‘𝐺)𝑃 ∧ (♯‘𝐹) = 2) ↔ (𝐹:(0..^2)–1-1→dom 𝐼𝑃:(0...2)–1-1𝑉 ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑦 ∧ (𝑃‘2) = 𝑧) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑦} ∧ (𝐼‘(𝐹‘1)) = {𝑦, 𝑧})))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  w3a 1085   = wceq 1539  wcel 2108  wral 3063  wrex 3064  cdif 3880  {csn 4558  {cpr 4560   class class class wbr 5070  ccnv 5579  dom cdm 5580  Fun wfun 6412  wf 6414  1-1wf1 6415  cfv 6418  (class class class)co 7255  0cc0 10802  1c1 10803   + caddc 10805  2c2 11958  0cn0 12163  ...cfz 13168  ..^cfzo 13311  chash 13972  Vtxcvtx 27269  iEdgciedg 27270  UPGraphcupgr 27353  USGraphcusgr 27422  Trailsctrls 27960  Pathscpths 27981  SPathscspths 27982
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-ifp 1060  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-int 4877  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-1st 7804  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-1o 8267  df-2o 8268  df-oadd 8271  df-er 8456  df-map 8575  df-pm 8576  df-en 8692  df-dom 8693  df-sdom 8694  df-fin 8695  df-dju 9590  df-card 9628  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-nn 11904  df-2 11966  df-3 11967  df-n0 12164  df-xnn0 12236  df-z 12250  df-uz 12512  df-fz 13169  df-fzo 13312  df-hash 13973  df-word 14146  df-concat 14202  df-s1 14229  df-s2 14489  df-s3 14490  df-edg 27321  df-uhgr 27331  df-upgr 27355  df-umgr 27356  df-uspgr 27423  df-usgr 27424  df-wlks 27869  df-wlkson 27870  df-trls 27962  df-trlson 27963  df-pths 27985  df-spths 27986  df-pthson 27987  df-spthson 27988
This theorem is referenced by:  usgr2pth0  28034
  Copyright terms: Public domain W3C validator