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

Theorem fusgreg2wsp 30687
Description: In a finite simple graph, the set of all paths of length 2 is the union of all the paths of length 2 over the vertices which are in the middle of such a path. (Contributed by Alexander van der Vekens, 10-Mar-2018.) (Revised by AV, 18-May-2021.) (Proof shortened by AV, 10-Jan-2022.)
Hypotheses
Ref Expression
frgrhash2wsp.v 𝑉 = (Vtx‘𝐺)
fusgreg2wsp.m 𝑀 = (𝑎𝑉 ↦ {𝑤 ∈ (2 WSPathsN 𝐺) ∣ (𝑤‘1) = 𝑎})
Assertion
Ref Expression
fusgreg2wsp (𝐺 ∈ FinUSGraph → (2 WSPathsN 𝐺) = 𝑥𝑉 (𝑀𝑥))
Distinct variable groups:   𝐺,𝑎   𝑉,𝑎   𝑤,𝐺,𝑎,𝑥   𝑥,𝑉,𝑎   𝑥,𝑤
Allowed substitution hints:   𝑀(𝑥,𝑤,𝑎)   𝑉(𝑤)

Proof of Theorem fusgreg2wsp
Dummy variable 𝑝 is distinct from all other variables.
StepHypRef Expression
1 wspthsswwlkn 30267 . . . . . . . 8 (2 WSPathsN 𝐺) ⊆ (2 WWalksN 𝐺)
21sseli 3933 . . . . . . 7 (𝑝 ∈ (2 WSPathsN 𝐺) → 𝑝 ∈ (2 WWalksN 𝐺))
3 frgrhash2wsp.v . . . . . . . 8 𝑉 = (Vtx‘𝐺)
43midwwlks2s3 30301 . . . . . . 7 (𝑝 ∈ (2 WWalksN 𝐺) → ∃𝑥𝑉 (𝑝‘1) = 𝑥)
52, 4syl 18 . . . . . 6 (𝑝 ∈ (2 WSPathsN 𝐺) → ∃𝑥𝑉 (𝑝‘1) = 𝑥)
65a1i 11 . . . . 5 (𝐺 ∈ FinUSGraph → (𝑝 ∈ (2 WSPathsN 𝐺) → ∃𝑥𝑉 (𝑝‘1) = 𝑥))
76pm4.71rd 571 . . . 4 (𝐺 ∈ FinUSGraph → (𝑝 ∈ (2 WSPathsN 𝐺) ↔ (∃𝑥𝑉 (𝑝‘1) = 𝑥𝑝 ∈ (2 WSPathsN 𝐺))))
8 ancom 465 . . . . . . 7 ((𝑝 ∈ (2 WSPathsN 𝐺) ∧ (𝑝‘1) = 𝑥) ↔ ((𝑝‘1) = 𝑥𝑝 ∈ (2 WSPathsN 𝐺)))
98rexbii 3112 . . . . . 6 (∃𝑥𝑉 (𝑝 ∈ (2 WSPathsN 𝐺) ∧ (𝑝‘1) = 𝑥) ↔ ∃𝑥𝑉 ((𝑝‘1) = 𝑥𝑝 ∈ (2 WSPathsN 𝐺)))
10 r19.41v 3195 . . . . . 6 (∃𝑥𝑉 ((𝑝‘1) = 𝑥𝑝 ∈ (2 WSPathsN 𝐺)) ↔ (∃𝑥𝑉 (𝑝‘1) = 𝑥𝑝 ∈ (2 WSPathsN 𝐺)))
119, 10bitr2i 279 . . . . 5 ((∃𝑥𝑉 (𝑝‘1) = 𝑥𝑝 ∈ (2 WSPathsN 𝐺)) ↔ ∃𝑥𝑉 (𝑝 ∈ (2 WSPathsN 𝐺) ∧ (𝑝‘1) = 𝑥))
1211a1i 11 . . . 4 (𝐺 ∈ FinUSGraph → ((∃𝑥𝑉 (𝑝‘1) = 𝑥𝑝 ∈ (2 WSPathsN 𝐺)) ↔ ∃𝑥𝑉 (𝑝 ∈ (2 WSPathsN 𝐺) ∧ (𝑝‘1) = 𝑥)))
13 fusgreg2wsp.m . . . . . . . 8 𝑀 = (𝑎𝑉 ↦ {𝑤 ∈ (2 WSPathsN 𝐺) ∣ (𝑤‘1) = 𝑎})
143, 13fusgreg2wsplem 30684 . . . . . . 7 (𝑥𝑉 → (𝑝 ∈ (𝑀𝑥) ↔ (𝑝 ∈ (2 WSPathsN 𝐺) ∧ (𝑝‘1) = 𝑥)))
1514bicomd 226 . . . . . 6 (𝑥𝑉 → ((𝑝 ∈ (2 WSPathsN 𝐺) ∧ (𝑝‘1) = 𝑥) ↔ 𝑝 ∈ (𝑀𝑥)))
1615adantl 486 . . . . 5 ((𝐺 ∈ FinUSGraph ∧ 𝑥𝑉) → ((𝑝 ∈ (2 WSPathsN 𝐺) ∧ (𝑝‘1) = 𝑥) ↔ 𝑝 ∈ (𝑀𝑥)))
1716rexbidva 3187 . . . 4 (𝐺 ∈ FinUSGraph → (∃𝑥𝑉 (𝑝 ∈ (2 WSPathsN 𝐺) ∧ (𝑝‘1) = 𝑥) ↔ ∃𝑥𝑉 𝑝 ∈ (𝑀𝑥)))
187, 12, 173bitrd 308 . . 3 (𝐺 ∈ FinUSGraph → (𝑝 ∈ (2 WSPathsN 𝐺) ↔ ∃𝑥𝑉 𝑝 ∈ (𝑀𝑥)))
19 eliun 4960 . . 3 (𝑝 𝑥𝑉 (𝑀𝑥) ↔ ∃𝑥𝑉 𝑝 ∈ (𝑀𝑥))
2018, 19bitr4di 292 . 2 (𝐺 ∈ FinUSGraph → (𝑝 ∈ (2 WSPathsN 𝐺) ↔ 𝑝 𝑥𝑉 (𝑀𝑥)))
2120eqrdv 2761 1 (𝐺 ∈ FinUSGraph → (2 WSPathsN 𝐺) = 𝑥𝑉 (𝑀𝑥))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 400   = wceq 1570  wcel 2143  wrex 3089  {crab 3416   ciun 4956  cmpt 5192  cfv 6536  (class class class)co 7410  1c1 11096  2c2 12290  Vtxcvtx 29346  FinUSGraphcfusgr 29666   WWalksN cwwlksn 30175   WSPathsN cwwspthsn 30177
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1825  ax-4 1839  ax-5 1940  ax-6 1997  ax-7 2038  ax-8 2145  ax-9 2153  ax-10 2176  ax-11 2192  ax-12 2213  ax-ext 2735  ax-rep 5238  ax-sep 5257  ax-nul 5269  ax-pow 5336  ax-pr 5404  ax-un 7732  ax-cnex 11151  ax-resscn 11152  ax-1cn 11153  ax-icn 11154  ax-addcl 11155  ax-addrcl 11156  ax-mulcl 11157  ax-mulrcl 11158  ax-mulcom 11159  ax-addass 11160  ax-mulass 11161  ax-distr 11162  ax-i2m1 11163  ax-1ne0 11164  ax-1rid 11165  ax-rnegex 11166  ax-rrecex 11167  ax-cnre 11168  ax-pre-lttri 11169  ax-pre-lttrn 11170  ax-pre-ltadd 11171  ax-pre-mulgt0 11172
This theorem depends on definitions:  df-bi 210  df-an 401  df-or 861  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1810  df-nf 1814  df-sb 2097  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2838  df-nfc 2912  df-ne 2959  df-nel 3065  df-ral 3080  df-rex 3090  df-reu 3370  df-rab 3417  df-v 3457  df-sbc 3745  df-csb 3854  df-dif 3908  df-un 3910  df-in 3912  df-ss 3922  df-pss 3925  df-nul 4287  df-if 4488  df-pw 4564  df-sn 4590  df-pr 4592  df-tp 4594  df-op 4596  df-uni 4873  df-int 4913  df-iun 4958  df-br 5110  df-opab 5174  df-mpt 5193  df-tr 5219  df-id 5556  df-eprel 5561  df-po 5569  df-so 5570  df-fr 5614  df-we 5616  df-xp 5667  df-rel 5668  df-cnv 5669  df-co 5670  df-dm 5671  df-rn 5672  df-res 5673  df-ima 5674  df-pred 6302  df-ord 6363  df-on 6364  df-lim 6365  df-suc 6366  df-iota 6492  df-fun 6538  df-fn 6539  df-f 6540  df-f1 6541  df-fo 6542  df-f1o 6543  df-fv 6544  df-riota 7367  df-ov 7413  df-oprab 7414  df-mpo 7415  df-om 7859  df-1st 7982  df-2nd 7983  df-frecs 8274  df-wrecs 8305  df-recs 8354  df-rdg 8393  df-1o 8449  df-er 8690  df-map 8822  df-en 8940  df-dom 8941  df-sdom 8942  df-fin 8943  df-card 9921  df-pnf 11240  df-mnf 11241  df-xr 11242  df-ltxr 11243  df-le 11244  df-sub 11438  df-neg 11439  df-nn 12229  df-2 12298  df-3 12299  df-n0 12500  df-z 12587  df-uz 12858  df-fz 13531  df-fzo 13679  df-hash 14363  df-word 14547  df-concat 14604  df-s1 14630  df-s2 14881  df-s3 14882  df-wwlks 30179  df-wwlksn 30180  df-wspthsn 30182
This theorem is referenced by:  fusgreghash2wsp  30689
  Copyright terms: Public domain W3C validator