Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  usgra2wlkspthlem2 Structured version   Unicode version

Theorem usgra2wlkspthlem2 30250
Description: Lemma 2 for usgra2wlkspth 30251. (Contributed by Alexander van der Vekens, 2-Mar-2018.)
Assertion
Ref Expression
usgra2wlkspthlem2  |-  ( ( ( F  e. Word  dom  E  /\  ( # `  F
)  =  2 )  /\  ( V USGrph  E  /\  P : ( 0 ... ( # `  F
) ) --> V ) )  ->  ( (
( ( P ` 
0 )  =  A  /\  ( P `  ( # `  F ) )  =  B  /\  A  =/=  B )  /\  A. i  e.  ( 0..^ ( # `  F
) ) ( E `
 ( F `  i ) )  =  { ( P `  i ) ,  ( P `  ( i  +  1 ) ) } )  ->  Fun  `' P ) )
Distinct variable groups:    i, E    i, F    P, i
Allowed substitution hints:    A( i)    B( i)    V( i)

Proof of Theorem usgra2wlkspthlem2
StepHypRef Expression
1 oveq2 6094 . . . . . . . . . . . . . . 15  |-  ( (
# `  F )  =  2  ->  (
0 ... ( # `  F
) )  =  ( 0 ... 2 ) )
21feq2d 5542 . . . . . . . . . . . . . 14  |-  ( (
# `  F )  =  2  ->  ( P : ( 0 ... ( # `  F
) ) --> V  <->  P :
( 0 ... 2
) --> V ) )
3 fz0tp 11505 . . . . . . . . . . . . . . . 16  |-  ( 0 ... 2 )  =  { 0 ,  1 ,  2 }
43feq2i 5547 . . . . . . . . . . . . . . 15  |-  ( P : ( 0 ... 2 ) --> V  <->  P : { 0 ,  1 ,  2 } --> V )
54biimpi 194 . . . . . . . . . . . . . 14  |-  ( P : ( 0 ... 2 ) --> V  ->  P : { 0 ,  1 ,  2 } --> V )
62, 5syl6bi 228 . . . . . . . . . . . . 13  |-  ( (
# `  F )  =  2  ->  ( P : ( 0 ... ( # `  F
) ) --> V  ->  P : { 0 ,  1 ,  2 } --> V ) )
76ad2antll 728 . . . . . . . . . . . 12  |-  ( ( V USGrph  E  /\  ( F  e. Word  dom  E  /\  ( # `  F )  =  2 ) )  ->  ( P :
( 0 ... ( # `
 F ) ) --> V  ->  P : { 0 ,  1 ,  2 } --> V ) )
87adantr 465 . . . . . . . . . . 11  |-  ( ( ( V USGrph  E  /\  ( F  e. Word  dom  E  /\  ( # `  F
)  =  2 ) )  /\  ( ( ( P `  0
)  =  A  /\  ( P `  ( # `  F ) )  =  B  /\  A  =/= 
B )  /\  A. i  e.  ( 0..^ ( # `  F
) ) ( E `
 ( F `  i ) )  =  { ( P `  i ) ,  ( P `  ( i  +  1 ) ) } ) )  -> 
( P : ( 0 ... ( # `  F ) ) --> V  ->  P : {
0 ,  1 ,  2 } --> V ) )
98impcom 430 . . . . . . . . . 10  |-  ( ( P : ( 0 ... ( # `  F
) ) --> V  /\  ( ( V USGrph  E  /\  ( F  e. Word  dom  E  /\  ( # `  F
)  =  2 ) )  /\  ( ( ( P `  0
)  =  A  /\  ( P `  ( # `  F ) )  =  B  /\  A  =/= 
B )  /\  A. i  e.  ( 0..^ ( # `  F
) ) ( E `
 ( F `  i ) )  =  { ( P `  i ) ,  ( P `  ( i  +  1 ) ) } ) ) )  ->  P : {
0 ,  1 ,  2 } --> V )
10 eqeq12 2450 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( ( ( P `  0
)  =  A  /\  ( P `  2 )  =  B )  -> 
( ( P ` 
0 )  =  ( P `  2 )  <-> 
A  =  B ) )
1110biimpd 207 . . . . . . . . . . . . . . . . . . . . 21  |-  ( ( ( P `  0
)  =  A  /\  ( P `  2 )  =  B )  -> 
( ( P ` 
0 )  =  ( P `  2 )  ->  A  =  B ) )
1211necon3d 2641 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( ( P `  0
)  =  A  /\  ( P `  2 )  =  B )  -> 
( A  =/=  B  ->  ( P `  0
)  =/=  ( P `
 2 ) ) )
13123impia 1184 . . . . . . . . . . . . . . . . . . 19  |-  ( ( ( P `  0
)  =  A  /\  ( P `  2 )  =  B  /\  A  =/=  B )  ->  ( P `  0 )  =/=  ( P `  2
) )
1413adantr 465 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( ( P ` 
0 )  =  A  /\  ( P ` 
2 )  =  B  /\  A  =/=  B
)  /\  ( ( E `  ( F `  0 ) )  =  { ( P `
 0 ) ,  ( P `  1
) }  /\  ( E `  ( F `  1 ) )  =  { ( P `
 1 ) ,  ( P `  2
) } ) )  ->  ( P ` 
0 )  =/=  ( P `  2 )
)
1514adantl 466 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( F  e. Word  dom  E  /\  ( # `  F )  =  2 )  /\  V USGrph  E
)  /\  ( (
( P `  0
)  =  A  /\  ( P `  2 )  =  B  /\  A  =/=  B )  /\  (
( E `  ( F `  0 )
)  =  { ( P `  0 ) ,  ( P ` 
1 ) }  /\  ( E `  ( F `
 1 ) )  =  { ( P `
 1 ) ,  ( P `  2
) } ) ) )  ->  ( P `  0 )  =/=  ( P `  2
) )
1615adantr 465 . . . . . . . . . . . . . . . 16  |-  ( ( ( ( ( F  e. Word  dom  E  /\  ( # `  F )  =  2 )  /\  V USGrph  E )  /\  (
( ( P ` 
0 )  =  A  /\  ( P ` 
2 )  =  B  /\  A  =/=  B
)  /\  ( ( E `  ( F `  0 ) )  =  { ( P `
 0 ) ,  ( P `  1
) }  /\  ( E `  ( F `  1 ) )  =  { ( P `
 1 ) ,  ( P `  2
) } ) ) )  /\  P :
( 0 ... 2
) --> V )  -> 
( P `  0
)  =/=  ( P `
 2 ) )
