MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  nb3graprlem2 Structured version   Unicode version

Theorem nb3graprlem2 24114
Description: Lemma 2 for nb3grapr 24115. (Contributed by Alexander van der Vekens, 17-Oct-2017.)
Assertion
Ref Expression
nb3graprlem2  |-  ( ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z
)  /\  ( V  =  { A ,  B ,  C }  /\  V USGrph  E )  /\  ( A  =/=  B  /\  A  =/=  C  /\  B  =/= 
C ) )  -> 
( ( <. V ,  E >. Neighbors  A )  =  { B ,  C }  <->  E. v  e.  V  E. w  e.  ( V  \  { v } ) ( <. V ,  E >. Neighbors  A )  =  {
v ,  w }
) )
Distinct variable groups:    v, E, w    v, V, w    v, A, w    v, B, w   
v, C, w
Allowed substitution hints:    X( w, v)    Y( w, v)    Z( w, v)

Proof of Theorem nb3graprlem2
StepHypRef Expression
1 sneq 4030 . . . . . 6  |-  ( v  =  A  ->  { v }  =  { A } )
21difeq2d 3615 . . . . 5  |-  ( v  =  A  ->  ( { A ,  B ,  C }  \  { v } )  =  ( { A ,  B ,  C }  \  { A } ) )
3 preq1 4099 . . . . . 6  |-  ( v  =  A  ->  { v ,  w }  =  { A ,  w }
)
43eqeq2d 2474 . . . . 5  |-  ( v  =  A  ->  (
( <. V ,  E >. Neighbors  A )  =  {
v ,  w }  <->  (
<. V ,  E >. Neighbors  A
)  =  { A ,  w } ) )
52, 4rexeqbidv 3066 . . . 4  |-  ( v  =  A  ->  ( E. w  e.  ( { A ,  B ,  C }  \  { v } ) ( <. V ,  E >. Neighbors  A
)  =  { v ,  w }  <->  E. w  e.  ( { A ,  B ,  C }  \  { A } ) ( <. V ,  E >. Neighbors  A )  =  { A ,  w }
) )
6 sneq 4030 . . . . . 6  |-  ( v  =  B  ->  { v }  =  { B } )
76difeq2d 3615 . . . . 5  |-  ( v  =  B  ->  ( { A ,  B ,  C }  \  { v } )  =  ( { A ,  B ,  C }  \  { B } ) )
8 preq1 4099 . . . . . 6  |-  ( v  =  B  ->  { v ,  w }  =  { B ,  w }
)
98eqeq2d 2474 . . . . 5  |-  ( v  =  B  ->  (
( <. V ,  E >. Neighbors  A )  =  {
v ,  w }  <->  (
<. V ,  E >. Neighbors  A
)  =  { B ,  w } ) )
107, 9rexeqbidv 3066 . . . 4  |-  ( v  =  B  ->  ( E. w  e.  ( { A ,  B ,  C }  \  { v } ) ( <. V ,  E >. Neighbors  A
)  =  { v ,  w }  <->  E. w  e.  ( { A ,  B ,  C }  \  { B } ) ( <. V ,  E >. Neighbors  A )  =  { B ,  w }
) )
11 sneq 4030 . . . . . 6  |-  ( v  =  C  ->  { v }  =  { C } )
1211difeq2d 3615 . . . . 5  |-  ( v  =  C  ->  ( { A ,  B ,  C }  \  { v } )  =  ( { A ,  B ,  C }  \  { C } ) )
13 preq1 4099 . . . . . 6  |-  ( v  =  C  ->  { v ,  w }  =  { C ,  w }
)
1413eqeq2d 2474 . . . . 5  |-  ( v  =  C  ->  (
( <. V ,  E >. Neighbors  A )  =  {
v ,  w }  <->  (
<. V ,  E >. Neighbors  A
)  =  { C ,  w } ) )
1512, 14rexeqbidv 3066 . . . 4  |-  ( v  =  C  ->  ( E. w  e.  ( { A ,  B ,  C }  \  { v } ) ( <. V ,  E >. Neighbors  A
)  =  { v ,  w }  <->  E. w  e.  ( { A ,  B ,  C }  \  { C } ) ( <. V ,  E >. Neighbors  A )  =  { C ,  w }
) )
165, 10, 15rextpg 4072 . . 3  |-  ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z )  ->  ( E. v  e. 
{ A ,  B ,  C } E. w  e.  ( { A ,  B ,  C }  \  { v } ) ( <. V ,  E >. Neighbors  A )  =  {
v ,  w }  <->  ( E. w  e.  ( { A ,  B ,  C }  \  { A } ) ( <. V ,  E >. Neighbors  A
)  =  { A ,  w }  \/  E. w  e.  ( { A ,  B ,  C }  \  { B } ) ( <. V ,  E >. Neighbors  A
)  =  { B ,  w }  \/  E. w  e.  ( { A ,  B ,  C }  \  { C } ) ( <. V ,  E >. Neighbors  A
)  =  { C ,  w } ) ) )
17163ad2ant1 1012 . 2  |-  ( ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z
)  /\  ( V  =  { A ,  B ,  C }  /\  V USGrph  E )  /\  ( A  =/=  B  /\  A  =/=  C  /\  B  =/= 
C ) )  -> 
( E. v  e. 
{ A ,  B ,  C } E. w  e.  ( { A ,  B ,  C }  \  { v } ) ( <. V ,  E >. Neighbors  A )  =  {
v ,  w }  <->  ( E. w  e.  ( { A ,  B ,  C }  \  { A } ) ( <. V ,  E >. Neighbors  A
)  =  { A ,  w }  \/  E. w  e.  ( { A ,  B ,  C }  \  { B } ) ( <. V ,  E >. Neighbors  A
)  =  { B ,  w }  \/  E. w  e.  ( { A ,  B ,  C }  \  { C } ) ( <. V ,  E >. Neighbors  A
)  =  { C ,  w } ) ) )
18 simpl 457 . . . 4  |-  ( ( V  =  { A ,  B ,  C }  /\  V USGrph  E )  ->  V  =  { A ,  B ,  C }
)
19 difeq1 3608 . . . . . 6  |-  ( V  =  { A ,  B ,  C }  ->  ( V  \  {
v } )  =  ( { A ,  B ,  C }  \  { v } ) )
2019adantr 465 . . . . 5  |-  ( ( V  =  { A ,  B ,  C }  /\  V USGrph  E )  -> 
( V  \  {
v } )  =  ( { A ,  B ,  C }  \  { v } ) )
2120rexeqdv 3058 . . . 4  |-  ( ( V  =  { A ,  B ,  C }  /\  V USGrph  E )  -> 
( E. w  e.  ( V  \  {
v } ) (
<. V ,  E >. Neighbors  A
)  =  { v ,  w }  <->  E. w  e.  ( { A ,  B ,  C }  \  { v } ) ( <. V ,  E >. Neighbors  A )  =  {
v ,  w }
) )
2218, 21rexeqbidv 3066 . . 3  |-  ( ( V  =  { A ,  B ,  C }  /\  V USGrph  E )  -> 
( E. v  e.  V  E. w  e.  ( V  \  {
v } ) (
<. V ,  E >. Neighbors  A
)  =  { v ,  w }  <->  E. v  e.  { A ,  B ,  C } E. w  e.  ( { A ,  B ,  C }  \  { v } ) ( <. V ,  E >. Neighbors  A )  =  {
v ,  w }
) )
23223ad2ant2 1013 . 2  |-  ( ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z
)  /\  ( V  =  { A ,  B ,  C }  /\  V USGrph  E )  /\  ( A  =/=  B  /\  A  =/=  C  /\  B  =/= 
C ) )  -> 
( E. v  e.  V  E. w  e.  ( V  \  {
v } ) (
<. V ,  E >. Neighbors  A
)  =  { v ,  w }  <->  E. v  e.  { A ,  B ,  C } E. w  e.  ( { A ,  B ,  C }  \  { v } ) ( <. V ,  E >. Neighbors  A )  =  {
v ,  w }
) )
24 preq2 4100 . . . . . . . 8  |-  ( w  =  B  ->  { A ,  w }  =  { A ,  B }
)
2524eqeq2d 2474 . . . . . . 7  |-  ( w  =  B  ->  (
( <. V ,  E >. Neighbors  A )  =  { A ,  w }  <->  (
<. V ,  E >. Neighbors  A
)  =  { A ,  B } ) )
26 preq2 4100 . . . . . . . 8  |-  ( w  =  C  ->  { A ,  w }  =  { A ,  C }
)
2726eqeq2d 2474 . . . . . . 7  |-  ( w  =  C  ->  (
( <. V ,  E >. Neighbors  A )  =  { A ,  w }  <->  (
<. V ,  E >. Neighbors  A
)  =  { A ,  C } ) )
2825, 27rexprg 4070 . . . . . 6  |-  ( ( B  e.  Y  /\  C  e.  Z )  ->  ( E. w  e. 
{ B ,  C }  ( <. V ,  E >. Neighbors  A )  =  { A ,  w }  <->  ( ( <. V ,  E >. Neighbors  A )  =  { A ,  B }  \/  ( <. V ,  E >. Neighbors  A )  =  { A ,  C }
) ) )
29283adant1 1009 . . . . 5  |-  ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z )  ->  ( E. w  e. 
{ B ,  C }  ( <. V ,  E >. Neighbors  A )  =  { A ,  w }  <->  ( ( <. V ,  E >. Neighbors  A )  =  { A ,  B }  \/  ( <. V ,  E >. Neighbors  A )  =  { A ,  C }
) ) )
30 preq2 4100 . . . . . . . . 9  |-  ( w  =  C  ->  { B ,  w }  =  { B ,  C }
)
3130eqeq2d 2474 . . . . . . . 8  |-  ( w  =  C  ->  (
( <. V ,  E >. Neighbors  A )  =  { B ,  w }  <->  (
<. V ,  E >. Neighbors  A
)  =  { B ,  C } ) )
32 preq2 4100 . . . . . . . . 9  |-  ( w  =  A  ->  { B ,  w }  =  { B ,  A }
)
3332eqeq2d 2474 . . . . . . . 8  |-  ( w  =  A  ->  (
( <. V ,  E >. Neighbors  A )  =  { B ,  w }  <->  (
<. V ,  E >. Neighbors  A
)  =  { B ,  A } ) )
3431, 33rexprg 4070 . . . . . . 7  |-  ( ( C  e.  Z  /\  A  e.  X )  ->  ( E. w  e. 
{ C ,  A }  ( <. V ,  E >. Neighbors  A )  =  { B ,  w }  <->  ( ( <. V ,  E >. Neighbors  A )  =  { B ,  C }  \/  ( <. V ,  E >. Neighbors  A )  =  { B ,  A }
) ) )
3534ancoms 453 . . . . . 6  |-  ( ( A  e.  X  /\  C  e.  Z )  ->  ( E. w  e. 
{ C ,  A }  ( <. V ,  E >. Neighbors  A )  =  { B ,  w }  <->  ( ( <. V ,  E >. Neighbors  A )  =  { B ,  C }  \/  ( <. V ,  E >. Neighbors  A )  =  { B ,  A }
) ) )
36353adant2 1010 . . . . 5  |-  ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z )  ->  ( E. w  e. 
{ C ,  A }  ( <. V ,  E >. Neighbors  A )  =  { B ,  w }  <->  ( ( <. V ,  E >. Neighbors  A )  =  { B ,  C }  \/  ( <. V ,  E >. Neighbors  A )  =  { B ,  A }
) ) )
37 preq2 4100 . . . . . . . 8  |-  ( w  =  A  ->  { C ,  w }  =  { C ,  A }
)
3837eqeq2d 2474 . . . . . . 7  |-  ( w  =  A  ->  (
( <. V ,  E >. Neighbors  A )  =  { C ,  w }  <->  (
<. V ,  E >. Neighbors  A
)  =  { C ,  A } ) )
39 preq2 4100 . . . . . . . 8  |-  ( w  =  B  ->  { C ,  w }  =  { C ,  B }
)
4039eqeq2d 2474 . . . . . . 7  |-  ( w  =  B  ->  (
( <. V ,  E >. Neighbors  A )  =  { C ,  w }  <->  (
<. V ,  E >. Neighbors  A
)  =  { C ,  B } ) )
4138, 40rexprg 4070 . . . . . 6  |-  ( ( A  e.  X  /\  B  e.  Y )  ->  ( E. w  e. 
{ A ,  B }  ( <. V ,  E >. Neighbors  A )  =  { C ,  w }  <->  ( ( <. V ,  E >. Neighbors  A )  =  { C ,  A }  \/  ( <. V ,  E >. Neighbors  A )  =  { C ,  B }
) ) )
42413adant3 1011 . . . . 5  |-  ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z )  ->  ( E. w  e. 
{ A ,  B }  ( <. V ,  E >. Neighbors  A )  =  { C ,  w }  <->  ( ( <. V ,  E >. Neighbors  A )  =  { C ,  A }  \/  ( <. V ,  E >. Neighbors  A )  =  { C ,  B }
) ) )
4329, 36, 423orbi123d 1293 . . . 4  |-  ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z )  ->  ( ( E. w  e.  { B ,  C }  ( <. V ,  E >. Neighbors  A )  =  { A ,  w }  \/  E. w  e.  { C ,  A } 
( <. V ,  E >. Neighbors  A )  =  { B ,  w }  \/  E. w  e.  { A ,  B } 
( <. V ,  E >. Neighbors  A )  =  { C ,  w }
)  <->  ( ( (
<. V ,  E >. Neighbors  A
)  =  { A ,  B }  \/  ( <. V ,  E >. Neighbors  A
)  =  { A ,  C } )  \/  ( ( <. V ,  E >. Neighbors  A )  =  { B ,  C }  \/  ( <. V ,  E >. Neighbors  A )  =  { B ,  A }
)  \/  ( (
<. V ,  E >. Neighbors  A
)  =  { C ,  A }  \/  ( <. V ,  E >. Neighbors  A
)  =  { C ,  B } ) ) ) )
44433ad2ant1 1012 . . 3  |-  ( ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z
)  /\  ( V  =  { A ,  B ,  C }  /\  V USGrph  E )  /\  ( A  =/=  B  /\  A  =/=  C  /\  B  =/= 
C ) )  -> 
( ( E. w  e.  { B ,  C }  ( <. V ,  E >. Neighbors  A )  =  { A ,  w }  \/  E. w  e.  { C ,  A } 
( <. V ,  E >. Neighbors  A )  =  { B ,  w }  \/  E. w  e.  { A ,  B } 
( <. V ,  E >. Neighbors  A )  =  { C ,  w }
)  <->  ( ( (
<. V ,  E >. Neighbors  A
)  =  { A ,  B }  \/  ( <. V ,  E >. Neighbors  A
)  =  { A ,  C } )  \/  ( ( <. V ,  E >. Neighbors  A )  =  { B ,  C }  \/  ( <. V ,  E >. Neighbors  A )  =  { B ,  A }
)  \/  ( (
<. V ,  E >. Neighbors  A
)  =  { C ,  A }  \/  ( <. V ,  E >. Neighbors  A
)  =  { C ,  B } ) ) ) )
45 tprot 4115 . . . . . . . . 9  |-  { A ,  B ,  C }  =  { B ,  C ,  A }
4645a1i 11 . . . . . . . 8  |-  ( ( A  =/=  B  /\  A  =/=  C  /\  B  =/=  C )  ->  { A ,  B ,  C }  =  { B ,  C ,  A } )
4746difeq1d 3614 . . . . . . 7  |-  ( ( A  =/=  B  /\  A  =/=  C  /\  B  =/=  C )  ->  ( { A ,  B ,  C }  \  { A } )  =  ( { B ,  C ,  A }  \  { A } ) )
48 necom 2729 . . . . . . . . 9  |-  ( A  =/=  B  <->  B  =/=  A )
49 necom 2729 . . . . . . . . 9  |-  ( A  =/=  C  <->  C  =/=  A )
50 diftpsn3 4158 . . . . . . . . 9  |-  ( ( B  =/=  A  /\  C  =/=  A )  -> 
( { B ,  C ,  A }  \  { A } )  =  { B ,  C } )
5148, 49, 50syl2anb 479 . . . . . . . 8  |-  ( ( A  =/=  B  /\  A  =/=  C )  -> 
( { B ,  C ,  A }  \  { A } )  =  { B ,  C } )
52513adant3 1011 . . . . . . 7  |-  ( ( A  =/=  B  /\  A  =/=  C  /\  B  =/=  C )  ->  ( { B ,  C ,  A }  \  { A } )  =  { B ,  C }
)
5347, 52eqtrd 2501 . . . . . 6  |-  ( ( A  =/=  B  /\  A  =/=  C  /\  B  =/=  C )  ->  ( { A ,  B ,  C }  \  { A } )  =  { B ,  C }
)
5453rexeqdv 3058 . . . . 5  |-  ( ( A  =/=  B  /\  A  =/=  C  /\  B  =/=  C )  ->  ( E. w  e.  ( { A ,  B ,  C }  \  { A } ) ( <. V ,  E >. Neighbors  A
)  =  { A ,  w }  <->  E. w  e.  { B ,  C }  ( <. V ,  E >. Neighbors  A )  =  { A ,  w }
) )
55 tprot 4115 . . . . . . . . . 10  |-  { C ,  A ,  B }  =  { A ,  B ,  C }
5655eqcomi 2473 . . . . . . . . 9  |-  { A ,  B ,  C }  =  { C ,  A ,  B }
5756a1i 11 . . . . . . . 8  |-  ( ( A  =/=  B  /\  A  =/=  C  /\  B  =/=  C )  ->  { A ,  B ,  C }  =  { C ,  A ,  B } )
5857difeq1d 3614 . . . . . . 7  |-  ( ( A  =/=  B  /\  A  =/=  C  /\  B  =/=  C )  ->  ( { A ,  B ,  C }  \  { B } )  =  ( { C ,  A ,  B }  \  { B } ) )
59 necom 2729 . . . . . . . . . . . 12  |-  ( B  =/=  C  <->  C  =/=  B )
6059anbi1i 695 . . . . . . . . . . 11  |-  ( ( B  =/=  C  /\  A  =/=  B )  <->  ( C  =/=  B  /\  A  =/= 
B ) )
6160biimpi 194 . . . . . . . . . 10  |-  ( ( B  =/=  C  /\  A  =/=  B )  -> 
( C  =/=  B  /\  A  =/=  B
) )
6261ancoms 453 . . . . . . . . 9  |-  ( ( A  =/=  B  /\  B  =/=  C )  -> 
( C  =/=  B  /\  A  =/=  B
) )
63 diftpsn3 4158 . . . . . . . . 9  |-  ( ( C  =/=  B  /\  A  =/=  B )  -> 
( { C ,  A ,  B }  \  { B } )  =  { C ,  A } )
6462, 63syl 16 . . . . . . . 8  |-  ( ( A  =/=  B  /\  B  =/=  C )  -> 
( { C ,  A ,  B }  \  { B } )  =  { C ,  A } )
65643adant2 1010 . . . . . . 7  |-  ( ( A  =/=  B  /\  A  =/=  C  /\  B  =/=  C )  ->  ( { C ,  A ,  B }  \  { B } )  =  { C ,  A }
)
6658, 65eqtrd 2501 . . . . . 6  |-  ( ( A  =/=  B  /\  A  =/=  C  /\  B  =/=  C )  ->  ( { A ,  B ,  C }  \  { B } )  =  { C ,  A }
)
6766rexeqdv 3058 . . . . 5  |-  ( ( A  =/=  B  /\  A  =/=  C  /\  B  =/=  C )  ->  ( E. w  e.  ( { A ,  B ,  C }  \  { B } ) ( <. V ,  E >. Neighbors  A
)  =  { B ,  w }  <->  E. w  e.  { C ,  A }  ( <. V ,  E >. Neighbors  A )  =  { B ,  w }
) )
68 diftpsn3 4158 . . . . . . 7  |-  ( ( A  =/=  C  /\  B  =/=  C )  -> 
( { A ,  B ,  C }  \  { C } )  =  { A ,  B } )
69683adant1 1009 . . . . . 6  |-  ( ( A  =/=  B  /\  A  =/=  C  /\  B  =/=  C )  ->  ( { A ,  B ,  C }  \  { C } )  =  { A ,  B }
)
7069rexeqdv 3058 . . . . 5  |-  ( ( A  =/=  B  /\  A  =/=  C  /\  B  =/=  C )  ->  ( E. w  e.  ( { A ,  B ,  C }  \  { C } ) ( <. V ,  E >. Neighbors  A
)  =  { C ,  w }  <->  E. w  e.  { A ,  B }  ( <. V ,  E >. Neighbors  A )  =  { C ,  w }
) )
7154, 67, 703orbi123d 1293 . . . 4  |-  ( ( A  =/=  B  /\  A  =/=  C  /\  B  =/=  C )  ->  (
( E. w  e.  ( { A ,  B ,  C }  \  { A } ) ( <. V ,  E >. Neighbors  A )  =  { A ,  w }  \/  E. w  e.  ( { A ,  B ,  C }  \  { B } ) ( <. V ,  E >. Neighbors  A
)  =  { B ,  w }  \/  E. w  e.  ( { A ,  B ,  C }  \  { C } ) ( <. V ,  E >. Neighbors  A
)  =  { C ,  w } )  <->  ( E. w  e.  { B ,  C }  ( <. V ,  E >. Neighbors  A
)  =  { A ,  w }  \/  E. w  e.  { C ,  A }  ( <. V ,  E >. Neighbors  A
)  =  { B ,  w }  \/  E. w  e.  { A ,  B }  ( <. V ,  E >. Neighbors  A
)  =  { C ,  w } ) ) )
72713ad2ant3 1014 . . 3  |-  ( ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z
)  /\  ( V  =  { A ,  B ,  C }  /\  V USGrph  E )  /\  ( A  =/=  B  /\  A  =/=  C  /\  B  =/= 
C ) )  -> 
( ( E. w  e.  ( { A ,  B ,  C }  \  { A } ) ( <. V ,  E >. Neighbors  A )  =  { A ,  w }  \/  E. w  e.  ( { A ,  B ,  C }  \  { B } ) ( <. V ,  E >. Neighbors  A
)  =  { B ,  w }  \/  E. w  e.  ( { A ,  B ,  C }  \  { C } ) ( <. V ,  E >. Neighbors  A
)  =  { C ,  w } )  <->  ( E. w  e.  { B ,  C }  ( <. V ,  E >. Neighbors  A
)  =  { A ,  w }  \/  E. w  e.  { C ,  A }  ( <. V ,  E >. Neighbors  A
)  =  { B ,  w }  \/  E. w  e.  { A ,  B }  ( <. V ,  E >. Neighbors  A
)  =  { C ,  w } ) ) )
73 prcom 4098 . . . . . . . 8  |-  { C ,  B }  =  { B ,  C }
7473eqeq2i 2478 . . . . . . 7  |-  ( (
<. V ,  E >. Neighbors  A
)  =  { C ,  B }  <->  ( <. V ,  E >. Neighbors  A )  =  { B ,  C } )
7574orbi2i 519 . . . . . 6  |-  ( ( ( <. V ,  E >. Neighbors  A )  =  { B ,  C }  \/  ( <. V ,  E >. Neighbors  A )  =  { C ,  B }
)  <->  ( ( <. V ,  E >. Neighbors  A
)  =  { B ,  C }  \/  ( <. V ,  E >. Neighbors  A
)  =  { B ,  C } ) )
76 oridm 514 . . . . . 6  |-  ( ( ( <. V ,  E >. Neighbors  A )  =  { B ,  C }  \/  ( <. V ,  E >. Neighbors  A )  =  { B ,  C }
)  <->  ( <. V ,  E >. Neighbors  A )  =  { B ,  C }
)
7775, 76bitr2i 250 . . . . 5  |-  ( (
<. V ,  E >. Neighbors  A
)  =  { B ,  C }  <->  ( ( <. V ,  E >. Neighbors  A
)  =  { B ,  C }  \/  ( <. V ,  E >. Neighbors  A
)  =  { C ,  B } ) )
7877a1i 11 . . . 4  |-  ( ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z
)  /\  ( V  =  { A ,  B ,  C }  /\  V USGrph  E )  /\  ( A  =/=  B  /\  A  =/=  C  /\  B  =/= 
C ) )  -> 
( ( <. V ,  E >. Neighbors  A )  =  { B ,  C }  <->  ( ( <. V ,  E >. Neighbors  A )  =  { B ,  C }  \/  ( <. V ,  E >. Neighbors  A )  =  { C ,  B }
) ) )
79 nbgranself2 24098 . . . . . . . . . 10  |-  ( V USGrph  E  ->  A  e/  ( <. V ,  E >. Neighbors  A
) )
80 df-nel 2658 . . . . . . . . . . 11  |-  ( A  e/  ( <. V ,  E >. Neighbors  A )  <->  -.  A  e.  ( <. V ,  E >. Neighbors  A ) )
81 prid2g 4127 . . . . . . . . . . . . . 14  |-  ( A  e.  X  ->  A  e.  { B ,  A } )
82813ad2ant1 1012 . . . . . . . . . . . . 13  |-  ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z )  ->  A  e.  { B ,  A } )
83 eleq2 2533 . . . . . . . . . . . . 13  |-  ( (
<. V ,  E >. Neighbors  A
)  =  { B ,  A }  ->  ( A  e.  ( <. V ,  E >. Neighbors  A )  <-> 
A  e.  { B ,  A } ) )
8482, 83syl5ibrcom 222 . . . . . . . . . . . 12  |-  ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z )  ->  ( ( <. V ,  E >. Neighbors  A )  =  { B ,  A }  ->  A  e.  ( <. V ,  E >. Neighbors  A
) ) )
8584con3rr3 136 . . . . . . . . . . 11  |-  ( -.  A  e.  ( <. V ,  E >. Neighbors  A
)  ->  ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z )  ->  -.  ( <. V ,  E >. Neighbors  A )  =  { B ,  A }
) )
8680, 85sylbi 195 . . . . . . . . . 10  |-  ( A  e/  ( <. V ,  E >. Neighbors  A )  ->  (
( A  e.  X  /\  B  e.  Y  /\  C  e.  Z
)  ->  -.  ( <. V ,  E >. Neighbors  A
)  =  { B ,  A } ) )
8779, 86syl 16 . . . . . . . . 9  |-  ( V USGrph  E  ->  ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z )  ->  -.  ( <. V ,  E >. Neighbors  A )  =  { B ,  A }
) )
8887adantl 466 . . . . . . . 8  |-  ( ( V  =  { A ,  B ,  C }  /\  V USGrph  E )  -> 
( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z )  ->  -.  ( <. V ,  E >. Neighbors  A )  =  { B ,  A }
) )
8988impcom 430 . . . . . . 7  |-  ( ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z
)  /\  ( V  =  { A ,  B ,  C }  /\  V USGrph  E ) )  ->  -.  ( <. V ,  E >. Neighbors  A )  =  { B ,  A }
)
90893adant3 1011 . . . . . 6  |-  ( ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z
)  /\  ( V  =  { A ,  B ,  C }  /\  V USGrph  E )  /\  ( A  =/=  B  /\  A  =/=  C  /\  B  =/= 
C ) )  ->  -.  ( <. V ,  E >. Neighbors  A )  =  { B ,  A }
)
91 biorf 405 . . . . . . 7  |-  ( -.  ( <. V ,  E >. Neighbors  A )  =  { B ,  A }  ->  ( ( <. V ,  E >. Neighbors  A )  =  { B ,  C }  <->  ( ( <. V ,  E >. Neighbors  A )  =  { B ,  A }  \/  ( <. V ,  E >. Neighbors  A )  =  { B ,  C }
) ) )
92 orcom 387 . . . . . . 7  |-  ( ( ( <. V ,  E >. Neighbors  A )  =  { B ,  A }  \/  ( <. V ,  E >. Neighbors  A )  =  { B ,  C }
)  <->  ( ( <. V ,  E >. Neighbors  A
)  =  { B ,  C }  \/  ( <. V ,  E >. Neighbors  A
)  =  { B ,  A } ) )
9391, 92syl6bb 261 . . . . . 6  |-  ( -.  ( <. V ,  E >. Neighbors  A )  =  { B ,  A }  ->  ( ( <. V ,  E >. Neighbors  A )  =  { B ,  C }  <->  ( ( <. V ,  E >. Neighbors  A )  =  { B ,  C }  \/  ( <. V ,  E >. Neighbors  A )  =  { B ,  A }
) ) )
9490, 93syl 16 . . . . 5  |-  ( ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z
)  /\  ( V  =  { A ,  B ,  C }  /\  V USGrph  E )  /\  ( A  =/=  B  /\  A  =/=  C  /\  B  =/= 
C ) )  -> 
( ( <. V ,  E >. Neighbors  A )  =  { B ,  C }  <->  ( ( <. V ,  E >. Neighbors  A )  =  { B ,  C }  \/  ( <. V ,  E >. Neighbors  A )  =  { B ,  A }
) ) )
95 prid2g 4127 . . . . . . . . . . . . . 14  |-  ( A  e.  X  ->  A  e.  { C ,  A } )
96953ad2ant1 1012 . . . . . . . . . . . . 13  |-  ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z )  ->  A  e.  { C ,  A } )
97 eleq2 2533 . . . . . . . . . . . . 13  |-  ( (
<. V ,  E >. Neighbors  A
)  =  { C ,  A }  ->  ( A  e.  ( <. V ,  E >. Neighbors  A )  <-> 
A  e.  { C ,  A } ) )
9896, 97syl5ibrcom 222 . . . . . . . . . . . 12  |-  ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z )  ->  ( ( <. V ,  E >. Neighbors  A )  =  { C ,  A }  ->  A  e.  ( <. V ,  E >. Neighbors  A
) ) )
9998con3rr3 136 . . . . . . . . . . 11  |-  ( -.  A  e.  ( <. V ,  E >. Neighbors  A
)  ->  ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z )  ->  -.  ( <. V ,  E >. Neighbors  A )  =  { C ,  A }
) )
10080, 99sylbi 195 . . . . . . . . . 10  |-  ( A  e/  ( <. V ,  E >. Neighbors  A )  ->  (
( A  e.  X  /\  B  e.  Y  /\  C  e.  Z
)  ->  -.  ( <. V ,  E >. Neighbors  A
)  =  { C ,  A } ) )
10179, 100syl 16 . . . . . . . . 9  |-  ( V USGrph  E  ->  ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z )  ->  -.  ( <. V ,  E >. Neighbors  A )  =  { C ,  A }
) )
102101adantl 466 . . . . . . . 8  |-  ( ( V  =  { A ,  B ,  C }  /\  V USGrph  E )  -> 
( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z )  ->  -.  ( <. V ,  E >. Neighbors  A )  =  { C ,  A }
) )
103102impcom 430 . . . . . . 7  |-  ( ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z
)  /\  ( V  =  { A ,  B ,  C }  /\  V USGrph  E ) )  ->  -.  ( <. V ,  E >. Neighbors  A )  =  { C ,  A }
)
1041033adant3 1011 . . . . . 6  |-  ( ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z
)  /\  ( V  =  { A ,  B ,  C }  /\  V USGrph  E )  /\  ( A  =/=  B  /\  A  =/=  C  /\  B  =/= 
C ) )  ->  -.  ( <. V ,  E >. Neighbors  A )  =  { C ,  A }
)
105 biorf 405 . . . . . 6  |-  ( -.  ( <. V ,  E >. Neighbors  A )  =  { C ,  A }  ->  ( ( <. V ,  E >. Neighbors  A )  =  { C ,  B }  <->  ( ( <. V ,  E >. Neighbors  A )  =  { C ,  A }  \/  ( <. V ,  E >. Neighbors  A )  =  { C ,  B }
) ) )
106104, 105syl 16 . . . . 5  |-  ( ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z
)  /\  ( V  =  { A ,  B ,  C }  /\  V USGrph  E )  /\  ( A  =/=  B  /\  A  =/=  C  /\  B  =/= 
C ) )  -> 
( ( <. V ,  E >. Neighbors  A )  =  { C ,  B }  <->  ( ( <. V ,  E >. Neighbors  A )  =  { C ,  A }  \/  ( <. V ,  E >. Neighbors  A )  =  { C ,  B }
) ) )
10794, 106orbi12d 709 . . . 4  |-  ( ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z
)  /\  ( V  =  { A ,  B ,  C }  /\  V USGrph  E )  /\  ( A  =/=  B  /\  A  =/=  C  /\  B  =/= 
C ) )  -> 
( ( ( <. V ,  E >. Neighbors  A
)  =  { B ,  C }  \/  ( <. V ,  E >. Neighbors  A
)  =  { C ,  B } )  <->  ( (
( <. V ,  E >. Neighbors  A )  =  { B ,  C }  \/  ( <. V ,  E >. Neighbors  A )  =  { B ,  A }
)  \/  ( (
<. V ,  E >. Neighbors  A
)  =  { C ,  A }  \/  ( <. V ,  E >. Neighbors  A
)  =  { C ,  B } ) ) ) )
108 prid1g 4126 . . . . . . . . . . . . . . . 16  |-  ( A  e.  X  ->  A  e.  { A ,  B } )
1091083ad2ant1 1012 . . . . . . . . . . . . . . 15  |-  ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z )  ->  A  e.  { A ,  B } )
110 eleq2 2533 . . . . . . . . . . . . . . 15  |-  ( (
<. V ,  E >. Neighbors  A
)  =  { A ,  B }  ->  ( A  e.  ( <. V ,  E >. Neighbors  A )  <-> 
A  e.  { A ,  B } ) )
111109, 110syl5ibrcom 222 . . . . . . . . . . . . . 14  |-  ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z )  ->  ( ( <. V ,  E >. Neighbors  A )  =  { A ,  B }  ->  A  e.  ( <. V ,  E >. Neighbors  A
) ) )
112111con3dimp 441 . . . . . . . . . . . . 13  |-  ( ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z
)  /\  -.  A  e.  ( <. V ,  E >. Neighbors  A ) )  ->  -.  ( <. V ,  E >. Neighbors  A )  =  { A ,  B }
)
113 prid1g 4126 . . . . . . . . . . . . . . . 16  |-  ( A  e.  X  ->  A  e.  { A ,  C } )
1141133ad2ant1 1012 . . . . . . . . . . . . . . 15  |-  ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z )  ->  A  e.  { A ,  C } )
115 eleq2 2533 . . . . . . . . . . . . . . 15  |-  ( (
<. V ,  E >. Neighbors  A
)  =  { A ,  C }  ->  ( A  e.  ( <. V ,  E >. Neighbors  A )  <-> 
A  e.  { A ,  C } ) )
116114, 115syl5ibrcom 222 . . . . . . . . . . . . . 14  |-  ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z )  ->  ( ( <. V ,  E >. Neighbors  A )  =  { A ,  C }  ->  A  e.  ( <. V ,  E >. Neighbors  A
) ) )
117116con3dimp 441 . . . . . . . . . . . . 13  |-  ( ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z
)  /\  -.  A  e.  ( <. V ,  E >. Neighbors  A ) )  ->  -.  ( <. V ,  E >. Neighbors  A )  =  { A ,  C }
)
118112, 117jca 532 . . . . . . . . . . . 12  |-  ( ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z
)  /\  -.  A  e.  ( <. V ,  E >. Neighbors  A ) )  -> 
( -.  ( <. V ,  E >. Neighbors  A
)  =  { A ,  B }  /\  -.  ( <. V ,  E >. Neighbors  A )  =  { A ,  C }
) )
119118expcom 435 . . . . . . . . . . 11  |-  ( -.  A  e.  ( <. V ,  E >. Neighbors  A
)  ->  ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z )  ->  ( -.  ( <. V ,  E >. Neighbors  A
)  =  { A ,  B }  /\  -.  ( <. V ,  E >. Neighbors  A )  =  { A ,  C }
) ) )
12080, 119sylbi 195 . . . . . . . . . 10  |-  ( A  e/  ( <. V ,  E >. Neighbors  A )  ->  (
( A  e.  X  /\  B  e.  Y  /\  C  e.  Z
)  ->  ( -.  ( <. V ,  E >. Neighbors  A )  =  { A ,  B }  /\  -.  ( <. V ,  E >. Neighbors  A )  =  { A ,  C }
) ) )
12179, 120syl 16 . . . . . . . . 9  |-  ( V USGrph  E  ->  ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z )  ->  ( -.  ( <. V ,  E >. Neighbors  A )  =  { A ,  B }  /\  -.  ( <. V ,  E >. Neighbors  A )  =  { A ,  C }
) ) )
122121adantl 466 . . . . . . . 8  |-  ( ( V  =  { A ,  B ,  C }  /\  V USGrph  E )  -> 
( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z )  ->  ( -.  ( <. V ,  E >. Neighbors  A )  =  { A ,  B }  /\  -.  ( <. V ,  E >. Neighbors  A )  =  { A ,  C }
) ) )
123122impcom 430 . . . . . . 7  |-  ( ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z
)  /\  ( V  =  { A ,  B ,  C }  /\  V USGrph  E ) )  ->  ( -.  ( <. V ,  E >. Neighbors  A )  =  { A ,  B }  /\  -.  ( <. V ,  E >. Neighbors  A )  =  { A ,  C }
) )
1241233adant3 1011 . . . . . 6  |-  ( ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z
)  /\  ( V  =  { A ,  B ,  C }  /\  V USGrph  E )  /\  ( A  =/=  B  /\  A  =/=  C  /\  B  =/= 
C ) )  -> 
( -.  ( <. V ,  E >. Neighbors  A
)  =  { A ,  B }  /\  -.  ( <. V ,  E >. Neighbors  A )  =  { A ,  C }
) )
125 ioran 490 . . . . . 6  |-  ( -.  ( ( <. V ,  E >. Neighbors  A )  =  { A ,  B }  \/  ( <. V ,  E >. Neighbors  A )  =  { A ,  C }
)  <->  ( -.  ( <. V ,  E >. Neighbors  A
)  =  { A ,  B }  /\  -.  ( <. V ,  E >. Neighbors  A )  =  { A ,  C }
) )
126124, 125sylibr 212 . . . . 5  |-  ( ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z
)  /\  ( V  =  { A ,  B ,  C }  /\  V USGrph  E )  /\  ( A  =/=  B  /\  A  =/=  C  /\  B  =/= 
C ) )  ->  -.  ( ( <. V ,  E >. Neighbors  A )  =  { A ,  B }  \/  ( <. V ,  E >. Neighbors  A )  =  { A ,  C }
) )
1271263bior1fd 1329 . . . 4  |-  ( ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z
)  /\  ( V  =  { A ,  B ,  C }  /\  V USGrph  E )  /\  ( A  =/=  B  /\  A  =/=  C  /\  B  =/= 
C ) )  -> 
( ( ( (
<. V ,  E >. Neighbors  A
)  =  { B ,  C }  \/  ( <. V ,  E >. Neighbors  A
)  =  { B ,  A } )  \/  ( ( <. V ,  E >. Neighbors  A )  =  { C ,  A }  \/  ( <. V ,  E >. Neighbors  A )  =  { C ,  B }
) )  <->  ( (
( <. V ,  E >. Neighbors  A )  =  { A ,  B }  \/  ( <. V ,  E >. Neighbors  A )  =  { A ,  C }
)  \/  ( (
<. V ,  E >. Neighbors  A
)  =  { B ,  C }  \/  ( <. V ,  E >. Neighbors  A
)  =  { B ,  A } )  \/  ( ( <. V ,  E >. Neighbors  A )  =  { C ,  A }  \/  ( <. V ,  E >. Neighbors  A )  =  { C ,  B }
) ) ) )
12878, 107, 1273bitrd 279 . . 3  |-  ( ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z
)  /\  ( V  =  { A ,  B ,  C }  /\  V USGrph  E )  /\  ( A  =/=  B  /\  A  =/=  C  /\  B  =/= 
C ) )  -> 
( ( <. V ,  E >. Neighbors  A )  =  { B ,  C }  <->  ( ( ( <. V ,  E >. Neighbors  A )  =  { A ,  B }  \/  ( <. V ,  E >. Neighbors  A )  =  { A ,  C }
)  \/  ( (
<. V ,  E >. Neighbors  A
)  =  { B ,  C }  \/  ( <. V ,  E >. Neighbors  A
)  =  { B ,  A } )  \/  ( ( <. V ,  E >. Neighbors  A )  =  { C ,  A }  \/  ( <. V ,  E >. Neighbors  A )  =  { C ,  B }
) ) ) )
12944, 72, 1283bitr4rd 286 . 2  |-  ( ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z
)  /\  ( V  =  { A ,  B ,  C }  /\  V USGrph  E )  /\  ( A  =/=  B  /\  A  =/=  C  /\  B  =/= 
C ) )  -> 
( ( <. V ,  E >. Neighbors  A )  =  { B ,  C }  <->  ( E. w  e.  ( { A ,  B ,  C }  \  { A } ) ( <. V ,  E >. Neighbors  A
)  =  { A ,  w }  \/  E. w  e.  ( { A ,  B ,  C }  \  { B } ) ( <. V ,  E >. Neighbors  A
)  =  { B ,  w }  \/  E. w  e.  ( { A ,  B ,  C }  \  { C } ) ( <. V ,  E >. Neighbors  A
)  =  { C ,  w } ) ) )
13017, 23, 1293bitr4rd 286 1  |-  ( ( ( A  e.  X  /\  B  e.  Y  /\  C  e.  Z
)  /\  ( V  =  { A ,  B ,  C }  /\  V USGrph  E )  /\  ( A  =/=  B  /\  A  =/=  C  /\  B  =/= 
C ) )  -> 
( ( <. V ,  E >. Neighbors  A )  =  { B ,  C }  <->  E. v  e.  V  E. w  e.  ( V  \  { v } ) ( <. V ,  E >. Neighbors  A )  =  {
v ,  w }
) )
Colors of variables: wff setvar class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 184    \/ wo 368    /\ wa 369    \/ w3o 967    /\ w3a 968    = wceq 1374    e. wcel 1762    =/= wne 2655    e/ wnel 2656   E.wrex 2808    \ cdif 3466   {csn 4020   {cpr 4022   {ctp 4024   <.cop 4026   class class class wbr 4440  (class class class)co 6275   USGrph cusg 23993   Neighbors cnbgra 24079
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1596  ax-4 1607  ax-5 1675  ax-6 1714  ax-7 1734  ax-8 1764  ax-9 1766  ax-10 1781  ax-11 1786  ax-12 1798  ax-13 1961  ax-ext 2438  ax-rep 4551  ax-sep 4561  ax-nul 4569  ax-pow 4618  ax-pr 4679  ax-un 6567  ax-cnex 9537  ax-resscn 9538  ax-1cn 9539  ax-icn 9540  ax-addcl 9541  ax-addrcl 9542  ax-mulcl 9543  ax-mulrcl 9544  ax-mulcom 9545  ax-addass 9546  ax-mulass 9547  ax-distr 9548  ax-i2m1 9549  ax-1ne0 9550  ax-1rid 9551  ax-rnegex 9552  ax-rrecex 9553  ax-cnre 9554  ax-pre-lttri 9555  ax-pre-lttrn 9556  ax-pre-ltadd 9557  ax-pre-mulgt0 9558
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 969  df-3an 970  df-tru 1377  df-ex 1592  df-nf 1595  df-sb 1707  df-eu 2272  df-mo 2273  df-clab 2446  df-cleq 2452  df-clel 2455  df-nfc 2610  df-ne 2657  df-nel 2658  df-ral 2812  df-rex 2813  df-reu 2814  df-rmo 2815  df-rab 2816  df-v 3108  df-sbc 3325  df-csb 3429  df-dif 3472  df-un 3474  df-in 3476  df-ss 3483  df-pss 3485  df-nul 3779  df-if 3933  df-pw 4005  df-sn 4021  df-pr 4023  df-tp 4025  df-op 4027  df-uni 4239  df-int 4276  df-iun 4320  df-br 4441  df-opab 4499  df-mpt 4500  df-tr 4534  df-eprel 4784  df-id 4788  df-po 4793  df-so 4794  df-fr 4831  df-we 4833  df-ord 4874  df-on 4875  df-lim 4876  df-suc 4877  df-xp 4998  df-rel 4999  df-cnv 5000  df-co 5001  df-dm 5002  df-rn 5003  df-res 5004  df-ima 5005  df-iota 5542  df-fun 5581  df-fn 5582  df-f 5583  df-f1 5584  df-fo 5585  df-f1o 5586  df-fv 5587  df-riota 6236  df-ov 6278  df-oprab 6279  df-mpt2 6280  df-om 6672  df-1st 6774  df-2nd 6775  df-recs 7032  df-rdg 7066  df-1o 7120  df-oadd 7124  df-er 7301  df-en 7507  df-dom 7508  df-sdom 7509  df-fin 7510  df-card 8309  df-cda 8537  df-pnf 9619  df-mnf 9620  df-xr 9621  df-ltxr 9622  df-le 9623  df-sub 9796  df-neg 9797  df-nn 10526  df-2 10583  df-n0 10785  df-z 10854  df-uz 11072  df-fz 11662  df-hash 12361  df-usgra 23996  df-nbgra 24082
This theorem is referenced by:  nb3grapr  24115
  Copyright terms: Public domain W3C validator