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

Theorem om2uzrdg 11777
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 11768. (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 5689 . . 3  |-  ( z  =  (/)  ->  ( R `
 z )  =  ( R `  (/) ) )
2 fveq2 5689 . . . 4  |-  ( z  =  (/)  ->  ( G `
 z )  =  ( G `  (/) ) )
31fveq2d 5693 . . . 4  |-  ( z  =  (/)  ->  ( 2nd `  ( R `  z
) )  =  ( 2nd `  ( R `
 (/) ) ) )
42, 3opeq12d 4065 . . 3  |-  ( z  =  (/)  ->  <. ( G `  z ) ,  ( 2nd `  ( R `  z )
) >.  =  <. ( G `  (/) ) ,  ( 2nd `  ( R `  (/) ) )
>. )
51, 4eqeq12d 2455 . 2  |-  ( z  =  (/)  ->  ( ( R `  z )  =  <. ( G `  z ) ,  ( 2nd `  ( R `
 z ) )
>. 
<->  ( R `  (/) )  = 
<. ( G `  (/) ) ,  ( 2nd `  ( R `  (/) ) )
>. ) )
6 fveq2 5689 . . 3  |-  ( z  =  v  ->  ( R `  z )  =  ( R `  v ) )
7 fveq2 5689 . . . 4  |-  ( z  =  v  ->  ( G `  z )  =  ( G `  v ) )
86fveq2d 5693 . . . 4  |-  ( z  =  v  ->  ( 2nd `  ( R `  z ) )  =  ( 2nd `  ( R `  v )
) )
97, 8opeq12d 4065 . . 3  |-  ( z  =  v  ->  <. ( G `  z ) ,  ( 2nd `  ( R `  z )
) >.  =  <. ( G `  v ) ,  ( 2nd `  ( R `  v )
) >. )
106, 9eqeq12d 2455 . 2  |-  ( z  =  v  ->  (
( R `  z
)  =  <. ( G `  z ) ,  ( 2nd `  ( R `  z )
) >. 
<->  ( R `  v
)  =  <. ( G `  v ) ,  ( 2nd `  ( R `  v )
) >. ) )
11 fveq2 5689 . . 3  |-  ( z  =  suc  v  -> 
( R `  z
)  =  ( R `
 suc  v )
)
12 fveq2 5689 . . . 4  |-  ( z  =  suc  v  -> 
( G `  z
)  =  ( G `
 suc  v )
)
1311fveq2d 5693 . . . 4  |-  ( z  =  suc  v  -> 
( 2nd `  ( R `  z )
)  =  ( 2nd `  ( R `  suc  v ) ) )
1412, 13opeq12d 4065 . . 3  |-  ( z  =  suc  v  ->  <. ( G `  z
) ,  ( 2nd `  ( R `  z
) ) >.  =  <. ( G `  suc  v
) ,  ( 2nd `  ( R `  suc  v ) ) >.
)
1511, 14eqeq12d 2455 . 2  |-  ( z  =  suc  v  -> 
( ( R `  z )  =  <. ( G `  z ) ,  ( 2nd `  ( R `  z )
) >. 
<->  ( R `  suc  v )  =  <. ( G `  suc  v
) ,  ( 2nd `  ( R `  suc  v ) ) >.
) )
16 fveq2 5689 . . 3  |-  ( z  =  B  ->  ( R `  z )  =  ( R `  B ) )
17 fveq2 5689 . . . 4  |-  ( z  =  B  ->  ( G `  z )  =  ( G `  B ) )
1816fveq2d 5693 . . . 4  |-  ( z  =  B  ->  ( 2nd `  ( R `  z ) )  =  ( 2nd `  ( R `  B )
) )
1917, 18opeq12d 4065 . . 3  |-  ( z  =  B  ->  <. ( G `  z ) ,  ( 2nd `  ( R `  z )
) >.  =  <. ( G `  B ) ,  ( 2nd `  ( R `  B )
) >. )
2016, 19eqeq12d 2455 . 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 5690 . . . 4  |-  ( R `
 (/) )  =  ( ( rec ( ( x  e.  _V , 
y  e.  _V  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. )  |`  om ) `  (/) )
23 opex 4554 . . . . 5  |-  <. C ,  A >.  e.  _V
24 fr0g 6889 . . . . 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 5 . . . 4  |-  ( ( rec ( ( x  e.  _V ,  y  e.  _V  |->  <. (
x  +  1 ) ,  ( x F y ) >. ) ,  <. C ,  A >. )  |`  om ) `  (/) )  =  <. C ,  A >.
2622, 25eqtri 2461 . . 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 11768 . . . 4  |-  ( G `
 (/) )  =  C
