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

Theorem nbuhgr 27127
Description: The set of neighbors of a vertex in a hypergraph. This version of nbgrval 27120 (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 27120 . . 3 (𝑁𝑉 → (𝐺 NeighbVtx 𝑁) = {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒})
43a1d 25 . 2 (𝑁𝑉 → ((𝐺 ∈ UHGraph ∧ 𝑁𝑋) → (𝐺 NeighbVtx 𝑁) = {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒}))
5 df-nel 3126 . . . . . 6 (𝑁𝑉 ↔ ¬ 𝑁𝑉)
61nbgrnvtx0 27123 . . . . . 6 (𝑁𝑉 → (𝐺 NeighbVtx 𝑁) = ∅)
75, 6sylbir 237 . . . . 5 𝑁𝑉 → (𝐺 NeighbVtx 𝑁) = ∅)
87adantr 483 . . . 4 ((¬ 𝑁𝑉 ∧ (𝐺 ∈ UHGraph ∧ 𝑁𝑋)) → (𝐺 NeighbVtx 𝑁) = ∅)
9 simpl 485 . . . . . . . . . . . 12 ((𝐺 ∈ UHGraph ∧ 𝑁𝑋) → 𝐺 ∈ UHGraph)
109adantr 483 . . . . . . . . . . 11 (((𝐺 ∈ UHGraph ∧ 𝑁𝑋) ∧ 𝑛 ∈ (𝑉 ∖ {𝑁})) → 𝐺 ∈ UHGraph)
112eleq2i 2906 . . . . . . . . . . . 12 (𝑒𝐸𝑒 ∈ (Edg‘𝐺))
1211biimpi 218 . . . . . . . . . . 11 (𝑒𝐸𝑒 ∈ (Edg‘𝐺))
13 edguhgr 26916 . . . . . . . . . . 11 ((𝐺 ∈ UHGraph ∧ 𝑒 ∈ (Edg‘𝐺)) → 𝑒 ∈ 𝒫 (Vtx‘𝐺))
1410, 12, 13syl2an 597 . . . . . . . . . 10 ((((𝐺 ∈ UHGraph ∧ 𝑁𝑋) ∧ 𝑛 ∈ (𝑉 ∖ {𝑁})) ∧ 𝑒𝐸) → 𝑒 ∈ 𝒫 (Vtx‘𝐺))
15 velpw 4546 . . . . . . . . . . . 12 (𝑒 ∈ 𝒫 (Vtx‘𝐺) ↔ 𝑒 ⊆ (Vtx‘𝐺))
161eqcomi 2832 . . . . . . . . . . . . 13 (Vtx‘𝐺) = 𝑉
1716sseq2i 3998 . . . . . . . . . . . 12 (𝑒 ⊆ (Vtx‘𝐺) ↔ 𝑒𝑉)
1815, 17bitri 277 . . . . . . . . . . 11 (𝑒 ∈ 𝒫 (Vtx‘𝐺) ↔ 𝑒𝑉)
19 sstr 3977 . . . . . . . . . . . . . . 15 (({𝑁, 𝑛} ⊆ 𝑒𝑒𝑉) → {𝑁, 𝑛} ⊆ 𝑉)
20 prssg 4754 . . . . . . . . . . . . . . . . . 18 ((𝑁𝑋𝑛 ∈ V) → ((𝑁𝑉𝑛𝑉) ↔ {𝑁, 𝑛} ⊆ 𝑉))
2120bicomd 225 . . . . . . . . . . . . . . . . 17 ((𝑁𝑋𝑛 ∈ V) → ({𝑁, 𝑛} ⊆ 𝑉 ↔ (𝑁𝑉𝑛𝑉)))
2221elvd 3502 . . . . . . . . . . . . . . . 16 (𝑁𝑋 → ({𝑁, 𝑛} ⊆ 𝑉 ↔ (𝑁𝑉𝑛𝑉)))
23 simpl 485 . . . . . . . . . . . . . . . 16 ((𝑁𝑉𝑛𝑉) → 𝑁𝑉)
2422, 23syl6bi 255 . . . . . . . . . . . . . . 15 (𝑁𝑋 → ({𝑁, 𝑛} ⊆ 𝑉𝑁𝑉))
2519, 24syl5com 31 . . . . . . . . . . . . . 14 (({𝑁, 𝑛} ⊆ 𝑒𝑒𝑉) → (𝑁𝑋𝑁𝑉))
2625ex 415 . . . . . . . . . . . . 13 ({𝑁, 𝑛} ⊆ 𝑒 → (𝑒𝑉 → (𝑁𝑋𝑁𝑉)))
2726com13 88 . . . . . . . . . . . 12 (𝑁𝑋 → (𝑒𝑉 → ({𝑁, 𝑛} ⊆ 𝑒𝑁𝑉)))
2827ad3antlr 729 . . . . . . . . . . 11 ((((𝐺 ∈ UHGraph ∧ 𝑁𝑋) ∧ 𝑛 ∈ (𝑉 ∖ {𝑁})) ∧ 𝑒𝐸) → (𝑒𝑉 → ({𝑁, 𝑛} ⊆ 𝑒𝑁𝑉)))
2918, 28syl5bi 244 . . . . . . . . . 10 ((((𝐺 ∈ UHGraph ∧ 𝑁𝑋) ∧ 𝑛 ∈ (𝑉 ∖ {𝑁})) ∧ 𝑒𝐸) → (𝑒 ∈ 𝒫 (Vtx‘𝐺) → ({𝑁, 𝑛} ⊆ 𝑒𝑁𝑉)))
3014, 29mpd 15 . . . . . . . . 9 ((((𝐺 ∈ UHGraph ∧ 𝑁𝑋) ∧ 𝑛 ∈ (𝑉 ∖ {𝑁})) ∧ 𝑒𝐸) → ({𝑁, 𝑛} ⊆ 𝑒𝑁𝑉))
3130rexlimdva 3286 . . . . . . . 8 (((𝐺 ∈ UHGraph ∧ 𝑁𝑋) ∧ 𝑛 ∈ (𝑉 ∖ {𝑁})) → (∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒𝑁𝑉))
3231con3rr3 158 . . . . . . 7 𝑁𝑉 → (((𝐺 ∈ UHGraph ∧ 𝑁𝑋) ∧ 𝑛 ∈ (𝑉 ∖ {𝑁})) → ¬ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒))
3332expdimp 455 . . . . . 6 ((¬ 𝑁𝑉 ∧ (𝐺 ∈ UHGraph ∧ 𝑁𝑋)) → (𝑛 ∈ (𝑉 ∖ {𝑁}) → ¬ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒))
3433ralrimiv 3183 . . . . 5 ((¬ 𝑁𝑉 ∧ (𝐺 ∈ UHGraph ∧ 𝑁𝑋)) → ∀𝑛 ∈ (𝑉 ∖ {𝑁}) ¬ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒)
35 rabeq0 4340 . . . . 5 ({𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒} = ∅ ↔ ∀𝑛 ∈ (𝑉 ∖ {𝑁}) ¬ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒)
3634, 35sylibr 236 . . . 4 ((¬ 𝑁𝑉 ∧ (𝐺 ∈ UHGraph ∧ 𝑁𝑋)) → {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒} = ∅)
378, 36eqtr4d 2861 . . 3 ((¬ 𝑁𝑉 ∧ (𝐺 ∈ UHGraph ∧ 𝑁𝑋)) → (𝐺 NeighbVtx 𝑁) = {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒})
3837ex 415 . 2 𝑁𝑉 → ((𝐺 ∈ UHGraph ∧ 𝑁𝑋) → (𝐺 NeighbVtx 𝑁) = {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒}))
394, 38pm2.61i 184 1 ((𝐺 ∈ UHGraph ∧ 𝑁𝑋) → (𝐺 NeighbVtx 𝑁) = {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑒𝐸 {𝑁, 𝑛} ⊆ 𝑒})
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 208  wa 398   = wceq 1537  wcel 2114  wnel 3125  wral 3140  wrex 3141  {crab 3144  Vcvv 3496  cdif 3935  wss 3938  c0 4293  𝒫 cpw 4541  {csn 4569  {cpr 4571  cfv 6357  (class class class)co 7158  Vtxcvtx 26783  Edgcedg 26834  UHGraphcuhgr 26843   NeighbVtx cnbgr 27116
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2795  ax-sep 5205  ax-nul 5212  ax-pow 5268  ax-pr 5332  ax-un 7463
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1540  df-fal 1550  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  df-clab 2802  df-cleq 2816  df-clel 2895  df-nfc 2965  df-nel 3126  df-ral 3145  df-rex 3146  df-rab 3149  df-v 3498  df-sbc 3775  df-csb 3886  df-dif 3941  df-un 3943  df-in 3945  df-ss 3954  df-nul 4294  df-if 4470  df-pw 4543  df-sn 4570  df-pr 4572  df-op 4576  df-uni 4841  df-iun 4923  df-br 5069  df-opab 5131  df-mpt 5149  df-id 5462  df-xp 5563  df-rel 5564  df-cnv 5565  df-co 5566  df-dm 5567  df-rn 5568  df-res 5569  df-ima 5570  df-iota 6316  df-fun 6359  df-fn 6360  df-f 6361  df-fv 6365  df-ov 7161  df-oprab 7162  df-mpo 7163  df-1st 7691  df-2nd 7692  df-edg 26835  df-uhgr 26845  df-nbgr 27117
This theorem is referenced by:  uhgrnbgr0nb  27138
  Copyright terms: Public domain W3C validator