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

Theorem tfrlem16 6683
Description: Lemma for finite recursion. Without assuming ax-rep 4345, we can show that the domain of the constructed function is a limit ordinal, and hence contains all the finite ordinals. (Contributed by Mario Carneiro, 14-Nov-2014.)
Hypothesis
Ref Expression
tfrlem.1  |-  A  =  { f  |  E. x  e.  On  (
f  Fn  x  /\  A. y  e.  x  ( f `  y )  =  ( F `  ( f  |`  y
) ) ) }
Assertion
Ref Expression
tfrlem16  |-  Lim  dom recs ( F )
Distinct variable group:    x, f, y, F
Allowed substitution hints:    A( x, y, f)

Proof of Theorem tfrlem16
Dummy variable  z is distinct from all other variables.
StepHypRef Expression
1 tfrlem.1 . . . 4  |-  A  =  { f  |  E. x  e.  On  (
f  Fn  x  /\  A. y  e.  x  ( f `  y )  =  ( F `  ( f  |`  y
) ) ) }
21tfrlem8 6674 . . 3  |-  Ord  dom recs ( F )
3 ordzsl 4854 . . 3  |-  ( Ord 
dom recs ( F )  <->  ( dom recs ( F )  =  (/)  \/ 
E. z  e.  On  dom recs ( F )  =  suc  z  \/  Lim  dom recs
( F ) ) )
42, 3mpbi 201 . 2  |-  ( dom recs
( F )  =  (/)  \/  E. z  e.  On  dom recs ( F
)  =  suc  z  \/  Lim  dom recs ( F
) )
5 res0 5179 . . . . . . 7  |-  (recs ( F )  |`  (/) )  =  (/)
6 0ex 4364 . . . . . . 7  |-  (/)  e.  _V
75, 6eqeltri 2512 . . . . . 6  |-  (recs ( F )  |`  (/) )  e. 
_V
8 0elon 4663 . . . . . . 7  |-  (/)  e.  On
91tfrlem15 6682 . . . . . . 7  |-  ( (/)  e.  On  ->  ( (/)  e.  dom recs ( F )  <->  (recs ( F )  |`  (/) )  e. 
_V ) )
108, 9ax-mp 5 . . . . . 6  |-  ( (/)  e.  dom recs ( F )  <-> 
(recs ( F )  |`  (/) )  e.  _V )
117, 10mpbir 202 . . . . 5  |-  (/)  e.  dom recs ( F )
12 n0i 3618 . . . . 5  |-  ( (/)  e.  dom recs ( F )  ->  -.  dom recs ( F )  =  (/) )
1311, 12ax-mp 5 . . . 4  |-  -.  dom recs ( F )  =  (/)
1413pm2.21i 126 . . 3  |-  ( dom recs
( F )  =  (/)  ->  Lim  dom recs ( F ) )
151tfrlem13 6680 . . . . 5  |-  -. recs ( F )  e.  _V
16 simpr 449 . . . . . . . . . 10  |-  ( ( z  e.  On  /\  dom recs ( F )  =  suc  z )  ->  dom recs ( F )  =  suc  z )
17 df-suc 4616 . . . . . . . . . 10  |-  suc  z  =  ( z  u. 
{ z } )
1816, 17syl6eq 2490 . . . . . . . . 9  |-  ( ( z  e.  On  /\  dom recs ( F )  =  suc  z )  ->  dom recs ( F )  =  ( z  u.  {
z } ) )
1918reseq2d 5175 . . . . . . . 8  |-  ( ( z  e.  On  /\  dom recs ( F )  =  suc  z )  -> 
(recs ( F )  |`  dom recs ( F ) )  =  (recs ( F )  |`  (
z  u.  { z } ) ) )
201tfrlem6 6672 . . . . . . . . 9  |-  Rel recs ( F )
21 resdm 5213 . . . . . . . . 9  |-  ( Rel recs
( F )  -> 
(recs ( F )  |`  dom recs ( F ) )  = recs ( F ) )
2220, 21ax-mp 5 . . . . . . . 8  |-  (recs ( F )  |`  dom recs ( F ) )  = recs ( F )
23 resundi 5189 . . . . . . . 8  |-  (recs ( F )  |`  (
z  u.  { z } ) )  =  ( (recs ( F )  |`  z )  u.  (recs ( F )  |`  { z } ) )
2419, 22, 233eqtr3g 2497 . . . . . . 7  |-  ( ( z  e.  On  /\  dom recs ( F )  =  suc  z )  -> recs ( F )  =  ( (recs ( F )  |`  z )  u.  (recs ( F )  |`  { z } ) ) )
25 vex 2965 . . . . . . . . . . 11  |-  z  e. 
_V
2625sucid 4689 . . . . . . . . . 10  |-  z  e. 
suc  z
2726, 16syl5eleqr 2529 . . . . . . . . 9  |-  ( ( z  e.  On  /\  dom recs ( F )  =  suc  z )  -> 
z  e.  dom recs ( F ) )
281tfrlem9a 6676 . . . . . . . . 9  |-  ( z  e.  dom recs ( F
)  ->  (recs ( F )  |`  z
)  e.  _V )
2927, 28syl 16 . . . . . . . 8  |-  ( ( z  e.  On  /\  dom recs ( F )  =  suc  z )  -> 
(recs ( F )  |`  z )  e.  _V )
30 snex 4434 . . . . . . . . 9  |-  { <. z ,  (recs ( F ) `  z )
>. }  e.  _V
311tfrlem7 6673 . . . . . . . . . 10  |-  Fun recs ( F )
32 funressn 5948 . . . . . . . . . 10  |-  ( Fun recs
( F )  -> 
(recs ( F )  |`  { z } ) 
C_  { <. z ,  (recs ( F ) `
 z ) >. } )
