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

Theorem algfx 13073
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 5871 . . . 4  |-  ( A  e.  S  ->  ( C `  A )  e.  NN0 )
41, 3syl5eqel 2522 . . 3  |-  ( A  e.  S  ->  N  e.  NN0 )
54nn0zd 10375 . 2  |-  ( A  e.  S  ->  N  e.  ZZ )
6 uzval 10492 . . . . . . 7  |-  ( N  e.  ZZ  ->  ( ZZ>=
`  N )  =  { z  e.  ZZ  |  N  <_  z } )
76eleq2d 2505 . . . . . 6  |-  ( N  e.  ZZ  ->  ( K  e.  ( ZZ>= `  N )  <->  K  e.  { z  e.  ZZ  |  N  <_  z } ) )
87pm5.32i 620 . . . . 5  |-  ( ( N  e.  ZZ  /\  K  e.  ( ZZ>= `  N ) )  <->  ( N  e.  ZZ  /\  K  e. 
{ z  e.  ZZ  |  N  <_  z } ) )
9 fveq2 5730 . . . . . . . 8  |-  ( m  =  N  ->  ( R `  m )  =  ( R `  N ) )
109eqeq1d 2446 . . . . . . 7  |-  ( m  =  N  ->  (
( R `  m
)  =  ( R `
 N )  <->  ( R `  N )  =  ( R `  N ) ) )
1110imbi2d 309 . . . . . 6  |-  ( m  =  N  ->  (
( A  e.  S  ->  ( R `  m
)  =  ( R `
 N ) )  <-> 
( A  e.  S  ->  ( R `  N
)  =  ( R `
 N ) ) ) )
12 fveq2 5730 . . . . . . . 8  |-  ( m  =  k  ->  ( R `  m )  =  ( R `  k ) )
1312eqeq1d 2446 . . . . . . 7  |-  ( m  =  k  ->  (
( R `  m
)  =  ( R `
 N )  <->  ( R `  k )  =  ( R `  N ) ) )
1413imbi2d 309 . . . . . 6  |-  ( m  =  k  ->  (
( A  e.  S  ->  ( R `  m
)  =  ( R `
 N ) )  <-> 
( A  e.  S  ->  ( R `  k
)  =  ( R `
 N ) ) ) )
15 fveq2 5730 . . . . . . . 8  |-  ( m  =  ( k  +  1 )  ->  ( R `  m )  =  ( R `  ( k  +  1 ) ) )
1615eqeq1d 2446 . . . . . . 7  |-  ( m  =  ( k  +  1 )  ->  (
( R `  m
)  =  ( R `
 N )  <->  ( R `  ( k  +  1 ) )  =  ( R `  N ) ) )
1716imbi2d 309 . . . . . 6  |-  ( m  =  ( k  +  1 )  ->  (
( A  e.  S  ->  ( R `  m
)  =  ( R `
 N ) )  <-> 
( A  e.  S  ->  ( R `  (
k  +  1 ) )  =  ( R `
 N ) ) ) )
18 fveq2 5730 . . . . . . . 8  |-  ( m  =  K  ->  ( R `  m )  =  ( R `  K ) )
1918eqeq1d 2446 . . . . . . 7  |-  ( m  =  K  ->  (
( R `  m
)  =  ( R `
 N )  <->  ( R `  K )  =  ( R `  N ) ) )
2019imbi2d 309 . . . . . 6  |-  ( m  =  K  ->  (
( A  e.  S  ->  ( R `  m
)  =  ( R `
 N ) )  <-> 
( A  e.  S  ->  ( R `  K
)  =  ( R `
 N ) ) ) )
