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

Theorem dfnbgr3 27608
Description: Alternate definition of the neighbors of a vertex using the edge function instead of the edges themselves (see also nbgrval 27606). (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 2738 . . . 4 (Edg‘𝐺) = (Edg‘𝐺)
31, 2nbgrval 27606 . . 3 (𝑁𝑉 → (𝐺 NeighbVtx 𝑁) = {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑒 ∈ (Edg‘𝐺){𝑁, 𝑛} ⊆ 𝑒})
43adantr 480 . 2 ((𝑁𝑉 ∧ Fun 𝐼) → (𝐺 NeighbVtx 𝑁) = {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑒 ∈ (Edg‘𝐺){𝑁, 𝑛} ⊆ 𝑒})
5 edgval 27322 . . . . . 6 (Edg‘𝐺) = ran (iEdg‘𝐺)
6 dfnbgr3.i . . . . . . . 8 𝐼 = (iEdg‘𝐺)
76eqcomi 2747 . . . . . . 7 (iEdg‘𝐺) = 𝐼
87rneqi 5835 . . . . . 6 ran (iEdg‘𝐺) = ran 𝐼
95, 8eqtri 2766 . . . . 5 (Edg‘𝐺) = ran 𝐼
109rexeqi 3338 . . . 4 (∃𝑒 ∈ (Edg‘𝐺){𝑁, 𝑛} ⊆ 𝑒 ↔ ∃𝑒 ∈ ran 𝐼{𝑁, 𝑛} ⊆ 𝑒)
11 funfn 6448 . . . . . . 7 (Fun 𝐼𝐼 Fn dom 𝐼)
1211biimpi 215 . . . . . 6 (Fun 𝐼𝐼 Fn dom 𝐼)
1312adantl 481 . . . . 5 ((𝑁𝑉 ∧ Fun 𝐼) → 𝐼 Fn dom 𝐼)
14 sseq2 3943 . . . . . 6 (𝑒 = (𝐼𝑖) → ({𝑁, 𝑛} ⊆ 𝑒 ↔ {𝑁, 𝑛} ⊆ (𝐼𝑖)))
1514rexrn 6945 . . . . 5 (𝐼 Fn dom 𝐼 → (∃𝑒 ∈ ran 𝐼{𝑁, 𝑛} ⊆ 𝑒 ↔ ∃𝑖 ∈ dom 𝐼{𝑁, 𝑛} ⊆ (𝐼𝑖)))
1613, 15syl 17 . . . 4 ((𝑁𝑉 ∧ Fun 𝐼) → (∃𝑒 ∈ ran 𝐼{𝑁, 𝑛} ⊆ 𝑒 ↔ ∃𝑖 ∈ dom 𝐼{𝑁, 𝑛} ⊆ (𝐼𝑖)))
1710, 16syl5bb 282 . . 3 ((𝑁𝑉 ∧ Fun 𝐼) → (∃𝑒 ∈ (Edg‘𝐺){𝑁, 𝑛} ⊆ 𝑒 ↔ ∃𝑖 ∈ dom 𝐼{𝑁, 𝑛} ⊆ (𝐼𝑖)))
1817rabbidv 3404 . 2 ((𝑁𝑉 ∧ Fun 𝐼) → {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑒 ∈ (Edg‘𝐺){𝑁, 𝑛} ⊆ 𝑒} = {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑖 ∈ dom 𝐼{𝑁, 𝑛} ⊆ (𝐼𝑖)})
194, 18eqtrd 2778 1 ((𝑁𝑉 ∧ Fun 𝐼) → (𝐺 NeighbVtx 𝑁) = {𝑛 ∈ (𝑉 ∖ {𝑁}) ∣ ∃𝑖 ∈ dom 𝐼{𝑁, 𝑛} ⊆ (𝐼𝑖)})
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1539  wcel 2108  wrex 3064  {crab 3067  cdif 3880  wss 3883  {csn 4558  {cpr 4560  dom cdm 5580  ran crn 5581  Fun wfun 6412   Fn wfn 6413  cfv 6418  (class class class)co 7255  Vtxcvtx 27269  iEdgciedg 27270  Edgcedg 27320   NeighbVtx cnbgr 27602
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-iota 6376  df-fun 6420  df-fn 6421  df-fv 6426  df-ov 7258  df-oprab 7259  df-mpo 7260  df-edg 27321  df-nbgr 27603
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator