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

Theorem ennnfonelemrn 12367
Description: Lemma for ennnfone 12373. 
L is onto  A. (Contributed by Jim Kingdon, 16-Jul-2023.)
Hypotheses
Ref Expression
ennnfonelemh.dceq  |-  ( ph  ->  A. x  e.  A  A. y  e.  A DECID  x  =  y )
ennnfonelemh.f  |-  ( ph  ->  F : om -onto-> A
)
ennnfonelemh.ne  |-  ( ph  ->  A. n  e.  om  E. k  e.  om  A. j  e.  suc  n ( F `  k )  =/=  ( F `  j ) )
ennnfonelemh.g  |-  G  =  ( x  e.  ( A  ^pm  om ) ,  y  e.  om  |->  if ( ( F `  y )  e.  ( F " y ) ,  x ,  ( x  u.  { <. dom  x ,  ( F `
 y ) >. } ) ) )
ennnfonelemh.n  |-  N  = frec ( ( x  e.  ZZ  |->  ( x  + 
1 ) ) ,  0 )
ennnfonelemh.j  |-  J  =  ( x  e.  NN0  |->  if ( x  =  0 ,  (/) ,  ( `' N `  ( x  -  1 ) ) ) )
ennnfonelemh.h  |-  H  =  seq 0 ( G ,  J )
ennnfone.l  |-  L  = 
U_ i  e.  NN0  ( H `  i )
Assertion
Ref Expression
ennnfonelemrn  |-  ( ph  ->  ran  L  =  A )
Distinct variable groups:    A, j, x, y    i, F, j, x, y, k    n, F, k    j, G    i, H, j, x, y, k   
j, J    i, N, j, x, y, k    ph, i,
j, x, y, k   
j, n
Allowed substitution hints:    ph( n)    A( i,
k, n)    G( x, y, i, k, n)    H( n)    J( x, y, i, k, n)    L( x, y, i, j, k, n)    N( n)

Proof of Theorem ennnfonelemrn
Dummy variable  w is distinct from all other variables.
StepHypRef Expression
1 ennnfonelemh.dceq . . . 4  |-  ( ph  ->  A. x  e.  A  A. y  e.  A DECID  x  =  y )
2 ennnfonelemh.f . . . 4  |-  ( ph  ->  F : om -onto-> A
)
3 ennnfonelemh.ne . . . 4  |-  ( ph  ->  A. n  e.  om  E. k  e.  om  A. j  e.  suc  n ( F `  k )  =/=  ( F `  j ) )
4 ennnfonelemh.g . . . 4  |-  G  =  ( x  e.  ( A  ^pm  om ) ,  y  e.  om  |->  if ( ( F `  y )  e.  ( F " y ) ,  x ,  ( x  u.  { <. dom  x ,  ( F `
 y ) >. } ) ) )
