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

Theorem nbupgrres 26153
Description: The neighborhood of a vertex in a restricted pseudograph (not necessarily valid for a hypergraph, because 𝑁, 𝐾 and 𝑀 could be connected by one edge, so 𝑀 is a neighbor of 𝐾 in the original graph, but not in the restricted graph, because the edge between 𝑀 and 𝐾, also incident with 𝑁, was removed). (Contributed by Alexander van der Vekens, 2-Jan-2018.) (Revised by AV, 8-Nov-2020.)
Hypotheses
Ref Expression
nbupgrres.v 𝑉 = (Vtx‘𝐺)
nbupgrres.e 𝐸 = (Edg‘𝐺)
nbupgrres.f 𝐹 = {𝑒𝐸𝑁𝑒}
nbupgrres.s 𝑆 = ⟨(𝑉 ∖ {𝑁}), ( I ↾ 𝐹)⟩
Assertion
Ref Expression
nbupgrres (((𝐺 ∈ UPGraph ∧ 𝑁𝑉) ∧ 𝐾 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀 ∈ (𝑉 ∖ {𝑁, 𝐾})) → (𝑀 ∈ (𝐺 NeighbVtx 𝐾) → 𝑀 ∈ (𝑆 NeighbVtx 𝐾)))
Distinct variable groups:   𝑒,𝐸   𝑒,𝐺   𝑒,𝐾   𝑒,𝑁   𝑒,𝑀   𝑒,𝑉
Allowed substitution hints:   𝑆(𝑒)   𝐹(𝑒)

