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

Theorem clwwlknon2x 27376
Description: The set of closed walks on vertex 𝑋 of length 2 in a graph 𝐺 as words over the set of vertices, definition of ClWWalksN expanded. (Contributed by Alexander van der Vekens, 19-Sep-2018.) (Revised by AV, 25-Mar-2022.)
Hypotheses
Ref Expression
clwwlknon2.c 𝐶 = (ClWWalksNOn‘𝐺)
clwwlknon2x.v 𝑉 = (Vtx‘𝐺)
clwwlknon2x.e 𝐸 = (Edg‘𝐺)
Assertion
Ref Expression
clwwlknon2x (𝑋𝐶2) = {𝑤 ∈ Word 𝑉 ∣ ((♯‘𝑤) = 2 ∧ {(𝑤‘0), (𝑤‘1)} ∈ 𝐸 ∧ (𝑤‘0) = 𝑋)}
Distinct variable groups:   𝑤,𝐺   𝑤,𝑋
Allowed substitution hints:   𝐶(𝑤)   𝐸(𝑤)   𝑉(𝑤)

Proof of Theorem clwwlknon2x
StepHypRef Expression
1 clwwlknon2.c . . 3 𝐶 = (ClWWalksNOn‘𝐺)
21clwwlknon2 27375 . 2 (𝑋𝐶2) = {𝑤 ∈ (2 ClWWalksN 𝐺) ∣ (𝑤‘0) = 𝑋}
3 clwwlkn2 27287 . . . . 5 (𝑤 ∈ (2 ClWWalksN 𝐺) ↔ ((♯‘𝑤) = 2 ∧ 𝑤 ∈ Word (Vtx‘𝐺) ∧ {(𝑤‘0), (𝑤‘1)} ∈ (Edg‘𝐺)))
43anbi1i 617 . . . 4 ((𝑤 ∈ (2 ClWWalksN 𝐺) ∧ (𝑤‘0) = 𝑋) ↔ (((♯‘𝑤) = 2 ∧ 𝑤 ∈ Word (Vtx‘𝐺) ∧ {(𝑤‘0), (𝑤‘1)} ∈ (Edg‘𝐺)) ∧ (𝑤‘0) = 𝑋))
5 3anan12 1117 . . . . . 6 (((♯‘𝑤) = 2 ∧ 𝑤 ∈ Word (Vtx‘𝐺) ∧ {(𝑤‘0), (𝑤‘1)} ∈ (Edg‘𝐺)) ↔ (𝑤 ∈ Word (Vtx‘𝐺) ∧ ((♯‘𝑤) = 2 ∧ {(𝑤‘0), (𝑤‘1)} ∈ (Edg‘𝐺))))
65anbi1i 617 . . . . 5 ((((♯‘𝑤) = 2 ∧ 𝑤 ∈ Word (Vtx‘𝐺) ∧ {(𝑤‘0), (𝑤‘1)} ∈ (Edg‘𝐺)) ∧ (𝑤‘0) = 𝑋) ↔ ((𝑤 ∈ Word (Vtx‘𝐺) ∧ ((♯‘𝑤) = 2 ∧ {(𝑤‘0), (𝑤‘1)} ∈ (Edg‘𝐺))) ∧ (𝑤‘0) = 𝑋))
7 anass 460 . . . . . 6 (((𝑤 ∈ Word (Vtx‘𝐺) ∧ ((♯‘𝑤) = 2 ∧ {(𝑤‘0), (𝑤‘1)} ∈ (Edg‘𝐺))) ∧ (𝑤‘0) = 𝑋) ↔ (𝑤 ∈ Word (Vtx‘𝐺) ∧ (((♯‘𝑤) = 2 ∧ {(𝑤‘0), (𝑤‘1)} ∈ (Edg‘𝐺)) ∧ (𝑤‘0) = 𝑋)))
8 clwwlknon2x.v . . . . . . . . . 10 𝑉 = (Vtx‘𝐺)
98eqcomi 2774 . . . . . . . . 9 (Vtx‘𝐺) = 𝑉
109wrdeqi 13509 . . . . . . . 8 Word (Vtx‘𝐺) = Word 𝑉
1110eleq2i 2836 . . . . . . 7 (𝑤 ∈ Word (Vtx‘𝐺) ↔ 𝑤 ∈ Word 𝑉)
12 df-3an 1109 . . . . . . . 8 (((♯‘𝑤) = 2 ∧ {(𝑤‘0), (𝑤‘1)} ∈ 𝐸 ∧ (𝑤‘0) = 𝑋) ↔ (((♯‘𝑤) = 2 ∧ {(𝑤‘0), (𝑤‘1)} ∈ 𝐸) ∧ (𝑤‘0) = 𝑋))
13 clwwlknon2x.e . . . . . . . . . . 11 𝐸 = (Edg‘𝐺)
1413eleq2i 2836 . . . . . . . . . 10 ({(𝑤‘0), (𝑤‘1)} ∈ 𝐸 ↔ {(𝑤‘0), (𝑤‘1)} ∈ (Edg‘𝐺))
1514anbi2i 616 . . . . . . . . 9 (((♯‘𝑤) = 2 ∧ {(𝑤‘0), (𝑤‘1)} ∈ 𝐸) ↔ ((♯‘𝑤) = 2 ∧ {(𝑤‘0), (𝑤‘1)} ∈ (Edg‘𝐺)))
1615anbi1i 617 . . . . . . . 8 ((((♯‘𝑤) = 2 ∧ {(𝑤‘0), (𝑤‘1)} ∈ 𝐸) ∧ (𝑤‘0) = 𝑋) ↔ (((♯‘𝑤) = 2 ∧ {(𝑤‘0), (𝑤‘1)} ∈ (Edg‘𝐺)) ∧ (𝑤‘0) = 𝑋))
1712, 16bitr2i 267 . . . . . . 7 ((((♯‘𝑤) = 2 ∧ {(𝑤‘0), (𝑤‘1)} ∈ (Edg‘𝐺)) ∧ (𝑤‘0) = 𝑋) ↔ ((♯‘𝑤) = 2 ∧ {(𝑤‘0), (𝑤‘1)} ∈ 𝐸 ∧ (𝑤‘0) = 𝑋))
1811, 17anbi12i 620 . . . . . 6 ((𝑤 ∈ Word (Vtx‘𝐺) ∧ (((♯‘𝑤) = 2 ∧ {(𝑤‘0), (𝑤‘1)} ∈ (Edg‘𝐺)) ∧ (𝑤‘0) = 𝑋)) ↔ (𝑤 ∈ Word 𝑉 ∧ ((♯‘𝑤) = 2 ∧ {(𝑤‘0), (𝑤‘1)} ∈ 𝐸 ∧ (𝑤‘0) = 𝑋)))
197, 18bitri 266 . . . . 5 (((𝑤 ∈ Word (Vtx‘𝐺) ∧ ((♯‘𝑤) = 2 ∧ {(𝑤‘0), (𝑤‘1)} ∈ (Edg‘𝐺))) ∧ (𝑤‘0) = 𝑋) ↔ (𝑤 ∈ Word 𝑉 ∧ ((♯‘𝑤) = 2 ∧ {(𝑤‘0), (𝑤‘1)} ∈ 𝐸 ∧ (𝑤‘0) = 𝑋)))
206, 19bitri 266 . . . 4 ((((♯‘𝑤) = 2 ∧ 𝑤 ∈ Word (Vtx‘𝐺) ∧ {(𝑤‘0), (𝑤‘1)} ∈ (Edg‘𝐺)) ∧ (𝑤‘0) = 𝑋) ↔ (𝑤 ∈ Word 𝑉 ∧ ((♯‘𝑤) = 2 ∧ {(𝑤‘0), (𝑤‘1)} ∈ 𝐸 ∧ (𝑤‘0) = 𝑋)))
214, 20bitri 266 . . 3 ((𝑤 ∈ (2 ClWWalksN 𝐺) ∧ (𝑤‘0) = 𝑋) ↔ (𝑤 ∈ Word 𝑉 ∧ ((♯‘𝑤) = 2 ∧ {(𝑤‘0), (𝑤‘1)} ∈ 𝐸 ∧ (𝑤‘0) = 𝑋)))
2221rabbia2 3336 . 2 {𝑤 ∈ (2 ClWWalksN 𝐺) ∣ (𝑤‘0) = 𝑋} = {𝑤 ∈ Word 𝑉 ∣ ((♯‘𝑤) = 2 ∧ {(𝑤‘0), (𝑤‘1)} ∈ 𝐸 ∧ (𝑤‘0) = 𝑋)}
232, 22eqtri 2787 1 (𝑋𝐶2) = {𝑤 ∈ Word 𝑉 ∣ ((♯‘𝑤) = 2 ∧ {(𝑤‘0), (𝑤‘1)} ∈ 𝐸 ∧ (𝑤‘0) = 𝑋)}
Colors of variables: wff setvar class
Syntax hints:  wa 384  w3a 1107   = wceq 1652  wcel 2155  {crab 3059  {cpr 4336  cfv 6068  (class class class)co 6842  0cc0 10189  1c1 10190  2c2 11327  chash 13321  Word cword 13486  Vtxcvtx 26165  Edgcedg 26216   ClWWalksN cclwwlkn 27260  ClWWalksNOncclwwlknon 27357
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1890  ax-4 1904  ax-5 2005  ax-6 2070  ax-7 2105  ax-8 2157  ax-9 2164  ax-10 2183  ax-11 2198  ax-12 2211  ax-13 2352  ax-ext 2743  ax-rep 4930  ax-sep 4941  ax-nul 4949  ax-pow 5001  ax-pr 5062  ax-un 7147  ax-cnex 10245  ax-resscn 10246  ax-1cn 10247  ax-icn 10248  ax-addcl 10249  ax-addrcl 10250  ax-mulcl 10251  ax-mulrcl 10252  ax-mulcom 10253  ax-addass 10254  ax-mulass 10255  ax-distr 10256  ax-i2m1 10257  ax-1ne0 10258  ax-1rid 10259  ax-rnegex 10260  ax-rrecex 10261  ax-cnre 10262  ax-pre-lttri 10263  ax-pre-lttrn 10264  ax-pre-ltadd 10265  ax-pre-mulgt0 10266
This theorem depends on definitions:  df-bi 198  df-an 385  df-or 874  df-3or 1108  df-3an 1109  df-tru 1656  df-ex 1875  df-nf 1879  df-sb 2063  df-mo 2565  df-eu 2582  df-clab 2752  df-cleq 2758  df-clel 2761  df-nfc 2896  df-ne 2938  df-nel 3041  df-ral 3060  df-rex 3061  df-reu 3062  df-rab 3064  df-v 3352  df-sbc 3597  df-csb 3692  df-dif 3735  df-un 3737  df-in 3739  df-ss 3746  df-pss 3748  df-nul 4080  df-if 4244  df-pw 4317  df-sn 4335  df-pr 4337  df-tp 4339  df-op 4341  df-uni 4595  df-int 4634  df-iun 4678  df-br 4810  df-opab 4872  df-mpt 4889  df-tr 4912  df-id 5185  df-eprel 5190  df-po 5198  df-so 5199  df-fr 5236  df-we 5238  df-xp 5283  df-rel 5284  df-cnv 5285  df-co 5286  df-dm 5287  df-rn 5288  df-res 5289  df-ima 5290  df-pred 5865  df-ord 5911  df-on 5912  df-lim 5913  df-suc 5914  df-iota 6031  df-fun 6070  df-fn 6071  df-f 6072  df-f1 6073  df-fo 6074  df-f1o 6075  df-fv 6076  df-riota 6803  df-ov 6845  df-oprab 6846  df-mpt2 6847  df-om 7264  df-1st 7366  df-2nd 7367  df-wrecs 7610  df-recs 7672  df-rdg 7710  df-1o 7764  df-oadd 7768  df-er 7947  df-map 8062  df-pm 8063  df-en 8161  df-dom 8162  df-sdom 8163  df-fin 8164  df-card 9016  df-pnf 10330  df-mnf 10331  df-xr 10332  df-ltxr 10333  df-le 10334  df-sub 10522  df-neg 10523  df-nn 11275  df-2 11335  df-n0 11539  df-xnn0 11611  df-z 11625  df-uz 11887  df-fz 12534  df-fzo 12674  df-hash 13322  df-word 13487  df-lsw 13534  df-clwwlk 27209  df-clwwlkn 27262  df-clwwlknon 27358
This theorem is referenced by:  s2elclwwlknon2  27377  clwwlknon2num  27378
  Copyright terms: Public domain W3C validator