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

Theorem nbuhgr 27755
Description: The set of neighbors of a vertex in a hypergraph. This version of nbgrval 27748 (with 𝑁 being an arbitrary set instead of being a vertex) only holds for classes whose edges are subsets of the set of vertices (hypergraphs!). (Contributed by AV, 26-Oct-2020.) (Proof shortened by AV, 15-Nov-2020.)
Hypotheses
Ref Expression
nbuhgr.v 𝑉 = (Vtx‘𝐺)
nbuhgr.e 𝐸 = (Edg‘𝐺)
Assertion
Ref Expression
nbuhgr ((𝐺 ∈ UHGraph ∧ 𝑁𝑋) → (𝐺 NeighbVtx 𝑁) = {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒})
Distinct variable groups:   𝑒,𝐸   𝑒,𝐺,𝑛   𝑒,𝑁,𝑛   𝑒,𝑉,𝑛   𝑒,𝑋,𝑛
Allowed substitution hint:   𝐸(𝑛)

Proof of Theorem nbuhgr
StepHypRef Expression
1 nbuhgr.v . . . 4 𝑉 = (Vtx‘𝐺)
2 nbuhgr.e . . . 4 𝐸 = (Edg‘𝐺)
31, 2nbgrval 27748 . . 3 (𝑁𝑉 → (𝐺 NeighbVtx 𝑁) = {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒})
43a1d 25 . 2 (𝑁𝑉 → ((𝐺 ∈ UHGraph ∧ 𝑁𝑋) → (𝐺 NeighbVtx 𝑁) = {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒}))
5 df-nel 3048 . . . . . 6 (𝑁𝑉 ↔ ¬ 𝑁𝑉)
61nbgrnvtx0 27751 . . . . . 6 (𝑁𝑉 → (𝐺 NeighbVtx 𝑁) = ∅)
75, 6sylbir 234 . . . . 5 𝑁𝑉 → (𝐺 NeighbVtx 𝑁) = ∅)
87adantr 482 . . . 4 ((¬ 𝑁𝑉 ∧ (𝐺 ∈ UHGraph ∧ 𝑁𝑋)) → (𝐺 NeighbVtx 𝑁) = ∅)
9 simpl 484 . . . . . . . . . . . 12 ((𝐺 ∈ UHGraph ∧ 𝑁𝑋) → 𝐺 ∈ UHGraph)
109adantr 482 . . . . . . . . . . 11 (((𝐺 ∈ UHGraph ∧ 𝑁𝑋) ∧ 𝑛 ∈ (𝑉 ∖ {𝑁})) → 𝐺 ∈ UHGraph)
112eleq2i 2828 . . . . . . . . . . . 12 (𝑒𝐸𝑒 ∈ (Edg‘𝐺))
1211biimpi 215 . . . . . . . . . . 11 (𝑒𝐸𝑒 ∈ (Edg‘𝐺))
13 edguhgr 27544 . . . . . . . . . . 11 ((𝐺 ∈ UHGraph ∧ 𝑒 ∈ (Edg‘𝐺)) → 𝑒 ∈ 𝒫 (Vtx‘𝐺))
1410, 12, 13syl2an 597 . . . . . . . . . 10 ((((𝐺 ∈ UHGraph ∧ 𝑁𝑋) ∧ 𝑛 ∈ (𝑉 ∖ {𝑁})) ∧ 𝑒𝐸) → 𝑒 ∈ 𝒫 (Vtx‘𝐺))
15 velpw 4544 . . . . . . . . . . . 12 (𝑒 ∈ 𝒫 (Vtx‘𝐺) ↔ 𝑒 ⊆ (Vtx‘𝐺))
161eqcomi 2745 . . . . . . . . . . . . 13 (Vtx‘𝐺) = 𝑉
1716sseq2i 3955 . . . . . . . . . . . 12 (𝑒 ⊆ (Vtx‘𝐺) ↔ 𝑒𝑉)
1815, 17bitri 275 . . . . . . . . . . 11 (𝑒 ∈ 𝒫 (Vtx‘𝐺) ↔ 𝑒𝑉)
19 sstr 3934 . . . . . . . . . . . . . . 15 (({𝑁, 𝑛} ⊆ 𝑒𝑒𝑉) → {𝑁, 𝑛} ⊆ 𝑉)
20 prssg 4758 . . . . . . . . . . . . . . . . . 18 ((𝑁𝑋𝑛 ∈ V) → ((𝑁𝑉𝑛𝑉) ↔ {𝑁, 𝑛} ⊆ 𝑉))
2120bicomd 222 . . . . . . . . . . . . . . . . 17 ((𝑁𝑋𝑛 ∈ V) → ({𝑁, 𝑛} ⊆ 𝑉 ↔ (𝑁𝑉𝑛𝑉)))
2221elvd 3444 . . . . . . . . . . . . . . . 16 (𝑁𝑋 → ({𝑁, 𝑛} ⊆ 𝑉 ↔ (𝑁𝑉𝑛𝑉)))
23 simpl 484 . . . . . . . . . . . . . . . 16 ((𝑁𝑉𝑛𝑉) → 𝑁𝑉)
2422, 23syl6bi 253 . . . . . . . . . . . . . . 15 (𝑁𝑋 → ({𝑁, 𝑛} ⊆ 𝑉𝑁𝑉))
2519, 24syl5com 31 . . . . . . . . . . . . . 14 (({𝑁, 𝑛} ⊆ 𝑒𝑒𝑉) → (𝑁𝑋𝑁𝑉))
2625ex 414 . . . . . . . . . . . . 13 ({𝑁, 𝑛} ⊆ 𝑒 → (𝑒𝑉 → (𝑁𝑋𝑁𝑉)))
2726com13 88 . . . . . . . . . . . 12 (𝑁𝑋 → (𝑒𝑉 → ({𝑁, 𝑛} ⊆ 𝑒𝑁𝑉)))
2827ad3antlr 729 . . . . . . . . . . 11 ((((𝐺 ∈ UHGraph ∧ 𝑁𝑋) ∧ 𝑛 ∈ (𝑉 ∖ {𝑁})) ∧ 𝑒𝐸) → (𝑒𝑉 → ({𝑁, 𝑛} ⊆ 𝑒𝑁𝑉)))
2918, 28biimtrid 241 . . . . . . . . . 10 ((((𝐺 ∈ UHGraph ∧ 𝑁𝑋) ∧ 𝑛 ∈ (𝑉 ∖ {𝑁})) ∧ 𝑒𝐸) → (𝑒 ∈ 𝒫 (Vtx‘𝐺) → ({𝑁, 𝑛} ⊆ 𝑒𝑁𝑉)))
3014, 29mpd 15 . . . . . . . . 9 ((((𝐺 ∈ UHGraph ∧ 𝑁𝑋) ∧ 𝑛 ∈ (𝑉 ∖ {𝑁})) ∧ 𝑒𝐸) → ({𝑁, 𝑛} ⊆ 𝑒𝑁𝑉))
3130rexlimdva 3149 . . . . . . . 8 (((𝐺 ∈ UHGraph ∧ 𝑁𝑋) ∧ 𝑛 ∈ (𝑉 ∖ {𝑁})) → (∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒𝑁𝑉))
3231con3rr3 155 . . . . . . 7 𝑁𝑉 → (((𝐺 ∈ UHGraph ∧ 𝑁𝑋) ∧ 𝑛 ∈ (𝑉 ∖ {𝑁})) → ¬ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒))
3332expdimp 454 . . . . . 6 ((¬ 𝑁𝑉 ∧ (𝐺 ∈ UHGraph ∧ 𝑁𝑋)) → (𝑛 ∈ (𝑉 ∖ {𝑁}) → ¬ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒))
3433ralrimiv 3139 . . . . 5 ((¬ 𝑁𝑉 ∧ (𝐺 ∈ UHGraph ∧ 𝑁𝑋)) → ∀𝑛 ∈ (𝑉 ∖ {𝑁}) ¬ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒)
35 rabeq0 4324 . . . . 5 ({𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒} = ∅ ↔ ∀𝑛 ∈ (𝑉 ∖ {𝑁}) ¬ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒)
3634, 35sylibr 233 . . . 4 ((¬ 𝑁𝑉 ∧ (𝐺 ∈ UHGraph ∧ 𝑁𝑋)) → {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒} = ∅)
378, 36eqtr4d 2779 . . 3 ((¬ 𝑁𝑉 ∧ (𝐺 ∈ UHGraph ∧ 𝑁𝑋)) → (𝐺 NeighbVtx 𝑁) = {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒})
3837ex 414 . 2 𝑁𝑉 → ((𝐺 ∈ UHGraph ∧ 𝑁𝑋) → (𝐺 NeighbVtx 𝑁) = {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒}))
394, 38pm2.61i 182 1 ((𝐺 ∈ UHGraph ∧ 𝑁𝑋) → (𝐺 NeighbVtx 𝑁) = {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒})
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 397   = wceq 1539  wcel 2104  wnel 3047  wral 3062  wrex 3071  {crab 3284  Vcvv 3437  cdif 3889  wss 3892  c0 4262  𝒫 cpw 4539  {csn 4565  {cpr 4567  cfv 6458  (class class class)co 7307  Vtxcvtx 27411  Edgcedg 27462  UHGraphcuhgr 27471   NeighbVtx cnbgr 27744
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1911  ax-6 1969  ax-7 2009  ax-8 2106  ax-9 2114  ax-10 2135  ax-11 2152  ax-12 2169  ax-ext 2707  ax-sep 5232  ax-nul 5239  ax-pr 5361  ax-un 7620
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 846  df-3an 1089  df-tru 1542  df-fal 1552  df-ex 1780  df-nf 1784  df-sb 2066  df-mo 2538  df-eu 2567  df-clab 2714  df-cleq 2728  df-clel 2814  df-nfc 2887  df-ne 2942  df-nel 3048  df-ral 3063  df-rex 3072  df-rab 3287  df-v 3439  df-sbc 3722  df-csb 3838  df-dif 3895  df-un 3897  df-in 3899  df-ss 3909  df-nul 4263  df-if 4466  df-pw 4541  df-sn 4566  df-pr 4568  df-op 4572  df-uni 4845  df-iun 4933  df-br 5082  df-opab 5144  df-mpt 5165  df-id 5500  df-xp 5606  df-rel 5607  df-cnv 5608  df-co 5609  df-dm 5610  df-rn 5611  df-res 5612  df-ima 5613  df-iota 6410  df-fun 6460  df-fn 6461  df-f 6462  df-fv 6466  df-ov 7310  df-oprab 7311  df-mpo 7312  df-1st 7863  df-2nd 7864  df-edg 27463  df-uhgr 27473  df-nbgr 27745
This theorem is referenced by:  uhgrnbgr0nb  27766
  Copyright terms: Public domain W3C validator