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

Theorem 4cycl4dv4e 23554
Description: If there is a cycle of length 4 in a graph, there are four (different) vertices in the graph which are mutually connected by edges. (Contributed by Alexander van der Vekens, 9-Nov-2017.)
Assertion
Ref Expression
4cycl4dv4e  |-  ( ( V USGrph  E  /\  F ( V Cycles  E ) P  /\  ( # `  F
)  =  4 )  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) )
Distinct variable groups:    E, a,
b, c, d    P, a, b, c, d    V, a, b, c, d
Allowed substitution hints:    F( a, b, c, d)

Proof of Theorem 4cycl4dv4e
Dummy variable  k is distinct from all other variables.
StepHypRef Expression
1 cycliswlk 23518 . . . . 5  |-  ( F ( V Cycles  E ) P  ->  F ( V Walks  E ) P )
2 wlkbprop 23433 . . . . 5  |-  ( F ( V Walks  E ) P  ->  ( ( # `
 F )  e. 
NN0  /\  ( V  e.  _V  /\  E  e. 
_V )  /\  ( F  e.  _V  /\  P  e.  _V ) ) )
31, 2syl 16 . . . 4  |-  ( F ( V Cycles  E ) P  ->  ( ( # `
 F )  e. 
NN0  /\  ( V  e.  _V  /\  E  e. 
_V )  /\  ( F  e.  _V  /\  P  e.  _V ) ) )
4 iscycl 23511 . . . . . 6  |-  ( ( ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V )
)  ->  ( F
( V Cycles  E ) P 
<->  ( F ( V Paths 
E ) P  /\  ( P `  0 )  =  ( P `  ( # `  F ) ) ) ) )
5 ispth 23467 . . . . . . . 8  |-  ( ( ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V )
)  ->  ( F
( V Paths  E ) P 
<->  ( F ( V Trails  E ) P  /\  Fun  `' ( P  |`  ( 1..^ ( # `  F
) ) )  /\  ( ( P " { 0 ,  (
# `  F ) } )  i^i  ( P " ( 1..^ (
# `  F )
) ) )  =  (/) ) ) )
6 istrl 23436 . . . . . . . . . 10  |-  ( ( ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V )
)  ->  ( F
( V Trails  E ) P 
<->  ( ( F  e. Word  dom  E  /\  Fun  `' F )  /\  P : ( 0 ... ( # `  F
) ) --> V  /\  A. k  e.  ( 0..^ ( # `  F
) ) ( E `
 ( F `  k ) )  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) } ) ) )
7 fzo0to42pr 11616 . . . . . . . . . . . . . . . . . . . 20  |-  ( 0..^ 4 )  =  ( { 0 ,  1 }  u.  { 2 ,  3 } )
87raleqi 2921 . . . . . . . . . . . . . . . . . . 19  |-  ( A. k  e.  ( 0..^ 4 ) ( E `
 ( F `  k ) )  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) }  <->  A. k  e.  ( { 0 ,  1 }  u.  { 2 ,  3 } ) ( E `  ( F `  k )
)  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) } )
9 ralunb 3537 . . . . . . . . . . . . . . . . . . 19  |-  ( A. k  e.  ( {
0 ,  1 }  u.  { 2 ,  3 } ) ( E `  ( F `
 k ) )  =  { ( P `
 k ) ,  ( P `  (
k  +  1 ) ) }  <->  ( A. k  e.  { 0 ,  1 }  ( E `  ( F `  k ) )  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) }  /\  A. k  e.  { 2 ,  3 }  ( E `  ( F `  k ) )  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) } ) )
10 0z 10657 . . . . . . . . . . . . . . . . . . . . 21  |-  0  e.  ZZ
11 1z 10676 . . . . . . . . . . . . . . . . . . . . 21  |-  1  e.  ZZ
12 fveq2 5691 . . . . . . . . . . . . . . . . . . . . . . . 24  |-  ( k  =  0  ->  ( F `  k )  =  ( F ` 
0 ) )
1312fveq2d 5695 . . . . . . . . . . . . . . . . . . . . . . 23  |-  ( k  =  0  ->  ( E `  ( F `  k ) )  =  ( E `  ( F `  0 )
) )
14 fveq2 5691 . . . . . . . . . . . . . . . . . . . . . . . 24  |-  ( k  =  0  ->  ( P `  k )  =  ( P ` 
0 ) )
15 oveq1 6098 . . . . . . . . . . . . . . . . . . . . . . . . . 26  |-  ( k  =  0  ->  (
k  +  1 )  =  ( 0  +  1 ) )
16 0p1e1 10433 . . . . . . . . . . . . . . . . . . . . . . . . . 26  |-  ( 0  +  1 )  =  1
1715, 16syl6eq 2491 . . . . . . . . . . . . . . . . . . . . . . . . 25  |-  ( k  =  0  ->  (
k  +  1 )  =  1 )
1817fveq2d 5695 . . . . . . . . . . . . . . . . . . . . . . . 24  |-  ( k  =  0  ->  ( P `  ( k  +  1 ) )  =  ( P ` 
1 ) )
1914, 18preq12d 3962 . . . . . . . . . . . . . . . . . . . . . . 23  |-  ( k  =  0  ->  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) }  =  { ( P ` 
0 ) ,  ( P `  1 ) } )
2013, 19eqeq12d 2457 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( k  =  0  ->  (
( E `  ( F `  k )
)  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) }  <->  ( E `  ( F `  0
) )  =  {
( P `  0
) ,  ( P `
 1 ) } ) )
21 fveq2 5691 . . . . . . . . . . . . . . . . . . . . . . . 24  |-  ( k  =  1  ->  ( F `  k )  =  ( F ` 
1 ) )
2221fveq2d 5695 . . . . . . . . . . . . . . . . . . . . . . 23  |-  ( k  =  1  ->  ( E `  ( F `  k ) )  =  ( E `  ( F `  1 )
) )
23 fveq2 5691 . . . . . . . . . . . . . . . . . . . . . . . 24  |-  ( k  =  1  ->  ( P `  k )  =  ( P ` 
1 ) )
24 oveq1 6098 . . . . . . . . . . . . . . . . . . . . . . . . . 26  |-  ( k  =  1  ->  (
k  +  1 )  =  ( 1  +  1 ) )
25 1p1e2 10435 . . . . . . . . . . . . . . . . . . . . . . . . . 26  |-  ( 1  +  1 )  =  2
2624, 25syl6eq 2491 . . . . . . . . . . . . . . . . . . . . . . . . 25  |-  ( k  =  1  ->  (
k  +  1 )  =  2 )
2726fveq2d 5695 . . . . . . . . . . . . . . . . . . . . . . . 24  |-  ( k  =  1  ->  ( P `  ( k  +  1 ) )  =  ( P ` 
2 ) )
2823, 27preq12d 3962 . . . . . . . . . . . . . . . . . . . . . . 23  |-  ( k  =  1  ->  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) }  =  { ( P ` 
1 ) ,  ( P `  2 ) } )
2922, 28eqeq12d 2457 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( k  =  1  ->  (
( E `  ( F `  k )
)  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) }  <->  ( E `  ( F `  1
) )  =  {
( P `  1
) ,  ( P `
 2 ) } ) )
