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

Theorem umgr2adedgspth 27655
Description: In a multigraph, two adjacent edges with different endvertices form a simple path of length 2. (Contributed by Alexander van der Vekens, 1-Feb-2018.) (Revised by AV, 29-Jan-2021.)
Hypotheses
Ref Expression
umgr2adedgwlk.e 𝐸 = (Edg‘𝐺)
umgr2adedgwlk.i 𝐼 = (iEdg‘𝐺)
umgr2adedgwlk.f 𝐹 = ⟨“𝐽𝐾”⟩
umgr2adedgwlk.p 𝑃 = ⟨“𝐴𝐵𝐶”⟩
umgr2adedgwlk.g (𝜑𝐺 ∈ UMGraph)
umgr2adedgwlk.a (𝜑 → ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸))
umgr2adedgwlk.j (𝜑 → (𝐼𝐽) = {𝐴, 𝐵})
umgr2adedgwlk.k (𝜑 → (𝐼𝐾) = {𝐵, 𝐶})
umgr2adedgspth.n (𝜑𝐴𝐶)
Assertion
Ref Expression
umgr2adedgspth (𝜑𝐹(SPaths‘𝐺)𝑃)

Proof of Theorem umgr2adedgspth
StepHypRef Expression
1 umgr2adedgwlk.p . 2 𝑃 = ⟨“𝐴𝐵𝐶”⟩
2 umgr2adedgwlk.f . 2 𝐹 = ⟨“𝐽𝐾”⟩
3 umgr2adedgwlk.g . . . . 5 (𝜑𝐺 ∈ UMGraph)
4 umgr2adedgwlk.a . . . . 5 (𝜑 → ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸))
5 3anass 1087 . . . . 5 ((𝐺 ∈ UMGraph ∧ {𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸) ↔ (𝐺 ∈ UMGraph ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸)))
63, 4, 5sylanbrc 583 . . . 4 (𝜑 → (𝐺 ∈ UMGraph ∧ {𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸))
7 umgr2adedgwlk.e . . . . 5 𝐸 = (Edg‘𝐺)
87umgr2adedgwlklem 27651 . . . 4 ((𝐺 ∈ UMGraph ∧ {𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸) → ((𝐴𝐵𝐵𝐶) ∧ (𝐴 ∈ (Vtx‘𝐺) ∧ 𝐵 ∈ (Vtx‘𝐺) ∧ 𝐶 ∈ (Vtx‘𝐺))))
96, 8syl 17 . . 3 (𝜑 → ((𝐴𝐵𝐵𝐶) ∧ (𝐴 ∈ (Vtx‘𝐺) ∧ 𝐵 ∈ (Vtx‘𝐺) ∧ 𝐶 ∈ (Vtx‘𝐺))))
109simprd 496 . 2 (𝜑 → (𝐴 ∈ (Vtx‘𝐺) ∧ 𝐵 ∈ (Vtx‘𝐺) ∧ 𝐶 ∈ (Vtx‘𝐺)))
119simpld 495 . 2 (𝜑 → (𝐴𝐵𝐵𝐶))
12 ssid 3988 . . . 4 {𝐴, 𝐵} ⊆ {𝐴, 𝐵}
13 umgr2adedgwlk.j . . . 4 (𝜑 → (𝐼𝐽) = {𝐴, 𝐵})
1412, 13sseqtrrid 4019 . . 3 (𝜑 → {𝐴, 𝐵} ⊆ (𝐼𝐽))
15 ssid 3988 . . . 4 {𝐵, 𝐶} ⊆ {𝐵, 𝐶}
16 umgr2adedgwlk.k . . . 4 (𝜑 → (𝐼𝐾) = {𝐵, 𝐶})
1715, 16sseqtrrid 4019 . . 3 (𝜑 → {𝐵, 𝐶} ⊆ (𝐼𝐾))
1814, 17jca 512 . 2 (𝜑 → ({𝐴, 𝐵} ⊆ (𝐼𝐽) ∧ {𝐵, 𝐶} ⊆ (𝐼𝐾)))
19 eqid 2821 . 2 (Vtx‘𝐺) = (Vtx‘𝐺)
20 umgr2adedgwlk.i . 2 𝐼 = (iEdg‘𝐺)
21 fveq2 6664 . . . . . . . . 9 (𝐾 = 𝐽 → (𝐼𝐾) = (𝐼𝐽))
2221eqcoms 2829 . . . . . . . 8 (𝐽 = 𝐾 → (𝐼𝐾) = (𝐼𝐽))
2322eqeq1d 2823 . . . . . . 7 (𝐽 = 𝐾 → ((𝐼𝐾) = {𝐵, 𝐶} ↔ (𝐼𝐽) = {𝐵, 𝐶}))
24 eqtr2 2842 . . . . . . . 8 (((𝐼𝐽) = {𝐵, 𝐶} ∧ (𝐼𝐽) = {𝐴, 𝐵}) → {𝐵, 𝐶} = {𝐴, 𝐵})
2524ex 413 . . . . . . 7 ((𝐼𝐽) = {𝐵, 𝐶} → ((𝐼𝐽) = {𝐴, 𝐵} → {𝐵, 𝐶} = {𝐴, 𝐵}))
2623, 25syl6bi 254 . . . . . 6 (𝐽 = 𝐾 → ((𝐼𝐾) = {𝐵, 𝐶} → ((𝐼𝐽) = {𝐴, 𝐵} → {𝐵, 𝐶} = {𝐴, 𝐵})))
2726com13 88 . . . . 5 ((𝐼𝐽) = {𝐴, 𝐵} → ((𝐼𝐾) = {𝐵, 𝐶} → (𝐽 = 𝐾 → {𝐵, 𝐶} = {𝐴, 𝐵})))
2813, 16, 27sylc 65 . . . 4 (𝜑 → (𝐽 = 𝐾 → {𝐵, 𝐶} = {𝐴, 𝐵}))
29 eqcom 2828 . . . . . 6 ({𝐵, 𝐶} = {𝐴, 𝐵} ↔ {𝐴, 𝐵} = {𝐵, 𝐶})
30 prcom 4662 . . . . . . 7 {𝐵, 𝐶} = {𝐶, 𝐵}
3130eqeq2i 2834 . . . . . 6 ({𝐴, 𝐵} = {𝐵, 𝐶} ↔ {𝐴, 𝐵} = {𝐶, 𝐵})
3229, 31bitri 276 . . . . 5 ({𝐵, 𝐶} = {𝐴, 𝐵} ↔ {𝐴, 𝐵} = {𝐶, 𝐵})
3319, 7umgrpredgv 26853 . . . . . . . . . . 11 ((𝐺 ∈ UMGraph ∧ {𝐴, 𝐵} ∈ 𝐸) → (𝐴 ∈ (Vtx‘𝐺) ∧ 𝐵 ∈ (Vtx‘𝐺)))
3433simpld 495 . . . . . . . . . 10 ((𝐺 ∈ UMGraph ∧ {𝐴, 𝐵} ∈ 𝐸) → 𝐴 ∈ (Vtx‘𝐺))
3534ex 413 . . . . . . . . 9 (𝐺 ∈ UMGraph → ({𝐴, 𝐵} ∈ 𝐸𝐴 ∈ (Vtx‘𝐺)))
3619, 7umgrpredgv 26853 . . . . . . . . . . 11 ((𝐺 ∈ UMGraph ∧ {𝐵, 𝐶} ∈ 𝐸) → (𝐵 ∈ (Vtx‘𝐺) ∧ 𝐶 ∈ (Vtx‘𝐺)))
3736simprd 496 . . . . . . . . . 10 ((𝐺 ∈ UMGraph ∧ {𝐵, 𝐶} ∈ 𝐸) → 𝐶 ∈ (Vtx‘𝐺))
3837ex 413 . . . . . . . . 9 (𝐺 ∈ UMGraph → ({𝐵, 𝐶} ∈ 𝐸𝐶 ∈ (Vtx‘𝐺)))
3935, 38anim12d 608 . . . . . . . 8 (𝐺 ∈ UMGraph → (({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐵, 𝐶} ∈ 𝐸) → (𝐴 ∈ (Vtx‘𝐺) ∧ 𝐶 ∈ (Vtx‘𝐺))))
403, 4, 39sylc 65 . . . . . . 7 (𝜑 → (𝐴 ∈ (Vtx‘𝐺) ∧ 𝐶 ∈ (Vtx‘𝐺)))
41 preqr1g 4777 . . . . . . 7 ((𝐴 ∈ (Vtx‘𝐺) ∧ 𝐶 ∈ (Vtx‘𝐺)) → ({𝐴, 𝐵} = {𝐶, 𝐵} → 𝐴 = 𝐶))
4240, 41syl 17 . . . . . 6 (𝜑 → ({𝐴, 𝐵} = {𝐶, 𝐵} → 𝐴 = 𝐶))
43 umgr2adedgspth.n . . . . . 6 (𝜑𝐴𝐶)
44 eqneqall 3027 . . . . . 6 (𝐴 = 𝐶 → (𝐴𝐶𝐽𝐾))
4542, 43, 44syl6ci 71 . . . . 5 (𝜑 → ({𝐴, 𝐵} = {𝐶, 𝐵} → 𝐽𝐾))
4632, 45syl5bi 243 . . . 4 (𝜑 → ({𝐵, 𝐶} = {𝐴, 𝐵} → 𝐽𝐾))
4728, 46syld 47 . . 3 (𝜑 → (𝐽 = 𝐾𝐽𝐾))
48 neqne 3024 . . 3 𝐽 = 𝐾𝐽𝐾)
4947, 48pm2.61d1 181 . 2 (𝜑𝐽𝐾)
501, 2, 10, 11, 18, 19, 20, 49, 432spthd 27648 1 (𝜑𝐹(SPaths‘𝐺)𝑃)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396  w3a 1079   = wceq 1528  wcel 2105  wne 3016  wss 3935  {cpr 4561   class class class wbr 5058  cfv 6349  ⟨“cs2 14193  ⟨“cs3 14194  Vtxcvtx 26709  iEdgciedg 26710  Edgcedg 26760  UMGraphcumgr 26794  SPathscspths 27422
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1787  ax-4 1801  ax-5 1902  ax-6 1961  ax-7 2006  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2151  ax-12 2167  ax-ext 2793  ax-rep 5182  ax-sep 5195  ax-nul 5202  ax-pow 5258  ax-pr 5321  ax-un 7450  ax-cnex 10582  ax-resscn 10583  ax-1cn 10584  ax-icn 10585  ax-addcl 10586  ax-addrcl 10587  ax-mulcl 10588  ax-mulrcl 10589  ax-mulcom 10590  ax-addass 10591  ax-mulass 10592  ax-distr 10593  ax-i2m1 10594  ax-1ne0 10595  ax-1rid 10596  ax-rnegex 10597  ax-rrecex 10598  ax-cnre 10599  ax-pre-lttri 10600  ax-pre-lttrn 10601  ax-pre-ltadd 10602  ax-pre-mulgt0 10603
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 842  df-ifp 1055  df-3or 1080  df-3an 1081  df-tru 1531  df-ex 1772  df-nf 1776  df-sb 2061  df-mo 2618  df-eu 2650  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-nel 3124  df-ral 3143  df-rex 3144  df-reu 3145  df-rmo 3146  df-rab 3147  df-v 3497  df-sbc 3772  df-csb 3883  df-dif 3938  df-un 3940  df-in 3942  df-ss 3951  df-pss 3953  df-nul 4291  df-if 4466  df-pw 4539  df-sn 4560  df-pr 4562  df-tp 4564  df-op 4566  df-uni 4833  df-int 4870  df-iun 4914  df-br 5059  df-opab 5121  df-mpt 5139  df-tr 5165  df-id 5454  df-eprel 5459  df-po 5468  df-so 5469  df-fr 5508  df-we 5510  df-xp 5555  df-rel 5556  df-cnv 5557  df-co 5558  df-dm 5559  df-rn 5560  df-res 5561  df-ima 5562  df-pred 6142  df-ord 6188  df-on 6189  df-lim 6190  df-suc 6191  df-iota 6308  df-fun 6351  df-fn 6352  df-f 6353  df-f1 6354  df-fo 6355  df-f1o 6356  df-fv 6357  df-riota 7103  df-ov 7148  df-oprab 7149  df-mpo 7150  df-om 7569  df-1st 7680  df-2nd 7681  df-wrecs 7938  df-recs 7999  df-rdg 8037  df-1o 8093  df-oadd 8097  df-er 8279  df-map 8398  df-en 8499  df-dom 8500  df-sdom 8501  df-fin 8502  df-dju 9319  df-card 9357  df-pnf 10666  df-mnf 10667  df-xr 10668  df-ltxr 10669  df-le 10670  df-sub 10861  df-neg 10862  df-nn 11628  df-2 11689  df-3 11690  df-n0 11887  df-z 11971  df-uz 12233  df-fz 12883  df-fzo 13024  df-hash 13681  df-word 13852  df-concat 13913  df-s1 13940  df-s2 14200  df-s3 14201  df-edg 26761  df-umgr 26796  df-wlks 27309  df-trls 27402  df-spths 27426
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator