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

Theorem om2uzrdg 11288
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 11279. (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 5720 . . 3  |-  ( z  =  (/)  ->  ( R `
 z )  =  ( R `  (/) ) )
2 fveq2 5720 . . . 4  |-  ( z  =  (/)  ->  ( G `
 z )  =  ( G `  (/) ) )
31fveq2d 5724 . . . 4  |-  ( z  =  (/)  ->  ( 2nd `  ( R `  z
) )  =  ( 2nd `  ( R `
 (/) ) ) )
42, 3opeq12d 3984 . . 3  |-  ( z  =  (/)  ->  <. ( G `  z ) ,  ( 2nd `  ( R `  z )
) >.  =  <. ( G `  (/) ) ,  ( 2nd `  ( R `  (/) ) )
>. )
51, 4eqeq12d 2449 . 2  |-  ( z  =  (/)  ->  ( ( R `  z )  =  <. ( G `  z ) ,  ( 2nd `  ( R `
 z ) )
>. 
<->  ( R `  (/) )  = 
<. ( G `  (/) ) ,  ( 2nd `  ( R `  (/) ) )
>. ) )
6 fveq2 5720 . . 3  |-  ( z  =  v  ->  ( R `  z )  =  ( R `  v ) )
7 fveq2 5720 . . . 4  |-  ( z  =  v  ->  ( G `  z )  =  ( G `  v ) )
86fveq2d 5724 . . . 4  |-  ( z  =  v  ->  ( 2nd `  ( R `  z ) )  =  ( 2nd `  ( R `  v )
) )
97, 8opeq12d 3984 . . 3  |-  ( z  =  v  ->  <. ( G `  z ) ,  ( 2nd `  ( R `  z )
) >.  =  <. ( G `  v ) ,  ( 2nd `  ( R `  v )
) >. )
106, 9eqeq12d 2449 . 2  |-  ( z  =  v  ->  (
( R `  z
)  =  <. ( G `  z ) ,  ( 2nd `  ( R `  z )
) >. 
<->  ( R `  v
)  =  <. ( G `  v ) ,  ( 2nd `  ( R `  v )
) >. ) )
11 fveq2 5720 . . 3  |-  ( z  =  suc  v  -> 
( R `  z
)  =  ( R `
 suc  v )
)
12 fveq2 5720 . . . 4  |-  ( z  =  suc  v  -> 
( G `  z
)  =  ( G `
 suc  v )
)
1311fveq2d 5724 . . . 4  |-  ( z  =  suc  v  -> 
( 2nd `  ( R `  z )
)  =  ( 2nd `  ( R `  suc  v ) ) )
1412, 13opeq12d 3984 . . 3  |-  ( z  =  suc  v  ->  <. ( G `  z
) ,  ( 2nd `  ( R `  z
) ) >.  =  <. ( G `  suc  v
) ,  ( 2nd `  ( R `  suc  v ) ) >.
)
1511, 14eqeq12d 2449 . 2  |-  ( z  =  suc  v  -> 
( ( R `  z )  =  <. ( G `  z ) ,  ( 2nd `  ( R `  z )
) >. 
<->  ( R `  suc  v )  =  <. ( G `  suc  v
) ,  ( 2nd `  ( R `  suc  v ) ) >.
) )
16 fveq2 5720 . . 3  |-  ( z  =  B  ->  ( R `  z )  =  ( R `  B ) )
17 fveq2 5720 . . . 4  |-  ( z  =  B  ->  ( G `  z )  =  ( G `  B ) )
1816fveq2d 5724 . . . 4  |-  ( z  =  B  ->  ( 2nd `  ( R `  z ) )  =  ( 2nd `  ( R `  B )
) )
1917, 18opeq12d 3984 . . 3  |-  ( z  =  B  ->  <. ( G `  z ) ,  ( 2nd `  ( R `  z )
) >.  =  <. ( G `  B ) ,  ( 2nd `  ( R `  B )
) >. )
2016, 19eqeq12d 2449 . 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 5721 . . . 4  |-  ( R `
 (/) )  =  ( ( rec ( ( x  e.  _V , 
y  e.  _V  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. )  |`  om ) `  (/) )
23 opex 4419 . . . . 5  |-  <. C ,  A >.  e.  _V
24 fr0g 6685 . . . . 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 2455 . . 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 11279 . . . 4  |-  ( G `
 (/) )  =  C