3331, 32ax-mp 5 . . . . . . . . 9  |-  (recs ( F )  |`  { z } )  C_  { <. z ,  (recs ( F ) `  z )
>. }
3430, 33ssexi 4377 . . . . . . . 8  |-  (recs ( F )  |`  { z } )  e.  _V
35 unexg 4739 . . . . . . . 8  |-  ( ( (recs ( F )  |`  z )  e.  _V  /\  (recs ( F )  |`  { z } )  e.  _V )  -> 
( (recs ( F )  |`  z )  u.  (recs ( F )  |`  { z } ) )  e.  _V )
3629, 34, 35sylancl 645 . . . . . . 7  |-  ( ( z  e.  On  /\  dom recs ( F )  =  suc  z )  -> 
( (recs ( F )  |`  z )  u.  (recs ( F )  |`  { z } ) )  e.  _V )
3724, 36eqeltrd 2516 . . . . . 6  |-  ( ( z  e.  On  /\  dom recs ( F )  =  suc  z )  -> recs ( F )  e.  _V )
3837rexlimiva 2831 . . . . 5  |-  ( E. z  e.  On  dom recs ( F )  =  suc  z  -> recs ( F )  e.  _V )
3915, 38mto 170 . . . 4  |-  -.  E. z  e.  On  dom recs ( F )  =  suc  z
4039pm2.21i 126 . . 3  |-  ( E. z  e.  On  dom recs ( F )  =  suc  z  ->  Lim  dom recs ( F ) )
41 id 21 . . 3  |-  ( Lim 
dom recs ( F )  ->  Lim  dom recs ( F ) )
4214, 40, 413jaoi 1248 . 2  |-  ( ( dom recs ( F )  =  (/)  \/  E. z  e.  On  dom recs ( F
)  =  suc  z  \/  Lim  dom recs ( F
) )  ->  Lim  dom recs
( F ) )
434, 42ax-mp 5 1  |-  Lim  dom recs ( F )
Colors of variables: wff set class
Syntax hints:   -. wn 3    <-> wb 178    /\ wa 360    \/ w3o 936    = wceq 1653    e. wcel 1727   {cab 2428   A.wral 2711   E.wrex 2712   _Vcvv 2962    u. cun 3304    C_ wss 3306   (/)c0 3613   {csn 3838   <.cop 3841   Ord word 4609   Oncon0 4610   Lim wlim 4611   suc csuc 4612   dom cdm 4907    |` cres 4909   Rel wrel 4912   Fun wfun 5477    Fn wfn 5478   ` cfv 5483  recscrecs 6661
This theorem is referenced by:  tfr1a  6684
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1556  ax-5 1567  ax-17 1627  ax-9 1668  ax-8 1689  ax-13 1729  ax-14 1731  ax-6 1746  ax-7 1751  ax-11 1763  ax-12 1953  ax-ext 2423  ax-sep 4355  ax-nul 4363  ax-pow 4406  ax-pr 4432  ax-un 4730
This theorem depends on definitions:  df-bi 179  df-or 361  df-an 362  df-3or 938  df-3an 939  df-tru 1329  df-ex 1552  df-nf 1555  df-sb 1660  df-eu 2291  df-mo 2292  df-clab 2429  df-cleq 2435  df-clel 2438  df-nfc 2567  df-ne 2607  df-ral 2716  df-rex 2717  df-reu 2718  df-rab 2720  df-v 2964  df-sbc 3168  df-csb 3268  df-dif 3309  df-un 3311  df-in 3313  df-ss 3320  df-pss 3322  df-nul 3614  df-if 3764  df-pw 3825  df-sn 3844  df-pr 3845  df-tp 3846  df-op 3847  df-uni 4040  df-iun 4119  df-br 4238  df-opab 4292  df-mpt 4293  df-tr 4328  df-eprel 4523  df-id 4527  df-po 4532  df-so 4533  df-fr 4570  df-we 4572  df-ord 4613  df-on 4614  df-lim 4615  df-suc 4616  df-xp 4913  df-rel 4914  df-cnv 4915  df-co 4916  df-dm 4917  df-rn 4918  df-res 4919  df-ima 4920  df-iota 5447  df-fun 5485  df-fn 5486  df-f 5487  df-f1 5488  df-fo 5489  df-f1o 5490  df-fv 5491  df-recs 6662
  Copyright terms: Public domain W3C validator