ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  frec2uzrdg Unicode version

Theorem frec2uzrdg 10365
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. This lemma shows that evaluating  R at an element of  om gives an ordered pair whose first element is the index (translated from  om to  ( ZZ>= `  C )). See comment in frec2uz0d 10355 which describes  G and the index translation. (Contributed by Jim Kingdon, 24-May-2020.)
Hypotheses
Ref Expression
frec2uz.1  |-  ( ph  ->  C  e.  ZZ )
frec2uz.2  |-  G  = frec ( ( x  e.  ZZ  |->  ( x  + 
1 ) ) ,  C )
frecuzrdgrrn.a  |-  ( ph  ->  A  e.  S )
frecuzrdgrrn.f  |-  ( (
ph  /\  ( x  e.  ( ZZ>= `  C )  /\  y  e.  S
) )  ->  (
x F y )  e.  S )
frecuzrdgrrn.2  |-  R  = frec ( ( x  e.  ( ZZ>= `  C ) ,  y  e.  S  |-> 
<. ( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. )
frec2uzrdg.b  |-  ( ph  ->  B  e.  om )
Assertion
Ref Expression
frec2uzrdg  |-  ( ph  ->  ( R `  B
)  =  <. ( G `  B ) ,  ( 2nd `  ( R `  B )
) >. )
Distinct variable groups:    y, A    x, C, y    y, G    x, F, y    x, S, y    ph, x, y
Allowed substitution hints:    A( x)    B( x, y)    R( x, y)    G( x)

Proof of Theorem frec2uzrdg
Dummy variables  w  z  v are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 frec2uzrdg.b . 2  |-  ( ph  ->  B  e.  om )
2 fveq2 5496 . . . . 5  |-  ( z  =  B  ->  ( R `  z )  =  ( R `  B ) )
3 fveq2 5496 . . . . . 6  |-  ( z  =  B  ->  ( G `  z )  =  ( G `  B ) )
42fveq2d 5500 . . . . . 6  |-  ( z  =  B  ->  ( 2nd `  ( R `  z ) )  =  ( 2nd `  ( R `  B )
) )
53, 4opeq12d 3773 . . . . 5  |-  ( z  =  B  ->  <. ( G `  z ) ,  ( 2nd `  ( R `  z )
) >.  =  <. ( G `  B ) ,  ( 2nd `  ( R `  B )
) >. )
62, 5eqeq12d 2185 . . . 4  |-  ( z  =  B  ->  (
( R `  z
)  =  <. ( G `  z ) ,  ( 2nd `  ( R `  z )
) >. 
<->  ( R `  B
)  =  <. ( G `  B ) ,  ( 2nd `  ( R `  B )
) >. ) )
76imbi2d 229 . . 3  |-  ( z  =  B  ->  (
( ph  ->  ( R `
 z )  = 
<. ( G `  z
) ,  ( 2nd `  ( R `  z
) ) >. )  <->  (
ph  ->  ( R `  B )  =  <. ( G `  B ) ,  ( 2nd `  ( R `  B )
) >. ) ) )
8 fveq2 5496 . . . . 5  |-  ( z  =  (/)  ->  ( R `
 z )  =  ( R `  (/) ) )
9 fveq2 5496 . . . . . 6  |-  ( z  =  (/)  ->  ( G `
 z )  =  ( G `  (/) ) )
108fveq2d 5500 . . . . . 6  |-  ( z  =  (/)  ->  ( 2nd `  ( R `  z
) )  =  ( 2nd `  ( R `
 (/) ) ) )
119, 10opeq12d 3773 . . . . 5  |-  ( z  =  (/)  ->  <. ( G `  z ) ,  ( 2nd `  ( R `  z )
) >.  =  <. ( G `  (/) ) ,  ( 2nd `  ( R `  (/) ) )
>. )
128, 11eqeq12d 2185 . . . 4  |-  ( z  =  (/)  ->  ( ( R `  z )  =  <. ( G `  z ) ,  ( 2nd `  ( R `
 z ) )
>. 
<->  ( R `  (/) )  = 
<. ( G `  (/) ) ,  ( 2nd `  ( R `  (/) ) )
>. ) )
13 fveq2 5496 . . . . 5  |-  ( z  =  v  ->  ( R `  z )  =  ( R `  v ) )
14 fveq2 5496 . . . . . 6  |-  ( z  =  v  ->  ( G `  z )  =  ( G `  v ) )
1513fveq2d 5500 . . . . . 6  |-  ( z  =  v  ->  ( 2nd `  ( R `  z ) )  =  ( 2nd `  ( R `  v )
) )
1614, 15opeq12d 3773 . . . . 5  |-  ( z  =  v  ->  <. ( G `  z ) ,  ( 2nd `  ( R `  z )
) >.  =  <. ( G `  v ) ,  ( 2nd `  ( R `  v )
) >. )
1713, 16eqeq12d 2185 . . . 4  |-  ( z  =  v  ->  (
( R `  z
)  =  <. ( G `  z ) ,  ( 2nd `  ( R `  z )
) >. 
<->  ( R `  v
)  =  <. ( G `  v ) ,  ( 2nd `  ( R `  v )
) >. ) )
18 fveq2 5496 . . . . 5  |-  ( z  =  suc  v  -> 
( R `  z
)  =  ( R `
 suc  v )
)
19 fveq2 5496 . . . . . 6  |-  ( z  =  suc  v  -> 
( G `  z
)  =  ( G `
 suc  v )
)
2018fveq2d 5500 . . . . . 6  |-  ( z  =  suc  v  -> 
( 2nd `  ( R `  z )
)  =  ( 2nd `  ( R `  suc  v ) ) )
2119, 20opeq12d 3773 . . . . 5  |-  ( z  =  suc  v  ->  <. ( G `  z
) ,  ( 2nd `  ( R `  z
) ) >.  =  <. ( G `  suc  v
) ,  ( 2nd `  ( R `  suc  v ) ) >.
)
2218, 21eqeq12d 2185 . . . 4  |-  ( z  =  suc  v  -> 
( ( R `  z )  =  <. ( G `  z ) ,  ( 2nd `  ( R `  z )
) >. 
<->  ( R `  suc  v )  =  <. ( G `  suc  v
) ,  ( 2nd `  ( R `  suc  v ) ) >.
) )
23 frecuzrdgrrn.2 . . . . . . 7  |-  R  = frec ( ( x  e.  ( ZZ>= `  C ) ,  y  e.  S  |-> 
<. ( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. )
2423fveq1i 5497 . . . . . 6  |-  ( R `
 (/) )  =  (frec ( ( x  e.  ( ZZ>= `  C ) ,  y  e.  S  |-> 
<. ( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. ) `  (/) )
25 frec2uz.1 . . . . . . . 8  |-  ( ph  ->  C  e.  ZZ )
26 frecuzrdgrrn.a . . . . . . . 8  |-  ( ph  ->  A  e.  S )
27 opexg 4213 . . . . . . . 8  |-  ( ( C  e.  ZZ  /\  A  e.  S )  -> 
<. C ,  A >.  e. 
_V )
2825, 26, 27syl2anc 409 . . . . . . 7  |-  ( ph  -> 
<. C ,  A >.  e. 
_V )
29 frec0g 6376 . . . . . . 7  |-  ( <. C ,  A >.  e. 
_V  ->  (frec ( ( x  e.  ( ZZ>= `  C ) ,  y  e.  S  |->  <. (
x  +  1 ) ,  ( x F y ) >. ) ,  <. C ,  A >. ) `  (/) )  = 
<. C ,  A >. )
3028, 29syl 14 . . . . . 6  |-  ( ph  ->  (frec ( ( x  e.  ( ZZ>= `  C
) ,  y  e.  S  |->  <. ( x  + 
1 ) ,  ( x F y )
>. ) ,  <. C ,  A >. ) `  (/) )  = 
<. C ,  A >. )
3124, 30eqtrid 2215 . . . . 5  |-  ( ph  ->  ( R `  (/) )  = 
<. C ,  A >. )
32 frec2uz.2 . . . . . . 7  |-  G  = frec ( ( x  e.  ZZ  |->  ( x  + 
1 ) ) ,  C )
3325, 32frec2uz0d 10355 . . . . . 6  |-  ( ph  ->  ( G `  (/) )  =  C )
3431fveq2d 5500 . . . . . . 7  |-  ( ph  ->  ( 2nd `  ( R `  (/) ) )  =  ( 2nd `  <. C ,  A >. )
)
35 uzid 9501 . . . . . . . . 9  |-  ( C  e.  ZZ  ->  C  e.  ( ZZ>= `  C )
)
3625, 35syl 14 . . . . . . . 8  |-  ( ph  ->  C  e.  ( ZZ>= `  C ) )
37 op2ndg 6130 . . . . . . . 8  |-  ( ( C  e.  ( ZZ>= `  C )  /\  A  e.  S )  ->  ( 2nd `  <. C ,  A >. )  =  A )
3836, 26, 37syl2anc 409 . . . . . . 7  |-  ( ph  ->  ( 2nd `  <. C ,  A >. )  =  A )
3934, 38eqtrd 2203 . . . . . 6  |-  ( ph  ->  ( 2nd `  ( R `  (/) ) )  =  A )
4033, 39opeq12d 3773 . . . . 5  |-  ( ph  -> 
<. ( G `  (/) ) ,  ( 2nd `  ( R `  (/) ) )
>.  =  <. C ,  A >. )
4131, 40eqtr4d 2206 . . . 4  |-  ( ph  ->  ( R `  (/) )  = 
<. ( G `  (/) ) ,  ( 2nd `  ( R `  (/) ) )
>. )
42 1st2nd2 6154 . . . . . . . . . . . . . . 15  |-  ( z  e.  ( ( ZZ>= `  C )  X.  S
)  ->  z  =  <. ( 1st `  z
) ,  ( 2nd `  z ) >. )
4342adantl 275 . . . . . . . . . . . . . 14  |-  ( ( ( ph  /\  v  e.  om )  /\  z  e.  ( ( ZZ>= `  C
)  X.  S ) )  ->  z  =  <. ( 1st `  z
) ,  ( 2nd `  z ) >. )
4443fveq2d 5500 . . . . . . . . . . . . 13  |-  ( ( ( ph  /\  v  e.  om )  /\  z  e.  ( ( ZZ>= `  C
)  X.  S ) )  ->  ( (
x  e.  ( ZZ>= `  C ) ,  y  e.  S  |->  <. (
x  +  1 ) ,  ( x F y ) >. ) `  z )  =  ( ( x  e.  (
ZZ>= `  C ) ,  y  e.  S  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) `  <. ( 1st `  z ) ,  ( 2nd `  z )
>. ) )
45 df-ov 5856 . . . . . . . . . . . . . . 15  |-  ( ( 1st `  z ) ( x  e.  (
ZZ>= `  C ) ,  y  e.  S  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) ( 2nd `  z
) )  =  ( ( x  e.  (
ZZ>= `  C ) ,  y  e.  S  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) `  <. ( 1st `  z ) ,  ( 2nd `  z )
>. )
46 xp1st 6144 . . . . . . . . . . . . . . . . 17  |-  ( z  e.  ( ( ZZ>= `  C )  X.  S
)  ->  ( 1st `  z )  e.  (
ZZ>= `  C ) )
4746adantl 275 . . . . . . . . . . . . . . . 16  |-  ( ( ( ph  /\  v  e.  om )  /\  z  e.  ( ( ZZ>= `  C
)  X.  S ) )  ->  ( 1st `  z )  e.  (
ZZ>= `  C ) )
48 xp2nd 6145 . . . . . . . . . . . . . . . . 17  |-  ( z  e.  ( ( ZZ>= `  C )  X.  S
)  ->  ( 2nd `  z )  e.  S
)
4948adantl 275 . . . . . . . . . . . . . . . 16  |-  ( ( ( ph  /\  v  e.  om )  /\  z  e.  ( ( ZZ>= `  C
)  X.  S ) )  ->  ( 2nd `  z )  e.  S
)
50 peano2uz 9542 . . . . . . . . . . . . . . . . . 18  |-  ( ( 1st `  z )  e.  ( ZZ>= `  C
)  ->  ( ( 1st `  z )  +  1 )  e.  (
ZZ>= `  C ) )
5147, 50syl 14 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ph  /\  v  e.  om )  /\  z  e.  ( ( ZZ>= `  C
)  X.  S ) )  ->  ( ( 1st `  z )  +  1 )  e.  (
ZZ>= `  C ) )
52 frecuzrdgrrn.f . . . . . . . . . . . . . . . . . . . 20  |-  ( (
ph  /\  ( x  e.  ( ZZ>= `  C )  /\  y  e.  S
) )  ->  (
x F y )  e.  S )
5352ralrimivva 2552 . . . . . . . . . . . . . . . . . . 19  |-  ( ph  ->  A. x  e.  (
ZZ>= `  C ) A. y  e.  S  (
x F y )  e.  S )
5453ad2antrr 485 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( ph  /\  v  e.  om )  /\  z  e.  ( ( ZZ>= `  C
)  X.  S ) )  ->  A. x  e.  ( ZZ>= `  C ) A. y  e.  S  ( x F y )  e.  S )
55 oveq1 5860 . . . . . . . . . . . . . . . . . . . . 21  |-  ( x  =  ( 1st `  z
)  ->  ( x F y )  =  ( ( 1st `  z
) F y ) )
5655eleq1d 2239 . . . . . . . . . . . . . . . . . . . 20  |-  ( x  =  ( 1st `  z
)  ->  ( (
x F y )  e.  S  <->  ( ( 1st `  z ) F y )  e.  S
) )
57 oveq2 5861 . . . . . . . . . . . . . . . . . . . . 21  |-  ( y  =  ( 2nd `  z
)  ->  ( ( 1st `  z ) F y )  =  ( ( 1st `  z
) F ( 2nd `  z ) ) )
5857eleq1d 2239 . . . . . . . . . . . . . . . . . . . 20  |-  ( y  =  ( 2nd `  z
)  ->  ( (
( 1st `  z
) F y )  e.  S  <->  ( ( 1st `  z ) F ( 2nd `  z
) )  e.  S
) )
5956, 58rspc2v 2847 . . . . . . . . . . . . . . . . . . 19  |-  ( ( ( 1st `  z
)  e.  ( ZZ>= `  C )  /\  ( 2nd `  z )  e.  S )  ->  ( A. x  e.  ( ZZ>=
`  C ) A. y  e.  S  (
x F y )  e.  S  ->  (
( 1st `  z
) F ( 2nd `  z ) )  e.  S ) )
6047, 49, 59syl2anc 409 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( ph  /\  v  e.  om )  /\  z  e.  ( ( ZZ>= `  C
)  X.  S ) )  ->  ( A. x  e.  ( ZZ>= `  C ) A. y  e.  S  ( x F y )  e.  S  ->  ( ( 1st `  z ) F ( 2nd `  z
) )  e.  S
) )
6154, 60mpd 13 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ph  /\  v  e.  om )  /\  z  e.  ( ( ZZ>= `  C
)  X.  S ) )  ->  ( ( 1st `  z ) F ( 2nd `  z
) )  e.  S
)
62 opelxp 4641 . . . . . . . . . . . . . . . . 17  |-  ( <.
( ( 1st `  z
)  +  1 ) ,  ( ( 1st `  z ) F ( 2nd `  z ) ) >.  e.  (
( ZZ>= `  C )  X.  S )  <->  ( (
( 1st `  z
)  +  1 )  e.  ( ZZ>= `  C
)  /\  ( ( 1st `  z ) F ( 2nd `  z
) )  e.  S
) )
6351, 61, 62sylanbrc 415 . . . . . . . . . . . . . . . 16  |-  ( ( ( ph  /\  v  e.  om )  /\  z  e.  ( ( ZZ>= `  C
)  X.  S ) )  ->  <. ( ( 1st `  z )  +  1 ) ,  ( ( 1st `  z
) F ( 2nd `  z ) ) >.  e.  ( ( ZZ>= `  C
)  X.  S ) )
64 oveq1 5860 . . . . . . . . . . . . . . . . . 18  |-  ( x  =  ( 1st `  z
)  ->  ( x  +  1 )  =  ( ( 1st `  z
)  +  1 ) )
6564, 55opeq12d 3773 . . . . . . . . . . . . . . . . 17  |-  ( x  =  ( 1st `  z
)  ->  <. ( x  +  1 ) ,  ( x F y ) >.  =  <. ( ( 1st `  z
)  +  1 ) ,  ( ( 1st `  z ) F y ) >. )
6657opeq2d 3772 . . . . . . . . . . . . . . . . 17  |-  ( y  =  ( 2nd `  z
)  ->  <. ( ( 1st `  z )  +  1 ) ,  ( ( 1st `  z
) F y )
>.  =  <. ( ( 1st `  z )  +  1 ) ,  ( ( 1st `  z
) F ( 2nd `  z ) ) >.
)
67 eqid 2170 . . . . . . . . . . . . . . . . 17  |-  ( x  e.  ( ZZ>= `  C
) ,  y  e.  S  |->  <. ( x  + 
1 ) ,  ( x F y )
>. )  =  (
x  e.  ( ZZ>= `  C ) ,  y  e.  S  |->  <. (
x  +  1 ) ,  ( x F y ) >. )
6865, 66, 67ovmpog 5987 . . . . . . . . . . . . . . . 16  |-  ( ( ( 1st `  z
)  e.  ( ZZ>= `  C )  /\  ( 2nd `  z )  e.  S  /\  <. (
( 1st `  z
)  +  1 ) ,  ( ( 1st `  z ) F ( 2nd `  z ) ) >.  e.  (
( ZZ>= `  C )  X.  S ) )  -> 
( ( 1st `  z
) ( x  e.  ( ZZ>= `  C ) ,  y  e.  S  |-> 
<. ( x  +  1 ) ,  ( x F y ) >.
) ( 2nd `  z
) )  =  <. ( ( 1st `  z
)  +  1 ) ,  ( ( 1st `  z ) F ( 2nd `  z ) ) >. )
6947, 49, 63, 68syl3anc 1233 . . . . . . . . . . . . . . 15  |-  ( ( ( ph  /\  v  e.  om )  /\  z  e.  ( ( ZZ>= `  C
)  X.  S ) )  ->  ( ( 1st `  z ) ( x  e.  ( ZZ>= `  C ) ,  y  e.  S  |->  <. (
x  +  1 ) ,  ( x F y ) >. )
( 2nd `  z
) )  =  <. ( ( 1st `  z
)  +  1 ) ,  ( ( 1st `  z ) F ( 2nd `  z ) ) >. )
7045, 69eqtr3id 2217 . . . . . . . . . . . . . 14  |-  ( ( ( ph  /\  v  e.  om )  /\  z  e.  ( ( ZZ>= `  C
)  X.  S ) )  ->  ( (
x  e.  ( ZZ>= `  C ) ,  y  e.  S  |->  <. (
x  +  1 ) ,  ( x F y ) >. ) `  <. ( 1st `  z
) ,  ( 2nd `  z ) >. )  =  <. ( ( 1st `  z )  +  1 ) ,  ( ( 1st `  z ) F ( 2nd `  z
) ) >. )
7170, 63eqeltrd 2247 . . . . . . . . . . . . 13  |-  ( ( ( ph  /\  v  e.  om )  /\  z  e.  ( ( ZZ>= `  C
)  X.  S ) )  ->  ( (
x  e.  ( ZZ>= `  C ) ,  y  e.  S  |->  <. (
x  +  1 ) ,  ( x F y ) >. ) `  <. ( 1st `  z
) ,  ( 2nd `  z ) >. )  e.  ( ( ZZ>= `  C
)  X.  S ) )
7244, 71eqeltrd 2247 . . . . . . . . . . . 12  |-  ( ( ( ph  /\  v  e.  om )  /\  z  e.  ( ( ZZ>= `  C
)  X.  S ) )  ->  ( (
x  e.  ( ZZ>= `  C ) ,  y  e.  S  |->  <. (
x  +  1 ) ,  ( x F y ) >. ) `  z )  e.  ( ( ZZ>= `  C )  X.  S ) )
7372ralrimiva 2543 . . . . . . . . . . 11  |-  ( (
ph  /\  v  e.  om )  ->  A. z  e.  ( ( ZZ>= `  C
)  X.  S ) ( ( x  e.  ( ZZ>= `  C ) ,  y  e.  S  |-> 
<. ( x  +  1 ) ,  ( x F y ) >.
) `  z )  e.  ( ( ZZ>= `  C
)  X.  S ) )
7436adantr 274 . . . . . . . . . . . 12  |-  ( (
ph  /\  v  e.  om )  ->  C  e.  ( ZZ>= `  C )
)
7526adantr 274 . . . . . . . . . . . 12  |-  ( (
ph  /\  v  e.  om )  ->  A  e.  S )
76 opelxp 4641 . . . . . . . . . . . 12  |-  ( <. C ,  A >.  e.  ( ( ZZ>= `  C
)  X.  S )  <-> 
( C  e.  (
ZZ>= `  C )  /\  A  e.  S )
)
7774, 75, 76sylanbrc 415 . . . . . . . . . . 11  |-  ( (
ph  /\  v  e.  om )  ->  <. C ,  A >.  e.  ( (
ZZ>= `  C )  X.  S ) )
78 simpr 109 . . . . . . . . . . 11  |-  ( (
ph  /\  v  e.  om )  ->  v  e.  om )
79 frecsuc 6386 . . . . . . . . . . 11  |-  ( ( A. z  e.  ( ( ZZ>= `  C )  X.  S ) ( ( x  e.  ( ZZ>= `  C ) ,  y  e.  S  |->  <. (
x  +  1 ) ,  ( x F y ) >. ) `  z )  e.  ( ( ZZ>= `  C )  X.  S )  /\  <. C ,  A >.  e.  ( ( ZZ>= `  C )  X.  S )  /\  v  e.  om )  ->  (frec ( ( x  e.  ( ZZ>= `  C ) ,  y  e.  S  |-> 
<. ( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. ) `  suc  v )  =  ( ( x  e.  (
ZZ>= `  C ) ,  y  e.  S  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) `  (frec (
( x  e.  (
ZZ>= `  C ) ,  y  e.  S  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. ) `  v
) ) )
8073, 77, 78, 79syl3anc 1233 . . . . . . . . . 10  |-  ( (
ph  /\  v  e.  om )  ->  (frec (
( x  e.  (
ZZ>= `  C ) ,  y  e.  S  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. ) `  suc  v )  =  ( ( x  e.  (
ZZ>= `  C ) ,  y  e.  S  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) `  (frec (
( x  e.  (
ZZ>= `  C ) ,  y  e.  S  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. ) `  v
) ) )
8123fveq1i 5497 . . . . . . . . . 10  |-  ( R `
 suc  v )  =  (frec ( ( x  e.  ( ZZ>= `  C
) ,  y  e.  S  |->  <. ( x  + 
1 ) ,  ( x F y )
>. ) ,  <. C ,  A >. ) `  suc  v )
8223fveq1i 5497 . . . . . . . . . . 11  |-  ( R `
 v )  =  (frec ( ( x  e.  ( ZZ>= `  C
) ,  y  e.  S  |->  <. ( x  + 
1 ) ,  ( x F y )
>. ) ,  <. C ,  A >. ) `  v
)
8382fveq2i 5499 . . . . . . . . . 10  |-  ( ( x  e.  ( ZZ>= `  C ) ,  y  e.  S  |->  <. (
x  +  1 ) ,  ( x F y ) >. ) `  ( R `  v
) )  =  ( ( x  e.  (
ZZ>= `  C ) ,  y  e.  S  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) `  (frec (
( x  e.  (
ZZ>= `  C ) ,  y  e.  S  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. ) `  v
) )
8480, 81, 833eqtr4g 2228 . . . . . . . . 9  |-  ( (
ph  /\  v  e.  om )  ->  ( R `  suc  v )  =  ( ( x  e.  ( ZZ>= `  C ) ,  y  e.  S  |-> 
<. ( x  +  1 ) ,  ( x F y ) >.
) `  ( R `  v ) ) )
8584adantr 274 . . . . . . . 8  |-  ( ( ( ph  /\  v  e.  om )  /\  ( R `  v )  =  <. ( G `  v ) ,  ( 2nd `  ( R `
 v ) )
>. )  ->  ( R `
 suc  v )  =  ( ( x  e.  ( ZZ>= `  C
) ,  y  e.  S  |->  <. ( x  + 
1 ) ,  ( x F y )
>. ) `  ( R `
 v ) ) )