17 simplr 754 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( ( ( ( F  e. Word  dom  E  /\  ( # `  F )  =  2 )  /\  V USGrph  E
)  /\  ( E `  ( F `  0
) )  =  {
( P `  0
) ,  ( P `
 1 ) } )  ->  V USGrph  E )
18 usgrafun 23228 . . . . . . . . . . . . . . . . . . . . . . . . 25  |-  ( V USGrph  E  ->  Fun  E )
19 wrdf 12232 . . . . . . . . . . . . . . . . . . . . . . . . . 26  |-  ( F  e. Word  dom  E  ->  F : ( 0..^ (
# `  F )
) --> dom  E )
20 oveq2 6094 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28  |-  ( (
# `  F )  =  2  ->  (
0..^ ( # `  F
) )  =  ( 0..^ 2 ) )
2120feq2d 5542 . . . . . . . . . . . . . . . . . . . . . . . . . . 27  |-  ( (
# `  F )  =  2  ->  ( F : ( 0..^ (
# `  F )
) --> dom  E  <->  F :
( 0..^ 2 ) --> dom  E ) )
22 c0ex 9372 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30  |-  0  e.  _V
2322prid1 3978 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29  |-  0  e.  { 0 ,  1 }
24 fzo0to2pr 11606 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29  |-  ( 0..^ 2 )  =  {
0 ,  1 }
2523, 24eleqtrri 2511 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28  |-  0  e.  ( 0..^ 2 )
26 ffvelrn 5836 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28  |-  ( ( F : ( 0..^ 2 ) --> dom  E  /\  0  e.  (
0..^ 2 ) )  ->  ( F ` 
0 )  e.  dom  E )
2725, 26mpan2 671 . . . . . . . . . . . . . . . . . . . . . . . . . . 27  |-  ( F : ( 0..^ 2 ) --> dom  E  ->  ( F `  0 )  e.  dom  E )
2821, 27syl6bi 228 . . . . . . . . . . . . . . . . . . . . . . . . . 26  |-  ( (
# `  F )  =  2  ->  ( F : ( 0..^ (
# `  F )
) --> dom  E  ->  ( F `  0 )  e.  dom  E ) )
2919, 28mpan9 469 . . . . . . . . . . . . . . . . . . . . . . . . 25  |-  ( ( F  e. Word  dom  E  /\  ( # `  F
)  =  2 )  ->  ( F ` 
0 )  e.  dom  E )
30 fvelrn 5834 . . . . . . . . . . . . . . . . . . . . . . . . 25  |-  ( ( Fun  E  /\  ( F `  0 )  e.  dom  E )  -> 
( E `  ( F `  0 )
)  e.  ran  E
)
3118, 29, 30syl2anr 478 . . . . . . . . . . . . . . . . . . . . . . . 24  |-  ( ( ( F  e. Word  dom  E  /\  ( # `  F
)  =  2 )  /\  V USGrph  E )  ->  ( E `  ( F `  0 )
)  e.  ran  E
)
3231adantr 465 . . . . . . . . . . . . . . . . . . . . . . 23  |-  ( ( ( ( F  e. Word  dom  E  /\  ( # `  F )  =  2 )  /\  V USGrph  E
)  /\  ( E `  ( F `  0
) )  =  {
( P `  0
) ,  ( P `
 1 ) } )  ->  ( E `  ( F `  0
) )  e.  ran  E )
33 eleq1 2498 . . . . . . . . . . . . . . . . . . . . . . . 24  |-  ( ( E `  ( F `
 0 ) )  =  { ( P `
 0 ) ,  ( P `  1
) }  ->  (
( E `  ( F `  0 )
)  e.  ran  E  <->  { ( P `  0
) ,  ( P `
 1 ) }  e.  ran  E ) )
