Metamath Proof Explorer


Theorem nbupgr

Description: The set of neighbors of a vertex in a pseudograph. (Contributed by AV, 5-Nov-2020) (Proof shortened by AV, 30-Dec-2020)

Ref Expression
Hypotheses nbuhgr.v V=VtxG
nbuhgr.e E=EdgG
Assertion nbupgr GUPGraphNVGNeighbVtxN=nVN|NnE

Proof

Step Hyp Ref Expression
1 nbuhgr.v V=VtxG
2 nbuhgr.e E=EdgG
3 1 2 nbgrval NVGNeighbVtxN=nVN|eENne
4 3 adantl GUPGraphNVGNeighbVtxN=nVN|eENne
5 simp-4l GUPGraphNVnVNeENneGUPGraph
6 simpr GUPGraphNVnVNeEeE
7 6 adantr GUPGraphNVnVNeENneeE
8 simpr GUPGraphNVnVNeENneNne
9 simpr GUPGraphNVNV
10 9 adantr GUPGraphNVnVNNV
11 vex nV
12 11 a1i GUPGraphNVnVNnV
13 eldifsn nVNnVnN
14 simpr nVnNnN
15 14 necomd nVnNNn
16 13 15 sylbi nVNNn
17 16 adantl GUPGraphNVnVNNn
18 10 12 17 3jca GUPGraphNVnVNNVnVNn
19 18 adantr GUPGraphNVnVNeENVnVNn
20 19 adantr GUPGraphNVnVNeENneNVnVNn
21 1 2 upgredgpr GUPGrapheENneNVnVNnNn=e
22 5 7 8 20 21 syl31anc GUPGraphNVnVNeENneNn=e
23 22 ex GUPGraphNVnVNeENneNn=e
24 eleq1 Nn=eNnEeE
25 24 biimprd Nn=eeENnE
26 23 6 25 syl6ci GUPGraphNVnVNeENneNnE
27 26 rexlimdva GUPGraphNVnVNeENneNnE
28 simpr GUPGraphNVnVNNnENnE
29 sseq2 e=NnNneNnNn
30 29 adantl GUPGraphNVnVNNnEe=NnNneNnNn
31 ssidd GUPGraphNVnVNNnENnNn
32 28 30 31 rspcedvd GUPGraphNVnVNNnEeENne
33 32 ex GUPGraphNVnVNNnEeENne
34 27 33 impbid GUPGraphNVnVNeENneNnE
35 34 rabbidva GUPGraphNVnVN|eENne=nVN|NnE
36 4 35 eqtrd GUPGraphNVGNeighbVtxN=nVN|NnE