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

Theorem wspthsn 26735
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 6659 . . . 4 ((𝑛 = 𝑁𝑔 = 𝐺) → (𝑛 WWalksN 𝑔) = (𝑁 WWalksN 𝐺))
2 fveq2 6191 . . . . . . 7 (𝑔 = 𝐺 → (SPaths‘𝑔) = (SPaths‘𝐺))
32breqd 4664 . . . . . 6 (𝑔 = 𝐺 → (𝑓(SPaths‘𝑔)𝑤𝑓(SPaths‘𝐺)𝑤))
43exbidv 1850 . . . . 5 (𝑔 = 𝐺 → (∃𝑓 𝑓(SPaths‘𝑔)𝑤 ↔ ∃𝑓 𝑓(SPaths‘𝐺)𝑤))
54adantl 482 . . . 4 ((𝑛 = 𝑁𝑔 = 𝐺) → (∃𝑓 𝑓(SPaths‘𝑔)𝑤 ↔ ∃𝑓 𝑓(SPaths‘𝐺)𝑤))
61, 5rabeqbidv 3195 . . 3 ((𝑛 = 𝑁𝑔 = 𝐺) → {𝑤 ∈ (𝑛 WWalksN 𝑔) ∣ ∃𝑓 𝑓(SPaths‘𝑔)𝑤} = {𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤})
7 df-wspthsn 26725 . . 3 WSPathsN = (𝑛 ∈ ℕ0, 𝑔 ∈ V ↦ {𝑤 ∈ (𝑛 WWalksN 𝑔) ∣ ∃𝑓 𝑓(SPaths‘𝑔)𝑤})
8 ovex 6678 . . . 4 (𝑁 WWalksN 𝐺) ∈ V
98rabex 4813 . . 3 {𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤} ∈ V
106, 7, 9ovmpt2a 6791 . 2 ((𝑁 ∈ ℕ0𝐺 ∈ V) → (𝑁 WSPathsN 𝐺) = {𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤})
117mpt2ndm0 6875 . . 3 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → (𝑁 WSPathsN 𝐺) = ∅)
12 df-wwlksn 26723 . . . . . 6 WWalksN = (𝑛 ∈ ℕ0, 𝑔 ∈ V ↦ {𝑤 ∈ (WWalks‘𝑔) ∣ (#‘𝑤) = (𝑛 + 1)})
1312mpt2ndm0 6875 . . . . 5 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → (𝑁 WWalksN 𝐺) = ∅)
1413rabeqdv 3194 . . . 4 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → {𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤} = {𝑤 ∈ ∅ ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤})
15 rab0 3955 . . . 4 {𝑤 ∈ ∅ ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤} = ∅
1614, 15syl6eq 2672 . . 3 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → {𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤} = ∅)
1711, 16eqtr4d 2659 . 2 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → (𝑁 WSPathsN 𝐺) = {𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤})
1810, 17pm2.61i 176 1 (𝑁 WSPathsN 𝐺) = {𝑤 ∈ (𝑁 WWalksN 𝐺) ∣ ∃𝑓 𝑓(SPaths‘𝐺)𝑤}
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wb 196  wa 384   = wceq 1483  wex 1704  wcel 1990  {crab 2916  Vcvv 3200  c0 3915   class class class wbr 4653  cfv 5888  (class class class)co 6650  1c1 9937   + caddc 9939  0cn0 11292  #chash 13117  SPathscspths 26609  WWalkscwwlks 26717   WWalksN cwwlksn 26718   WSPathsN cwwspthsn 26720
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-8 1992  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602  ax-sep 4781  ax-nul 4789  ax-pow 4843  ax-pr 4906
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1039  df-tru 1486  df-ex 1705  df-nf 1710  df-sb 1881  df-eu 2474  df-mo 2475  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753  df-ral 2917  df-rex 2918  df-rab 2921  df-v 3202  df-sbc 3436  df-dif 3577  df-un 3579  df-in 3581  df-ss 3588  df-nul 3916  df-if 4087  df-sn 4178  df-pr 4180  df-op 4184  df-uni 4437  df-br 4654  df-opab 4713  df-id 5024  df-xp 5120  df-rel 5121  df-cnv 5122  df-co 5123  df-dm 5124  df-iota 5851  df-fun 5890  df-fv 5896  df-ov 6653  df-oprab 6654  df-mpt2 6655  df-wwlksn 26723  df-wspthsn 26725
This theorem is referenced by:  iswspthn  26736  wspn0  26820
  Copyright terms: Public domain W3C validator