3433adantl 466 . . . . . . . . . . . . . . . . . . . . . . 23  |-  ( ( ( ( F  e. Word  dom  E  /\  ( # `  F )  =  2 )  /\  V USGrph  E
)  /\  ( E `  ( F `  0
) )  =  {
( P `  0
) ,  ( P `
 1 ) } )  ->  ( ( E `  ( F `  0 ) )  e.  ran  E  <->  { ( P `  0 ) ,  ( P ` 
1 ) }  e.  ran  E ) )
3532, 34mpbid 210 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( ( ( ( F  e. Word  dom  E  /\  ( # `  F )  =  2 )  /\  V USGrph  E
)  /\  ( E `  ( F `  0
) )  =  {
( P `  0
) ,  ( P `
 1 ) } )  ->  { ( P `  0 ) ,  ( P ` 
1 ) }  e.  ran  E )
36 usgraedgrn 23251 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( ( V USGrph  E  /\  { ( P `  0 ) ,  ( P ` 
1 ) }  e.  ran  E )  ->  ( P `  0 )  =/=  ( P `  1
) )
3717, 35, 36syl2anc 661 . . . . . . . . . . . . . . . . . . . . 21  |-  ( ( ( ( F  e. Word  dom  E  /\  ( # `  F )  =  2 )  /\  V USGrph  E
)  /\  ( E `  ( F `  0
) )  =  {
( P `  0
) ,  ( P `
 1 ) } )  ->  ( P `  0 )  =/=  ( P `  1
) )
3837ex 434 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( ( F  e. Word  dom  E  /\  ( # `  F
)  =  2 )  /\  V USGrph  E )  ->  ( ( E `  ( F `  0 ) )  =  { ( P `  0 ) ,  ( P ` 
1 ) }  ->  ( P `  0 )  =/=  ( P ` 
1 ) ) )
39 simplr 754 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( ( ( ( F  e. Word  dom  E  /\  ( # `  F )  =  2 )  /\  V USGrph  E
)  /\  ( E `  ( F `  1
) )  =  {
( P `  1
) ,  ( P `
 2 ) } )  ->  V USGrph  E )
40 1ex 9373 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30  |-  1  e.  _V
4140prid2 3979 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29  |-  1  e.  { 0 ,  1 }
4241, 24eleqtrri 2511 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28  |-  1  e.  ( 0..^ 2 )
43 ffvelrn 5836 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28  |-  ( ( F : ( 0..^ 2 ) --> dom  E  /\  1  e.  (
0..^ 2 ) )  ->  ( F ` 
1 )  e.  dom  E )
4442, 43mpan2 671 . . . . . . . . . . . . . . . . . . . . . . . . . . 27  |-  ( F : ( 0..^ 2 ) --> dom  E  ->  ( F `  1 )  e.  dom  E )
4521, 44syl6bi 228 . . . . . . . . . . . . . . . . . . . . . . . . . 26  |-  ( (
# `  F )  =  2  ->  ( F : ( 0..^ (
# `  F )
) --> dom  E  ->  ( F `  1 )  e.  dom  E ) )
4619, 45mpan9 469 . . . . . . . . . . . . . . . . . . . . . . . . 25  |-  ( ( F  e. Word  dom  E  /\  ( # `  F
)  =  2 )  ->  ( F ` 
1 )  e.  dom  E )
47 fvelrn 5834 . . . . . . . . . . . . . . . . . . . . . . . . 25  |-  ( ( Fun  E  /\  ( F `  1 )  e.  dom  E )  -> 
( E `  ( F `  1 )
)  e.  ran  E
)
4818, 46, 47syl2anr 478 . . . . . . . . . . . . . . . . . . . . . . . 24  |-  ( ( ( F  e. Word  dom  E  /\  ( # `  F
)  =  2 )  /\  V USGrph  E )  ->  ( E `  ( F `  1 )
)  e.  ran  E
)
4948adantr 465 . . . . . . . . . . . . . . . . . . . . . . 23  |-  ( ( ( ( F  e. Word  dom  E  /\  ( # `  F )  =  2 )  /\  V USGrph  E
)  /\  ( E `  ( F `  1
) )  =  {
( P `  1
) ,  ( P `
 2 ) } )  ->  ( E `  ( F `  1
) )  e.  ran  E )
50 eleq1 2498 . . . . . . . . . . . . . . . . . . . . . . . 24  |-  ( ( E `  ( F `
 1 ) )  =  { ( P `
 1 ) ,  ( P `  2
) }  ->  (
( E `  ( F `  1 )
)  e.  ran  E  <->  { ( P `  1
) ,  ( P `
 2 ) }  e.  ran  E ) )
