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

Theorem umgrwwlks2on 28322
Description: A walk of length 2 between two vertices as word in a multigraph. This theorem would also hold for pseudographs, but to prove this the cases 𝐴 = 𝐵 and/or 𝐵 = 𝐶 must be considered separately. (Contributed by Alexander van der Vekens, 18-Feb-2018.) (Revised by AV, 12-May-2021.)
Hypotheses
Ref Expression
s3wwlks2on.v 𝑉 = (Vtx‘𝐺)
usgrwwlks2on.e 𝐸 = (Edg‘𝐺)
Assertion
Ref Expression
umgrwwlks2on ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → (⟨“𝐴𝐵𝐶”⟩ ∈ (𝐴(2 WWalksNOn 𝐺)𝐶) ↔ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸)))

Proof of Theorem umgrwwlks2on
Dummy variables 𝑓 𝑝 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 umgrupgr 27473 . . . 4 (𝐺 ∈ UMGraph → 𝐺 ∈ UPGraph)
21adantr 481 . . 3 ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → 𝐺 ∈ UPGraph)
3 simp1 1135 . . . 4 ((𝐴𝑉𝐵𝑉𝐶𝑉) → 𝐴𝑉)
43adantl 482 . . 3 ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → 𝐴𝑉)
5 simpr3 1195 . . 3 ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → 𝐶𝑉)
6 s3wwlks2on.v . . . 4 𝑉 = (Vtx‘𝐺)
76s3wwlks2on 28321 . . 3 ((𝐺 ∈ UPGraph ∧ 𝐴𝑉𝐶𝑉) → (⟨“𝐴𝐵𝐶”⟩ ∈ (𝐴(2 WWalksNOn 𝐺)𝐶) ↔ ∃𝑓(𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2)))
82, 4, 5, 7syl3anc 1370 . 2 ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → (⟨“𝐴𝐵𝐶”⟩ ∈ (𝐴(2 WWalksNOn 𝐺)𝐶) ↔ ∃𝑓(𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2)))
9 eqid 2738 . . . . . . . 8 (iEdg‘𝐺) = (iEdg‘𝐺)
106, 9upgr2wlk 28036 . . . . . . 7 (𝐺 ∈ UPGraph → ((𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2) ↔ (𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {(⟨“𝐴𝐵𝐶”⟩‘0), (⟨“𝐴𝐵𝐶”⟩‘1)} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {(⟨“𝐴𝐵𝐶”⟩‘1), (⟨“𝐴𝐵𝐶”⟩‘2)}))))
111, 10syl 17 . . . . . 6 (𝐺 ∈ UMGraph → ((𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2) ↔ (𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {(⟨“𝐴𝐵𝐶”⟩‘0), (⟨“𝐴𝐵𝐶”⟩‘1)} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {(⟨“𝐴𝐵𝐶”⟩‘1), (⟨“𝐴𝐵𝐶”⟩‘2)}))))
1211adantr 481 . . . . 5 ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → ((𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2) ↔ (𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {(⟨“𝐴𝐵𝐶”⟩‘0), (⟨“𝐴𝐵𝐶”⟩‘1)} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {(⟨“𝐴𝐵𝐶”⟩‘1), (⟨“𝐴𝐵𝐶”⟩‘2)}))))
13 s3fv0 14604 . . . . . . . . . . . 12 (𝐴𝑉 → (⟨“𝐴𝐵𝐶”⟩‘0) = 𝐴)
14133ad2ant1 1132 . . . . . . . . . . 11 ((𝐴𝑉𝐵𝑉𝐶𝑉) → (⟨“𝐴𝐵𝐶”⟩‘0) = 𝐴)
15 s3fv1 14605 . . . . . . . . . . . 12 (𝐵𝑉 → (⟨“𝐴𝐵𝐶”⟩‘1) = 𝐵)
16153ad2ant2 1133 . . . . . . . . . . 11 ((𝐴𝑉𝐵𝑉𝐶𝑉) → (⟨“𝐴𝐵𝐶”⟩‘1) = 𝐵)
1714, 16preq12d 4677 . . . . . . . . . 10 ((𝐴𝑉𝐵𝑉𝐶𝑉) → {(⟨“𝐴𝐵𝐶”⟩‘0), (⟨“𝐴𝐵𝐶”⟩‘1)} = {𝐴, 𝐵})
1817eqeq2d 2749 . . . . . . . . 9 ((𝐴𝑉𝐵𝑉𝐶𝑉) → (((iEdg‘𝐺)‘(𝑓‘0)) = {(⟨“𝐴𝐵𝐶”⟩‘0), (⟨“𝐴𝐵𝐶”⟩‘1)} ↔ ((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵}))
19 s3fv2 14606 . . . . . . . . . . . 12 (𝐶𝑉 → (⟨“𝐴𝐵𝐶”⟩‘2) = 𝐶)
20193ad2ant3 1134 . . . . . . . . . . 11 ((𝐴𝑉𝐵𝑉𝐶𝑉) → (⟨“𝐴𝐵𝐶”⟩‘2) = 𝐶)
2116, 20preq12d 4677 . . . . . . . . . 10 ((𝐴𝑉𝐵𝑉𝐶𝑉) → {(⟨“𝐴𝐵𝐶”⟩‘1), (⟨“𝐴𝐵𝐶”⟩‘2)} = {𝐵, 𝐶})
2221eqeq2d 2749 . . . . . . . . 9 ((𝐴𝑉𝐵𝑉𝐶𝑉) → (((iEdg‘𝐺)‘(𝑓‘1)) = {(⟨“𝐴𝐵𝐶”⟩‘1), (⟨“𝐴𝐵𝐶”⟩‘2)} ↔ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶}))
2318, 22anbi12d 631 . . . . . . . 8 ((𝐴𝑉𝐵𝑉𝐶𝑉) → ((((iEdg‘𝐺)‘(𝑓‘0)) = {(⟨“𝐴𝐵𝐶”⟩‘0), (⟨“𝐴𝐵𝐶”⟩‘1)} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {(⟨“𝐴𝐵𝐶”⟩‘1), (⟨“𝐴𝐵𝐶”⟩‘2)}) ↔ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶})))
2423adantl 482 . . . . . . 7 ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → ((((iEdg‘𝐺)‘(𝑓‘0)) = {(⟨“𝐴𝐵𝐶”⟩‘0), (⟨“𝐴𝐵𝐶”⟩‘1)} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {(⟨“𝐴𝐵𝐶”⟩‘1), (⟨“𝐴𝐵𝐶”⟩‘2)}) ↔ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶})))
25243anbi3d 1441 . . . . . 6 ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → ((𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {(⟨“𝐴𝐵𝐶”⟩‘0), (⟨“𝐴𝐵𝐶”⟩‘1)} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {(⟨“𝐴𝐵𝐶”⟩‘1), (⟨“𝐴𝐵𝐶”⟩‘2)})) ↔ (𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶}))))
26 umgruhgr 27474 . . . . . . . . . . 11 (𝐺 ∈ UMGraph → 𝐺 ∈ UHGraph)
279uhgrfun 27436 . . . . . . . . . . 11 (𝐺 ∈ UHGraph → Fun (iEdg‘𝐺))
28 fdmrn 6632 . . . . . . . . . . . 12 (Fun (iEdg‘𝐺) ↔ (iEdg‘𝐺):dom (iEdg‘𝐺)⟶ran (iEdg‘𝐺))
29 simpr 485 . . . . . . . . . . . . . . . . 17 ((𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ (iEdg‘𝐺):dom (iEdg‘𝐺)⟶ran (iEdg‘𝐺)) → (iEdg‘𝐺):dom (iEdg‘𝐺)⟶ran (iEdg‘𝐺))
30 id 22 . . . . . . . . . . . . . . . . . . 19 (𝑓:(0..^2)⟶dom (iEdg‘𝐺) → 𝑓:(0..^2)⟶dom (iEdg‘𝐺))
31 c0ex 10969 . . . . . . . . . . . . . . . . . . . . . 22 0 ∈ V
3231prid1 4698 . . . . . . . . . . . . . . . . . . . . 21 0 ∈ {0, 1}
33 fzo0to2pr 13472 . . . . . . . . . . . . . . . . . . . . 21 (0..^2) = {0, 1}
3432, 33eleqtrri 2838 . . . . . . . . . . . . . . . . . . . 20 0 ∈ (0..^2)
3534a1i 11 . . . . . . . . . . . . . . . . . . 19 (𝑓:(0..^2)⟶dom (iEdg‘𝐺) → 0 ∈ (0..^2))
3630, 35ffvelrnd 6962 . . . . . . . . . . . . . . . . . 18 (𝑓:(0..^2)⟶dom (iEdg‘𝐺) → (𝑓‘0) ∈ dom (iEdg‘𝐺))
3736adantr 481 . . . . . . . . . . . . . . . . 17 ((𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ (iEdg‘𝐺):dom (iEdg‘𝐺)⟶ran (iEdg‘𝐺)) → (𝑓‘0) ∈ dom (iEdg‘𝐺))
3829, 37ffvelrnd 6962 . . . . . . . . . . . . . . . 16 ((𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ (iEdg‘𝐺):dom (iEdg‘𝐺)⟶ran (iEdg‘𝐺)) → ((iEdg‘𝐺)‘(𝑓‘0)) ∈ ran (iEdg‘𝐺))
39 1ex 10971 . . . . . . . . . . . . . . . . . . . . . 22 1 ∈ V
4039prid2 4699 . . . . . . . . . . . . . . . . . . . . 21 1 ∈ {0, 1}
4140, 33eleqtrri 2838 . . . . . . . . . . . . . . . . . . . 20 1 ∈ (0..^2)
4241a1i 11 . . . . . . . . . . . . . . . . . . 19 (𝑓:(0..^2)⟶dom (iEdg‘𝐺) → 1 ∈ (0..^2))
4330, 42ffvelrnd 6962 . . . . . . . . . . . . . . . . . 18 (𝑓:(0..^2)⟶dom (iEdg‘𝐺) → (𝑓‘1) ∈ dom (iEdg‘𝐺))
4443adantr 481 . . . . . . . . . . . . . . . . 17 ((𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ (iEdg‘𝐺):dom (iEdg‘𝐺)⟶ran (iEdg‘𝐺)) → (𝑓‘1) ∈ dom (iEdg‘𝐺))
4529, 44ffvelrnd 6962 . . . . . . . . . . . . . . . 16 ((𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ (iEdg‘𝐺):dom (iEdg‘𝐺)⟶ran (iEdg‘𝐺)) → ((iEdg‘𝐺)‘(𝑓‘1)) ∈ ran (iEdg‘𝐺))
4638, 45jca 512 . . . . . . . . . . . . . . 15 ((𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ (iEdg‘𝐺):dom (iEdg‘𝐺)⟶ran (iEdg‘𝐺)) → (((iEdg‘𝐺)‘(𝑓‘0)) ∈ ran (iEdg‘𝐺) ∧ ((iEdg‘𝐺)‘(𝑓‘1)) ∈ ran (iEdg‘𝐺)))
4746ex 413 . . . . . . . . . . . . . 14 (𝑓:(0..^2)⟶dom (iEdg‘𝐺) → ((iEdg‘𝐺):dom (iEdg‘𝐺)⟶ran (iEdg‘𝐺) → (((iEdg‘𝐺)‘(𝑓‘0)) ∈ ran (iEdg‘𝐺) ∧ ((iEdg‘𝐺)‘(𝑓‘1)) ∈ ran (iEdg‘𝐺))))
48473ad2ant1 1132 . . . . . . . . . . . . 13 ((𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶})) → ((iEdg‘𝐺):dom (iEdg‘𝐺)⟶ran (iEdg‘𝐺) → (((iEdg‘𝐺)‘(𝑓‘0)) ∈ ran (iEdg‘𝐺) ∧ ((iEdg‘𝐺)‘(𝑓‘1)) ∈ ran (iEdg‘𝐺))))
4948com12 32 . . . . . . . . . . . 12 ((iEdg‘𝐺):dom (iEdg‘𝐺)⟶ran (iEdg‘𝐺) → ((𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶})) → (((iEdg‘𝐺)‘(𝑓‘0)) ∈ ran (iEdg‘𝐺) ∧ ((iEdg‘𝐺)‘(𝑓‘1)) ∈ ran (iEdg‘𝐺))))
5028, 49sylbi 216 . . . . . . . . . . 11 (Fun (iEdg‘𝐺) → ((𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶})) → (((iEdg‘𝐺)‘(𝑓‘0)) ∈ ran (iEdg‘𝐺) ∧ ((iEdg‘𝐺)‘(𝑓‘1)) ∈ ran (iEdg‘𝐺))))
5126, 27, 503syl 18 . . . . . . . . . 10 (𝐺 ∈ UMGraph → ((𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶})) → (((iEdg‘𝐺)‘(𝑓‘0)) ∈ ran (iEdg‘𝐺) ∧ ((iEdg‘𝐺)‘(𝑓‘1)) ∈ ran (iEdg‘𝐺))))
5251imp 407 . . . . . . . . 9 ((𝐺 ∈ UMGraph ∧ (𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶}))) → (((iEdg‘𝐺)‘(𝑓‘0)) ∈ ran (iEdg‘𝐺) ∧ ((iEdg‘𝐺)‘(𝑓‘1)) ∈ ran (iEdg‘𝐺)))
53 eqcom 2745 . . . . . . . . . . . . . . 15 (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ↔ {𝐴, 𝐵} = ((iEdg‘𝐺)‘(𝑓‘0)))
5453biimpi 215 . . . . . . . . . . . . . 14 (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} → {𝐴, 𝐵} = ((iEdg‘𝐺)‘(𝑓‘0)))
5554adantr 481 . . . . . . . . . . . . 13 ((((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶}) → {𝐴, 𝐵} = ((iEdg‘𝐺)‘(𝑓‘0)))
56553ad2ant3 1134 . . . . . . . . . . . 12 ((𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶})) → {𝐴, 𝐵} = ((iEdg‘𝐺)‘(𝑓‘0)))
5756adantl 482 . . . . . . . . . . 11 ((𝐺 ∈ UMGraph ∧ (𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶}))) → {𝐴, 𝐵} = ((iEdg‘𝐺)‘(𝑓‘0)))
58 usgrwwlks2on.e . . . . . . . . . . . . 13 𝐸 = (Edg‘𝐺)
59 edgval 27419 . . . . . . . . . . . . 13 (Edg‘𝐺) = ran (iEdg‘𝐺)
6058, 59eqtri 2766 . . . . . . . . . . . 12 𝐸 = ran (iEdg‘𝐺)
6160a1i 11 . . . . . . . . . . 11 ((𝐺 ∈ UMGraph ∧ (𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶}))) → 𝐸 = ran (iEdg‘𝐺))
6257, 61eleq12d 2833 . . . . . . . . . 10 ((𝐺 ∈ UMGraph ∧ (𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶}))) → ({𝐴, 𝐵} ∈ 𝐸 ↔ ((iEdg‘𝐺)‘(𝑓‘0)) ∈ ran (iEdg‘𝐺)))
63 eqcom 2745 . . . . . . . . . . . . . . 15 (((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶} ↔ {𝐵, 𝐶} = ((iEdg‘𝐺)‘(𝑓‘1)))
6463biimpi 215 . . . . . . . . . . . . . 14 (((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶} → {𝐵, 𝐶} = ((iEdg‘𝐺)‘(𝑓‘1)))
6564adantl 482 . . . . . . . . . . . . 13 ((((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶}) → {𝐵, 𝐶} = ((iEdg‘𝐺)‘(𝑓‘1)))
66653ad2ant3 1134 . . . . . . . . . . . 12 ((𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶})) → {𝐵, 𝐶} = ((iEdg‘𝐺)‘(𝑓‘1)))
6766adantl 482 . . . . . . . . . . 11 ((𝐺 ∈ UMGraph ∧ (𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶}))) → {𝐵, 𝐶} = ((iEdg‘𝐺)‘(𝑓‘1)))
6867, 61eleq12d 2833 . . . . . . . . . 10 ((𝐺 ∈ UMGraph ∧ (𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶}))) → ({𝐵, 𝐶} ∈ 𝐸 ↔ ((iEdg‘𝐺)‘(𝑓‘1)) ∈ ran (iEdg‘𝐺)))
6962, 68anbi12d 631 . . . . . . . . 9 ((𝐺 ∈ UMGraph ∧ (𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶}))) → (({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸) ↔ (((iEdg‘𝐺)‘(𝑓‘0)) ∈ ran (iEdg‘𝐺) ∧ ((iEdg‘𝐺)‘(𝑓‘1)) ∈ ran (iEdg‘𝐺))))
7052, 69mpbird 256 . . . . . . . 8 ((𝐺 ∈ UMGraph ∧ (𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶}))) → ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸))
7170ex 413 . . . . . . 7 (𝐺 ∈ UMGraph → ((𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶})) → ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸)))
7271adantr 481 . . . . . 6 ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → ((𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶})) → ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸)))
7325, 72sylbid 239 . . . . 5 ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → ((𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {(⟨“𝐴𝐵𝐶”⟩‘0), (⟨“𝐴𝐵𝐶”⟩‘1)} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {(⟨“𝐴𝐵𝐶”⟩‘1), (⟨“𝐴𝐵𝐶”⟩‘2)})) → ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸)))
7412, 73sylbid 239 . . . 4 ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → ((𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2) → ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸)))
7574exlimdv 1936 . . 3 ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → (∃𝑓(𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2) → ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸)))
7658umgr2wlk 28314 . . . . . . 7 ((𝐺 ∈ UMGraph ∧ {𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸) → ∃𝑓𝑝(𝑓(Walks‘𝐺)𝑝 ∧ (♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))))
77 wlklenvp1 27985 . . . . . . . . . . . . . . . . . . . 20 (𝑓(Walks‘𝐺)𝑝 → (♯‘𝑝) = ((♯‘𝑓) + 1))
78 oveq1 7282 . . . . . . . . . . . . . . . . . . . . . 22 ((♯‘𝑓) = 2 → ((♯‘𝑓) + 1) = (2 + 1))
79 2p1e3 12115 . . . . . . . . . . . . . . . . . . . . . 22 (2 + 1) = 3
8078, 79eqtrdi 2794 . . . . . . . . . . . . . . . . . . . . 21 ((♯‘𝑓) = 2 → ((♯‘𝑓) + 1) = 3)
8180adantr 481 . . . . . . . . . . . . . . . . . . . 20 (((♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → ((♯‘𝑓) + 1) = 3)
8277, 81sylan9eq 2798 . . . . . . . . . . . . . . . . . . 19 ((𝑓(Walks‘𝐺)𝑝 ∧ ((♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)))) → (♯‘𝑝) = 3)
83 eqcom 2745 . . . . . . . . . . . . . . . . . . . . . . 23 (𝐴 = (𝑝‘0) ↔ (𝑝‘0) = 𝐴)
84 eqcom 2745 . . . . . . . . . . . . . . . . . . . . . . 23 (𝐵 = (𝑝‘1) ↔ (𝑝‘1) = 𝐵)
85 eqcom 2745 . . . . . . . . . . . . . . . . . . . . . . 23 (𝐶 = (𝑝‘2) ↔ (𝑝‘2) = 𝐶)
8683, 84, 853anbi123i 1154 . . . . . . . . . . . . . . . . . . . . . 22 ((𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)) ↔ ((𝑝‘0) = 𝐴 ∧ (𝑝‘1) = 𝐵 ∧ (𝑝‘2) = 𝐶))
8786biimpi 215 . . . . . . . . . . . . . . . . . . . . 21 ((𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)) → ((𝑝‘0) = 𝐴 ∧ (𝑝‘1) = 𝐵 ∧ (𝑝‘2) = 𝐶))
8887adantl 482 . . . . . . . . . . . . . . . . . . . 20 (((♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → ((𝑝‘0) = 𝐴 ∧ (𝑝‘1) = 𝐵 ∧ (𝑝‘2) = 𝐶))
8988adantl 482 . . . . . . . . . . . . . . . . . . 19 ((𝑓(Walks‘𝐺)𝑝 ∧ ((♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)))) → ((𝑝‘0) = 𝐴 ∧ (𝑝‘1) = 𝐵 ∧ (𝑝‘2) = 𝐶))
9082, 89jca 512 . . . . . . . . . . . . . . . . . 18 ((𝑓(Walks‘𝐺)𝑝 ∧ ((♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)))) → ((♯‘𝑝) = 3 ∧ ((𝑝‘0) = 𝐴 ∧ (𝑝‘1) = 𝐵 ∧ (𝑝‘2) = 𝐶)))
916wlkpwrd 27984 . . . . . . . . . . . . . . . . . . . . 21 (𝑓(Walks‘𝐺)𝑝𝑝 ∈ Word 𝑉)
9280eqeq2d 2749 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((♯‘𝑓) = 2 → ((♯‘𝑝) = ((♯‘𝑓) + 1) ↔ (♯‘𝑝) = 3))
9392adantl 482 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑝 ∈ Word 𝑉 ∧ (♯‘𝑓) = 2) → ((♯‘𝑝) = ((♯‘𝑓) + 1) ↔ (♯‘𝑝) = 3))
94 simp1 1135 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑝 ∈ Word 𝑉 ∧ (♯‘𝑝) = 3 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → 𝑝 ∈ Word 𝑉)
95 oveq2 7283 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ((♯‘𝑝) = 3 → (0..^(♯‘𝑝)) = (0..^3))
96 fzo0to3tp 13473 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (0..^3) = {0, 1, 2}
9795, 96eqtrdi 2794 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((♯‘𝑝) = 3 → (0..^(♯‘𝑝)) = {0, 1, 2})
9831tpid1 4704 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 0 ∈ {0, 1, 2}
99 eleq2 2827 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 ((0..^(♯‘𝑝)) = {0, 1, 2} → (0 ∈ (0..^(♯‘𝑝)) ↔ 0 ∈ {0, 1, 2}))
10098, 99mpbiri 257 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((0..^(♯‘𝑝)) = {0, 1, 2} → 0 ∈ (0..^(♯‘𝑝)))
101 wrdsymbcl 14230 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((𝑝 ∈ Word 𝑉 ∧ 0 ∈ (0..^(♯‘𝑝))) → (𝑝‘0) ∈ 𝑉)
102100, 101sylan2 593 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ((𝑝 ∈ Word 𝑉 ∧ (0..^(♯‘𝑝)) = {0, 1, 2}) → (𝑝‘0) ∈ 𝑉)
10339tpid2 4706 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 1 ∈ {0, 1, 2}
104 eleq2 2827 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 ((0..^(♯‘𝑝)) = {0, 1, 2} → (1 ∈ (0..^(♯‘𝑝)) ↔ 1 ∈ {0, 1, 2}))
105103, 104mpbiri 257 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((0..^(♯‘𝑝)) = {0, 1, 2} → 1 ∈ (0..^(♯‘𝑝)))
106 wrdsymbcl 14230 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((𝑝 ∈ Word 𝑉 ∧ 1 ∈ (0..^(♯‘𝑝))) → (𝑝‘1) ∈ 𝑉)
107105, 106sylan2 593 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ((𝑝 ∈ Word 𝑉 ∧ (0..^(♯‘𝑝)) = {0, 1, 2}) → (𝑝‘1) ∈ 𝑉)
108 2ex 12050 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 2 ∈ V
109108tpid3 4709 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 2 ∈ {0, 1, 2}
110 eleq2 2827 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 ((0..^(♯‘𝑝)) = {0, 1, 2} → (2 ∈ (0..^(♯‘𝑝)) ↔ 2 ∈ {0, 1, 2}))
111109, 110mpbiri 257 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((0..^(♯‘𝑝)) = {0, 1, 2} → 2 ∈ (0..^(♯‘𝑝)))
112 wrdsymbcl 14230 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((𝑝 ∈ Word 𝑉 ∧ 2 ∈ (0..^(♯‘𝑝))) → (𝑝‘2) ∈ 𝑉)
113111, 112sylan2 593 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ((𝑝 ∈ Word 𝑉 ∧ (0..^(♯‘𝑝)) = {0, 1, 2}) → (𝑝‘2) ∈ 𝑉)
114102, 107, 1133jca 1127 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝑝 ∈ Word 𝑉 ∧ (0..^(♯‘𝑝)) = {0, 1, 2}) → ((𝑝‘0) ∈ 𝑉 ∧ (𝑝‘1) ∈ 𝑉 ∧ (𝑝‘2) ∈ 𝑉))
11597, 114sylan2 593 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝑝 ∈ Word 𝑉 ∧ (♯‘𝑝) = 3) → ((𝑝‘0) ∈ 𝑉 ∧ (𝑝‘1) ∈ 𝑉 ∧ (𝑝‘2) ∈ 𝑉))
1161153adant3 1131 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑝 ∈ Word 𝑉 ∧ (♯‘𝑝) = 3 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → ((𝑝‘0) ∈ 𝑉 ∧ (𝑝‘1) ∈ 𝑉 ∧ (𝑝‘2) ∈ 𝑉))
117 eleq1 2826 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝐴 = (𝑝‘0) → (𝐴𝑉 ↔ (𝑝‘0) ∈ 𝑉))
1181173ad2ant1 1132 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)) → (𝐴𝑉 ↔ (𝑝‘0) ∈ 𝑉))
119 eleq1 2826 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝐵 = (𝑝‘1) → (𝐵𝑉 ↔ (𝑝‘1) ∈ 𝑉))
1201193ad2ant2 1133 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)) → (𝐵𝑉 ↔ (𝑝‘1) ∈ 𝑉))
121 eleq1 2826 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝐶 = (𝑝‘2) → (𝐶𝑉 ↔ (𝑝‘2) ∈ 𝑉))
1221213ad2ant3 1134 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)) → (𝐶𝑉 ↔ (𝑝‘2) ∈ 𝑉))
123118, 120, 1223anbi123d 1435 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)) → ((𝐴𝑉𝐵𝑉𝐶𝑉) ↔ ((𝑝‘0) ∈ 𝑉 ∧ (𝑝‘1) ∈ 𝑉 ∧ (𝑝‘2) ∈ 𝑉)))
1241233ad2ant3 1134 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑝 ∈ Word 𝑉 ∧ (♯‘𝑝) = 3 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → ((𝐴𝑉𝐵𝑉𝐶𝑉) ↔ ((𝑝‘0) ∈ 𝑉 ∧ (𝑝‘1) ∈ 𝑉 ∧ (𝑝‘2) ∈ 𝑉)))
125116, 124mpbird 256 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑝 ∈ Word 𝑉 ∧ (♯‘𝑝) = 3 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → (𝐴𝑉𝐵𝑉𝐶𝑉))
12694, 125jca 512 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝑝 ∈ Word 𝑉 ∧ (♯‘𝑝) = 3 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → (𝑝 ∈ Word 𝑉 ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)))
1271263exp 1118 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑝 ∈ Word 𝑉 → ((♯‘𝑝) = 3 → ((𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)) → (𝑝 ∈ Word 𝑉 ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)))))
128127adantr 481 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑝 ∈ Word 𝑉 ∧ (♯‘𝑓) = 2) → ((♯‘𝑝) = 3 → ((𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)) → (𝑝 ∈ Word 𝑉 ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)))))
12993, 128sylbid 239 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑝 ∈ Word 𝑉 ∧ (♯‘𝑓) = 2) → ((♯‘𝑝) = ((♯‘𝑓) + 1) → ((𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)) → (𝑝 ∈ Word 𝑉 ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)))))
130129impancom 452 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑝 ∈ Word 𝑉 ∧ (♯‘𝑝) = ((♯‘𝑓) + 1)) → ((♯‘𝑓) = 2 → ((𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)) → (𝑝 ∈ Word 𝑉 ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)))))
131130impd 411 . . . . . . . . . . . . . . . . . . . . 21 ((𝑝 ∈ Word 𝑉 ∧ (♯‘𝑝) = ((♯‘𝑓) + 1)) → (((♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → (𝑝 ∈ Word 𝑉 ∧ (𝐴𝑉𝐵𝑉𝐶𝑉))))
13291, 77, 131syl2anc 584 . . . . . . . . . . . . . . . . . . . 20 (𝑓(Walks‘𝐺)𝑝 → (((♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → (𝑝 ∈ Word 𝑉 ∧ (𝐴𝑉𝐵𝑉𝐶𝑉))))
133132imp 407 . . . . . . . . . . . . . . . . . . 19 ((𝑓(Walks‘𝐺)𝑝 ∧ ((♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)))) → (𝑝 ∈ Word 𝑉 ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)))
134 eqwrds3 14676 . . . . . . . . . . . . . . . . . . 19 ((𝑝 ∈ Word 𝑉 ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → (𝑝 = ⟨“𝐴𝐵𝐶”⟩ ↔ ((♯‘𝑝) = 3 ∧ ((𝑝‘0) = 𝐴 ∧ (𝑝‘1) = 𝐵 ∧ (𝑝‘2) = 𝐶))))
135133, 134syl 17 . . . . . . . . . . . . . . . . . 18 ((𝑓(Walks‘𝐺)𝑝 ∧ ((♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)))) → (𝑝 = ⟨“𝐴𝐵𝐶”⟩ ↔ ((♯‘𝑝) = 3 ∧ ((𝑝‘0) = 𝐴 ∧ (𝑝‘1) = 𝐵 ∧ (𝑝‘2) = 𝐶))))
13690, 135mpbird 256 . . . . . . . . . . . . . . . . 17 ((𝑓(Walks‘𝐺)𝑝 ∧ ((♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)))) → 𝑝 = ⟨“𝐴𝐵𝐶”⟩)
137136breq2d 5086 . . . . . . . . . . . . . . . 16 ((𝑓(Walks‘𝐺)𝑝 ∧ ((♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)))) → (𝑓(Walks‘𝐺)𝑝𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩))
138137biimpd 228 . . . . . . . . . . . . . . 15 ((𝑓(Walks‘𝐺)𝑝 ∧ ((♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)))) → (𝑓(Walks‘𝐺)𝑝𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩))
139138ex 413 . . . . . . . . . . . . . 14 (𝑓(Walks‘𝐺)𝑝 → (((♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → (𝑓(Walks‘𝐺)𝑝𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩)))
140139pm2.43a 54 . . . . . . . . . . . . 13 (𝑓(Walks‘𝐺)𝑝 → (((♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → 𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩))
1411403impib 1115 . . . . . . . . . . . 12 ((𝑓(Walks‘𝐺)𝑝 ∧ (♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → 𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩)
142141adantl 482 . . . . . . . . . . 11 (((𝐴𝑉𝐵𝑉𝐶𝑉) ∧ (𝑓(Walks‘𝐺)𝑝 ∧ (♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)))) → 𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩)
143 simpr2 1194 . . . . . . . . . . 11 (((𝐴𝑉𝐵𝑉𝐶𝑉) ∧ (𝑓(Walks‘𝐺)𝑝 ∧ (♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)))) → (♯‘𝑓) = 2)
144142, 143jca 512 . . . . . . . . . 10 (((𝐴𝑉𝐵𝑉𝐶𝑉) ∧ (𝑓(Walks‘𝐺)𝑝 ∧ (♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)))) → (𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2))
145144ex 413 . . . . . . . . 9 ((𝐴𝑉𝐵𝑉𝐶𝑉) → ((𝑓(Walks‘𝐺)𝑝 ∧ (♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → (𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2)))
146145exlimdv 1936 . . . . . . . 8 ((𝐴𝑉𝐵𝑉𝐶𝑉) → (∃𝑝(𝑓(Walks‘𝐺)𝑝 ∧ (♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → (𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2)))
147146eximdv 1920 . . . . . . 7 ((𝐴𝑉𝐵𝑉𝐶𝑉) → (∃𝑓𝑝(𝑓(Walks‘𝐺)𝑝 ∧ (♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → ∃𝑓(𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2)))
14876, 147syl5com 31 . . . . . 6 ((𝐺 ∈ UMGraph ∧ {𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸) → ((𝐴𝑉𝐵𝑉𝐶𝑉) → ∃𝑓(𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2)))
1491483expib 1121 . . . . 5 (𝐺 ∈ UMGraph → (({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸) → ((𝐴𝑉𝐵𝑉𝐶𝑉) → ∃𝑓(𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2))))
150149com23 86 . . . 4 (𝐺 ∈ UMGraph → ((𝐴𝑉𝐵𝑉𝐶𝑉) → (({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸) → ∃𝑓(𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2))))
151150imp 407 . . 3 ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → (({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸) → ∃𝑓(𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2)))
15275, 151impbid 211 . 2 ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → (∃𝑓(𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2) ↔ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸)))
1538, 152bitrd 278 1 ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → (⟨“𝐴𝐵𝐶”⟩ ∈ (𝐴(2 WWalksNOn 𝐺)𝐶) ↔ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396  w3a 1086   = wceq 1539  wex 1782  wcel 2106  {cpr 4563  {ctp 4565   class class class wbr 5074  dom cdm 5589  ran crn 5590  Fun wfun 6427  wf 6429  cfv 6433  (class class class)co 7275  0cc0 10871  1c1 10872   + caddc 10874  2c2 12028  3c3 12029  ...cfz 13239  ..^cfzo 13382  chash 14044  Word cword 14217  ⟨“cs3 14555  Vtxcvtx 27366  iEdgciedg 27367  Edgcedg 27417  UHGraphcuhgr 27426  UPGraphcupgr 27450  UMGraphcumgr 27451  Walkscwlks 27963   WWalksNOn cwwlksnon 28192
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-rep 5209  ax-sep 5223  ax-nul 5230  ax-pow 5288  ax-pr 5352  ax-un 7588  ax-ac2 10219  ax-cnex 10927  ax-resscn 10928  ax-1cn 10929  ax-icn 10930  ax-addcl 10931  ax-addrcl 10932  ax-mulcl 10933  ax-mulrcl 10934  ax-mulcom 10935  ax-addass 10936  ax-mulass 10937  ax-distr 10938  ax-i2m1 10939  ax-1ne0 10940  ax-1rid 10941  ax-rnegex 10942  ax-rrecex 10943  ax-cnre 10944  ax-pre-lttri 10945  ax-pre-lttrn 10946  ax-pre-ltadd 10947  ax-pre-mulgt0 10948
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-ifp 1061  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-nel 3050  df-ral 3069  df-rex 3070  df-rmo 3071  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-pss 3906  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-tp 4566  df-op 4568  df-uni 4840  df-int 4880  df-iun 4926  df-br 5075  df-opab 5137  df-mpt 5158  df-tr 5192  df-id 5489  df-eprel 5495  df-po 5503  df-so 5504  df-fr 5544  df-se 5545  df-we 5546  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-pred 6202  df-ord 6269  df-on 6270  df-lim 6271  df-suc 6272  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-isom 6442  df-riota 7232  df-ov 7278  df-oprab 7279  df-mpo 7280  df-om 7713  df-1st 7831  df-2nd 7832  df-frecs 8097  df-wrecs 8128  df-recs 8202  df-rdg 8241  df-1o 8297  df-2o 8298  df-oadd 8301  df-er 8498  df-map 8617  df-pm 8618  df-en 8734  df-dom 8735  df-sdom 8736  df-fin 8737  df-dju 9659  df-card 9697  df-ac 9872  df-pnf 11011  df-mnf 11012  df-xr 11013  df-ltxr 11014  df-le 11015  df-sub 11207  df-neg 11208  df-nn 11974  df-2 12036  df-3 12037  df-n0 12234  df-xnn0 12306  df-z 12320  df-uz 12583  df-fz 13240  df-fzo 13383  df-hash 14045  df-word 14218  df-concat 14274  df-s1 14301  df-s2 14561  df-s3 14562  df-edg 27418  df-uhgr 27428  df-upgr 27452  df-umgr 27453  df-wlks 27966  df-wwlks 28195  df-wwlksn 28196  df-wwlksnon 28197
This theorem is referenced by:  wwlks2onsym  28323  usgr2wspthons3  28329  frgr2wwlkeu  28691
  Copyright terms: Public domain W3C validator