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

Theorem frecuzrdgg 9788
Description: Lemma for other theorems involving the the recursive definition generator on upper integers. Evaluating  R at a natural number gives an ordered pair whose first element is the mapping of that natural number via  G. (Contributed by Jim Kingdon, 23-Apr-2022.)
Hypotheses
Ref Expression
frecuzrdgrclt.c  |-  ( ph  ->  C  e.  ZZ )
frecuzrdgrclt.a  |-  ( ph  ->  A  e.  S )
frecuzrdgrclt.t  |-  ( ph  ->  S  C_  T )
frecuzrdgrclt.f  |-  ( (
ph  /\  ( x  e.  ( ZZ>= `  C )  /\  y  e.  S
) )  ->  (
x F y )  e.  S )
frecuzrdgrclt.r  |-  R  = frec ( ( x  e.  ( ZZ>= `  C ) ,  y  e.  T  |-> 
<. ( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. )
frecuzrdgg.n  |-  ( ph  ->  N  e.  om )
frecuzrdgg.g  |-  G  = frec ( ( x  e.  ZZ  |->  ( x  + 
1 ) ) ,  C )
Assertion
Ref Expression
frecuzrdgg  |-  ( ph  ->  ( 1st `  ( R `  N )
)  =  ( G `
 N ) )
Distinct variable groups:    x, C, y   
x, F, y    x, S, y    x, T, y    ph, x, y    x, G, y    x, R, y
Allowed substitution hints:    A( x, y)    N( x, y)

Proof of Theorem frecuzrdgg
Dummy variables  z  k  w are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 frecuzrdgg.n . 2  |-  ( ph  ->  N  e.  om )
2 fveq2 5289 . . . . . 6  |-  ( w  =  (/)  ->  ( R `
 w )  =  ( R `  (/) ) )
32fveq2d 5293 . . . . 5  |-  ( w  =  (/)  ->  ( 1st `  ( R `  w
) )  =  ( 1st `  ( R `
 (/) ) ) )
4 fveq2 5289 . . . . 5  |-  ( w  =  (/)  ->  ( G `
 w )  =  ( G `  (/) ) )
53, 4eqeq12d 2102 . . . 4  |-  ( w  =  (/)  ->  ( ( 1st `  ( R `
 w ) )  =  ( G `  w )  <->  ( 1st `  ( R `  (/) ) )  =  ( G `  (/) ) ) )
65imbi2d 228 . . 3  |-  ( w  =  (/)  ->  ( (
ph  ->  ( 1st `  ( R `  w )
)  =  ( G `
 w ) )  <-> 
( ph  ->  ( 1st `  ( R `  (/) ) )  =  ( G `  (/) ) ) ) )
7 fveq2 5289 . . . . . 6  |-  ( w  =  k  ->  ( R `  w )  =  ( R `  k ) )
87fveq2d 5293 . . . . 5  |-  ( w  =  k  ->  ( 1st `  ( R `  w ) )  =  ( 1st `  ( R `  k )
) )
9 fveq2 5289 . . . . 5  |-  ( w  =  k  ->  ( G `  w )  =  ( G `  k ) )
108, 9eqeq12d 2102 . . . 4  |-  ( w  =  k  ->  (
( 1st `  ( R `  w )
)  =  ( G `
 w )  <->  ( 1st `  ( R `  k
) )  =  ( G `  k ) ) )
1110imbi2d 228 . . 3  |-  ( w  =  k  ->  (
( ph  ->  ( 1st `  ( R `  w
) )  =  ( G `  w ) )  <->  ( ph  ->  ( 1st `  ( R `
 k ) )  =  ( G `  k ) ) ) )
12 fveq2 5289 . . . . . 6  |-  ( w  =  suc  k  -> 
( R `  w
)  =  ( R `
 suc  k )
)
1312fveq2d 5293 . . . . 5  |-  ( w  =  suc  k  -> 
( 1st `  ( R `  w )
)  =  ( 1st `  ( R `  suc  k ) ) )
14 fveq2 5289 . . . . 5  |-  ( w  =  suc  k  -> 
( G `  w
)  =  ( G `
 suc  k )
)
1513, 14eqeq12d 2102 . . . 4  |-  ( w  =  suc  k  -> 
( ( 1st `  ( R `  w )
)  =  ( G `
 w )  <->  ( 1st `  ( R `  suc  k ) )  =  ( G `  suc  k ) ) )
1615imbi2d 228 . . 3  |-  ( w  =  suc  k  -> 
( ( ph  ->  ( 1st `  ( R `
 w ) )  =  ( G `  w ) )  <->  ( ph  ->  ( 1st `  ( R `  suc  k ) )  =  ( G `
 suc  k )
) ) )
17 fveq2 5289 . . . . . 6  |-  ( w  =  N  ->  ( R `  w )  =  ( R `  N ) )
1817fveq2d 5293 . . . . 5  |-  ( w  =  N  ->  ( 1st `  ( R `  w ) )  =  ( 1st `  ( R `  N )
) )
19 fveq2 5289 . . . . 5  |-  ( w  =  N  ->  ( G `  w )  =  ( G `  N ) )
2018, 19eqeq12d 2102 . . . 4  |-  ( w  =  N  ->  (
( 1st `  ( R `  w )
)  =  ( G `
 w )  <->  ( 1st `  ( R `  N
) )  =  ( G `  N ) ) )
2120imbi2d 228 . . 3  |-  ( w  =  N  ->  (
( ph  ->  ( 1st `  ( R `  w
) )  =  ( G `  w ) )  <->  ( ph  ->  ( 1st `  ( R `
 N ) )  =  ( G `  N ) ) ) )
22 frecuzrdgrclt.c . . . . 5  |-  ( ph  ->  C  e.  ZZ )
23 frecuzrdgrclt.a . . . . 5  |-  ( ph  ->  A  e.  S )
24 op1stg 5903 . . . . 5  |-  ( ( C  e.  ZZ  /\  A  e.  S )  ->  ( 1st `  <. C ,  A >. )  =  C )
2522, 23, 24syl2anc 403 . . . 4  |-  ( ph  ->  ( 1st `  <. C ,  A >. )  =  C )
26 frecuzrdgrclt.r . . . . . . 7  |-  R  = frec ( ( x  e.  ( ZZ>= `  C ) ,  y  e.  T  |-> 
<. ( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. )
2726fveq1i 5290 . . . . . 6  |-  ( R `
 (/) )  =  (frec ( ( x  e.  ( ZZ>= `  C ) ,  y  e.  T  |-> 
<. ( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. ) `  (/) )
28 opexg 4046 . . . . . . . 8  |-  ( ( C  e.  ZZ  /\  A  e.  S )  -> 
<. C ,  A >.  e. 
_V )
29 frec0g 6144 . . . . . . . 8  |-  ( <. C ,  A >.  e. 
_V  ->  (frec ( ( x  e.  ( ZZ>= `  C ) ,  y  e.  T  |->  <. (
x  +  1 ) ,  ( x F y ) >. ) ,  <. C ,  A >. ) `  (/) )  = 
<. C ,  A >. )
3028, 29syl 14 . . . . . . 7  |-  ( ( C  e.  ZZ  /\  A  e.  S )  ->  (frec ( ( x  e.  ( ZZ>= `  C
) ,  y  e.  T  |->  <. ( x  + 
1 ) ,  ( x F y )
>. ) ,  <. C ,  A >. ) `  (/) )  = 
<. C ,  A >. )
3122, 23, 30syl2anc 403 . . . . . 6  |-  ( ph  ->  (frec ( ( x  e.  ( ZZ>= `  C
) ,  y  e.  T  |->  <. ( x  + 
1 ) ,  ( x F y )
>. ) ,  <. C ,  A >. ) `  (/) )  = 
<. C ,  A >. )
3227, 31syl5eq 2132 . . . . 5  |-  ( ph  ->  ( R `  (/) )  = 
<. C ,  A >. )
3332fveq2d 5293 . . . 4  |-  ( ph  ->  ( 1st `  ( R `  (/) ) )  =  ( 1st `  <. C ,  A >. )
)
34 frecuzrdgg.g . . . . 5  |-  G  = frec ( ( x  e.  ZZ  |->  ( x  + 
1 ) ) ,  C )
3522, 34frec2uz0d 9771 . . . 4  |-  ( ph  ->  ( G `  (/) )  =  C )
3625, 33, 353eqtr4d 2130 . . 3  |-  ( ph  ->  ( 1st `  ( R `  (/) ) )  =  ( G `  (/) ) )
3722, 34frec2uzf1od 9778 . . . . . . . . . . 11  |-  ( ph  ->  G : om -1-1-onto-> ( ZZ>= `  C )
)
38 f1of 5237 . . . . . . . . . . 11  |-  ( G : om -1-1-onto-> ( ZZ>= `  C )  ->  G : om --> ( ZZ>= `  C ) )
3937, 38syl 14 . . . . . . . . . 10  |-  ( ph  ->  G : om --> ( ZZ>= `  C ) )
4039ad2antlr 473 . . . . . . . . 9  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  G : om --> ( ZZ>= `  C
) )
41 simpll 496 . . . . . . . . 9  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  k  e.  om )
4240, 41ffvelrnd 5419 . . . . . . . 8  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  ( G `  k )  e.  ( ZZ>= `  C )
)
43 peano2uz 9040 . . . . . . . 8  |-  ( ( G `  k )  e.  ( ZZ>= `  C
)  ->  ( ( G `  k )  +  1 )  e.  ( ZZ>= `  C )
)
4442, 43syl 14 . . . . . . 7  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  (
( G `  k
)  +  1 )  e.  ( ZZ>= `  C
) )
45 oveq2 5642 . . . . . . . . 9  |-  ( y  =  ( 2nd `  ( R `  k )
)  ->  ( ( G `  k ) F y )  =  ( ( G `  k ) F ( 2nd `  ( R `
 k ) ) ) )