5150adantl 466 . . . . . . . . . . . . . . . . . . . . . . 23  |-  ( ( ( ( F  e. Word  dom  E  /\  ( # `  F )  =  2 )  /\  V USGrph  E
)  /\  ( E `  ( F `  1
) )  =  {
( P `  1
) ,  ( P `
 2 ) } )  ->  ( ( E `  ( F `  1 ) )  e.  ran  E  <->  { ( P `  1 ) ,  ( P ` 
2 ) }  e.  ran  E ) )
5249, 51mpbid 210 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( ( ( ( F  e. Word  dom  E  /\  ( # `  F )  =  2 )  /\  V USGrph  E
)  /\  ( E `  ( F `  1
) )  =  {
( P `  1
) ,  ( P `
 2 ) } )  ->  { ( P `  1 ) ,  ( P ` 
2 ) }  e.  ran  E )
53 usgraedgrn 23251 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( ( V USGrph  E  /\  { ( P `  1 ) ,  ( P ` 
2 ) }  e.  ran  E )  ->  ( P `  1 )  =/=  ( P `  2
) )
5439, 52, 53syl2anc 661 . . . . . . . . . . . . . . . . . . . . 21  |-  ( ( ( ( F  e. Word  dom  E  /\  ( # `  F )  =  2 )  /\  V USGrph  E
)  /\  ( E `  ( F `  1
) )  =  {
( P `  1
) ,  ( P `
 2 ) } )  ->  ( P `  1 )  =/=  ( P `  2
) )
5554ex 434 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( ( F  e. Word  dom  E  /\  ( # `  F
)  =  2 )  /\  V USGrph  E )  ->  ( ( E `  ( F `  1 ) )  =  { ( P `  1 ) ,  ( P ` 
2 ) }  ->  ( P `  1 )  =/=  ( P ` 
2 ) ) )
5638, 55anim12d 563 . . . . . . . . . . . . . . . . . . 19  |-  ( ( ( F  e. Word  dom  E  /\  ( # `  F
)  =  2 )  /\  V USGrph  E )  ->  ( ( ( E `
 ( F ` 
0 ) )  =  { ( P ` 
0 ) ,  ( P `  1 ) }  /\  ( E `
 ( F ` 
1 ) )  =  { ( P ` 
1 ) ,  ( P `  2 ) } )  ->  (
( P `  0
)  =/=  ( P `
 1 )  /\  ( P `  1 )  =/=  ( P ` 
2 ) ) ) )
5756adantld 467 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( F  e. Word  dom  E  /\  ( # `  F
)  =  2 )  /\  V USGrph  E )  ->  ( ( ( ( P `  0 )  =  A  /\  ( P `  2 )  =  B  /\  A  =/= 
B )  /\  (
( E `  ( F `  0 )
)  =  { ( P `  0 ) ,  ( P ` 
1 ) }  /\  ( E `  ( F `
 1 ) )  =  { ( P `
 1 ) ,  ( P `  2
) } ) )  ->  ( ( P `
 0 )  =/=  ( P `  1
)  /\  ( P `  1 )  =/=  ( P `  2
) ) ) )
5857imp 429 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( F  e. Word  dom  E  /\  ( # `  F )  =  2 )  /\  V USGrph  E
)  /\  ( (
( P `  0
)  =  A  /\  ( P `  2 )  =  B  /\  A  =/=  B )  /\  (
( E `  ( F `  0 )
)  =  { ( P `  0 ) ,  ( P ` 
1 ) }  /\  ( E `  ( F `
 1 ) )  =  { ( P `
 1 ) ,  ( P `  2
) } ) ) )  ->  ( ( P `  0 )  =/=  ( P `  1
)  /\  ( P `  1 )  =/=  ( P `  2
) ) )
5958adantr 465 . . . . . . . . . . . . . . . 16  |-  ( ( ( ( ( F  e. Word  dom  E  /\  ( # `  F )  =  2 )  /\  V USGrph  E )  /\  (
( ( P ` 
0 )  =  A  /\  ( P ` 
2 )  =  B  /\  A  =/=  B
)  /\  ( ( E `  ( F `  0 ) )  =  { ( P `
 0 ) ,  ( P `  1
) }  /\  ( E `  ( F `  1 ) )  =  { ( P `
 1 ) ,  ( P `  2
) } ) ) )  /\  P :
( 0 ... 2
) --> V )  -> 
( ( P ` 
0 )  =/=  ( P `  1 )  /\  ( P `  1
)  =/=  ( P `
 2 ) ) )
