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

Theorem uzrdgsuci 11775
Description: Successor value of a recursive definition generator on upper integers. See comment in om2uzrdg 11771. (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 11773 . . . . 5  |-  S  Fn  ( ZZ>= `  C )
7 fnfun 5503 . . . . 5  |-  ( S  Fn  ( ZZ>= `  C
)  ->  Fun  S )
86, 7ax-mp 5 . . . 4  |-  Fun  S
9 peano2uz 10900 . . . . . 6  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( B  +  1 )  e.  ( ZZ>= `  C )
)
101, 2, 3, 4uzrdglem 11772 . . . . . 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 2529 . . . 4  |-  ( B  e.  ( ZZ>= `  C
)  ->  <. ( B  +  1 ) ,  ( 2nd `  ( R `  ( `' G `  ( B  +  1 ) ) ) ) >.  e.  S
)
13 funopfv 5726 . . . 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 11768 . . . . . . . 8  |-  G : om
-1-1-onto-> ( ZZ>= `  C )
16 f1ocnvdm 5984 . . . . . . . 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 6491 . . . . . . 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 11763 . . . . . . . 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 5979 . . . . . . . . 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 6101 . . . . . . 7  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( ( G `  ( `' G `  B )
)  +  1 )  =  ( B  + 
1 ) )
2521, 24eqtrd 2470 . . . . . 6  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( G `  suc  ( `' G `  B ) )  =  ( B  +  1 ) )
26 f1ocnvfv 5980 . . . . . . 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 5690 . . . 4  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( R `  ( `' G `  ( B  +  1
) ) )  =  ( R `  suc  ( `' G `  B ) ) )
3029fveq2d 5690 . . 3  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( 2nd `  ( R `  ( `' G `  ( B  +  1 ) ) ) )  =  ( 2nd `  ( R `
 suc  ( `' G `  B )
) ) )
3114, 30eqtrd 2470 . 2  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( S `  ( B  +  1 ) )  =  ( 2nd `  ( R `
 suc  ( `' G `  B )
) ) )
32 frsuc 6884 . . . . . . . 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 5687 . . . . . . . 8  |-  ( R `
 suc  ( `' G `  B )
)  =  ( ( rec ( ( x  e.  _V ,  y  e.  _V  |->  <. (
x  +  1 ) ,  ( x F y ) >. ) ,  <. C ,  A >. )  |`  om ) `  suc  ( `' G `  B ) )
344fveq1i 5687 . . . . . . . . 9  |-  ( R `
 ( `' G `  B ) )  =  ( ( rec (
( x  e.  _V ,  y  e.  _V  |->  <. ( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. )  |`  om ) `  ( `' G `  B ) )
3534fveq2i 5689 . . . . . . . 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 2495 . . . . . . 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 11771 . . . . . . . . 9  |-  ( ( `' G `  B )  e.  om  ->  ( R `  ( `' G `  B )
)  =  <. ( G `  ( `' G `  B )
) ,  ( 2nd `  ( R `  ( `' G `  B ) ) ) >. )
3837fveq2d 5690 . . . . . . . 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 6089 . . . . . . . 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 2488 . . . . . . 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 2470 . . . . . 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 5696 . . . . . . 7  |-  ( G `
 ( `' G `  B ) )  e. 
_V
43 fvex 5696 . . . . . . 7  |-  ( 2nd `  ( R `  ( `' G `  B ) ) )  e.  _V
44 oveq1 6093 . . . . . . . . 9  |-  ( z  =  ( G `  ( `' G `  B ) )  ->  ( z  +  1 )  =  ( ( G `  ( `' G `  B ) )  +  1 ) )
45 oveq1 6093 . . . . . . . . 9  |-  ( z  =  ( G `  ( `' G `  B ) )  ->  ( z F w )  =  ( ( G `  ( `' G `  B ) ) F w ) )
4644, 45opeq12d 4062 . . . . . . . 8  |-  ( z  =  ( G `  ( `' G `  B ) )  ->  <. ( z  +  1 ) ,  ( z F w ) >.  =  <. ( ( G `  ( `' G `  B ) )  +  1 ) ,  ( ( G `
 ( `' G `  B ) ) F w ) >. )
47 oveq2 6094 . . . . . . . . 9  |-  ( w  =  ( 2nd `  ( R `  ( `' G `  B )
) )  ->  (
( G `  ( `' G `  B ) ) F w )  =  ( ( G `
 ( `' G `  B ) ) F ( 2nd `  ( R `  ( `' G `  B )
) ) ) )
4847opeq2d 4061 . . . . . . . 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 6093 . . . . . . . . . 10  |-  ( x  =  z  ->  (
x  +  1 )  =  ( z  +  1 ) )
50 oveq1 6093 . . . . . . . . . 10  |-  ( x  =  z  ->  (
x F y )  =  ( z F y ) )
5149, 50opeq12d 4062 . . . . . . . . 9  |-  ( x  =  z  ->  <. (
x  +  1 ) ,  ( x F y ) >.  =  <. ( z  +  1 ) ,  ( z F y ) >. )
52 oveq2 6094 . . . . . . . . . 10  |-  ( y  =  w  ->  (
z F y )  =  ( z F w ) )
5352opeq2d 4061 . . . . . . . . 9  |-  ( y  =  w  ->  <. (
z  +  1 ) ,  ( z F y ) >.  =  <. ( z  +  1 ) ,  ( z F w ) >. )
5451, 53cbvmpt2v 6161 . . . . . . . 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 4551 . . . . . . . 8  |-  <. (
( G `  ( `' G `  B ) )  +  1 ) ,  ( ( G `
 ( `' G `  B ) ) F ( 2nd `  ( R `  ( `' G `  B )
) ) ) >.  e.  _V
5646, 48, 54, 55ovmpt2 6221 . . . . . . 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 2486 . . . . 5  |-  ( ( `' G `  B )  e.  om  ->  ( R `  suc  ( `' G `  B ) )  =  <. (
( G `  ( `' G `  B ) )  +  1 ) ,  ( ( G `
 ( `' G `  B ) ) F ( 2nd `  ( R `  ( `' G `  B )
) ) ) >.
)
5958fveq2d 5690 . . . 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 6111 . . . . 5  |-  ( ( G `  ( `' G `  B ) )  +  1 )  e.  _V
61 ovex 6111 . . . . 5  |-  ( ( G `  ( `' G `  B ) ) F ( 2nd `  ( R `  ( `' G `  B ) ) ) )  e. 
_V
6260, 61op2nd 6581 . . . 4  |-  ( 2nd `  <. ( ( G `
 ( `' G `  B ) )  +  1 ) ,  ( ( G `  ( `' G `  B ) ) F ( 2nd `  ( R `  ( `' G `  B ) ) ) ) >.
)  =  ( ( G `  ( `' G `  B ) ) F ( 2nd `  ( R `  ( `' G `  B ) ) ) )
6359, 62syl6eq 2486 . . 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 11772 . . . . . 6  |-  ( B  e.  ( ZZ>= `  C
)  ->  <. B , 
( 2nd `  ( R `  ( `' G `  B )
) ) >.  e.  ran  R )
6665, 5syl6eleqr 2529 . . . . 5  |-  ( B  e.  ( ZZ>= `  C
)  ->  <. B , 
( 2nd `  ( R `  ( `' G `  B )
) ) >.  e.  S
)
67 funopfv 5726 . . . . 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 2443 . . 3  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( 2nd `  ( R `  ( `' G `  B ) ) )  =  ( S `  B ) )
7023, 69oveq12d 6104 . 2  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( ( G `  ( `' G `  B )
) F ( 2nd `  ( R `  ( `' G `  B ) ) ) )  =  ( B F ( S `  B ) ) )
7131, 64, 703eqtrd 2474 1  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( S `  ( B  +  1 ) )  =  ( B F ( S `
 B ) ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    = wceq 1369    e. wcel 1756   _Vcvv 2967   <.cop 3878    e. cmpt 4345   suc csuc 4716   `'ccnv 4834   ran crn 4836    |` cres 4837   Fun wfun 5407    Fn wfn 5408   -1-1-onto->wf1o 5412   ` cfv 5413  (class class class)co 6086    e. cmpt2 6088   omcom 6471   2ndc2nd 6571   reccrdg 6857   1c1 9275    + caddc 9277   ZZcz 10638   ZZ>=cuz 10853
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1591  ax-4 1602  ax-5 1670  ax-6 1708  ax-7 1728  ax-8 1758  ax-9 1760  ax-10 1775  ax-11 1780  ax-12 1792  ax-13 1943  ax-ext 2419  ax-sep 4408  ax-nul 4416  ax-pow 4465  ax-pr 4526  ax-un 6367  ax-cnex 9330  ax-resscn 9331  ax-1cn 9332  ax-icn 9333  ax-addcl 9334  ax-addrcl 9335  ax-mulcl 9336  ax-mulrcl 9337  ax-mulcom 9338  ax-addass 9339  ax-mulass 9340  ax-distr 9341  ax-i2m1 9342  ax-1ne0 9343  ax-1rid 9344  ax-rnegex 9345  ax-rrecex 9346  ax-cnre 9347  ax-pre-lttri 9348  ax-pre-lttrn 9349  ax-pre-ltadd 9350  ax-pre-mulgt0 9351
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 966  df-3an 967  df-tru 1372  df-ex 1587  df-nf 1590  df-sb 1701  df-eu 2256  df-mo 2257  df-clab 2425  df-cleq 2431  df-clel 2434  df-nfc 2563  df-ne 2603  df-nel 2604  df-ral 2715  df-rex 2716  df-reu 2717  df-rab 2719  df-v 2969  df-sbc 3182  df-csb 3284  df-dif 3326  df-un 3328  df-in 3330  df-ss 3337  df-pss 3339  df-nul 3633  df-if 3787  df-pw 3857  df-sn 3873  df-pr 3875  df-tp 3877  df-op 3879  df-uni 4087  df-iun 4168  df-br 4288  df-opab 4346  df-mpt 4347  df-tr 4381  df-eprel 4627  df-id 4631  df-po 4636  df-so 4637  df-fr 4674  df-we 4676  df-ord 4717  df-on 4718  df-lim 4719  df-suc 4720  df-xp 4841  df-rel 4842  df-cnv 4843  df-co 4844  df-dm 4845  df-rn 4846  df-res 4847  df-ima 4848  df-iota 5376  df-fun 5415  df-fn 5416  df-f 5417  df-f1 5418  df-fo 5419  df-f1o 5420  df-fv 5421  df-riota 6047  df-ov 6089  df-oprab 6090  df-mpt2 6091  df-om 6472  df-2nd 6573  df-recs 6824  df-rdg 6858  df-er 7093  df-en 7303  df-dom 7304  df-sdom 7305  df-pnf 9412  df-mnf 9413  df-xr 9414  df-ltxr 9415  df-le 9416  df-sub 9589  df-neg 9590  df-nn 10315  df-n0 10572  df-z 10639  df-uz 10854
This theorem is referenced by:  seqp1  11813
  Copyright terms: Public domain W3C validator