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

Theorem wspthsn 27312
Description: The set of simple paths of a fixed length as word. (Contributed by Alexander van der Vekens, 1-Mar-2018.) (Revised by AV, 11-May-2021.)
Assertion
Ref Expression
wspthsn (𝑁 WSPathsN 𝐺) = {𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤}
Distinct variable groups:   𝑓,𝐺,𝑤   𝑤,𝑁
Allowed substitution hint:   𝑁(𝑓)

Proof of Theorem wspthsn
Dummy variables 𝑔 𝑛 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 oveq12 7032 . . . 4 ((𝑛 = 𝑁𝑔 = 𝐺) → (𝑛 WWalksN 𝑔) = (𝑁 WWalksN 𝐺))
2 fveq2 6545 . . . . . . 7 (𝑔 = 𝐺 → (SPaths‘𝑔) = (SPaths‘𝐺))
32breqd 4979 . . . . . 6 (𝑔 = 𝐺 → (𝑓(SPaths‘𝑔)𝑤𝑓(SPaths‘𝐺)𝑤))
43exbidv 1903 . . . . 5 (𝑔 = 𝐺 → (∃𝑓 𝑓(SPaths‘𝑔)𝑤 ↔ ∃𝑓 𝑓(SPaths‘𝐺)𝑤))
54adantl 482 . . . 4 ((𝑛 = 𝑁𝑔 = 𝐺) → (∃𝑓 𝑓(SPaths‘𝑔)𝑤 ↔ ∃𝑓 𝑓(SPaths‘𝐺)𝑤))
61, 5rabeqbidv 3433 . . 3 ((𝑛 = 𝑁𝑔 = 𝐺) → {𝑤 ∈ (𝑛 WWalksN 𝑔) ∣ ∃𝑓 𝑓(SPaths‘𝑔)𝑤} = {𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤})
7 df-wspthsn 27297 . . 3 WSPathsN = (𝑛 ∈ ℕ0, 𝑔 ∈ V ↦ {𝑤 ∈ (𝑛 WWalksN 𝑔) ∣ ∃𝑓 𝑓(SPaths‘𝑔)𝑤})
8 ovex 7055 . . . 4 (𝑁 WWalksN 𝐺) ∈ V
98rabex 5133 . . 3 {𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤} ∈ V
106, 7, 9ovmpoa 7168 . 2 ((𝑁 ∈ ℕ0𝐺 ∈ V) → (𝑁 WSPathsN 𝐺) = {𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤})
117mpondm0 7252 . . 3 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → (𝑁 WSPathsN 𝐺) = ∅)
12 df-wwlksn 27295 . . . . . 6 WWalksN = (𝑛 ∈ ℕ0, 𝑔 ∈ V ↦ {𝑤 ∈ (WWalks‘𝑔) ∣ (♯‘𝑤) = (𝑛 + 1)})
1312mpondm0 7252 . . . . 5 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → (𝑁 WWalksN 𝐺) = ∅)
1413rabeqdv 3432 . . . 4 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → {𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤} = {𝑤 ∈ ∅ ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤})
15 rab0 4263 . . . 4 {𝑤 ∈ ∅ ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤} = ∅
1614, 15syl6eq 2849 . . 3 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → {𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤} = ∅)
1711, 16eqtr4d 2836 . 2 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → (𝑁 WSPathsN 𝐺) = {𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤})
1810, 17pm2.61i 183 1 (𝑁 WSPathsN 𝐺) = {𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤}
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wb 207  wa 396   = wceq 1525  wex 1765  wcel 2083  {crab 3111  Vcvv 3440  c0 4217   class class class wbr 4968  cfv 6232  (class class class)co 7023  1c1 10391   + caddc 10393  0cn0 11751  chash 13544  SPathscspths 27180  WWalkscwwlks 27289   WWalksN cwwlksn 27290   WSPathsN cwwspthsn 27292
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1781  ax-4 1795  ax-5 1892  ax-6 1951  ax-7 1996  ax-8 2085  ax-9 2093  ax-10 2114  ax-11 2128  ax-12 2143  ax-13 2346  ax-ext 2771  ax-sep 5101  ax-nul 5108  ax-pow 5164  ax-pr 5228
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 843  df-3an 1082  df-tru 1528  df-ex 1766  df-nf 1770  df-sb 2045  df-mo 2578  df-eu 2614  df-clab 2778  df-cleq 2790  df-clel 2865  df-nfc 2937  df-ral 3112  df-rex 3113  df-rab 3116  df-v 3442  df-sbc 3712  df-dif 3868  df-un 3870  df-in 3872  df-ss 3880  df-nul 4218  df-if 4388  df-sn 4479  df-pr 4481  df-op 4485  df-uni 4752  df-br 4969  df-opab 5031  df-id 5355  df-xp 5456  df-rel 5457  df-cnv 5458  df-co 5459  df-dm 5460  df-iota 6196  df-fun 6234  df-fv 6240  df-ov 7026  df-oprab 7027  df-mpo 7028  df-wwlksn 27295  df-wspthsn 27297
This theorem is referenced by:  iswspthn  27313  wspn0  27389
  Copyright terms: Public domain W3C validator