3026fveq2i 5692 . . . . 5  |-  ( 2nd `  ( R `  (/) ) )  =  ( 2nd `  <. C ,  A >. )
3127elexi 2980 . . . . . 6  |-  C  e. 
_V
32 uzrdg.1 . . . . . 6  |-  A  e. 
_V
3331, 32op2nd 6584 . . . . 5  |-  ( 2nd `  <. C ,  A >. )  =  A
3430, 33eqtri 2461 . . . 4  |-  ( 2nd `  ( R `  (/) ) )  =  A
3529, 34opeq12i 4062 . . 3  |-  <. ( G `  (/) ) ,  ( 2nd `  ( R `  (/) ) )
>.  =  <. C ,  A >.
3626, 35eqtr4i 2464 . 2  |-  ( R `
 (/) )  =  <. ( G `  (/) ) ,  ( 2nd `  ( R `  (/) ) )
>.
37 frsuc 6890 . . . . . 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 5690 . . . . . 6  |-  ( R `
 suc  v )  =  ( ( rec ( ( x  e. 
_V ,  y  e. 
_V  |->  <. ( x  + 
1 ) ,  ( x F y )
>. ) ,  <. C ,  A >. )  |`  om ) `  suc  v )
3921fveq1i 5690 . . . . . . 7  |-  ( R `
 v )  =  ( ( rec (
( x  e.  _V ,  y  e.  _V  |->  <. ( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. )  |`  om ) `  v )
4039fveq2i 5692 . . . . . 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 2498 . . . . 5  |-  ( v  e.  om  ->  ( R `  suc  v )  =  ( ( x  e.  _V ,  y  e.  _V  |->  <. (
x  +  1 ) ,  ( x F y ) >. ) `  ( R `  v
) ) )
42 fveq2 5689 . . . . . 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 6092 . . . . . . 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 5699 . . . . . . . 8  |-  ( G `
 v )  e. 
_V
45 fvex 5699 . . . . . . . 8  |-  ( 2nd `  ( R `  v
) )  e.  _V
46 oveq1 6096 . . . . . . . . . 10  |-  ( w  =  ( G `  v )  ->  (
w  +  1 )  =  ( ( G `
 v )  +  1 ) )
47 oveq1 6096 . . . . . . . . . 10  |-  ( w  =  ( G `  v )  ->  (
w F z )  =  ( ( G `
 v ) F z ) )
4846, 47opeq12d 4065 . . . . . . . . 9  |-  ( w  =  ( G `  v )  ->  <. (
w  +  1 ) ,  ( w F z ) >.  =  <. ( ( G `  v
)  +  1 ) ,  ( ( G `
 v ) F z ) >. )
49 oveq2 6097 . . . . . . . . . 10  |-  ( z  =  ( 2nd `  ( R `  v )
)  ->  ( ( G `  v ) F z )  =  ( ( G `  v ) F ( 2nd `  ( R `
 v ) ) ) )
5049opeq2d 4064 . . . . . . . . 9  |-  ( z  =  ( 2nd `  ( R `  v )
)  ->  <. ( ( G `  v )  +  1 ) ,  ( ( G `  v ) F z ) >.  =  <. ( ( G `  v
)  +  1 ) ,  ( ( G `
 v ) F ( 2nd `  ( R `  v )
) ) >. )
51 oveq1 6096 . . . . . . . . . . 11  |-  ( x  =  w  ->  (
x  +  1 )  =  ( w  + 
1 ) )
52 oveq1 6096 . . . . . . . . . . 11  |-  ( x  =  w  ->  (
x F y )  =  ( w F y ) )
5351, 52opeq12d 4065 . . . . . . . . . 10  |-  ( x  =  w  ->  <. (
x  +  1 ) ,  ( x F y ) >.  =  <. ( w  +  1 ) ,  ( w F y ) >. )
54 oveq2 6097 . . . . . . . . . . 11  |-  ( y  =  z  ->  (
w F y )  =  ( w F z ) )
5554opeq2d 4064 . . . . . . . . . 10  |-  ( y  =  z  ->  <. (
w  +  1 ) ,  ( w F y ) >.  =  <. ( w  +  1 ) ,  ( w F z ) >. )
5653, 55cbvmpt2v 6164 . . . . . . . . 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 4554 . . . . . . . . 9  |-  <. (
( G `  v
)  +  1 ) ,  ( ( G `
 v ) F ( 2nd `  ( R `  v )
) ) >.  e.  _V
5848, 50, 56, 57ovmpt2 6224 . . . . . . . 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 672 . . . . . . 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 2463 . . . . . 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 2489 . . . . 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 2493 . . . 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 11769 . . . . . 6  |-  ( v  e.  om  ->  ( G `  suc  v )  =  ( ( G `
 v )  +  1 ) )
