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 44836
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 27554 . . 3 (𝐹(Walks‘𝐺)𝑃 → (𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V))
2 eqid 2738 . . . . . . . . 9 (Vtx‘𝐺) = (Vtx‘𝐺)
3 eqid 2738 . . . . . . . . 9 (iEdg‘𝐺) = (iEdg‘𝐺)
42, 3iswlk 27552 . . . . . . . 8 ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) → (𝐹(Walks‘𝐺)𝑃 ↔ (𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))))))
5 simpr1 1195 . . . . . . . . . . 11 ((((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph) ∧ (𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))))) → 𝐹 ∈ Word dom (iEdg‘𝐺))
6 simpr2 1196 . . . . . . . . . . 11 ((((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph) ∧ (𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))))) → 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺))
7 df-ifp 1063 . . . . . . . . . . . . . . . . 17 (if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))) ↔ (((𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}) ∨ (¬ (𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘)))))
8 dfsn2 4529 . . . . . . . . . . . . . . . . . . . . . . 23 {(𝑃𝑘)} = {(𝑃𝑘), (𝑃𝑘)}
9 preq2 4625 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑃𝑘) = (𝑃‘(𝑘 + 1)) → {(𝑃𝑘), (𝑃𝑘)} = {(𝑃𝑘), (𝑃‘(𝑘 + 1))})
108, 9syl5eq 2785 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑃𝑘) = (𝑃‘(𝑘 + 1)) → {(𝑃𝑘)} = {(𝑃𝑘), (𝑃‘(𝑘 + 1))})
1110eqeq2d 2749 . . . . . . . . . . . . . . . . . . . . 21 ((𝑃𝑘) = (𝑃‘(𝑘 + 1)) → (((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)} ↔ ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))}))
1211biimpa 480 . . . . . . . . . . . . . . . . . . . 20 (((𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}) → ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))})
1312a1d 25 . . . . . . . . . . . . . . . . . . 19 (((𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}) → ((((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) ∧ 𝑘 ∈ (0..^(♯‘𝐹))) → ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))}))
14 simpr 488 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph) → 𝐺 ∈ UPGraph)
15 simpl 486 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) → 𝐹 ∈ Word dom (iEdg‘𝐺))
16 eqid 2738 . . . . . . . . . . . . . . . . . . . . . . . 24 (Edg‘𝐺) = (Edg‘𝐺)
173, 16upgredginwlk 27577 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝐺 ∈ UPGraph ∧ 𝐹 ∈ Word dom (iEdg‘𝐺)) → (𝑘 ∈ (0..^(♯‘𝐹)) → ((iEdg‘𝐺)‘(𝐹𝑘)) ∈ (Edg‘𝐺)))
1814, 15, 17syl2anr 600 . . . . . . . . . . . . . . . . . . . . . 22 (((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) → (𝑘 ∈ (0..^(♯‘𝐹)) → ((iEdg‘𝐺)‘(𝐹𝑘)) ∈ (Edg‘𝐺)))
1918imp 410 . . . . . . . . . . . . . . . . . . . . 21 ((((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) ∧ 𝑘 ∈ (0..^(♯‘𝐹))) → ((iEdg‘𝐺)‘(𝐹𝑘)) ∈ (Edg‘𝐺))
20 simprr 773 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) → 𝐺 ∈ UPGraph)
2120adantr 484 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) ∧ 𝑘 ∈ (0..^(♯‘𝐹))) → 𝐺 ∈ UPGraph)
2221adantr 484 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) ∧ 𝑘 ∈ (0..^(♯‘𝐹))) ∧ ((iEdg‘𝐺)‘(𝐹𝑘)) ∈ (Edg‘𝐺)) → 𝐺 ∈ UPGraph)
2322adantr 484 . . . . . . . . . . . . . . . . . . . . . . . 24 ((((((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) ∧ 𝑘 ∈ (0..^(♯‘𝐹))) ∧ ((iEdg‘𝐺)‘(𝐹𝑘)) ∈ (Edg‘𝐺)) ∧ (¬ (𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘)))) → 𝐺 ∈ UPGraph)
24 simplr 769 . . . . . . . . . . . . . . . . . . . . . . . 24 ((((((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) ∧ 𝑘 ∈ (0..^(♯‘𝐹))) ∧ ((iEdg‘𝐺)‘(𝐹𝑘)) ∈ (Edg‘𝐺)) ∧ (¬ (𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘)))) → ((iEdg‘𝐺)‘(𝐹𝑘)) ∈ (Edg‘𝐺))
25 simprr 773 . . . . . . . . . . . . . . . . . . . . . . . 24 ((((((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) ∧ 𝑘 ∈ (0..^(♯‘𝐹))) ∧ ((iEdg‘𝐺)‘(𝐹𝑘)) ∈ (Edg‘𝐺)) ∧ (¬ (𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘)))) → {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘)))
26 df-ne 2935 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑃𝑘) ≠ (𝑃‘(𝑘 + 1)) ↔ ¬ (𝑃𝑘) = (𝑃‘(𝑘 + 1)))
27 fvexd 6689 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑃𝑘) ≠ (𝑃‘(𝑘 + 1)) → (𝑃𝑘) ∈ V)
28 fvexd 6689 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑃𝑘) ≠ (𝑃‘(𝑘 + 1)) → (𝑃‘(𝑘 + 1)) ∈ V)
29 id 22 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑃𝑘) ≠ (𝑃‘(𝑘 + 1)) → (𝑃𝑘) ≠ (𝑃‘(𝑘 + 1)))
3027, 28, 293jca 1129 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑃𝑘) ≠ (𝑃‘(𝑘 + 1)) → ((𝑃𝑘) ∈ V ∧ (𝑃‘(𝑘 + 1)) ∈ V ∧ (𝑃𝑘) ≠ (𝑃‘(𝑘 + 1))))
3126, 30sylbir 238 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (¬ (𝑃𝑘) = (𝑃‘(𝑘 + 1)) → ((𝑃𝑘) ∈ V ∧ (𝑃‘(𝑘 + 1)) ∈ V ∧ (𝑃𝑘) ≠ (𝑃‘(𝑘 + 1))))
3231adantr 484 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((¬ (𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))) → ((𝑃𝑘) ∈ V ∧ (𝑃‘(𝑘 + 1)) ∈ V ∧ (𝑃𝑘) ≠ (𝑃‘(𝑘 + 1))))
3332adantl 485 . . . . . . . . . . . . . . . . . . . . . . . 24 ((((((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) ∧ 𝑘 ∈ (0..^(♯‘𝐹))) ∧ ((iEdg‘𝐺)‘(𝐹𝑘)) ∈ (Edg‘𝐺)) ∧ (¬ (𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘)))) → ((𝑃𝑘) ∈ V ∧ (𝑃‘(𝑘 + 1)) ∈ V ∧ (𝑃𝑘) ≠ (𝑃‘(𝑘 + 1))))
342, 16upgredgpr 27087 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝐺 ∈ UPGraph ∧ ((iEdg‘𝐺)‘(𝐹𝑘)) ∈ (Edg‘𝐺) ∧ {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))) ∧ ((𝑃𝑘) ∈ V ∧ (𝑃‘(𝑘 + 1)) ∈ V ∧ (𝑃𝑘) ≠ (𝑃‘(𝑘 + 1)))) → {(𝑃𝑘), (𝑃‘(𝑘 + 1))} = ((iEdg‘𝐺)‘(𝐹𝑘)))
3523, 24, 25, 33, 34syl31anc 1374 . . . . . . . . . . . . . . . . . . . . . . 23 ((((((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) ∧ 𝑘 ∈ (0..^(♯‘𝐹))) ∧ ((iEdg‘𝐺)‘(𝐹𝑘)) ∈ (Edg‘𝐺)) ∧ (¬ (𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘)))) → {(𝑃𝑘), (𝑃‘(𝑘 + 1))} = ((iEdg‘𝐺)‘(𝐹𝑘)))
3635eqcomd 2744 . . . . . . . . . . . . . . . . . . . . . 22 ((((((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) ∧ 𝑘 ∈ (0..^(♯‘𝐹))) ∧ ((iEdg‘𝐺)‘(𝐹𝑘)) ∈ (Edg‘𝐺)) ∧ (¬ (𝑃𝑘) = (𝑃‘(𝑘 + 1)) ∧ {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘)))) → ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))})
3736exp31 423 . . . . . . . . . . . . . . . . . . . . 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 856 . . . . . . . . . . . . . . . . . 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 245 . . . . . . . . . . . . . . . 16 ((((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) ∧ 𝑘 ∈ (0..^(♯‘𝐹))) → (if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))) → ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))}))
4342ralimdva 3091 . . . . . . . . . . . . . . 15 (((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) ∧ ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph)) → (∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))) → ∀𝑘 ∈ (0..^(♯‘𝐹))((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))}))
4443ex 416 . . . . . . . . . . . . . 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 1118 . . . . . . . . . . . 12 ((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘)))) → (((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph) → ∀𝑘 ∈ (0..^(♯‘𝐹))((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))}))
4746impcom 411 . . . . . . . . . . 11 ((((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) ∧ 𝐺 ∈ UPGraph) ∧ (𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))))) → ∀𝑘 ∈ (0..^(♯‘𝐹))((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))})
485, 6, 473jca 1129 . . . . . . . . . 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 423 . . . . . . . . 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 243 . . . . . . 7 ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) → (𝐹(Walks‘𝐺)𝑃 → (𝐺 ∈ UPGraph → (𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))}))))
5251impd 414 . . . . . 6 ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) → ((𝐹(Walks‘𝐺)𝑃𝐺 ∈ UPGraph) → (𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))})))
5352impcom 411 . . . . 5 (((𝐹(Walks‘𝐺)𝑃𝐺 ∈ UPGraph) ∧ (𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V)) → (𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))}))
542, 3isupwlk 44832 . . . . . 6 ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) → (𝐹(UPWalks‘𝐺)𝑃 ↔ (𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))})))
5554adantl 485 . . . . 5 (((𝐹(Walks‘𝐺)𝑃𝐺 ∈ UPGraph) ∧ (𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V)) → (𝐹(UPWalks‘𝐺)𝑃 ↔ (𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘), (𝑃‘(𝑘 + 1))})))
5653, 55mpbird 260 . . . 4 (((𝐹(Walks‘𝐺)𝑃𝐺 ∈ UPGraph) ∧ (𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V)) → 𝐹(UPWalks‘𝐺)𝑃)
5756exp31 423 . . 3 (𝐹(Walks‘𝐺)𝑃 → (𝐺 ∈ UPGraph → ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) → 𝐹(UPWalks‘𝐺)𝑃)))
581, 57mpid 44 . 2 (𝐹(Walks‘𝐺)𝑃 → (𝐺 ∈ UPGraph → 𝐹(UPWalks‘𝐺)𝑃))
5958impcom 411 1 ((𝐺 ∈ UPGraph ∧ 𝐹(Walks‘𝐺)𝑃) → 𝐹(UPWalks‘𝐺)𝑃)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 399  wo 846  if-wif 1062  w3a 1088   = wceq 1542  wcel 2114  wne 2934  wral 3053  Vcvv 3398  wss 3843  {csn 4516  {cpr 4518   class class class wbr 5030  dom cdm 5525  wf 6335  cfv 6339  (class class class)co 7170  0cc0 10615  1c1 10616   + caddc 10618  ...cfz 12981  ..^cfzo 13124  chash 13782  Word cword 13955  Vtxcvtx 26941  iEdgciedg 26942  Edgcedg 26992  UPGraphcupgr 27025  Walkscwlks 27538  UPWalkscupwlks 44829
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 1917  ax-6 1975  ax-7 2020  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2162  ax-12 2179  ax-ext 2710  ax-rep 5154  ax-sep 5167  ax-nul 5174  ax-pow 5232  ax-pr 5296  ax-un 7479  ax-cnex 10671  ax-resscn 10672  ax-1cn 10673  ax-icn 10674  ax-addcl 10675  ax-addrcl 10676  ax-mulcl 10677  ax-mulrcl 10678  ax-mulcom 10679  ax-addass 10680  ax-mulass 10681  ax-distr 10682  ax-i2m1 10683  ax-1ne0 10684  ax-1rid 10685  ax-rnegex 10686  ax-rrecex 10687  ax-cnre 10688  ax-pre-lttri 10689  ax-pre-lttrn 10690  ax-pre-ltadd 10691  ax-pre-mulgt0 10692
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 2075  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-rab 3062  df-v 3400  df-sbc 3681  df-csb 3791  df-dif 3846  df-un 3848  df-in 3850  df-ss 3860  df-pss 3862  df-nul 4212  df-if 4415  df-pw 4490  df-sn 4517  df-pr 4519  df-tp 4521  df-op 4523  df-uni 4797  df-int 4837  df-iun 4883  df-br 5031  df-opab 5093  df-mpt 5111  df-tr 5137  df-id 5429  df-eprel 5434  df-po 5442  df-so 5443  df-fr 5483  df-we 5485  df-xp 5531  df-rel 5532  df-cnv 5533  df-co 5534  df-dm 5535  df-rn 5536  df-res 5537  df-ima 5538  df-pred 6129  df-ord 6175  df-on 6176  df-lim 6177  df-suc 6178  df-iota 6297  df-fun 6341  df-fn 6342  df-f 6343  df-f1 6344  df-fo 6345  df-f1o 6346  df-fv 6347  df-riota 7127  df-ov 7173  df-oprab 7174  df-mpo 7175  df-om 7600  df-1st 7714  df-2nd 7715  df-wrecs 7976  df-recs 8037  df-rdg 8075  df-1o 8131  df-2o 8132  df-oadd 8135  df-er 8320  df-map 8439  df-en 8556  df-dom 8557  df-sdom 8558  df-fin 8559  df-dju 9403  df-card 9441  df-pnf 10755  df-mnf 10756  df-xr 10757  df-ltxr 10758  df-le 10759  df-sub 10950  df-neg 10951  df-nn 11717  df-2 11779  df-n0 11977  df-xnn0 12049  df-z 12063  df-uz 12325  df-fz 12982  df-fzo 13125  df-hash 13783  df-word 13956  df-edg 26993  df-uhgr 27003  df-upgr 27027  df-wlks 27541  df-upwlks 44830
This theorem is referenced by:  upgrwlkupwlkb  44837
  Copyright terms: Public domain W3C validator