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

Theorem iswspthsnon 28221
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 7312 . . 3 (𝐴𝐵) = ∅
2 df-wspthsnon 28199 . . . . 5 WSPathsNOn = (𝑛 ∈ ℕ0, 𝑔 ∈ V ↦ (𝑎 ∈ (Vtx‘𝑔), 𝑏 ∈ (Vtx‘𝑔) ↦ {𝑤 ∈ (𝑎(𝑛 WWalksNOn 𝑔)𝑏) ∣ ∃𝑓 𝑓(𝑎(SPathsOn‘𝑔)𝑏)𝑤}))
32mpondm0 7510 . . . 4 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → (𝑁 WSPathsNOn 𝐺) = ∅)
43oveqd 7292 . . 3 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = (𝐴𝐵))
5 id 22 . . . . . . 7 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → ¬ (𝑁 ∈ ℕ0𝐺 ∈ V))
65intnanrd 490 . . . . . 6 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → ¬ ((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ (𝐴𝑉𝐵𝑉)))
7 iswspthsnon.v . . . . . . 7 𝑉 = (Vtx‘𝐺)
87wwlksnon0 28219 . . . . . 6 (¬ ((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ (𝐴𝑉𝐵𝑉)) → (𝐴(𝑁 WWalksNOn 𝐺)𝐵) = ∅)
96, 8syl 17 . . . . 5 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → (𝐴(𝑁 WWalksNOn 𝐺)𝐵) = ∅)
109rabeqdv 3419 . . . 4 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤} = {𝑤 ∈ ∅ ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤})
11 rab0 4316 . . . 4 {𝑤 ∈ ∅ ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤} = ∅
1210, 11eqtrdi 2794 . . 3 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤} = ∅)
131, 4, 123eqtr4a 2804 . 2 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤})
147wspthsnon 28217 . . . . . . . 8 ((𝑁 ∈ ℕ0𝐺 ∈ V) → (𝑁 WSPathsNOn 𝐺) = (𝑎𝑉, 𝑏𝑉 ↦ {𝑤 ∈ (𝑎(𝑁 WWalksNOn 𝐺)𝑏) ∣ ∃𝑓 𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤}))
1514adantr 481 . . . . . . 7 (((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ ¬ (𝐴𝑉𝐵𝑉)) → (𝑁 WSPathsNOn 𝐺) = (𝑎𝑉, 𝑏𝑉 ↦ {𝑤 ∈ (𝑎(𝑁 WWalksNOn 𝐺)𝑏) ∣ ∃𝑓 𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤}))
1615oveqd 7292 . . . . . 6 (((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ ¬ (𝐴𝑉𝐵𝑉)) → (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = (𝐴(𝑎𝑉, 𝑏𝑉 ↦ {𝑤 ∈ (𝑎(𝑁 WWalksNOn 𝐺)𝑏) ∣ ∃𝑓 𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤})𝐵))
17 eqid 2738 . . . . . . . 8 (𝑎𝑉, 𝑏𝑉 ↦ {𝑤 ∈ (𝑎(𝑁 WWalksNOn 𝐺)𝑏) ∣ ∃𝑓 𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤}) = (𝑎𝑉, 𝑏𝑉 ↦ {𝑤 ∈ (𝑎(𝑁 WWalksNOn 𝐺)𝑏) ∣ ∃𝑓 𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤})
1817mpondm0 7510 . . . . . . 7 (¬ (𝐴𝑉𝐵𝑉) → (𝐴(𝑎𝑉, 𝑏𝑉 ↦ {𝑤 ∈ (𝑎(𝑁 WWalksNOn 𝐺)𝑏) ∣ ∃𝑓 𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤})𝐵) = ∅)
1918adantl 482 . . . . . 6 (((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ ¬ (𝐴𝑉𝐵𝑉)) → (𝐴(𝑎𝑉, 𝑏𝑉 ↦ {𝑤 ∈ (𝑎(𝑁 WWalksNOn 𝐺)𝑏) ∣ ∃𝑓 𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤})𝐵) = ∅)
2016, 19eqtrd 2778 . . . . 5 (((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ ¬ (𝐴𝑉𝐵𝑉)) → (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = ∅)
2120ex 413 . . . 4 ((𝑁 ∈ ℕ0𝐺 ∈ V) → (¬ (𝐴𝑉𝐵𝑉) → (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = ∅))
224, 1eqtrdi 2794 . . . . 5 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = ∅)
2322a1d 25 . . . 4 (¬ (𝑁 ∈ ℕ0𝐺 ∈ V) → (¬ (𝐴𝑉𝐵𝑉) → (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = ∅))
2421, 23pm2.61i 182 . . 3 (¬ (𝐴𝑉𝐵𝑉) → (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = ∅)
257wwlksonvtx 28220 . . . . . . . 8 (𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) → (𝐴𝑉𝐵𝑉))
2625pm2.24d 151 . . . . . . 7 (𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) → (¬ (𝐴𝑉𝐵𝑉) → ¬ 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤))
2726impcom 408 . . . . . 6 ((¬ (𝐴𝑉𝐵𝑉) ∧ 𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵)) → ¬ 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤)
2827nexdv 1939 . . . . 5 ((¬ (𝐴𝑉𝐵𝑉) ∧ 𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵)) → ¬ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤)
2928ralrimiva 3103 . . . 4 (¬ (𝐴𝑉𝐵𝑉) → ∀𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ¬ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤)
30 rabeq0 4318 . . . 4 ({𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤} = ∅ ↔ ∀𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ¬ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤)
3129, 30sylibr 233 . . 3 (¬ (𝐴𝑉𝐵𝑉) → {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤} = ∅)
3224, 31eqtr4d 2781 . 2 (¬ (𝐴𝑉𝐵𝑉) → (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤})
3314adantr 481 . . 3 (((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ (𝐴𝑉𝐵𝑉)) → (𝑁 WSPathsNOn 𝐺) = (𝑎𝑉, 𝑏𝑉 ↦ {𝑤 ∈ (𝑎(𝑁 WWalksNOn 𝐺)𝑏) ∣ ∃𝑓 𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤}))
34 oveq12 7284 . . . . 5 ((𝑎 = 𝐴𝑏 = 𝐵) → (𝑎(𝑁 WWalksNOn 𝐺)𝑏) = (𝐴(𝑁 WWalksNOn 𝐺)𝐵))
35 oveq12 7284 . . . . . . 7 ((𝑎 = 𝐴𝑏 = 𝐵) → (𝑎(SPathsOn‘𝐺)𝑏) = (𝐴(SPathsOn‘𝐺)𝐵))
3635breqd 5085 . . . . . 6 ((𝑎 = 𝐴𝑏 = 𝐵) → (𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤))
3736exbidv 1924 . . . . 5 ((𝑎 = 𝐴𝑏 = 𝐵) → (∃𝑓 𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤 ↔ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤))
3834, 37rabeqbidv 3420 . . . 4 ((𝑎 = 𝐴𝑏 = 𝐵) → {𝑤 ∈ (𝑎(𝑁 WWalksNOn 𝐺)𝑏) ∣ ∃𝑓 𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤} = {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤})
3938adantl 482 . . 3 ((((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ (𝐴𝑉𝐵𝑉)) ∧ (𝑎 = 𝐴𝑏 = 𝐵)) → {𝑤 ∈ (𝑎(𝑁 WWalksNOn 𝐺)𝑏) ∣ ∃𝑓 𝑓(𝑎(SPathsOn‘𝐺)𝑏)𝑤} = {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤})
40 simprl 768 . . 3 (((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ (𝐴𝑉𝐵𝑉)) → 𝐴𝑉)
41 simprr 770 . . 3 (((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ (𝐴𝑉𝐵𝑉)) → 𝐵𝑉)
42 ovex 7308 . . . . 5 (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∈ V
4342rabex 5256 . . . 4 {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤} ∈ V
4443a1i 11 . . 3 (((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ (𝐴𝑉𝐵𝑉)) → {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤} ∈ V)
4533, 39, 40, 41, 44ovmpod 7425 . 2 (((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ (𝐴𝑉𝐵𝑉)) → (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤})
4613, 32, 45ecase 1030 1 (𝐴(𝑁 WSPathsNOn 𝐺)𝐵) = {𝑤 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐵) ∣ ∃𝑓 𝑓(𝐴(SPathsOn‘𝐺)𝐵)𝑤}
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 396   = wceq 1539  wex 1782  wcel 2106  wral 3064  {crab 3068  Vcvv 3432  c0 4256   class class class wbr 5074  cfv 6433  (class class class)co 7275  cmpo 7277  0cn0 12233  Vtxcvtx 27366  SPathsOncspthson 28083   WWalksNOn cwwlksnon 28192   WSPathsNOn cwwspthsnon 28194
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-rep 5209  ax-sep 5223  ax-nul 5230  ax-pow 5288  ax-pr 5352  ax-un 7588
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-ral 3069  df-rex 3070  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-iun 4926  df-br 5075  df-opab 5137  df-mpt 5158  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-ov 7278  df-oprab 7279  df-mpo 7280  df-1st 7831  df-2nd 7832  df-wwlksnon 28197  df-wspthsnon 28199
This theorem is referenced by:  wspthnon  28223  wpthswwlks2on  28326
  Copyright terms: Public domain W3C validator