4645eleq1d 2156 . . . . . . . 8  |-  ( y  =  ( 2nd `  ( R `  k )
)  ->  ( (
( G `  k
) F y )  e.  S  <->  ( ( G `  k ) F ( 2nd `  ( R `  k )
) )  e.  S
) )
47 oveq1 5641 . . . . . . . . . . 11  |-  ( x  =  ( G `  k )  ->  (
x F y )  =  ( ( G `
 k ) F y ) )
4847eleq1d 2156 . . . . . . . . . 10  |-  ( x  =  ( G `  k )  ->  (
( x F y )  e.  S  <->  ( ( G `  k ) F y )  e.  S ) )
4948ralbidv 2380 . . . . . . . . 9  |-  ( x  =  ( G `  k )  ->  ( A. y  e.  S  ( x F y )  e.  S  <->  A. y  e.  S  ( ( G `  k ) F y )  e.  S ) )
50 frecuzrdgrclt.f . . . . . . . . . . 11  |-  ( (
ph  /\  ( x  e.  ( ZZ>= `  C )  /\  y  e.  S
) )  ->  (
x F y )  e.  S )
5150ralrimivva 2455 . . . . . . . . . 10  |-  ( ph  ->  A. x  e.  (
ZZ>= `  C ) A. y  e.  S  (
x F y )  e.  S )
5251ad2antlr 473 . . . . . . . . 9  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  A. x  e.  ( ZZ>= `  C ) A. y  e.  S  ( x F y )  e.  S )
5349, 52, 42rspcdva 2727 . . . . . . . 8  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  A. y  e.  S  ( ( G `  k ) F y )  e.  S )
54 frecuzrdgrclt.t . . . . . . . . . . . 12  |-  ( ph  ->  S  C_  T )
5522, 23, 54, 50, 26frecuzrdgrclt 9787 . . . . . . . . . . 11  |-  ( ph  ->  R : om --> ( (
ZZ>= `  C )  X.  S ) )
5655ad2antlr 473 . . . . . . . . . 10  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  R : om --> ( ( ZZ>= `  C )  X.  S
) )
5756, 41ffvelrnd 5419 . . . . . . . . 9  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  ( R `  k )  e.  ( ( ZZ>= `  C
)  X.  S ) )
58 xp2nd 5919 . . . . . . . . 9  |-  ( ( R `  k )  e.  ( ( ZZ>= `  C )  X.  S
)  ->  ( 2nd `  ( R `  k
) )  e.  S
)
5957, 58syl 14 . . . . . . . 8  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  ( 2nd `  ( R `  k ) )  e.  S )
6046, 53, 59rspcdva 2727 . . . . . . 7  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  (
( G `  k
) F ( 2nd `  ( R `  k
) ) )  e.  S )
61 op1stg 5903 . . . . . . 7  |-  ( ( ( ( G `  k )  +  1 )  e.  ( ZZ>= `  C )  /\  (
( G `  k
) F ( 2nd `  ( R `  k
) ) )  e.  S )  ->  ( 1st `  <. ( ( G `
 k )  +  1 ) ,  ( ( G `  k
) F ( 2nd `  ( R `  k
) ) ) >.
)  =  ( ( G `  k )  +  1 ) )
6244, 60, 61syl2anc 403 . . . . . 6  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  ( 1st `  <. ( ( G `
 k )  +  1 ) ,  ( ( G `  k
) F ( 2nd `  ( R `  k
) ) ) >.
)  =  ( ( G `  k )  +  1 ) )
63 1st2nd2 5927 . . . . . . . . . . . . . . . 16  |-  ( z  e.  ( ( ZZ>= `  C )  X.  S
)  ->  z  =  <. ( 1st `  z
) ,  ( 2nd `  z ) >. )
6463adantl 271 . . . . . . . . . . . . . . 15  |-  ( ( ( ( k  e. 
om  /\  ph )  /\  ( 1st `  ( R `
 k ) )  =  ( G `  k ) )  /\  z  e.  ( ( ZZ>=
`  C )  X.  S ) )  -> 
z  =  <. ( 1st `  z ) ,  ( 2nd `  z
) >. )
6564fveq2d 5293 . . . . . . . . . . . . . 14  |-  ( ( ( ( k  e. 
om  /\  ph )  /\  ( 1st `  ( R `
 k ) )  =  ( G `  k ) )  /\  z  e.  ( ( ZZ>=
`  C )  X.  S ) )  -> 
( ( x  e.  ( ZZ>= `  C ) ,  y  e.  T  |-> 
<. ( x  +  1 ) ,  ( x F y ) >.
) `  z )  =  ( ( x  e.  ( ZZ>= `  C
) ,  y  e.  T  |->  <. ( x  + 
1 ) ,  ( x F y )
>. ) `  <. ( 1st `  z ) ,  ( 2nd `  z
) >. ) )
66 df-ov 5637 . . . . . . . . . . . . . . . 16  |-  ( ( 1st `  z ) ( x  e.  (
ZZ>= `  C ) ,  y  e.  T  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) ( 2nd `  z
) )  =  ( ( x  e.  (
ZZ>= `  C ) ,  y  e.  T  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) `  <. ( 1st `  z ) ,  ( 2nd `  z )
>. )
67 xp1st 5918 . . . . . . . . . . . . . . . . . 18  |-  ( z  e.  ( ( ZZ>= `  C )  X.  S
)  ->  ( 1st `  z )  e.  (
ZZ>= `  C ) )
6867adantl 271 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( k  e. 
om  /\  ph )  /\  ( 1st `  ( R `
 k ) )  =  ( G `  k ) )  /\  z  e.  ( ( ZZ>=
`  C )  X.  S ) )  -> 
( 1st `  z
)  e.  ( ZZ>= `  C ) )
6954ad3antlr 477 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( ( k  e. 
om  /\  ph )  /\  ( 1st `  ( R `
 k ) )  =  ( G `  k ) )  /\  z  e.  ( ( ZZ>=
`  C )  X.  S ) )  ->  S  C_  T )
70 xp2nd 5919 . . . . . . . . . . . . . . . . . . 19  |-  ( z  e.  ( ( ZZ>= `  C )  X.  S
)  ->  ( 2nd `  z )  e.  S
)
7170adantl 271 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( ( k  e. 
om  /\  ph )  /\  ( 1st `  ( R `
 k ) )  =  ( G `  k ) )  /\  z  e.  ( ( ZZ>=
`  C )  X.  S ) )  -> 
( 2nd `  z
)  e.  S )
7269, 71sseldd 3024 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( k  e. 
om  /\  ph )  /\  ( 1st `  ( R `
 k ) )  =  ( G `  k ) )  /\  z  e.  ( ( ZZ>=
`  C )  X.  S ) )  -> 
( 2nd `  z
)  e.  T )
73 peano2uz 9040 . . . . . . . . . . . . . . . . . . 19  |-  ( ( 1st `  z )  e.  ( ZZ>= `  C
)  ->  ( ( 1st `  z )  +  1 )  e.  (
ZZ>= `  C ) )
7468, 73syl 14 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( ( k  e. 
om  /\  ph )  /\  ( 1st `  ( R `
 k ) )  =  ( G `  k ) )  /\  z  e.  ( ( ZZ>=
`  C )  X.  S ) )  -> 
( ( 1st `  z
)  +  1 )  e.  ( ZZ>= `  C
) )
75 oveq2 5642 . . . . . . . . . . . . . . . . . . . 20  |-  ( y  =  ( 2nd `  z
)  ->  ( ( 1st `  z ) F y )  =  ( ( 1st `  z
) F ( 2nd `  z ) ) )
7675eleq1d 2156 . . . . . . . . . . . . . . . . . . 19  |-  ( y  =  ( 2nd `  z
)  ->  ( (
( 1st `  z
) F y )  e.  S  <->  ( ( 1st `  z ) F ( 2nd `  z
) )  e.  S
) )
77 oveq1 5641 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( x  =  ( 1st `  z
)  ->  ( x F y )  =  ( ( 1st `  z
) F y ) )
7877eleq1d 2156 . . . . . . . . . . . . . . . . . . . . 21  |-  ( x  =  ( 1st `  z
)  ->  ( (
x F y )  e.  S  <->  ( ( 1st `  z ) F y )  e.  S
) )
7978ralbidv 2380 . . . . . . . . . . . . . . . . . . . 20  |-  ( x  =  ( 1st `  z
)  ->  ( A. y  e.  S  (
x F y )  e.  S  <->  A. y  e.  S  ( ( 1st `  z ) F y )  e.  S
) )
8051ad3antlr 477 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( ( ( k  e. 
om  /\  ph )  /\  ( 1st `  ( R `
 k ) )  =  ( G `  k ) )  /\  z  e.  ( ( ZZ>=
`  C )  X.  S ) )  ->  A. x  e.  ( ZZ>=
`  C ) A. y  e.  S  (
x F y )  e.  S )
8179, 80, 68rspcdva 2727 . . . . . . . . . . . . . . . . . . 19  |-  ( ( ( ( k  e. 
om  /\  ph )  /\  ( 1st `  ( R `
 k ) )  =  ( G `  k ) )  /\  z  e.  ( ( ZZ>=
`  C )  X.  S ) )  ->  A. y  e.  S  ( ( 1st `  z
) F y )  e.  S )
8276, 81, 71rspcdva 2727 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( ( k  e. 
om  /\  ph )  /\  ( 1st `  ( R `
 k ) )  =  ( G `  k ) )  /\  z  e.  ( ( ZZ>=
`  C )  X.  S ) )  -> 
( ( 1st `  z
) F ( 2nd `  z ) )  e.  S )
83 opelxpi 4459 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( ( 1st `  z
)  +  1 )  e.  ( ZZ>= `  C
)  /\  ( ( 1st `  z ) F ( 2nd `  z
) )  e.  S
)  ->  <. ( ( 1st `  z )  +  1 ) ,  ( ( 1st `  z
) F ( 2nd `  z ) ) >.  e.  ( ( ZZ>= `  C
)  X.  S ) )
8474, 82, 83syl2anc 403 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( k  e. 
om  /\  ph )  /\  ( 1st `  ( R `
 k ) )  =  ( G `  k ) )  /\  z  e.  ( ( ZZ>=
`  C )  X.  S ) )  ->  <. ( ( 1st `  z
)  +  1 ) ,  ( ( 1st `  z ) F ( 2nd `  z ) ) >.  e.  (
( ZZ>= `  C )  X.  S ) )
85 oveq1 5641 . . . . . . . . . . . . . . . . . . 19  |-  ( x  =  ( 1st `  z
)  ->  ( x  +  1 )  =  ( ( 1st `  z
)  +  1 ) )
8685, 77opeq12d 3625 . . . . . . . . . . . . . . . . . 18  |-  ( x  =  ( 1st `  z
)  ->  <. ( x  +  1 ) ,  ( x F y ) >.  =  <. ( ( 1st `  z
)  +  1 ) ,  ( ( 1st `  z ) F y ) >. )
8775opeq2d 3624 . . . . . . . . . . . . . . . . . 18  |-  ( y  =  ( 2nd `  z
)  ->  <. ( ( 1st `  z )  +  1 ) ,  ( ( 1st `  z
) F y )
>.  =  <. ( ( 1st `  z )  +  1 ) ,  ( ( 1st `  z
) F ( 2nd `  z ) ) >.
)
88 eqid 2088 . . . . . . . . . . . . . . . . . 18  |-  ( x  e.  ( ZZ>= `  C
) ,  y  e.  T  |->  <. ( x  + 
1 ) ,  ( x F y )
>. )  =  (
x  e.  ( ZZ>= `  C ) ,  y  e.  T  |->  <. (
x  +  1 ) ,  ( x F y ) >. )
8986, 87, 88ovmpt2g 5761 . . . . . . . . . . . . . . . . 17  |-  ( ( ( 1st `  z
)  e.  ( ZZ>= `  C )  /\  ( 2nd `  z )  e.  T  /\  <. (
( 1st `  z
)  +  1 ) ,  ( ( 1st `  z ) F ( 2nd `  z ) ) >.  e.  (
( ZZ>= `  C )  X.  S ) )  -> 
( ( 1st `  z
) ( x  e.  ( ZZ>= `  C ) ,  y  e.  T  |-> 
<. ( x  +  1 ) ,  ( x F y ) >.
) ( 2nd `  z
) )  =  <. ( ( 1st `  z
)  +  1 ) ,  ( ( 1st `  z ) F ( 2nd `  z ) ) >. )
9068, 72, 84, 89syl3anc 1174 . . . . . . . . . . . . . . . 16  |-  ( ( ( ( k  e. 
om  /\  ph )  /\  ( 1st `  ( R `
 k ) )  =  ( G `  k ) )  /\  z  e.  ( ( ZZ>=
`  C )  X.  S ) )  -> 
( ( 1st `  z
) ( x  e.  ( ZZ>= `  C ) ,  y  e.  T  |-> 
<. ( x  +  1 ) ,  ( x F y ) >.
) ( 2nd `  z
) )  =  <. ( ( 1st `  z
)  +  1 ) ,  ( ( 1st `  z ) F ( 2nd `  z ) ) >. )
9166, 90syl5eqr 2134 . . . . . . . . . . . . . . 15  |-  ( ( ( ( k  e. 
om  /\  ph )  /\  ( 1st `  ( R `
 k ) )  =  ( G `  k ) )  /\  z  e.  ( ( ZZ>=
`  C )  X.  S ) )  -> 
( ( x  e.  ( ZZ>= `  C ) ,  y  e.  T  |-> 
<. ( x  +  1 ) ,  ( x F y ) >.
) `  <. ( 1st `  z ) ,  ( 2nd `  z )
>. )  =  <. ( ( 1st `  z
)  +  1 ) ,  ( ( 1st `  z ) F ( 2nd `  z ) ) >. )
9291, 84eqeltrd 2164 . . . . . . . . . . . . . 14  |-  ( ( ( ( k  e. 
om  /\  ph )  /\  ( 1st `  ( R `
 k ) )  =  ( G `  k ) )  /\  z  e.  ( ( ZZ>=
`  C )  X.  S ) )  -> 
( ( x  e.  ( ZZ>= `  C ) ,  y  e.  T  |-> 
<. ( x  +  1 ) ,  ( x F y ) >.
) `  <. ( 1st `  z ) ,  ( 2nd `  z )
>. )  e.  (
( ZZ>= `  C )  X.  S ) )
9365, 92eqeltrd 2164 . . . . . . . . . . . . 13  |-  ( ( ( ( k  e. 
om  /\  ph )  /\  ( 1st `  ( R `
 k ) )  =  ( G `  k ) )  /\  z  e.  ( ( ZZ>=
`  C )  X.  S ) )  -> 
( ( x  e.  ( ZZ>= `  C ) ,  y  e.  T  |-> 
<. ( x  +  1 ) ,  ( x F y ) >.
) `  z )  e.  ( ( ZZ>= `  C
)  X.  S ) )
9493ralrimiva 2446 . . . . . . . . . . . 12  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  A. z  e.  ( ( ZZ>= `  C
)  X.  S ) ( ( x  e.  ( ZZ>= `  C ) ,  y  e.  T  |-> 
<. ( x  +  1 ) ,  ( x F y ) >.
) `  z )  e.  ( ( ZZ>= `  C
)  X.  S ) )
95 uzid 9002 . . . . . . . . . . . . . . 15  |-  ( C  e.  ZZ  ->  C  e.  ( ZZ>= `  C )
)
9622, 95syl 14 . . . . . . . . . . . . . 14  |-  ( ph  ->  C  e.  ( ZZ>= `  C ) )
97 opelxpi 4459 . . . . . . . . . . . . . 14  |-  ( ( C  e.  ( ZZ>= `  C )  /\  A  e.  S )  ->  <. C ,  A >.  e.  ( (
ZZ>= `  C )  X.  S ) )
9896, 23, 97syl2anc 403 . . . . . . . . . . . . 13  |-  ( ph  -> 
<. C ,  A >.  e.  ( ( ZZ>= `  C
)  X.  S ) )
9998ad2antlr 473 . . . . . . . . . . . 12  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  <. C ,  A >.  e.  ( (
ZZ>= `  C )  X.  S ) )
100 frecsuc 6154 . . . . . . . . . . . 12  |-  ( ( A. z  e.  ( ( ZZ>= `  C )  X.  S ) ( ( x  e.  ( ZZ>= `  C ) ,  y  e.  T  |->  <. (
x  +  1 ) ,  ( x F y ) >. ) `  z )  e.  ( ( ZZ>= `  C )  X.  S )  /\  <. C ,  A >.  e.  ( ( ZZ>= `  C )  X.  S )  /\  k  e.  om )  ->  (frec ( ( x  e.  ( ZZ>= `  C ) ,  y  e.  T  |-> 
<. ( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. ) `  suc  k )  =  ( ( x  e.  (
ZZ>= `  C ) ,  y  e.  T  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) `  (frec (
( x  e.  (
ZZ>= `  C ) ,  y  e.  T  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. ) `  k
) ) )
10194, 99, 41, 100syl3anc 1174 . . . . . . . . . . 11  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  (frec ( ( x  e.  ( ZZ>= `  C ) ,  y  e.  T  |-> 
<. ( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. ) `  suc  k )  =  ( ( x  e.  (
ZZ>= `  C ) ,  y  e.  T  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) `  (frec (
( x  e.  (
ZZ>= `  C ) ,  y  e.  T  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. ) `  k
) ) )
10226fveq1i 5290 . . . . . . . . . . 11  |-  ( R `
 suc  k )  =  (frec ( ( x  e.  ( ZZ>= `  C
) ,  y  e.  T  |->  <. ( x  + 
1 ) ,  ( x F y )
>. ) ,  <. C ,  A >. ) `  suc  k )
10326fveq1i 5290 . . . . . . . . . . . 12  |-  ( R `
 k )  =  (frec ( ( x  e.  ( ZZ>= `  C
) ,  y  e.  T  |->  <. ( x  + 
1 ) ,  ( x F y )
>. ) ,  <. C ,  A >. ) `  k
)
104103fveq2i 5292 . . . . . . . . . . 11  |-  ( ( x  e.  ( ZZ>= `  C ) ,  y  e.  T  |->  <. (
x  +  1 ) ,  ( x F y ) >. ) `  ( R `  k
) )  =  ( ( x  e.  (
ZZ>= `  C ) ,  y  e.  T  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) `  (frec (
( x  e.  (
ZZ>= `  C ) ,  y  e.  T  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. ) `  k
) )
105101, 102, 1043eqtr4g 2145 . . . . . . . . . 10  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  ( R `  suc  k )  =  ( ( x  e.  ( ZZ>= `  C
) ,  y  e.  T  |->  <. ( x  + 
1 ) ,  ( x F y )
>. ) `  ( R `
 k ) ) )
106 1st2nd2 5927 . . . . . . . . . . . 12  |-  ( ( R `  k )  e.  ( ( ZZ>= `  C )  X.  S
)  ->  ( R `  k )  =  <. ( 1st `  ( R `
 k ) ) ,  ( 2nd `  ( R `  k )
) >. )
10757, 106syl 14 . . . . . . . . . . 11  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  ( R `  k )  =  <. ( 1st `  ( R `  k )
) ,  ( 2nd `  ( R `  k
) ) >. )
108107fveq2d 5293 . . . . . . . . . 10  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  (
( x  e.  (
ZZ>= `  C ) ,  y  e.  T  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) `  ( R `  k ) )  =  ( ( x  e.  ( ZZ>= `  C ) ,  y  e.  T  |-> 
<. ( x  +  1 ) ,  ( x F y ) >.
) `  <. ( 1st `  ( R `  k
) ) ,  ( 2nd `  ( R `
 k ) )
>. ) )
109105, 108eqtrd 2120 . . . . . . . . 9  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  ( R `  suc  k )  =  ( ( x  e.  ( ZZ>= `  C
) ,  y  e.  T  |->  <. ( x  + 
1 ) ,  ( x F y )
>. ) `  <. ( 1st `  ( R `  k ) ) ,  ( 2nd `  ( R `  k )
) >. ) )
110 simpr 108 . . . . . . . . . . 11  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  ( 1st `  ( R `  k ) )  =  ( G `  k
) )
111110opeq1d 3623 . . . . . . . . . 10  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  <. ( 1st `  ( R `  k ) ) ,  ( 2nd `  ( R `  k )
) >.  =  <. ( G `  k ) ,  ( 2nd `  ( R `  k )
) >. )
112111fveq2d 5293 . . . . . . . . 9  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  (
( x  e.  (
ZZ>= `  C ) ,  y  e.  T  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) `  <. ( 1st `  ( R `  k
) ) ,  ( 2nd `  ( R `
 k ) )
>. )  =  (
( x  e.  (
ZZ>= `  C ) ,  y  e.  T  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) `  <. ( G `
 k ) ,  ( 2nd `  ( R `  k )
) >. ) )
113109, 112eqtrd 2120 . . . . . . . 8  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  ( R `  suc  k )  =  ( ( x  e.  ( ZZ>= `  C
) ,  y  e.  T  |->  <. ( x  + 
1 ) ,  ( x F y )
>. ) `  <. ( G `  k ) ,  ( 2nd `  ( R `  k )
) >. ) )
114 df-ov 5637 . . . . . . . . 9  |-  ( ( G `  k ) ( x  e.  (
ZZ>= `  C ) ,  y  e.  T  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) ( 2nd `  ( R `  k )
) )  =  ( ( x  e.  (
ZZ>= `  C ) ,  y  e.  T  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) `  <. ( G `
 k ) ,  ( 2nd `  ( R `  k )
) >. )
11554ad2antlr 473 . . . . . . . . . . 11  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  S  C_  T )
116115, 59sseldd 3024 . . . . . . . . . 10  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  ( 2nd `  ( R `  k ) )  e.  T )
117 opelxpi 4459 . . . . . . . . . . 11  |-  ( ( ( ( G `  k )  +  1 )  e.  ( ZZ>= `  C )  /\  (
( G `  k
) F ( 2nd `  ( R `  k
) ) )  e.  S )  ->  <. (
( G `  k
)  +  1 ) ,  ( ( G `
 k ) F ( 2nd `  ( R `  k )
) ) >.  e.  ( ( ZZ>= `  C )  X.  S ) )
11844, 60, 117syl2anc 403 . . . . . . . . . 10  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  <. (
( G `  k
)  +  1 ) ,  ( ( G `
 k ) F ( 2nd `  ( R `  k )
) ) >.  e.  ( ( ZZ>= `  C )  X.  S ) )
119 oveq1 5641 . . . . . . . . . . . 12  |-  ( x  =  ( G `  k )  ->  (
x  +  1 )  =  ( ( G `
 k )  +  1 ) )
120119, 47opeq12d 3625 . . . . . . . . . . 11  |-  ( x  =  ( G `  k )  ->  <. (
x  +  1 ) ,  ( x F y ) >.  =  <. ( ( G `  k
)  +  1 ) ,  ( ( G `
 k ) F y ) >. )
12145opeq2d 3624 . . . . . . . . . . 11  |-  ( y  =  ( 2nd `  ( R `  k )
)  ->  <. ( ( G `  k )  +  1 ) ,  ( ( G `  k ) F y ) >.  =  <. ( ( G `  k
)  +  1 ) ,  ( ( G `
 k ) F ( 2nd `  ( R `  k )
) ) >. )
122120, 121, 88ovmpt2g 5761 . . . . . . . . . 10  |-  ( ( ( G `  k
)  e.  ( ZZ>= `  C )  /\  ( 2nd `  ( R `  k ) )  e.  T  /\  <. (
( G `  k
)  +  1 ) ,  ( ( G `
 k ) F ( 2nd `  ( R `  k )
) ) >.  e.  ( ( ZZ>= `  C )  X.  S ) )  -> 
( ( G `  k ) ( x  e.  ( ZZ>= `  C
) ,  y  e.  T  |->  <. ( x  + 
1 ) ,  ( x F y )
>. ) ( 2nd `  ( R `  k )
) )  =  <. ( ( G `  k
)  +  1 ) ,  ( ( G `
 k ) F ( 2nd `  ( R `  k )
) ) >. )
12342, 116, 118, 122syl3anc 1174 . . . . . . . . 9  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  (
( G `  k
) ( x  e.  ( ZZ>= `  C ) ,  y  e.  T  |-> 
<. ( x  +  1 ) ,  ( x F y ) >.
) ( 2nd `  ( R `  k )
) )  =  <. ( ( G `  k
)  +  1 ) ,  ( ( G `
 k ) F ( 2nd `  ( R `  k )
) ) >. )
124114, 123syl5eqr 2134 . . . . . . . 8  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  (
( x  e.  (
ZZ>= `  C ) ,  y  e.  T  |->  <.
( x  +  1 ) ,  ( x F y ) >.
) `  <. ( G `
 k ) ,  ( 2nd `  ( R `  k )
) >. )  =  <. ( ( G `  k
)  +  1 ) ,  ( ( G `
 k ) F ( 2nd `  ( R `  k )
) ) >. )
125113, 124eqtrd 2120 . . . . . . 7  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  ( R `  suc  k )  =  <. ( ( G `
 k )  +  1 ) ,  ( ( G `  k
) F ( 2nd `  ( R `  k
) ) ) >.
)
126125fveq2d 5293 . . . . . 6  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  ( 1st `  ( R `  suc  k ) )  =  ( 1st `  <. ( ( G `  k
)  +  1 ) ,  ( ( G `
 k ) F ( 2nd `  ( R `  k )
) ) >. )
)
12722ad2antlr 473 . . . . . . 7  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  C  e.  ZZ )
128127, 34, 41frec2uzsucd 9773 . . . . . 6  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  ( G `  suc  k )  =  ( ( G `
 k )  +  1 ) )
12962, 126, 1283eqtr4d 2130 . . . . 5  |-  ( ( ( k  e.  om  /\ 
ph )  /\  ( 1st `  ( R `  k ) )  =  ( G `  k
) )  ->  ( 1st `  ( R `  suc  k ) )  =  ( G `  suc  k ) )
130129exp31 356 . . . 4  |-  ( k  e.  om  ->  ( ph  ->  ( ( 1st `  ( R `  k
) )  =  ( G `  k )  ->  ( 1st `  ( R `  suc  k ) )  =  ( G `
 suc  k )
) ) )
131130a2d 26 . . 3  |-  ( k  e.  om  ->  (
( ph  ->  ( 1st `  ( R `  k
) )  =  ( G `  k ) )  ->  ( ph  ->  ( 1st `  ( R `  suc  k ) )  =  ( G `
 suc  k )
) ) )
1326, 11, 16, 21, 36, 131finds 4405 . 2  |-  ( N  e.  om  ->  ( ph  ->  ( 1st `  ( R `  N )
)  =  ( G `
 N ) ) )
1331, 132mpcom 36 1  |-  ( ph  ->  ( 1st `  ( R `  N )
)  =  ( G `
 N ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 102    = wceq 1289    e. wcel 1438   A.wral 2359   _Vcvv 2619    C_ wss 2997   (/)c0 3284   <.cop 3444    |-> cmpt 3891   suc csuc 4183   omcom 4395    X. cxp 4426   -->wf 4998   -1-1-onto->wf1o 5001   ` cfv 5002  (class class class)co 5634    |-> cmpt2 5636   1stc1st 5891   2ndc2nd 5892  freccfrec 6137   1c1 7330    + caddc 7332   ZZcz 8720   ZZ>=cuz 8988
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 104  ax-ia2 105  ax-ia3 106  ax-in1 579  ax-in2 580  ax-io 665  ax-5 1381  ax-7 1382  ax-gen 1383  ax-ie1 1427  ax-ie2 1428  ax-8 1440  ax-10 1441  ax-11 1442  ax-i12 1443  ax-bndl 1444  ax-4 1445  ax-13 1449  ax-14 1450  ax-17 1464  ax-i9 1468  ax-ial 1472  ax-i5r 1473  ax-ext 2070  ax-coll 3946  ax-sep 3949  ax-nul 3957  ax-pow 4001  ax-pr 4027  ax-un 4251  ax-setind 4343  ax-iinf 4393  ax-cnex 7415  ax-resscn 7416  ax-1cn 7417  ax-1re 7418  ax-icn 7419  ax-addcl 7420  ax-addrcl 7421  ax-mulcl 7422  ax-addcom 7424  ax-addass 7426  ax-distr 7428  ax-i2m1 7429  ax-0lt1 7430  ax-0id 7432  ax-rnegex 7433  ax-cnre 7435  ax-pre-ltirr 7436  ax-pre-ltwlin 7437  ax-pre-lttrn 7438  ax-pre-ltadd 7440
This theorem depends on definitions:  df-bi 115  df-3or 925  df-3an 926  df-tru 1292  df-fal 1295  df-nf 1395  df-sb 1693  df-eu 1951  df-mo 1952  df-clab 2075  df-cleq 2081  df-clel 2084  df-nfc 2217  df-ne 2256  df-nel 2351  df-ral 2364  df-rex 2365  df-reu 2366  df-rab 2368  df-v 2621  df-sbc 2839  df-csb 2932  df-dif 2999  df-un 3001  df-in 3003  df-ss 3010  df-nul 3285  df-pw 3427  df-sn 3447  df-pr 3448  df-op 3450  df-uni 3649  df-int 3684  df-iun 3727  df-br 3838  df-opab 3892  df-mpt 3893  df-tr 3929  df-id 4111  df-iord 4184  df-on 4186  df-ilim 4187  df-suc 4189  df-iom 4396  df-xp 4434  df-rel 4435  df-cnv 4436  df-co 4437  df-dm 4438  df-rn 4439  df-res 4440  df-ima 4441  df-iota 4967  df-fun 5004  df-fn 5005  df-f 5006  df-f1 5007  df-fo 5008  df-f1o 5009  df-fv 5010  df-riota 5590  df-ov 5637  df-oprab 5638  df-mpt2 5639  df-1st 5893  df-2nd 5894  df-recs 6052  df-frec 6138  df-pnf 7503  df-mnf 7504  df-xr 7505  df-ltxr 7506  df-le 7507  df-sub 7634  df-neg 7635  df-inn 8395  df-n0 8644  df-z 8721  df-uz 8989
This theorem is referenced by:  frecuzrdgdomlem  9789  frecuzrdgfunlem  9791  frecuzrdgsuctlem  9795
  Copyright terms: Public domain W3C validator