21 eqidd 2439 . . . . . . 7  |-  ( A  e.  S  ->  ( R `  N )  =  ( R `  N ) )
2221a1i 11 . . . . . 6  |-  ( N  e.  ZZ  ->  ( A  e.  S  ->  ( R `  N )  =  ( R `  N ) ) )
236eleq2d 2505 . . . . . . . . 9  |-  ( N  e.  ZZ  ->  (
k  e.  ( ZZ>= `  N )  <->  k  e.  { z  e.  ZZ  |  N  <_  z } ) )
2423pm5.32i 620 . . . . . . . 8  |-  ( ( N  e.  ZZ  /\  k  e.  ( ZZ>= `  N ) )  <->  ( N  e.  ZZ  /\  k  e. 
{ z  e.  ZZ  |  N  <_  z } ) )
25 eluznn0 10548 . . . . . . . . . . . . . . 15  |-  ( ( N  e.  NN0  /\  k  e.  ( ZZ>= `  N ) )  -> 
k  e.  NN0 )
264, 25sylan 459 . . . . . . . . . . . . . 14  |-  ( ( A  e.  S  /\  k  e.  ( ZZ>= `  N ) )  -> 
k  e.  NN0 )
27 nn0uz 10522 . . . . . . . . . . . . . . 15  |-  NN0  =  ( ZZ>= `  0 )
28 algcvga.2 . . . . . . . . . . . . . . 15  |-  R  =  seq  0 ( ( F  o.  1st ) ,  ( NN0  X.  { A } ) )
29 0z 10295 . . . . . . . . . . . . . . . 16  |-  0  e.  ZZ
3029a1i 11 . . . . . . . . . . . . . . 15  |-  ( A  e.  S  ->  0  e.  ZZ )
31 id 21 . . . . . . . . . . . . . . 15  |-  ( A  e.  S  ->  A  e.  S )
32 algcvga.1 . . . . . . . . . . . . . . . 16  |-  F : S
--> S
3332a1i 11 . . . . . . . . . . . . . . 15  |-  ( A  e.  S  ->  F : S --> S )
3427, 28, 30, 31, 33algrp1 13067 . . . . . . . . . . . . . 14  |-  ( ( A  e.  S  /\  k  e.  NN0 )  -> 
( R `  (
k  +  1 ) )  =  ( F `
 ( R `  k ) ) )
3526, 34syldan 458 . . . . . . . . . . . . 13  |-  ( ( A  e.  S  /\  k  e.  ( ZZ>= `  N ) )  -> 
( R `  (
k  +  1 ) )  =  ( F `
 ( R `  k ) ) )