3026fveq2i 5723 . . . . 5  |-  ( 2nd `  ( R `  (/) ) )  =  ( 2nd `  <. C ,  A >. )
3127elexi 2957 . . . . . 6  |-  C  e. 
_V
32 uzrdg.1 . . . . . 6  |-  A  e. 
_V
3331, 32op2nd 6348 . . . . 5  |-  ( 2nd `  <. C ,  A >. )  =  A
3430, 33eqtri 2455 . . . 4  |-  ( 2nd `  ( R `  (/) ) )  =  A
3529, 34opeq12i 3981 . . 3  |-  <. ( G `  (/) ) ,  ( 2nd `  ( R `  (/) ) )
>.  =  <. C ,  A >.
3626, 35eqtr4i 2458 . 2  |-  ( R `
 (/) )  =  <. ( G `  (/) ) ,  ( 2nd `  ( R `  (/) ) )
>.
37 frsuc 6686 . . . . . 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 5721 . . . . . 6  |-  ( R `
 suc  v )  =  ( ( rec ( ( x  e. 
_V ,  y  e. 
_V  |->  <. ( x  + 
1 ) ,  ( x F y )
>. ) ,  <. C ,  A >. )  |`  om ) `  suc  v )
3921fveq1i 5721 . . . . . . 7  |-  ( R `
 v )  =  ( ( rec (
( x  e.  _V ,  y  e.  _V  |->  <. ( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. )  |`  om ) `  v )
4039fveq2i 5723 . . . . . 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 2492 . . . . 5  |-  ( v  e.  om  ->  ( R `  suc  v )  =  ( ( x  e.  _V ,  y  e.  _V  |->  <. (
x  +  1 ) ,  ( x F y ) >. ) `  ( R `  v
) ) )
42 fveq2 5720 . . . . . 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 6076 . . . . . . 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 5734 . . . . . . . 8  |-  ( G `
 v )  e. 
_V
45 fvex 5734 . . . . . . . 8  |-  ( 2nd `  ( R `  v
) )  e.  _V
46 oveq1 6080 . . . . . . . . . 10  |-  ( w  =  ( G `  v )  ->  (
w  +  1 )  =  ( ( G `
 v )  +  1 ) )
47 oveq1 6080 . . . . . . . . . 10  |-  ( w  =  ( G `  v )  ->  (
w F z )  =  ( ( G `
 v ) F z ) )
4846, 47opeq12d 3984 . . . . . . . . 9  |-  ( w  =  ( G `  v )  ->  <. (
w  +  1 ) ,  ( w F z ) >.  =  <. ( ( G `  v
)  +  1 ) ,  ( ( G `
 v ) F z ) >. )
49 oveq2 6081 . . . . . . . . . 10  |-  ( z  =  ( 2nd `  ( R `  v )
)  ->  ( ( G `  v ) F z )  =  ( ( G `  v ) F ( 2nd `  ( R `
 v ) ) ) )
5049opeq2d 3983 . . . . . . . . 9  |-  ( z  =  ( 2nd `  ( R `  v )
)  ->  <. ( ( G `  v )  +  1 ) ,  ( ( G `  v ) F z ) >.  =  <. ( ( G `  v
)  +  1 ) ,  ( ( G `
 v ) F ( 2nd `  ( R `  v )
) ) >. )
51 oveq1 6080 . . . . . . . . . . 11  |-  ( x  =  w  ->  (
x  +  1 )  =  ( w  + 
1 ) )
52 oveq1 6080 . . . . . . . . . . 11  |-  ( x  =  w  ->  (
x F y )  =  ( w F y ) )
5351, 52opeq12d 3984 . . . . . . . . . 10  |-  ( x  =  w  ->  <. (
x  +  1 ) ,  ( x F y ) >.  =  <. ( w  +  1 ) ,  ( w F y ) >. )
54 oveq2 6081 . . . . . . . . . . 11  |-  ( y  =  z  ->  (
w F y )  =  ( w F z ) )
5554opeq2d 3983 . . . . . . . . . 10  |-  ( y  =  z  ->  <. (
w  +  1 ) ,  ( w F y ) >.  =  <. ( w  +  1 ) ,  ( w F z ) >. )
5653, 55cbvmpt2v 6144 . . . . . . . . 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 4419 . . . . . . . . 9  |-  <. (
( G `  v
)  +  1 ) ,  ( ( G `
 v ) F ( 2nd `  ( R `  v )
) ) >.  e.  _V
5848, 50, 56, 57ovmpt2 6201 . . . . . . . 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 654 . . . . . . 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 2457 . . . . . 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 2483 . . . . 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 2487 . . . 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 11280 . . . . . 6  |-  ( v  e.  om  ->  ( G `  suc  v )  =  ( ( G `
 v )  +  1 ) )