86 fveq2 5496 . . . . . . . . 9  |-  ( ( R `  v )  =  <. ( G `  v ) ,  ( 2nd `  ( R `
 v ) )
>.  ->  ( ( x  e.  ( ZZ>= `  C
) ,  y  e.  S  |->  <. ( x  + 
1 ) ,  ( x F y )
>. ) `  ( R `
 v ) )  =  ( ( x  e.  ( ZZ>= `  C
) ,  y  e.  S  |->  <. ( x  + 
1 ) ,  ( x F y )
>. ) `  <. ( G `  v ) ,  ( 2nd `  ( R `  v )
) >. ) )
87 df-ov 5856 . . . . . . . . . 10  |-  ( ( G `  v ) ( x  e.  (
ZZ>= `  C ) ,  y  e.  S  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) ( 2nd `  ( R `  v )
) )  =  ( ( x  e.  (
ZZ>= `  C ) ,  y  e.  S  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) `  <. ( G `
 v ) ,  ( 2nd `  ( R `  v )
) >. )
8825adantr 274 . . . . . . . . . . . 12  |-  ( (
ph  /\  v  e.  om )  ->  C  e.  ZZ )
8988, 32, 78frec2uzuzd 10358 . . . . . . . . . . 11  |-  ( (
ph  /\  v  e.  om )  ->  ( G `  v )  e.  (
ZZ>= `  C ) )
9025, 32, 26, 52, 23frecuzrdgrrn 10364 . . . . . . . . . . . 12  |-  ( (
ph  /\  v  e.  om )  ->  ( R `  v )  e.  ( ( ZZ>= `  C )  X.  S ) )
91 xp2nd 6145 . . . . . . . . . . . 12  |-  ( ( R `  v )  e.  ( ( ZZ>= `  C )  X.  S
)  ->  ( 2nd `  ( R `  v
) )  e.  S
)
9290, 91syl 14 . . . . . . . . . . 11  |-  ( (
ph  /\  v  e.  om )  ->  ( 2nd `  ( R `  v
) )  e.  S
)
93 peano2uz 9542 . . . . . . . . . . . . 13  |-  ( ( G `  v )  e.  ( ZZ>= `  C
)  ->  ( ( G `  v )  +  1 )  e.  ( ZZ>= `  C )
)
9489, 93syl 14 . . . . . . . . . . . 12  |-  ( (
ph  /\  v  e.  om )  ->  ( ( G `  v )  +  1 )  e.  ( ZZ>= `  C )
)
9552caovclg 6005 . . . . . . . . . . . . . 14  |-  ( (
ph  /\  ( z  e.  ( ZZ>= `  C )  /\  w  e.  S
) )  ->  (
z F w )  e.  S )
9695adantlr 474 . . . . . . . . . . . . 13  |-  ( ( ( ph  /\  v  e.  om )  /\  (
z  e.  ( ZZ>= `  C )  /\  w  e.  S ) )  -> 
( z F w )  e.  S )
9796, 89, 92caovcld 6006 . . . . . . . . . . . 12  |-  ( (
ph  /\  v  e.  om )  ->  ( ( G `  v ) F ( 2nd `  ( R `  v )
) )  e.  S
)
98 opelxp 4641 . . . . . . . . . . . 12  |-  ( <.
( ( G `  v )  +  1 ) ,  ( ( G `  v ) F ( 2nd `  ( R `  v )
) ) >.  e.  ( ( ZZ>= `  C )  X.  S )  <->  ( (
( G `  v
)  +  1 )  e.  ( ZZ>= `  C
)  /\  ( ( G `  v ) F ( 2nd `  ( R `  v )
) )  e.  S
) )
9994, 97, 98sylanbrc 415 . . . . . . . . . . 11  |-  ( (
ph  /\  v  e.  om )  ->  <. ( ( G `  v )  +  1 ) ,  ( ( G `  v ) F ( 2nd `  ( R `
 v ) ) ) >.  e.  (
( ZZ>= `  C )  X.  S ) )
100 oveq1 5860 . . . . . . . . . . . . 13  |-  ( w  =  ( G `  v )  ->  (
w  +  1 )  =  ( ( G `
 v )  +  1 ) )
101 oveq1 5860 . . . . . . . . . . . . 13  |-  ( w  =  ( G `  v )  ->  (
w F z )  =  ( ( G `
 v ) F z ) )
102100, 101opeq12d 3773 . . . . . . . . . . . 12  |-  ( w  =  ( G `  v )  ->  <. (
w  +  1 ) ,  ( w F z ) >.  =  <. ( ( G `  v
)  +  1 ) ,  ( ( G `
 v ) F z ) >. )
103 oveq2 5861 . . . . . . . . . . . . 13  |-  ( z  =  ( 2nd `  ( R `  v )
)  ->  ( ( G `  v ) F z )  =  ( ( G `  v ) F ( 2nd `  ( R `
 v ) ) ) )