3627, 28, 30, 31, 33algrf 13066 . . . . . . . . . . . . . . . 16  |-  ( A  e.  S  ->  R : NN0 --> S )
3736ffvelrnda 5872 . . . . . . . . . . . . . . 15  |-  ( ( A  e.  S  /\  k  e.  NN0 )  -> 
( R `  k
)  e.  S )
3826, 37syldan 458 . . . . . . . . . . . . . 14  |-  ( ( A  e.  S  /\  k  e.  ( ZZ>= `  N ) )  -> 
( R `  k
)  e.  S )
39 algcvga.4 . . . . . . . . . . . . . . . 16  |-  ( z  e.  S  ->  (
( C `  ( F `  z )
)  =/=  0  -> 
( C `  ( F `  z )
)  <  ( C `  z ) ) )
4032, 28, 2, 39, 1algcvga 13072 . . . . . . . . . . . . . . 15  |-  ( A  e.  S  ->  (
k  e.  ( ZZ>= `  N )  ->  ( C `  ( R `  k ) )  =  0 ) )
4140imp 420 . . . . . . . . . . . . . 14  |-  ( ( A  e.  S  /\  k  e.  ( ZZ>= `  N ) )  -> 
( C `  ( R `  k )
)  =  0 )
42 fveq2 5730 . . . . . . . . . . . . . . . . 17  |-  ( z  =  ( R `  k )  ->  ( C `  z )  =  ( C `  ( R `  k ) ) )
4342eqeq1d 2446 . . . . . . . . . . . . . . . 16  |-  ( z  =  ( R `  k )  ->  (
( C `  z
)  =  0  <->  ( C `  ( R `  k ) )  =  0 ) )
44 fveq2 5730 . . . . . . . . . . . . . . . . 17  |-  ( z  =  ( R `  k )  ->  ( F `  z )  =  ( F `  ( R `  k ) ) )
45 id 21 . . . . . . . . . . . . . . . . 17  |-  ( z  =  ( R `  k )  ->  z  =  ( R `  k ) )
4644, 45eqeq12d 2452 . . . . . . . . . . . . . . . 16  |-  ( z  =  ( R `  k )  ->  (
( F `  z
)  =  z  <->  ( F `  ( R `  k
) )  =  ( R `  k ) ) )
4743, 46imbi12d 313 . . . . . . . . . . . . . . 15  |-  ( z  =  ( R `  k )  ->  (
( ( C `  z )  =  0  ->  ( F `  z )  =  z )  <->  ( ( C `
 ( R `  k ) )  =  0  ->  ( F `  ( R `  k
) )  =  ( R `  k ) ) ) )
48 algfx.6 . . . . . . . . . . . . . . 15  |-  ( z  e.  S  ->  (
( C `  z
)  =  0  -> 
( F `  z
)  =  z ) )
4947, 48vtoclga 3019 . . . . . . . . . . . . . 14  |-  ( ( R `  k )  e.  S  ->  (
( C `  ( R `  k )
)  =  0  -> 
( F `  ( R `  k )
)  =  ( R `
 k ) ) )
5038, 41, 49sylc 59 . . . . . . . . . . . . 13  |-  ( ( A  e.  S  /\  k  e.  ( ZZ>= `  N ) )  -> 
( F `  ( R `  k )
)  =  ( R `
 k ) )
5135, 50eqtrd 2470 . . . . . . . . . . . 12  |-  ( ( A  e.  S  /\  k  e.  ( ZZ>= `  N ) )  -> 
( R `  (
k  +  1 ) )  =  ( R `
 k ) )
5251eqeq1d 2446 . . . . . . . . . . 11  |-  ( ( A  e.  S  /\  k  e.  ( ZZ>= `  N ) )  -> 
( ( R `  ( k  +  1 ) )  =  ( R `  N )  <-> 
( R `  k
)  =  ( R `
 N ) ) )
5352biimprd 216 . . . . . . . . . 10  |-  ( ( A  e.  S  /\  k  e.  ( ZZ>= `  N ) )  -> 
( ( R `  k )  =  ( R `  N )  ->  ( R `  ( k  +  1 ) )  =  ( R `  N ) ) )
5453expcom 426 . . . . . . . . 9  |-  ( k  e.  ( ZZ>= `  N
)  ->  ( A  e.  S  ->  ( ( R `  k )  =  ( R `  N )  ->  ( R `  ( k  +  1 ) )  =  ( R `  N ) ) ) )
5554adantl 454 . . . . . . . 8  |-  ( ( N  e.  ZZ  /\  k  e.  ( ZZ>= `  N ) )  -> 
( A  e.  S  ->  ( ( R `  k )  =  ( R `  N )  ->  ( R `  ( k  +  1 ) )  =  ( R `  N ) ) ) )
5624, 55sylbir 206 . . . . . . 7  |-  ( ( N  e.  ZZ  /\  k  e.  { z  e.  ZZ  |  N  <_ 
z } )  -> 
( A  e.  S  ->  ( ( R `  k )  =  ( R `  N )  ->  ( R `  ( k  +  1 ) )  =  ( R `  N ) ) ) )
5756a2d 25 . . . . . 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
) ) ) )
5811, 14, 17, 20, 22, 57uzind3 10365 . . . . 5  |-  ( ( N  e.  ZZ  /\  K  e.  { z  e.  ZZ  |  N  <_ 
z } )  -> 
( A  e.  S  ->  ( R `  K
)  =  ( R `
 N ) ) )