5 ennnfonelemh.n . . . 4  |-  N  = frec ( ( x  e.  ZZ  |->  ( x  + 
1 ) ) ,  0 )
6 ennnfonelemh.j . . . 4  |-  J  =  ( x  e.  NN0  |->  if ( x  =  0 ,  (/) ,  ( `' N `  ( x  -  1 ) ) ) )
7 ennnfonelemh.h . . . 4  |-  H  =  seq 0 ( G ,  J )
8 ennnfone.l . . . 4  |-  L  = 
U_ i  e.  NN0  ( H `  i )
91, 2, 3, 4, 5, 6, 7, 8ennnfonelemf1 12366 . . 3  |-  ( ph  ->  L : dom  L -1-1-> A )
10 f1f 5401 . . 3  |-  ( L : dom  L -1-1-> A  ->  L : dom  L --> A )
11 frn 5354 . . 3  |-  ( L : dom  L --> A  ->  ran  L  C_  A )
129, 10, 113syl 17 . 2  |-  ( ph  ->  ran  L  C_  A
)
13 foelrn 5730 . . . . . 6  |-  ( ( F : om -onto-> A  /\  w  e.  A
)  ->  E. j  e.  om  w  =  ( F `  j ) )
142, 13sylan 281 . . . . 5  |-  ( (
ph  /\  w  e.  A )  ->  E. j  e.  om  w  =  ( F `  j ) )
15 0zd 9217 . . . . . . . 8  |-  ( ( ( ph  /\  w  e.  A )  /\  (
j  e.  om  /\  w  =  ( F `  j ) ) )  ->  0  e.  ZZ )
16 simprl 526 . . . . . . . . 9  |-  ( ( ( ph  /\  w  e.  A )  /\  (
j  e.  om  /\  w  =  ( F `  j ) ) )  ->  j  e.  om )
17 peano2 4577 . . . . . . . . 9  |-  ( j  e.  om  ->  suc  j  e.  om )
1816, 17syl 14 . . . . . . . 8  |-  ( ( ( ph  /\  w  e.  A )  /\  (
j  e.  om  /\  w  =  ( F `  j ) ) )  ->  suc  j  e.  om )
1915, 5, 18frec2uzuzd 10351 . . . . . . 7  |-  ( ( ( ph  /\  w  e.  A )  /\  (
j  e.  om  /\  w  =  ( F `  j ) ) )  ->  ( N `  suc  j )  e.  (
ZZ>= `  0 ) )
20 nn0uz 9514 . . . . . . 7  |-  NN0  =  ( ZZ>= `  0 )
2119, 20eleqtrrdi 2264 . . . . . 6  |-  ( ( ( ph  /\  w  e.  A )  /\  (
j  e.  om  /\  w  =  ( F `  j ) ) )  ->  ( N `  suc  j )  e.  NN0 )
22 fofn 5420 . . . . . . . . . 10  |-  ( F : om -onto-> A  ->  F  Fn  om )
232, 22syl 14 . . . . . . . . 9  |-  ( ph  ->  F  Fn  om )
2423ad2antrr 485 . . . . . . . 8  |-  ( ( ( ph  /\  w  e.  A )  /\  (
j  e.  om  /\  w  =  ( F `  j ) ) )  ->  F  Fn  om )
25 ordom 4589 . . . . . . . . 9  |-  Ord  om
26 ordsucss 4486 . . . . . . . . 9  |-  ( Ord 
om  ->  ( j  e. 
om  ->  suc  j  C_  om ) )
2725, 16, 26mpsyl 65 . . . . . . . 8  |-  ( ( ( ph  /\  w  e.  A )  /\  (
j  e.  om  /\  w  =  ( F `  j ) ) )  ->  suc  j  C_  om )
28 vex 2733 . . . . . . . . . 10  |-  j  e. 
_V
2928sucid 4400 . . . . . . . . 9  |-  j  e. 
suc  j
3029a1i 9 . . . . . . . 8  |-  ( ( ( ph  /\  w  e.  A )  /\  (
j  e.  om  /\  w  =  ( F `  j ) ) )  ->  j  e.  suc  j )
31 fnfvima 5728 . . . . . . . 8  |-  ( ( F  Fn  om  /\  suc  j  C_  om  /\  j  e.  suc  j )  ->  ( F `  j )  e.  ( F " suc  j
) )
3224, 27, 30, 31syl3anc 1233 . . . . . . 7  |-  ( ( ( ph  /\  w  e.  A )  /\  (
j  e.  om  /\  w  =  ( F `  j ) ) )  ->  ( F `  j )  e.  ( F " suc  j
) )
33 simprr 527 . . . . . . 7  |-  ( ( ( ph  /\  w  e.  A )  /\  (
j  e.  om  /\  w  =  ( F `  j ) ) )  ->  w  =  ( F `  j ) )
3415, 5frec2uzf1od 10355 . . . . . . . . 9  |-  ( ( ( ph  /\  w  e.  A )  /\  (
j  e.  om  /\  w  =  ( F `  j ) ) )  ->  N : om -1-1-onto-> ( ZZ>=
`  0 ) )
35 f1ocnvfv1 5754 . . . . . . . . 9  |-  ( ( N : om -1-1-onto-> ( ZZ>= `  0 )  /\  suc  j  e.  om )  ->  ( `' N `  ( N `  suc  j ) )  =  suc  j )
3634, 18, 35syl2anc 409 . . . . . . . 8  |-  ( ( ( ph  /\  w  e.  A )  /\  (
j  e.  om  /\  w  =  ( F `  j ) ) )  ->  ( `' N `  ( N `  suc  j ) )  =  suc  j )
3736imaeq2d 4951 . . . . . . 7  |-  ( ( ( ph  /\  w  e.  A )  /\  (
j  e.  om  /\  w  =  ( F `  j ) ) )  ->  ( F "
( `' N `  ( N `  suc  j
) ) )  =  ( F " suc  j ) )
3832, 33, 373eltr4d 2254 . . . . . 6  |-  ( ( ( ph  /\  w  e.  A )  /\  (
j  e.  om  /\  w  =  ( F `  j ) ) )  ->  w  e.  ( F " ( `' N `  ( N `
 suc  j )
) ) )
39 fveq2 5494 . . . . . . . . 9  |-  ( i  =  ( N `  suc  j )  ->  ( `' N `  i )  =  ( `' N `  ( N `  suc  j ) ) )
4039imaeq2d 4951 . . . . . . . 8  |-  ( i  =  ( N `  suc  j )  ->  ( F " ( `' N `  i ) )  =  ( F " ( `' N `  ( N `
 suc  j )
) ) )
4140eleq2d 2240 . . . . . . 7  |-  ( i  =  ( N `  suc  j )  ->  (
w  e.  ( F
" ( `' N `  i ) )  <->  w  e.  ( F " ( `' N `  ( N `
 suc  j )
) ) ) )
4241rspcev 2834 . . . . . 6  |-  ( ( ( N `  suc  j )  e.  NN0  /\  w  e.  ( F
" ( `' N `  ( N `  suc  j ) ) ) )  ->  E. i  e.  NN0  w  e.  ( F " ( `' N `  i ) ) )
4321, 38, 42syl2anc 409 . . . . 5  |-  ( ( ( ph  /\  w  e.  A )  /\  (
j  e.  om  /\  w  =  ( F `  j ) ) )  ->  E. i  e.  NN0  w  e.  ( F " ( `' N `  i ) ) )
4414, 43rexlimddv 2592 . . . 4  |-  ( (
ph  /\  w  e.  A )  ->  E. i  e.  NN0  w  e.  ( F " ( `' N `  i ) ) )
45 eliun 3875 . . . 4  |-  ( w  e.  U_ i  e. 
NN0  ( F "
( `' N `  i ) )  <->  E. i  e.  NN0  w  e.  ( F " ( `' N `  i ) ) )
4644, 45sylibr 133 . . 3  |-  ( (
ph  /\  w  e.  A )  ->  w  e.  U_ i  e.  NN0  ( F " ( `' N `  i ) ) )
478rneqi 4837 . . . . . . 7  |-  ran  L  =  ran  U_ i  e.  NN0  ( H `  i )
48 rniun 5019 . . . . . . 7  |-  ran  U_ i  e.  NN0  ( H `  i )  =  U_ i  e.  NN0  ran  ( H `  i )
4947, 48eqtri 2191 . . . . . 6  |-  ran  L  =  U_ i  e.  NN0  ran  ( H `  i
)
501adantr 274 . . . . . . . . 9  |-  ( (
ph  /\  i  e.  NN0 )  ->  A. x  e.  A  A. y  e.  A DECID  x  =  y
)
512adantr 274 . . . . . . . . 9  |-  ( (
ph  /\  i  e.  NN0 )  ->  F : om -onto-> A )
523adantr 274 . . . . . . . . 9  |-  ( (
ph  /\  i  e.  NN0 )  ->  A. n  e.  om  E. k  e. 
om  A. j  e.  suc  n ( F `  k )  =/=  ( F `  j )
)
53 simpr 109 . . . . . . . . 9  |-  ( (
ph  /\  i  e.  NN0 )  ->  i  e.  NN0 )
5450, 51, 52, 4, 5, 6, 7, 53ennnfonelemhf1o 12361 . . . . . . . 8  |-  ( (
ph  /\  i  e.  NN0 )  ->  ( H `  i ) : dom  ( H `  i ) -1-1-onto-> ( F " ( `' N `  i ) ) )
55 f1ofo 5447 . . . . . . . 8  |-  ( ( H `  i ) : dom  ( H `
 i ) -1-1-onto-> ( F
" ( `' N `  i ) )  -> 
( H `  i
) : dom  ( H `  i ) -onto->
( F " ( `' N `  i ) ) )
56 forn 5421 . . . . . . . 8  |-  ( ( H `  i ) : dom  ( H `
 i ) -onto-> ( F " ( `' N `  i ) )  ->  ran  ( H `
 i )  =  ( F " ( `' N `  i ) ) )
5754, 55, 563syl 17 . . . . . . 7  |-  ( (
ph  /\  i  e.  NN0 )  ->  ran  ( H `
 i )  =  ( F " ( `' N `  i ) ) )
5857iuneq2dv 3892 . . . . . 6  |-  ( ph  ->  U_ i  e.  NN0  ran  ( H `  i
)  =  U_ i  e.  NN0  ( F "
( `' N `  i ) ) )
5949, 58eqtrid 2215 . . . . 5  |-  ( ph  ->  ran  L  =  U_ i  e.  NN0  ( F
" ( `' N `  i ) ) )
6059eleq2d 2240 . . . 4  |-  ( ph  ->  ( w  e.  ran  L  <-> 
w  e.  U_ i  e.  NN0  ( F "
( `' N `  i ) ) ) )
6160adantr 274 . . 3  |-  ( (
ph  /\  w  e.  A )  ->  (
w  e.  ran  L  <->  w  e.  U_ i  e. 
NN0  ( F "
( `' N `  i ) ) ) )
6246, 61mpbird 166 . 2  |-  ( (
ph  /\  w  e.  A )  ->  w  e.  ran  L )
6312, 62eqelssd 3166 1  |-  ( ph  ->  ran  L  =  A )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 103    <-> wb 104  DECID wdc 829    = wceq 1348    e. wcel 2141    =/= wne 2340   A.wral 2448   E.wrex 2449    u. cun 3119    C_ wss 3121   (/)c0 3414   ifcif 3525   {csn 3581   <.cop 3584   U_ciun 3871    |-> cmpt 4048   Ord word 4345   suc csuc 4348   omcom 4572   `'ccnv 4608   dom cdm 4609   ran crn 4610   "cima 4612    Fn wfn 5191   -->wf 5192   -1-1->wf1 5193   -onto->wfo 5194   -1-1-onto->wf1o 5195   ` cfv 5196  (class class class)co 5851    e. cmpo 5853  freccfrec 6367    ^pm cpm 6625   0cc0 7767   1c1 7768    + caddc 7770    - cmin 8083   NN0cn0 9128   ZZcz 9205   ZZ>=cuz 9480    seqcseq 10394
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 4102  ax-sep 4105  ax-nul 4113  ax-pow 4158  ax-pr 4192  ax-un 4416  ax-setind 4519  ax-iinf 4570  ax-cnex 7858  ax-resscn 7859  ax-1cn 7860  ax-1re 7861  ax-icn 7862  ax-addcl 7863  ax-addrcl 7864  ax-mulcl 7865  ax-addcom 7867  ax-addass 7869  ax-distr 7871  ax-i2m1 7872  ax-0lt1 7873  ax-0id 7875  ax-rnegex 7876  ax-cnre 7878  ax-pre-ltirr 7879  ax-pre-ltwlin 7880  ax-pre-lttrn 7881  ax-pre-ltadd 7883
This theorem depends on definitions:  df-bi 116  df-dc 830  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-if 3526  df-pw 3566  df-sn 3587  df-pr 3588  df-op 3590  df-uni 3795  df-int 3830  df-iun 3873  df-br 3988  df-opab 4049  df-mpt 4050  df-tr 4086  df-id 4276  df-iord 4349  df-on 4351  df-ilim 4352  df-suc 4354  df-iom 4573  df-xp 4615  df-rel 4616  df-cnv 4617  df-co 4618  df-dm 4619  df-rn 4620  df-res 4621  df-ima 4622  df-iota 5158  df-fun 5198  df-fn 5199  df-f 5200  df-f1 5201  df-fo 5202  df-f1o 5203  df-fv 5204  df-riota 5807  df-ov 5854  df-oprab 5855  df-mpo 5856  df-1st 6117  df-2nd 6118  df-recs 6282  df-frec 6368  df-pm 6627  df-pnf 7949  df-mnf 7950  df-xr 7951  df-ltxr 7952  df-le 7953  df-sub 8085  df-neg 8086  df-inn 8872  df-n0 9129  df-z 9206  df-uz 9481  df-seqfrec 10395
This theorem is referenced by:  ennnfonelemen  12369
  Copyright terms: Public domain W3C validator