Proof of Theorem nbupgrres
StepHypRef Expression
1 simp1l 1083 . . . . . 6 (((𝐺 ∈ UPGraph ∧ 𝑁𝑉) ∧ 𝐾 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀 ∈ (𝑉 ∖ {𝑁, 𝐾})) → 𝐺 ∈ UPGraph )
2 eldifi 3710 . . . . . . 7 (𝐾 ∈ (𝑉 ∖ {𝑁}) → 𝐾𝑉)
323ad2ant2 1081 . . . . . 6 (((𝐺 ∈ UPGraph ∧ 𝑁𝑉) ∧ 𝐾 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀 ∈ (𝑉 ∖ {𝑁, 𝐾})) → 𝐾𝑉)
4 eldifsn 4287 . . . . . . . . 9 (𝑀 ∈ ((𝑉 ∖ {𝑁}) ∖ {𝐾}) ↔ (𝑀 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀𝐾))
5 eldifi 3710 . . . . . . . . . 10 (𝑀 ∈ (𝑉 ∖ {𝑁}) → 𝑀𝑉)
65anim1i 591 . . . . . . . . 9 ((𝑀 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀𝐾) → (𝑀𝑉𝑀𝐾))
74, 6sylbi 207 . . . . . . . 8 (𝑀 ∈ ((𝑉 ∖ {𝑁}) ∖ {𝐾}) → (𝑀𝑉𝑀𝐾))
8 difpr 4303 . . . . . . . 8 (𝑉 ∖ {𝑁, 𝐾}) = ((𝑉 ∖ {𝑁}) ∖ {𝐾})
97, 8eleq2s 2716 . . . . . . 7 (𝑀 ∈ (𝑉 ∖ {𝑁, 𝐾}) → (𝑀𝑉𝑀𝐾))
1093ad2ant3 1082 . . . . . 6 (((𝐺 ∈ UPGraph ∧ 𝑁𝑉) ∧ 𝐾 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀 ∈ (𝑉 ∖ {𝑁, 𝐾})) → (𝑀𝑉𝑀𝐾))
11 nbupgrres.v . . . . . . 7 𝑉 = (Vtx‘𝐺)
12 nbupgrres.e . . . . . . 7 𝐸 = (Edg‘𝐺)
1311, 12nbupgrel 26128 . . . . . 6 (((𝐺 ∈ UPGraph ∧ 𝐾𝑉) ∧ (𝑀𝑉𝑀𝐾)) → (𝑀 ∈ (𝐺 NeighbVtx 𝐾) ↔ {𝑀, 𝐾} ∈ 𝐸))
141, 3, 10, 13syl21anc 1322 . . . . 5 (((𝐺 ∈ UPGraph ∧ 𝑁𝑉) ∧ 𝐾 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀 ∈ (𝑉 ∖ {𝑁, 𝐾})) → (𝑀 ∈ (𝐺 NeighbVtx 𝐾) ↔ {𝑀, 𝐾} ∈ 𝐸))
1514biimpa 501 . . . 4 ((((𝐺 ∈ UPGraph ∧ 𝑁𝑉) ∧ 𝐾 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀 ∈ (𝑉 ∖ {𝑁, 𝐾})) ∧ 𝑀 ∈ (𝐺 NeighbVtx 𝐾)) → {𝑀, 𝐾} ∈ 𝐸)
168eleq2i 2690 . . . . . . . . . 10 (𝑀 ∈ (𝑉 ∖ {𝑁, 𝐾}) ↔ 𝑀 ∈ ((𝑉 ∖ {𝑁}) ∖ {𝐾}))
17 eldifsn 4287 . . . . . . . . . . 11 (𝑀 ∈ (𝑉 ∖ {𝑁}) ↔ (𝑀𝑉𝑀𝑁))
1817anbi1i 730 . . . . . . . . . 10 ((𝑀 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀𝐾) ↔ ((𝑀𝑉𝑀𝑁) ∧ 𝑀𝐾))
1916, 4, 183bitri 286 . . . . . . . . 9 (𝑀 ∈ (𝑉 ∖ {𝑁, 𝐾}) ↔ ((𝑀𝑉𝑀𝑁) ∧ 𝑀𝐾))
20 simpr 477 . . . . . . . . . . 11 ((𝑀𝑉𝑀𝑁) → 𝑀𝑁)
2120necomd 2845 . . . . . . . . . 10 ((𝑀𝑉𝑀𝑁) → 𝑁𝑀)
2221adantr 481 . . . . . . . . 9 (((𝑀𝑉𝑀𝑁) ∧ 𝑀𝐾) → 𝑁𝑀)
2319, 22sylbi 207 . . . . . . . 8 (𝑀 ∈ (𝑉 ∖ {𝑁, 𝐾}) → 𝑁𝑀)
24233ad2ant3 1082 . . . . . . 7 (((𝐺 ∈ UPGraph ∧ 𝑁𝑉) ∧ 𝐾 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀 ∈ (𝑉 ∖ {𝑁, 𝐾})) → 𝑁𝑀)
25 eldifsn 4287 . . . . . . . . 9 (𝐾 ∈ (𝑉 ∖ {𝑁}) ↔ (𝐾𝑉𝐾𝑁))
26 simpr 477 . . . . . . . . . 10 ((𝐾𝑉𝐾𝑁) → 𝐾𝑁)
2726necomd 2845 . . . . . . . . 9 ((𝐾𝑉𝐾𝑁) → 𝑁𝐾)
2825, 27sylbi 207 . . . . . . . 8 (𝐾 ∈ (𝑉 ∖ {𝑁}) → 𝑁𝐾)
29283ad2ant2 1081 . . . . . . 7 (((𝐺 ∈ UPGraph ∧ 𝑁𝑉) ∧ 𝐾 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀 ∈ (𝑉 ∖ {𝑁, 𝐾})) → 𝑁𝐾)
3024, 29nelprd 4174 . . . . . 6 (((𝐺 ∈ UPGraph ∧ 𝑁𝑉) ∧ 𝐾 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀 ∈ (𝑉 ∖ {𝑁, 𝐾})) → ¬ 𝑁 ∈ {𝑀, 𝐾})
31 df-nel 2894 . . . . . 6 (𝑁 ∉ {𝑀, 𝐾} ↔ ¬ 𝑁 ∈ {𝑀, 𝐾})
3230, 31sylibr 224 . . . . 5 (((𝐺 ∈ UPGraph ∧ 𝑁𝑉) ∧ 𝐾 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀 ∈ (𝑉 ∖ {𝑁, 𝐾})) → 𝑁 ∉ {𝑀, 𝐾})
3332adantr 481 . . . 4 ((((𝐺 ∈ UPGraph ∧ 𝑁𝑉) ∧ 𝐾 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀 ∈ (𝑉 ∖ {𝑁, 𝐾})) ∧ 𝑀 ∈ (𝐺 NeighbVtx 𝐾)) → 𝑁 ∉ {𝑀, 𝐾})
34 neleq2 2899 . . . . 5 (𝑒 = {𝑀, 𝐾} → (𝑁𝑒𝑁 ∉ {𝑀, 𝐾}))
35 nbupgrres.f . . . . 5 𝐹 = {𝑒𝐸𝑁𝑒}
3634, 35elrab2 3348 . . . 4 ({𝑀, 𝐾} ∈ 𝐹 ↔ ({𝑀, 𝐾} ∈ 𝐸𝑁 ∉ {𝑀, 𝐾}))
3715, 33, 36sylanbrc 697 . . 3 ((((𝐺 ∈ UPGraph ∧ 𝑁𝑉) ∧ 𝐾 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀 ∈ (𝑉 ∖ {𝑁, 𝐾})) ∧ 𝑀 ∈ (𝐺 NeighbVtx 𝐾)) → {𝑀, 𝐾} ∈ 𝐹)
38 nbupgrres.s . . . . . . . 8 𝑆 = ⟨(𝑉 ∖ {𝑁}), ( I ↾ 𝐹)⟩
3911, 12, 35, 38upgrres1 26093 . . . . . . 7 ((𝐺 ∈ UPGraph ∧ 𝑁𝑉) → 𝑆 ∈ UPGraph )
40393ad2ant1 1080 . . . . . 6 (((𝐺 ∈ UPGraph ∧ 𝑁𝑉) ∧ 𝐾 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀 ∈ (𝑉 ∖ {𝑁, 𝐾})) → 𝑆 ∈ UPGraph )
41 simp2 1060 . . . . . 6 (((𝐺 ∈ UPGraph ∧ 𝑁𝑉) ∧ 𝐾 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀 ∈ (𝑉 ∖ {𝑁, 𝐾})) → 𝐾 ∈ (𝑉 ∖ {𝑁}))
4216, 4sylbb 209 . . . . . . 7 (𝑀 ∈ (𝑉 ∖ {𝑁, 𝐾}) → (𝑀 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀𝐾))
43423ad2ant3 1082 . . . . . 6 (((𝐺 ∈ UPGraph ∧ 𝑁𝑉) ∧ 𝐾 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀 ∈ (𝑉 ∖ {𝑁, 𝐾})) → (𝑀 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀𝐾))
4440, 41, 43jca31 556 . . . . 5 (((𝐺 ∈ UPGraph ∧ 𝑁𝑉) ∧ 𝐾 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀 ∈ (𝑉 ∖ {𝑁, 𝐾})) → ((𝑆 ∈ UPGraph ∧ 𝐾 ∈ (𝑉 ∖ {𝑁})) ∧ (𝑀 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀𝐾)))
4544adantr 481 . . . 4 ((((𝐺 ∈ UPGraph ∧ 𝑁𝑉) ∧ 𝐾 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀 ∈ (𝑉 ∖ {𝑁, 𝐾})) ∧ 𝑀 ∈ (𝐺 NeighbVtx 𝐾)) → ((𝑆 ∈ UPGraph ∧ 𝐾 ∈ (𝑉 ∖ {𝑁})) ∧ (𝑀 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀𝐾)))
4611, 12, 35, 38upgrres1lem2 26091 . . . . . 6 (Vtx‘𝑆) = (𝑉 ∖ {𝑁})
4746eqcomi 2630 . . . . 5 (𝑉 ∖ {𝑁}) = (Vtx‘𝑆)
48 opex 4893 . . . . . . . 8 ⟨(𝑉 ∖ {𝑁}), ( I ↾ 𝐹)⟩ ∈ V
4938, 48eqeltri 2694 . . . . . . 7 𝑆 ∈ V
50 edgval 25841 . . . . . . 7 (𝑆 ∈ V → (Edg‘𝑆) = ran (iEdg‘𝑆))
5149, 50ax-mp 5 . . . . . 6 (Edg‘𝑆) = ran (iEdg‘𝑆)
5211, 12, 35, 38upgrres1lem3 26092 . . . . . . 7 (iEdg‘𝑆) = ( I ↾ 𝐹)
5352rneqi 5312 . . . . . 6 ran (iEdg‘𝑆) = ran ( I ↾ 𝐹)
54 rnresi 5438 . . . . . 6 ran ( I ↾ 𝐹) = 𝐹
5551, 53, 543eqtrri 2648 . . . . 5 𝐹 = (Edg‘𝑆)
5647, 55nbupgrel 26128 . . . 4 (((𝑆 ∈ UPGraph ∧ 𝐾 ∈ (𝑉 ∖ {𝑁})) ∧ (𝑀 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀𝐾)) → (𝑀 ∈ (𝑆 NeighbVtx 𝐾) ↔ {𝑀, 𝐾} ∈ 𝐹))
5745, 56syl 17 . . 3 ((((𝐺 ∈ UPGraph ∧ 𝑁𝑉) ∧ 𝐾 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀 ∈ (𝑉 ∖ {𝑁, 𝐾})) ∧ 𝑀 ∈ (𝐺 NeighbVtx 𝐾)) → (𝑀 ∈ (𝑆 NeighbVtx 𝐾) ↔ {𝑀, 𝐾} ∈ 𝐹))
5837, 57mpbird 247 . 2 ((((𝐺 ∈ UPGraph ∧ 𝑁𝑉) ∧ 𝐾 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀 ∈ (𝑉 ∖ {𝑁, 𝐾})) ∧ 𝑀 ∈ (𝐺 NeighbVtx 𝐾)) → 𝑀 ∈ (𝑆 NeighbVtx 𝐾))
5958ex 450 1 (((𝐺 ∈ UPGraph ∧ 𝑁𝑉) ∧ 𝐾 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑀 ∈ (𝑉 ∖ {𝑁, 𝐾})) → (𝑀 ∈ (𝐺 NeighbVtx 𝐾) → 𝑀 ∈ (𝑆 NeighbVtx 𝐾)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 196  wa 384  w3a 1036   = wceq 1480  wcel 1987  wne 2790  wnel 2893  {crab 2911  Vcvv 3186  cdif 3552  {csn 4148  {cpr 4150  cop 4154   I cid 4984  ran crn 5075  cres 5076  cfv 5847  (class class class)co 6604  Vtxcvtx 25774  iEdgciedg 25775  Edgcedg 25839   UPGraph cupgr 25871   NeighbVtx cnbgr 26111
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-8 1989  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-rep 4731  ax-sep 4741  ax-nul 4749  ax-pow 4803  ax-pr 4867  ax-un 6902  ax-cnex 9936  ax-resscn 9937  ax-1cn 9938  ax-icn 9939  ax-addcl 9940  ax-addrcl 9941  ax-mulcl 9942  ax-mulrcl 9943  ax-mulcom 9944  ax-addass 9945  ax-mulass 9946  ax-distr 9947  ax-i2m1 9948  ax-1ne0 9949  ax-1rid 9950  ax-rnegex 9951  ax-rrecex 9952  ax-cnre 9953  ax-pre-lttri 9954  ax-pre-lttrn 9955  ax-pre-ltadd 9956  ax-pre-mulgt0 9957
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1037  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ne 2791  df-nel 2894  df-ral 2912  df-rex 2913  df-reu 2914  df-rmo 2915  df-rab 2916  df-v 3188  df-sbc 3418  df-csb 3515  df-dif 3558  df-un 3560  df-in 3562  df-ss 3569  df-pss 3571  df-nul 3892  df-if 4059  df-pw 4132  df-sn 4149  df-pr 4151  df-tp 4153  df-op 4155  df-uni 4403  df-int 4441  df-iun 4487  df-br 4614  df-opab 4674  df-mpt 4675  df-tr 4713  df-eprel 4985  df-id 4989  df-po 4995  df-so 4996  df-fr 5033  df-we 5035  df-xp 5080  df-rel 5081  df-cnv 5082  df-co 5083  df-dm 5084  df-rn 5085  df-res 5086  df-ima 5087  df-pred 5639  df-ord 5685  df-on 5686  df-lim 5687  df-suc 5688  df-iota 5810  df-fun 5849  df-fn 5850  df-f 5851  df-f1 5852  df-fo 5853  df-f1o 5854  df-fv 5855  df-riota 6565  df-ov 6607  df-oprab 6608  df-mpt2 6609  df-om 7013  df-1st 7113  df-2nd 7114  df-wrecs 7352  df-recs 7413  df-rdg 7451  df-1o 7505  df-2o 7506  df-oadd 7509  df-er 7687  df-en 7900  df-dom 7901  df-sdom 7902  df-fin 7903  df-card 8709  df-cda 8934  df-pnf 10020  df-mnf 10021  df-xr 10022  df-ltxr 10023  df-le 10024  df-sub 10212  df-neg 10213  df-nn 10965  df-2 11023  df-n0 11237  df-xnn0 11308  df-z 11322  df-uz 11632  df-fz 12269  df-hash 13058  df-vtx 25776  df-iedg 25777  df-edg 25840  df-upgr 25873  df-nbgr 26115
This theorem is referenced by:  nbupgruvtxres  26195
  Copyright terms: Public domain W3C validator