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

Theorem om2uzrdg 11035
Description: A helper lemma for the value of a recursive definition generator on upper integers (typically either  NN or  NN0) with characteristic function  F ( x ,  y ) and initial value  A. Normally  F is a function on the partition, and  A is a member of the partition. See also comment in om2uz0i 11026. (Contributed by Mario Carneiro, 26-Jun-2013.) (Revised by Mario Carneiro, 18-Nov-2014.)
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 )
Assertion
Ref Expression
om2uzrdg  |-  ( B  e.  om  ->  ( R `  B )  =  <. ( G `  B ) ,  ( 2nd `  ( R `
 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)    G( x)

Proof of Theorem om2uzrdg
Dummy variables  z  w  v are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fveq2 5541 . . 3  |-  ( z  =  (/)  ->  ( R `
 z )  =  ( R `  (/) ) )
2 fveq2 5541 . . . 4  |-  ( z  =  (/)  ->  ( G `
 z )  =  ( G `  (/) ) )
31fveq2d 5545 . . . 4  |-  ( z  =  (/)  ->  ( 2nd `  ( R `  z
) )  =  ( 2nd `  ( R `
 (/) ) ) )
42, 3opeq12d 3820 . . 3  |-  ( z  =  (/)  ->  <. ( G `  z ) ,  ( 2nd `  ( R `  z )
) >.  =  <. ( G `  (/) ) ,  ( 2nd `  ( R `  (/) ) )
>. )
51, 4eqeq12d 2310 . 2  |-  ( z  =  (/)  ->  ( ( R `  z )  =  <. ( G `  z ) ,  ( 2nd `  ( R `
 z ) )
>. 
<->  ( R `  (/) )  = 
<. ( G `  (/) ) ,  ( 2nd `  ( R `  (/) ) )
>. ) )
6 fveq2 5541 . . 3  |-  ( z  =  v  ->  ( R `  z )  =  ( R `  v ) )
7 fveq2 5541 . . . 4  |-  ( z  =  v  ->  ( G `  z )  =  ( G `  v ) )
86fveq2d 5545 . . . 4  |-  ( z  =  v  ->  ( 2nd `  ( R `  z ) )  =  ( 2nd `  ( R `  v )
) )
97, 8opeq12d 3820 . . 3  |-  ( z  =  v  ->  <. ( G `  z ) ,  ( 2nd `  ( R `  z )
) >.  =  <. ( G `  v ) ,  ( 2nd `  ( R `  v )
) >. )
106, 9eqeq12d 2310 . 2  |-  ( z  =  v  ->  (
( R `  z
)  =  <. ( G `  z ) ,  ( 2nd `  ( R `  z )
) >. 
<->  ( R `  v
)  =  <. ( G `  v ) ,  ( 2nd `  ( R `  v )
) >. ) )
11 fveq2 5541 . . 3  |-  ( z  =  suc  v  -> 
( R `  z
)  =  ( R `
 suc  v )
)
12 fveq2 5541 . . . 4  |-  ( z  =  suc  v  -> 
( G `  z
)  =  ( G `
 suc  v )
)
1311fveq2d 5545 . . . 4  |-  ( z  =  suc  v  -> 
( 2nd `  ( R `  z )
)  =  ( 2nd `  ( R `  suc  v ) ) )
1412, 13opeq12d 3820 . . 3  |-  ( z  =  suc  v  ->  <. ( G `  z
) ,  ( 2nd `  ( R `  z
) ) >.  =  <. ( G `  suc  v
) ,  ( 2nd `  ( R `  suc  v ) ) >.
)
1511, 14eqeq12d 2310 . 2  |-  ( z  =  suc  v  -> 
( ( R `  z )  =  <. ( G `  z ) ,  ( 2nd `  ( R `  z )
) >. 
<->  ( R `  suc  v )  =  <. ( G `  suc  v
) ,  ( 2nd `  ( R `  suc  v ) ) >.
) )
16 fveq2 5541 . . 3  |-  ( z  =  B  ->  ( R `  z )  =  ( R `  B ) )
17 fveq2 5541 . . . 4  |-  ( z  =  B  ->  ( G `  z )  =  ( G `  B ) )
1816fveq2d 5545 . . . 4  |-  ( z  =  B  ->  ( 2nd `  ( R `  z ) )  =  ( 2nd `  ( R `  B )
) )
1917, 18opeq12d 3820 . . 3  |-  ( z  =  B  ->  <. ( G `  z ) ,  ( 2nd `  ( R `  z )
) >.  =  <. ( G `  B ) ,  ( 2nd `  ( R `  B )
) >. )
2016, 19eqeq12d 2310 . 2  |-  ( z  =  B  ->  (
( R `  z
)  =  <. ( G `  z ) ,  ( 2nd `  ( R `  z )
) >. 
<->  ( R `  B
)  =  <. ( G `  B ) ,  ( 2nd `  ( R `  B )
) >. ) )
21 uzrdg.2 . . . . 5  |-  R  =  ( rec ( ( x  e.  _V , 
y  e.  _V  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. )  |`  om )
2221fveq1i 5542 . . . 4  |-  ( R `
 (/) )  =  ( ( rec ( ( x  e.  _V , 
y  e.  _V  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. )  |`  om ) `  (/) )
23 opex 4253 . . . . 5  |-  <. C ,  A >.  e.  _V
24 fr0g 6464 . . . . 5  |-  ( <. C ,  A >.  e. 
_V  ->  ( ( rec ( ( x  e. 
_V ,  y  e. 
_V  |->  <. ( x  + 
1 ) ,  ( x F y )
>. ) ,  <. C ,  A >. )  |`  om ) `  (/) )  =  <. C ,  A >. )
2523, 24ax-mp 8 . . . 4  |-  ( ( rec ( ( x  e.  _V ,  y  e.  _V  |->  <. (
x  +  1 ) ,  ( x F y ) >. ) ,  <. C ,  A >. )  |`  om ) `  (/) )  =  <. C ,  A >.
2622, 25eqtri 2316 . . 3  |-  ( R `
 (/) )  =  <. C ,  A >.
27 om2uz.1 . . . . 5  |-  C  e.  ZZ
28 om2uz.2 . . . . 5  |-  G  =  ( rec ( ( x  e.  _V  |->  ( x  +  1 ) ) ,  C )  |`  om )
2927, 28om2uz0i 11026 . . . 4  |-  ( G `
 (/) )  =  C
3026fveq2i 5544 . . . . 5  |-  ( 2nd `  ( R `  (/) ) )  =  ( 2nd `  <. C ,  A >. )
3127elexi 2810 . . . . . 6  |-  C  e. 
_V
32 uzrdg.1 . . . . . 6  |-  A  e. 
_V
3331, 32op2nd 6145 . . . . 5  |-  ( 2nd `  <. C ,  A >. )  =  A
3430, 33eqtri 2316 . . . 4  |-  ( 2nd `  ( R `  (/) ) )  =  A
3529, 34opeq12i 3817 . . 3  |-  <. ( G `  (/) ) ,  ( 2nd `  ( R `  (/) ) )
>.  =  <. C ,  A >.
3626, 35eqtr4i 2319 . 2  |-  ( R `
 (/) )  =  <. ( G `  (/) ) ,  ( 2nd `  ( R `  (/) ) )
>.
37 frsuc 6465 . . . . . 6  |-  ( v  e.  om  ->  (
( rec ( ( x  e.  _V , 
y  e.  _V  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. )  |`  om ) `  suc  v )  =  ( ( 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 ) `  v ) ) )
3821fveq1i 5542 . . . . . 6  |-  ( R `
 suc  v )  =  ( ( rec ( ( x  e. 
_V ,  y  e. 
_V  |->  <. ( x  + 
1 ) ,  ( x F y )
>. ) ,  <. C ,  A >. )  |`  om ) `  suc  v )
3921fveq1i 5542 . . . . . . 7  |-  ( R `
 v )  =  ( ( rec (
( x  e.  _V ,  y  e.  _V  |->  <. ( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. )  |`  om ) `  v )
4039fveq2i 5544 . . . . . 6  |-  ( ( x  e.  _V , 
y  e.  _V  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) `  ( R `  v ) )  =  ( ( 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 ) `  v ) )
4137, 38, 403eqtr4g 2353 . . . . 5  |-  ( v  e.  om  ->  ( R `  suc  v )  =  ( ( x  e.  _V ,  y  e.  _V  |->  <. (
x  +  1 ) ,  ( x F y ) >. ) `  ( R `  v
) ) )
42 fveq2 5541 . . . . . 6  |-  ( ( R `  v )  =  <. ( G `  v ) ,  ( 2nd `  ( R `
 v ) )
>.  ->  ( ( x  e.  _V ,  y  e.  _V  |->  <. (
x  +  1 ) ,  ( x F y ) >. ) `  ( R `  v
) )  =  ( ( x  e.  _V ,  y  e.  _V  |->  <. ( x  +  1 ) ,  ( x F y ) >.
) `  <. ( G `
 v ) ,  ( 2nd `  ( R `  v )
) >. ) )
43 df-ov 5877 . . . . . . 7  |-  ( ( G `  v ) ( x  e.  _V ,  y  e.  _V  |->  <. ( x  +  1 ) ,  ( x F y ) >.
) ( 2nd `  ( R `  v )
) )  =  ( ( x  e.  _V ,  y  e.  _V  |->  <. ( x  +  1 ) ,  ( x F y ) >.
) `  <. ( G `
 v ) ,  ( 2nd `  ( R `  v )
) >. )
44 fvex 5555 . . . . . . . 8  |-  ( G `
 v )  e. 
_V
45 fvex 5555 . . . . . . . 8  |-  ( 2nd `  ( R `  v
) )  e.  _V
46 oveq1 5881 . . . . . . . . . 10  |-  ( w  =  ( G `  v )  ->  (
w  +  1 )  =  ( ( G `
 v )  +  1 ) )
47 oveq1 5881 . . . . . . . . . 10  |-  ( w  =  ( G `  v )  ->  (
w F z )  =  ( ( G `
 v ) F z ) )
4846, 47opeq12d 3820 . . . . . . . . 9  |-  ( w  =  ( G `  v )  ->  <. (
w  +  1 ) ,  ( w F z ) >.  =  <. ( ( G `  v
)  +  1 ) ,  ( ( G `
 v ) F z ) >. )
49 oveq2 5882 . . . . . . . . . 10  |-  ( z  =  ( 2nd `  ( R `  v )
)  ->  ( ( G `  v ) F z )  =  ( ( G `  v ) F ( 2nd `  ( R `
 v ) ) ) )
5049opeq2d 3819 . . . . . . . . 9  |-  ( z  =  ( 2nd `  ( R `  v )
)  ->  <. ( ( G `  v )  +  1 ) ,  ( ( G `  v ) F z ) >.  =  <. ( ( G `  v
)  +  1 ) ,  ( ( G `
 v ) F ( 2nd `  ( R `  v )
) ) >. )
51 oveq1 5881 . . . . . . . . . . 11  |-  ( x  =  w  ->  (
x  +  1 )  =  ( w  + 
1 ) )
52 oveq1 5881 . . . . . . . . . . 11  |-  ( x  =  w  ->  (
x F y )  =  ( w F y ) )
5351, 52opeq12d 3820 . . . . . . . . . 10  |-  ( x  =  w  ->  <. (
x  +  1 ) ,  ( x F y ) >.  =  <. ( w  +  1 ) ,  ( w F y ) >. )
54 oveq2 5882 . . . . . . . . . . 11  |-  ( y  =  z  ->  (
w F y )  =  ( w F z ) )
5554opeq2d 3819 . . . . . . . . . 10  |-  ( y  =  z  ->  <. (
w  +  1 ) ,  ( w F y ) >.  =  <. ( w  +  1 ) ,  ( w F z ) >. )
5653, 55cbvmpt2v 5942 . . . . . . . . 9  |-  ( x  e.  _V ,  y  e.  _V  |->  <. (
x  +  1 ) ,  ( x F y ) >. )  =  ( w  e. 
_V ,  z  e. 
_V  |->  <. ( w  + 
1 ) ,  ( w F z )
>. )
57 opex 4253 . . . . . . . . 9  |-  <. (
( G `  v
)  +  1 ) ,  ( ( G `
 v ) F ( 2nd `  ( R `  v )
) ) >.  e.  _V
5848, 50, 56, 57ovmpt2 5999 . . . . . . . 8  |-  ( ( ( G `  v
)  e.  _V  /\  ( 2nd `  ( R `
 v ) )  e.  _V )  -> 
( ( G `  v ) ( x  e.  _V ,  y  e.  _V  |->  <. (
x  +  1 ) ,  ( x F y ) >. )
( 2nd `  ( R `  v )
) )  =  <. ( ( G `  v
)  +  1 ) ,  ( ( G `
 v ) F ( 2nd `  ( R `  v )
) ) >. )
5944, 45, 58mp2an 653 . . . . . . 7  |-  ( ( G `  v ) ( x  e.  _V ,  y  e.  _V  |->  <. ( x  +  1 ) ,  ( x F y ) >.
) ( 2nd `  ( R `  v )
) )  =  <. ( ( G `  v
)  +  1 ) ,  ( ( G `
 v ) F ( 2nd `  ( R `  v )
) ) >.
6043, 59eqtr3i 2318 . . . . . 6  |-  ( ( x  e.  _V , 
y  e.  _V  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) `  <. ( G `
 v ) ,  ( 2nd `  ( R `  v )
) >. )  =  <. ( ( G `  v
)  +  1 ) ,  ( ( G `
 v ) F ( 2nd `  ( R `  v )
) ) >.
6142, 60syl6eq 2344 . . . . 5  |-  ( ( R `  v )  =  <. ( G `  v ) ,  ( 2nd `  ( R `
 v ) )
>.  ->  ( ( x  e.  _V ,  y  e.  _V  |->  <. (
x  +  1 ) ,  ( x F y ) >. ) `  ( R `  v
) )  =  <. ( ( G `  v
)  +  1 ) ,  ( ( G `
 v ) F ( 2nd `  ( R `  v )
) ) >. )
6241, 61sylan9eq 2348 . . . 4  |-  ( ( v  e.  om  /\  ( R `  v )  =  <. ( G `  v ) ,  ( 2nd `  ( R `
 v ) )
>. )  ->  ( R `
 suc  v )  =  <. ( ( G `
 v )  +  1 ) ,  ( ( G `  v
) F ( 2nd `  ( R `  v
) ) ) >.
)
6327, 28om2uzsuci 11027 . . . . . 6  |-  ( v  e.  om  ->  ( G `  suc  v )  =  ( ( G `
 v )  +  1 ) )
6463adantr 451 . . . . 5  |-  ( ( v  e.  om  /\  ( R `  v )  =  <. ( G `  v ) ,  ( 2nd `  ( R `
 v ) )
>. )  ->  ( G `
 suc  v )  =  ( ( G `
 v )  +  1 ) )
6562fveq2d 5545 . . . . . 6  |-  ( ( v  e.  om  /\  ( R `  v )  =  <. ( G `  v ) ,  ( 2nd `  ( R `
 v ) )
>. )  ->  ( 2nd `  ( R `  suc  v ) )  =  ( 2nd `  <. ( ( G `  v
)  +  1 ) ,  ( ( G `
 v ) F ( 2nd `  ( R `  v )
) ) >. )
)
66 ovex 5899 . . . . . . 7  |-  ( ( G `  v )  +  1 )  e. 
_V
67 ovex 5899 . . . . . . 7  |-  ( ( G `  v ) F ( 2nd `  ( R `  v )
) )  e.  _V
6866, 67op2nd 6145 . . . . . 6  |-  ( 2nd `  <. ( ( G `
 v )  +  1 ) ,  ( ( G `  v
) F ( 2nd `  ( R `  v
) ) ) >.
)  =  ( ( G `  v ) F ( 2nd `  ( R `  v )
) )
6965, 68syl6eq 2344 . . . . 5  |-  ( ( v  e.  om  /\  ( R `  v )  =  <. ( G `  v ) ,  ( 2nd `  ( R `
 v ) )
>. )  ->  ( 2nd `  ( R `  suc  v ) )  =  ( ( G `  v ) F ( 2nd `  ( R `
 v ) ) ) )
7064, 69opeq12d 3820 . . . 4  |-  ( ( v  e.  om  /\  ( R `  v )  =  <. ( G `  v ) ,  ( 2nd `  ( R `
 v ) )
>. )  ->  <. ( G `  suc  v ) ,  ( 2nd `  ( R `  suc  v ) ) >.  =  <. ( ( G `  v
)  +  1 ) ,  ( ( G `
 v ) F ( 2nd `  ( R `  v )
) ) >. )
7162, 70eqtr4d 2331 . . 3  |-  ( ( v  e.  om  /\  ( R `  v )  =  <. ( G `  v ) ,  ( 2nd `  ( R `
 v ) )
>. )  ->  ( R `
 suc  v )  =  <. ( G `  suc  v ) ,  ( 2nd `  ( R `
 suc  v )
) >. )
7271ex 423 . 2  |-  ( v  e.  om  ->  (
( R `  v
)  =  <. ( G `  v ) ,  ( 2nd `  ( R `  v )
) >.  ->  ( R `  suc  v )  = 
<. ( G `  suc  v ) ,  ( 2nd `  ( R `
 suc  v )
) >. ) )
735, 10, 15, 20, 36, 72finds 4698 1  |-  ( B  e.  om  ->  ( R `  B )  =  <. ( G `  B ) ,  ( 2nd `  ( R `
 B ) )
>. )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 358    = wceq 1632    e. wcel 1696   _Vcvv 2801   (/)c0 3468   <.cop 3656    e. cmpt 4093   suc csuc 4410   omcom 4672    |` cres 4707   ` cfv 5271  (class class class)co 5874    e. cmpt2 5876   2ndc2nd 6137   reccrdg 6438   1c1 8754    + caddc 8756   ZZcz 10040
This theorem is referenced by:  uzrdglem  11036  uzrdgfni  11037  uzrdgsuci  11039
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
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-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-2nd 6139  df-recs 6404  df-rdg 6439
  Copyright terms: Public domain W3C validator