104103opeq2d 3772 . . . . . . . . . . . 12  |-  ( z  =  ( 2nd `  ( R `  v )
)  ->  <. ( ( G `  v )  +  1 ) ,  ( ( G `  v ) F z ) >.  =  <. ( ( G `  v
)  +  1 ) ,  ( ( G `
 v ) F ( 2nd `  ( R `  v )
) ) >. )
105 oveq1 5860 . . . . . . . . . . . . . 14  |-  ( x  =  w  ->  (
x  +  1 )  =  ( w  + 
1 ) )
106 oveq1 5860 . . . . . . . . . . . . . 14  |-  ( x  =  w  ->  (
x F y )  =  ( w F y ) )
107105, 106opeq12d 3773 . . . . . . . . . . . . 13  |-  ( x  =  w  ->  <. (
x  +  1 ) ,  ( x F y ) >.  =  <. ( w  +  1 ) ,  ( w F y ) >. )
108 oveq2 5861 . . . . . . . . . . . . . 14  |-  ( y  =  z  ->  (
w F y )  =  ( w F z ) )
109108opeq2d 3772 . . . . . . . . . . . . 13  |-  ( y  =  z  ->  <. (
w  +  1 ) ,  ( w F y ) >.  =  <. ( w  +  1 ) ,  ( w F z ) >. )
110107, 109cbvmpov 5933 . . . . . . . . . . . 12  |-  ( x  e.  ( ZZ>= `  C
) ,  y  e.  S  |->  <. ( x  + 
1 ) ,  ( x F y )
>. )  =  (
w  e.  ( ZZ>= `  C ) ,  z  e.  S  |->  <. (
w  +  1 ) ,  ( w F z ) >. )
111102, 104, 110ovmpog 5987 . . . . . . . . . . 11  |-  ( ( ( G `  v
)  e.  ( ZZ>= `  C )  /\  ( 2nd `  ( R `  v ) )  e.  S  /\  <. (
( G `  v
)  +  1 ) ,  ( ( G `
 v ) F ( 2nd `  ( R `  v )
) ) >.  e.  ( ( ZZ>= `  C )  X.  S ) )  -> 
( ( G `  v ) ( x  e.  ( ZZ>= `  C
) ,  y  e.  S  |->  <. ( x  + 
1 ) ,  ( x F y )
>. ) ( 2nd `  ( R `  v )
) )  =  <. ( ( G `  v
)  +  1 ) ,  ( ( G `
 v ) F ( 2nd `  ( R `  v )
) ) >. )
11289, 92, 99, 111syl3anc 1233 . . . . . . . . . 10  |-  ( (
ph  /\  v  e.  om )  ->  ( ( G `  v )
( x  e.  (
ZZ>= `  C ) ,  y  e.  S  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) ( 2nd `  ( R `  v )
) )  =  <. ( ( G `  v
)  +  1 ) ,  ( ( G `
 v ) F ( 2nd `  ( R `  v )
) ) >. )
11387, 112eqtr3id 2217 . . . . . . . . 9  |-  ( (
ph  /\  v  e.  om )  ->  ( (
x  e.  ( ZZ>= `  C ) ,  y  e.  S  |->  <. (
x  +  1 ) ,  ( x F y ) >. ) `  <. ( G `  v ) ,  ( 2nd `  ( R `
 v ) )
>. )  =  <. ( ( G `  v
)  +  1 ) ,  ( ( G `
 v ) F ( 2nd `  ( R `  v )
) ) >. )
11486, 113sylan9eqr 2225 . . . . . . . 8  |-  ( ( ( ph  /\  v  e.  om )  /\  ( R `  v )  =  <. ( G `  v ) ,  ( 2nd `  ( R `
 v ) )
>. )  ->  ( ( x  e.  ( ZZ>= `  C ) ,  y  e.  S  |->  <. (
x  +  1 ) ,  ( x F y ) >. ) `  ( R `  v
) )  =  <. ( ( G `  v
)  +  1 ) ,  ( ( G `
 v ) F ( 2nd `  ( R `  v )
) ) >. )
11585, 114eqtrd 2203 . . . . . . 7  |-  ( ( ( ph  /\  v  e.  om )  /\  ( R `  v )  =  <. ( G `  v ) ,  ( 2nd `  ( R `
 v ) )
>. )  ->  ( R `
 suc  v )  =  <. ( ( G `
 v )  +  1 ) ,  ( ( G `  v
) F ( 2nd `  ( R `  v
) ) ) >.
)
11688, 32, 78frec2uzsucd 10357 . . . . . . . . 9  |-  ( (
ph  /\  v  e.  om )  ->  ( G `  suc  v )  =  ( ( G `  v )  +  1 ) )
117116adantr 274 . . . . . . . 8  |-  ( ( ( ph  /\  v  e.  om )  /\  ( R `  v )  =  <. ( G `  v ) ,  ( 2nd `  ( R `
 v ) )
>. )  ->  ( G `
 suc  v )  =  ( ( G `
 v )  +  1 ) )
118115fveq2d 5500 . . . . . . . . 9  |-  ( ( ( ph  /\  v  e.  om )  /\  ( R `  v )  =  <. ( G `  v ) ,  ( 2nd `  ( R `
 v ) )
>. )  ->  ( 2nd `  ( R `  suc  v ) )  =  ( 2nd `  <. ( ( G `  v
)  +  1 ) ,  ( ( G `
 v ) F ( 2nd `  ( R `  v )
) ) >. )
)
11988, 32, 78frec2uzzd 10356 . . . . . . . . . . . 12  |-  ( (
ph  /\  v  e.  om )  ->  ( G `  v )  e.  ZZ )
120119peano2zd 9337 . . . . . . . . . . 11  |-  ( (
ph  /\  v  e.  om )  ->  ( ( G `  v )  +  1 )  e.  ZZ )
121120adantr 274 . . . . . . . . . 10  |-  ( ( ( ph  /\  v  e.  om )  /\  ( R `  v )  =  <. ( G `  v ) ,  ( 2nd `  ( R `
 v ) )
>. )  ->  ( ( G `  v )  +  1 )  e.  ZZ )
12297adantr 274 . . . . . . . . . 10  |-  ( ( ( ph  /\  v  e.  om )  /\  ( R `  v )  =  <. ( G `  v ) ,  ( 2nd `  ( R `
 v ) )
>. )  ->  ( ( G `  v ) F ( 2nd `  ( R `  v )
) )  e.  S
)
123 op2ndg 6130 . . . . . . . . . 10  |-  ( ( ( ( G `  v )  +  1 )  e.  ZZ  /\  ( ( G `  v ) F ( 2nd `  ( R `
 v ) ) )  e.  S )  ->  ( 2nd `  <. ( ( G `  v
)  +  1 ) ,  ( ( G `
 v ) F ( 2nd `  ( R `  v )
) ) >. )  =  ( ( G `
 v ) F ( 2nd `  ( R `  v )
) ) )
124121, 122, 123syl2anc 409 . . . . . . . . 9  |-  ( ( ( ph  /\  v  e.  om )  /\  ( R `  v )  =  <. ( G `  v ) ,  ( 2nd `  ( R `
 v ) )
>. )  ->  ( 2nd `  <. ( ( G `
 v )  +  1 ) ,  ( ( G `  v
) F ( 2nd `  ( R `  v
) ) ) >.
)  =  ( ( G `  v ) F ( 2nd `  ( R `  v )
) ) )
125118, 124eqtrd 2203 . . . . . . . 8  |-  ( ( ( ph  /\  v  e.  om )  /\  ( R `  v )  =  <. ( G `  v ) ,  ( 2nd `  ( R `
 v ) )
>. )  ->  ( 2nd `  ( R `  suc  v ) )  =  ( ( G `  v ) F ( 2nd `  ( R `
 v ) ) ) )
126117, 125opeq12d 3773 . . . . . . 7  |-  ( ( ( ph  /\  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 )
) ) >. )
127115, 126eqtr4d 2206 . . . . . 6  |-  ( ( ( ph  /\  v  e.  om )  /\  ( R `  v )  =  <. ( G `  v ) ,  ( 2nd `  ( R `
 v ) )
>. )  ->  ( R `
 suc  v )  =  <. ( G `  suc  v ) ,  ( 2nd `  ( R `
 suc  v )
) >. )
128127ex 114 . . . . 5  |-  ( (
ph  /\  v  e.  om )  ->  ( ( R `  v )  =  <. ( G `  v ) ,  ( 2nd `  ( R `
 v ) )
>.  ->  ( R `  suc  v )  =  <. ( G `  suc  v
) ,  ( 2nd `  ( R `  suc  v ) ) >.
) )
129128expcom 115 . . . 4  |-  ( v  e.  om  ->  ( ph  ->  ( ( R `
 v )  = 
<. ( G `  v
) ,  ( 2nd `  ( R `  v
) ) >.  ->  ( R `  suc  v )  =  <. ( G `  suc  v ) ,  ( 2nd `  ( R `
 suc  v )
) >. ) ) )
13012, 17, 22, 41, 129finds2 4585 . . 3  |-  ( z  e.  om  ->  ( ph  ->  ( R `  z )  =  <. ( G `  z ) ,  ( 2nd `  ( R `  z )
) >. ) )
1317, 130vtoclga 2796 . 2  |-  ( B  e.  om  ->  ( ph  ->  ( R `  B )  =  <. ( G `  B ) ,  ( 2nd `  ( R `  B )
) >. ) )
1321, 131mpcom 36 1  |-  ( ph  ->  ( R `  B
)  =  <. ( G `  B ) ,  ( 2nd `  ( R `  B )
) >. )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 103    = wceq 1348    e. wcel 2141   A.wral 2448   _Vcvv 2730   (/)c0 3414   <.cop 3586    |-> cmpt 4050   suc csuc 4350   omcom 4574    X. cxp 4609   ` cfv 5198  (class class class)co 5853    e. cmpo 5855   1stc1st 6117   2ndc2nd 6118  freccfrec 6369   1c1 7775    + caddc 7777   ZZcz 9212   ZZ>=cuz 9487
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 609  ax-in2 610  ax-io 704  ax-5 1440  ax-7 1441  ax-gen 1442  ax-ie1 1486  ax-ie2 1487  ax-8 1497  ax-10 1498  ax-11 1499  ax-i12 1500  ax-bndl 1502  ax-4 1503  ax-17 1519  ax-i9 1523  ax-ial 1527  ax-i5r 1528  ax-13 2143  ax-14 2144  ax-ext 2152  ax-coll 4104  ax-sep 4107  ax-nul 4115  ax-pow 4160  ax-pr 4194  ax-un 4418  ax-setind 4521  ax-iinf 4572  ax-cnex 7865  ax-resscn 7866  ax-1cn 7867  ax-1re 7868  ax-icn 7869  ax-addcl 7870  ax-addrcl 7871  ax-mulcl 7872  ax-addcom 7874  ax-addass 7876  ax-distr 7878  ax-i2m1 7879  ax-0lt1 7880  ax-0id 7882  ax-rnegex 7883  ax-cnre 7885  ax-pre-ltirr 7886  ax-pre-ltwlin 7887  ax-pre-lttrn 7888  ax-pre-ltadd 7890
This theorem depends on definitions:  df-bi 116  df-3or 974  df-3an 975  df-tru 1351  df-fal 1354  df-nf 1454  df-sb 1756  df-eu 2022  df-mo 2023  df-clab 2157  df-cleq 2163  df-clel 2166  df-nfc 2301  df-ne 2341  df-nel 2436  df-ral 2453  df-rex 2454  df-reu 2455  df-rab 2457  df-v 2732  df-sbc 2956  df-csb 3050  df-dif 3123  df-un 3125  df-in 3127  df-ss 3134  df-nul 3415  df-pw 3568  df-sn 3589  df-pr 3590  df-op 3592  df-uni 3797  df-int 3832  df-iun 3875  df-br 3990  df-opab 4051  df-mpt 4052  df-tr 4088  df-id 4278  df-iord 4351  df-on 4353  df-ilim 4354  df-suc 4356  df-iom 4575  df-xp 4617  df-rel 4618  df-cnv 4619  df-co 4620  df-dm 4621  df-rn 4622  df-res 4623  df-ima 4624  df-iota 5160  df-fun 5200  df-fn 5201  df-f 5202  df-f1 5203  df-fo 5204  df-f1o 5205  df-fv 5206  df-riota 5809  df-ov 5856  df-oprab 5857  df-mpo 5858  df-1st 6119  df-2nd 6120  df-recs 6284  df-frec 6370  df-pnf 7956  df-mnf 7957  df-xr 7958  df-ltxr 7959  df-le 7960  df-sub 8092  df-neg 8093  df-inn 8879  df-n0 9136  df-z 9213  df-uz 9488
This theorem is referenced by:  frecuzrdglem  10367  frecuzrdgtcl  10368  frecuzrdgsuc  10370
  Copyright terms: Public domain W3C validator