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

Theorem dfnbgr3 27128
Description: Alternate definition of the neighbors of a vertex using the edge function instead of the edges themselves (see also nbgrval 27126). (Contributed by Alexander van der Vekens, 17-Dec-2017.) (Revised by AV, 25-Oct-2020.) (Revised by AV, 21-Mar-2021.)
Hypotheses
Ref Expression
dfnbgr3.v 𝑉 = (Vtx‘𝐺)
dfnbgr3.i 𝐼 = (iEdg‘𝐺)
Assertion
Ref Expression
dfnbgr3 ((𝑁𝑉 ∧ Fun 𝐼) → (𝐺 NeighbVtx 𝑁) = {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑖 ∈ dom 𝐼{𝑁, 𝑛} ⊆ (𝐼𝑖)})
Distinct variable groups:   𝑛,𝐺   𝑖,𝐼,𝑛   𝑖,𝑁,𝑛   𝑛,𝑉
Allowed substitution hints:   𝐺(𝑖)   𝑉(𝑖)

Proof of Theorem dfnbgr3
Dummy variable 𝑒 is distinct from all other variables.
StepHypRef Expression
1 dfnbgr3.v . . . 4 𝑉 = (Vtx‘𝐺)
2 eqid 2798 . . . 4 (Edg‘𝐺) = (Edg‘𝐺)
31, 2nbgrval 27126 . . 3 (𝑁𝑉 → (𝐺 NeighbVtx 𝑁) = {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑒 ∈ (Edg‘𝐺){𝑁, 𝑛} ⊆ 𝑒})
43adantr 484 . 2 ((𝑁𝑉 ∧ Fun 𝐼) → (𝐺 NeighbVtx 𝑁) = {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑒 ∈ (Edg‘𝐺){𝑁, 𝑛} ⊆ 𝑒})
5 edgval 26842 . . . . . 6 (Edg‘𝐺) = ran (iEdg‘𝐺)
6 dfnbgr3.i . . . . . . . 8 𝐼 = (iEdg‘𝐺)
76eqcomi 2807 . . . . . . 7 (iEdg‘𝐺) = 𝐼
87rneqi 5771 . . . . . 6 ran (iEdg‘𝐺) = ran 𝐼
95, 8eqtri 2821 . . . . 5 (Edg‘𝐺) = ran 𝐼
109rexeqi 3363 . . . 4 (∃𝑒 ∈ (Edg‘𝐺){𝑁, 𝑛} ⊆ 𝑒 ↔ ∃𝑒 ∈ ran 𝐼{𝑁, 𝑛} ⊆ 𝑒)
11 funfn 6354 . . . . . . 7 (Fun 𝐼𝐼 Fn dom 𝐼)
1211biimpi 219 . . . . . 6 (Fun 𝐼𝐼 Fn dom 𝐼)
1312adantl 485 . . . . 5 ((𝑁𝑉 ∧ Fun 𝐼) → 𝐼 Fn dom 𝐼)
14 sseq2 3941 . . . . . 6 (𝑒 = (𝐼𝑖) → ({𝑁, 𝑛} ⊆ 𝑒 ↔ {𝑁, 𝑛} ⊆ (𝐼𝑖)))
1514rexrn 6830 . . . . 5 (𝐼 Fn dom 𝐼 → (∃𝑒 ∈ ran 𝐼{𝑁, 𝑛} ⊆ 𝑒 ↔ ∃𝑖 ∈ dom 𝐼{𝑁, 𝑛} ⊆ (𝐼𝑖)))
1613, 15syl 17 . . . 4 ((𝑁𝑉 ∧ Fun 𝐼) → (∃𝑒 ∈ ran 𝐼{𝑁, 𝑛} ⊆ 𝑒 ↔ ∃𝑖 ∈ dom 𝐼{𝑁, 𝑛} ⊆ (𝐼𝑖)))
1710, 16syl5bb 286 . . 3 ((𝑁𝑉 ∧ Fun 𝐼) → (∃𝑒 ∈ (Edg‘𝐺){𝑁, 𝑛} ⊆ 𝑒 ↔ ∃𝑖 ∈ dom 𝐼{𝑁, 𝑛} ⊆ (𝐼𝑖)))
1817rabbidv 3427 . 2 ((𝑁𝑉 ∧ Fun 𝐼) → {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑒 ∈ (Edg‘𝐺){𝑁, 𝑛} ⊆ 𝑒} = {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑖 ∈ dom 𝐼{𝑁, 𝑛} ⊆ (𝐼𝑖)})
194, 18eqtrd 2833 1 ((𝑁𝑉 ∧ Fun 𝐼) → (𝐺 NeighbVtx 𝑁) = {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑖 ∈ dom 𝐼{𝑁, 𝑛} ⊆ (𝐼𝑖)})
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399   = wceq 1538  wcel 2111  wrex 3107  {crab 3110  cdif 3878  wss 3881  {csn 4525  {cpr 4527  dom cdm 5519  ran crn 5520  Fun wfun 6318   Fn wfn 6319  cfv 6324  (class class class)co 7135  Vtxcvtx 26789  iEdgciedg 26790  Edgcedg 26840   NeighbVtx cnbgr 27122
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-sep 5167  ax-nul 5174  ax-pow 5231  ax-pr 5295  ax-un 7441
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ral 3111  df-rex 3112  df-rab 3115  df-v 3443  df-sbc 3721  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-nul 4244  df-if 4426  df-sn 4526  df-pr 4528  df-op 4532  df-uni 4801  df-br 5031  df-opab 5093  df-mpt 5111  df-id 5425  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-iota 6283  df-fun 6326  df-fn 6327  df-fv 6332  df-ov 7138  df-oprab 7139  df-mpo 7140  df-edg 26841  df-nbgr 27123
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator