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

Theorem usgr2pth0 26842
 Description: In a simply 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.)
Hypotheses
Ref Expression
usgr2pthlem.v 𝑉 = (Vtx‘𝐺)
usgr2pthlem.i 𝐼 = (iEdg‘𝐺)
Assertion
Ref Expression
usgr2pth0 (𝐺 ∈ USGraph → ((𝐹(Paths‘𝐺)𝑃 ∧ (♯‘𝐹) = 2) ↔ (𝐹:(0..^2)–1-1→dom 𝐼𝑃:(0...2)–1-1𝑉 ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})))))
Distinct variable groups:   𝑥,𝐹,𝑦,𝑧   𝑥,𝐺,𝑦,𝑧   𝑥,𝐼,𝑦,𝑧   𝑥,𝑃,𝑦,𝑧   𝑥,𝑉,𝑦,𝑧

Proof of Theorem usgr2pth0
StepHypRef Expression
1 usgr2pthlem.v . . 3 𝑉 = (Vtx‘𝐺)
2 usgr2pthlem.i . . 3 𝐼 = (iEdg‘𝐺)
31, 2usgr2pth 26841 . 2 (𝐺 ∈ USGraph → ((𝐹(Paths‘𝐺)𝑃 ∧ (♯‘𝐹) = 2) ↔ (𝐹:(0..^2)–1-1→dom 𝐼𝑃:(0...2)–1-1𝑉 ∧ ∃𝑥𝑉𝑧 ∈ (𝑉 ∖ {𝑥})∃𝑦 ∈ (𝑉 ∖ {𝑥, 𝑧})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})))))
4 r19.42v 3218 . . . . . . . . 9 (∃𝑦 ∈ (𝑉 ∖ {𝑥, 𝑧})(𝑧𝑥 ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦}))) ↔ (𝑧𝑥 ∧ ∃𝑦 ∈ (𝑉 ∖ {𝑥, 𝑧})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦}))))
5 rexdifpr 4338 . . . . . . . . 9 (∃𝑦 ∈ (𝑉 ∖ {𝑥, 𝑧})(𝑧𝑥 ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦}))) ↔ ∃𝑦𝑉 (𝑦𝑥𝑦𝑧 ∧ (𝑧𝑥 ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})))))
64, 5bitr3i 266 . . . . . . . 8 ((𝑧𝑥 ∧ ∃𝑦 ∈ (𝑉 ∖ {𝑥, 𝑧})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦}))) ↔ ∃𝑦𝑉 (𝑦𝑥𝑦𝑧 ∧ (𝑧𝑥 ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})))))
76rexbii 3167 . . . . . . 7 (∃𝑧𝑉 (𝑧𝑥 ∧ ∃𝑦 ∈ (𝑉 ∖ {𝑥, 𝑧})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦}))) ↔ ∃𝑧𝑉𝑦𝑉 (𝑦𝑥𝑦𝑧 ∧ (𝑧𝑥 ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})))))
8 rexcom 3225 . . . . . . 7 (∃𝑧𝑉𝑦𝑉 (𝑦𝑥𝑦𝑧 ∧ (𝑧𝑥 ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})))) ↔ ∃𝑦𝑉𝑧𝑉 (𝑦𝑥𝑦𝑧 ∧ (𝑧𝑥 ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})))))
9 df-3an 1074 . . . . . . . . . . 11 ((𝑦𝑥𝑦𝑧 ∧ (𝑧𝑥 ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})))) ↔ ((𝑦𝑥𝑦𝑧) ∧ (𝑧𝑥 ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})))))
10 anass 684 . . . . . . . . . . 11 ((((𝑦𝑥𝑦𝑧) ∧ 𝑧𝑥) ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦}))) ↔ ((𝑦𝑥𝑦𝑧) ∧ (𝑧𝑥 ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})))))
11 anass 684 . . . . . . . . . . . 12 ((((𝑧𝑥𝑧𝑦) ∧ 𝑦𝑥) ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦}))) ↔ ((𝑧𝑥𝑧𝑦) ∧ (𝑦𝑥 ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})))))
12 anass 684 . . . . . . . . . . . . . 14 (((𝑦𝑥𝑦𝑧) ∧ 𝑧𝑥) ↔ (𝑦𝑥 ∧ (𝑦𝑧𝑧𝑥)))
13 ancom 465 . . . . . . . . . . . . . 14 ((𝑦𝑥 ∧ (𝑦𝑧𝑧𝑥)) ↔ ((𝑦𝑧𝑧𝑥) ∧ 𝑦𝑥))
14 necom 2973 . . . . . . . . . . . . . . . 16 (𝑦𝑧𝑧𝑦)
1514anbi2ci 734 . . . . . . . . . . . . . . 15 ((𝑦𝑧𝑧𝑥) ↔ (𝑧𝑥𝑧𝑦))
1615anbi1i 733 . . . . . . . . . . . . . 14 (((𝑦𝑧𝑧𝑥) ∧ 𝑦𝑥) ↔ ((𝑧𝑥𝑧𝑦) ∧ 𝑦𝑥))
1712, 13, 163bitri 286 . . . . . . . . . . . . 13 (((𝑦𝑥𝑦𝑧) ∧ 𝑧𝑥) ↔ ((𝑧𝑥𝑧𝑦) ∧ 𝑦𝑥))
1817anbi1i 733 . . . . . . . . . . . 12 ((((𝑦𝑥𝑦𝑧) ∧ 𝑧𝑥) ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦}))) ↔ (((𝑧𝑥𝑧𝑦) ∧ 𝑦𝑥) ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦}))))
19 df-3an 1074 . . . . . . . . . . . 12 ((𝑧𝑥𝑧𝑦 ∧ (𝑦𝑥 ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})))) ↔ ((𝑧𝑥𝑧𝑦) ∧ (𝑦𝑥 ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})))))
2011, 18, 193bitr4i 292 . . . . . . . . . . 11 ((((𝑦𝑥𝑦𝑧) ∧ 𝑧𝑥) ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦}))) ↔ (𝑧𝑥𝑧𝑦 ∧ (𝑦𝑥 ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})))))
219, 10, 203bitr2i 288 . . . . . . . . . 10 ((𝑦𝑥𝑦𝑧 ∧ (𝑧𝑥 ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})))) ↔ (𝑧𝑥𝑧𝑦 ∧ (𝑦𝑥 ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})))))
2221rexbii 3167 . . . . . . . . 9 (∃𝑧𝑉 (𝑦𝑥𝑦𝑧 ∧ (𝑧𝑥 ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})))) ↔ ∃𝑧𝑉 (𝑧𝑥𝑧𝑦 ∧ (𝑦𝑥 ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})))))
23 rexdifpr 4338 . . . . . . . . 9 (∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(𝑦𝑥 ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦}))) ↔ ∃𝑧𝑉 (𝑧𝑥𝑧𝑦 ∧ (𝑦𝑥 ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})))))
24 r19.42v 3218 . . . . . . . . 9 (∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(𝑦𝑥 ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦}))) ↔ (𝑦𝑥 ∧ ∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦}))))
2522, 23, 243bitr2i 288 . . . . . . . 8 (∃𝑧𝑉 (𝑦𝑥𝑦𝑧 ∧ (𝑧𝑥 ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})))) ↔ (𝑦𝑥 ∧ ∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦}))))
2625rexbii 3167 . . . . . . 7 (∃𝑦𝑉𝑧𝑉 (𝑦𝑥𝑦𝑧 ∧ (𝑧𝑥 ∧ (((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})))) ↔ ∃𝑦𝑉 (𝑦𝑥 ∧ ∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦}))))
277, 8, 263bitri 286 . . . . . 6 (∃𝑧𝑉 (𝑧𝑥 ∧ ∃𝑦 ∈ (𝑉 ∖ {𝑥, 𝑧})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦}))) ↔ ∃𝑦𝑉 (𝑦𝑥 ∧ ∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦}))))
28 rexdifsn 4457 . . . . . 6 (∃𝑧 ∈ (𝑉 ∖ {𝑥})∃𝑦 ∈ (𝑉 ∖ {𝑥, 𝑧})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})) ↔ ∃𝑧𝑉 (𝑧𝑥 ∧ ∃𝑦 ∈ (𝑉 ∖ {𝑥, 𝑧})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦}))))
29 rexdifsn 4457 . . . . . 6 (∃𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})) ↔ ∃𝑦𝑉 (𝑦𝑥 ∧ ∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦}))))
3027, 28, 293bitr4i 292 . . . . 5 (∃𝑧 ∈ (𝑉 ∖ {𝑥})∃𝑦 ∈ (𝑉 ∖ {𝑥, 𝑧})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})) ↔ ∃𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})))
3130a1i 11 . . . 4 ((𝐺 ∈ USGraph ∧ 𝑥𝑉) → (∃𝑧 ∈ (𝑉 ∖ {𝑥})∃𝑦 ∈ (𝑉 ∖ {𝑥, 𝑧})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})) ↔ ∃𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦}))))
3231rexbidva 3175 . . 3 (𝐺 ∈ USGraph → (∃𝑥𝑉𝑧 ∈ (𝑉 ∖ {𝑥})∃𝑦 ∈ (𝑉 ∖ {𝑥, 𝑧})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})) ↔ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦}))))
33323anbi3d 1542 . 2 (𝐺 ∈ USGraph → ((𝐹:(0..^2)–1-1→dom 𝐼𝑃:(0...2)–1-1𝑉 ∧ ∃𝑥𝑉𝑧 ∈ (𝑉 ∖ {𝑥})∃𝑦 ∈ (𝑉 ∖ {𝑥, 𝑧})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦}))) ↔ (𝐹:(0..^2)–1-1→dom 𝐼𝑃:(0...2)–1-1𝑉 ∧ ∃𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})∃𝑧 ∈ (𝑉 ∖ {𝑥, 𝑦})(((𝑃‘0) = 𝑥 ∧ (𝑃‘1) = 𝑧 ∧ (𝑃‘2) = 𝑦) ∧ ((𝐼‘(𝐹‘0)) = {𝑥, 𝑧} ∧ (𝐼‘(𝐹‘1)) = {𝑧, 𝑦})))))
343, 33bitrd 268 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 196   ∧ wa 383   ∧ w3a 1072   = wceq 1620   ∈ wcel 2127   ≠ wne 2920  ∃wrex 3039   ∖ cdif 3700  {csn 4309  {cpr 4311   class class class wbr 4792  dom cdm 5254  –1-1→wf1 6034  ‘cfv 6037  (class class class)co 6801  0cc0 10099  1c1 10100  2c2 11233  ...cfz 12490  ..^cfzo 12630  ♯chash 13282  Vtxcvtx 26044  iEdgciedg 26045  USGraphcusgr 26214  Pathscpths 26789 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1859  ax-4 1874  ax-5 1976  ax-6 2042  ax-7 2078  ax-8 2129  ax-9 2136  ax-10 2156  ax-11 2171  ax-12 2184  ax-13 2379  ax-ext 2728  ax-rep 4911  ax-sep 4921  ax-nul 4929  ax-pow 4980  ax-pr 5043  ax-un 7102  ax-cnex 10155  ax-resscn 10156  ax-1cn 10157  ax-icn 10158  ax-addcl 10159  ax-addrcl 10160  ax-mulcl 10161  ax-mulrcl 10162  ax-mulcom 10163  ax-addass 10164  ax-mulass 10165  ax-distr 10166  ax-i2m1 10167  ax-1ne0 10168  ax-1rid 10169  ax-rnegex 10170  ax-rrecex 10171  ax-cnre 10172  ax-pre-lttri 10173  ax-pre-lttrn 10174  ax-pre-ltadd 10175  ax-pre-mulgt0 10176 This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-ifp 1051  df-3or 1073  df-3an 1074  df-tru 1623  df-ex 1842  df-nf 1847  df-sb 2035  df-eu 2599  df-mo 2600  df-clab 2735  df-cleq 2741  df-clel 2744  df-nfc 2879  df-ne 2921  df-nel 3024  df-ral 3043  df-rex 3044  df-reu 3045  df-rmo 3046  df-rab 3047  df-v 3330  df-sbc 3565  df-csb 3663  df-dif 3706  df-un 3708  df-in 3710  df-ss 3717  df-pss 3719  df-nul 4047  df-if 4219  df-pw 4292  df-sn 4310  df-pr 4312  df-tp 4314  df-op 4316  df-uni 4577  df-int 4616  df-iun 4662  df-br 4793  df-opab 4853  df-mpt 4870  df-tr 4893  df-id 5162  df-eprel 5167  df-po 5175  df-so 5176  df-fr 5213  df-we 5215  df-xp 5260  df-rel 5261  df-cnv 5262  df-co 5263  df-dm 5264  df-rn 5265  df-res 5266  df-ima 5267  df-pred 5829  df-ord 5875  df-on 5876  df-lim 5877  df-suc 5878  df-iota 6000  df-fun 6039  df-fn 6040  df-f 6041  df-f1 6042  df-fo 6043  df-f1o 6044  df-fv 6045  df-riota 6762  df-ov 6804  df-oprab 6805  df-mpt2 6806  df-om 7219  df-1st 7321  df-2nd 7322  df-wrecs 7564  df-recs 7625  df-rdg 7663  df-1o 7717  df-2o 7718  df-oadd 7721  df-er 7899  df-map 8013  df-pm 8014  df-en 8110  df-dom 8111  df-sdom 8112  df-fin 8113  df-card 8926  df-cda 9153  df-pnf 10239  df-mnf 10240  df-xr 10241  df-ltxr 10242  df-le 10243  df-sub 10431  df-neg 10432  df-nn 11184  df-2 11242  df-3 11243  df-n0 11456  df-xnn0 11527  df-z 11541  df-uz 11851  df-fz 12491  df-fzo 12631  df-hash 13283  df-word 13456  df-concat 13458  df-s1 13459  df-s2 13764  df-s3 13765  df-edg 26110  df-uhgr 26123  df-upgr 26147  df-umgr 26148  df-uspgr 26215  df-usgr 26216  df-wlks 26676  df-wlkson 26677  df-trls 26770  df-trlson 26771  df-pths 26793  df-spths 26794  df-pthson 26795  df-spthson 26796 This theorem is referenced by: (None)
 Copyright terms: Public domain W3C validator