60 3anan12 978 . . . . . . . . . . . . . . . 16  |-  ( ( ( P `  0
)  =/=  ( P `
 1 )  /\  ( P `  0 )  =/=  ( P ` 
2 )  /\  ( P `  1 )  =/=  ( P `  2
) )  <->  ( ( P `  0 )  =/=  ( P `  2
)  /\  ( ( P `  0 )  =/=  ( P `  1
)  /\  ( P `  1 )  =/=  ( P `  2
) ) ) )
6116, 59, 60sylanbrc 664 . . . . . . . . . . . . . . 15  |-  ( ( ( ( ( F  e. Word  dom  E  /\  ( # `  F )  =  2 )  /\  V USGrph  E )  /\  (
( ( P ` 
0 )  =  A  /\  ( P ` 
2 )  =  B  /\  A  =/=  B
)  /\  ( ( E `  ( F `  0 ) )  =  { ( P `
 0 ) ,  ( P `  1
) }  /\  ( E `  ( F `  1 ) )  =  { ( P `
 1 ) ,  ( P `  2
) } ) ) )  /\  P :
( 0 ... 2
) --> V )  -> 
( ( P ` 
0 )  =/=  ( P `  1 )  /\  ( P `  0
)  =/=  ( P `
 2 )  /\  ( P `  1 )  =/=  ( P ` 
2 ) ) )
6261exp41 610 . . . . . . . . . . . . . 14  |-  ( ( F  e. Word  dom  E  /\  ( # `  F
)  =  2 )  ->  ( V USGrph  E  ->  ( ( ( ( P `  0 )  =  A  /\  ( P `  2 )  =  B  /\  A  =/= 
B )  /\  (
( E `  ( F `  0 )
)  =  { ( P `  0 ) ,  ( P ` 
1 ) }  /\  ( E `  ( F `
 1 ) )  =  { ( P `
 1 ) ,  ( P `  2
) } ) )  ->  ( P :
( 0 ... 2
) --> V  ->  (
( P `  0
)  =/=  ( P `
 1 )  /\  ( P `  0 )  =/=  ( P ` 
2 )  /\  ( P `  1 )  =/=  ( P `  2
) ) ) ) ) )
6362impcom 430 . . . . . . . . . . . . 13  |-  ( ( V USGrph  E  /\  ( F  e. Word  dom  E  /\  ( # `  F )  =  2 ) )  ->  ( ( ( ( P `  0
)  =  A  /\  ( P `  2 )  =  B  /\  A  =/=  B )  /\  (
( E `  ( F `  0 )
)  =  { ( P `  0 ) ,  ( P ` 
1 ) }  /\  ( E `  ( F `
 1 ) )  =  { ( P `
 1 ) ,  ( P `  2
) } ) )  ->  ( P :
( 0 ... 2
) --> V  ->  (
( P `  0
)  =/=  ( P `
 1 )  /\  ( P `  0 )  =/=  ( P ` 
2 )  /\  ( P `  1 )  =/=  ( P `  2
) ) ) ) )
64 fveq2 5686 . . . . . . . . . . . . . . . . . 18  |-  ( (
# `  F )  =  2  ->  ( P `  ( # `  F
) )  =  ( P `  2 ) )
6564eqeq1d 2446 . . . . . . . . . . . . . . . . 17  |-  ( (
# `  F )  =  2  ->  (
( P `  ( # `
 F ) )  =  B  <->  ( P `  2 )  =  B ) )
66653anbi2d 1294 . . . . . . . . . . . . . . . 16  |-  ( (
# `  F )  =  2  ->  (
( ( P ` 
0 )  =  A  /\  ( P `  ( # `  F ) )  =  B  /\  A  =/=  B )  <->  ( ( P `  0 )  =  A  /\  ( P `  2 )  =  B  /\  A  =/= 
B ) ) )
6720, 24syl6eq 2486 . . . . . . . . . . . . . . . . . 18  |-  ( (
# `  F )  =  2  ->  (
0..^ ( # `  F
) )  =  {
0 ,  1 } )
6867raleqdv 2918 . . . . . . . . . . . . . . . . 17  |-  ( (
# `  F )  =  2  ->  ( A. i  e.  (
0..^ ( # `  F
) ) ( E `
 ( F `  i ) )  =  { ( P `  i ) ,  ( P `  ( i  +  1 ) ) }  <->  A. i  e.  {
0 ,  1 }  ( E `  ( F `  i )
)  =  { ( P `  i ) ,  ( P `  ( i  +  1 ) ) } ) )
69 2wlklem 23414 . . . . . . . . . . . . . . . . 17  |-  ( A. i  e.  { 0 ,  1 }  ( E `  ( F `  i ) )  =  { ( P `  i ) ,  ( P `  ( i  +  1 ) ) }  <->  ( ( E `
 ( F ` 
0 ) )  =  { ( P ` 
0 ) ,  ( P `  1 ) }  /\  ( E `
 ( F ` 
1 ) )  =  { ( P ` 
1 ) ,  ( P `  2 ) } ) )
7068, 69syl6bb 261 . . . . . . . . . . . . . . . 16  |-  ( (
# `  F )  =  2  ->  ( A. i  e.  (
0..^ ( # `  F
) ) ( E `
 ( F `  i ) )  =  { ( P `  i ) ,  ( P `  ( i  +  1 ) ) }  <->  ( ( E `
 ( F ` 
0 ) )  =  { ( P ` 
0 ) ,  ( P `  1 ) }  /\  ( E `
 ( F ` 
1 ) )  =  { ( P ` 
1 ) ,  ( P `  2 ) } ) ) )
7166, 70anbi12d 710 . . . . . . . . . . . . . . 15  |-  ( (
# `  F )  =  2  ->  (
( ( ( P `
 0 )  =  A  /\  ( P `
 ( # `  F
) )  =  B  /\  A  =/=  B
)  /\  A. i  e.  ( 0..^ ( # `  F ) ) ( E `  ( F `
 i ) )  =  { ( P `
 i ) ,  ( P `  (
i  +  1 ) ) } )  <->  ( (
( P `  0
)  =  A  /\  ( P `  2 )  =  B  /\  A  =/=  B )  /\  (
( E `  ( F `  0 )
)  =  { ( P `  0 ) ,  ( P ` 
1 ) }  /\  ( E `  ( F `
 1 ) )  =  { ( P `
 1 ) ,  ( P `  2
) } ) ) ) )
722imbi1d 317 . . . . . . . . . . . . . . 15  |-  ( (
# `  F )  =  2  ->  (
( P : ( 0 ... ( # `  F ) ) --> V  ->  ( ( P `
 0 )  =/=  ( P `  1
)  /\  ( P `  0 )  =/=  ( P `  2
)  /\  ( P `  1 )  =/=  ( P `  2
) ) )  <->  ( P : ( 0 ... 2 ) --> V  -> 
( ( P ` 
0 )  =/=  ( P `  1 )  /\  ( P `  0
)  =/=  ( P `
 2 )  /\  ( P `  1 )  =/=  ( P ` 
2 ) ) ) ) )
7371, 72imbi12d 320 . . . . . . . . . . . . . 14  |-  ( (
# `  F )  =  2  ->  (
( ( ( ( P `  0 )  =  A  /\  ( P `  ( # `  F
) )  =  B  /\  A  =/=  B
)  /\  A. i  e.  ( 0..^ ( # `  F ) ) ( E `  ( F `
 i ) )  =  { ( P `
 i ) ,  ( P `  (
i  +  1 ) ) } )  -> 
( P : ( 0 ... ( # `  F ) ) --> V  ->  ( ( P `
 0 )  =/=  ( P `  1
)  /\  ( P `  0 )  =/=  ( P `  2
)  /\  ( P `  1 )  =/=  ( P `  2
) ) ) )  <-> 
( ( ( ( P `  0 )  =  A  /\  ( P `  2 )  =  B  /\  A  =/= 
B )  /\  (
( E `  ( F `  0 )
)  =  { ( P `  0 ) ,  ( P ` 
1 ) }  /\  ( E `  ( F `
 1 ) )  =  { ( P `
 1 ) ,  ( P `  2
) } ) )  ->  ( P :
( 0 ... 2
) --> V  ->  (
( P `  0
)  =/=  ( P `
 1 )  /\  ( P `  0 )  =/=  ( P ` 
2 )  /\  ( P `  1 )  =/=  ( P `  2
) ) ) ) ) )
7473ad2antll 728 . . . . . . . . . . . . 13  |-  ( ( V USGrph  E  /\  ( F  e. Word  dom  E  /\  ( # `  F )  =  2 ) )  ->  ( ( ( ( ( P ` 
0 )  =  A  /\  ( P `  ( # `  F ) )  =  B  /\  A  =/=  B )  /\  A. i  e.  ( 0..^ ( # `  F
) ) ( E `
 ( F `  i ) )  =  { ( P `  i ) ,  ( P `  ( i  +  1 ) ) } )  ->  ( P : ( 0 ... ( # `  F
) ) --> V  -> 
( ( P ` 
0 )  =/=  ( P `  1 )  /\  ( P `  0
)  =/=  ( P `
 2 )  /\  ( P `  1 )  =/=  ( P ` 
2 ) ) ) )  <->  ( ( ( ( P `  0
)  =  A  /\  ( P `  2 )  =  B  /\  A  =/=  B )  /\  (
( E `  ( F `  0 )
)  =  { ( P `  0 ) ,  ( P ` 
1 ) }  /\  ( E `  ( F `
 1 ) )  =  { ( P `
 1 ) ,  ( P `  2
) } ) )  ->  ( P :
( 0 ... 2
) --> V  ->  (
( P `  0
)  =/=  ( P `
 1 )  /\  ( P `  0 )  =/=  ( P ` 
2 )  /\  ( P `  1 )  =/=  ( P `  2
) ) ) ) ) )
7563, 74mpbird 232 . . . . . . . . . . . 12  |-  ( ( V USGrph  E  /\  ( F  e. Word  dom  E  /\  ( # `  F )  =  2 ) )  ->  ( ( ( ( P `  0
)  =  A  /\  ( P `  ( # `  F ) )  =  B  /\  A  =/= 
B )  /\  A. i  e.  ( 0..^ ( # `  F
) ) ( E `
 ( F `  i ) )  =  { ( P `  i ) ,  ( P `  ( i  +  1 ) ) } )  ->  ( P : ( 0 ... ( # `  F
) ) --> V  -> 
( ( P ` 
0 )  =/=  ( P `  1 )  /\  ( P `  0
)  =/=  ( P `
 2 )  /\  ( P `  1 )  =/=  ( P ` 
2 ) ) ) ) )
7675imp 429 . . . . . . . . . . 11  |-  ( ( ( V USGrph  E  /\  ( F  e. Word  dom  E  /\  ( # `  F
)  =  2 ) )  /\  ( ( ( P `  0
)  =  A  /\  ( P `  ( # `  F ) )  =  B  /\  A  =/= 
B )  /\  A. i  e.  ( 0..^ ( # `  F
) ) ( E `
 ( F `  i ) )  =  { ( P `  i ) ,  ( P `  ( i  +  1 ) ) } ) )  -> 
( P : ( 0 ... ( # `  F ) ) --> V  ->  ( ( P `
 0 )  =/=  ( P `  1
)  /\  ( P `  0 )  =/=  ( P `  2
)  /\  ( P `  1 )  =/=  ( P `  2
) ) ) )
7776impcom 430 . . . . . . . . . 10  |-  ( ( P : ( 0 ... ( # `  F
) ) --> V  /\  ( ( V USGrph  E  /\  ( F  e. Word  dom  E  /\  ( # `  F
)  =  2 ) )  /\  ( ( ( P `  0
)  =  A  /\  ( P `  ( # `  F ) )  =  B  /\  A  =/= 
B )  /\  A. i  e.  ( 0..^ ( # `  F
) ) ( E `
 ( F `  i ) )  =  { ( P `  i ) ,  ( P `  ( i  +  1 ) ) } ) ) )  ->  ( ( P `
 0 )  =/=  ( P `  1
)  /\  ( P `  0 )  =/=  ( P `  2
)  /\  ( P `  1 )  =/=  ( P `  2
) ) )
789, 77jca 532 . . . . . . . . 9  |-  ( ( P : ( 0 ... ( # `  F
) ) --> V  /\  ( ( V USGrph  E  /\  ( F  e. Word  dom  E  /\  ( # `  F
)  =  2 ) )  /\  ( ( ( P `  0
)  =  A  /\  ( P `  ( # `  F ) )  =  B  /\  A  =/= 
B )  /\  A. i  e.  ( 0..^ ( # `  F
) ) ( E `
 ( F `  i ) )  =  { ( P `  i ) ,  ( P `  ( i  +  1 ) ) } ) ) )  ->  ( P : { 0 ,  1 ,  2 } --> V  /\  ( ( P ` 
0 )  =/=  ( P `  1 )  /\  ( P `  0
)  =/=  ( P `
 2 )  /\  ( P `  1 )  =/=  ( P ` 
2 ) ) ) )
79 2z 10670 . . . . . . . . . . . 12  |-  2  e.  ZZ
8022, 40, 793pm3.2i 1166 . . . . . . . . . . 11  |-  ( 0  e.  _V  /\  1  e.  _V  /\  2  e.  ZZ )
81 0ne1 10381 . . . . . . . . . . . 12  |-  0  =/=  1
82 0ne2 10525 . . . . . . . . . . . 12  |-  0  =/=  2
83 1ne2 10526 . . . . . . . . . . . 12  |-  1  =/=  2
8481, 82, 833pm3.2i 1166 . . . . . . . . . . 11  |-  ( 0  =/=  1  /\  0  =/=  2  /\  1  =/=  2 )
8580, 84pm3.2i 455 . . . . . . . . . 10  |-  ( ( 0  e.  _V  /\  1  e.  _V  /\  2  e.  ZZ )  /\  (
0  =/=  1  /\  0  =/=  2  /\  1  =/=  2 ) )
86 eqid 2438 . . . . . . . . . . 11  |-  { 0 ,  1 ,  2 }  =  { 0 ,  1 ,  2 }
8786f13dfv 30100 . . . . . . . . . 10  |-  ( ( ( 0  e.  _V  /\  1  e.  _V  /\  2  e.  ZZ )  /\  ( 0  =/=  1  /\  0  =/=  2  /\  1  =/=  2
) )  ->  ( P : { 0 ,  1 ,  2 }
-1-1-> V  <->  ( P : { 0 ,  1 ,  2 } --> V  /\  ( ( P ` 
0 )  =/=  ( P `  1 )  /\  ( P `  0
)  =/=  ( P `
 2 )  /\  ( P `  1 )  =/=  ( P ` 
2 ) ) ) ) )
8885, 87mp1i 12 . . . . . . . . 9  |-  ( ( P : ( 0 ... ( # `  F
) ) --> V  /\  ( ( V USGrph  E  /\  ( F  e. Word  dom  E  /\  ( # `  F
)  =  2 ) )  /\  ( ( ( P `  0
)  =  A  /\  ( P `  ( # `  F ) )  =  B  /\  A  =/= 
B )  /\  A. i  e.  ( 0..^ ( # `  F
) ) ( E `
 ( F `  i ) )  =  { ( P `  i ) ,  ( P `  ( i  +  1 ) ) } ) ) )  ->  ( P : { 0 ,  1 ,  2 } -1-1-> V  <->  ( P : { 0 ,  1 ,  2 } --> V  /\  (
( P `  0
)  =/=  ( P `
 1 )  /\  ( P `  0 )  =/=  ( P ` 
2 )  /\  ( P `  1 )  =/=  ( P `  2
) ) ) ) )
8978, 88mpbird 232 . . . . . . . 8  |-  ( ( P : ( 0 ... ( # `  F
) ) --> V  /\  ( ( V USGrph  E  /\  ( F  e. Word  dom  E  /\  ( # `  F
)  =  2 ) )  /\  ( ( ( P `  0
)  =  A  /\  ( P `  ( # `  F ) )  =  B  /\  A  =/= 
B )  /\  A. i  e.  ( 0..^ ( # `  F
) ) ( E `
 ( F `  i ) )  =  { ( P `  i ) ,  ( P `  ( i  +  1 ) ) } ) ) )  ->  P : {
0 ,  1 ,  2 } -1-1-> V )
90 df-f1 5418 . . . . . . . 8  |-  ( P : { 0 ,  1 ,  2 }
-1-1-> V  <->  ( P : { 0 ,  1 ,  2 } --> V  /\  Fun  `' P ) )
9189, 90sylib 196 . . . . . . 7  |-  ( ( P : ( 0 ... ( # `  F
) ) --> V  /\  ( ( V USGrph  E  /\  ( F  e. Word  dom  E  /\  ( # `  F
)  =  2 ) )  /\  ( ( ( P `  0
)  =  A  /\  ( P `  ( # `  F ) )  =  B  /\  A  =/= 
B )  /\  A. i  e.  ( 0..^ ( # `  F
) ) ( E `
 ( F `  i ) )  =  { ( P `  i ) ,  ( P `  ( i  +  1 ) ) } ) ) )  ->  ( P : { 0 ,  1 ,  2 } --> V  /\  Fun  `' P ) )
9291simprd 463 . . . . . 6  |-  ( ( P : ( 0 ... ( # `  F
) ) --> V  /\  ( ( V USGrph  E  /\  ( F  e. Word  dom  E  /\  ( # `  F
)  =  2 ) )  /\  ( ( ( P `  0
)  =  A  /\  ( P `  ( # `  F ) )  =  B  /\  A  =/= 
B )  /\  A. i  e.  ( 0..^ ( # `  F
) ) ( E `
 ( F `  i ) )  =  { ( P `  i ) ,  ( P `  ( i  +  1 ) ) } ) ) )  ->  Fun  `' P
)
9392expcom 435 . . . . 5  |-  ( ( ( V USGrph  E  /\  ( F  e. Word  dom  E  /\  ( # `  F
)  =  2 ) )  /\  ( ( ( P `  0
)  =  A  /\  ( P `  ( # `  F ) )  =  B  /\  A  =/= 
B )  /\  A. i  e.  ( 0..^ ( # `  F
) ) ( E `
 ( F `  i ) )  =  { ( P `  i ) ,  ( P `  ( i  +  1 ) ) } ) )  -> 
( P : ( 0 ... ( # `  F ) ) --> V  ->  Fun  `' P
) )
9493ex 434 . . . 4  |-  ( ( V USGrph  E  /\  ( F  e. Word  dom  E  /\  ( # `  F )  =  2 ) )  ->  ( ( ( ( P `  0
)  =  A  /\  ( P `  ( # `  F ) )  =  B  /\  A  =/= 
B )  /\  A. i  e.  ( 0..^ ( # `  F
) ) ( E `
 ( F `  i ) )  =  { ( P `  i ) ,  ( P `  ( i  +  1 ) ) } )  ->  ( P : ( 0 ... ( # `  F
) ) --> V  ->  Fun  `' P ) ) )
9594com23 78 . . 3  |-  ( ( V USGrph  E  /\  ( F  e. Word  dom  E  /\  ( # `  F )  =  2 ) )  ->  ( P :
( 0 ... ( # `
 F ) ) --> V  ->  ( (
( ( P ` 
0 )  =  A  /\  ( P `  ( # `  F ) )  =  B  /\  A  =/=  B )  /\  A. i  e.  ( 0..^ ( # `  F
) ) ( E `
 ( F `  i ) )  =  { ( P `  i ) ,  ( P `  ( i  +  1 ) ) } )  ->  Fun  `' P ) ) )
9695impancom 440 . 2  |-  ( ( V USGrph  E  /\  P :
( 0 ... ( # `
 F ) ) --> V )  ->  (
( F  e. Word  dom  E  /\  ( # `  F
)  =  2 )  ->  ( ( ( ( P `  0
)  =  A  /\  ( P `  ( # `  F ) )  =  B  /\  A  =/= 
B )  /\  A. i  e.  ( 0..^ ( # `  F
) ) ( E `
 ( F `  i ) )  =  { ( P `  i ) ,  ( P `  ( i  +  1 ) ) } )  ->  Fun  `' P ) ) )
9796impcom 430 1  |-  ( ( ( F  e. Word  dom  E  /\  ( # `  F
)  =  2 )  /\  ( V USGrph  E  /\  P : ( 0 ... ( # `  F
) ) --> V ) )  ->  ( (
( ( P ` 
0 )  =  A  /\  ( P `  ( # `  F ) )  =  B  /\  A  =/=  B )  /\  A. i  e.  ( 0..^ ( # `  F
) ) ( E `
 ( F `  i ) )  =  { ( P `  i ) ,  ( P `  ( i  +  1 ) ) } )  ->  Fun  `' P ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    <-> wb 184    /\ wa 369    /\ w3a 965    = wceq 1369    e. wcel 1756    =/= wne 2601   A.wral 2710   _Vcvv 2967   {cpr 3874   {ctp 3876   class class class wbr 4287   `'ccnv 4834   dom cdm 4835   ran crn 4836   Fun wfun 5407   -->wf 5409   -1-1->wf1 5410   ` cfv 5413  (class class class)co 6086   0cc0 9274   1c1 9275    + caddc 9277   2c2 10363   ZZcz 10638   ...cfz 11429  ..^cfzo 11540   #chash 12095  Word cword 12213   USGrph cusg 23215
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1591  ax-4 1602  ax-5 1670  ax-6 1708  ax-7 1728  ax-8 1758  ax-9 1760  ax-10 1775  ax-11 1780  ax-12 1792  ax-13 1943  ax-ext 2419  ax-rep 4398  ax-sep 4408  ax-nul 4416  ax-pow 4465  ax-pr 4526  ax-un 6367  ax-cnex 9330  ax-resscn 9331  ax-1cn 9332  ax-icn 9333  ax-addcl 9334  ax-addrcl 9335  ax-mulcl 9336  ax-mulrcl 9337  ax-mulcom 9338  ax-addass 9339  ax-mulass 9340  ax-distr 9341  ax-i2m1 9342  ax-1ne0 9343  ax-1rid 9344  ax-rnegex 9345  ax-rrecex 9346  ax-cnre 9347  ax-pre-lttri 9348  ax-pre-lttrn 9349  ax-pre-ltadd 9350  ax-pre-mulgt0 9351
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 966  df-3an 967  df-tru 1372  df-ex 1587  df-nf 1590  df-sb 1701  df-eu 2256  df-mo 2257  df-clab 2425  df-cleq 2431  df-clel 2434  df-nfc 2563  df-ne 2603  df-nel 2604  df-ral 2715  df-rex 2716  df-reu 2717  df-rmo 2718  df-rab 2719  df-v 2969  df-sbc 3182  df-csb 3284  df-dif 3326  df-un 3328  df-in 3330  df-ss 3337  df-pss 3339  df-nul 3633  df-if 3787  df-pw 3857  df-sn 3873  df-pr 3875  df-tp 3877  df-op 3879  df-uni 4087  df-int 4124  df-iun 4168  df-br 4288  df-opab 4346  df-mpt 4347  df-tr 4381  df-eprel 4627  df-id 4631  df-po 4636  df-so 4637  df-fr 4674  df-we 4676  df-ord 4717  df-on 4718  df-lim 4719  df-suc 4720  df-xp 4841  df-rel 4842  df-cnv 4843  df-co 4844  df-dm 4845  df-rn 4846  df-res 4847  df-ima 4848  df-iota 5376  df-fun 5415  df-fn 5416  df-f 5417  df-f1 5418  df-fo 5419  df-f1o 5420  df-fv 5421  df-riota 6047  df-ov 6089  df-oprab 6090  df-mpt2 6091  df-om 6472  df-1st 6572  df-2nd 6573  df-recs 6824  df-rdg 6858  df-1o 6912  df-oadd 6916  df-er 7093  df-en 7303  df-dom 7304  df-sdom 7305  df-fin 7306  df-card 8101  df-cda 8329  df-pnf 9412  df-mnf 9413  df-xr 9414  df-ltxr 9415  df-le 9416  df-sub 9589  df-neg 9590  df-nn 10315  df-2 10372  df-n0 10572  df-z 10639  df-uz 10854  df-fz 11430  df-fzo 11541  df-hash 12096  df-word 12221  df-usgra 23217
This theorem is referenced by:  usgra2wlkspth  30251
  Copyright terms: Public domain W3C validator