3020, 29ralprg 3925 . . . . . . . . . . . . . . . . . . . . 21  |-  ( ( 0  e.  ZZ  /\  1  e.  ZZ )  ->  ( A. k  e. 
{ 0 ,  1 }  ( E `  ( F `  k ) )  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) }  <->  ( ( E `  ( F `  0 ) )  =  { ( P `
 0 ) ,  ( P `  1
) }  /\  ( E `  ( F `  1 ) )  =  { ( P `
 1 ) ,  ( P `  2
) } ) ) )
3110, 11, 30mp2an 672 . . . . . . . . . . . . . . . . . . . 20  |-  ( A. k  e.  { 0 ,  1 }  ( E `  ( F `  k ) )  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) }  <->  ( ( E `
 ( F ` 
0 ) )  =  { ( P ` 
0 ) ,  ( P `  1 ) }  /\  ( E `
 ( F ` 
1 ) )  =  { ( P ` 
1 ) ,  ( P `  2 ) } ) )
32 2z 10678 . . . . . . . . . . . . . . . . . . . . 21  |-  2  e.  ZZ
33 3z 10679 . . . . . . . . . . . . . . . . . . . . 21  |-  3  e.  ZZ
34 fveq2 5691 . . . . . . . . . . . . . . . . . . . . . . . 24  |-  ( k  =  2  ->  ( F `  k )  =  ( F ` 
2 ) )
3534fveq2d 5695 . . . . . . . . . . . . . . . . . . . . . . 23  |-  ( k  =  2  ->  ( E `  ( F `  k ) )  =  ( E `  ( F `  2 )
) )
36 fveq2 5691 . . . . . . . . . . . . . . . . . . . . . . . 24  |-  ( k  =  2  ->  ( P `  k )  =  ( P ` 
2 ) )
37 oveq1 6098 . . . . . . . . . . . . . . . . . . . . . . . . . 26  |-  ( k  =  2  ->  (
k  +  1 )  =  ( 2  +  1 ) )
38 2p1e3 10445 . . . . . . . . . . . . . . . . . . . . . . . . . 26  |-  ( 2  +  1 )  =  3
3937, 38syl6eq 2491 . . . . . . . . . . . . . . . . . . . . . . . . 25  |-  ( k  =  2  ->  (
k  +  1 )  =  3 )
4039fveq2d 5695 . . . . . . . . . . . . . . . . . . . . . . . 24  |-  ( k  =  2  ->  ( P `  ( k  +  1 ) )  =  ( P ` 
3 ) )
4136, 40preq12d 3962 . . . . . . . . . . . . . . . . . . . . . . 23  |-  ( k  =  2  ->  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) }  =  { ( P ` 
2 ) ,  ( P `  3 ) } )
4235, 41eqeq12d 2457 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( k  =  2  ->  (
( E `  ( F `  k )
)  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) }  <->  ( E `  ( F `  2
) )  =  {
( P `  2
) ,  ( P `
 3 ) } ) )
43 fveq2 5691 . . . . . . . . . . . . . . . . . . . . . . . 24  |-  ( k  =  3  ->  ( F `  k )  =  ( F ` 
3 ) )
4443fveq2d 5695 . . . . . . . . . . . . . . . . . . . . . . 23  |-  ( k  =  3  ->  ( E `  ( F `  k ) )  =  ( E `  ( F `  3 )
) )
45 fveq2 5691 . . . . . . . . . . . . . . . . . . . . . . . 24  |-  ( k  =  3  ->  ( P `  k )  =  ( P ` 
3 ) )
46 oveq1 6098 . . . . . . . . . . . . . . . . . . . . . . . . . 26  |-  ( k  =  3  ->  (
k  +  1 )  =  ( 3  +  1 ) )
47 3p1e4 10447 . . . . . . . . . . . . . . . . . . . . . . . . . 26  |-  ( 3  +  1 )  =  4
4846, 47syl6eq 2491 . . . . . . . . . . . . . . . . . . . . . . . . 25  |-  ( k  =  3  ->  (
k  +  1 )  =  4 )
4948fveq2d 5695 . . . . . . . . . . . . . . . . . . . . . . . 24  |-  ( k  =  3  ->  ( P `  ( k  +  1 ) )  =  ( P ` 
4 ) )
5045, 49preq12d 3962 . . . . . . . . . . . . . . . . . . . . . . 23  |-  ( k  =  3  ->  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) }  =  { ( P ` 
3 ) ,  ( P `  4 ) } )
5144, 50eqeq12d 2457 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( k  =  3  ->  (
( E `  ( F `  k )
)  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) }  <->  ( E `  ( F `  3
) )  =  {
( P `  3
) ,  ( P `
 4 ) } ) )
5242, 51ralprg 3925 . . . . . . . . . . . . . . . . . . . . 21  |-  ( ( 2  e.  ZZ  /\  3  e.  ZZ )  ->  ( A. k  e. 
{ 2 ,  3 }  ( E `  ( F `  k ) )  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) }  <->  ( ( E `  ( F `  2 ) )  =  { ( P `
 2 ) ,  ( P `  3
) }  /\  ( E `  ( F `  3 ) )  =  { ( P `
 3 ) ,  ( P `  4
) } ) ) )
5332, 33, 52mp2an 672 . . . . . . . . . . . . . . . . . . . 20  |-  ( A. k  e.  { 2 ,  3 }  ( E `  ( F `  k ) )  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) }  <->  ( ( E `
 ( F ` 
2 ) )  =  { ( P ` 
2 ) ,  ( P `  3 ) }  /\  ( E `
 ( F ` 
3 ) )  =  { ( P ` 
3 ) ,  ( P `  4 ) } ) )
5431, 53anbi12i 697 . . . . . . . . . . . . . . . . . . 19  |-  ( ( A. k  e.  {
0 ,  1 }  ( E `  ( F `  k )
)  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) }  /\  A. k  e.  { 2 ,  3 }  ( E `  ( F `  k ) )  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) } )  <->  ( (
( E `  ( F `  0 )
)  =  { ( P `  0 ) ,  ( P ` 
1 ) }  /\  ( E `  ( F `
 1 ) )  =  { ( P `
 1 ) ,  ( P `  2
) } )  /\  ( ( E `  ( F `  2 ) )  =  { ( P `  2 ) ,  ( P ` 
3 ) }  /\  ( E `  ( F `
 3 ) )  =  { ( P `
 3 ) ,  ( P `  4
) } ) ) )
558, 9, 543bitri 271 . . . . . . . . . . . . . . . . . 18  |-  ( A. k  e.  ( 0..^ 4 ) ( E `
 ( F `  k ) )  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) }  <->  ( ( ( E `  ( F `
 0 ) )  =  { ( P `
 0 ) ,  ( P `  1
) }  /\  ( E `  ( F `  1 ) )  =  { ( P `
 1 ) ,  ( P `  2
) } )  /\  ( ( E `  ( F `  2 ) )  =  { ( P `  2 ) ,  ( P ` 
3 ) }  /\  ( E `  ( F `
 3 ) )  =  { ( P `
 3 ) ,  ( P `  4
) } ) ) )
56 preq2 3955 . . . . . . . . . . . . . . . . . . . . . . . . 25  |-  ( ( P `  4 )  =  ( P ` 
0 )  ->  { ( P `  3 ) ,  ( P ` 
4 ) }  =  { ( P ` 
3 ) ,  ( P `  0 ) } )
5756eqcoms 2446 . . . . . . . . . . . . . . . . . . . . . . . 24  |-  ( ( P `  0 )  =  ( P ` 
4 )  ->  { ( P `  3 ) ,  ( P ` 
4 ) }  =  { ( P ` 
3 ) ,  ( P `  0 ) } )
5857eqeq2d 2454 . . . . . . . . . . . . . . . . . . . . . . 23  |-  ( ( P `  0 )  =  ( P ` 
4 )  ->  (
( E `  ( F `  3 )
)  =  { ( P `  3 ) ,  ( P ` 
4 ) }  <->  ( E `  ( F `  3
) )  =  {
( P `  3
) ,  ( P `
 0 ) } ) )
