Metamath Proof Explorer


Theorem nbumgr

Description: The set of neighbors of an arbitrary class in a multigraph. (Contributed by AV, 27-Nov-2020)

Ref Expression
Hypotheses nbuhgr.v V=VtxG
nbuhgr.e E=EdgG
Assertion nbumgr GUMGraphGNeighbVtxN=nV|NnE

Proof

Step Hyp Ref Expression
1 nbuhgr.v V=VtxG
2 nbuhgr.e E=EdgG
3 1 2 nbumgrvtx GUMGraphNVGNeighbVtxN=nV|NnE
4 3 expcom NVGUMGraphGNeighbVtxN=nV|NnE
5 df-nel NV¬NV
6 1 nbgrnvtx0 NVGNeighbVtxN=
7 5 6 sylbir ¬NVGNeighbVtxN=
8 7 adantr ¬NVGUMGraphGNeighbVtxN=
9 1 2 umgrpredgv GUMGraphNnENVnV
10 9 simpld GUMGraphNnENV
11 10 ex GUMGraphNnENV
12 11 adantl nVGUMGraphNnENV
13 12 con3d nVGUMGraph¬NV¬NnE
14 13 ex nVGUMGraph¬NV¬NnE
15 14 com13 ¬NVGUMGraphnV¬NnE
16 15 imp ¬NVGUMGraphnV¬NnE
17 16 ralrimiv ¬NVGUMGraphnV¬NnE
18 rabeq0 nV|NnE=nV¬NnE
19 17 18 sylibr ¬NVGUMGraphnV|NnE=
20 8 19 eqtr4d ¬NVGUMGraphGNeighbVtxN=nV|NnE
21 20 ex ¬NVGUMGraphGNeighbVtxN=nV|NnE
22 4 21 pm2.61i GUMGraphGNeighbVtxN=nV|NnE