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

Theorem efgred 15380
Description: The reduced word that forms the base of the sequence in efgsval 15363 is uniquely determined, given the terminal point. (Contributed by Mario Carneiro, 28-Sep-2015.)
Hypotheses
Ref Expression
efgval.w  |-  W  =  (  _I  ` Word  ( I  X.  2o ) )
efgval.r  |-  .~  =  ( ~FG  `  I )
efgval2.m  |-  M  =  ( y  e.  I ,  z  e.  2o  |->  <. y ,  ( 1o 
\  z ) >.
)
efgval2.t  |-  T  =  ( v  e.  W  |->  ( n  e.  ( 0 ... ( # `  v ) ) ,  w  e.  ( I  X.  2o )  |->  ( v splice  <. n ,  n ,  <" w ( M `  w ) "> >. )
) )
efgred.d  |-  D  =  ( W  \  U_ x  e.  W  ran  ( T `  x ) )
efgred.s  |-  S  =  ( m  e.  {
t  e.  (Word  W  \  { (/) } )  |  ( ( t ` 
0 )  e.  D  /\  A. k  e.  ( 1..^ ( # `  t
) ) ( t `
 k )  e. 
ran  ( T `  ( t `  (
k  -  1 ) ) ) ) } 
|->  ( m `  (
( # `  m )  -  1 ) ) )
Assertion
Ref Expression
efgred  |-  ( ( A  e.  dom  S  /\  B  e.  dom  S  /\  ( S `  A )  =  ( S `  B ) )  ->  ( A `  0 )  =  ( B `  0
) )
Distinct variable groups:    y, z    t, n, v, w, y, z, m, x    m, M    x, n, M, t, v, w    k, m, t, x, T    k, n, v, w, y, z, W, m, t, x    .~ , m, t, x, y, z    m, I, n, t, v, w, x, y, z    D, m, t
Allowed substitution hints:    A( x, y, z, w, v, t, k, m, n)    B( x, y, z, w, v, t, k, m, n)    D( x, y, z, w, v, k, n)    .~ ( w, v, k, n)    S( x, y, z, w, v, t, k, m, n)    T( y, z, w, v, n)    I( k)    M( y, z, k)

Proof of Theorem efgred
Dummy variables  a 
b  c  d  i are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 efgval.w . . . . . . . 8  |-  W  =  (  _I  ` Word  ( I  X.  2o ) )
2 fviss 5784 . . . . . . . 8  |-  (  _I 
` Word  ( I  X.  2o ) )  C_ Word  ( I  X.  2o )
31, 2eqsstri 3378 . . . . . . 7  |-  W  C_ Word  ( I  X.  2o )
4 efgval.r . . . . . . . . . . 11  |-  .~  =  ( ~FG  `  I )
5 efgval2.m . . . . . . . . . . 11  |-  M  =  ( y  e.  I ,  z  e.  2o  |->  <. y ,  ( 1o 
\  z ) >.
)
6 efgval2.t . . . . . . . . . . 11  |-  T  =  ( v  e.  W  |->  ( n  e.  ( 0 ... ( # `  v ) ) ,  w  e.  ( I  X.  2o )  |->  ( v splice  <. n ,  n ,  <" w ( M `  w ) "> >. )
) )
7 efgred.d . . . . . . . . . . 11  |-  D  =  ( W  \  U_ x  e.  W  ran  ( T `  x ) )
8 efgred.s . . . . . . . . . . 11  |-  S  =  ( m  e.  {
t  e.  (Word  W  \  { (/) } )  |  ( ( t ` 
0 )  e.  D  /\  A. k  e.  ( 1..^ ( # `  t
) ) ( t `
 k )  e. 
ran  ( T `  ( t `  (
k  -  1 ) ) ) ) } 
|->  ( m `  (
( # `  m )  -  1 ) ) )
91, 4, 5, 6, 7, 8efgsf 15361 . . . . . . . . . 10  |-  S : { t  e.  (Word 
W  \  { (/) } )  |  ( ( t `
 0 )  e.  D  /\  A. k  e.  ( 1..^ ( # `  t ) ) ( t `  k )  e.  ran  ( T `
 ( t `  ( k  -  1 ) ) ) ) } --> W
109fdmi 5596 . . . . . . . . . . 11  |-  dom  S  =  { t  e.  (Word 
W  \  { (/) } )  |  ( ( t `
 0 )  e.  D  /\  A. k  e.  ( 1..^ ( # `  t ) ) ( t `  k )  e.  ran  ( T `
 ( t `  ( k  -  1 ) ) ) ) }
1110feq2i 5586 . . . . . . . . . 10  |-  ( S : dom  S --> W  <->  S : { t  e.  (Word 
W  \  { (/) } )  |  ( ( t `
 0 )  e.  D  /\  A. k  e.  ( 1..^ ( # `  t ) ) ( t `  k )  e.  ran  ( T `
 ( t `  ( k  -  1 ) ) ) ) } --> W )
129, 11mpbir 201 . . . . . . . . 9  |-  S : dom  S --> W
1312ffvelrni 5869 . . . . . . . 8  |-  ( A  e.  dom  S  -> 
( S `  A
)  e.  W )
1413adantr 452 . . . . . . 7  |-  ( ( A  e.  dom  S  /\  B  e.  dom  S )  ->  ( S `  A )  e.  W
)
153, 14sseldi 3346 . . . . . 6  |-  ( ( A  e.  dom  S  /\  B  e.  dom  S )  ->  ( S `  A )  e. Word  (
I  X.  2o ) )
16 lencl 11735 . . . . . 6  |-  ( ( S `  A )  e. Word  ( I  X.  2o )  ->  ( # `  ( S `  A
) )  e.  NN0 )
1715, 16syl 16 . . . . 5  |-  ( ( A  e.  dom  S  /\  B  e.  dom  S )  ->  ( # `  ( S `  A )
)  e.  NN0 )
18 peano2nn0 10260 . . . . 5  |-  ( (
# `  ( S `  A ) )  e. 
NN0  ->  ( ( # `  ( S `  A
) )  +  1 )  e.  NN0 )
1917, 18syl 16 . . . 4  |-  ( ( A  e.  dom  S  /\  B  e.  dom  S )  ->  ( ( # `
 ( S `  A ) )  +  1 )  e.  NN0 )
20 breq2 4216 . . . . . . 7  |-  ( c  =  0  ->  (
( # `  ( S `
 a ) )  <  c  <->  ( # `  ( S `  a )
)  <  0 ) )
2120imbi1d 309 . . . . . 6  |-  ( c  =  0  ->  (
( ( # `  ( S `  a )
)  <  c  ->  ( ( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) )  <->  ( ( # `  ( S `  a
) )  <  0  ->  ( ( S `  a )  =  ( S `  b )  ->  ( a ` 
0 )  =  ( b `  0 ) ) ) ) )
22212ralbidv 2747 . . . . 5  |-  ( c  =  0  ->  ( A. a  e.  dom  S A. b  e.  dom  S ( ( # `  ( S `  a )
)  <  c  ->  ( ( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) )  <->  A. a  e.  dom  S A. b  e.  dom  S ( ( # `  ( S `  a )
)  <  0  ->  ( ( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) ) ) )
23 breq2 4216 . . . . . . 7  |-  ( c  =  i  ->  (
( # `  ( S `
 a ) )  <  c  <->  ( # `  ( S `  a )
)  <  i )
)
2423imbi1d 309 . . . . . 6  |-  ( c  =  i  ->  (
( ( # `  ( S `  a )
)  <  c  ->  ( ( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) )  <->  ( ( # `  ( S `  a
) )  <  i  ->  ( ( S `  a )  =  ( S `  b )  ->  ( a ` 
0 )  =  ( b `  0 ) ) ) ) )
25242ralbidv 2747 . . . . 5  |-  ( c  =  i  ->  ( A. a  e.  dom  S A. b  e.  dom  S ( ( # `  ( S `  a )
)  <  c  ->  ( ( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) )  <->  A. a  e.  dom  S A. b  e.  dom  S ( ( # `  ( S `  a )
)  <  i  ->  ( ( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) ) ) )
26 breq2 4216 . . . . . . 7  |-  ( c  =  ( i  +  1 )  ->  (
( # `  ( S `
 a ) )  <  c  <->  ( # `  ( S `  a )
)  <  ( i  +  1 ) ) )
2726imbi1d 309 . . . . . 6  |-  ( c  =  ( i  +  1 )  ->  (
( ( # `  ( S `  a )
)  <  c  ->  ( ( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) )  <->  ( ( # `  ( S `  a
) )  <  (
i  +  1 )  ->  ( ( S `
 a )  =  ( S `  b
)  ->  ( a `  0 )  =  ( b `  0
) ) ) ) )
28272ralbidv 2747 . . . . 5  |-  ( c  =  ( i  +  1 )  ->  ( A. a  e.  dom  S A. b  e.  dom  S ( ( # `  ( S `  a )
)  <  c  ->  ( ( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) )  <->  A. a  e.  dom  S A. b  e.  dom  S ( ( # `  ( S `  a )
)  <  ( i  +  1 )  -> 
( ( S `  a )  =  ( S `  b )  ->  ( a ` 
0 )  =  ( b `  0 ) ) ) ) )
29 breq2 4216 . . . . . . 7  |-  ( c  =  ( ( # `  ( S `  A
) )  +  1 )  ->  ( ( # `
 ( S `  a ) )  < 
c  <->  ( # `  ( S `  a )
)  <  ( ( # `
 ( S `  A ) )  +  1 ) ) )
3029imbi1d 309 . . . . . 6  |-  ( c  =  ( ( # `  ( S `  A
) )  +  1 )  ->  ( (
( # `  ( S `
 a ) )  <  c  ->  (
( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) )  <->  ( ( # `  ( S `  a
) )  <  (
( # `  ( S `
 A ) )  +  1 )  -> 
( ( S `  a )  =  ( S `  b )  ->  ( a ` 
0 )  =  ( b `  0 ) ) ) ) )
31302ralbidv 2747 . . . . 5  |-  ( c  =  ( ( # `  ( S `  A
) )  +  1 )  ->  ( A. a  e.  dom  S A. b  e.  dom  S ( ( # `  ( S `  a )
)  <  c  ->  ( ( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) )  <->  A. a  e.  dom  S A. b  e.  dom  S ( ( # `  ( S `  a )
)  <  ( ( # `
 ( S `  A ) )  +  1 )  ->  (
( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) ) ) )
3212ffvelrni 5869 . . . . . . . . . . 11  |-  ( a  e.  dom  S  -> 
( S `  a
)  e.  W )
333, 32sseldi 3346 . . . . . . . . . 10  |-  ( a  e.  dom  S  -> 
( S `  a
)  e. Word  ( I  X.  2o ) )
34 lencl 11735 . . . . . . . . . 10  |-  ( ( S `  a )  e. Word  ( I  X.  2o )  ->  ( # `  ( S `  a
) )  e.  NN0 )
3533, 34syl 16 . . . . . . . . 9  |-  ( a  e.  dom  S  -> 
( # `  ( S `
 a ) )  e.  NN0 )
36 nn0nlt0 10248 . . . . . . . . 9  |-  ( (
# `  ( S `  a ) )  e. 
NN0  ->  -.  ( # `  ( S `  a )
)  <  0 )
3735, 36syl 16 . . . . . . . 8  |-  ( a  e.  dom  S  ->  -.  ( # `  ( S `  a )
)  <  0 )
3837pm2.21d 100 . . . . . . 7  |-  ( a  e.  dom  S  -> 
( ( # `  ( S `  a )
)  <  0  ->  ( ( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) ) )
3938adantr 452 . . . . . 6  |-  ( ( a  e.  dom  S  /\  b  e.  dom  S )  ->  ( ( # `
 ( S `  a ) )  <  0  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) ) )
4039rgen2a 2772 . . . . 5  |-  A. a  e.  dom  S A. b  e.  dom  S ( (
# `  ( S `  a ) )  <  0  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) )
41 simpl1 960 . . . . . . . . . . . . . 14  |-  ( ( ( A. a  e. 
dom  S A. b  e.  dom  S ( (
# `  ( S `  a ) )  < 
i  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) )  /\  ( c  e. 
dom  S  /\  d  e.  dom  S )  /\  ( ( # `  ( S `  c )
)  =  i  /\  ( S `  c )  =  ( S `  d ) ) )  /\  -.  ( c `
 0 )  =  ( d `  0
) )  ->  A. a  e.  dom  S A. b  e.  dom  S ( (
# `  ( S `  a ) )  < 
i  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) ) )
42 simpl3l 1012 . . . . . . . . . . . . . . 15  |-  ( ( ( A. a  e. 
dom  S A. b  e.  dom  S ( (
# `  ( S `  a ) )  < 
i  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) )  /\  ( c  e. 
dom  S  /\  d  e.  dom  S )  /\  ( ( # `  ( S `  c )
)  =  i  /\  ( S `  c )  =  ( S `  d ) ) )  /\  -.  ( c `
 0 )  =  ( d `  0
) )  ->  ( # `
 ( S `  c ) )  =  i )
43 breq2 4216 . . . . . . . . . . . . . . . . 17  |-  ( (
# `  ( S `  c ) )  =  i  ->  ( ( # `
 ( S `  a ) )  < 
( # `  ( S `
 c ) )  <-> 
( # `  ( S `
 a ) )  <  i ) )
4443imbi1d 309 . . . . . . . . . . . . . . . 16  |-  ( (
# `  ( S `  c ) )  =  i  ->  ( (
( # `  ( S `
 a ) )  <  ( # `  ( S `  c )
)  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) )  <-> 
( ( # `  ( S `  a )
)  <  i  ->  ( ( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) ) ) )
45442ralbidv 2747 . . . . . . . . . . . . . . 15  |-  ( (
# `  ( S `  c ) )  =  i  ->  ( A. a  e.  dom  S A. b  e.  dom  S ( ( # `  ( S `  a )
)  <  ( # `  ( S `  c )
)  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) )  <->  A. a  e.  dom  S A. b  e.  dom  S ( ( # `  ( S `  a )
)  <  i  ->  ( ( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) ) ) )
4642, 45syl 16 . . . . . . . . . . . . . 14  |-  ( ( ( A. a  e. 
dom  S A. b  e.  dom  S ( (
# `  ( S `  a ) )  < 
i  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) )  /\  ( c  e. 
dom  S  /\  d  e.  dom  S )  /\  ( ( # `  ( S `  c )
)  =  i  /\  ( S `  c )  =  ( S `  d ) ) )  /\  -.  ( c `
 0 )  =  ( d `  0
) )  ->  ( A. a  e.  dom  S A. b  e.  dom  S ( ( # `  ( S `  a )
)  <  ( # `  ( S `  c )
)  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) )  <->  A. a  e.  dom  S A. b  e.  dom  S ( ( # `  ( S `  a )
)  <  i  ->  ( ( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) ) ) )
4741, 46mpbird 224 . . . . . . . . . . . . 13  |-  ( ( ( A. a  e. 
dom  S A. b  e.  dom  S ( (
# `  ( S `  a ) )  < 
i  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) )  /\  ( c  e. 
dom  S  /\  d  e.  dom  S )  /\  ( ( # `  ( S `  c )
)  =  i  /\  ( S `  c )  =  ( S `  d ) ) )  /\  -.  ( c `
 0 )  =  ( d `  0
) )  ->  A. a  e.  dom  S A. b  e.  dom  S ( (
# `  ( S `  a ) )  < 
( # `  ( S `
 c ) )  ->  ( ( S `
 a )  =  ( S `  b
)  ->  ( a `  0 )  =  ( b `  0
) ) ) )
48 simpl2l 1010 . . . . . . . . . . . . 13  |-  ( ( ( A. a  e. 
dom  S A. b  e.  dom  S ( (
# `  ( S `  a ) )  < 
i  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) )  /\  ( c  e. 
dom  S  /\  d  e.  dom  S )  /\  ( ( # `  ( S `  c )
)  =  i  /\  ( S `  c )  =  ( S `  d ) ) )  /\  -.  ( c `
 0 )  =  ( d `  0
) )  ->  c  e.  dom  S )
49 simpl2r 1011 . . . . . . . . . . . . 13  |-  ( ( ( A. a  e. 
dom  S A. b  e.  dom  S ( (
# `  ( S `  a ) )  < 
i  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) )  /\  ( c  e. 
dom  S  /\  d  e.  dom  S )  /\  ( ( # `  ( S `  c )
)  =  i  /\  ( S `  c )  =  ( S `  d ) ) )  /\  -.  ( c `
 0 )  =  ( d `  0
) )  ->  d  e.  dom  S )
50 simpl3r 1013 . . . . . . . . . . . . 13  |-  ( ( ( A. a  e. 
dom  S A. b  e.  dom  S ( (
# `  ( S `  a ) )  < 
i  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) )  /\  ( c  e. 
dom  S  /\  d  e.  dom  S )  /\  ( ( # `  ( S `  c )
)  =  i  /\  ( S `  c )  =  ( S `  d ) ) )  /\  -.  ( c `
 0 )  =  ( d `  0
) )  ->  ( S `  c )  =  ( S `  d ) )
51 simpr 448 . . . . . . . . . . . . 13  |-  ( ( ( A. a  e. 
dom  S A. b  e.  dom  S ( (
# `  ( S `  a ) )  < 
i  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) )  /\  ( c  e. 
dom  S  /\  d  e.  dom  S )  /\  ( ( # `  ( S `  c )
)  =  i  /\  ( S `  c )  =  ( S `  d ) ) )  /\  -.  ( c `
 0 )  =  ( d `  0
) )  ->  -.  ( c `  0
)  =  ( d `
 0 ) )
521, 4, 5, 6, 7, 8, 47, 48, 49, 50, 51efgredlem 15379 . . . . . . . . . . . 12  |-  -.  (
( A. a  e. 
dom  S A. b  e.  dom  S ( (
# `  ( S `  a ) )  < 
i  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) )  /\  ( c  e. 
dom  S  /\  d  e.  dom  S )  /\  ( ( # `  ( S `  c )
)  =  i  /\  ( S `  c )  =  ( S `  d ) ) )  /\  -.  ( c `
 0 )  =  ( d `  0
) )
53 iman 414 . . . . . . . . . . . 12  |-  ( ( ( A. a  e. 
dom  S A. b  e.  dom  S ( (
# `  ( S `  a ) )  < 
i  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) )  /\  ( c  e. 
dom  S  /\  d  e.  dom  S )  /\  ( ( # `  ( S `  c )
)  =  i  /\  ( S `  c )  =  ( S `  d ) ) )  ->  ( c ` 
0 )  =  ( d `  0 ) )  <->  -.  ( ( A. a  e.  dom  S A. b  e.  dom  S ( ( # `  ( S `  a )
)  <  i  ->  ( ( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) )  /\  ( c  e.  dom  S  /\  d  e.  dom  S )  /\  ( ( # `  ( S `  c
) )  =  i  /\  ( S `  c )  =  ( S `  d ) ) )  /\  -.  ( c `  0
)  =  ( d `
 0 ) ) )
5452, 53mpbir 201 . . . . . . . . . . 11  |-  ( ( A. a  e.  dom  S A. b  e.  dom  S ( ( # `  ( S `  a )
)  <  i  ->  ( ( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) )  /\  ( c  e.  dom  S  /\  d  e.  dom  S )  /\  ( ( # `  ( S `  c
) )  =  i  /\  ( S `  c )  =  ( S `  d ) ) )  ->  (
c `  0 )  =  ( d ` 
0 ) )
55543expia 1155 . . . . . . . . . 10  |-  ( ( A. a  e.  dom  S A. b  e.  dom  S ( ( # `  ( S `  a )
)  <  i  ->  ( ( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) )  /\  ( c  e.  dom  S  /\  d  e.  dom  S ) )  ->  ( (
( # `  ( S `
 c ) )  =  i  /\  ( S `  c )  =  ( S `  d ) )  -> 
( c `  0
)  =  ( d `
 0 ) ) )
5655exp3a 426 . . . . . . . . 9  |-  ( ( A. a  e.  dom  S A. b  e.  dom  S ( ( # `  ( S `  a )
)  <  i  ->  ( ( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) )  /\  ( c  e.  dom  S  /\  d  e.  dom  S ) )  ->  ( ( # `
 ( S `  c ) )  =  i  ->  ( ( S `  c )  =  ( S `  d )  ->  (
c `  0 )  =  ( d ` 
0 ) ) ) )
5756ralrimivva 2798 . . . . . . . 8  |-  ( A. a  e.  dom  S A. b  e.  dom  S ( ( # `  ( S `  a )
)  <  i  ->  ( ( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) )  ->  A. c  e.  dom  S A. d  e.  dom  S ( (
# `  ( S `  c ) )  =  i  ->  ( ( S `  c )  =  ( S `  d )  ->  (
c `  0 )  =  ( d ` 
0 ) ) ) )
58 fveq2 5728 . . . . . . . . . . . 12  |-  ( c  =  a  ->  ( S `  c )  =  ( S `  a ) )
5958fveq2d 5732 . . . . . . . . . . 11  |-  ( c  =  a  ->  ( # `
 ( S `  c ) )  =  ( # `  ( S `  a )
) )
6059eqeq1d 2444 . . . . . . . . . 10  |-  ( c  =  a  ->  (
( # `  ( S `
 c ) )  =  i  <->  ( # `  ( S `  a )
)  =  i ) )
6158eqeq1d 2444 . . . . . . . . . . 11  |-  ( c  =  a  ->  (
( S `  c
)  =  ( S `
 d )  <->  ( S `  a )  =  ( S `  d ) ) )
62 fveq1 5727 . . . . . . . . . . . 12  |-  ( c  =  a  ->  (
c `  0 )  =  ( a ` 
0 ) )
6362eqeq1d 2444 . . . . . . . . . . 11  |-  ( c  =  a  ->  (
( c `  0
)  =  ( d `
 0 )  <->  ( a `  0 )  =  ( d `  0
) ) )
6461, 63imbi12d 312 . . . . . . . . . 10  |-  ( c  =  a  ->  (
( ( S `  c )  =  ( S `  d )  ->  ( c ` 
0 )  =  ( d `  0 ) )  <->  ( ( S `
 a )  =  ( S `  d
)  ->  ( a `  0 )  =  ( d `  0
) ) ) )
6560, 64imbi12d 312 . . . . . . . . 9  |-  ( c  =  a  ->  (
( ( # `  ( S `  c )
)  =  i  -> 
( ( S `  c )  =  ( S `  d )  ->  ( c ` 
0 )  =  ( d `  0 ) ) )  <->  ( ( # `
 ( S `  a ) )  =  i  ->  ( ( S `  a )  =  ( S `  d )  ->  (
a `  0 )  =  ( d ` 
0 ) ) ) ) )
66 fveq2 5728 . . . . . . . . . . . 12  |-  ( d  =  b  ->  ( S `  d )  =  ( S `  b ) )
6766eqeq2d 2447 . . . . . . . . . . 11  |-  ( d  =  b  ->  (
( S `  a
)  =  ( S `
 d )  <->  ( S `  a )  =  ( S `  b ) ) )
68 fveq1 5727 . . . . . . . . . . . 12  |-  ( d  =  b  ->  (
d `  0 )  =  ( b ` 
0 ) )
6968eqeq2d 2447 . . . . . . . . . . 11  |-  ( d  =  b  ->  (
( a `  0
)  =  ( d `
 0 )  <->  ( a `  0 )  =  ( b `  0
) ) )
7067, 69imbi12d 312 . . . . . . . . . 10  |-  ( d  =  b  ->  (
( ( S `  a )  =  ( S `  d )  ->  ( a ` 
0 )  =  ( d `  0 ) )  <->  ( ( S `
 a )  =  ( S `  b
)  ->  ( a `  0 )  =  ( b `  0
) ) ) )
7170imbi2d 308 . . . . . . . . 9  |-  ( d  =  b  ->  (
( ( # `  ( S `  a )
)  =  i  -> 
( ( S `  a )  =  ( S `  d )  ->  ( a ` 
0 )  =  ( d `  0 ) ) )  <->  ( ( # `
 ( S `  a ) )  =  i  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) ) ) )
7265, 71cbvral2v 2940 . . . . . . . 8  |-  ( A. c  e.  dom  S A. d  e.  dom  S ( ( # `  ( S `  c )
)  =  i  -> 
( ( S `  c )  =  ( S `  d )  ->  ( c ` 
0 )  =  ( d `  0 ) ) )  <->  A. a  e.  dom  S A. b  e.  dom  S ( (
# `  ( S `  a ) )  =  i  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) ) )
7357, 72sylib 189 . . . . . . 7  |-  ( A. a  e.  dom  S A. b  e.  dom  S ( ( # `  ( S `  a )
)  <  i  ->  ( ( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) )  ->  A. a  e.  dom  S A. b  e.  dom  S ( (
# `  ( S `  a ) )  =  i  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) ) )
7473ancli 535 . . . . . 6  |-  ( A. a  e.  dom  S A. b  e.  dom  S ( ( # `  ( S `  a )
)  <  i  ->  ( ( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) )  ->  ( A. a  e.  dom  S A. b  e.  dom  S ( ( # `  ( S `  a )
)  <  i  ->  ( ( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) )  /\  A. a  e.  dom  S A. b  e.  dom  S ( (
# `  ( S `  a ) )  =  i  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) ) ) )
7535adantr 452 . . . . . . . . . . 11  |-  ( ( a  e.  dom  S  /\  b  e.  dom  S )  ->  ( # `  ( S `  a )
)  e.  NN0 )
76 nn0leltp1 10333 . . . . . . . . . . . . 13  |-  ( ( ( # `  ( S `  a )
)  e.  NN0  /\  i  e.  NN0 )  -> 
( ( # `  ( S `  a )
)  <_  i  <->  ( # `  ( S `  a )
)  <  ( i  +  1 ) ) )
77 nn0re 10230 . . . . . . . . . . . . . 14  |-  ( (
# `  ( S `  a ) )  e. 
NN0  ->  ( # `  ( S `  a )
)  e.  RR )
78 nn0re 10230 . . . . . . . . . . . . . 14  |-  ( i  e.  NN0  ->  i  e.  RR )
79 leloe 9161 . . . . . . . . . . . . . 14  |-  ( ( ( # `  ( S `  a )
)  e.  RR  /\  i  e.  RR )  ->  ( ( # `  ( S `  a )
)  <_  i  <->  ( ( # `
 ( S `  a ) )  < 
i  \/  ( # `  ( S `  a
) )  =  i ) ) )
8077, 78, 79syl2an 464 . . . . . . . . . . . . 13  |-  ( ( ( # `  ( S `  a )
)  e.  NN0  /\  i  e.  NN0 )  -> 
( ( # `  ( S `  a )
)  <_  i  <->  ( ( # `
 ( S `  a ) )  < 
i  \/  ( # `  ( S `  a
) )  =  i ) ) )
8176, 80bitr3d 247 . . . . . . . . . . . 12  |-  ( ( ( # `  ( S `  a )
)  e.  NN0  /\  i  e.  NN0 )  -> 
( ( # `  ( S `  a )
)  <  ( i  +  1 )  <->  ( ( # `
 ( S `  a ) )  < 
i  \/  ( # `  ( S `  a
) )  =  i ) ) )
8281ancoms 440 . . . . . . . . . . 11  |-  ( ( i  e.  NN0  /\  ( # `  ( S `
 a ) )  e.  NN0 )  -> 
( ( # `  ( S `  a )
)  <  ( i  +  1 )  <->  ( ( # `
 ( S `  a ) )  < 
i  \/  ( # `  ( S `  a
) )  =  i ) ) )
8375, 82sylan2 461 . . . . . . . . . 10  |-  ( ( i  e.  NN0  /\  ( a  e.  dom  S  /\  b  e.  dom  S ) )  ->  (
( # `  ( S `
 a ) )  <  ( i  +  1 )  <->  ( ( # `
 ( S `  a ) )  < 
i  \/  ( # `  ( S `  a
) )  =  i ) ) )
8483imbi1d 309 . . . . . . . . 9  |-  ( ( i  e.  NN0  /\  ( a  e.  dom  S  /\  b  e.  dom  S ) )  ->  (
( ( # `  ( S `  a )
)  <  ( i  +  1 )  -> 
( ( S `  a )  =  ( S `  b )  ->  ( a ` 
0 )  =  ( b `  0 ) ) )  <->  ( (
( # `  ( S `
 a ) )  <  i  \/  ( # `
 ( S `  a ) )  =  i )  ->  (
( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) ) ) )
85 jaob 759 . . . . . . . . 9  |-  ( ( ( ( # `  ( S `  a )
)  <  i  \/  ( # `  ( S `
 a ) )  =  i )  -> 
( ( S `  a )  =  ( S `  b )  ->  ( a ` 
0 )  =  ( b `  0 ) ) )  <->  ( (
( # `  ( S `
 a ) )  <  i  ->  (
( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) )  /\  ( (
# `  ( S `  a ) )  =  i  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) ) ) )
8684, 85syl6bb 253 . . . . . . . 8  |-  ( ( i  e.  NN0  /\  ( a  e.  dom  S  /\  b  e.  dom  S ) )  ->  (
( ( # `  ( S `  a )
)  <  ( i  +  1 )  -> 
( ( S `  a )  =  ( S `  b )  ->  ( a ` 
0 )  =  ( b `  0 ) ) )  <->  ( (
( # `  ( S `
 a ) )  <  i  ->  (
( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) )  /\  ( (
# `  ( S `  a ) )  =  i  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) ) ) ) )
87862ralbidva 2745 . . . . . . 7  |-  ( i  e.  NN0  ->  ( A. a  e.  dom  S A. b  e.  dom  S ( ( # `  ( S `  a )
)  <  ( i  +  1 )  -> 
( ( S `  a )  =  ( S `  b )  ->  ( a ` 
0 )  =  ( b `  0 ) ) )  <->  A. a  e.  dom  S A. b  e.  dom  S ( ( ( # `  ( S `  a )
)  <  i  ->  ( ( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) )  /\  ( (
# `  ( S `  a ) )  =  i  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) ) ) ) )
88 r19.26-2 2839 . . . . . . 7  |-  ( A. a  e.  dom  S A. b  e.  dom  S ( ( ( # `  ( S `  a )
)  <  i  ->  ( ( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) )  /\  ( (
# `  ( S `  a ) )  =  i  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) ) )  <->  ( A. a  e.  dom  S A. b  e.  dom  S ( (
# `  ( S `  a ) )  < 
i  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) )  /\  A. a  e. 
dom  S A. b  e.  dom  S ( (
# `  ( S `  a ) )  =  i  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) ) ) )
8987, 88syl6bb 253 . . . . . 6  |-  ( i  e.  NN0  ->  ( A. a  e.  dom  S A. b  e.  dom  S ( ( # `  ( S `  a )
)  <  ( i  +  1 )  -> 
( ( S `  a )  =  ( S `  b )  ->  ( a ` 
0 )  =  ( b `  0 ) ) )  <->  ( A. a  e.  dom  S A. b  e.  dom  S ( ( # `  ( S `  a )
)  <  i  ->  ( ( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) )  /\  A. a  e.  dom  S A. b  e.  dom  S ( (
# `  ( S `  a ) )  =  i  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) ) ) ) )
9074, 89syl5ibr 213 . . . . 5  |-  ( i  e.  NN0  ->  ( A. a  e.  dom  S A. b  e.  dom  S ( ( # `  ( S `  a )
)  <  i  ->  ( ( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) )  ->  A. a  e.  dom  S A. b  e.  dom  S ( (
# `  ( S `  a ) )  < 
( i  +  1 )  ->  ( ( S `  a )  =  ( S `  b )  ->  (
a `  0 )  =  ( b ` 
0 ) ) ) ) )
9122, 25, 28, 31, 40, 90nn0ind 10366 . . . 4  |-  ( ( ( # `  ( S `  A )
)  +  1 )  e.  NN0  ->  A. a  e.  dom  S A. b  e.  dom  S ( (
# `  ( S `  a ) )  < 
( ( # `  ( S `  A )
)  +  1 )  ->  ( ( S `
 a )  =  ( S `  b
)  ->  ( a `  0 )  =  ( b `  0
) ) ) )
9219, 91syl 16 . . 3  |-  ( ( A  e.  dom  S  /\  B  e.  dom  S )  ->  A. a  e.  dom  S A. b  e.  dom  S ( (
# `  ( S `  a ) )  < 
( ( # `  ( S `  A )
)  +  1 )  ->  ( ( S `
 a )  =  ( S `  b
)  ->  ( a `  0 )  =  ( b `  0
) ) ) )
9317nn0red 10275 . . . 4  |-  ( ( A  e.  dom  S  /\  B  e.  dom  S )  ->  ( # `  ( S `  A )
)  e.  RR )
9493ltp1d 9941 . . 3  |-  ( ( A  e.  dom  S  /\  B  e.  dom  S )  ->  ( # `  ( S `  A )
)  <  ( ( # `
 ( S `  A ) )  +  1 ) )
95 fveq2 5728 . . . . . . 7  |-  ( a  =  A  ->  ( S `  a )  =  ( S `  A ) )
9695fveq2d 5732 . . . . . 6  |-  ( a  =  A  ->  ( # `
 ( S `  a ) )  =  ( # `  ( S `  A )
) )
9796breq1d 4222 . . . . 5  |-  ( a  =  A  ->  (
( # `  ( S `
 a ) )  <  ( ( # `  ( S `  A
) )  +  1 )  <->  ( # `  ( S `  A )
)  <  ( ( # `
 ( S `  A ) )  +  1 ) ) )
9895eqeq1d 2444 . . . . . 6  |-  ( a  =  A  ->  (
( S `  a
)  =  ( S `
 b )  <->  ( S `  A )  =  ( S `  b ) ) )
99 fveq1 5727 . . . . . . 7  |-  ( a  =  A  ->  (
a `  0 )  =  ( A ` 
0 ) )
10099eqeq1d 2444 . . . . . 6  |-  ( a  =  A  ->  (
( a `  0
)  =  ( b `
 0 )  <->  ( A `  0 )  =  ( b `  0
) ) )
10198, 100imbi12d 312 . . . . 5  |-  ( a  =  A  ->  (
( ( S `  a )  =  ( S `  b )  ->  ( a ` 
0 )  =  ( b `  0 ) )  <->  ( ( S `
 A )  =  ( S `  b
)  ->  ( A `  0 )  =  ( b `  0
) ) ) )
10297, 101imbi12d 312 . . . 4  |-  ( a  =  A  ->  (
( ( # `  ( S `  a )
)  <  ( ( # `
 ( S `  A ) )  +  1 )  ->  (
( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) )  <->  ( ( # `  ( S `  A
) )  <  (
( # `  ( S `
 A ) )  +  1 )  -> 
( ( S `  A )  =  ( S `  b )  ->  ( A ` 
0 )  =  ( b `  0 ) ) ) ) )
103 fveq2 5728 . . . . . . 7  |-  ( b  =  B  ->  ( S `  b )  =  ( S `  B ) )
104103eqeq2d 2447 . . . . . 6  |-  ( b  =  B  ->  (
( S `  A
)  =  ( S `
 b )  <->  ( S `  A )  =  ( S `  B ) ) )
105 fveq1 5727 . . . . . . 7  |-  ( b  =  B  ->  (
b `  0 )  =  ( B ` 
0 ) )
106105eqeq2d 2447 . . . . . 6  |-  ( b  =  B  ->  (
( A `  0
)  =  ( b `
 0 )  <->  ( A `  0 )  =  ( B `  0
) ) )
107104, 106imbi12d 312 . . . . 5  |-  ( b  =  B  ->  (
( ( S `  A )  =  ( S `  b )  ->  ( A ` 
0 )  =  ( b `  0 ) )  <->  ( ( S `
 A )  =  ( S `  B
)  ->  ( A `  0 )  =  ( B `  0
) ) ) )
108107imbi2d 308 . . . 4  |-  ( b  =  B  ->  (
( ( # `  ( S `  A )
)  <  ( ( # `
 ( S `  A ) )  +  1 )  ->  (
( S `  A
)  =  ( S `
 b )  -> 
( A `  0
)  =  ( b `
 0 ) ) )  <->  ( ( # `  ( S `  A
) )  <  (
( # `  ( S `
 A ) )  +  1 )  -> 
( ( S `  A )  =  ( S `  B )  ->  ( A ` 
0 )  =  ( B `  0 ) ) ) ) )
109102, 108rspc2v 3058 . . 3  |-  ( ( A  e.  dom  S  /\  B  e.  dom  S )  ->  ( A. a  e.  dom  S A. b  e.  dom  S ( ( # `  ( S `  a )
)  <  ( ( # `
 ( S `  A ) )  +  1 )  ->  (
( S `  a
)  =  ( S `
 b )  -> 
( a `  0
)  =  ( b `
 0 ) ) )  ->  ( ( # `
 ( S `  A ) )  < 
( ( # `  ( S `  A )
)  +  1 )  ->  ( ( S `
 A )  =  ( S `  B
)  ->  ( A `  0 )  =  ( B `  0
) ) ) ) )
11092, 94, 109mp2d 43 . 2  |-  ( ( A  e.  dom  S  /\  B  e.  dom  S )  ->  ( ( S `  A )  =  ( S `  B )  ->  ( A `  0 )  =  ( B ` 
0 ) ) )
1111103impia 1150 1  |-  ( ( A  e.  dom  S  /\  B  e.  dom  S  /\  ( S `  A )  =  ( S `  B ) )  ->  ( A `  0 )  =  ( B `  0
) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 177    \/ wo 358    /\ wa 359    /\ w3a 936    = wceq 1652    e. wcel 1725   A.wral 2705   {crab 2709    \ cdif 3317   (/)c0 3628   {csn 3814   <.cop 3817   <.cotp 3818   U_ciun 4093   class class class wbr 4212    e. cmpt 4266    _I cid 4493    X. cxp 4876   dom cdm 4878   ran crn 4879   -->wf 5450   ` cfv 5454  (class class class)co 6081    e. cmpt2 6083   1oc1o 6717   2oc2o 6718   RRcr 8989   0cc0 8990   1c1 8991    + caddc 8993    < clt 9120    <_ cle 9121    - cmin 9291   NN0cn0 10221   ...cfz 11043  ..^cfzo 11135   #chash 11618  Word cword 11717   splice csplice 11721   <"cs2 11805   ~FG cefg 15338
This theorem is referenced by:  efgrelexlemb  15382
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1555  ax-5 1566  ax-17 1626  ax-9 1666  ax-8 1687  ax-13 1727  ax-14 1729  ax-6 1744  ax-7 1749  ax-11 1761  ax-12 1950  ax-ext 2417  ax-rep 4320  ax-sep 4330  ax-nul 4338  ax-pow 4377  ax-pr 4403  ax-un 4701  ax-cnex 9046  ax-resscn 9047  ax-1cn 9048  ax-icn 9049  ax-addcl 9050  ax-addrcl 9051  ax-mulcl 9052  ax-mulrcl 9053  ax-mulcom 9054  ax-addass 9055  ax-mulass 9056  ax-distr 9057  ax-i2m1 9058  ax-1ne0 9059  ax-1rid 9060  ax-rnegex 9061  ax-rrecex 9062  ax-cnre 9063  ax-pre-lttri 9064  ax-pre-lttrn 9065  ax-pre-ltadd 9066  ax-pre-mulgt0 9067
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3or 937  df-3an 938  df-tru 1328  df-ex 1551  df-nf 1554  df-sb 1659  df-eu 2285  df-mo 2286  df-clab 2423  df-cleq 2429  df-clel 2432  df-nfc 2561  df-ne 2601  df-nel 2602  df-ral 2710  df-rex 2711  df-reu 2712  df-rab 2714  df-v 2958  df-sbc 3162  df-csb 3252  df-dif 3323  df-un 3325  df-in 3327  df-ss 3334  df-pss 3336  df-nul 3629  df-if 3740  df-pw 3801  df-sn 3820  df-pr 3821  df-tp 3822  df-op 3823  df-ot 3824  df-uni 4016  df-int 4051  df-iun 4095  df-br 4213  df-opab 4267  df-mpt 4268  df-tr 4303  df-eprel 4494  df-id 4498  df-po 4503  df-so 4504  df-fr 4541  df-we 4543  df-ord 4584  df-on 4585  df-lim 4586  df-suc 4587  df-om 4846  df-xp 4884  df-rel 4885  df-cnv 4886  df-co 4887  df-dm 4888  df-rn 4889  df-res 4890  df-ima 4891  df-iota 5418  df-fun 5456  df-fn 5457  df-f 5458  df-f1 5459  df-fo 5460  df-f1o 5461  df-fv 5462  df-ov 6084  df-oprab 6085  df-mpt2 6086  df-1st 6349  df-2nd 6350  df-riota 6549  df-recs 6633  df-rdg 6668  df-1o 6724  df-2o 6725  df-oadd 6728  df-er 6905  df-map 7020  df-pm 7021  df-en 7110  df-dom 7111  df-sdom 7112  df-fin 7113  df-card 7826  df-pnf 9122  df-mnf 9123  df-xr 9124  df-ltxr 9125  df-le 9126  df-sub 9293  df-neg 9294  df-nn 10001  df-2 10058  df-n0 10222  df-z 10283  df-uz 10489  df-rp 10613  df-fz 11044  df-fzo 11136  df-hash 11619  df-word 11723  df-concat 11724  df-s1 11725  df-substr 11726  df-splice 11727  df-s2 11812
  Copyright terms: Public domain W3C validator