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

Theorem iswspthsnon 28122
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.) (Revised by AV, 14-Mar-2022.)
Hypothesis
Ref Expression
iswspthsnon.v 𝑉 = (Vtx‘𝐺)
Assertion
Ref Expression
iswspthsnon (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤}
Distinct variable groups:   𝐴,𝑓,𝑤   𝐵,𝑓,𝑤   𝑓,𝐺,𝑤   𝑓,𝑁,𝑤   𝑓,𝑉,𝑤

Proof of Theorem iswspthsnon
Dummy variables 𝑎 𝑏 𝑔 𝑛 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 0ov 7292 . . 3 (𝐴𝐵) = ∅
2 df-wspthsnon 28100 . . . . 5 WSPathsNOn = (𝑛 ∈ ℕ0, 𝑔 ∈ V ↦ (𝑎 ∈ (Vtx‘𝑔), 𝑏 ∈ (Vtx‘𝑔) ↦ {𝑤 ∈ (𝑎(𝑛 WWalksNOn 𝑔)𝑏) ∣ ∃𝑓 𝑓(𝑎(SPathsOn‘𝑔)𝑏)𝑤}))
32mpondm0 7488 . . . 4 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → (𝑁 WSPathsNOn 𝐺) = ∅)
43oveqd 7272 . . 3 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = (𝐴𝐵))
5 id 22 . . . . . . 7 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → ¬ (𝑁 ∈ ℕ0𝐺 ∈ V))
65intnanrd 489 . . . . . 6 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → ¬ ((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ (𝐴𝑉𝐵𝑉)))
7 iswspthsnon.v . . . . . . 7 𝑉 = (Vtx‘𝐺)
87wwlksnon0 28120 . . . . . 6 (¬ ((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ (𝐴𝑉𝐵𝑉)) → (𝐴(𝑁 WWalksNOn 𝐺)𝐵) = ∅)
96, 8syl 17 . . . . 5 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → (𝐴(𝑁 WWalksNOn 𝐺)𝐵) = ∅)
109rabeqdv 3409 . . . 4 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤} = {𝑤 ∈ ∅ ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤})
11 rab0 4313 . . . 4 {𝑤 ∈ ∅ ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤} = ∅
1210, 11eqtrdi 2795 . . 3 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤} = ∅)
131, 4, 123eqtr4a 2805 . 2 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤})
147wspthsnon 28118 . . . . . . . 8 ((𝑁 ∈ ℕ0𝐺 ∈ V) → (𝑁 WSPathsNOn 𝐺) = (𝑎𝑉, 𝑏𝑉 ↦ {𝑤 ∈ (𝑎(𝑁 WWalksNOn 𝐺)𝑏) ∣ ∃𝑓 𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤}))
1514adantr 480 . . . . . . 7 (((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ ¬ (𝐴𝑉𝐵𝑉)) → (𝑁 WSPathsNOn 𝐺) = (𝑎𝑉, 𝑏𝑉 ↦ {𝑤 ∈ (𝑎(𝑁 WWalksNOn 𝐺)𝑏) ∣ ∃𝑓 𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤}))
1615oveqd 7272 . . . . . 6 (((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ ¬ (𝐴𝑉𝐵𝑉)) → (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = (𝐴(𝑎𝑉, 𝑏𝑉 ↦ {𝑤 ∈ (𝑎(𝑁 WWalksNOn 𝐺)𝑏) ∣ ∃𝑓 𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤})𝐵))
17 eqid 2738 . . . . . . . 8 (𝑎𝑉, 𝑏𝑉 ↦ {𝑤 ∈ (𝑎(𝑁 WWalksNOn 𝐺)𝑏) ∣ ∃𝑓 𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤}) = (𝑎𝑉, 𝑏𝑉 ↦ {𝑤 ∈ (𝑎(𝑁 WWalksNOn 𝐺)𝑏) ∣ ∃𝑓 𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤})
1817mpondm0 7488 . . . . . . 7 (¬ (𝐴𝑉𝐵𝑉) → (𝐴(𝑎𝑉, 𝑏𝑉 ↦ {𝑤 ∈ (𝑎(𝑁 WWalksNOn 𝐺)𝑏) ∣ ∃𝑓 𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤})𝐵) = ∅)
1918adantl 481 . . . . . 6 (((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ ¬ (𝐴𝑉𝐵𝑉)) → (𝐴(𝑎𝑉, 𝑏𝑉 ↦ {𝑤 ∈ (𝑎(𝑁 WWalksNOn 𝐺)𝑏) ∣ ∃𝑓 𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤})𝐵) = ∅)
2016, 19eqtrd 2778 . . . . 5 (((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ ¬ (𝐴𝑉𝐵𝑉)) → (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = ∅)
2120ex 412 . . . 4 ((𝑁 ∈ ℕ0𝐺 ∈ V) → (¬ (𝐴𝑉𝐵𝑉) → (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = ∅))
224, 1eqtrdi 2795 . . . . 5 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = ∅)
2322a1d 25 . . . 4 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → (¬ (𝐴𝑉𝐵𝑉) → (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = ∅))
2421, 23pm2.61i 182 . . 3 (¬ (𝐴𝑉𝐵𝑉) → (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = ∅)
257wwlksonvtx 28121 . . . . . . . 8 (𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) → (𝐴𝑉𝐵𝑉))
2625pm2.24d 151 . . . . . . 7 (𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) → (¬ (𝐴𝑉𝐵𝑉) → ¬ 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤))
2726impcom 407 . . . . . 6 ((¬ (𝐴𝑉𝐵𝑉) ∧ 𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵)) → ¬ 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤)
2827nexdv 1940 . . . . 5 ((¬ (𝐴𝑉𝐵𝑉) ∧ 𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵)) → ¬ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤)
2928ralrimiva 3107 . . . 4 (¬ (𝐴𝑉𝐵𝑉) → ∀𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ¬ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤)
30 rabeq0 4315 . . . 4 ({𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤} = ∅ ↔ ∀𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ¬ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤)
3129, 30sylibr 233 . . 3 (¬ (𝐴𝑉𝐵𝑉) → {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤} = ∅)
3224, 31eqtr4d 2781 . 2 (¬ (𝐴𝑉𝐵𝑉) → (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤})
3314adantr 480 . . 3 (((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ (𝐴𝑉𝐵𝑉)) → (𝑁 WSPathsNOn 𝐺) = (𝑎𝑉, 𝑏𝑉 ↦ {𝑤 ∈ (𝑎(𝑁 WWalksNOn 𝐺)𝑏) ∣ ∃𝑓 𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤}))
34 oveq12 7264 . . . . 5 ((𝑎 = 𝐴𝑏 = 𝐵) → (𝑎(𝑁 WWalksNOn 𝐺)𝑏) = (𝐴(𝑁 WWalksNOn 𝐺)𝐵))
35 oveq12 7264 . . . . . . 7 ((𝑎 = 𝐴𝑏 = 𝐵) → (𝑎(SPathsOn‘𝐺)𝑏) = (𝐴(SPathsOn‘𝐺)𝐵))
3635breqd 5081 . . . . . 6 ((𝑎 = 𝐴𝑏 = 𝐵) → (𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤))
3736exbidv 1925 . . . . 5 ((𝑎 = 𝐴𝑏 = 𝐵) → (∃𝑓 𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤 ↔ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤))
3834, 37rabeqbidv 3410 . . . 4 ((𝑎 = 𝐴𝑏 = 𝐵) → {𝑤 ∈ (𝑎(𝑁 WWalksNOn 𝐺)𝑏) ∣ ∃𝑓 𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤} = {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤})
3938adantl 481 . . 3 ((((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ (𝐴𝑉𝐵𝑉)) ∧ (𝑎 = 𝐴𝑏 = 𝐵)) → {𝑤 ∈ (𝑎(𝑁 WWalksNOn 𝐺)𝑏) ∣ ∃𝑓 𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤} = {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤})
40 simprl 767 . . 3 (((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ (𝐴𝑉𝐵𝑉)) → 𝐴𝑉)
41 simprr 769 . . 3 (((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ (𝐴𝑉𝐵𝑉)) → 𝐵𝑉)
42 ovex 7288 . . . . 5 (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∈ V
4342rabex 5251 . . . 4 {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤} ∈ V
4443a1i 11 . . 3 (((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ (𝐴𝑉𝐵𝑉)) → {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤} ∈ V)
4533, 39, 40, 41, 44ovmpod 7403 . 2 (((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ (𝐴𝑉𝐵𝑉)) → (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤})
4613, 32, 45ecase 1029 1 (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤}
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 395   = wceq 1539  wex 1783  wcel 2108  wral 3063  {crab 3067  Vcvv 3422  c0 4253   class class class wbr 5070  cfv 6418  (class class class)co 7255  cmpo 7257  0cn0 12163  Vtxcvtx 27269  SPathsOncspthson 27984   WWalksNOn cwwlksnon 28093   WSPathsNOn cwwspthsnon 28095
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-ov 7258  df-oprab 7259  df-mpo 7260  df-1st 7804  df-2nd 7805  df-wwlksnon 28098  df-wspthsnon 28100
This theorem is referenced by:  wspthnon  28124  wpthswwlks2on  28227
  Copyright terms: Public domain W3C validator