598, 58sylbi 189 . . . 4  |-  ( ( N  e.  ZZ  /\  K  e.  ( ZZ>= `  N ) )  -> 
( A  e.  S  ->  ( R `  K
)  =  ( R `
 N ) ) )
6059ex 425 . . 3  |-  ( N  e.  ZZ  ->  ( K  e.  ( ZZ>= `  N )  ->  ( A  e.  S  ->  ( R `  K )  =  ( R `  N ) ) ) )
6160com3r 76 . 2  |-  ( A  e.  S  ->  ( N  e.  ZZ  ->  ( K  e.  ( ZZ>= `  N )  ->  ( R `  K )  =  ( R `  N ) ) ) )
625, 61mpd 15 1  |-  ( A  e.  S  ->  ( K  e.  ( ZZ>= `  N )  ->  ( R `  K )  =  ( R `  N ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 360    = wceq 1653    e. wcel 1726    =/= wne 2601   {crab 2711   {csn 3816   class class class wbr 4214    X. cxp 4878    o. ccom 4884   -->wf 5452   ` cfv 5456  (class class class)co 6083   1stc1st 6349   0cc0 8992   1c1 8993    + caddc 8995    < clt 9122    <_ cle 9123   NN0cn0 10223   ZZcz 10284   ZZ>=cuz 10490    seq cseq 11325
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1556  ax-5 1567  ax-17 1627  ax-9 1667  ax-8 1688  ax-13 1728  ax-14 1730  ax-6 1745  ax-7 1750  ax-11 1762  ax-12 1951  ax-ext 2419  ax-sep 4332  ax-nul 4340  ax-pow 4379  ax-pr 4405  ax-un 4703  ax-cnex 9048  ax-resscn 9049  ax-1cn 9050  ax-icn 9051  ax-addcl 9052  ax-addrcl 9053  ax-mulcl 9054  ax-mulrcl 9055  ax-mulcom 9056  ax-addass 9057  ax-mulass 9058  ax-distr 9059  ax-i2m1 9060  ax-1ne0 9061  ax-1rid 9062  ax-rnegex 9063  ax-rrecex 9064  ax-cnre 9065  ax-pre-lttri 9066  ax-pre-lttrn 9067  ax-pre-ltadd 9068  ax-pre-mulgt0 9069
This theorem depends on definitions:  df-bi 179  df-or 361  df-an 362  df-3or 938  df-3an 939  df-tru 1329  df-ex 1552  df-nf 1555  df-sb 1660  df-eu 2287  df-mo 2288  df-clab 2425  df-cleq 2431  df-clel 2434  df-nfc 2563  df-ne 2603  df-nel 2604  df-ral 2712  df-rex 2713  df-reu 2714  df-rab 2716  df-v 2960  df-sbc 3164  df-csb 3254  df-dif 3325  df-un 3327  df-in 3329  df-ss 3336  df-pss 3338  df-nul 3631  df-if 3742  df-pw 3803  df-sn 3822  df-pr 3823  df-tp 3824  df-op 3825  df-uni 4018  df-iun 4097  df-br 4215  df-opab 4269  df-mpt 4270  df-tr 4305  df-eprel 4496  df-id 4500  df-po 4505  df-so 4506  df-fr 4543  df-we 4545  df-ord 4586  df-on 4587  df-lim 4588  df-suc 4589  df-om 4848  df-xp 4886  df-rel 4887  df-cnv 4888  df-co 4889  df-dm 4890  df-rn 4891  df-res 4892  df-ima 4893  df-iota 5420  df-fun 5458  df-fn 5459  df-f 5460  df-f1 5461  df-fo 5462  df-f1o 5463  df-fv 5464  df-ov 6086  df-oprab 6087  df-mpt2 6088  df-1st 6351  df-2nd 6352  df-riota 6551  df-recs 6635  df-rdg 6670  df-er 6907  df-en 7112  df-dom 7113  df-sdom 7114  df-pnf 9124  df-mnf 9125  df-xr 9126  df-ltxr 9127  df-le 9128  df-sub 9295  df-neg 9296  df-nn 10003  df-n0 10224  df-z 10285  df-uz 10491  df-fz 11046  df-seq 11326
  Copyright terms: Public domain W3C validator