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

Theorem uzrdgsuci 11903
Description: Successor value of a recursive definition generator on upper integers. See comment in om2uzrdg 11899. (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 11901 . . . . 5  |-  S  Fn  ( ZZ>= `  C )
7 fnfun 5619 . . . . 5  |-  ( S  Fn  ( ZZ>= `  C
)  ->  Fun  S )
86, 7ax-mp 5 . . . 4  |-  Fun  S
9 peano2uz 11022 . . . . . 6  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( B  +  1 )  e.  ( ZZ>= `  C )
)
101, 2, 3, 4uzrdglem 11900 . . . . . 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 2553 . . . 4  |-  ( B  e.  ( ZZ>= `  C
)  ->  <. ( B  +  1 ) ,  ( 2nd `  ( R `  ( `' G `  ( B  +  1 ) ) ) ) >.  e.  S
)
13 funopfv 5843 . . . 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 11896 . . . . . . . 8  |-  G : om
-1-1-onto-> ( ZZ>= `  C )
16 f1ocnvdm 6101 . . . . . . . 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 6609 . . . . . . 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 11891 . . . . . . . 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 6096 . . . . . . . . 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 6218 . . . . . . 7  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( ( G `  ( `' G `  B )
)  +  1 )  =  ( B  + 
1 ) )
2521, 24eqtrd 2495 . . . . . 6  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( G `  suc  ( `' G `  B ) )  =  ( B  +  1 ) )
26 f1ocnvfv 6097 . . . . . . 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 5806 . . . 4  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( R `  ( `' G `  ( B  +  1
) ) )  =  ( R `  suc  ( `' G `  B ) ) )
3029fveq2d 5806 . . 3  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( 2nd `  ( R `  ( `' G `  ( B  +  1 ) ) ) )  =  ( 2nd `  ( R `
 suc  ( `' G `  B )
) ) )
3114, 30eqtrd 2495 . 2  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( S `  ( B  +  1 ) )  =  ( 2nd `  ( R `
 suc  ( `' G `  B )
) ) )
32 frsuc 7005 . . . . . . . 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 5803 . . . . . . . 8  |-  ( R `
 suc  ( `' G `  B )
)  =  ( ( rec ( ( x  e.  _V ,  y  e.  _V  |->  <. (
x  +  1 ) ,  ( x F y ) >. ) ,  <. C ,  A >. )  |`  om ) `  suc  ( `' G `  B ) )
344fveq1i 5803 . . . . . . . . 9  |-  ( R `
 ( `' G `  B ) )  =  ( ( rec (
( x  e.  _V ,  y  e.  _V  |->  <. ( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. )  |`  om ) `  ( `' G `  B ) )
3534fveq2i 5805 . . . . . . . 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 2520 . . . . . . 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 11899 . . . . . . . . 9  |-  ( ( `' G `  B )  e.  om  ->  ( R `  ( `' G `  B )
)  =  <. ( G `  ( `' G `  B )
) ,  ( 2nd `  ( R `  ( `' G `  B ) ) ) >. )
3837fveq2d 5806 . . . . . . . 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 6206 . . . . . . . 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 2513 . . . . . . 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 2495 . . . . . 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 5812 . . . . . . 7  |-  ( G `
 ( `' G `  B ) )  e. 
_V
43 fvex 5812 . . . . . . 7  |-  ( 2nd `  ( R `  ( `' G `  B ) ) )  e.  _V
44 oveq1 6210 . . . . . . . . 9  |-  ( z  =  ( G `  ( `' G `  B ) )  ->  ( z  +  1 )  =  ( ( G `  ( `' G `  B ) )  +  1 ) )
45 oveq1 6210 . . . . . . . . 9  |-  ( z  =  ( G `  ( `' G `  B ) )  ->  ( z F w )  =  ( ( G `  ( `' G `  B ) ) F w ) )
4644, 45opeq12d 4178 . . . . . . . 8  |-  ( z  =  ( G `  ( `' G `  B ) )  ->  <. ( z  +  1 ) ,  ( z F w ) >.  =  <. ( ( G `  ( `' G `  B ) )  +  1 ) ,  ( ( G `
 ( `' G `  B ) ) F w ) >. )
47 oveq2 6211 . . . . . . . . 9  |-  ( w  =  ( 2nd `  ( R `  ( `' G `  B )
) )  ->  (
( G `  ( `' G `  B ) ) F w )  =  ( ( G `
 ( `' G `  B ) ) F ( 2nd `  ( R `  ( `' G `  B )
) ) ) )
4847opeq2d 4177 . . . . . . . 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 6210 . . . . . . . . . 10  |-  ( x  =  z  ->  (
x  +  1 )  =  ( z  +  1 ) )
50 oveq1 6210 . . . . . . . . . 10  |-  ( x  =  z  ->  (
x F y )  =  ( z F y ) )
5149, 50opeq12d 4178 . . . . . . . . 9  |-  ( x  =  z  ->  <. (
x  +  1 ) ,  ( x F y ) >.  =  <. ( z  +  1 ) ,  ( z F y ) >. )
52 oveq2 6211 . . . . . . . . . 10  |-  ( y  =  w  ->  (
z F y )  =  ( z F w ) )
5352opeq2d 4177 . . . . . . . . 9  |-  ( y  =  w  ->  <. (
z  +  1 ) ,  ( z F y ) >.  =  <. ( z  +  1 ) ,  ( z F w ) >. )
5451, 53cbvmpt2v 6278 . . . . . . . 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 4667 . . . . . . . 8  |-  <. (
( G `  ( `' G `  B ) )  +  1 ) ,  ( ( G `
 ( `' G `  B ) ) F ( 2nd `  ( R `  ( `' G `  B )
) ) ) >.  e.  _V
5646, 48, 54, 55ovmpt2 6339 . . . . . . 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 2511 . . . . 5  |-  ( ( `' G `  B )  e.  om  ->  ( R `  suc  ( `' G `  B ) )  =  <. (
( G `  ( `' G `  B ) )  +  1 ) ,  ( ( G `
 ( `' G `  B ) ) F ( 2nd `  ( R `  ( `' G `  B )
) ) ) >.
)
5958fveq2d 5806 . . . 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 6228 . . . . 5  |-  ( ( G `  ( `' G `  B ) )  +  1 )  e.  _V
61 ovex 6228 . . . . 5  |-  ( ( G `  ( `' G `  B ) ) F ( 2nd `  ( R `  ( `' G `  B ) ) ) )  e. 
_V
6260, 61op2nd 6699 . . . 4  |-  ( 2nd `  <. ( ( G `
 ( `' G `  B ) )  +  1 ) ,  ( ( G `  ( `' G `  B ) ) F ( 2nd `  ( R `  ( `' G `  B ) ) ) ) >.
)  =  ( ( G `  ( `' G `  B ) ) F ( 2nd `  ( R `  ( `' G `  B ) ) ) )
6359, 62syl6eq 2511 . . 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 11900 . . . . . 6  |-  ( B  e.  ( ZZ>= `  C
)  ->  <. B , 
( 2nd `  ( R `  ( `' G `  B )
) ) >.  e.  ran  R )
6665, 5syl6eleqr 2553 . . . . 5  |-  ( B  e.  ( ZZ>= `  C
)  ->  <. B , 
( 2nd `  ( R `  ( `' G `  B )
) ) >.  e.  S
)
67 funopfv 5843 . . . . 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 2462 . . 3  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( 2nd `  ( R `  ( `' G `  B ) ) )  =  ( S `  B ) )
7023, 69oveq12d 6221 . 2  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( ( G `  ( `' G `  B )
) F ( 2nd `  ( R `  ( `' G `  B ) ) ) )  =  ( B F ( S `  B ) ) )
7131, 64, 703eqtrd 2499 1  |-  ( B  e.  ( ZZ>= `  C
)  ->  ( S `  ( B  +  1 ) )  =  ( B F ( S `
 B ) ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    = wceq 1370    e. wcel 1758   _Vcvv 3078   <.cop 3994    |-> cmpt 4461   suc csuc 4832   `'ccnv 4950   ran crn 4952    |` cres 4953   Fun wfun 5523    Fn wfn 5524   -1-1-onto->wf1o 5528   ` cfv 5529  (class class class)co 6203    |-> cmpt2 6205   omcom 6589   2ndc2nd 6689   reccrdg 6978   1c1 9397    + caddc 9399   ZZcz 10760   ZZ>=cuz 10975
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1592  ax-4 1603  ax-5 1671  ax-6 1710  ax-7 1730  ax-8 1760  ax-9 1762  ax-10 1777  ax-11 1782  ax-12 1794  ax-13 1955  ax-ext 2432  ax-sep 4524  ax-nul 4532  ax-pow 4581  ax-pr 4642  ax-un 6485  ax-cnex 9452  ax-resscn 9453  ax-1cn 9454  ax-icn 9455  ax-addcl 9456  ax-addrcl 9457  ax-mulcl 9458  ax-mulrcl 9459  ax-mulcom 9460  ax-addass 9461  ax-mulass 9462  ax-distr 9463  ax-i2m1 9464  ax-1ne0 9465  ax-1rid 9466  ax-rnegex 9467  ax-rrecex 9468  ax-cnre 9469  ax-pre-lttri 9470  ax-pre-lttrn 9471  ax-pre-ltadd 9472  ax-pre-mulgt0 9473
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 966  df-3an 967  df-tru 1373  df-ex 1588  df-nf 1591  df-sb 1703  df-eu 2266  df-mo 2267  df-clab 2440  df-cleq 2446  df-clel 2449  df-nfc 2604  df-ne 2650  df-nel 2651  df-ral 2804  df-rex 2805  df-reu 2806  df-rab 2808  df-v 3080  df-sbc 3295  df-csb 3399  df-dif 3442  df-un 3444  df-in 3446  df-ss 3453  df-pss 3455  df-nul 3749  df-if 3903  df-pw 3973  df-sn 3989  df-pr 3991  df-tp 3993  df-op 3995  df-uni 4203  df-iun 4284  df-br 4404  df-opab 4462  df-mpt 4463  df-tr 4497  df-eprel 4743  df-id 4747  df-po 4752  df-so 4753  df-fr 4790  df-we 4792  df-ord 4833  df-on 4834  df-lim 4835  df-suc 4836  df-xp 4957  df-rel 4958  df-cnv 4959  df-co 4960  df-dm 4961  df-rn 4962  df-res 4963  df-ima 4964  df-iota 5492  df-fun 5531  df-fn 5532  df-f 5533  df-f1 5534  df-fo 5535  df-f1o 5536  df-fv 5537  df-riota 6164  df-ov 6206  df-oprab 6207  df-mpt2 6208  df-om 6590  df-2nd 6691  df-recs 6945  df-rdg 6979  df-er 7214  df-en 7424  df-dom 7425  df-sdom 7426  df-pnf 9534  df-mnf 9535  df-xr 9536  df-ltxr 9537  df-le 9538  df-sub 9711  df-neg 9712  df-nn 10437  df-n0 10694  df-z 10761  df-uz 10976
This theorem is referenced by:  seqp1  11941
  Copyright terms: Public domain W3C validator