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

Theorem iswspthsnon 26604
Description: The set of simple paths of a fixed length between two vertices as word. (Contributed by Alexander van der Vekens, 1-Mar-2018.) (Revised by AV, 12-May-2021.)
Hypothesis
Ref Expression
iswwlksnon.v 𝑉 = (Vtx‘𝐺)
Assertion
Ref Expression
iswspthsnon ((𝐴𝑉𝐵𝑉) → (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤})
Distinct variable groups:   𝑤,𝐴   𝑤,𝐵   𝑤,𝐺   𝑤,𝑁   𝐴,𝑓,𝑤   𝐵,𝑓   𝑓,𝐺   𝑓,𝑁
Allowed substitution hints:   𝑉(𝑤,𝑓)

Proof of Theorem iswspthsnon
Dummy variables 𝑎 𝑏 𝑔 𝑛 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 iswwlksnon.v . . . . . 6 𝑉 = (Vtx‘𝐺)
21wspthsnon 26602 . . . . 5 ((𝑁 ∈ ℕ0𝐺 ∈ V) → (𝑁 WSPathsNOn 𝐺) = (𝑎𝑉, 𝑏𝑉 ↦ {𝑤 ∈ (𝑎(𝑁 WWalksNOn 𝐺)𝑏) ∣ ∃𝑓 𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤}))
32adantr 481 . . . 4 (((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ (𝐴𝑉𝐵𝑉)) → (𝑁 WSPathsNOn 𝐺) = (𝑎𝑉, 𝑏𝑉 ↦ {𝑤 ∈ (𝑎(𝑁 WWalksNOn 𝐺)𝑏) ∣ ∃𝑓 𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤}))
4 oveq12 6614 . . . . . 6 ((𝑎 = 𝐴𝑏 = 𝐵) → (𝑎(𝑁 WWalksNOn 𝐺)𝑏) = (𝐴(𝑁 WWalksNOn 𝐺)𝐵))
5 oveq12 6614 . . . . . . . 8 ((𝑎 = 𝐴𝑏 = 𝐵) → (𝑎(SPathsOn‘𝐺)𝑏) = (𝐴(SPathsOn‘𝐺)𝐵))
65breqd 4629 . . . . . . 7 ((𝑎 = 𝐴𝑏 = 𝐵) → (𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤))
76exbidv 1852 . . . . . 6 ((𝑎 = 𝐴𝑏 = 𝐵) → (∃𝑓 𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤 ↔ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤))
84, 7rabeqbidv 3186 . . . . 5 ((𝑎 = 𝐴𝑏 = 𝐵) → {𝑤 ∈ (𝑎(𝑁 WWalksNOn 𝐺)𝑏) ∣ ∃𝑓 𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤} = {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤})
98adantl 482 . . . 4 ((((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ (𝐴𝑉𝐵𝑉)) ∧ (𝑎 = 𝐴𝑏 = 𝐵)) → {𝑤 ∈ (𝑎(𝑁 WWalksNOn 𝐺)𝑏) ∣ ∃𝑓 𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤} = {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤})
10 simprl 793 . . . 4 (((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ (𝐴𝑉𝐵𝑉)) → 𝐴𝑉)
11 simprr 795 . . . 4 (((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ (𝐴𝑉𝐵𝑉)) → 𝐵𝑉)
12 ovex 6633 . . . . . 6 (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∈ V
1312rabex 4778 . . . . 5 {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤} ∈ V
1413a1i 11 . . . 4 (((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ (𝐴𝑉𝐵𝑉)) → {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤} ∈ V)
153, 9, 10, 11, 14ovmpt2d 6742 . . 3 (((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ (𝐴𝑉𝐵𝑉)) → (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤})
1615ex 450 . 2 ((𝑁 ∈ ℕ0𝐺 ∈ V) → ((𝐴𝑉𝐵𝑉) → (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤}))
17 0ov 6636 . . . 4 (𝐴𝐵) = ∅
18 df-wspthsnon 26589 . . . . . 6 WSPathsNOn = (𝑛 ∈ ℕ0, 𝑔 ∈ V ↦ (𝑎 ∈ (Vtx‘𝑔), 𝑏 ∈ (Vtx‘𝑔) ↦ {𝑤 ∈ (𝑎(𝑛 WWalksNOn 𝑔)𝑏) ∣ ∃𝑓 𝑓(𝑎(SPathsOn‘𝑔)𝑏)𝑤}))
1918mpt2ndm0 6829 . . . . 5 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → (𝑁 WSPathsNOn 𝐺) = ∅)
2019oveqd 6622 . . . 4 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = (𝐴𝐵))
21 df-wwlksnon 26587 . . . . . . . . 9 WWalksNOn = (𝑛 ∈ ℕ0, 𝑔 ∈ V ↦ (𝑎 ∈ (Vtx‘𝑔), 𝑏 ∈ (Vtx‘𝑔) ↦ {𝑤 ∈ (𝑛 WWalksN 𝑔) ∣ ((𝑤‘0) = 𝑎 ∧ (𝑤𝑛) = 𝑏)}))
2221mpt2ndm0 6829 . . . . . . . 8 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → (𝑁 WWalksNOn 𝐺) = ∅)
2322oveqd 6622 . . . . . . 7 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → (𝐴(𝑁 WWalksNOn 𝐺)𝐵) = (𝐴𝐵))
2423, 17syl6eq 2676 . . . . . 6 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → (𝐴(𝑁 WWalksNOn 𝐺)𝐵) = ∅)
2524rabeqdv 3185 . . . . 5 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤} = {𝑤 ∈ ∅ ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤})
26 rab0 3934 . . . . 5 {𝑤 ∈ ∅ ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤} = ∅
2725, 26syl6eq 2676 . . . 4 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤} = ∅)
2817, 20, 273eqtr4a 2686 . . 3 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤})
2928a1d 25 . 2 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → ((𝐴𝑉𝐵𝑉) → (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤}))
3016, 29pm2.61i 176 1 ((𝐴𝑉𝐵𝑉) → (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤})
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 384   = wceq 1480  wex 1701  wcel 1992  {crab 2916  Vcvv 3191  c0 3896   class class class wbr 4618  cfv 5850  (class class class)co 6605  cmpt2 6607  0cc0 9881  0cn0 11237  Vtxcvtx 25769  SPathsOncspthson 26474   WWalksN cwwlksn 26581   WWalksNOn cwwlksnon 26582   WSPathsNOn cwwspthsnon 26584
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1841  ax-6 1890  ax-7 1937  ax-8 1994  ax-9 2001  ax-10 2021  ax-11 2036  ax-12 2049  ax-13 2250  ax-ext 2606  ax-rep 4736  ax-sep 4746  ax-nul 4754  ax-pow 4808  ax-pr 4872  ax-un 6903
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1883  df-eu 2478  df-mo 2479  df-clab 2613  df-cleq 2619  df-clel 2622  df-nfc 2756  df-ne 2797  df-ral 2917  df-rex 2918  df-reu 2919  df-rab 2921  df-v 3193  df-sbc 3423  df-csb 3520  df-dif 3563  df-un 3565  df-in 3567  df-ss 3574  df-nul 3897  df-if 4064  df-pw 4137  df-sn 4154  df-pr 4156  df-op 4160  df-uni 4408  df-iun 4492  df-br 4619  df-opab 4679  df-mpt 4680  df-id 4994  df-xp 5085  df-rel 5086  df-cnv 5087  df-co 5088  df-dm 5089  df-rn 5090  df-res 5091  df-ima 5092  df-iota 5813  df-fun 5852  df-fn 5853  df-f 5854  df-f1 5855  df-fo 5856  df-f1o 5857  df-fv 5858  df-ov 6608  df-oprab 6609  df-mpt2 6610  df-1st 7116  df-2nd 7117  df-wwlksnon 26587  df-wspthsnon 26589
This theorem is referenced by:  wspthnon  26606  wpthswwlks2on  26716
  Copyright terms: Public domain W3C validator