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

Theorem nbuhgr 27708
Description: The set of neighbors of a vertex in a hypergraph. This version of nbgrval 27701 (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 27701 . . 3 (𝑁𝑉 → (𝐺 NeighbVtx 𝑁) = {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒})
43a1d 25 . 2 (𝑁𝑉 → ((𝐺 ∈ UHGraph ∧ 𝑁𝑋) → (𝐺 NeighbVtx 𝑁) = {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒}))
5 df-nel 3052 . . . . . 6 (𝑁𝑉 ↔ ¬ 𝑁𝑉)
61nbgrnvtx0 27704 . . . . . 6 (𝑁𝑉 → (𝐺 NeighbVtx 𝑁) = ∅)
75, 6sylbir 234 . . . . 5 𝑁𝑉 → (𝐺 NeighbVtx 𝑁) = ∅)
87adantr 481 . . . 4 ((¬ 𝑁𝑉 ∧ (𝐺 ∈ UHGraph ∧ 𝑁𝑋)) → (𝐺 NeighbVtx 𝑁) = ∅)
9 simpl 483 . . . . . . . . . . . 12 ((𝐺 ∈ UHGraph ∧ 𝑁𝑋) → 𝐺 ∈ UHGraph)
109adantr 481 . . . . . . . . . . 11 (((𝐺 ∈ UHGraph ∧ 𝑁𝑋) ∧ 𝑛 ∈ (𝑉 ∖ {𝑁})) → 𝐺 ∈ UHGraph)
112eleq2i 2832 . . . . . . . . . . . 12 (𝑒𝐸𝑒 ∈ (Edg‘𝐺))
1211biimpi 215 . . . . . . . . . . 11 (𝑒𝐸𝑒 ∈ (Edg‘𝐺))
13 edguhgr 27497 . . . . . . . . . . 11 ((𝐺 ∈ UHGraph ∧ 𝑒 ∈ (Edg‘𝐺)) → 𝑒 ∈ 𝒫 (Vtx‘𝐺))
1410, 12, 13syl2an 596 . . . . . . . . . 10 ((((𝐺 ∈ UHGraph ∧ 𝑁𝑋) ∧ 𝑛 ∈ (𝑉 ∖ {𝑁})) ∧ 𝑒𝐸) → 𝑒 ∈ 𝒫 (Vtx‘𝐺))
15 velpw 4544 . . . . . . . . . . . 12 (𝑒 ∈ 𝒫 (Vtx‘𝐺) ↔ 𝑒 ⊆ (Vtx‘𝐺))
161eqcomi 2749 . . . . . . . . . . . . 13 (Vtx‘𝐺) = 𝑉
1716sseq2i 3955 . . . . . . . . . . . 12 (𝑒 ⊆ (Vtx‘𝐺) ↔ 𝑒𝑉)
1815, 17bitri 274 . . . . . . . . . . 11 (𝑒 ∈ 𝒫 (Vtx‘𝐺) ↔ 𝑒𝑉)
19 sstr 3934 . . . . . . . . . . . . . . 15 (({𝑁, 𝑛} ⊆ 𝑒𝑒𝑉) → {𝑁, 𝑛} ⊆ 𝑉)
20 prssg 4758 . . . . . . . . . . . . . . . . . 18 ((𝑁𝑋𝑛 ∈ V) → ((𝑁𝑉𝑛𝑉) ↔ {𝑁, 𝑛} ⊆ 𝑉))
2120bicomd 222 . . . . . . . . . . . . . . . . 17 ((𝑁𝑋𝑛 ∈ V) → ({𝑁, 𝑛} ⊆ 𝑉 ↔ (𝑁𝑉𝑛𝑉)))
2221elvd 3438 . . . . . . . . . . . . . . . 16 (𝑁𝑋 → ({𝑁, 𝑛} ⊆ 𝑉 ↔ (𝑁𝑉𝑛𝑉)))
23 simpl 483 . . . . . . . . . . . . . . . 16 ((𝑁𝑉𝑛𝑉) → 𝑁𝑉)
2422, 23syl6bi 252 . . . . . . . . . . . . . . 15 (𝑁𝑋 → ({𝑁, 𝑛} ⊆ 𝑉𝑁𝑉))
2519, 24syl5com 31 . . . . . . . . . . . . . 14 (({𝑁, 𝑛} ⊆ 𝑒𝑒𝑉) → (𝑁𝑋𝑁𝑉))
2625ex 413 . . . . . . . . . . . . 13 ({𝑁, 𝑛} ⊆ 𝑒 → (𝑒𝑉 → (𝑁𝑋𝑁𝑉)))
2726com13 88 . . . . . . . . . . . 12 (𝑁𝑋 → (𝑒𝑉 → ({𝑁, 𝑛} ⊆ 𝑒𝑁𝑉)))
2827ad3antlr 728 . . . . . . . . . . 11 ((((𝐺 ∈ UHGraph ∧ 𝑁𝑋) ∧ 𝑛 ∈ (𝑉 ∖ {𝑁})) ∧ 𝑒𝐸) → (𝑒𝑉 → ({𝑁, 𝑛} ⊆ 𝑒𝑁𝑉)))
2918, 28syl5bi 241 . . . . . . . . . 10 ((((𝐺 ∈ UHGraph ∧ 𝑁𝑋) ∧ 𝑛 ∈ (𝑉 ∖ {𝑁})) ∧ 𝑒𝐸) → (𝑒 ∈ 𝒫 (Vtx‘𝐺) → ({𝑁, 𝑛} ⊆ 𝑒𝑁𝑉)))
3014, 29mpd 15 . . . . . . . . 9 ((((𝐺 ∈ UHGraph ∧ 𝑁𝑋) ∧ 𝑛 ∈ (𝑉 ∖ {𝑁})) ∧ 𝑒𝐸) → ({𝑁, 𝑛} ⊆ 𝑒𝑁𝑉))
3130rexlimdva 3215 . . . . . . . 8 (((𝐺 ∈ UHGraph ∧ 𝑁𝑋) ∧ 𝑛 ∈ (𝑉 ∖ {𝑁})) → (∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒𝑁𝑉))
3231con3rr3 155 . . . . . . 7 𝑁𝑉 → (((𝐺 ∈ UHGraph ∧ 𝑁𝑋) ∧ 𝑛 ∈ (𝑉 ∖ {𝑁})) → ¬ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒))
3332expdimp 453 . . . . . 6 ((¬ 𝑁𝑉 ∧ (𝐺 ∈ UHGraph ∧ 𝑁𝑋)) → (𝑛 ∈ (𝑉 ∖ {𝑁}) → ¬ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒))
3433ralrimiv 3109 . . . . 5 ((¬ 𝑁𝑉 ∧ (𝐺 ∈ UHGraph ∧ 𝑁𝑋)) → ∀𝑛 ∈ (𝑉 ∖ {𝑁}) ¬ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒)
35 rabeq0 4324 . . . . 5 ({𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒} = ∅ ↔ ∀𝑛 ∈ (𝑉 ∖ {𝑁}) ¬ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒)
3634, 35sylibr 233 . . . 4 ((¬ 𝑁𝑉 ∧ (𝐺 ∈ UHGraph ∧ 𝑁𝑋)) → {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒} = ∅)
378, 36eqtr4d 2783 . . 3 ((¬ 𝑁𝑉 ∧ (𝐺 ∈ UHGraph ∧ 𝑁𝑋)) → (𝐺 NeighbVtx 𝑁) = {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒})
3837ex 413 . 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 396   = wceq 1542  wcel 2110  wnel 3051  wral 3066  wrex 3067  {crab 3070  Vcvv 3431  cdif 3889  wss 3892  c0 4262  𝒫 cpw 4539  {csn 4567  {cpr 4569  cfv 6432  (class class class)co 7271  Vtxcvtx 27364  Edgcedg 27415  UHGraphcuhgr 27424   NeighbVtx cnbgr 27697
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1802  ax-4 1816  ax-5 1917  ax-6 1975  ax-7 2015  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2158  ax-12 2175  ax-ext 2711  ax-sep 5227  ax-nul 5234  ax-pr 5356  ax-un 7582
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1545  df-fal 1555  df-ex 1787  df-nf 1791  df-sb 2072  df-mo 2542  df-eu 2571  df-clab 2718  df-cleq 2732  df-clel 2818  df-nfc 2891  df-nel 3052  df-ral 3071  df-rex 3072  df-rab 3075  df-v 3433  df-sbc 3721  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 4568  df-pr 4570  df-op 4574  df-uni 4846  df-iun 4932  df-br 5080  df-opab 5142  df-mpt 5163  df-id 5490  df-xp 5596  df-rel 5597  df-cnv 5598  df-co 5599  df-dm 5600  df-rn 5601  df-res 5602  df-ima 5603  df-iota 6390  df-fun 6434  df-fn 6435  df-f 6436  df-fv 6440  df-ov 7274  df-oprab 7275  df-mpo 7276  df-1st 7824  df-2nd 7825  df-edg 27416  df-uhgr 27426  df-nbgr 27698
This theorem is referenced by:  uhgrnbgr0nb  27719
  Copyright terms: Public domain W3C validator