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

Theorem algfx 12766
Description: If  F reaches a fixed point when the countdown function  C reaches  0,  F remains fixed after  N steps. (Contributed by Paul Chapman, 22-Jun-2011.)
Hypotheses
Ref Expression
algcvga.1  |-  F : S
--> S
algcvga.2  |-  R  =  seq  0 ( ( F  o.  1st ) ,  ( NN0  X.  { A } ) )
algcvga.3  |-  C : S
--> NN0
algcvga.4  |-  ( z  e.  S  ->  (
( C `  ( F `  z )
)  =/=  0  -> 
( C `  ( F `  z )
)  <  ( C `  z ) ) )
algcvga.5  |-  N  =  ( C `  A
)
algfx.6  |-  ( z  e.  S  ->  (
( C `  z
)  =  0  -> 
( F `  z
)  =  z ) )
Assertion
Ref Expression
algfx  |-  ( A  e.  S  ->  ( K  e.  ( ZZ>= `  N )  ->  ( R `  K )  =  ( R `  N ) ) )
Distinct variable groups:    z, C    z, F    z, R    z, S    z, K    z, N
Allowed substitution hint:    A( z)

Proof of Theorem algfx
Dummy variables  k  m are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 algcvga.5 . . . 4  |-  N  =  ( C `  A
)
2 algcvga.3 . . . . 5  |-  C : S
--> NN0
32ffvelrni 5680 . . . 4  |-  ( A  e.  S  ->  ( C `  A )  e.  NN0 )
41, 3syl5eqel 2380 . . 3  |-  ( A  e.  S  ->  N  e.  NN0 )
54nn0zd 10131 . 2  |-  ( A  e.  S  ->  N  e.  ZZ )
6 uzval 10248 . . . . . . 7  |-  ( N  e.  ZZ  ->  ( ZZ>=
`  N )  =  { z  e.  ZZ  |  N  <_  z } )
76eleq2d 2363 . . . . . 6  |-  ( N  e.  ZZ  ->  ( K  e.  ( ZZ>= `  N )  <->  K  e.  { z  e.  ZZ  |  N  <_  z } ) )
87pm5.32i 618 . . . . 5  |-  ( ( N  e.  ZZ  /\  K  e.  ( ZZ>= `  N ) )  <->  ( N  e.  ZZ  /\  K  e. 
{ z  e.  ZZ  |  N  <_  z } ) )
9 fveq2 5541 . . . . . . . 8  |-  ( m  =  N  ->  ( R `  m )  =  ( R `  N ) )
109eqeq1d 2304 . . . . . . 7  |-  ( m  =  N  ->  (
( R `  m
)  =  ( R `
 N )  <->  ( R `  N )  =  ( R `  N ) ) )
1110imbi2d 307 . . . . . 6  |-  ( m  =  N  ->  (
( A  e.  S  ->  ( R `  m
)  =  ( R `
 N ) )  <-> 
( A  e.  S  ->  ( R `  N
)  =  ( R `
 N ) ) ) )
12 fveq2 5541 . . . . . . . 8  |-  ( m  =  k  ->  ( R `  m )  =  ( R `  k ) )
1312eqeq1d 2304 . . . . . . 7  |-  ( m  =  k  ->  (
( R `  m
)  =  ( R `
 N )  <->  ( R `  k )  =  ( R `  N ) ) )
1413imbi2d 307 . . . . . 6  |-  ( m  =  k  ->  (
( A  e.  S  ->  ( R `  m
)  =  ( R `
 N ) )  <-> 
( A  e.  S  ->  ( R `  k
)  =  ( R `
 N ) ) ) )
15 fveq2 5541 . . . . . . . 8  |-  ( m  =  ( k  +  1 )  ->  ( R `  m )  =  ( R `  ( k  +  1 ) ) )
1615eqeq1d 2304 . . . . . . 7  |-  ( m  =  ( k  +  1 )  ->  (
( R `  m
)  =  ( R `
 N )  <->  ( R `  ( k  +  1 ) )  =  ( R `  N ) ) )
1716imbi2d 307 . . . . . 6  |-  ( m  =  ( k  +  1 )  ->  (
( A  e.  S  ->  ( R `  m
)  =  ( R `
 N ) )  <-> 
( A  e.  S  ->  ( R `  (
k  +  1 ) )  =  ( R `
 N ) ) ) )
18 fveq2 5541 . . . . . . . 8  |-  ( m  =  K  ->  ( R `  m )  =  ( R `  K ) )
1918eqeq1d 2304 . . . . . . 7  |-  ( m  =  K  ->  (
( R `  m
)  =  ( R `
 N )  <->  ( R `  K )  =  ( R `  N ) ) )
2019imbi2d 307 . . . . . 6  |-  ( m  =  K  ->  (
( A  e.  S  ->  ( R `  m
)  =  ( R `
 N ) )  <-> 
( A  e.  S  ->  ( R `  K
)  =  ( R `
 N ) ) ) )
21 eqidd 2297 . . . . . . 7  |-  ( A  e.  S  ->  ( R `  N )  =  ( R `  N ) )
2221a1i 10 . . . . . 6  |-  ( N  e.  ZZ  ->  ( A  e.  S  ->  ( R `  N )  =  ( R `  N ) ) )
236eleq2d 2363 . . . . . . . . 9  |-  ( N  e.  ZZ  ->  (
k  e.  ( ZZ>= `  N )  <->  k  e.  { z  e.  ZZ  |  N  <_  z } ) )
2423pm5.32i 618 . . . . . . . 8  |-  ( ( N  e.  ZZ  /\  k  e.  ( ZZ>= `  N ) )  <->  ( N  e.  ZZ  /\  k  e. 
{ z  e.  ZZ  |  N  <_  z } ) )
25 eluznn0 10304 . . . . . . . . . . . . . . 15  |-  ( ( N  e.  NN0  /\  k  e.  ( ZZ>= `  N ) )  -> 
k  e.  NN0 )
264, 25sylan 457 . . . . . . . . . . . . . 14  |-  ( ( A  e.  S  /\  k  e.  ( ZZ>= `  N ) )  -> 
k  e.  NN0 )
27 nn0uz 10278 . . . . . . . . . . . . . . 15  |-  NN0  =  ( ZZ>= `  0 )
28 algcvga.2 . . . . . . . . . . . . . . 15  |-  R  =  seq  0 ( ( F  o.  1st ) ,  ( NN0  X.  { A } ) )
29 0z 10051 . . . . . . . . . . . . . . . 16  |-  0  e.  ZZ
3029a1i 10 . . . . . . . . . . . . . . 15  |-  ( A  e.  S  ->  0  e.  ZZ )
31 id 19 . . . . . . . . . . . . . . 15  |-  ( A  e.  S  ->  A  e.  S )
32 algcvga.1 . . . . . . . . . . . . . . . 16  |-  F : S
--> S
3332a1i 10 . . . . . . . . . . . . . . 15  |-  ( A  e.  S  ->  F : S --> S )
3427, 28, 30, 31, 33algrp1 12760 . . . . . . . . . . . . . 14  |-  ( ( A  e.  S  /\  k  e.  NN0 )  -> 
( R `  (
k  +  1 ) )  =  ( F `
 ( R `  k ) ) )
