Metamath Proof Explorer


Theorem nb3gr2nb

Description: If the neighbors of two vertices in a graph with three elements are an unordered pair of the other vertices, the neighbors of all three vertices are an unordered pair of the other vertices. (Contributed by Alexander van der Vekens, 18-Oct-2017) (Revised by AV, 28-Oct-2020)

Ref Expression
Assertion nb3gr2nb AXBYCZVtxG=ABCGUSGraphGNeighbVtxA=BCGNeighbVtxB=ACGNeighbVtxA=BCGNeighbVtxB=ACGNeighbVtxC=AB

Proof

Step Hyp Ref Expression
1 prcom AC=CA
2 1 eleq1i ACEdgGCAEdgG
3 2 biimpi ACEdgGCAEdgG
4 3 adantl ABEdgGACEdgGCAEdgG
5 prcom BC=CB
6 5 eleq1i BCEdgGCBEdgG
7 6 biimpi BCEdgGCBEdgG
8 7 adantl BAEdgGBCEdgGCBEdgG
9 4 8 anim12i ABEdgGACEdgGBAEdgGBCEdgGCAEdgGCBEdgG
10 9 a1i AXBYCZVtxG=ABCGUSGraphABEdgGACEdgGBAEdgGBCEdgGCAEdgGCBEdgG
11 eqid VtxG=VtxG
12 eqid EdgG=EdgG
13 simprr AXBYCZVtxG=ABCGUSGraphGUSGraph
14 simprl AXBYCZVtxG=ABCGUSGraphVtxG=ABC
15 simpl AXBYCZVtxG=ABCGUSGraphAXBYCZ
16 11 12 13 14 15 nb3grprlem1 AXBYCZVtxG=ABCGUSGraphGNeighbVtxA=BCABEdgGACEdgG
17 3ancoma AXBYCZBYAXCZ
18 17 biimpi AXBYCZBYAXCZ
19 tpcoma ABC=BAC
20 19 eqeq2i VtxG=ABCVtxG=BAC
21 20 biimpi VtxG=ABCVtxG=BAC
22 21 anim1i VtxG=ABCGUSGraphVtxG=BACGUSGraph
23 simprr BYAXCZVtxG=BACGUSGraphGUSGraph
24 simprl BYAXCZVtxG=BACGUSGraphVtxG=BAC
25 simpl BYAXCZVtxG=BACGUSGraphBYAXCZ
26 11 12 23 24 25 nb3grprlem1 BYAXCZVtxG=BACGUSGraphGNeighbVtxB=ACBAEdgGBCEdgG
27 18 22 26 syl2an AXBYCZVtxG=ABCGUSGraphGNeighbVtxB=ACBAEdgGBCEdgG
28 16 27 anbi12d AXBYCZVtxG=ABCGUSGraphGNeighbVtxA=BCGNeighbVtxB=ACABEdgGACEdgGBAEdgGBCEdgG
29 3anrot CZAXBYAXBYCZ
30 29 biimpri AXBYCZCZAXBY
31 tprot CAB=ABC
32 31 eqcomi ABC=CAB
33 32 eqeq2i VtxG=ABCVtxG=CAB
34 33 anbi1i VtxG=ABCGUSGraphVtxG=CABGUSGraph
35 34 biimpi VtxG=ABCGUSGraphVtxG=CABGUSGraph
36 simprr CZAXBYVtxG=CABGUSGraphGUSGraph
37 simprl CZAXBYVtxG=CABGUSGraphVtxG=CAB
38 simpl CZAXBYVtxG=CABGUSGraphCZAXBY
39 11 12 36 37 38 nb3grprlem1 CZAXBYVtxG=CABGUSGraphGNeighbVtxC=ABCAEdgGCBEdgG
40 30 35 39 syl2an AXBYCZVtxG=ABCGUSGraphGNeighbVtxC=ABCAEdgGCBEdgG
41 10 28 40 3imtr4d AXBYCZVtxG=ABCGUSGraphGNeighbVtxA=BCGNeighbVtxB=ACGNeighbVtxC=AB
42 41 pm4.71d AXBYCZVtxG=ABCGUSGraphGNeighbVtxA=BCGNeighbVtxB=ACGNeighbVtxA=BCGNeighbVtxB=ACGNeighbVtxC=AB
43 df-3an GNeighbVtxA=BCGNeighbVtxB=ACGNeighbVtxC=ABGNeighbVtxA=BCGNeighbVtxB=ACGNeighbVtxC=AB
44 42 43 bitr4di AXBYCZVtxG=ABCGUSGraphGNeighbVtxA=BCGNeighbVtxB=ACGNeighbVtxA=BCGNeighbVtxB=ACGNeighbVtxC=AB