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

Theorem wspthsn 27628
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 7167 . . . 4 ((𝑛 = 𝑁𝑔 = 𝐺) → (𝑛 WWalksN 𝑔) = (𝑁 WWalksN 𝐺))
2 fveq2 6672 . . . . . . 7 (𝑔 = 𝐺 → (SPaths‘𝑔) = (SPaths‘𝐺))
32breqd 5079 . . . . . 6 (𝑔 = 𝐺 → (𝑓(SPaths‘𝑔)𝑤𝑓(SPaths‘𝐺)𝑤))
43exbidv 1922 . . . . 5 (𝑔 = 𝐺 → (∃𝑓 𝑓(SPaths‘𝑔)𝑤 ↔ ∃𝑓 𝑓(SPaths‘𝐺)𝑤))
54adantl 484 . . . 4 ((𝑛 = 𝑁𝑔 = 𝐺) → (∃𝑓 𝑓(SPaths‘𝑔)𝑤 ↔ ∃𝑓 𝑓(SPaths‘𝐺)𝑤))
61, 5rabeqbidv 3487 . . 3 ((𝑛 = 𝑁𝑔 = 𝐺) → {𝑤 ∈ (𝑛 WWalksN 𝑔) ∣ ∃𝑓 𝑓(SPaths‘𝑔)𝑤} = {𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤})
7 df-wspthsn 27613 . . 3 WSPathsN = (𝑛 ∈ ℕ0, 𝑔 ∈ V ↦ {𝑤 ∈ (𝑛 WWalksN 𝑔) ∣ ∃𝑓 𝑓(SPaths‘𝑔)𝑤})
8 ovex 7191 . . . 4 (𝑁 WWalksN 𝐺) ∈ V
98rabex 5237 . . 3 {𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤} ∈ V
106, 7, 9ovmpoa 7307 . 2 ((𝑁 ∈ ℕ0𝐺 ∈ V) → (𝑁 WSPathsN 𝐺) = {𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤})
117mpondm0 7388 . . 3 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → (𝑁 WSPathsN 𝐺) = ∅)
12 df-wwlksn 27611 . . . . . 6 WWalksN = (𝑛 ∈ ℕ0, 𝑔 ∈ V ↦ {𝑤 ∈ (WWalks‘𝑔) ∣ (♯‘𝑤) = (𝑛 + 1)})
1312mpondm0 7388 . . . . 5 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → (𝑁 WWalksN 𝐺) = ∅)
1413rabeqdv 3486 . . . 4 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → {𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤} = {𝑤 ∈ ∅ ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤})
15 rab0 4339 . . . 4 {𝑤 ∈ ∅ ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤} = ∅
1614, 15syl6eq 2874 . . 3 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → {𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤} = ∅)
1711, 16eqtr4d 2861 . 2 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → (𝑁 WSPathsN 𝐺) = {𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤})
1810, 17pm2.61i 184 1 (𝑁 WSPathsN 𝐺) = {𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤}
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wb 208  wa 398   = wceq 1537  wex 1780  wcel 2114  {crab 3144  Vcvv 3496  c0 4293   class class class wbr 5068  cfv 6357  (class class class)co 7158  1c1 10540   + caddc 10542  0cn0 11900  chash 13693  SPathscspths 27496  WWalkscwwlks 27605   WWalksN cwwlksn 27606   WSPathsN cwwspthsn 27608
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2795  ax-sep 5205  ax-nul 5212  ax-pow 5268  ax-pr 5332
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  df-clab 2802  df-cleq 2816  df-clel 2895  df-nfc 2965  df-ral 3145  df-rex 3146  df-rab 3149  df-v 3498  df-sbc 3775  df-dif 3941  df-un 3943  df-in 3945  df-ss 3954  df-nul 4294  df-if 4470  df-sn 4570  df-pr 4572  df-op 4576  df-uni 4841  df-br 5069  df-opab 5131  df-id 5462  df-xp 5563  df-rel 5564  df-cnv 5565  df-co 5566  df-dm 5567  df-iota 6316  df-fun 6359  df-fv 6365  df-ov 7161  df-oprab 7162  df-mpo 7163  df-wwlksn 27611  df-wspthsn 27613
This theorem is referenced by:  iswspthn  27629  wspn0  27705
  Copyright terms: Public domain W3C validator