Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  upgrwlkupwlk Structured version   Visualization version   GIF version

Theorem upgrwlkupwlk 42393
Description: In a pseudograph, a walk is a simple walk. (Contributed by AV, 30-Dec-2020.) (Proof shortened by AV, 2-Jan-2021.)
Assertion
Ref Expression
upgrwlkupwlk ((𝐺 ∈ UPGraph ∧ 𝐹(Walks‘𝐺)𝑃) → 𝐹(UPWalks‘𝐺)𝑃)

Proof of Theorem upgrwlkupwlk
Dummy variable 𝑘 is distinct from all other variables.
StepHypRef Expression
1 wlkv 26802 . . 3 (𝐹(Walks‘𝐺)𝑃 → (𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V))
2 eqid 2765 . . . . . . . . 9 (Vtx‘𝐺) = (Vtx‘𝐺)
3 eqid 2765 . . . . . . . . 9 (iEdg‘𝐺) = (iEdg‘𝐺)
42, 3iswlk 26800 . . . . . . . 8 ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) → (𝐹(Walks‘𝐺)𝑃 ↔ (𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))))))
5 simpr1 1248 . . . . . . . . . . 11 ((((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph) ∧ (𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))))) → 𝐹 ∈ Word dom (iEdg‘𝐺))
6 simpr2 1250 . . . . . . . . . . 11 ((((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph) ∧ (𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))))) → 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺))
7 df-ifp 1086 . . . . . . . . . . . . . . . . 17 (if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))) ↔ (((𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}) ∨ (¬ (𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘)))))
8 dfsn2 4349 . . . . . . . . . . . . . . . . . . . . . . 23 {(𝑃𝑘)} = {(𝑃𝑘), (𝑃𝑘)}
9 preq2 4426 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑃𝑘) = (𝑃‘(𝑘 + 1)) → {(𝑃𝑘), (𝑃𝑘)} = {(𝑃𝑘), (𝑃‘(𝑘 + 1))})
108, 9syl5eq 2811 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑃𝑘) = (𝑃‘(𝑘 + 1)) → {(𝑃𝑘)} = {(𝑃𝑘), (𝑃‘(𝑘 + 1))})
1110eqeq2d 2775 . . . . . . . . . . . . . . . . . . . . 21 ((𝑃𝑘) = (𝑃‘(𝑘 + 1)) → (((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)} ↔ ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))}))
1211biimpa 468 . . . . . . . . . . . . . . . . . . . 20 (((𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}) → ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))})
1312a1d 25 . . . . . . . . . . . . . . . . . . 19 (((𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}) → ((((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) ∧ 𝑘 ∈ (0..^(♯‘𝐹))) → ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))}))
14 simpr 477 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph) → 𝐺 ∈ UPGraph)
15 simpl 474 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) → 𝐹 ∈ Word dom (iEdg‘𝐺))
16 eqid 2765 . . . . . . . . . . . . . . . . . . . . . . . 24 (Edg‘𝐺) = (Edg‘𝐺)
173, 16upgredginwlk 26826 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝐺 ∈ UPGraph ∧ 𝐹 ∈ Word dom (iEdg‘𝐺)) → (𝑘 ∈ (0..^(♯‘𝐹)) → ((iEdg‘𝐺)‘(𝐹𝑘)) ∈ (Edg‘𝐺)))
1814, 15, 17syl2anr 590 . . . . . . . . . . . . . . . . . . . . . 22 (((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) → (𝑘 ∈ (0..^(♯‘𝐹)) → ((iEdg‘𝐺)‘(𝐹𝑘)) ∈ (Edg‘𝐺)))
1918imp 395 . . . . . . . . . . . . . . . . . . . . 21 ((((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) ∧ 𝑘 ∈ (0..^(♯‘𝐹))) → ((iEdg‘𝐺)‘(𝐹𝑘)) ∈ (Edg‘𝐺))
20 simprr 789 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) → 𝐺 ∈ UPGraph)
2120adantr 472 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) ∧ 𝑘 ∈ (0..^(♯‘𝐹))) → 𝐺 ∈ UPGraph)
2221adantr 472 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) ∧ 𝑘 ∈ (0..^(♯‘𝐹))) ∧ ((iEdg‘𝐺)‘(𝐹𝑘)) ∈ (Edg‘𝐺)) → 𝐺 ∈ UPGraph)
2322adantr 472 . . . . . . . . . . . . . . . . . . . . . . . 24 ((((((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) ∧ 𝑘 ∈ (0..^(♯‘𝐹))) ∧ ((iEdg‘𝐺)‘(𝐹𝑘)) ∈ (Edg‘𝐺)) ∧ (¬ (𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘)))) → 𝐺 ∈ UPGraph)
24 simplr 785 . . . . . . . . . . . . . . . . . . . . . . . 24 ((((((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) ∧ 𝑘 ∈ (0..^(♯‘𝐹))) ∧ ((iEdg‘𝐺)‘(𝐹𝑘)) ∈ (Edg‘𝐺)) ∧ (¬ (𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘)))) → ((iEdg‘𝐺)‘(𝐹𝑘)) ∈ (Edg‘𝐺))
25 simprr 789 . . . . . . . . . . . . . . . . . . . . . . . 24 ((((((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) ∧ 𝑘 ∈ (0..^(♯‘𝐹))) ∧ ((iEdg‘𝐺)‘(𝐹𝑘)) ∈ (Edg‘𝐺)) ∧ (¬ (𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘)))) → {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘)))
26 df-ne 2938 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑃𝑘) ≠ (𝑃‘(𝑘 + 1)) ↔ ¬ (𝑃𝑘) = (𝑃‘(𝑘 + 1)))
27 fvexd 6392 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑃𝑘) ≠ (𝑃‘(𝑘 + 1)) → (𝑃𝑘) ∈ V)
28 fvexd 6392 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑃𝑘) ≠ (𝑃‘(𝑘 + 1)) → (𝑃‘(𝑘 + 1)) ∈ V)
29 id 22 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑃𝑘) ≠ (𝑃‘(𝑘 + 1)) → (𝑃𝑘) ≠ (𝑃‘(𝑘 + 1)))
3027, 28, 293jca 1158 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑃𝑘) ≠ (𝑃‘(𝑘 + 1)) → ((𝑃𝑘) ∈ V ∧ (𝑃‘(𝑘 + 1)) ∈ V ∧ (𝑃𝑘) ≠ (𝑃‘(𝑘 + 1))))
3126, 30sylbir 226 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (¬ (𝑃𝑘) = (𝑃‘(𝑘 + 1)) → ((𝑃𝑘) ∈ V ∧ (𝑃‘(𝑘 + 1)) ∈ V ∧ (𝑃𝑘) ≠ (𝑃‘(𝑘 + 1))))
3231adantr 472 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((¬ (𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))) → ((𝑃𝑘) ∈ V ∧ (𝑃‘(𝑘 + 1)) ∈ V ∧ (𝑃𝑘) ≠ (𝑃‘(𝑘 + 1))))
3332adantl 473 . . . . . . . . . . . . . . . . . . . . . . . 24 ((((((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) ∧ 𝑘 ∈ (0..^(♯‘𝐹))) ∧ ((iEdg‘𝐺)‘(𝐹𝑘)) ∈ (Edg‘𝐺)) ∧ (¬ (𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘)))) → ((𝑃𝑘) ∈ V ∧ (𝑃‘(𝑘 + 1)) ∈ V ∧ (𝑃𝑘) ≠ (𝑃‘(𝑘 + 1))))
342, 16upgredgpr 26318 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝐺 ∈ UPGraph ∧ ((iEdg‘𝐺)‘(𝐹𝑘)) ∈ (Edg‘𝐺) ∧ {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))) ∧ ((𝑃𝑘) ∈ V ∧ (𝑃‘(𝑘 + 1)) ∈ V ∧ (𝑃𝑘) ≠ (𝑃‘(𝑘 + 1)))) → {(𝑃𝑘), (𝑃‘(𝑘 + 1))} = ((iEdg‘𝐺)‘(𝐹𝑘)))
3523, 24, 25, 33, 34syl31anc 1492 . . . . . . . . . . . . . . . . . . . . . . 23 ((((((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) ∧ 𝑘 ∈ (0..^(♯‘𝐹))) ∧ ((iEdg‘𝐺)‘(𝐹𝑘)) ∈ (Edg‘𝐺)) ∧ (¬ (𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘)))) → {(𝑃𝑘), (𝑃‘(𝑘 + 1))} = ((iEdg‘𝐺)‘(𝐹𝑘)))
3635eqcomd 2771 . . . . . . . . . . . . . . . . . . . . . 22 ((((((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) ∧ 𝑘 ∈ (0..^(♯‘𝐹))) ∧ ((iEdg‘𝐺)‘(𝐹𝑘)) ∈ (Edg‘𝐺)) ∧ (¬ (𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘)))) → ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))})
3736exp31 410 . . . . . . . . . . . . . . . . . . . . 21 ((((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) ∧ 𝑘 ∈ (0..^(♯‘𝐹))) → (((iEdg‘𝐺)‘(𝐹𝑘)) ∈ (Edg‘𝐺) → ((¬ (𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))) → ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))})))
3819, 37mpd 15 . . . . . . . . . . . . . . . . . . . 20 ((((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) ∧ 𝑘 ∈ (0..^(♯‘𝐹))) → ((¬ (𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))) → ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))}))
3938com12 32 . . . . . . . . . . . . . . . . . . 19 ((¬ (𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))) → ((((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) ∧ 𝑘 ∈ (0..^(♯‘𝐹))) → ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))}))
4013, 39jaoi 883 . . . . . . . . . . . . . . . . . 18 ((((𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}) ∨ (¬ (𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘)))) → ((((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) ∧ 𝑘 ∈ (0..^(♯‘𝐹))) → ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))}))
4140com12 32 . . . . . . . . . . . . . . . . 17 ((((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) ∧ 𝑘 ∈ (0..^(♯‘𝐹))) → ((((𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}) ∨ (¬ (𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘)))) → ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))}))
427, 41syl5bi 233 . . . . . . . . . . . . . . . 16 ((((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) ∧ 𝑘 ∈ (0..^(♯‘𝐹))) → (if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))) → ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))}))
4342ralimdva 3109 . . . . . . . . . . . . . . 15 (((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) → (∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))) → ∀𝑘 ∈ (0..^(♯‘𝐹))((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))}))
4443ex 401 . . . . . . . . . . . . . 14 ((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) → (((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph) → (∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))) → ∀𝑘 ∈ (0..^(♯‘𝐹))((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))})))
4544com23 86 . . . . . . . . . . . . 13 ((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) → (∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))) → (((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph) → ∀𝑘 ∈ (0..^(♯‘𝐹))((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))})))
46453impia 1145 . . . . . . . . . . . 12 ((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘)))) → (((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph) → ∀𝑘 ∈ (0..^(♯‘𝐹))((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))}))
4746impcom 396 . . . . . . . . . . 11 ((((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph) ∧ (𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))))) → ∀𝑘 ∈ (0..^(♯‘𝐹))((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))})
485, 6, 473jca 1158 . . . . . . . . . 10 ((((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph) ∧ (𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))))) → (𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))}))
4948exp31 410 . . . . . . . . 9 ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) → (𝐺 ∈ UPGraph → ((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘)))) → (𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))}))))
5049com23 86 . . . . . . . 8 ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) → ((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘)))) → (𝐺 ∈ UPGraph → (𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))}))))
514, 50sylbid 231 . . . . . . 7 ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) → (𝐹(Walks‘𝐺)𝑃 → (𝐺 ∈ UPGraph → (𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))}))))
5251impd 398 . . . . . 6 ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) → ((𝐹(Walks‘𝐺)𝑃𝐺 ∈ UPGraph) → (𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))})))
5352impcom 396 . . . . 5 (((𝐹(Walks‘𝐺)𝑃𝐺 ∈ UPGraph) ∧ (𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V)) → (𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))}))
542, 3isupwlk 42389 . . . . . 6 ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) → (𝐹(UPWalks‘𝐺)𝑃 ↔ (𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))})))
5554adantl 473 . . . . 5 (((𝐹(Walks‘𝐺)𝑃𝐺 ∈ UPGraph) ∧ (𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V)) → (𝐹(UPWalks‘𝐺)𝑃 ↔ (𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))})))
5653, 55mpbird 248 . . . 4 (((𝐹(Walks‘𝐺)𝑃𝐺 ∈ UPGraph) ∧ (𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V)) → 𝐹(UPWalks‘𝐺)𝑃)
5756exp31 410 . . 3 (𝐹(Walks‘𝐺)𝑃 → (𝐺 ∈ UPGraph → ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) → 𝐹(UPWalks‘𝐺)𝑃)))
581, 57mpid 44 . 2 (𝐹(Walks‘𝐺)𝑃 → (𝐺 ∈ UPGraph → 𝐹(UPWalks‘𝐺)𝑃))
5958impcom 396 1 ((𝐺 ∈ UPGraph ∧ 𝐹(Walks‘𝐺)𝑃) → 𝐹(UPWalks‘𝐺)𝑃)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 197  wa 384  wo 873  if-wif 1085  w3a 1107   = wceq 1652  wcel 2155  wne 2937  wral 3055  Vcvv 3350  wss 3734  {csn 4336  {cpr 4338   class class class wbr 4811  dom cdm 5279  wf 6066  cfv 6070  (class class class)co 6844  0cc0 10191  1c1 10192   + caddc 10194  ...cfz 12536  ..^cfzo 12676  chash 13324  Word cword 13489  Vtxcvtx 26168  iEdgciedg 26169  Edgcedg 26219  UPGraphcupgr 26255  Walkscwlks 26786  UPWalkscupwlks 42386
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1890  ax-4 1904  ax-5 2005  ax-6 2070  ax-7 2105  ax-8 2157  ax-9 2164  ax-10 2183  ax-11 2198  ax-12 2211  ax-13 2352  ax-ext 2743  ax-rep 4932  ax-sep 4943  ax-nul 4951  ax-pow 5003  ax-pr 5064  ax-un 7149  ax-cnex 10247  ax-resscn 10248  ax-1cn 10249  ax-icn 10250  ax-addcl 10251  ax-addrcl 10252  ax-mulcl 10253  ax-mulrcl 10254  ax-mulcom 10255  ax-addass 10256  ax-mulass 10257  ax-distr 10258  ax-i2m1 10259  ax-1ne0 10260  ax-1rid 10261  ax-rnegex 10262  ax-rrecex 10263  ax-cnre 10264  ax-pre-lttri 10265  ax-pre-lttrn 10266  ax-pre-ltadd 10267  ax-pre-mulgt0 10268
This theorem depends on definitions:  df-bi 198  df-an 385  df-or 874  df-ifp 1086  df-3or 1108  df-3an 1109  df-tru 1656  df-ex 1875  df-nf 1879  df-sb 2063  df-mo 2565  df-eu 2582  df-clab 2752  df-cleq 2758  df-clel 2761  df-nfc 2896  df-ne 2938  df-nel 3041  df-ral 3060  df-rex 3061  df-reu 3062  df-rmo 3063  df-rab 3064  df-v 3352  df-sbc 3599  df-csb 3694  df-dif 3737  df-un 3739  df-in 3741  df-ss 3748  df-pss 3750  df-nul 4082  df-if 4246  df-pw 4319  df-sn 4337  df-pr 4339  df-tp 4341  df-op 4343  df-uni 4597  df-int 4636  df-iun 4680  df-br 4812  df-opab 4874  df-mpt 4891  df-tr 4914  df-id 5187  df-eprel 5192  df-po 5200  df-so 5201  df-fr 5238  df-we 5240  df-xp 5285  df-rel 5286  df-cnv 5287  df-co 5288  df-dm 5289  df-rn 5290  df-res 5291  df-ima 5292  df-pred 5867  df-ord 5913  df-on 5914  df-lim 5915  df-suc 5916  df-iota 6033  df-fun 6072  df-fn 6073  df-f 6074  df-f1 6075  df-fo 6076  df-f1o 6077  df-fv 6078  df-riota 6805  df-ov 6847  df-oprab 6848  df-mpt2 6849  df-om 7266  df-1st 7368  df-2nd 7369  df-wrecs 7612  df-recs 7674  df-rdg 7712  df-1o 7766  df-2o 7767  df-oadd 7770  df-er 7949  df-map 8064  df-pm 8065  df-en 8163  df-dom 8164  df-sdom 8165  df-fin 8166  df-card 9018  df-cda 9245  df-pnf 10332  df-mnf 10333  df-xr 10334  df-ltxr 10335  df-le 10336  df-sub 10524  df-neg 10525  df-nn 11277  df-2 11337  df-n0 11541  df-xnn0 11613  df-z 11627  df-uz 11890  df-fz 12537  df-fzo 12677  df-hash 13325  df-word 13490  df-edg 26220  df-uhgr 26233  df-upgr 26257  df-wlks 26789  df-upwlks 42387
This theorem is referenced by:  upgrwlkupwlkb  42394
  Copyright terms: Public domain W3C validator