3526, 34syldan 456 . . . . . . . . . . . . 13  |-  ( ( A  e.  S  /\  k  e.  ( ZZ>= `  N ) )  -> 
( R `  (
k  +  1 ) )  =  ( F `
 ( R `  k ) ) )
3627, 28, 30, 31, 33algrf 12759 . . . . . . . . . . . . . . . 16  |-  ( A  e.  S  ->  R : NN0 --> S )
37 ffvelrn 5679 . . . . . . . . . . . . . . . 16  |-  ( ( R : NN0 --> S  /\  k  e.  NN0 )  -> 
( R `  k
)  e.  S )
3836, 37sylan 457 . . . . . . . . . . . . . . 15  |-  ( ( A  e.  S  /\  k  e.  NN0 )  -> 
( R `  k
)  e.  S )
3926, 38syldan 456 . . . . . . . . . . . . . 14  |-  ( ( A  e.  S  /\  k  e.  ( ZZ>= `  N ) )  -> 
( R `  k
)  e.  S )
40 algcvga.4 . . . . . . . . . . . . . . . 16  |-  ( z  e.  S  ->  (
( C `  ( F `  z )
)  =/=  0  -> 
( C `  ( F `  z )
)  <  ( C `  z ) ) )
4132, 28, 2, 40, 1algcvga 12765 . . . . . . . . . . . . . . 15  |-  ( A  e.  S  ->  (
k  e.  ( ZZ>= `  N )  ->  ( C `  ( R `  k ) )  =  0 ) )
4241imp 418 . . . . . . . . . . . . . 14  |-  ( ( A  e.  S  /\  k  e.  ( ZZ>= `  N ) )  -> 
( C `  ( R `  k )
)  =  0 )
43 fveq2 5541 . . . . . . . . . . . . . . . . 17  |-  ( z  =  ( R `  k )  ->  ( C `  z )  =  ( C `  ( R `  k ) ) )
4443eqeq1d 2304 . . . . . . . . . . . . . . . 16  |-  ( z  =  ( R `  k )  ->  (
( C `  z
)  =  0  <->  ( C `  ( R `  k ) )  =  0 ) )
45 fveq2 5541 . . . . . . . . . . . . . . . . 17  |-  ( z  =  ( R `  k )  ->  ( F `  z )  =  ( F `  ( R `  k ) ) )
46 id 19 . . . . . . . . . . . . . . . . 17  |-  ( z  =  ( R `  k )  ->  z  =  ( R `  k ) )
4745, 46eqeq12d 2310 . . . . . . . . . . . . . . . 16  |-  ( z  =  ( R `  k )  ->  (
( F `  z
)  =  z  <->  ( F `  ( R `  k
) )  =  ( R `  k ) ) )
4844, 47imbi12d 311 . . . . . . . . . . . . . . 15  |-  ( z  =  ( R `  k )  ->  (
( ( C `  z )  =  0  ->  ( F `  z )  =  z )  <->  ( ( C `
 ( R `  k ) )  =  0  ->  ( F `  ( R `  k
) )  =  ( R `  k ) ) ) )
49 algfx.6 . . . . . . . . . . . . . . 15  |-  ( z  e.  S  ->  (
( C `  z
)  =  0  -> 
( F `  z
)  =  z ) )
5048, 49vtoclga 2862 . . . . . . . . . . . . . 14  |-  ( ( R `  k )  e.  S  ->  (
( C `  ( R `  k )
)  =  0  -> 
( F `  ( R `  k )
)  =  ( R `
 k ) ) )
5139, 42, 50sylc 56 . . . . . . . . . . . . 13  |-  ( ( A  e.  S  /\  k  e.  ( ZZ>= `  N ) )  -> 
( F `  ( R `  k )
)  =  ( R `
 k ) )
5235, 51eqtrd 2328 . . . . . . . . . . . 12  |-  ( ( A  e.  S  /\  k  e.  ( ZZ>= `  N ) )  -> 
( R `  (
k  +  1 ) )  =  ( R `
 k ) )
5352eqeq1d 2304 . . . . . . . . . . 11  |-  ( ( A  e.  S  /\  k  e.  ( ZZ>= `  N ) )  -> 
( ( R `  ( k  +  1 ) )  =  ( R `  N )  <-> 
( R `  k
)  =  ( R `
 N ) ) )
5453biimprd 214 . . . . . . . . . 10  |-  ( ( A  e.  S  /\  k  e.  ( ZZ>= `  N ) )  -> 
( ( R `  k )  =  ( R `  N )  ->  ( R `  ( k  +  1 ) )  =  ( R `  N ) ) )
5554expcom 424 . . . . . . . . 9  |-  ( k  e.  ( ZZ>= `  N
)  ->  ( A  e.  S  ->  ( ( R `  k )  =  ( R `  N )  ->  ( R `  ( k  +  1 ) )  =  ( R `  N ) ) ) )
5655adantl 452 . . . . . . . 8  |-  ( ( N  e.  ZZ  /\  k  e.  ( ZZ>= `  N ) )  -> 
( A  e.  S  ->  ( ( R `  k )  =  ( R `  N )  ->  ( R `  ( k  +  1 ) )  =  ( R `  N ) ) ) )
5724, 56sylbir 204 . . . . . . 7  |-  ( ( N  e.  ZZ  /\  k  e.  { z  e.  ZZ  |  N  <_ 
z } )  -> 
( A  e.  S  ->  ( ( R `  k )  =  ( R `  N )  ->  ( R `  ( k  +  1 ) )  =  ( R `  N ) ) ) )
5857a2d 23 . . . . . 6  |-  ( ( N  e.  ZZ  /\  k  e.  { z  e.  ZZ  |  N  <_ 
z } )  -> 
( ( A  e.  S  ->  ( R `  k )  =  ( R `  N ) )  ->  ( A  e.  S  ->  ( R `
 ( k  +  1 ) )  =  ( R `  N
) ) ) )
5911, 14, 17, 20, 22, 58uzind3 10121 . . . . 5  |-  ( ( N  e.  ZZ  /\  K  e.  { z  e.  ZZ  |  N  <_ 
z } )  -> 
( A  e.  S  ->  ( R `  K
)  =  ( R `
 N ) ) )
608, 59sylbi 187 . . . 4  |-  ( ( N  e.  ZZ  /\  K  e.  ( ZZ>= `  N ) )  -> 
( A  e.  S  ->  ( R `  K
)  =  ( R `
 N ) ) )
6160ex 423 . . 3  |-  ( N  e.  ZZ  ->  ( K  e.  ( ZZ>= `  N )  ->  ( A  e.  S  ->  ( R `  K )  =  ( R `  N ) ) ) )
6261com3r 73 . 2  |-  ( A  e.  S  ->  ( N  e.  ZZ  ->  ( K  e.  ( ZZ>= `  N )  ->  ( R `  K )  =  ( R `  N ) ) ) )
635, 62mpd 14 1  |-  ( A  e.  S  ->  ( K  e.  ( ZZ>= `  N )  ->  ( R `  K )  =  ( R `  N ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 358    = wceq 1632    e. wcel 1696    =/= wne 2459   {crab 2560   {csn 3653   class class class wbr 4039    X. cxp 4703    o. ccom 4709   -->wf 5267   ` cfv 5271  (class class class)co 5874   1stc1st 6136   0cc0 8753   1c1 8754    + caddc 8756    < clt 8883    <_ cle 8884   NN0cn0 9981   ZZcz 10040   ZZ>=cuz 10246    seq cseq 11062
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1536  ax-5 1547  ax-17 1606  ax-9 1644  ax-8 1661  ax-13 1698  ax-14 1700  ax-6 1715  ax-7 1720  ax-11 1727  ax-12 1878  ax-ext 2277  ax-sep 4157  ax-nul 4165  ax-pow 4204  ax-pr 4230  ax-un 4528  ax-cnex 8809  ax-resscn 8810  ax-1cn 8811  ax-icn 8812  ax-addcl 8813  ax-addrcl 8814  ax-mulcl 8815  ax-mulrcl 8816  ax-mulcom 8817  ax-addass 8818  ax-mulass 8819  ax-distr 8820  ax-i2m1 8821  ax-1ne0 8822  ax-1rid 8823  ax-rnegex 8824  ax-rrecex 8825  ax-cnre 8826  ax-pre-lttri 8827  ax-pre-lttrn 8828  ax-pre-ltadd 8829  ax-pre-mulgt0 8830
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3or 935  df-3an 936  df-tru 1310  df-ex 1532  df-nf 1535  df-sb 1639  df-eu 2160  df-mo 2161  df-clab 2283  df-cleq 2289  df-clel 2292  df-nfc 2421  df-ne 2461  df-nel 2462  df-ral 2561  df-rex 2562  df-reu 2563  df-rab 2565  df-v 2803  df-sbc 3005  df-csb 3095  df-dif 3168  df-un 3170  df-in 3172  df-ss 3179  df-pss 3181  df-nul 3469  df-if 3579  df-pw 3640  df-sn 3659  df-pr 3660  df-tp 3661  df-op 3662  df-uni 3844  df-iun 3923  df-br 4040  df-opab 4094  df-mpt 4095  df-tr 4130  df-eprel 4321  df-id 4325  df-po 4330  df-so 4331  df-fr 4368  df-we 4370  df-ord 4411  df-on 4412  df-lim 4413  df-suc 4414  df-om 4673  df-xp 4711  df-rel 4712  df-cnv 4713  df-co 4714  df-dm 4715  df-rn 4716  df-res 4717  df-ima 4718  df-iota 5235  df-fun 5273  df-fn 5274  df-f 5275  df-f1 5276  df-fo 5277  df-f1o 5278  df-fv 5279  df-ov 5877  df-oprab 5878  df-mpt2 5879  df-1st 6138  df-2nd 6139  df-riota 6320  df-recs 6404  df-rdg 6439  df-er 6676  df-en 6880  df-dom 6881  df-sdom 6882  df-pnf 8885  df-mnf 8886  df-xr 8887  df-ltxr 8888  df-le 8889  df-sub 9055  df-neg 9056  df-nn 9763  df-n0 9982  df-z 10041  df-uz 10247  df-fz 10799  df-seq 11063
  Copyright terms: Public domain W3C validator