Mathbox for Alexander van der Vekens < Previous   Next > Nearby theorems Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  df-spths Structured version   Visualization version   GIF version

Definition df-spths 40924
 Description: Define the set of all simple paths (in an undirected graph). According to Wikipedia ("Path (graph theory)", https://en.wikipedia.org/wiki/Path_(graph_theory), 3-Oct-2017): "A path is a trail in which all vertices (except possibly the first and last) are distinct. ... use the term simple path to refer to a path which contains no repeated vertices." Therefore, a simple path can be represented by an injective mapping f from { 1 , ... , n } and an injective mapping p from { 0 , ... , n }, where f enumerates the (indices of the) different edges, and p enumerates the vertices. So the simple path is also represented by the following sequence: p(0) e(f(1)) p(1) e(f(2)) ... p(n-1) e(f(n)) p(n). (Contributed by Alexander van der Vekens, 20-Oct-2017.) (Revised by AV, 9-Jan-2021.)
Assertion
Ref Expression
df-spths SPathS = (𝑔 ∈ V ↦ {⟨𝑓, 𝑝⟩ ∣ (𝑓(TrailS‘𝑔)𝑝 ∧ Fun 𝑝)})
Distinct variable group:   𝑓,𝑔,𝑝

Detailed syntax breakdown of Definition df-spths
StepHypRef Expression
1 cspths 40920 . 2 class SPathS
2 vg . . 3 setvar 𝑔
3 cvv 3173 . . 3 class V
4 vf . . . . . . 7 setvar 𝑓
54cv 1474 . . . . . 6 class 𝑓
6 vp . . . . . . 7 setvar 𝑝
76cv 1474 . . . . . 6 class 𝑝
82cv 1474 . . . . . . 7 class 𝑔
9 ctrls 40899 . . . . . . 7 class TrailS
108, 9cfv 5804 . . . . . 6 class (TrailS‘𝑔)
115, 7, 10wbr 4583 . . . . 5 wff 𝑓(TrailS‘𝑔)𝑝
127ccnv 5037 . . . . . 6 class 𝑝
1312wfun 5798 . . . . 5 wff Fun 𝑝
1411, 13wa 383 . . . 4 wff (𝑓(TrailS‘𝑔)𝑝 ∧ Fun 𝑝)
1514, 4, 6copab 4642 . . 3 class {⟨𝑓, 𝑝⟩ ∣ (𝑓(TrailS‘𝑔)𝑝 ∧ Fun 𝑝)}
162, 3, 15cmpt 4643 . 2 class (𝑔 ∈ V ↦ {⟨𝑓, 𝑝⟩ ∣ (𝑓(TrailS‘𝑔)𝑝 ∧ Fun 𝑝)})
171, 16wceq 1475 1 wff SPathS = (𝑔 ∈ V ↦ {⟨𝑓, 𝑝⟩ ∣ (𝑓(TrailS‘𝑔)𝑝 ∧ Fun 𝑝)})
 Colors of variables: wff setvar class This definition is referenced by:  spthsfval  40928
 Copyright terms: Public domain W3C validator