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

Theorem erclwwlknsym 24953
Description:  .~ is a symmetric relation over the set of closed walks (defined as words). (Contributed by Alexander van der Vekens, 10-Apr-2018.) (Revised by Alexander van der Vekens, 14-Jun-2018.)
Hypotheses
Ref Expression
erclwwlkn.w  |-  W  =  ( ( V ClWWalksN  E ) `
 N )
erclwwlkn.r  |-  .~  =  { <. t ,  u >.  |  ( t  e.  W  /\  u  e.  W  /\  E. n  e.  ( 0 ... N
) t  =  ( u cyclShift  n ) ) }
Assertion
Ref Expression
erclwwlknsym  |-  ( x  .~  y  ->  y  .~  x )
Distinct variable groups:    t, E, u    t, N, u    n, V, t, u    t, W, u    x, n, t, u    n, N    y, n, t, u, x    n, W
Allowed substitution hints:    .~ ( x, y, u, t, n)    E( x, y, n)    N( x, y)    V( x, y)    W( x, y)

Proof of Theorem erclwwlknsym
Dummy variable  m is distinct from all other variables.
StepHypRef Expression
1 vex 3112 . 2  |-  x  e. 
_V
2 vex 3112 . 2  |-  y  e. 
_V
3 erclwwlkn.w . . . 4  |-  W  =  ( ( V ClWWalksN  E ) `
 N )