6463adantr 465 . . . . 5  |-  ( ( v  e.  om  /\  ( R `  v )  =  <. ( G `  v ) ,  ( 2nd `  ( R `
 v ) )
>. )  ->  ( G `
 suc  v )  =  ( ( G `
 v )  +  1 ) )
6562fveq2d 5693 . . . . . 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 6114 . . . . . . 7  |-  ( ( G `  v )  +  1 )  e. 
_V
67 ovex 6114 . . . . . . 7  |-  ( ( G `  v ) F ( 2nd `  ( R `  v )
) )  e.  _V
6866, 67op2nd 6584 . . . . . 6  |-  ( 2nd `  <. ( ( G `
 v )  +  1 ) ,  ( ( G `  v
) F ( 2nd `  ( R `  v
) ) ) >.
)  =  ( ( G `  v ) F ( 2nd `  ( R `  v )
) )
6965, 68syl6eq 2489 . . . . 5  |-  ( ( v  e.  om  /\  ( R `  v )  =  <. ( G `  v ) ,  ( 2nd `  ( R `
 v ) )
>. )  ->  ( 2nd `  ( R `  suc  v ) )  =  ( ( G `  v ) F ( 2nd `  ( R `
 v ) ) ) )
7064, 69opeq12d 4065 . . . 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 2476 . . 3  |-  ( ( v  e.  om  /\  ( R `  v )  =  <. ( G `  v ) ,  ( 2nd `  ( R `
 v ) )
>. )  ->  ( R `
 suc  v )  =  <. ( G `  suc  v ) ,  ( 2nd `  ( R `
 suc  v )
) >. )
7271ex 434 . 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 6500 1  |-  ( B  e.  om  ->  ( R `  B )  =  <. ( G `  B ) ,  ( 2nd `  ( R `
 B ) )
>. )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    /\ wa 369    = wceq 1369    e. wcel 1756   _Vcvv 2970   (/)c0 3635   <.cop 3881    e. cmpt 4348   suc csuc 4719    |` cres 4840   ` cfv 5416  (class class class)co 6089    e. cmpt2 6091   omcom 6474   2ndc2nd 6574   reccrdg 6863   1c1 9281    + caddc 9283   ZZcz 10644
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 2422  ax-sep 4411  ax-nul 4419  ax-pow 4468  ax-pr 4529  ax-un 6370
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 2257  df-mo 2258  df-clab 2428  df-cleq 2434  df-clel 2437  df-nfc 2566  df-ne 2606  df-ral 2718  df-rex 2719  df-reu 2720  df-rab 2722  df-v 2972  df-sbc 3185  df-csb 3287  df-dif 3329  df-un 3331  df-in 3333  df-ss 3340  df-pss 3342  df-nul 3636  df-if 3790  df-pw 3860  df-sn 3876  df-pr 3878  df-tp 3880  df-op 3882  df-uni 4090  df-iun 4171  df-br 4291  df-opab 4349  df-mpt 4350  df-tr 4384  df-eprel 4630  df-id 4634  df-po 4639  df-so 4640  df-fr 4677  df-we 4679  df-ord 4720  df-on 4721  df-lim 4722  df-suc 4723  df-xp 4844  df-rel 4845  df-cnv 4846  df-co 4847  df-dm 4848  df-rn 4849  df-res 4850  df-ima 4851  df-iota 5379  df-fun 5418  df-fn 5419  df-f 5420  df-f1 5421  df-fo 5422  df-f1o 5423  df-fv 5424  df-ov 6092  df-oprab 6093  df-mpt2 6094  df-om 6475  df-2nd 6576  df-recs 6830  df-rdg 6864
This theorem is referenced by:  uzrdglem  11778  uzrdgfni  11779  uzrdgsuci  11781
  Copyright terms: Public domain W3C validator