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

Theorem frecuzrdgrcl 9562
Description: The function  R (used in the definition of the recursive definition generator on upper integers) is a function defined for all natural numbers. (Contributed by Jim Kingdon, 1-Apr-2022.)
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 >. )
Assertion
Ref Expression
frecuzrdgrcl  |-  ( ph  ->  R : om --> ( (
ZZ>= `  C )  X.  S ) )
Distinct variable groups:    y, A    x, C, y    y, G    x, F, y    x, S, y    ph, x, y
Allowed substitution hints:    A( x)    R( x, y)    G( x)

Proof of Theorem frecuzrdgrcl
Dummy variable  z is distinct from all other variables.
StepHypRef Expression
1 1st2nd2 5853 . . . . . . 7  |-  ( z  e.  ( ( ZZ>= `  C )  X.  S
)  ->  z  =  <. ( 1st `  z
) ,  ( 2nd `  z ) >. )
21adantl 271 . . . . . 6  |-  ( (
ph  /\  z  e.  ( ( ZZ>= `  C
)  X.  S ) )  ->  z  =  <. ( 1st `  z
) ,  ( 2nd `  z ) >. )
32fveq2d 5234 . . . . 5  |-  ( (
ph  /\  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 )
>. ) )
4 df-ov 5567 . . . . . . 7  |-  ( ( 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 )
>. )
5 xp1st 5844 . . . . . . . . 9  |-  ( z  e.  ( ( ZZ>= `  C )  X.  S
)  ->  ( 1st `  z )  e.  (
ZZ>= `  C ) )
65adantl 271 . . . . . . . 8  |-  ( (
ph  /\  z  e.  ( ( ZZ>= `  C
)  X.  S ) )  ->  ( 1st `  z )  e.  (
ZZ>= `  C ) )
7 xp2nd 5845 . . . . . . . . 9  |-  ( z  e.  ( ( ZZ>= `  C )  X.  S
)  ->  ( 2nd `  z )  e.  S
)
87adantl 271 . . . . . . . 8  |-  ( (
ph  /\  z  e.  ( ( ZZ>= `  C
)  X.  S ) )  ->  ( 2nd `  z )  e.  S
)
9 peano2uz 8822 . . . . . . . . . 10  |-  ( ( 1st `  z )  e.  ( ZZ>= `  C
)  ->  ( ( 1st `  z )  +  1 )  e.  (
ZZ>= `  C ) )
106, 9syl 14 . . . . . . . . 9  |-  ( (
ph  /\  z  e.  ( ( ZZ>= `  C
)  X.  S ) )  ->  ( ( 1st `  z )  +  1 )  e.  (
ZZ>= `  C ) )
11 frecuzrdgrrn.f . . . . . . . . . . . 12  |-  ( (
ph  /\  ( x  e.  ( ZZ>= `  C )  /\  y  e.  S
) )  ->  (
x F y )  e.  S )
1211ralrimivva 2448 . . . . . . . . . . 11  |-  ( ph  ->  A. x  e.  (
ZZ>= `  C ) A. y  e.  S  (
x F y )  e.  S )
1312adantr 270 . . . . . . . . . 10  |-  ( (
ph  /\  z  e.  ( ( ZZ>= `  C
)  X.  S ) )  ->  A. x  e.  ( ZZ>= `  C ) A. y  e.  S  ( x F y )  e.  S )
14 oveq1 5571 . . . . . . . . . . . . 13  |-  ( x  =  ( 1st `  z
)  ->  ( x F y )  =  ( ( 1st `  z
) F y ) )
1514eleq1d 2151 . . . . . . . . . . . 12  |-  ( x  =  ( 1st `  z
)  ->  ( (
x F y )  e.  S  <->  ( ( 1st `  z ) F y )  e.  S
) )
16 oveq2 5572 . . . . . . . . . . . . 13  |-  ( y  =  ( 2nd `  z
)  ->  ( ( 1st `  z ) F y )  =  ( ( 1st `  z
) F ( 2nd `  z ) ) )
1716eleq1d 2151 . . . . . . . . . . . 12  |-  ( y  =  ( 2nd `  z
)  ->  ( (
( 1st `  z
) F y )  e.  S  <->  ( ( 1st `  z ) F ( 2nd `  z
) )  e.  S
) )
1815, 17rspc2v 2721 . . . . . . . . . . 11  |-  ( ( ( 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 ) )
196, 8, 18syl2anc 403 . . . . . . . . . 10  |-  ( (
ph  /\  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
) )
2013, 19mpd 13 . . . . . . . . 9  |-  ( (
ph  /\  z  e.  ( ( ZZ>= `  C
)  X.  S ) )  ->  ( ( 1st `  z ) F ( 2nd `  z
) )  e.  S
)
21 opelxp 4420 . . . . . . . . 9  |-  ( <.
( ( 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
) )
2210, 20, 21sylanbrc 408 . . . . . . . 8  |-  ( (
ph  /\  z  e.  ( ( ZZ>= `  C
)  X.  S ) )  ->  <. ( ( 1st `  z )  +  1 ) ,  ( ( 1st `  z
) F ( 2nd `  z ) ) >.  e.  ( ( ZZ>= `  C
)  X.  S ) )
23 oveq1 5571 . . . . . . . . . 10  |-  ( x  =  ( 1st `  z
)  ->  ( x  +  1 )  =  ( ( 1st `  z
)  +  1 ) )
2423, 14opeq12d 3598 . . . . . . . . 9  |-  ( x  =  ( 1st `  z
)  ->  <. ( x  +  1 ) ,  ( x F y ) >.  =  <. ( ( 1st `  z
)  +  1 ) ,  ( ( 1st `  z ) F y ) >. )
2516opeq2d 3597 . . . . . . . . 9  |-  ( y  =  ( 2nd `  z
)  ->  <. ( ( 1st `  z )  +  1 ) ,  ( ( 1st `  z
) F y )
>.  =  <. ( ( 1st `  z )  +  1 ) ,  ( ( 1st `  z
) F ( 2nd `  z ) ) >.
)
26 eqid 2083 . . . . . . . . 9  |-  ( x  e.  ( ZZ>= `  C
) ,  y  e.  S  |->  <. ( x  + 
1 ) ,  ( x F y )
>. )  =  (
x  e.  ( ZZ>= `  C ) ,  y  e.  S  |->  <. (
x  +  1 ) ,  ( x F y ) >. )
2724, 25, 26ovmpt2g 5687 . . . . . . . 8  |-  ( ( ( 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 ) ) >. )
286, 8, 22, 27syl3anc 1170 . . . . . . 7  |-  ( (
ph  /\  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 ) ) >. )
294, 28syl5eqr 2129 . . . . . 6  |-  ( (
ph  /\  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
) ) >. )
3029, 22eqeltrd 2159 . . . . 5  |-  ( (
ph  /\  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 ) )
313, 30eqeltrd 2159 . . . 4  |-  ( (
ph  /\  z  e.  ( ( ZZ>= `  C
)  X.  S ) )  ->  ( (
x  e.  ( ZZ>= `  C ) ,  y  e.  S  |->  <. (
x  +  1 ) ,  ( x F y ) >. ) `  z )  e.  ( ( ZZ>= `  C )  X.  S ) )
3231ralrimiva 2439 . . 3  |-  ( ph  ->  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 ) )
33 frec2uz.1 . . . . 5  |-  ( ph  ->  C  e.  ZZ )
34 uzid 8784 . . . . 5  |-  ( C  e.  ZZ  ->  C  e.  ( ZZ>= `  C )
)
3533, 34syl 14 . . . 4  |-  ( ph  ->  C  e.  ( ZZ>= `  C ) )
36 frecuzrdgrrn.a . . . 4  |-  ( ph  ->  A  e.  S )
37 opelxp 4420 . . . 4  |-  ( <. C ,  A >.  e.  ( ( ZZ>= `  C
)  X.  S )  <-> 
( C  e.  (
ZZ>= `  C )  /\  A  e.  S )
)
3835, 36, 37sylanbrc 408 . . 3  |-  ( ph  -> 
<. C ,  A >.  e.  ( ( ZZ>= `  C
)  X.  S ) )
39 frecfcl 6075 . . 3  |-  ( ( 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 ) )  -> frec ( ( x  e.  ( ZZ>= `  C ) ,  y  e.  S  |-> 
<. ( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. ) : om --> ( ( ZZ>= `  C
)  X.  S ) )
4032, 38, 39syl2anc 403 . 2  |-  ( ph  -> frec ( ( x  e.  ( ZZ>= `  C ) ,  y  e.  S  |-> 
<. ( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. ) : om --> ( ( ZZ>= `  C
)  X.  S ) )
41 frecuzrdgrrn.2 . . 3  |-  R  = frec ( ( x  e.  ( ZZ>= `  C ) ,  y  e.  S  |-> 
<. ( x  +  1 ) ,  ( x F y ) >.
) ,  <. C ,  A >. )
4241feq1i 5090 . 2  |-  ( R : om --> ( (
ZZ>= `  C )  X.  S )  <-> frec ( (
x  e.  ( ZZ>= `  C ) ,  y  e.  S  |->  <. (
x  +  1 ) ,  ( x F y ) >. ) ,  <. C ,  A >. ) : om --> ( (
ZZ>= `  C )  X.  S ) )
4340, 42sylibr 132 1  |-  ( ph  ->  R : om --> ( (
ZZ>= `  C )  X.  S ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 102    = wceq 1285    e. wcel 1434   A.wral 2353   <.cop 3419    |-> cmpt 3859   omcom 4359    X. cxp 4389   -->wf 4948   ` cfv 4952  (class class class)co 5564    |-> cmpt2 5566   1stc1st 5817   2ndc2nd 5818  freccfrec 6060   1c1 7114    + caddc 7116   ZZcz 8502   ZZ>=cuz 8770
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 577  ax-in2 578  ax-io 663  ax-5 1377  ax-7 1378  ax-gen 1379  ax-ie1 1423  ax-ie2 1424  ax-8 1436  ax-10 1437  ax-11 1438  ax-i12 1439  ax-bndl 1440  ax-4 1441  ax-13 1445  ax-14 1446  ax-17 1460  ax-i9 1464  ax-ial 1468  ax-i5r 1469  ax-ext 2065  ax-coll 3913  ax-sep 3916  ax-nul 3924  ax-pow 3968  ax-pr 3992  ax-un 4216  ax-setind 4308  ax-iinf 4357  ax-cnex 7199  ax-resscn 7200  ax-1cn 7201  ax-1re 7202  ax-icn 7203  ax-addcl 7204  ax-addrcl 7205  ax-mulcl 7206  ax-addcom 7208  ax-addass 7210  ax-distr 7212  ax-i2m1 7213  ax-0lt1 7214  ax-0id 7216  ax-rnegex 7217  ax-cnre 7219  ax-pre-ltirr 7220  ax-pre-ltwlin 7221  ax-pre-lttrn 7222  ax-pre-ltadd 7224
This theorem depends on definitions:  df-bi 115  df-3or 921  df-3an 922  df-tru 1288  df-fal 1291  df-nf 1391  df-sb 1688  df-eu 1946  df-mo 1947  df-clab 2070  df-cleq 2076  df-clel 2079  df-nfc 2212  df-ne 2250  df-nel 2345  df-ral 2358  df-rex 2359  df-reu 2360  df-rab 2362  df-v 2612  df-sbc 2825  df-csb 2918  df-dif 2984  df-un 2986  df-in 2988  df-ss 2995  df-nul 3268  df-pw 3402  df-sn 3422  df-pr 3423  df-op 3425  df-uni 3622  df-int 3657  df-iun 3700  df-br 3806  df-opab 3860  df-mpt 3861  df-tr 3896  df-id 4076  df-iord 4149  df-on 4151  df-ilim 4152  df-suc 4154  df-iom 4360  df-xp 4397  df-rel 4398  df-cnv 4399  df-co 4400  df-dm 4401  df-rn 4402  df-res 4403  df-ima 4404  df-iota 4917  df-fun 4954  df-fn 4955  df-f 4956  df-f1 4957  df-fo 4958  df-f1o 4959  df-fv 4960  df-riota 5520  df-ov 5567  df-oprab 5568  df-mpt2 5569  df-1st 5819  df-2nd 5820  df-recs 5975  df-frec 6061  df-pnf 7287  df-mnf 7288  df-xr 7289  df-ltxr 7290  df-le 7291  df-sub 7418  df-neg 7419  df-inn 8177  df-n0 8426  df-z 8503  df-uz 8771
This theorem is referenced by:  frecuzrdglem  9563  frecuzrdgtcl  9564  frecuzrdg0  9565
  Copyright terms: Public domain W3C validator