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

Theorem iswlk 27958
Description: Properties of a pair of functions to be a walk. (Contributed by AV, 30-Dec-2020.)
Hypotheses
Ref Expression
wksfval.v 𝑉 = (Vtx‘𝐺)
wksfval.i 𝐼 = (iEdg‘𝐺)
Assertion
Ref Expression
iswlk ((𝐺𝑊𝐹𝑈𝑃𝑍) → (𝐹(Walks‘𝐺)𝑃 ↔ (𝐹 ∈ Word dom 𝐼𝑃:(0...(♯‘𝐹))⟶𝑉 ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘))))))
Distinct variable groups:   𝑘,𝐺   𝑘,𝐹   𝑃,𝑘
Allowed substitution hints:   𝑈(𝑘)   𝐼(𝑘)   𝑉(𝑘)   𝑊(𝑘)   𝑍(𝑘)

Proof of Theorem iswlk
Dummy variables 𝑓 𝑝 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-br 5079 . . 3 (𝐹(Walks‘𝐺)𝑃 ↔ ⟨𝐹, 𝑃⟩ ∈ (Walks‘𝐺))
2 wksfval.v . . . . . 6 𝑉 = (Vtx‘𝐺)
3 wksfval.i . . . . . 6 𝐼 = (iEdg‘𝐺)
42, 3wksfval 27957 . . . . 5 (𝐺𝑊 → (Walks‘𝐺) = {⟨𝑓, 𝑝⟩ ∣ (𝑓 ∈ Word dom 𝐼𝑝:(0...(♯‘𝑓))⟶𝑉 ∧ ∀𝑘 ∈ (0..^(♯‘𝑓))if-((𝑝𝑘) = (𝑝‘(𝑘 + 1)), (𝐼‘(𝑓𝑘)) = {(𝑝𝑘)}, {(𝑝𝑘), (𝑝‘(𝑘 + 1))} ⊆ (𝐼‘(𝑓𝑘))))})
543ad2ant1 1131 . . . 4 ((𝐺𝑊𝐹𝑈𝑃𝑍) → (Walks‘𝐺) = {⟨𝑓, 𝑝⟩ ∣ (𝑓 ∈ Word dom 𝐼𝑝:(0...(♯‘𝑓))⟶𝑉 ∧ ∀𝑘 ∈ (0..^(♯‘𝑓))if-((𝑝𝑘) = (𝑝‘(𝑘 + 1)), (𝐼‘(𝑓𝑘)) = {(𝑝𝑘)}, {(𝑝𝑘), (𝑝‘(𝑘 + 1))} ⊆ (𝐼‘(𝑓𝑘))))})
65eleq2d 2825 . . 3 ((𝐺𝑊𝐹𝑈𝑃𝑍) → (⟨𝐹, 𝑃⟩ ∈ (Walks‘𝐺) ↔ ⟨𝐹, 𝑃⟩ ∈ {⟨𝑓, 𝑝⟩ ∣ (𝑓 ∈ Word dom 𝐼𝑝:(0...(♯‘𝑓))⟶𝑉 ∧ ∀𝑘 ∈ (0..^(♯‘𝑓))if-((𝑝𝑘) = (𝑝‘(𝑘 + 1)), (𝐼‘(𝑓𝑘)) = {(𝑝𝑘)}, {(𝑝𝑘), (𝑝‘(𝑘 + 1))} ⊆ (𝐼‘(𝑓𝑘))))}))
71, 6syl5bb 282 . 2 ((𝐺𝑊𝐹𝑈𝑃𝑍) → (𝐹(Walks‘𝐺)𝑃 ↔ ⟨𝐹, 𝑃⟩ ∈ {⟨𝑓, 𝑝⟩ ∣ (𝑓 ∈ Word dom 𝐼𝑝:(0...(♯‘𝑓))⟶𝑉 ∧ ∀𝑘 ∈ (0..^(♯‘𝑓))if-((𝑝𝑘) = (𝑝‘(𝑘 + 1)), (𝐼‘(𝑓𝑘)) = {(𝑝𝑘)}, {(𝑝𝑘), (𝑝‘(𝑘 + 1))} ⊆ (𝐼‘(𝑓𝑘))))}))
8 eleq1 2827 . . . . . 6 (𝑓 = 𝐹 → (𝑓 ∈ Word dom 𝐼𝐹 ∈ Word dom 𝐼))
98adantr 480 . . . . 5 ((𝑓 = 𝐹𝑝 = 𝑃) → (𝑓 ∈ Word dom 𝐼𝐹 ∈ Word dom 𝐼))
10 simpr 484 . . . . . 6 ((𝑓 = 𝐹𝑝 = 𝑃) → 𝑝 = 𝑃)
11 fveq2 6768 . . . . . . . 8 (𝑓 = 𝐹 → (♯‘𝑓) = (♯‘𝐹))
1211oveq2d 7284 . . . . . . 7 (𝑓 = 𝐹 → (0...(♯‘𝑓)) = (0...(♯‘𝐹)))
1312adantr 480 . . . . . 6 ((𝑓 = 𝐹𝑝 = 𝑃) → (0...(♯‘𝑓)) = (0...(♯‘𝐹)))
1410, 13feq12d 6584 . . . . 5 ((𝑓 = 𝐹𝑝 = 𝑃) → (𝑝:(0...(♯‘𝑓))⟶𝑉𝑃:(0...(♯‘𝐹))⟶𝑉))
1511oveq2d 7284 . . . . . . 7 (𝑓 = 𝐹 → (0..^(♯‘𝑓)) = (0..^(♯‘𝐹)))
1615adantr 480 . . . . . 6 ((𝑓 = 𝐹𝑝 = 𝑃) → (0..^(♯‘𝑓)) = (0..^(♯‘𝐹)))
17 fveq1 6767 . . . . . . . . 9 (𝑝 = 𝑃 → (𝑝𝑘) = (𝑃𝑘))
18 fveq1 6767 . . . . . . . . 9 (𝑝 = 𝑃 → (𝑝‘(𝑘 + 1)) = (𝑃‘(𝑘 + 1)))
1917, 18eqeq12d 2755 . . . . . . . 8 (𝑝 = 𝑃 → ((𝑝𝑘) = (𝑝‘(𝑘 + 1)) ↔ (𝑃𝑘) = (𝑃‘(𝑘 + 1))))
2019adantl 481 . . . . . . 7 ((𝑓 = 𝐹𝑝 = 𝑃) → ((𝑝𝑘) = (𝑝‘(𝑘 + 1)) ↔ (𝑃𝑘) = (𝑃‘(𝑘 + 1))))
21 fveq1 6767 . . . . . . . . 9 (𝑓 = 𝐹 → (𝑓𝑘) = (𝐹𝑘))
2221fveq2d 6772 . . . . . . . 8 (𝑓 = 𝐹 → (𝐼‘(𝑓𝑘)) = (𝐼‘(𝐹𝑘)))
2317sneqd 4578 . . . . . . . 8 (𝑝 = 𝑃 → {(𝑝𝑘)} = {(𝑃𝑘)})
2422, 23eqeqan12d 2753 . . . . . . 7 ((𝑓 = 𝐹𝑝 = 𝑃) → ((𝐼‘(𝑓𝑘)) = {(𝑝𝑘)} ↔ (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}))
2517, 18preq12d 4682 . . . . . . . . 9 (𝑝 = 𝑃 → {(𝑝𝑘), (𝑝‘(𝑘 + 1))} = {(𝑃𝑘), (𝑃‘(𝑘 + 1))})
2625adantl 481 . . . . . . . 8 ((𝑓 = 𝐹𝑝 = 𝑃) → {(𝑝𝑘), (𝑝‘(𝑘 + 1))} = {(𝑃𝑘), (𝑃‘(𝑘 + 1))})
2722adantr 480 . . . . . . . 8 ((𝑓 = 𝐹𝑝 = 𝑃) → (𝐼‘(𝑓𝑘)) = (𝐼‘(𝐹𝑘)))
2826, 27sseq12d 3958 . . . . . . 7 ((𝑓 = 𝐹𝑝 = 𝑃) → ({(𝑝𝑘), (𝑝‘(𝑘 + 1))} ⊆ (𝐼‘(𝑓𝑘)) ↔ {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘))))
2920, 24, 28ifpbi123d 1076 . . . . . 6 ((𝑓 = 𝐹𝑝 = 𝑃) → (if-((𝑝𝑘) = (𝑝‘(𝑘 + 1)), (𝐼‘(𝑓𝑘)) = {(𝑝𝑘)}, {(𝑝𝑘), (𝑝‘(𝑘 + 1))} ⊆ (𝐼‘(𝑓𝑘))) ↔ if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘)))))
3016, 29raleqbidv 3334 . . . . 5 ((𝑓 = 𝐹𝑝 = 𝑃) → (∀𝑘 ∈ (0..^(♯‘𝑓))if-((𝑝𝑘) = (𝑝‘(𝑘 + 1)), (𝐼‘(𝑓𝑘)) = {(𝑝𝑘)}, {(𝑝𝑘), (𝑝‘(𝑘 + 1))} ⊆ (𝐼‘(𝑓𝑘))) ↔ ∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘)))))
319, 14, 303anbi123d 1434 . . . 4 ((𝑓 = 𝐹𝑝 = 𝑃) → ((𝑓 ∈ Word dom 𝐼𝑝:(0...(♯‘𝑓))⟶𝑉 ∧ ∀𝑘 ∈ (0..^(♯‘𝑓))if-((𝑝𝑘) = (𝑝‘(𝑘 + 1)), (𝐼‘(𝑓𝑘)) = {(𝑝𝑘)}, {(𝑝𝑘), (𝑝‘(𝑘 + 1))} ⊆ (𝐼‘(𝑓𝑘)))) ↔ (𝐹 ∈ Word dom 𝐼𝑃:(0...(♯‘𝐹))⟶𝑉 ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘))))))
3231opelopabga 5447 . . 3 ((𝐹𝑈𝑃𝑍) → (⟨𝐹, 𝑃⟩ ∈ {⟨𝑓, 𝑝⟩ ∣ (𝑓 ∈ Word dom 𝐼𝑝:(0...(♯‘𝑓))⟶𝑉 ∧ ∀𝑘 ∈ (0..^(♯‘𝑓))if-((𝑝𝑘) = (𝑝‘(𝑘 + 1)), (𝐼‘(𝑓𝑘)) = {(𝑝𝑘)}, {(𝑝𝑘), (𝑝‘(𝑘 + 1))} ⊆ (𝐼‘(𝑓𝑘))))} ↔ (𝐹 ∈ Word dom 𝐼𝑃:(0...(♯‘𝐹))⟶𝑉 ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘))))))
33323adant1 1128 . 2 ((𝐺𝑊𝐹𝑈𝑃𝑍) → (⟨𝐹, 𝑃⟩ ∈ {⟨𝑓, 𝑝⟩ ∣ (𝑓 ∈ Word dom 𝐼𝑝:(0...(♯‘𝑓))⟶𝑉 ∧ ∀𝑘 ∈ (0..^(♯‘𝑓))if-((𝑝𝑘) = (𝑝‘(𝑘 + 1)), (𝐼‘(𝑓𝑘)) = {(𝑝𝑘)}, {(𝑝𝑘), (𝑝‘(𝑘 + 1))} ⊆ (𝐼‘(𝑓𝑘))))} ↔ (𝐹 ∈ Word dom 𝐼𝑃:(0...(♯‘𝐹))⟶𝑉 ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘))))))
347, 33bitrd 278 1 ((𝐺𝑊𝐹𝑈𝑃𝑍) → (𝐹(Walks‘𝐺)𝑃 ↔ (𝐹 ∈ Word dom 𝐼𝑃:(0...(♯‘𝐹))⟶𝑉 ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘))))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  if-wif 1059  w3a 1085   = wceq 1541  wcel 2109  wral 3065  wss 3891  {csn 4566  {cpr 4568  cop 4572   class class class wbr 5078  {copab 5140  dom cdm 5588  wf 6426  cfv 6430  (class class class)co 7268  0cc0 10855  1c1 10856   + caddc 10858  ...cfz 13221  ..^cfzo 13364  chash 14025  Word cword 14198  Vtxcvtx 27347  iEdgciedg 27348  Walkscwlks 27944
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1801  ax-4 1815  ax-5 1916  ax-6 1974  ax-7 2014  ax-8 2111  ax-9 2119  ax-10 2140  ax-11 2157  ax-12 2174  ax-ext 2710  ax-rep 5213  ax-sep 5226  ax-nul 5233  ax-pow 5291  ax-pr 5355  ax-un 7579  ax-cnex 10911  ax-resscn 10912  ax-1cn 10913  ax-icn 10914  ax-addcl 10915  ax-addrcl 10916  ax-mulcl 10917  ax-mulrcl 10918  ax-mulcom 10919  ax-addass 10920  ax-mulass 10921  ax-distr 10922  ax-i2m1 10923  ax-1ne0 10924  ax-1rid 10925  ax-rnegex 10926  ax-rrecex 10927  ax-cnre 10928  ax-pre-lttri 10929  ax-pre-lttrn 10930  ax-pre-ltadd 10931  ax-pre-mulgt0 10932
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-ifp 1060  df-3or 1086  df-3an 1087  df-tru 1544  df-fal 1554  df-ex 1786  df-nf 1790  df-sb 2071  df-mo 2541  df-eu 2570  df-clab 2717  df-cleq 2731  df-clel 2817  df-nfc 2890  df-ne 2945  df-nel 3051  df-ral 3070  df-rex 3071  df-reu 3072  df-rab 3074  df-v 3432  df-sbc 3720  df-csb 3837  df-dif 3894  df-un 3896  df-in 3898  df-ss 3908  df-pss 3910  df-nul 4262  df-if 4465  df-pw 4540  df-sn 4567  df-pr 4569  df-tp 4571  df-op 4573  df-uni 4845  df-int 4885  df-iun 4931  df-br 5079  df-opab 5141  df-mpt 5162  df-tr 5196  df-id 5488  df-eprel 5494  df-po 5502  df-so 5503  df-fr 5543  df-we 5545  df-xp 5594  df-rel 5595  df-cnv 5596  df-co 5597  df-dm 5598  df-rn 5599  df-res 5600  df-ima 5601  df-pred 6199  df-ord 6266  df-on 6267  df-lim 6268  df-suc 6269  df-iota 6388  df-fun 6432  df-fn 6433  df-f 6434  df-f1 6435  df-fo 6436  df-f1o 6437  df-fv 6438  df-riota 7225  df-ov 7271  df-oprab 7272  df-mpo 7273  df-om 7701  df-1st 7817  df-2nd 7818  df-frecs 8081  df-wrecs 8112  df-recs 8186  df-rdg 8225  df-1o 8281  df-er 8472  df-map 8591  df-en 8708  df-dom 8709  df-sdom 8710  df-fin 8711  df-card 9681  df-pnf 10995  df-mnf 10996  df-xr 10997  df-ltxr 10998  df-le 10999  df-sub 11190  df-neg 11191  df-nn 11957  df-n0 12217  df-z 12303  df-uz 12565  df-fz 13222  df-fzo 13365  df-hash 14026  df-word 14199  df-wlks 27947
This theorem is referenced by:  wlkprop  27959  iswlkg  27961  wlkvtxeledg  27971  wlk1walk  27986  redwlk  28020  wlkp1  28029  wlkd  28034  lfgrwlkprop  28035  crctcshwlkn0  28165  upwlkwlk  45253  upgrwlkupwlk  45254
  Copyright terms: Public domain W3C validator