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

Theorem uzrdgsuci 12074
Description: Successor value of a recursive definition generator on upper integers. See comment in om2uzrdg 12070. (Contributed by Mario Carneiro, 26-Jun-2013.) (Revised by Mario Carneiro, 13-Sep-2013.)
Hypotheses
Ref Expression
om2uz.1  |-  C  e.  ZZ
om2uz.2  |-  G  =  ( rec ( ( x  e.  _V  |->  ( x  +  1 ) ) ,  C )  |`  om )
uzrdg.1  |-  A  e. 
_V
uzrdg.2  |-  R  =  ( rec ( ( x  e.  _V , 
y  e.  _V  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. )  |`  om )
uzrdg.3  |-  S  =  ran  R
Assertion
Ref Expression
uzrdgsuci  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( S `  ( B  +  1 ) )  =  ( B F ( S `
 B ) ) )
Distinct variable groups:    y, A    x, y, C    y, G    x, F, y
Allowed substitution hints:    A( x)    B( x, y)    R( x, y)    S( x, y)    G( x)

Proof of Theorem uzrdgsuci
Dummy variables  z  w are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 om2uz.1 . . . . . 6  |-  C  e.  ZZ
2 om2uz.2 . . . . . 6  |-  G  =  ( rec ( ( x  e.  _V  |->  ( x  +  1 ) ) ,  C )  |`  om )
3 uzrdg.1 . . . . . 6  |-  A  e. 
_V
4 uzrdg.2 . . . . . 6  |-  R  =  ( rec ( ( x  e.  _V , 
y  e.  _V  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. )  |`  om )
5 uzrdg.3 . . . . . 6  |-  S  =  ran  R
61, 2, 3, 4, 5uzrdgfni 12072 . . . . 5  |-  S  Fn  ( ZZ>= `  C )
7 fnfun 5684 . . . . 5  |-  ( S  Fn  ( ZZ>= `  C
)  ->  Fun  S )
86, 7ax-mp 5 . . . 4  |-  Fun  S
9 peano2uz 11159 . . . . . 6  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( B  +  1 )  e.  ( ZZ>= `  C )
)
101, 2, 3, 4uzrdglem 12071 . . . . . 6  |-  ( ( B  +  1 )  e.  ( ZZ>= `  C
)  ->  <. ( B  +  1 ) ,  ( 2nd `  ( R `  ( `' G `  ( B  +  1 ) ) ) ) >.  e.  ran  R )
119, 10syl 16 . . . . 5  |-  ( B  e.  ( ZZ>= `  C
)  ->  <. ( B  +  1 ) ,  ( 2nd `  ( R `  ( `' G `  ( B  +  1 ) ) ) ) >.  e.  ran  R )
1211, 5syl6eleqr 2556 . . . 4  |-  ( B  e.  ( ZZ>= `  C
)  ->  <. ( B  +  1 ) ,  ( 2nd `  ( R `  ( `' G `  ( B  +  1 ) ) ) ) >.  e.  S
)
13 funopfv 5912 . . . 4  |-  ( Fun 
S  ->  ( <. ( B  +  1 ) ,  ( 2nd `  ( R `  ( `' G `  ( B  +  1 ) ) ) ) >.  e.  S  ->  ( S `  ( B  +  1 ) )  =  ( 2nd `  ( R `  ( `' G `  ( B  +  1 ) ) ) ) ) )
148, 12, 13mpsyl 63 . . 3  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( S `  ( B  +  1 ) )  =  ( 2nd `  ( R `
 ( `' G `  ( B  +  1 ) ) ) ) )
151, 2om2uzf1oi 12067 . . . . . . . 8  |-  G : om
-1-1-onto-> ( ZZ>= `  C )
16 f1ocnvdm 6189 . . . . . . . 8  |-  ( ( G : om -1-1-onto-> ( ZZ>= `  C )  /\  B  e.  ( ZZ>=
`  C ) )  ->  ( `' G `  B )  e.  om )
1715, 16mpan 670 . . . . . . 7  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( `' G `  B )  e.  om )
18 peano2 6719 . . . . . . 7  |-  ( ( `' G `  B )  e.  om  ->  suc  ( `' G `  B )  e.  om )
1917, 18syl 16 . . . . . 6  |-  ( B  e.  ( ZZ>= `  C
)  ->  suc  ( `' G `  B )  e.  om )
201, 2om2uzsuci 12062 . . . . . . . 8  |-  ( ( `' G `  B )  e.  om  ->  ( G `  suc  ( `' G `  B ) )  =  ( ( G `  ( `' G `  B ) )  +  1 ) )
2117, 20syl 16 . . . . . . 7  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( G `  suc  ( `' G `  B ) )  =  ( ( G `  ( `' G `  B ) )  +  1 ) )
22 f1ocnvfv2 6184 . . . . . . . . 9  |-  ( ( G : om -1-1-onto-> ( ZZ>= `  C )  /\  B  e.  ( ZZ>=
`  C ) )  ->  ( G `  ( `' G `  B ) )  =  B )
2315, 22mpan 670 . . . . . . . 8  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( G `  ( `' G `  B ) )  =  B )
2423oveq1d 6311 . . . . . . 7  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( ( G `  ( `' G `  B )
)  +  1 )  =  ( B  + 
1 ) )
2521, 24eqtrd 2498 . . . . . 6  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( G `  suc  ( `' G `  B ) )  =  ( B  +  1 ) )
26 f1ocnvfv 6185 . . . . . . 7  |-  ( ( G : om -1-1-onto-> ( ZZ>= `  C )  /\  suc  ( `' G `  B )  e.  om )  ->  ( ( G `
 suc  ( `' G `  B )
)  =  ( B  +  1 )  -> 
( `' G `  ( B  +  1
) )  =  suc  ( `' G `  B ) ) )
2715, 26mpan 670 . . . . . 6  |-  ( suc  ( `' G `  B )  e.  om  ->  ( ( G `  suc  ( `' G `  B ) )  =  ( B  +  1 )  ->  ( `' G `  ( B  +  1 ) )  =  suc  ( `' G `  B ) ) )
2819, 25, 27sylc 60 . . . . 5  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( `' G `  ( B  +  1 ) )  =  suc  ( `' G `  B ) )
2928fveq2d 5876 . . . 4  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( R `  ( `' G `  ( B  +  1
) ) )  =  ( R `  suc  ( `' G `  B ) ) )
3029fveq2d 5876 . . 3  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( 2nd `  ( R `  ( `' G `  ( B  +  1 ) ) ) )  =  ( 2nd `  ( R `
 suc  ( `' G `  B )
) ) )
3114, 30eqtrd 2498 . 2  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( S `  ( B  +  1 ) )  =  ( 2nd `  ( R `
 suc  ( `' G `  B )
) ) )
32 frsuc 7120 . . . . . . . 8  |-  ( ( `' G `  B )  e.  om  ->  (
( rec ( ( x  e.  _V , 
y  e.  _V  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. )  |`  om ) `  suc  ( `' G `  B ) )  =  ( ( x  e. 
_V ,  y  e. 
_V  |->  <. ( x  + 
1 ) ,  ( x F y )
>. ) `  ( ( rec ( ( x  e.  _V ,  y  e.  _V  |->  <. (
x  +  1 ) ,  ( x F y ) >. ) ,  <. C ,  A >. )  |`  om ) `  ( `' G `  B ) ) ) )
334fveq1i 5873 . . . . . . . 8  |-  ( R `
 suc  ( `' G `  B )
)  =  ( ( rec ( ( x  e.  _V ,  y  e.  _V  |->  <. (
x  +  1 ) ,  ( x F y ) >. ) ,  <. C ,  A >. )  |`  om ) `  suc  ( `' G `  B ) )
344fveq1i 5873 . . . . . . . . 9  |-  ( R `
 ( `' G `  B ) )  =  ( ( rec (
( x  e.  _V ,  y  e.  _V  |->  <. ( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. )  |`  om ) `  ( `' G `  B ) )
3534fveq2i 5875 . . . . . . . 8  |-  ( ( x  e.  _V , 
y  e.  _V  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) `  ( R `  ( `' G `  B ) ) )  =  ( ( x  e.  _V ,  y  e.  _V  |->  <. (
x  +  1 ) ,  ( x F y ) >. ) `  ( ( rec (
( x  e.  _V ,  y  e.  _V  |->  <. ( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. )  |`  om ) `  ( `' G `  B ) ) )
3632, 33, 353eqtr4g 2523 . . . . . . 7  |-  ( ( `' G `  B )  e.  om  ->  ( R `  suc  ( `' G `  B ) )  =  ( ( x  e.  _V , 
y  e.  _V  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) `  ( R `  ( `' G `  B ) ) ) )
371, 2, 3, 4om2uzrdg 12070 . . . . . . . . 9  |-  ( ( `' G `  B )  e.  om  ->  ( R `  ( `' G `  B )
)  =  <. ( G `  ( `' G `  B )
) ,  ( 2nd `  ( R `  ( `' G `  B ) ) ) >. )
3837fveq2d 5876 . . . . . . . 8  |-  ( ( `' G `  B )  e.  om  ->  (
( x  e.  _V ,  y  e.  _V  |->  <. ( x  +  1 ) ,  ( x F y ) >.
) `  ( R `  ( `' G `  B ) ) )  =  ( ( x  e.  _V ,  y  e.  _V  |->  <. (
x  +  1 ) ,  ( x F y ) >. ) `  <. ( G `  ( `' G `  B ) ) ,  ( 2nd `  ( R `  ( `' G `  B ) ) ) >. )
)
39 df-ov 6299 . . . . . . . 8  |-  ( ( G `  ( `' G `  B ) ) ( x  e. 
_V ,  y  e. 
_V  |->  <. ( x  + 
1 ) ,  ( x F y )
>. ) ( 2nd `  ( R `  ( `' G `  B )
) ) )  =  ( ( x  e. 
_V ,  y  e. 
_V  |->  <. ( x  + 
1 ) ,  ( x F y )
>. ) `  <. ( G `  ( `' G `  B )
) ,  ( 2nd `  ( R `  ( `' G `  B ) ) ) >. )
4038, 39syl6eqr 2516 . . . . . . 7  |-  ( ( `' G `  B )  e.  om  ->  (
( x  e.  _V ,  y  e.  _V  |->  <. ( x  +  1 ) ,  ( x F y ) >.
) `  ( R `  ( `' G `  B ) ) )  =  ( ( G `
 ( `' G `  B ) ) ( x  e.  _V , 
y  e.  _V  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) ( 2nd `  ( R `  ( `' G `  B )
) ) ) )
4136, 40eqtrd 2498 . . . . . 6  |-  ( ( `' G `  B )  e.  om  ->  ( R `  suc  ( `' G `  B ) )  =  ( ( G `  ( `' G `  B ) ) ( x  e. 
_V ,  y  e. 
_V  |->  <. ( x  + 
1 ) ,  ( x F y )
>. ) ( 2nd `  ( R `  ( `' G `  B )
) ) ) )
42 fvex 5882 . . . . . . 7  |-  ( G `
 ( `' G `  B ) )  e. 
_V
43 fvex 5882 . . . . . . 7  |-  ( 2nd `  ( R `  ( `' G `  B ) ) )  e.  _V
44 oveq1 6303 . . . . . . . . 9  |-  ( z  =  ( G `  ( `' G `  B ) )  ->  ( z  +  1 )  =  ( ( G `  ( `' G `  B ) )  +  1 ) )
45 oveq1 6303 . . . . . . . . 9  |-  ( z  =  ( G `  ( `' G `  B ) )  ->  ( z F w )  =  ( ( G `  ( `' G `  B ) ) F w ) )
4644, 45opeq12d 4227 . . . . . . . 8  |-  ( z  =  ( G `  ( `' G `  B ) )  ->  <. ( z  +  1 ) ,  ( z F w ) >.  =  <. ( ( G `  ( `' G `  B ) )  +  1 ) ,  ( ( G `
 ( `' G `  B ) ) F w ) >. )
47 oveq2 6304 . . . . . . . . 9  |-  ( w  =  ( 2nd `  ( R `  ( `' G `  B )
) )  ->  (
( G `  ( `' G `  B ) ) F w )  =  ( ( G `
 ( `' G `  B ) ) F ( 2nd `  ( R `  ( `' G `  B )
) ) ) )
4847opeq2d 4226 . . . . . . . 8  |-  ( w  =  ( 2nd `  ( R `  ( `' G `  B )
) )  ->  <. (
( G `  ( `' G `  B ) )  +  1 ) ,  ( ( G `
 ( `' G `  B ) ) F w ) >.  =  <. ( ( G `  ( `' G `  B ) )  +  1 ) ,  ( ( G `
 ( `' G `  B ) ) F ( 2nd `  ( R `  ( `' G `  B )
) ) ) >.
)
49 oveq1 6303 . . . . . . . . . 10  |-  ( x  =  z  ->  (
x  +  1 )  =  ( z  +  1 ) )
50 oveq1 6303 . . . . . . . . . 10  |-  ( x  =  z  ->  (
x F y )  =  ( z F y ) )
5149, 50opeq12d 4227 . . . . . . . . 9  |-  ( x  =  z  ->  <. (
x  +  1 ) ,  ( x F y ) >.  =  <. ( z  +  1 ) ,  ( z F y ) >. )
52 oveq2 6304 . . . . . . . . . 10  |-  ( y  =  w  ->  (
z F y )  =  ( z F w ) )
5352opeq2d 4226 . . . . . . . . 9  |-  ( y  =  w  ->  <. (
z  +  1 ) ,  ( z F y ) >.  =  <. ( z  +  1 ) ,  ( z F w ) >. )
5451, 53cbvmpt2v 6376 . . . . . . . 8  |-  ( x  e.  _V ,  y  e.  _V  |->  <. (
x  +  1 ) ,  ( x F y ) >. )  =  ( z  e. 
_V ,  w  e. 
_V  |->  <. ( z  +  1 ) ,  ( z F w )
>. )
55 opex 4720 . . . . . . . 8  |-  <. (
( G `  ( `' G `  B ) )  +  1 ) ,  ( ( G `
 ( `' G `  B ) ) F ( 2nd `  ( R `  ( `' G `  B )
) ) ) >.  e.  _V
5646, 48, 54, 55ovmpt2 6437 . . . . . . 7  |-  ( ( ( G `  ( `' G `  B ) )  e.  _V  /\  ( 2nd `  ( R `
 ( `' G `  B ) ) )  e.  _V )  -> 
( ( G `  ( `' G `  B ) ) ( x  e. 
_V ,  y  e. 
_V  |->  <. ( x  + 
1 ) ,  ( x F y )
>. ) ( 2nd `  ( R `  ( `' G `  B )
) ) )  = 
<. ( ( G `  ( `' G `  B ) )  +  1 ) ,  ( ( G `
 ( `' G `  B ) ) F ( 2nd `  ( R `  ( `' G `  B )
) ) ) >.
)
5742, 43, 56mp2an 672 . . . . . 6  |-  ( ( G `  ( `' G `  B ) ) ( x  e. 
_V ,  y  e. 
_V  |->  <. ( x  + 
1 ) ,  ( x F y )
>. ) ( 2nd `  ( R `  ( `' G `  B )
) ) )  = 
<. ( ( G `  ( `' G `  B ) )  +  1 ) ,  ( ( G `
 ( `' G `  B ) ) F ( 2nd `  ( R `  ( `' G `  B )
) ) ) >.
5841, 57syl6eq 2514 . . . . 5  |-  ( ( `' G `  B )  e.  om  ->  ( R `  suc  ( `' G `  B ) )  =  <. (
( G `  ( `' G `  B ) )  +  1 ) ,  ( ( G `
 ( `' G `  B ) ) F ( 2nd `  ( R `  ( `' G `  B )
) ) ) >.
)
5958fveq2d 5876 . . . 4  |-  ( ( `' G `  B )  e.  om  ->  ( 2nd `  ( R `  suc  ( `' G `  B ) ) )  =  ( 2nd `  <. ( ( G `  ( `' G `  B ) )  +  1 ) ,  ( ( G `
 ( `' G `  B ) ) F ( 2nd `  ( R `  ( `' G `  B )
) ) ) >.
) )
60 ovex 6324 . . . . 5  |-  ( ( G `  ( `' G `  B ) )  +  1 )  e.  _V
61 ovex 6324 . . . . 5  |-  ( ( G `  ( `' G `  B ) ) F ( 2nd `  ( R `  ( `' G `  B ) ) ) )  e. 
_V
6260, 61op2nd 6808 . . . 4  |-  ( 2nd `  <. ( ( G `
 ( `' G `  B ) )  +  1 ) ,  ( ( G `  ( `' G `  B ) ) F ( 2nd `  ( R `  ( `' G `  B ) ) ) ) >.
)  =  ( ( G `  ( `' G `  B ) ) F ( 2nd `  ( R `  ( `' G `  B ) ) ) )
6359, 62syl6eq 2514 . . 3  |-  ( ( `' G `  B )  e.  om  ->  ( 2nd `  ( R `  suc  ( `' G `  B ) ) )  =  ( ( G `
 ( `' G `  B ) ) F ( 2nd `  ( R `  ( `' G `  B )
) ) ) )
6417, 63syl 16 . 2  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( 2nd `  ( R `  suc  ( `' G `  B ) ) )  =  ( ( G `  ( `' G `  B ) ) F ( 2nd `  ( R `  ( `' G `  B ) ) ) ) )
651, 2, 3, 4uzrdglem 12071 . . . . . 6  |-  ( B  e.  ( ZZ>= `  C
)  ->  <. B , 
( 2nd `  ( R `  ( `' G `  B )
) ) >.  e.  ran  R )
6665, 5syl6eleqr 2556 . . . . 5  |-  ( B  e.  ( ZZ>= `  C
)  ->  <. B , 
( 2nd `  ( R `  ( `' G `  B )
) ) >.  e.  S
)
67 funopfv 5912 . . . . 5  |-  ( Fun 
S  ->  ( <. B ,  ( 2nd `  ( R `  ( `' G `  B )
) ) >.  e.  S  ->  ( S `  B
)  =  ( 2nd `  ( R `  ( `' G `  B ) ) ) ) )
688, 66, 67mpsyl 63 . . . 4  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( S `  B )  =  ( 2nd `  ( R `
 ( `' G `  B ) ) ) )
6968eqcomd 2465 . . 3  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( 2nd `  ( R `  ( `' G `  B ) ) )  =  ( S `  B ) )
7023, 69oveq12d 6314 . 2  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( ( G `  ( `' G `  B )
) F ( 2nd `  ( R `  ( `' G `  B ) ) ) )  =  ( B F ( S `  B ) ) )
7131, 64, 703eqtrd 2502 1  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( S `  ( B  +  1 ) )  =  ( B F ( S `
 B ) ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    = wceq 1395    e. wcel 1819   _Vcvv 3109   <.cop 4038    |-> cmpt 4515   suc csuc 4889   `'ccnv 5007   ran crn 5009    |` cres 5010   Fun wfun 5588    Fn wfn 5589   -1-1-onto->wf1o 5593   ` cfv 5594  (class class class)co 6296    |-> cmpt2 6298   omcom 6699   2ndc2nd 6798   reccrdg 7093   1c1 9510    + caddc 9512   ZZcz 10885   ZZ>=cuz 11106
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-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
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-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-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-2nd 6800  df-recs 7060  df-rdg 7094  df-er 7329  df-en 7536  df-dom 7537  df-sdom 7538  df-pnf 9647  df-mnf 9648  df-xr 9649  df-ltxr 9650  df-le 9651  df-sub 9826  df-neg 9827  df-nn 10557  df-n0 10817  df-z 10886  df-uz 11107
This theorem is referenced by:  seqp1  12125
  Copyright terms: Public domain W3C validator