5958anbi2d 703 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( ( P `  0 )  =  ( P ` 
4 )  ->  (
( ( E `  ( F `  2 ) )  =  { ( P `  2 ) ,  ( P ` 
3 ) }  /\  ( E `  ( F `
 3 ) )  =  { ( P `
 3 ) ,  ( P `  4
) } )  <->  ( ( E `  ( F `  2 ) )  =  { ( P `
 2 ) ,  ( P `  3
) }  /\  ( E `  ( F `  3 ) )  =  { ( P `
 3 ) ,  ( P `  0
) } ) ) )
6059anbi2d 703 . . . . . . . . . . . . . . . . . . . . 21  |-  ( ( P `  0 )  =  ( P ` 
4 )  ->  (
( ( ( E `
 ( F ` 
0 ) )  =  { ( P ` 
0 ) ,  ( P `  1 ) }  /\  ( E `
 ( F ` 
1 ) )  =  { ( P ` 
1 ) ,  ( P `  2 ) } )  /\  (
( E `  ( F `  2 )
)  =  { ( P `  2 ) ,  ( P ` 
3 ) }  /\  ( E `  ( F `
 3 ) )  =  { ( P `
 3 ) ,  ( P `  4
) } ) )  <-> 
( ( ( E `
 ( F ` 
0 ) )  =  { ( P ` 
0 ) ,  ( P `  1 ) }  /\  ( E `
 ( F ` 
1 ) )  =  { ( P ` 
1 ) ,  ( P `  2 ) } )  /\  (
( E `  ( F `  2 )
)  =  { ( P `  2 ) ,  ( P ` 
3 ) }  /\  ( E `  ( F `
 3 ) )  =  { ( P `
 3 ) ,  ( P `  0
) } ) ) ) )
61 simpll 753 . . . . . . . . . . . . . . . . . . . . . . . . . . 27  |-  ( ( ( V USGrph  E  /\  ( F  e. Word  dom  E  /\  Fun  `' F ) )  /\  ( # `  F )  =  4 )  ->  V USGrph  E )
62 simplrl 759 . . . . . . . . . . . . . . . . . . . . . . . . . . 27  |-  ( ( ( V USGrph  E  /\  ( F  e. Word  dom  E  /\  Fun  `' F ) )  /\  ( # `  F )  =  4 )  ->  F  e. Word  dom 
E )
63 simplrr 760 . . . . . . . . . . . . . . . . . . . . . . . . . . 27  |-  ( ( ( V USGrph  E  /\  ( F  e. Word  dom  E  /\  Fun  `' F ) )  /\  ( # `  F )  =  4 )  ->  Fun  `' F
)
64 simpr 461 . . . . . . . . . . . . . . . . . . . . . . . . . . 27  |-  ( ( ( V USGrph  E  /\  ( F  e. Word  dom  E  /\  Fun  `' F ) )  /\  ( # `  F )  =  4 )  ->  ( # `  F
)  =  4 )
65 4cycl4dv 23553 . . . . . . . . . . . . . . . . . . . . . . . . . . 27  |-  ( ( V USGrph  E  /\  ( F  e. Word  dom  E  /\  Fun  `' F  /\  ( # `
 F )  =  4 ) )  -> 
( ( ( ( E `  ( F `
 0 ) )  =  { ( P `
 0 ) ,  ( P `  1
) }  /\  ( E `  ( F `  1 ) )  =  { ( P `
 1 ) ,  ( P `  2
) } )  /\  ( ( E `  ( F `  2 ) )  =  { ( P `  2 ) ,  ( P ` 
3 ) }  /\  ( E `  ( F `
 3 ) )  =  { ( P `
 3 ) ,  ( P `  0
) } ) )  ->  ( ( ( { ( P ` 
0 ) ,  ( P `  1 ) }  e.  ran  E  /\  { ( P ` 
1 ) ,  ( P `  2 ) }  e.  ran  E
)  /\  ( {
( P `  2
) ,  ( P `
 3 ) }  e.  ran  E  /\  { ( P `  3
) ,  ( P `
 0 ) }  e.  ran  E ) )  /\  ( ( ( P `  0
)  =/=  ( P `
 1 )  /\  ( P `  0 )  =/=  ( P ` 
2 )  /\  ( P `  0 )  =/=  ( P `  3
) )  /\  (
( P `  1
)  =/=  ( P `
 2 )  /\  ( P `  1 )  =/=  ( P ` 
3 )  /\  ( P `  2 )  =/=  ( P `  3
) ) ) ) ) )
6661, 62, 63, 64, 65syl13anc 1220 . . . . . . . . . . . . . . . . . . . . . . . . . 26  |-  ( ( ( V USGrph  E  /\  ( F  e. Word  dom  E  /\  Fun  `' F ) )  /\  ( # `  F )  =  4 )  ->  ( (
( ( E `  ( F `  0 ) )  =  { ( P `  0 ) ,  ( P ` 
1 ) }  /\  ( E `  ( F `
 1 ) )  =  { ( P `
 1 ) ,  ( P `  2
) } )  /\  ( ( E `  ( F `  2 ) )  =  { ( P `  2 ) ,  ( P ` 
3 ) }  /\  ( E `  ( F `
 3 ) )  =  { ( P `
 3 ) ,  ( P `  0
) } ) )  ->  ( ( ( { ( P ` 
0 ) ,  ( P `  1 ) }  e.  ran  E  /\  { ( P ` 
1 ) ,  ( P `  2 ) }  e.  ran  E
)  /\  ( {
( P `  2
) ,  ( P `
 3 ) }  e.  ran  E  /\  { ( P `  3
) ,  ( P `
 0 ) }  e.  ran  E ) )  /\  ( ( ( P `  0
)  =/=  ( P `
 1 )  /\  ( P `  0 )  =/=  ( P ` 
2 )  /\  ( P `  0 )  =/=  ( P `  3
) )  /\  (
( P `  1
)  =/=  ( P `
 2 )  /\  ( P `  1 )  =/=  ( P ` 
3 )  /\  ( P `  2 )  =/=  ( P `  3
) ) ) ) ) )
6766imp 429 . . . . . . . . . . . . . . . . . . . . . . . . 25  |-  ( ( ( ( V USGrph  E  /\  ( F  e. Word  dom  E  /\  Fun  `' F
) )  /\  ( # `
 F )  =  4 )  /\  (
( ( E `  ( F `  0 ) )  =  { ( P `  0 ) ,  ( P ` 
1 ) }  /\  ( E `  ( F `
 1 ) )  =  { ( P `
 1 ) ,  ( P `  2
) } )  /\  ( ( E `  ( F `  2 ) )  =  { ( P `  2 ) ,  ( P ` 
3 ) }  /\  ( E `  ( F `
 3 ) )  =  { ( P `
 3 ) ,  ( P `  0
) } ) ) )  ->  ( (
( { ( P `
 0 ) ,  ( P `  1
) }  e.  ran  E  /\  { ( P `
 1 ) ,  ( P `  2
) }  e.  ran  E )  /\  ( { ( P `  2
) ,  ( P `
 3 ) }  e.  ran  E  /\  { ( P `  3
) ,  ( P `
 0 ) }  e.  ran  E ) )  /\  ( ( ( P `  0
)  =/=  ( P `
 1 )  /\  ( P `  0 )  =/=  ( P ` 
2 )  /\  ( P `  0 )  =/=  ( P `  3
) )  /\  (
( P `  1
)  =/=  ( P `
 2 )  /\  ( P `  1 )  =/=  ( P ` 
3 )  /\  ( P `  2 )  =/=  ( P `  3
) ) ) ) )
68 4nn0 10598 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28  |-  4  e.  NN0
6968nn0zi 10671 . . . . . . . . . . . . . . . . . . . . . . . . . . 27  |-  4  e.  ZZ
70 3re 10395 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28  |-  3  e.  RR
71 4re 10398 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28  |-  4  e.  RR
72 3lt4 10491 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28  |-  3  <  4
7370, 71, 72ltleii 9497 . . . . . . . . . . . . . . . . . . . . . . . . . . 27  |-  3  <_  4
74 eluz2 10867 . . . . . . . . . . . . . . . . . . . . . . . . . . 27  |-  ( 4  e.  ( ZZ>= `  3
)  <->  ( 3  e.  ZZ  /\  4  e.  ZZ  /\  3  <_ 
4 ) )
7533, 69, 73, 74mpbir3an 1170 . . . . . . . . . . . . . . . . . . . . . . . . . 26  |-  4  e.  ( ZZ>= `  3 )
76 4fvwrd4 11533 . . . . . . . . . . . . . . . . . . . . . . . . . 26  |-  ( ( 4  e.  ( ZZ>= ` 
3 )  /\  P : ( 0 ... 4 ) --> V )  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( ( ( P `
 0 )  =  a  /\  ( P `
 1 )  =  b )  /\  (
( P `  2
)  =  c  /\  ( P `  3 )  =  d ) ) )
7775, 76mpan 670 . . . . . . . . . . . . . . . . . . . . . . . . 25  |-  ( P : ( 0 ... 4 ) --> V  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( ( ( P `
 0 )  =  a  /\  ( P `
 1 )  =  b )  /\  (
( P `  2
)  =  c  /\  ( P `  3 )  =  d ) ) )
78 preq12 3956 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35  |-  ( ( ( P `  0
)  =  a  /\  ( P `  1 )  =  b )  ->  { ( P ` 
0 ) ,  ( P `  1 ) }  =  { a ,  b } )
7978adantr 465 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34  |-  ( ( ( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  { ( P `
 0 ) ,  ( P `  1
) }  =  {
a ,  b } )
8079eleq1d 2509 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33  |-  ( ( ( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  ( { ( P `  0 ) ,  ( P ` 
1 ) }  e.  ran  E  <->  { a ,  b }  e.  ran  E
) )
81 simplr 754 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35  |-  ( ( ( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  ( P ` 
1 )  =  b )
82 simprl 755 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35  |-  ( ( ( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  ( P ` 
2 )  =  c )
8381, 82preq12d 3962 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34  |-  ( ( ( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  { ( P `
 1 ) ,  ( P `  2
) }  =  {
b ,  c } )
8483eleq1d 2509 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33  |-  ( ( ( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  ( { ( P `  1 ) ,  ( P ` 
2 ) }  e.  ran  E  <->  { b ,  c }  e.  ran  E
) )
8580, 84anbi12d 710 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32  |-  ( ( ( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  ( ( { ( P `  0
) ,  ( P `
 1 ) }  e.  ran  E  /\  { ( P `  1
) ,  ( P `
 2 ) }  e.  ran  E )  <-> 
( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E ) ) )
86 preq12 3956 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35  |-  ( ( ( P `  2
)  =  c  /\  ( P `  3 )  =  d )  ->  { ( P ` 
2 ) ,  ( P `  3 ) }  =  { c ,  d } )
8786adantl 466 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34  |-  ( ( ( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  { ( P `
 2 ) ,  ( P `  3
) }  =  {
c ,  d } )
8887eleq1d 2509 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33  |-  ( ( ( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  ( { ( P `  2 ) ,  ( P ` 
3 ) }  e.  ran  E  <->  { c ,  d }  e.  ran  E
) )
89 simprr 756 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35  |-  ( ( ( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  ( P ` 
3 )  =  d )
90 simpll 753 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35  |-  ( ( ( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  ( P ` 
0 )  =  a )
9189, 90preq12d 3962 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34  |-  ( ( ( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  { ( P `
 3 ) ,  ( P `  0
) }  =  {
d ,  a } )
9291eleq1d 2509 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33  |-  ( ( ( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  ( { ( P `  3 ) ,  ( P ` 
0 ) }  e.  ran  E  <->  { d ,  a }  e.  ran  E
) )
9388, 92anbi12d 710 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32  |-  ( ( ( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  ( ( { ( P `  2
) ,  ( P `
 3 ) }  e.  ran  E  /\  { ( P `  3
) ,  ( P `
 0 ) }  e.  ran  E )  <-> 
( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) ) )
9485, 93anbi12d 710 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31  |-  ( ( ( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  ( ( ( { ( P ` 
0 ) ,  ( P `  1 ) }  e.  ran  E  /\  { ( P ` 
1 ) ,  ( P `  2 ) }  e.  ran  E
)  /\  ( {
( P `  2
) ,  ( P `
 3 ) }  e.  ran  E  /\  { ( P `  3
) ,  ( P `
 0 ) }  e.  ran  E ) )  <->  ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) ) ) )
9590, 81neeq12d 2623 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33  |-  ( ( ( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  ( ( P `
 0 )  =/=  ( P `  1
)  <->  a  =/=  b
) )
9690, 82neeq12d 2623 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33  |-  ( ( ( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  ( ( P `
 0 )  =/=  ( P `  2
)  <->  a  =/=  c
) )
9790, 89neeq12d 2623 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33  |-  ( ( ( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  ( ( P `
 0 )  =/=  ( P `  3
)  <->  a  =/=  d
) )
9895, 96, 973anbi123d 1289 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32  |-  ( ( ( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  ( ( ( P `  0 )  =/=  ( P ` 
1 )  /\  ( P `  0 )  =/=  ( P `  2
)  /\  ( P `  0 )  =/=  ( P `  3
) )  <->  ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d ) ) )
9981, 82neeq12d 2623 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33  |-  ( ( ( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  ( ( P `
 1 )  =/=  ( P `  2
)  <->  b  =/=  c
) )
10081, 89neeq12d 2623 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33  |-  ( ( ( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  ( ( P `
 1 )  =/=  ( P `  3
)  <->  b  =/=  d
) )
101 simpl 457 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35  |-  ( ( ( P `  2
)  =  c  /\  ( P `  3 )  =  d )  -> 
( P `  2
)  =  c )
102 simpr 461 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35  |-  ( ( ( P `  2
)  =  c  /\  ( P `  3 )  =  d )  -> 
( P `  3
)  =  d )
103101, 102neeq12d 2623 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34  |-  ( ( ( P `  2
)  =  c  /\  ( P `  3 )  =  d )  -> 
( ( P ` 
2 )  =/=  ( P `  3 )  <->  c  =/=  d ) )
104103adantl 466 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33  |-  ( ( ( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  ( ( P `
 2 )  =/=  ( P `  3
)  <->  c  =/=  d
) )
10599, 100, 1043anbi123d 1289 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32  |-  ( ( ( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  ( ( ( P `  1 )  =/=  ( P ` 
2 )  /\  ( P `  1 )  =/=  ( P `  3
)  /\  ( P `  2 )  =/=  ( P `  3
) )  <->  ( b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) )
10698, 105anbi12d 710 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31  |-  ( ( ( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  ( ( ( ( P `  0
)  =/=  ( P `
 1 )  /\  ( P `  0 )  =/=  ( P ` 
2 )  /\  ( P `  0 )  =/=  ( P `  3
) )  /\  (
( P `  1
)  =/=  ( P `
 2 )  /\  ( P `  1 )  =/=  ( P ` 
3 )  /\  ( P `  2 )  =/=  ( P `  3
) ) )  <->  ( (
a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) )
10794, 106anbi12d 710 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30  |-  ( ( ( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  ( ( ( ( { ( P `
 0 ) ,  ( P `  1
) }  e.  ran  E  /\  { ( P `
 1 ) ,  ( P `  2
) }  e.  ran  E )  /\  ( { ( P `  2
) ,  ( P `
 3 ) }  e.  ran  E  /\  { ( P `  3
) ,  ( P `
 0 ) }  e.  ran  E ) )  /\  ( ( ( P `  0
)  =/=  ( P `
 1 )  /\  ( P `  0 )  =/=  ( P ` 
2 )  /\  ( P `  0 )  =/=  ( P `  3
) )  /\  (
( P `  1
)  =/=  ( P `
 2 )  /\  ( P `  1 )  =/=  ( P ` 
3 )  /\  ( P `  2 )  =/=  ( P `  3
) ) ) )  <-> 
( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) )
108107biimpcd 224 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29  |-  ( ( ( ( { ( P `  0 ) ,  ( P ` 
1 ) }  e.  ran  E  /\  { ( P `  1 ) ,  ( P ` 
2 ) }  e.  ran  E )  /\  ( { ( P ` 
2 ) ,  ( P `  3 ) }  e.  ran  E  /\  { ( P ` 
3 ) ,  ( P `  0 ) }  e.  ran  E
) )  /\  (
( ( P ` 
0 )  =/=  ( P `  1 )  /\  ( P `  0
)  =/=  ( P `
 2 )  /\  ( P `  0 )  =/=  ( P ` 
3 ) )  /\  ( ( P ` 
1 )  =/=  ( P `  2 )  /\  ( P `  1
)  =/=  ( P `
 3 )  /\  ( P `  2 )  =/=  ( P ` 
3 ) ) ) )  ->  ( (
( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E
)  /\  ( {
c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) )
109108reximdv 2827 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28  |-  ( ( ( ( { ( P `  0 ) ,  ( P ` 
1 ) }  e.  ran  E  /\  { ( P `  1 ) ,  ( P ` 
2 ) }  e.  ran  E )  /\  ( { ( P ` 
2 ) ,  ( P `  3 ) }  e.  ran  E  /\  { ( P ` 
3 ) ,  ( P `  0 ) }  e.  ran  E
) )  /\  (
( ( P ` 
0 )  =/=  ( P `  1 )  /\  ( P `  0
)  =/=  ( P `
 2 )  /\  ( P `  0 )  =/=  ( P ` 
3 ) )  /\  ( ( P ` 
1 )  =/=  ( P `  2 )  /\  ( P `  1
)  =/=  ( P `
 3 )  /\  ( P `  2 )  =/=  ( P ` 
3 ) ) ) )  ->  ( E. d  e.  V  (
( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  E. d  e.  V  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) )
110109reximdv 2827 . . . . . . . . . . . . . . . . . . . . . . . . . . 27  |-  ( ( ( ( { ( P `  0 ) ,  ( P ` 
1 ) }  e.  ran  E  /\  { ( P `  1 ) ,  ( P ` 
2 ) }  e.  ran  E )  /\  ( { ( P ` 
2 ) ,  ( P `  3 ) }  e.  ran  E  /\  { ( P ` 
3 ) ,  ( P `  0 ) }  e.  ran  E
) )  /\  (
( ( P ` 
0 )  =/=  ( P `  1 )  /\  ( P `  0
)  =/=  ( P `
 2 )  /\  ( P `  0 )  =/=  ( P ` 
3 ) )  /\  ( ( P ` 
1 )  =/=  ( P `  2 )  /\  ( P `  1
)  =/=  ( P `
 3 )  /\  ( P `  2 )  =/=  ( P ` 
3 ) ) ) )  ->  ( E. c  e.  V  E. d  e.  V  (
( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  E. c  e.  V  E. d  e.  V  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) )
111110reximdv 2827 . . . . . . . . . . . . . . . . . . . . . . . . . 26  |-  ( ( ( ( { ( P `  0 ) ,  ( P ` 
1 ) }  e.  ran  E  /\  { ( P `  1 ) ,  ( P ` 
2 ) }  e.  ran  E )  /\  ( { ( P ` 
2 ) ,  ( P `  3 ) }  e.  ran  E  /\  { ( P ` 
3 ) ,  ( P `  0 ) }  e.  ran  E
) )  /\  (
( ( P ` 
0 )  =/=  ( P `  1 )  /\  ( P `  0
)  =/=  ( P `
 2 )  /\  ( P `  0 )  =/=  ( P ` 
3 ) )  /\  ( ( P ` 
1 )  =/=  ( P `  2 )  /\  ( P `  1
)  =/=  ( P `
 3 )  /\  ( P `  2 )  =/=  ( P ` 
3 ) ) ) )  ->  ( E. b  e.  V  E. c  e.  V  E. d  e.  V  (
( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) )
112111reximdv 2827 . . . . . . . . . . . . . . . . . . . . . . . . 25  |-  ( ( ( ( { ( P `  0 ) ,  ( P ` 
1 ) }  e.  ran  E  /\  { ( P `  1 ) ,  ( P ` 
2 ) }  e.  ran  E )  /\  ( { ( P ` 
2 ) ,  ( P `  3 ) }  e.  ran  E  /\  { ( P ` 
3 ) ,  ( P `  0 ) }  e.  ran  E
) )  /\  (
( ( P ` 
0 )  =/=  ( P `  1 )  /\  ( P `  0
)  =/=  ( P `
 2 )  /\  ( P `  0 )  =/=  ( P ` 
3 ) )  /\  ( ( P ` 
1 )  =/=  ( P `  2 )  /\  ( P `  1
)  =/=  ( P `
 3 )  /\  ( P `  2 )  =/=  ( P ` 
3 ) ) ) )  ->  ( E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  (
( ( P ` 
0 )  =  a  /\  ( P ` 
1 )  =  b )  /\  ( ( P `  2 )  =  c  /\  ( P `  3 )  =  d ) )  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) )
11367, 77, 112syl2im 38 . . . . . . . . . . . . . . . . . . . . . . . 24  |-  ( ( ( ( V USGrph  E  /\  ( F  e. Word  dom  E  /\  Fun  `' F
) )  /\  ( # `
 F )  =  4 )  /\  (
( ( E `  ( F `  0 ) )  =  { ( P `  0 ) ,  ( P ` 
1 ) }  /\  ( E `  ( F `
 1 ) )  =  { ( P `
 1 ) ,  ( P `  2
) } )  /\  ( ( E `  ( F `  2 ) )  =  { ( P `  2 ) ,  ( P ` 
3 ) }  /\  ( E `  ( F `
 3 ) )  =  { ( P `
 3 ) ,  ( P `  0
) } ) ) )  ->  ( P : ( 0 ... 4 ) --> V  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) )
114113exp41 610 . . . . . . . . . . . . . . . . . . . . . . 23  |-  ( V USGrph  E  ->  ( ( F  e. Word  dom  E  /\  Fun  `' F )  ->  (
( # `  F )  =  4  ->  (
( ( ( E `
 ( F ` 
0 ) )  =  { ( P ` 
0 ) ,  ( P `  1 ) }  /\  ( E `
 ( F ` 
1 ) )  =  { ( P ` 
1 ) ,  ( P `  2 ) } )  /\  (
( E `  ( F `  2 )
)  =  { ( P `  2 ) ,  ( P ` 
3 ) }  /\  ( E `  ( F `
 3 ) )  =  { ( P `
 3 ) ,  ( P `  0
) } ) )  ->  ( P :
( 0 ... 4
) --> V  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( (
( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) ) ) ) )
115114com14 88 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( ( ( ( E `  ( F `  0 ) )  =  { ( P `  0 ) ,  ( P ` 
1 ) }  /\  ( E `  ( F `
 1 ) )  =  { ( P `
 1 ) ,  ( P `  2
) } )  /\  ( ( E `  ( F `  2 ) )  =  { ( P `  2 ) ,  ( P ` 
3 ) }  /\  ( E `  ( F `
 3 ) )  =  { ( P `
 3 ) ,  ( P `  0
) } ) )  ->  ( ( F  e. Word  dom  E  /\  Fun  `' F )  ->  (
( # `  F )  =  4  ->  ( V USGrph  E  ->  ( P : ( 0 ... 4 ) --> V  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) ) ) ) )
116115com35 90 . . . . . . . . . . . . . . . . . . . . 21  |-  ( ( ( ( E `  ( F `  0 ) )  =  { ( P `  0 ) ,  ( P ` 
1 ) }  /\  ( E `  ( F `
 1 ) )  =  { ( P `
 1 ) ,  ( P `  2
) } )  /\  ( ( E `  ( F `  2 ) )  =  { ( P `  2 ) ,  ( P ` 
3 ) }  /\  ( E `  ( F `
 3 ) )  =  { ( P `
 3 ) ,  ( P `  0
) } ) )  ->  ( ( F  e. Word  dom  E  /\  Fun  `' F )  ->  ( P : ( 0 ... 4 ) --> V  -> 
( V USGrph  E  ->  ( ( # `  F
)  =  4  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) ) ) ) )
11760, 116syl6bi 228 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( P `  0 )  =  ( P ` 
4 )  ->  (
( ( ( E `
 ( F ` 
0 ) )  =  { ( P ` 
0 ) ,  ( P `  1 ) }  /\  ( E `
 ( F ` 
1 ) )  =  { ( P ` 
1 ) ,  ( P `  2 ) } )  /\  (
( E `  ( F `  2 )
)  =  { ( P `  2 ) ,  ( P ` 
3 ) }  /\  ( E `  ( F `
 3 ) )  =  { ( P `
 3 ) ,  ( P `  4
) } ) )  ->  ( ( F  e. Word  dom  E  /\  Fun  `' F )  ->  ( P : ( 0 ... 4 ) --> V  -> 
( V USGrph  E  ->  ( ( # `  F
)  =  4  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) ) ) ) ) )
118117com12 31 . . . . . . . . . . . . . . . . . . 19  |-  ( ( ( ( E `  ( F `  0 ) )  =  { ( P `  0 ) ,  ( P ` 
1 ) }  /\  ( E `  ( F `
 1 ) )  =  { ( P `
 1 ) ,  ( P `  2
) } )  /\  ( ( E `  ( F `  2 ) )  =  { ( P `  2 ) ,  ( P ` 
3 ) }  /\  ( E `  ( F `
 3 ) )  =  { ( P `
 3 ) ,  ( P `  4
) } ) )  ->  ( ( P `
 0 )  =  ( P `  4
)  ->  ( ( F  e. Word  dom  E  /\  Fun  `' F )  ->  ( P : ( 0 ... 4 ) --> V  -> 
( V USGrph  E  ->  ( ( # `  F
)  =  4  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) ) ) ) ) )
119118com24 87 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( ( E `  ( F `  0 ) )  =  { ( P `  0 ) ,  ( P ` 
1 ) }  /\  ( E `  ( F `
 1 ) )  =  { ( P `
 1 ) ,  ( P `  2
) } )  /\  ( ( E `  ( F `  2 ) )  =  { ( P `  2 ) ,  ( P ` 
3 ) }  /\  ( E `  ( F `
 3 ) )  =  { ( P `
 3 ) ,  ( P `  4
) } ) )  ->  ( P :
( 0 ... 4
) --> V  ->  (
( F  e. Word  dom  E  /\  Fun  `' F
)  ->  ( ( P `  0 )  =  ( P ` 
4 )  ->  ( V USGrph  E  ->  ( ( # `
 F )  =  4  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( (
( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) ) ) ) ) )
12055, 119sylbi 195 . . . . . . . . . . . . . . . . 17  |-  ( A. k  e.  ( 0..^ 4 ) ( E `
 ( F `  k ) )  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) }  ->  ( P : ( 0 ... 4 ) --> V  -> 
( ( F  e. Word  dom  E  /\  Fun  `' F )  ->  (
( P `  0
)  =  ( P `
 4 )  -> 
( V USGrph  E  ->  ( ( # `  F
)  =  4  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) ) ) ) ) )
121120com13 80 . . . . . . . . . . . . . . . 16  |-  ( ( F  e. Word  dom  E  /\  Fun  `' F )  ->  ( P :
( 0 ... 4
) --> V  ->  ( A. k  e.  (
0..^ 4 ) ( E `  ( F `
 k ) )  =  { ( P `
 k ) ,  ( P `  (
k  +  1 ) ) }  ->  (
( P `  0
)  =  ( P `
 4 )  -> 
( V USGrph  E  ->  ( ( # `  F
)  =  4  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) ) ) ) ) )
1221213imp 1181 . . . . . . . . . . . . . . 15  |-  ( ( ( F  e. Word  dom  E  /\  Fun  `' F
)  /\  P :
( 0 ... 4
) --> V  /\  A. k  e.  ( 0..^ 4 ) ( E `
 ( F `  k ) )  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) } )  ->  (
( P `  0
)  =  ( P `
 4 )  -> 
( V USGrph  E  ->  ( ( # `  F
)  =  4  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) ) ) )
123122com14 88 . . . . . . . . . . . . . 14  |-  ( (
# `  F )  =  4  ->  (
( P `  0
)  =  ( P `
 4 )  -> 
( V USGrph  E  ->  ( ( ( F  e. Word  dom  E  /\  Fun  `' F )  /\  P : ( 0 ... 4 ) --> V  /\  A. k  e.  ( 0..^ 4 ) ( E `
 ( F `  k ) )  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) } )  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( (
( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) ) ) )
124 fveq2 5691 . . . . . . . . . . . . . . 15  |-  ( (
# `  F )  =  4  ->  ( P `  ( # `  F
) )  =  ( P `  4 ) )
125124eqeq2d 2454 . . . . . . . . . . . . . 14  |-  ( (
# `  F )  =  4  ->  (
( P `  0
)  =  ( P `
 ( # `  F
) )  <->  ( P `  0 )  =  ( P `  4
) ) )
126 oveq2 6099 . . . . . . . . . . . . . . . . . 18  |-  ( (
# `  F )  =  4  ->  (
0 ... ( # `  F
) )  =  ( 0 ... 4 ) )
127126feq2d 5547 . . . . . . . . . . . . . . . . 17  |-  ( (
# `  F )  =  4  ->  ( P : ( 0 ... ( # `  F
) ) --> V  <->  P :
( 0 ... 4
) --> V ) )
128 oveq2 6099 . . . . . . . . . . . . . . . . . 18  |-  ( (
# `  F )  =  4  ->  (
0..^ ( # `  F
) )  =  ( 0..^ 4 ) )
129128raleqdv 2923 . . . . . . . . . . . . . . . . 17  |-  ( (
# `  F )  =  4  ->  ( A. k  e.  (
0..^ ( # `  F
) ) ( E `
 ( F `  k ) )  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) }  <->  A. k  e.  ( 0..^ 4 ) ( E `  ( F `
 k ) )  =  { ( P `
 k ) ,  ( P `  (
k  +  1 ) ) } ) )
130127, 1293anbi23d 1292 . . . . . . . . . . . . . . . 16  |-  ( (
# `  F )  =  4  ->  (
( ( F  e. Word  dom  E  /\  Fun  `' F )  /\  P : ( 0 ... ( # `  F
) ) --> V  /\  A. k  e.  ( 0..^ ( # `  F
) ) ( E `
 ( F `  k ) )  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) } )  <->  ( ( F  e. Word  dom  E  /\  Fun  `' F )  /\  P : ( 0 ... 4 ) --> V  /\  A. k  e.  ( 0..^ 4 ) ( E `
 ( F `  k ) )  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) } ) ) )
131130imbi1d 317 . . . . . . . . . . . . . . 15  |-  ( (
# `  F )  =  4  ->  (
( ( ( F  e. Word  dom  E  /\  Fun  `' F )  /\  P : ( 0 ... ( # `  F
) ) --> V  /\  A. k  e.  ( 0..^ ( # `  F
) ) ( E `
 ( F `  k ) )  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) } )  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( (
( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) )  <->  ( ( ( F  e. Word  dom  E  /\  Fun  `' F )  /\  P : ( 0 ... 4 ) --> V  /\  A. k  e.  ( 0..^ 4 ) ( E `  ( F `  k )
)  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) } )  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) ) )
132131imbi2d 316 . . . . . . . . . . . . . 14  |-  ( (
# `  F )  =  4  ->  (
( V USGrph  E  ->  ( ( ( F  e. Word  dom  E  /\  Fun  `' F )  /\  P : ( 0 ... ( # `  F
) ) --> V  /\  A. k  e.  ( 0..^ ( # `  F
) ) ( E `
 ( F `  k ) )  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) } )  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( (
( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) )  <->  ( V USGrph  E  ->  ( ( ( F  e. Word  dom  E  /\  Fun  `' F )  /\  P : ( 0 ... 4 ) --> V  /\  A. k  e.  ( 0..^ 4 ) ( E `  ( F `  k )
)  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) } )  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) ) ) )
133123, 125, 1323imtr4d 268 . . . . . . . . . . . . 13  |-  ( (
# `  F )  =  4  ->  (
( P `  0
)  =  ( P `
 ( # `  F
) )  ->  ( V USGrph  E  ->  ( (
( F  e. Word  dom  E  /\  Fun  `' F
)  /\  P :
( 0 ... ( # `
 F ) ) --> V  /\  A. k  e.  ( 0..^ ( # `  F ) ) ( E `  ( F `
 k ) )  =  { ( P `
 k ) ,  ( P `  (
k  +  1 ) ) } )  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) ) ) )
134133com14 88 . . . . . . . . . . . 12  |-  ( ( ( F  e. Word  dom  E  /\  Fun  `' F
)  /\  P :
( 0 ... ( # `
 F ) ) --> V  /\  A. k  e.  ( 0..^ ( # `  F ) ) ( E `  ( F `
 k ) )  =  { ( P `
 k ) ,  ( P `  (
k  +  1 ) ) } )  -> 
( ( P ` 
0 )  =  ( P `  ( # `  F ) )  -> 
( V USGrph  E  ->  ( ( # `  F
)  =  4  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) ) ) )
135134a1d 25 . . . . . . . . . . 11  |-  ( ( ( F  e. Word  dom  E  /\  Fun  `' F
)  /\  P :
( 0 ... ( # `
 F ) ) --> V  /\  A. k  e.  ( 0..^ ( # `  F ) ) ( E `  ( F `
 k ) )  =  { ( P `
 k ) ,  ( P `  (
k  +  1 ) ) } )  -> 
( ( ( P
" { 0 ,  ( # `  F
) } )  i^i  ( P " (
1..^ ( # `  F
) ) ) )  =  (/)  ->  ( ( P `  0 )  =  ( P `  ( # `  F ) )  ->  ( V USGrph  E  ->  ( ( # `  F )  =  4  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) ) ) ) )
136135a1d 25 . . . . . . . . . 10  |-  ( ( ( F  e. Word  dom  E  /\  Fun  `' F
)  /\  P :
( 0 ... ( # `
 F ) ) --> V  /\  A. k  e.  ( 0..^ ( # `  F ) ) ( E `  ( F `
 k ) )  =  { ( P `
 k ) ,  ( P `  (
k  +  1 ) ) } )  -> 
( Fun  `' ( P  |`  ( 1..^ (
# `  F )
) )  ->  (
( ( P " { 0 ,  (
# `  F ) } )  i^i  ( P " ( 1..^ (
# `  F )
) ) )  =  (/)  ->  ( ( P `
 0 )  =  ( P `  ( # `
 F ) )  ->  ( V USGrph  E  ->  ( ( # `  F
)  =  4  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) ) ) ) ) )
1376, 136syl6bi 228 . . . . . . . . 9  |-  ( ( ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V )
)  ->  ( F
( V Trails  E ) P  ->  ( Fun  `' ( P  |`  ( 1..^ ( # `  F
) ) )  -> 
( ( ( P
" { 0 ,  ( # `  F
) } )  i^i  ( P " (
1..^ ( # `  F
) ) ) )  =  (/)  ->  ( ( P `  0 )  =  ( P `  ( # `  F ) )  ->  ( V USGrph  E  ->  ( ( # `  F )  =  4  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) ) ) ) ) ) )
1381373impd 1201 . . . . . . . 8  |-  ( ( ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V )
)  ->  ( ( F ( V Trails  E
) P  /\  Fun  `' ( P  |`  (
1..^ ( # `  F
) ) )  /\  ( ( P " { 0 ,  (
# `  F ) } )  i^i  ( P " ( 1..^ (
# `  F )
) ) )  =  (/) )  ->  ( ( P `  0 )  =  ( P `  ( # `  F ) )  ->  ( V USGrph  E  ->  ( ( # `  F )  =  4  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) ) ) ) )
1395, 138sylbid 215 . . . . . . 7  |-  ( ( ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V )
)  ->  ( F
( V Paths  E ) P  ->  ( ( P `
 0 )  =  ( P `  ( # `
 F ) )  ->  ( V USGrph  E  ->  ( ( # `  F
)  =  4  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) ) ) ) )
140139impd 431 . . . . . 6  |-  ( ( ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V )
)  ->  ( ( F ( V Paths  E
) P  /\  ( P `  0 )  =  ( P `  ( # `  F ) ) )  ->  ( V USGrph  E  ->  ( ( # `
 F )  =  4  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( (
( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) ) ) )
1414, 140sylbid 215 . . . . 5  |-  ( ( ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V )
)  ->  ( F
( V Cycles  E ) P  ->  ( V USGrph  E  ->  ( ( # `  F
)  =  4  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) ) ) )
1421413adant1 1006 . . . 4  |-  ( ( ( # `  F
)  e.  NN0  /\  ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V )
)  ->  ( F
( V Cycles  E ) P  ->  ( V USGrph  E  ->  ( ( # `  F
)  =  4  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) ) ) )
1433, 142mpcom 36 . . 3  |-  ( F ( V Cycles  E ) P  ->  ( V USGrph  E  ->  ( ( # `  F )  =  4  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) ) )
144143com12 31 . 2  |-  ( V USGrph  E  ->  ( F ( V Cycles  E ) P  ->  ( ( # `  F )  =  4  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) ) ) )
1451443imp 1181 1  |-  ( ( V USGrph  E  /\  F ( V Cycles  E ) P  /\  ( # `  F
)  =  4 )  ->  E. a  e.  V  E. b  e.  V  E. c  e.  V  E. d  e.  V  ( ( ( { a ,  b }  e.  ran  E  /\  { b ,  c }  e.  ran  E )  /\  ( { c ,  d }  e.  ran  E  /\  { d ,  a }  e.  ran  E ) )  /\  ( ( a  =/=  b  /\  a  =/=  c  /\  a  =/=  d )  /\  (
b  =/=  c  /\  b  =/=  d  /\  c  =/=  d ) ) ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    <-> wb 184    /\ wa 369    /\ w3a 965    = wceq 1369    e. wcel 1756    =/= wne 2606   A.wral 2715   E.wrex 2716   _Vcvv 2972    u. cun 3326    i^i cin 3327   (/)c0 3637   {cpr 3879   class class class wbr 4292   `'ccnv 4839   dom cdm 4840   ran crn 4841    |` cres 4842   "cima 4843   Fun wfun 5412   -->wf 5414   ` cfv 5418  (class class class)co 6091   0cc0 9282   1c1 9283    + caddc 9285    <_ cle 9419   2c2 10371   3c3 10372   4c4 10373   NN0cn0 10579   ZZcz 10646   ZZ>=cuz 10861   ...cfz 11437  ..^cfzo 11548   #chash 12103  Word cword 12221   USGrph cusg 23264   Walks cwalk 23405   Trails ctrail 23406   Paths cpath 23407   Cycles ccycl 23414
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 2423  ax-rep 4403  ax-sep 4413  ax-nul 4421  ax-pow 4470  ax-pr 4531  ax-un 6372  ax-cnex 9338  ax-resscn 9339  ax-1cn 9340  ax-icn 9341  ax-addcl 9342  ax-addrcl 9343  ax-mulcl 9344  ax-mulrcl 9345  ax-mulcom 9346  ax-addass 9347  ax-mulass 9348  ax-distr 9349  ax-i2m1 9350  ax-1ne0 9351  ax-1rid 9352  ax-rnegex 9353  ax-rrecex 9354  ax-cnre 9355  ax-pre-lttri 9356  ax-pre-lttrn 9357  ax-pre-ltadd 9358  ax-pre-mulgt0 9359
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 2257  df-mo 2258  df-clab 2430  df-cleq 2436  df-clel 2439  df-nfc 2568  df-ne 2608  df-nel 2609  df-ral 2720  df-rex 2721  df-reu 2722  df-rmo 2723  df-rab 2724  df-v 2974  df-sbc 3187  df-csb 3289  df-dif 3331  df-un 3333  df-in 3335  df-ss 3342  df-pss 3344  df-nul 3638  df-if 3792  df-pw 3862  df-sn 3878  df-pr 3880  df-tp 3882  df-op 3884  df-uni 4092  df-int 4129  df-iun 4173  df-br 4293  df-opab 4351  df-mpt 4352  df-tr 4386  df-eprel 4632  df-id 4636  df-po 4641  df-so 4642  df-fr 4679  df-we 4681  df-ord 4722  df-on 4723  df-lim 4724  df-suc 4725  df-xp 4846  df-rel 4847  df-cnv 4848  df-co 4849  df-dm 4850  df-rn 4851  df-res 4852  df-ima 4853  df-iota 5381  df-fun 5420  df-fn 5421  df-f 5422  df-f1 5423  df-fo 5424  df-f1o 5425  df-fv 5426  df-riota 6052  df-ov 6094  df-oprab 6095  df-mpt2 6096  df-om 6477  df-1st 6577  df-2nd 6578  df-recs 6832  df-rdg 6866  df-1o 6920  df-oadd 6924  df-er 7101  df-map 7216  df-pm 7217  df-en 7311  df-dom 7312  df-sdom 7313  df-fin 7314  df-card 8109  df-cda 8337  df-pnf 9420  df-mnf 9421  df-xr 9422  df-ltxr 9423  df-le 9424  df-sub 9597  df-neg 9598  df-nn 10323  df-2 10380  df-3 10381  df-4 10382  df-n0 10580  df-z 10647  df-uz 10862  df-fz 11438  df-fzo 11549  df-hash 12104  df-word 12229  df-usgra 23266  df-wlk 23415  df-trail 23416  df-pth 23417  df-cycl 23420
This theorem is referenced by:  n4cyclfrgra  30610
  Copyright terms: Public domain W3C validator