6463adantr 452 . . . . 5  |-  ( ( v  e.  om  /\  ( R `  v )  =  <. ( G `  v ) ,  ( 2nd `  ( R `
 v ) )
>. )  ->  ( G `
 suc  v )  =  ( ( G `
 v )  +  1 ) )
6562fveq2d 5724 . . . . . 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 6098 . . . . . . 7  |-  ( ( G `  v )  +  1 )  e. 
_V
67 ovex 6098 . . . . . . 7  |-  ( ( G `  v ) F ( 2nd `  ( R `  v )
) )  e.  _V
6866, 67op2nd 6348 . . . . . 6  |-  ( 2nd `  <. ( ( G `
 v )  +  1 ) ,  ( ( G `  v
) F ( 2nd `  ( R `  v
) ) ) >.
)  =  ( ( G `  v ) F ( 2nd `  ( R `  v )
) )
6965, 68syl6eq 2483 . . . . 5  |-  ( ( v  e.  om  /\  ( R `  v )  =  <. ( G `  v ) ,  ( 2nd `  ( R `
 v ) )
>. )  ->  ( 2nd `  ( R `  suc  v ) )  =  ( ( G `  v ) F ( 2nd `  ( R `
 v ) ) ) )
7064, 69opeq12d 3984 . . . 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 2470 . . 3  |-  ( ( v  e.  om  /\  ( R `  v )  =  <. ( G `  v ) ,  ( 2nd `  ( R `
 v ) )
>. )  ->  ( R `
 suc  v )  =  <. ( G `  suc  v ) ,  ( 2nd `  ( R `
 suc  v )
) >. )
7271ex 424 . 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 4863 1  |-  ( B  e.  om  ->  ( R `  B )  =  <. ( G `  B ) ,  ( 2nd `  ( R `
 B ) )
>. )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 359    = wceq 1652    e. wcel 1725   _Vcvv 2948   (/)c0 3620   <.cop 3809    e. cmpt 4258   suc csuc 4575   omcom 4837    |` cres 4872   ` cfv 5446  (class class class)co 6073    e. cmpt2 6075   2ndc2nd 6340   reccrdg 6659   1c1 8983    + caddc 8985   ZZcz 10274
This theorem is referenced by:  uzrdglem  11289  uzrdgfni  11290  uzrdgsuci  11292
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1555  ax-5 1566  ax-17 1626  ax-9 1666  ax-8 1687  ax-13 1727  ax-14 1729  ax-6 1744  ax-7 1749  ax-11 1761  ax-12 1950  ax-ext 2416  ax-sep 4322  ax-nul 4330  ax-pow 4369  ax-pr 4395  ax-un 4693
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3or 937  df-3an 938  df-tru 1328  df-ex 1551  df-nf 1554  df-sb 1659  df-eu 2284  df-mo 2285  df-clab 2422  df-cleq 2428  df-clel 2431  df-nfc 2560  df-ne 2600  df-ral 2702  df-rex 2703  df-reu 2704  df-rab 2706  df-v 2950  df-sbc 3154  df-csb 3244  df-dif 3315  df-un 3317  df-in 3319  df-ss 3326  df-pss 3328  df-nul 3621  df-if 3732  df-pw 3793  df-sn 3812  df-pr 3813  df-tp 3814  df-op 3815  df-uni 4008  df-iun 4087  df-br 4205  df-opab 4259  df-mpt 4260  df-tr 4295  df-eprel 4486  df-id 4490  df-po 4495  df-so 4496  df-fr 4533  df-we 4535  df-ord 4576  df-on 4577  df-lim 4578  df-suc 4579  df-om 4838  df-xp 4876  df-rel 4877  df-cnv 4878  df-co 4879  df-dm 4880  df-rn 4881  df-res 4882  df-ima 4883  df-iota 5410  df-fun 5448  df-fn 5449  df-f 5450  df-f1 5451  df-fo 5452  df-f1o 5453  df-fv 5454  df-ov 6076  df-oprab 6077  df-mpt2 6078  df-2nd 6342  df-recs 6625  df-rdg 6660
  Copyright terms: Public domain W3C validator