4 erclwwlkn.r . . . 4  |-  .~  =  { <. t ,  u >.  |  ( t  e.  W  /\  u  e.  W  /\  E. n  e.  ( 0 ... N
) t  =  ( u cyclShift  n ) ) }
53, 4erclwwlkneqlen 24951 . . 3  |-  ( ( x  e.  _V  /\  y  e.  _V )  ->  ( x  .~  y  ->  ( # `  x
)  =  ( # `  y ) ) )
63, 4erclwwlkneq 24950 . . . 4  |-  ( ( x  e.  _V  /\  y  e.  _V )  ->  ( x  .~  y  <->  ( x  e.  W  /\  y  e.  W  /\  E. n  e.  ( 0 ... N ) x  =  ( y cyclShift  n
) ) ) )
7 simpl2 1000 . . . . . . 7  |-  ( ( ( x  e.  W  /\  y  e.  W  /\  E. n  e.  ( 0 ... N ) x  =  ( y cyclShift  n ) )  /\  ( # `  x )  =  ( # `  y
) )  ->  y  e.  W )
8 simpl1 999 . . . . . . 7  |-  ( ( ( x  e.  W  /\  y  e.  W  /\  E. n  e.  ( 0 ... N ) x  =  ( y cyclShift  n ) )  /\  ( # `  x )  =  ( # `  y
) )  ->  x  e.  W )
9 clwwlknprop 24899 . . . . . . . . . . . . . . . . . . 19  |-  ( x  e.  ( ( V ClWWalksN  E ) `  N
)  ->  ( ( V  e.  _V  /\  E  e.  _V )  /\  x  e. Word  V  /\  ( N  e.  NN0  /\  ( # `
 x )  =  N ) ) )
10 eqcom 2466 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( (
# `  x )  =  N  <->  N  =  ( # `
 x ) )
1110biimpi 194 . . . . . . . . . . . . . . . . . . . . 21  |-  ( (
# `  x )  =  N  ->  N  =  ( # `  x
) )
1211adantl 466 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( N  e.  NN0  /\  ( # `  x )  =  N )  ->  N  =  ( # `  x
) )
13123ad2ant3 1019 . . . . . . . . . . . . . . . . . . 19  |-  ( ( ( V  e.  _V  /\  E  e.  _V )  /\  x  e. Word  V  /\  ( N  e.  NN0  /\  ( # `  x
)  =  N ) )  ->  N  =  ( # `  x ) )
149, 13syl 16 . . . . . . . . . . . . . . . . . 18  |-  ( x  e.  ( ( V ClWWalksN  E ) `  N
)  ->  N  =  ( # `  x ) )
1514, 3eleq2s 2565 . . . . . . . . . . . . . . . . 17  |-  ( x  e.  W  ->  N  =  ( # `  x
) )
1615adantr 465 . . . . . . . . . . . . . . . 16  |-  ( ( x  e.  W  /\  y  e.  W )  ->  N  =  ( # `  x ) )
1716adantr 465 . . . . . . . . . . . . . . 15  |-  ( ( ( x  e.  W  /\  y  e.  W
)  /\  ( # `  x
)  =  ( # `  y ) )  ->  N  =  ( # `  x
) )
18 clwwlknprop 24899 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( y  e.  ( ( V ClWWalksN  E ) `  N
)  ->  ( ( V  e.  _V  /\  E  e.  _V )  /\  y  e. Word  V  /\  ( N  e.  NN0  /\  ( # `
 y )  =  N ) ) )
1918simp2d 1009 . . . . . . . . . . . . . . . . . . . . 21  |-  ( y  e.  ( ( V ClWWalksN  E ) `  N
)  ->  y  e. Word  V )
2019, 3eleq2s 2565 . . . . . . . . . . . . . . . . . . . 20  |-  ( y  e.  W  ->  y  e. Word  V )
2120adantl 466 . . . . . . . . . . . . . . . . . . 19  |-  ( ( x  e.  W  /\  y  e.  W )  ->  y  e. Word  V )
2221adantr 465 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( x  e.  W  /\  y  e.  W
)  /\  ( # `  x
)  =  ( # `  y ) )  -> 
y  e. Word  V )
2322adantl 466 . . . . . . . . . . . . . . . . 17  |-  ( ( N  =  ( # `  x )  /\  (
( x  e.  W  /\  y  e.  W
)  /\  ( # `  x
)  =  ( # `  y ) ) )  ->  y  e. Word  V
)
24 simprr 757 . . . . . . . . . . . . . . . . 17  |-  ( ( N  =  ( # `  x )  /\  (
( x  e.  W  /\  y  e.  W
)  /\  ( # `  x
)  =  ( # `  y ) ) )  ->  ( # `  x
)  =  ( # `  y ) )
2523, 24cshwcshid 12807 . . . . . . . . . . . . . . . 16  |-  ( ( N  =  ( # `  x )  /\  (
( x  e.  W  /\  y  e.  W
)  /\  ( # `  x
)  =  ( # `  y ) ) )  ->  ( ( n  e.  ( 0 ... ( # `  y
) )  /\  x  =  ( y cyclShift  n
) )  ->  E. m  e.  ( 0 ... ( # `
 x ) ) y  =  ( x cyclShift  m ) ) )
26 oveq2 6304 . . . . . . . . . . . . . . . . . . 19  |-  ( N  =  ( # `  x
)  ->  ( 0 ... N )  =  ( 0 ... ( # `
 x ) ) )
27 oveq2 6304 . . . . . . . . . . . . . . . . . . . 20  |-  ( (
# `  x )  =  ( # `  y
)  ->  ( 0 ... ( # `  x
) )  =  ( 0 ... ( # `  y ) ) )
2827adantl 466 . . . . . . . . . . . . . . . . . . 19  |-  ( ( ( x  e.  W  /\  y  e.  W
)  /\  ( # `  x
)  =  ( # `  y ) )  -> 
( 0 ... ( # `
 x ) )  =  ( 0 ... ( # `  y
) ) )
2926, 28sylan9eq 2518 . . . . . . . . . . . . . . . . . 18  |-  ( ( N  =  ( # `  x )  /\  (
( x  e.  W  /\  y  e.  W
)  /\  ( # `  x
)  =  ( # `  y ) ) )  ->  ( 0 ... N )  =  ( 0 ... ( # `  y ) ) )
3029eleq2d 2527 . . . . . . . . . . . . . . . . 17  |-  ( ( N  =  ( # `  x )  /\  (
( x  e.  W  /\  y  e.  W
)  /\  ( # `  x
)  =  ( # `  y ) ) )  ->  ( n  e.  ( 0 ... N
)  <->  n  e.  (
0 ... ( # `  y
) ) ) )
3130anbi1d 704 . . . . . . . . . . . . . . . 16  |-  ( ( N  =  ( # `  x )  /\  (
( x  e.  W  /\  y  e.  W
)  /\  ( # `  x
)  =  ( # `  y ) ) )  ->  ( ( n  e.  ( 0 ... N )  /\  x  =  ( y cyclShift  n
) )  <->  ( n  e.  ( 0 ... ( # `
 y ) )  /\  x  =  ( y cyclShift  n ) ) ) )
3226adantr 465 . . . . . . . . . . . . . . . . 17  |-  ( ( N  =  ( # `  x )  /\  (
( x  e.  W  /\  y  e.  W
)  /\  ( # `  x
)  =  ( # `  y ) ) )  ->  ( 0 ... N )  =  ( 0 ... ( # `  x ) ) )
3332rexeqdv 3061 . . . . . . . . . . . . . . . 16  |-  ( ( N  =  ( # `  x )  /\  (
( x  e.  W  /\  y  e.  W
)  /\  ( # `  x
)  =  ( # `  y ) ) )  ->  ( E. m  e.  ( 0 ... N
) y  =  ( x cyclShift  m )  <->  E. m  e.  ( 0 ... ( # `
 x ) ) y  =  ( x cyclShift  m ) ) )
3425, 31, 333imtr4d 268 . . . . . . . . . . . . . . 15  |-  ( ( N  =  ( # `  x )  /\  (
( x  e.  W  /\  y  e.  W
)  /\  ( # `  x
)  =  ( # `  y ) ) )  ->  ( ( n  e.  ( 0 ... N )  /\  x  =  ( y cyclShift  n
) )  ->  E. m  e.  ( 0 ... N
) y  =  ( x cyclShift  m ) ) )
3517, 34mpancom 669 . . . . . . . . . . . . . 14  |-  ( ( ( x  e.  W  /\  y  e.  W
)  /\  ( # `  x
)  =  ( # `  y ) )  -> 
( ( n  e.  ( 0 ... N
)  /\  x  =  ( y cyclShift  n ) )  ->  E. m  e.  ( 0 ... N ) y  =  ( x cyclShift  m ) ) )
3635expd 436 . . . . . . . . . . . . 13  |-  ( ( ( x  e.  W  /\  y  e.  W
)  /\  ( # `  x
)  =  ( # `  y ) )  -> 
( n  e.  ( 0 ... N )  ->  ( x  =  ( y cyclShift  n )  ->  E. m  e.  ( 0 ... N ) y  =  ( x cyclShift  m ) ) ) )
3736rexlimdv 2947 . . . . . . . . . . . 12  |-  ( ( ( x  e.  W  /\  y  e.  W
)  /\  ( # `  x
)  =  ( # `  y ) )  -> 
( E. n  e.  ( 0 ... N
) x  =  ( y cyclShift  n )  ->  E. m  e.  ( 0 ... N
) y  =  ( x cyclShift  m ) ) )
3837ex 434 . . . . . . . . . . 11  |-  ( ( x  e.  W  /\  y  e.  W )  ->  ( ( # `  x
)  =  ( # `  y )  ->  ( E. n  e.  (
0 ... N ) x  =  ( y cyclShift  n
)  ->  E. m  e.  ( 0 ... N
) y  =  ( x cyclShift  m ) ) ) )
3938com23 78 . . . . . . . . . 10  |-  ( ( x  e.  W  /\  y  e.  W )  ->  ( E. n  e.  ( 0 ... N
) x  =  ( y cyclShift  n )  ->  (
( # `  x )  =  ( # `  y
)  ->  E. m  e.  ( 0 ... N
) y  =  ( x cyclShift  m ) ) ) )
40393impia 1193 . . . . . . . . 9  |-  ( ( x  e.  W  /\  y  e.  W  /\  E. n  e.  ( 0 ... N ) x  =  ( y cyclShift  n
) )  ->  (
( # `  x )  =  ( # `  y
)  ->  E. m  e.  ( 0 ... N
) y  =  ( x cyclShift  m ) ) )
4140imp 429 . . . . . . . 8  |-  ( ( ( x  e.  W  /\  y  e.  W  /\  E. n  e.  ( 0 ... N ) x  =  ( y cyclShift  n ) )  /\  ( # `  x )  =  ( # `  y
) )  ->  E. m  e.  ( 0 ... N
) y  =  ( x cyclShift  m ) )
42 oveq2 6304 . . . . . . . . . 10  |-  ( n  =  m  ->  (
x cyclShift  n )  =  ( x cyclShift  m ) )
4342eqeq2d 2471 . . . . . . . . 9  |-  ( n  =  m  ->  (
y  =  ( x cyclShift  n )  <->  y  =  ( x cyclShift  m ) ) )
4443cbvrexv 3085 . . . . . . . 8  |-  ( E. n  e.  ( 0 ... N ) y  =  ( x cyclShift  n
)  <->  E. m  e.  ( 0 ... N ) y  =  ( x cyclShift  m ) )
4541, 44sylibr 212 . . . . . . 7  |-  ( ( ( x  e.  W  /\  y  e.  W  /\  E. n  e.  ( 0 ... N ) x  =  ( y cyclShift  n ) )  /\  ( # `  x )  =  ( # `  y
) )  ->  E. n  e.  ( 0 ... N
) y  =  ( x cyclShift  n ) )
467, 8, 453jca 1176 . . . . . 6  |-  ( ( ( x  e.  W  /\  y  e.  W  /\  E. n  e.  ( 0 ... N ) x  =  ( y cyclShift  n ) )  /\  ( # `  x )  =  ( # `  y
) )  ->  (
y  e.  W  /\  x  e.  W  /\  E. n  e.  ( 0 ... N ) y  =  ( x cyclShift  n
) ) )
473, 4erclwwlkneq 24950 . . . . . . 7  |-  ( ( y  e.  _V  /\  x  e.  _V )  ->  ( y  .~  x  <->  ( y  e.  W  /\  x  e.  W  /\  E. n  e.  ( 0 ... N ) y  =  ( x cyclShift  n
) ) ) )
4847ancoms 453 . . . . . 6  |-  ( ( x  e.  _V  /\  y  e.  _V )  ->  ( y  .~  x  <->  ( y  e.  W  /\  x  e.  W  /\  E. n  e.  ( 0 ... N ) y  =  ( x cyclShift  n
) ) ) )
4946, 48syl5ibr 221 . . . . 5  |-  ( ( x  e.  _V  /\  y  e.  _V )  ->  ( ( ( x  e.  W  /\  y  e.  W  /\  E. n  e.  ( 0 ... N
) x  =  ( y cyclShift  n ) )  /\  ( # `  x )  =  ( # `  y
) )  ->  y  .~  x ) )
5049expd 436 . . . 4  |-  ( ( x  e.  _V  /\  y  e.  _V )  ->  ( ( x  e.  W  /\  y  e.  W  /\  E. n  e.  ( 0 ... N
) x  =  ( y cyclShift  n ) )  -> 
( ( # `  x
)  =  ( # `  y )  ->  y  .~  x ) ) )
516, 50sylbid 215 . . 3  |-  ( ( x  e.  _V  /\  y  e.  _V )  ->  ( x  .~  y  ->  ( ( # `  x
)  =  ( # `  y )  ->  y  .~  x ) ) )
525, 51mpdd 40 . 2  |-  ( ( x  e.  _V  /\  y  e.  _V )  ->  ( x  .~  y  ->  y  .~  x ) )
531, 2, 52mp2an 672 1  |-  ( x  .~  y  ->  y  .~  x )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    <-> wb 184    /\ wa 369    /\ w3a 973    = wceq 1395    e. wcel 1819   E.wrex 2808   _Vcvv 3109   class class class wbr 4456   {copab 4514   ` cfv 5594  (class class class)co 6296   0cc0 9509   NN0cn0 10816   ...cfz 11697   #chash 12408  Word cword 12538   cyclShift ccsh 12771   ClWWalksN cclwwlkn 24876
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1619  ax-4 1632  ax-5 1705  ax-6 1748  ax-7 1791  ax-8 1821  ax-9 1823  ax-10 1838  ax-11 1843  ax-12 1855  ax-13 2000  ax-ext 2435  ax-rep 4568  ax-sep 4578  ax-nul 4586  ax-pow 4634  ax-pr 4695  ax-un 6591  ax-cnex 9565  ax-resscn 9566  ax-1cn 9567  ax-icn 9568  ax-addcl 9569  ax-addrcl 9570  ax-mulcl 9571  ax-mulrcl 9572  ax-mulcom 9573  ax-addass 9574  ax-mulass 9575  ax-distr 9576  ax-i2m1 9577  ax-1ne0 9578  ax-1rid 9579  ax-rnegex 9580  ax-rrecex 9581  ax-cnre 9582  ax-pre-lttri 9583  ax-pre-lttrn 9584  ax-pre-ltadd 9585  ax-pre-mulgt0 9586  ax-pre-sup 9587
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 974  df-3an 975  df-tru 1398  df-ex 1614  df-nf 1618  df-sb 1741  df-eu 2287  df-mo 2288  df-clab 2443  df-cleq 2449  df-clel 2452  df-nfc 2607  df-ne 2654  df-nel 2655  df-ral 2812  df-rex 2813  df-reu 2814  df-rmo 2815  df-rab 2816  df-v 3111  df-sbc 3328  df-csb 3431  df-dif 3474  df-un 3476  df-in 3478  df-ss 3485  df-pss 3487  df-nul 3794  df-if 3945  df-pw 4017  df-sn 4033  df-pr 4035  df-tp 4037  df-op 4039  df-uni 4252  df-int 4289  df-iun 4334  df-br 4457  df-opab 4516  df-mpt 4517  df-tr 4551  df-eprel 4800  df-id 4804  df-po 4809  df-so 4810  df-fr 4847  df-we 4849  df-ord 4890  df-on 4891  df-lim 4892  df-suc 4893  df-xp 5014  df-rel 5015  df-cnv 5016  df-co 5017  df-dm 5018  df-rn 5019  df-res 5020  df-ima 5021  df-iota 5557  df-fun 5596  df-fn 5597  df-f 5598  df-f1 5599  df-fo 5600  df-f1o 5601  df-fv 5602  df-riota 6258  df-ov 6299  df-oprab 6300  df-mpt2 6301  df-om 6700  df-1st 6799  df-2nd 6800  df-recs 7060  df-rdg 7094  df-1o 7148  df-oadd 7152  df-er 7329  df-map 7440  df-pm 7441  df-en 7536  df-dom 7537  df-sdom 7538  df-fin 7539  df-sup 7919  df-card 8337  df-cda 8565  df-pnf 9647  df-mnf 9648  df-xr 9649  df-ltxr 9650  df-le 9651  df-sub 9826  df-neg 9827  df-div 10228  df-nn 10557  df-2 10615  df-n0 10817  df-z 10886  df-uz 11107  df-rp 11246  df-fz 11698  df-fzo 11822  df-fl 11932  df-mod 12000  df-hash 12409  df-word 12546  df-concat 12548  df-substr 12550  df-csh 12772  df-clwwlk 24878  df-clwwlkn 24879
This theorem is referenced by:  erclwwlkn  24955  eclclwwlkn1  24959
  Copyright terms: Public domain W3C validator