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

Theorem umgrwwlks2on 27887
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 27040 . . . 4 (𝐺 ∈ UMGraph → 𝐺 ∈ UPGraph)
21adantr 484 . . 3 ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → 𝐺 ∈ UPGraph)
3 simp1 1137 . . . 4 ((𝐴𝑉𝐵𝑉𝐶𝑉) → 𝐴𝑉)
43adantl 485 . . 3 ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → 𝐴𝑉)
5 simpr3 1197 . . 3 ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → 𝐶𝑉)
6 s3wwlks2on.v . . . 4 𝑉 = (Vtx‘𝐺)
76s3wwlks2on 27886 . . 3 ((𝐺 ∈ UPGraph ∧ 𝐴𝑉𝐶𝑉) → (⟨“𝐴𝐵𝐶”⟩ ∈ (𝐴(2 WWalksNOn 𝐺)𝐶) ↔ ∃𝑓(𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2)))
82, 4, 5, 7syl3anc 1372 . 2 ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → (⟨“𝐴𝐵𝐶”⟩ ∈ (𝐴(2 WWalksNOn 𝐺)𝐶) ↔ ∃𝑓(𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2)))
9 eqid 2738 . . . . . . . 8 (iEdg‘𝐺) = (iEdg‘𝐺)
106, 9upgr2wlk 27602 . . . . . . 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 484 . . . . 5 ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → ((𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2) ↔ (𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {(⟨“𝐴𝐵𝐶”⟩‘0), (⟨“𝐴𝐵𝐶”⟩‘1)} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {(⟨“𝐴𝐵𝐶”⟩‘1), (⟨“𝐴𝐵𝐶”⟩‘2)}))))
13 s3fv0 14335 . . . . . . . . . . . 12 (𝐴𝑉 → (⟨“𝐴𝐵𝐶”⟩‘0) = 𝐴)
14133ad2ant1 1134 . . . . . . . . . . 11 ((𝐴𝑉𝐵𝑉𝐶𝑉) → (⟨“𝐴𝐵𝐶”⟩‘0) = 𝐴)
15 s3fv1 14336 . . . . . . . . . . . 12 (𝐵𝑉 → (⟨“𝐴𝐵𝐶”⟩‘1) = 𝐵)
16153ad2ant2 1135 . . . . . . . . . . 11 ((𝐴𝑉𝐵𝑉𝐶𝑉) → (⟨“𝐴𝐵𝐶”⟩‘1) = 𝐵)
1714, 16preq12d 4629 . . . . . . . . . 10 ((𝐴𝑉𝐵𝑉𝐶𝑉) → {(⟨“𝐴𝐵𝐶”⟩‘0), (⟨“𝐴𝐵𝐶”⟩‘1)} = {𝐴, 𝐵})
1817eqeq2d 2749 . . . . . . . . 9 ((𝐴𝑉𝐵𝑉𝐶𝑉) → (((iEdg‘𝐺)‘(𝑓‘0)) = {(⟨“𝐴𝐵𝐶”⟩‘0), (⟨“𝐴𝐵𝐶”⟩‘1)} ↔ ((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵}))
19 s3fv2 14337 . . . . . . . . . . . 12 (𝐶𝑉 → (⟨“𝐴𝐵𝐶”⟩‘2) = 𝐶)
20193ad2ant3 1136 . . . . . . . . . . 11 ((𝐴𝑉𝐵𝑉𝐶𝑉) → (⟨“𝐴𝐵𝐶”⟩‘2) = 𝐶)
2116, 20preq12d 4629 . . . . . . . . . 10 ((𝐴𝑉𝐵𝑉𝐶𝑉) → {(⟨“𝐴𝐵𝐶”⟩‘1), (⟨“𝐴𝐵𝐶”⟩‘2)} = {𝐵, 𝐶})
2221eqeq2d 2749 . . . . . . . . 9 ((𝐴𝑉𝐵𝑉𝐶𝑉) → (((iEdg‘𝐺)‘(𝑓‘1)) = {(⟨“𝐴𝐵𝐶”⟩‘1), (⟨“𝐴𝐵𝐶”⟩‘2)} ↔ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶}))
2318, 22anbi12d 634 . . . . . . . 8 ((𝐴𝑉𝐵𝑉𝐶𝑉) → ((((iEdg‘𝐺)‘(𝑓‘0)) = {(⟨“𝐴𝐵𝐶”⟩‘0), (⟨“𝐴𝐵𝐶”⟩‘1)} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {(⟨“𝐴𝐵𝐶”⟩‘1), (⟨“𝐴𝐵𝐶”⟩‘2)}) ↔ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶})))
2423adantl 485 . . . . . . 7 ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → ((((iEdg‘𝐺)‘(𝑓‘0)) = {(⟨“𝐴𝐵𝐶”⟩‘0), (⟨“𝐴𝐵𝐶”⟩‘1)} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {(⟨“𝐴𝐵𝐶”⟩‘1), (⟨“𝐴𝐵𝐶”⟩‘2)}) ↔ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶})))
25243anbi3d 1443 . . . . . 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 27041 . . . . . . . . . . 11 (𝐺 ∈ UMGraph → 𝐺 ∈ UHGraph)
279uhgrfun 27003 . . . . . . . . . . 11 (𝐺 ∈ UHGraph → Fun (iEdg‘𝐺))
28 fdmrn 6530 . . . . . . . . . . . 12 (Fun (iEdg‘𝐺) ↔ (iEdg‘𝐺):dom (iEdg‘𝐺)⟶ran (iEdg‘𝐺))
29 simpr 488 . . . . . . . . . . . . . . . . 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 10706 . . . . . . . . . . . . . . . . . . . . . 22 0 ∈ V
3231prid1 4650 . . . . . . . . . . . . . . . . . . . . 21 0 ∈ {0, 1}
33 fzo0to2pr 13206 . . . . . . . . . . . . . . . . . . . . 21 (0..^2) = {0, 1}
3432, 33eleqtrri 2832 . . . . . . . . . . . . . . . . . . . 20 0 ∈ (0..^2)
3534a1i 11 . . . . . . . . . . . . . . . . . . 19 (𝑓:(0..^2)⟶dom (iEdg‘𝐺) → 0 ∈ (0..^2))
3630, 35ffvelrnd 6856 . . . . . . . . . . . . . . . . . 18 (𝑓:(0..^2)⟶dom (iEdg‘𝐺) → (𝑓‘0) ∈ dom (iEdg‘𝐺))
3736adantr 484 . . . . . . . . . . . . . . . . 17 ((𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ (iEdg‘𝐺):dom (iEdg‘𝐺)⟶ran (iEdg‘𝐺)) → (𝑓‘0) ∈ dom (iEdg‘𝐺))
3829, 37ffvelrnd 6856 . . . . . . . . . . . . . . . 16 ((𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ (iEdg‘𝐺):dom (iEdg‘𝐺)⟶ran (iEdg‘𝐺)) → ((iEdg‘𝐺)‘(𝑓‘0)) ∈ ran (iEdg‘𝐺))
39 1ex 10708 . . . . . . . . . . . . . . . . . . . . . 22 1 ∈ V
4039prid2 4651 . . . . . . . . . . . . . . . . . . . . 21 1 ∈ {0, 1}
4140, 33eleqtrri 2832 . . . . . . . . . . . . . . . . . . . 20 1 ∈ (0..^2)
4241a1i 11 . . . . . . . . . . . . . . . . . . 19 (𝑓:(0..^2)⟶dom (iEdg‘𝐺) → 1 ∈ (0..^2))
4330, 42ffvelrnd 6856 . . . . . . . . . . . . . . . . . 18 (𝑓:(0..^2)⟶dom (iEdg‘𝐺) → (𝑓‘1) ∈ dom (iEdg‘𝐺))
4443adantr 484 . . . . . . . . . . . . . . . . 17 ((𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ (iEdg‘𝐺):dom (iEdg‘𝐺)⟶ran (iEdg‘𝐺)) → (𝑓‘1) ∈ dom (iEdg‘𝐺))
4529, 44ffvelrnd 6856 . . . . . . . . . . . . . . . 16 ((𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ (iEdg‘𝐺):dom (iEdg‘𝐺)⟶ran (iEdg‘𝐺)) → ((iEdg‘𝐺)‘(𝑓‘1)) ∈ ran (iEdg‘𝐺))
4638, 45jca 515 . . . . . . . . . . . . . . 15 ((𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ (iEdg‘𝐺):dom (iEdg‘𝐺)⟶ran (iEdg‘𝐺)) → (((iEdg‘𝐺)‘(𝑓‘0)) ∈ ran (iEdg‘𝐺) ∧ ((iEdg‘𝐺)‘(𝑓‘1)) ∈ ran (iEdg‘𝐺)))
4746ex 416 . . . . . . . . . . . . . 14 (𝑓:(0..^2)⟶dom (iEdg‘𝐺) → ((iEdg‘𝐺):dom (iEdg‘𝐺)⟶ran (iEdg‘𝐺) → (((iEdg‘𝐺)‘(𝑓‘0)) ∈ ran (iEdg‘𝐺) ∧ ((iEdg‘𝐺)‘(𝑓‘1)) ∈ ran (iEdg‘𝐺))))
48473ad2ant1 1134 . . . . . . . . . . . . 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 220 . . . . . . . . . . 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 410 . . . . . . . . 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 219 . . . . . . . . . . . . . 14 (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} → {𝐴, 𝐵} = ((iEdg‘𝐺)‘(𝑓‘0)))
5554adantr 484 . . . . . . . . . . . . 13 ((((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶}) → {𝐴, 𝐵} = ((iEdg‘𝐺)‘(𝑓‘0)))
56553ad2ant3 1136 . . . . . . . . . . . 12 ((𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶})) → {𝐴, 𝐵} = ((iEdg‘𝐺)‘(𝑓‘0)))
5756adantl 485 . . . . . . . . . . 11 ((𝐺 ∈ UMGraph ∧ (𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶}))) → {𝐴, 𝐵} = ((iEdg‘𝐺)‘(𝑓‘0)))
58 usgrwwlks2on.e . . . . . . . . . . . . 13 𝐸 = (Edg‘𝐺)
59 edgval 26986 . . . . . . . . . . . . 13 (Edg‘𝐺) = ran (iEdg‘𝐺)
6058, 59eqtri 2761 . . . . . . . . . . . 12 𝐸 = ran (iEdg‘𝐺)
6160a1i 11 . . . . . . . . . . 11 ((𝐺 ∈ UMGraph ∧ (𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶}))) → 𝐸 = ran (iEdg‘𝐺))
6257, 61eleq12d 2827 . . . . . . . . . 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 219 . . . . . . . . . . . . . 14 (((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶} → {𝐵, 𝐶} = ((iEdg‘𝐺)‘(𝑓‘1)))
6564adantl 485 . . . . . . . . . . . . 13 ((((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶}) → {𝐵, 𝐶} = ((iEdg‘𝐺)‘(𝑓‘1)))
66653ad2ant3 1136 . . . . . . . . . . . 12 ((𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶})) → {𝐵, 𝐶} = ((iEdg‘𝐺)‘(𝑓‘1)))
6766adantl 485 . . . . . . . . . . 11 ((𝐺 ∈ UMGraph ∧ (𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶}))) → {𝐵, 𝐶} = ((iEdg‘𝐺)‘(𝑓‘1)))
6867, 61eleq12d 2827 . . . . . . . . . 10 ((𝐺 ∈ UMGraph ∧ (𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶}))) → ({𝐵, 𝐶} ∈ 𝐸 ↔ ((iEdg‘𝐺)‘(𝑓‘1)) ∈ ran (iEdg‘𝐺)))
6962, 68anbi12d 634 . . . . . . . . 9 ((𝐺 ∈ UMGraph ∧ (𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶}))) → (({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸) ↔ (((iEdg‘𝐺)‘(𝑓‘0)) ∈ ran (iEdg‘𝐺) ∧ ((iEdg‘𝐺)‘(𝑓‘1)) ∈ ran (iEdg‘𝐺))))
7052, 69mpbird 260 . . . . . . . 8 ((𝐺 ∈ UMGraph ∧ (𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶}))) → ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸))
7170ex 416 . . . . . . 7 (𝐺 ∈ UMGraph → ((𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶})) → ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸)))
7271adantr 484 . . . . . 6 ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → ((𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {𝐴, 𝐵} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {𝐵, 𝐶})) → ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸)))
7325, 72sylbid 243 . . . . 5 ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → ((𝑓:(0..^2)⟶dom (iEdg‘𝐺) ∧ ⟨“𝐴𝐵𝐶”⟩:(0...2)⟶𝑉 ∧ (((iEdg‘𝐺)‘(𝑓‘0)) = {(⟨“𝐴𝐵𝐶”⟩‘0), (⟨“𝐴𝐵𝐶”⟩‘1)} ∧ ((iEdg‘𝐺)‘(𝑓‘1)) = {(⟨“𝐴𝐵𝐶”⟩‘1), (⟨“𝐴𝐵𝐶”⟩‘2)})) → ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸)))
7412, 73sylbid 243 . . . 4 ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → ((𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2) → ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸)))
7574exlimdv 1939 . . 3 ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → (∃𝑓(𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2) → ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸)))
7658umgr2wlk 27879 . . . . . . 7 ((𝐺 ∈ UMGraph ∧ {𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸) → ∃𝑓𝑝(𝑓(Walks‘𝐺)𝑝 ∧ (♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))))
77 wlklenvp1 27552 . . . . . . . . . . . . . . . . . . . 20 (𝑓(Walks‘𝐺)𝑝 → (♯‘𝑝) = ((♯‘𝑓) + 1))
78 oveq1 7171 . . . . . . . . . . . . . . . . . . . . . 22 ((♯‘𝑓) = 2 → ((♯‘𝑓) + 1) = (2 + 1))
79 2p1e3 11851 . . . . . . . . . . . . . . . . . . . . . 22 (2 + 1) = 3
8078, 79eqtrdi 2789 . . . . . . . . . . . . . . . . . . . . 21 ((♯‘𝑓) = 2 → ((♯‘𝑓) + 1) = 3)
8180adantr 484 . . . . . . . . . . . . . . . . . . . 20 (((♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → ((♯‘𝑓) + 1) = 3)
8277, 81sylan9eq 2793 . . . . . . . . . . . . . . . . . . 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 1156 . . . . . . . . . . . . . . . . . . . . . 22 ((𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)) ↔ ((𝑝‘0) = 𝐴 ∧ (𝑝‘1) = 𝐵 ∧ (𝑝‘2) = 𝐶))
8786biimpi 219 . . . . . . . . . . . . . . . . . . . . 21 ((𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)) → ((𝑝‘0) = 𝐴 ∧ (𝑝‘1) = 𝐵 ∧ (𝑝‘2) = 𝐶))
8887adantl 485 . . . . . . . . . . . . . . . . . . . 20 (((♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → ((𝑝‘0) = 𝐴 ∧ (𝑝‘1) = 𝐵 ∧ (𝑝‘2) = 𝐶))
8988adantl 485 . . . . . . . . . . . . . . . . . . 19 ((𝑓(Walks‘𝐺)𝑝 ∧ ((♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)))) → ((𝑝‘0) = 𝐴 ∧ (𝑝‘1) = 𝐵 ∧ (𝑝‘2) = 𝐶))
9082, 89jca 515 . . . . . . . . . . . . . . . . . 18 ((𝑓(Walks‘𝐺)𝑝 ∧ ((♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)))) → ((♯‘𝑝) = 3 ∧ ((𝑝‘0) = 𝐴 ∧ (𝑝‘1) = 𝐵 ∧ (𝑝‘2) = 𝐶)))
916wlkpwrd 27551 . . . . . . . . . . . . . . . . . . . . 21 (𝑓(Walks‘𝐺)𝑝𝑝 ∈ Word 𝑉)
9280eqeq2d 2749 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((♯‘𝑓) = 2 → ((♯‘𝑝) = ((♯‘𝑓) + 1) ↔ (♯‘𝑝) = 3))
9392adantl 485 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑝 ∈ Word 𝑉 ∧ (♯‘𝑓) = 2) → ((♯‘𝑝) = ((♯‘𝑓) + 1) ↔ (♯‘𝑝) = 3))
94 simp1 1137 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑝 ∈ Word 𝑉 ∧ (♯‘𝑝) = 3 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → 𝑝 ∈ Word 𝑉)
95 oveq2 7172 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ((♯‘𝑝) = 3 → (0..^(♯‘𝑝)) = (0..^3))
96 fzo0to3tp 13207 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (0..^3) = {0, 1, 2}
9795, 96eqtrdi 2789 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((♯‘𝑝) = 3 → (0..^(♯‘𝑝)) = {0, 1, 2})
9831tpid1 4656 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 0 ∈ {0, 1, 2}
99 eleq2 2821 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 ((0..^(♯‘𝑝)) = {0, 1, 2} → (0 ∈ (0..^(♯‘𝑝)) ↔ 0 ∈ {0, 1, 2}))
10098, 99mpbiri 261 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((0..^(♯‘𝑝)) = {0, 1, 2} → 0 ∈ (0..^(♯‘𝑝)))
101 wrdsymbcl 13961 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((𝑝 ∈ Word 𝑉 ∧ 0 ∈ (0..^(♯‘𝑝))) → (𝑝‘0) ∈ 𝑉)
102100, 101sylan2 596 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ((𝑝 ∈ Word 𝑉 ∧ (0..^(♯‘𝑝)) = {0, 1, 2}) → (𝑝‘0) ∈ 𝑉)
10339tpid2 4658 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 1 ∈ {0, 1, 2}
104 eleq2 2821 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 ((0..^(♯‘𝑝)) = {0, 1, 2} → (1 ∈ (0..^(♯‘𝑝)) ↔ 1 ∈ {0, 1, 2}))
105103, 104mpbiri 261 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((0..^(♯‘𝑝)) = {0, 1, 2} → 1 ∈ (0..^(♯‘𝑝)))
106 wrdsymbcl 13961 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((𝑝 ∈ Word 𝑉 ∧ 1 ∈ (0..^(♯‘𝑝))) → (𝑝‘1) ∈ 𝑉)
107105, 106sylan2 596 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ((𝑝 ∈ Word 𝑉 ∧ (0..^(♯‘𝑝)) = {0, 1, 2}) → (𝑝‘1) ∈ 𝑉)
108 2ex 11786 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 2 ∈ V
109108tpid3 4661 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 2 ∈ {0, 1, 2}
110 eleq2 2821 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 ((0..^(♯‘𝑝)) = {0, 1, 2} → (2 ∈ (0..^(♯‘𝑝)) ↔ 2 ∈ {0, 1, 2}))
111109, 110mpbiri 261 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((0..^(♯‘𝑝)) = {0, 1, 2} → 2 ∈ (0..^(♯‘𝑝)))
112 wrdsymbcl 13961 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((𝑝 ∈ Word 𝑉 ∧ 2 ∈ (0..^(♯‘𝑝))) → (𝑝‘2) ∈ 𝑉)
113111, 112sylan2 596 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ((𝑝 ∈ Word 𝑉 ∧ (0..^(♯‘𝑝)) = {0, 1, 2}) → (𝑝‘2) ∈ 𝑉)
114102, 107, 1133jca 1129 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝑝 ∈ Word 𝑉 ∧ (0..^(♯‘𝑝)) = {0, 1, 2}) → ((𝑝‘0) ∈ 𝑉 ∧ (𝑝‘1) ∈ 𝑉 ∧ (𝑝‘2) ∈ 𝑉))
11597, 114sylan2 596 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝑝 ∈ Word 𝑉 ∧ (♯‘𝑝) = 3) → ((𝑝‘0) ∈ 𝑉 ∧ (𝑝‘1) ∈ 𝑉 ∧ (𝑝‘2) ∈ 𝑉))
1161153adant3 1133 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑝 ∈ Word 𝑉 ∧ (♯‘𝑝) = 3 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → ((𝑝‘0) ∈ 𝑉 ∧ (𝑝‘1) ∈ 𝑉 ∧ (𝑝‘2) ∈ 𝑉))
117 eleq1 2820 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝐴 = (𝑝‘0) → (𝐴𝑉 ↔ (𝑝‘0) ∈ 𝑉))
1181173ad2ant1 1134 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)) → (𝐴𝑉 ↔ (𝑝‘0) ∈ 𝑉))
119 eleq1 2820 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝐵 = (𝑝‘1) → (𝐵𝑉 ↔ (𝑝‘1) ∈ 𝑉))
1201193ad2ant2 1135 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)) → (𝐵𝑉 ↔ (𝑝‘1) ∈ 𝑉))
121 eleq1 2820 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝐶 = (𝑝‘2) → (𝐶𝑉 ↔ (𝑝‘2) ∈ 𝑉))
1221213ad2ant3 1136 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)) → (𝐶𝑉 ↔ (𝑝‘2) ∈ 𝑉))
123118, 120, 1223anbi123d 1437 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)) → ((𝐴𝑉𝐵𝑉𝐶𝑉) ↔ ((𝑝‘0) ∈ 𝑉 ∧ (𝑝‘1) ∈ 𝑉 ∧ (𝑝‘2) ∈ 𝑉)))
1241233ad2ant3 1136 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑝 ∈ Word 𝑉 ∧ (♯‘𝑝) = 3 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → ((𝐴𝑉𝐵𝑉𝐶𝑉) ↔ ((𝑝‘0) ∈ 𝑉 ∧ (𝑝‘1) ∈ 𝑉 ∧ (𝑝‘2) ∈ 𝑉)))
125116, 124mpbird 260 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑝 ∈ Word 𝑉 ∧ (♯‘𝑝) = 3 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → (𝐴𝑉𝐵𝑉𝐶𝑉))
12694, 125jca 515 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝑝 ∈ Word 𝑉 ∧ (♯‘𝑝) = 3 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → (𝑝 ∈ Word 𝑉 ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)))
1271263exp 1120 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑝 ∈ Word 𝑉 → ((♯‘𝑝) = 3 → ((𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)) → (𝑝 ∈ Word 𝑉 ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)))))
128127adantr 484 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑝 ∈ Word 𝑉 ∧ (♯‘𝑓) = 2) → ((♯‘𝑝) = 3 → ((𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)) → (𝑝 ∈ Word 𝑉 ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)))))
12993, 128sylbid 243 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑝 ∈ Word 𝑉 ∧ (♯‘𝑓) = 2) → ((♯‘𝑝) = ((♯‘𝑓) + 1) → ((𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)) → (𝑝 ∈ Word 𝑉 ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)))))
130129impancom 455 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑝 ∈ Word 𝑉 ∧ (♯‘𝑝) = ((♯‘𝑓) + 1)) → ((♯‘𝑓) = 2 → ((𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)) → (𝑝 ∈ Word 𝑉 ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)))))
131130impd 414 . . . . . . . . . . . . . . . . . . . . 21 ((𝑝 ∈ Word 𝑉 ∧ (♯‘𝑝) = ((♯‘𝑓) + 1)) → (((♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → (𝑝 ∈ Word 𝑉 ∧ (𝐴𝑉𝐵𝑉𝐶𝑉))))
13291, 77, 131syl2anc 587 . . . . . . . . . . . . . . . . . . . 20 (𝑓(Walks‘𝐺)𝑝 → (((♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → (𝑝 ∈ Word 𝑉 ∧ (𝐴𝑉𝐵𝑉𝐶𝑉))))
133132imp 410 . . . . . . . . . . . . . . . . . . 19 ((𝑓(Walks‘𝐺)𝑝 ∧ ((♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)))) → (𝑝 ∈ Word 𝑉 ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)))
134 eqwrds3 14407 . . . . . . . . . . . . . . . . . . 19 ((𝑝 ∈ Word 𝑉 ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → (𝑝 = ⟨“𝐴𝐵𝐶”⟩ ↔ ((♯‘𝑝) = 3 ∧ ((𝑝‘0) = 𝐴 ∧ (𝑝‘1) = 𝐵 ∧ (𝑝‘2) = 𝐶))))
135133, 134syl 17 . . . . . . . . . . . . . . . . . 18 ((𝑓(Walks‘𝐺)𝑝 ∧ ((♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)))) → (𝑝 = ⟨“𝐴𝐵𝐶”⟩ ↔ ((♯‘𝑝) = 3 ∧ ((𝑝‘0) = 𝐴 ∧ (𝑝‘1) = 𝐵 ∧ (𝑝‘2) = 𝐶))))
13690, 135mpbird 260 . . . . . . . . . . . . . . . . 17 ((𝑓(Walks‘𝐺)𝑝 ∧ ((♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)))) → 𝑝 = ⟨“𝐴𝐵𝐶”⟩)
137136breq2d 5039 . . . . . . . . . . . . . . . 16 ((𝑓(Walks‘𝐺)𝑝 ∧ ((♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)))) → (𝑓(Walks‘𝐺)𝑝𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩))
138137biimpd 232 . . . . . . . . . . . . . . 15 ((𝑓(Walks‘𝐺)𝑝 ∧ ((♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)))) → (𝑓(Walks‘𝐺)𝑝𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩))
139138ex 416 . . . . . . . . . . . . . 14 (𝑓(Walks‘𝐺)𝑝 → (((♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → (𝑓(Walks‘𝐺)𝑝𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩)))
140139pm2.43a 54 . . . . . . . . . . . . 13 (𝑓(Walks‘𝐺)𝑝 → (((♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → 𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩))
1411403impib 1117 . . . . . . . . . . . 12 ((𝑓(Walks‘𝐺)𝑝 ∧ (♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → 𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩)
142141adantl 485 . . . . . . . . . . 11 (((𝐴𝑉𝐵𝑉𝐶𝑉) ∧ (𝑓(Walks‘𝐺)𝑝 ∧ (♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)))) → 𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩)
143 simpr2 1196 . . . . . . . . . . 11 (((𝐴𝑉𝐵𝑉𝐶𝑉) ∧ (𝑓(Walks‘𝐺)𝑝 ∧ (♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)))) → (♯‘𝑓) = 2)
144142, 143jca 515 . . . . . . . . . 10 (((𝐴𝑉𝐵𝑉𝐶𝑉) ∧ (𝑓(Walks‘𝐺)𝑝 ∧ (♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2)))) → (𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2))
145144ex 416 . . . . . . . . 9 ((𝐴𝑉𝐵𝑉𝐶𝑉) → ((𝑓(Walks‘𝐺)𝑝 ∧ (♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → (𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2)))
146145exlimdv 1939 . . . . . . . 8 ((𝐴𝑉𝐵𝑉𝐶𝑉) → (∃𝑝(𝑓(Walks‘𝐺)𝑝 ∧ (♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → (𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2)))
147146eximdv 1923 . . . . . . 7 ((𝐴𝑉𝐵𝑉𝐶𝑉) → (∃𝑓𝑝(𝑓(Walks‘𝐺)𝑝 ∧ (♯‘𝑓) = 2 ∧ (𝐴 = (𝑝‘0) ∧ 𝐵 = (𝑝‘1) ∧ 𝐶 = (𝑝‘2))) → ∃𝑓(𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2)))
14876, 147syl5com 31 . . . . . 6 ((𝐺 ∈ UMGraph ∧ {𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸) → ((𝐴𝑉𝐵𝑉𝐶𝑉) → ∃𝑓(𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2)))
1491483expib 1123 . . . . 5 (𝐺 ∈ UMGraph → (({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸) → ((𝐴𝑉𝐵𝑉𝐶𝑉) → ∃𝑓(𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2))))
150149com23 86 . . . 4 (𝐺 ∈ UMGraph → ((𝐴𝑉𝐵𝑉𝐶𝑉) → (({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸) → ∃𝑓(𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2))))
151150imp 410 . . 3 ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → (({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸) → ∃𝑓(𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2)))
15275, 151impbid 215 . 2 ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → (∃𝑓(𝑓(Walks‘𝐺)⟨“𝐴𝐵𝐶”⟩ ∧ (♯‘𝑓) = 2) ↔ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸)))
1538, 152bitrd 282 1 ((𝐺 ∈ UMGraph ∧ (𝐴𝑉𝐵𝑉𝐶𝑉)) → (⟨“𝐴𝐵𝐶”⟩ ∈ (𝐴(2 WWalksNOn 𝐺)𝐶) ↔ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399  w3a 1088   = wceq 1542  wex 1786  wcel 2113  {cpr 4515  {ctp 4517   class class class wbr 5027  dom cdm 5519  ran crn 5520  Fun wfun 6327  wf 6329  cfv 6333  (class class class)co 7164  0cc0 10608  1c1 10609   + caddc 10611  2c2 11764  3c3 11765  ...cfz 12974  ..^cfzo 13117  chash 13775  Word cword 13948  ⟨“cs3 14286  Vtxcvtx 26933  iEdgciedg 26934  Edgcedg 26984  UHGraphcuhgr 26993  UPGraphcupgr 27017  UMGraphcumgr 27018  Walkscwlks 27530   WWalksNOn cwwlksnon 27757
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1802  ax-4 1816  ax-5 1916  ax-6 1974  ax-7 2019  ax-8 2115  ax-9 2123  ax-10 2144  ax-11 2161  ax-12 2178  ax-ext 2710  ax-rep 5151  ax-sep 5164  ax-nul 5171  ax-pow 5229  ax-pr 5293  ax-un 7473  ax-ac2 9956  ax-cnex 10664  ax-resscn 10665  ax-1cn 10666  ax-icn 10667  ax-addcl 10668  ax-addrcl 10669  ax-mulcl 10670  ax-mulrcl 10671  ax-mulcom 10672  ax-addass 10673  ax-mulass 10674  ax-distr 10675  ax-i2m1 10676  ax-1ne0 10677  ax-1rid 10678  ax-rnegex 10679  ax-rrecex 10680  ax-cnre 10681  ax-pre-lttri 10682  ax-pre-lttrn 10683  ax-pre-ltadd 10684  ax-pre-mulgt0 10685
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 847  df-ifp 1063  df-3or 1089  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1787  df-nf 1791  df-sb 2074  df-mo 2540  df-eu 2570  df-clab 2717  df-cleq 2730  df-clel 2811  df-nfc 2881  df-ne 2935  df-nel 3039  df-ral 3058  df-rex 3059  df-reu 3060  df-rmo 3061  df-rab 3062  df-v 3399  df-sbc 3680  df-csb 3789  df-dif 3844  df-un 3846  df-in 3848  df-ss 3858  df-pss 3860  df-nul 4210  df-if 4412  df-pw 4487  df-sn 4514  df-pr 4516  df-tp 4518  df-op 4520  df-uni 4794  df-int 4834  df-iun 4880  df-br 5028  df-opab 5090  df-mpt 5108  df-tr 5134  df-id 5425  df-eprel 5430  df-po 5438  df-so 5439  df-fr 5478  df-se 5479  df-we 5480  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-res 5531  df-ima 5532  df-pred 6123  df-ord 6169  df-on 6170  df-lim 6171  df-suc 6172  df-iota 6291  df-fun 6335  df-fn 6336  df-f 6337  df-f1 6338  df-fo 6339  df-f1o 6340  df-fv 6341  df-isom 6342  df-riota 7121  df-ov 7167  df-oprab 7168  df-mpo 7169  df-om 7594  df-1st 7707  df-2nd 7708  df-wrecs 7969  df-recs 8030  df-rdg 8068  df-1o 8124  df-2o 8125  df-oadd 8128  df-er 8313  df-map 8432  df-pm 8433  df-en 8549  df-dom 8550  df-sdom 8551  df-fin 8552  df-dju 9396  df-card 9434  df-ac 9609  df-pnf 10748  df-mnf 10749  df-xr 10750  df-ltxr 10751  df-le 10752  df-sub 10943  df-neg 10944  df-nn 11710  df-2 11772  df-3 11773  df-n0 11970  df-xnn0 12042  df-z 12056  df-uz 12318  df-fz 12975  df-fzo 13118  df-hash 13776  df-word 13949  df-concat 14005  df-s1 14032  df-s2 14292  df-s3 14293  df-edg 26985  df-uhgr 26995  df-upgr 27019  df-umgr 27020  df-wlks 27533  df-wwlks 27760  df-wwlksn 27761  df-wwlksnon 27762
This theorem is referenced by:  wwlks2onsym  27888  usgr2wspthons3  27894  frgr2wwlkeu  28256
  Copyright terms: Public domain W3C validator