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

Theorem frecfzennn 10361
Description: The cardinality of a finite set of sequential integers. (See frec2uz0d 10334 for a description of the hypothesis.) (Contributed by Jim Kingdon, 18-May-2020.)
Hypothesis
Ref Expression
frecfzennn.1  |-  G  = frec ( ( x  e.  ZZ  |->  ( x  + 
1 ) ) ,  0 )
Assertion
Ref Expression
frecfzennn  |-  ( N  e.  NN0  ->  ( 1 ... N )  ~~  ( `' G `  N ) )

Proof of Theorem frecfzennn
Dummy variables  m  n  z are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 oveq2 5850 . . 3  |-  ( n  =  0  ->  (
1 ... n )  =  ( 1 ... 0
) )
2 fveq2 5486 . . 3  |-  ( n  =  0  ->  ( `' G `  n )  =  ( `' G `  0 ) )
31, 2breq12d 3995 . 2  |-  ( n  =  0  ->  (
( 1 ... n
)  ~~  ( `' G `  n )  <->  ( 1 ... 0 ) 
~~  ( `' G `  0 ) ) )
4 oveq2 5850 . . 3  |-  ( n  =  m  ->  (
1 ... n )  =  ( 1 ... m
) )
5 fveq2 5486 . . 3  |-  ( n  =  m  ->  ( `' G `  n )  =  ( `' G `  m ) )
64, 5breq12d 3995 . 2  |-  ( n  =  m  ->  (
( 1 ... n
)  ~~  ( `' G `  n )  <->  ( 1 ... m ) 
~~  ( `' G `  m ) ) )
7 oveq2 5850 . . 3  |-  ( n  =  ( m  + 
1 )  ->  (
1 ... n )  =  ( 1 ... (
m  +  1 ) ) )
8 fveq2 5486 . . 3  |-  ( n  =  ( m  + 
1 )  ->  ( `' G `  n )  =  ( `' G `  ( m  +  1 ) ) )
97, 8breq12d 3995 . 2  |-  ( n  =  ( m  + 
1 )  ->  (
( 1 ... n
)  ~~  ( `' G `  n )  <->  ( 1 ... ( m  +  1 ) ) 
~~  ( `' G `  ( m  +  1 ) ) ) )
10 oveq2 5850 . . 3  |-  ( n  =  N  ->  (
1 ... n )  =  ( 1 ... N
) )
11 fveq2 5486 . . 3  |-  ( n  =  N  ->  ( `' G `  n )  =  ( `' G `  N ) )
1210, 11breq12d 3995 . 2  |-  ( n  =  N  ->  (
( 1 ... n
)  ~~  ( `' G `  n )  <->  ( 1 ... N ) 
~~  ( `' G `  N ) ) )
13 0ex 4109 . . . 4  |-  (/)  e.  _V
1413enref 6731 . . 3  |-  (/)  ~~  (/)
15 fz10 9981 . . 3  |-  ( 1 ... 0 )  =  (/)
16 0zd 9203 . . . . . . 7  |-  ( T. 
->  0  e.  ZZ )
17 frecfzennn.1 . . . . . . 7  |-  G  = frec ( ( x  e.  ZZ  |->  ( x  + 
1 ) ) ,  0 )
1816, 17frec2uzf1od 10341 . . . . . 6  |-  ( T. 
->  G : om -1-1-onto-> ( ZZ>= `  0 )
)
1918mptru 1352 . . . . 5  |-  G : om
-1-1-onto-> ( ZZ>= `  0 )
20 peano1 4571 . . . . 5  |-  (/)  e.  om
2119, 20pm3.2i 270 . . . 4  |-  ( G : om -1-1-onto-> ( ZZ>= `  0 )  /\  (/)  e.  om )
2216, 17frec2uz0d 10334 . . . . 5  |-  ( T. 
->  ( G `  (/) )  =  0 )
2322mptru 1352 . . . 4  |-  ( G `
 (/) )  =  0
24 f1ocnvfv 5747 . . . 4  |-  ( ( G : om -1-1-onto-> ( ZZ>= `  0 )  /\  (/)  e.  om )  ->  ( ( G `  (/) )  =  0  -> 
( `' G ` 
0 )  =  (/) ) )
2521, 23, 24mp2 16 . . 3  |-  ( `' G `  0 )  =  (/)
2614, 15, 253brtr4i 4012 . 2  |-  ( 1 ... 0 )  ~~  ( `' G `  0 )
27 simpr 109 . . . . 5  |-  ( ( m  e.  NN0  /\  ( 1 ... m
)  ~~  ( `' G `  m )
)  ->  ( 1 ... m )  ~~  ( `' G `  m ) )
28 peano2nn0 9154 . . . . . . 7  |-  ( m  e.  NN0  ->  ( m  +  1 )  e. 
NN0 )
29 zex 9200 . . . . . . . . . . . . . . 15  |-  ZZ  e.  _V
3029mptex 5711 . . . . . . . . . . . . . 14  |-  ( x  e.  ZZ  |->  ( x  +  1 ) )  e.  _V
31 vex 2729 . . . . . . . . . . . . . 14  |-  z  e. 
_V
3230, 31fvex 5506 . . . . . . . . . . . . 13  |-  ( ( x  e.  ZZ  |->  ( x  +  1 ) ) `  z )  e.  _V
3332ax-gen 1437 . . . . . . . . . . . 12  |-  A. z
( ( x  e.  ZZ  |->  ( x  + 
1 ) ) `  z )  e.  _V
34 0z 9202 . . . . . . . . . . . 12  |-  0  e.  ZZ
35 frecfnom 6369 . . . . . . . . . . . 12  |-  ( ( A. z ( ( x  e.  ZZ  |->  ( x  +  1 ) ) `  z )  e.  _V  /\  0  e.  ZZ )  -> frec ( ( x  e.  ZZ  |->  ( x  +  1 ) ) ,  0 )  Fn  om )
3633, 34, 35mp2an 423 . . . . . . . . . . 11  |- frec ( ( x  e.  ZZ  |->  ( x  +  1 ) ) ,  0 )  Fn  om
3717fneq1i 5282 . . . . . . . . . . 11  |-  ( G  Fn  om  <-> frec ( (
x  e.  ZZ  |->  ( x  +  1 ) ) ,  0 )  Fn  om )
3836, 37mpbir 145 . . . . . . . . . 10  |-  G  Fn  om
39 omex 4570 . . . . . . . . . 10  |-  om  e.  _V
40 fnex 5707 . . . . . . . . . 10  |-  ( ( G  Fn  om  /\  om  e.  _V )  ->  G  e.  _V )
4138, 39, 40mp2an 423 . . . . . . . . 9  |-  G  e. 
_V
4241cnvex 5142 . . . . . . . 8  |-  `' G  e.  _V
43 vex 2729 . . . . . . . 8  |-  m  e. 
_V
4442, 43fvex 5506 . . . . . . 7  |-  ( `' G `  m )  e.  _V
45 en2sn 6779 . . . . . . 7  |-  ( ( ( m  +  1 )  e.  NN0  /\  ( `' G `  m )  e.  _V )  ->  { ( m  + 
1 ) }  ~~  { ( `' G `  m ) } )
4628, 44, 45sylancl 410 . . . . . 6  |-  ( m  e.  NN0  ->  { ( m  +  1 ) }  ~~  { ( `' G `  m ) } )
4746adantr 274 . . . . 5  |-  ( ( m  e.  NN0  /\  ( 1 ... m
)  ~~  ( `' G `  m )
)  ->  { (
m  +  1 ) }  ~~  { ( `' G `  m ) } )
48 fzp1disj 10015 . . . . . 6  |-  ( ( 1 ... m )  i^i  { ( m  +  1 ) } )  =  (/)
4948a1i 9 . . . . 5  |-  ( ( m  e.  NN0  /\  ( 1 ... m
)  ~~  ( `' G `  m )
)  ->  ( (
1 ... m )  i^i 
{ ( m  + 
1 ) } )  =  (/) )
50 f1ocnvdm 5749 . . . . . . . . . 10  |-  ( ( G : om -1-1-onto-> ( ZZ>= `  0 )  /\  m  e.  ( ZZ>=
`  0 ) )  ->  ( `' G `  m )  e.  om )
5119, 50mpan 421 . . . . . . . . 9  |-  ( m  e.  ( ZZ>= `  0
)  ->  ( `' G `  m )  e.  om )
52 nn0uz 9500 . . . . . . . . 9  |-  NN0  =  ( ZZ>= `  0 )
5351, 52eleq2s 2261 . . . . . . . 8  |-  ( m  e.  NN0  ->  ( `' G `  m )  e.  om )
54 nnord 4589 . . . . . . . 8  |-  ( ( `' G `  m )  e.  om  ->  Ord  ( `' G `  m ) )
55 ordirr 4519 . . . . . . . 8  |-  ( Ord  ( `' G `  m )  ->  -.  ( `' G `  m )  e.  ( `' G `  m ) )
5653, 54, 553syl 17 . . . . . . 7  |-  ( m  e.  NN0  ->  -.  ( `' G `  m )  e.  ( `' G `  m ) )
5756adantr 274 . . . . . 6  |-  ( ( m  e.  NN0  /\  ( 1 ... m
)  ~~  ( `' G `  m )
)  ->  -.  ( `' G `  m )  e.  ( `' G `  m ) )
58 disjsn 3638 . . . . . 6  |-  ( ( ( `' G `  m )  i^i  {
( `' G `  m ) } )  =  (/)  <->  -.  ( `' G `  m )  e.  ( `' G `  m ) )
5957, 58sylibr 133 . . . . 5  |-  ( ( m  e.  NN0  /\  ( 1 ... m
)  ~~  ( `' G `  m )
)  ->  ( ( `' G `  m )  i^i  { ( `' G `  m ) } )  =  (/) )
60 unen 6782 . . . . 5  |-  ( ( ( ( 1 ... m )  ~~  ( `' G `  m )  /\  { ( m  +  1 ) } 
~~  { ( `' G `  m ) } )  /\  (
( ( 1 ... m )  i^i  {
( m  +  1 ) } )  =  (/)  /\  ( ( `' G `  m )  i^i  { ( `' G `  m ) } )  =  (/) ) )  ->  (
( 1 ... m
)  u.  { ( m  +  1 ) } )  ~~  (
( `' G `  m )  u.  {
( `' G `  m ) } ) )
6127, 47, 49, 59, 60syl22anc 1229 . . . 4  |-  ( ( m  e.  NN0  /\  ( 1 ... m
)  ~~  ( `' G `  m )
)  ->  ( (
1 ... m )  u. 
{ ( m  + 
1 ) } ) 
~~  ( ( `' G `  m )  u.  { ( `' G `  m ) } ) )
62 1z 9217 . . . . . 6  |-  1  e.  ZZ
63 1m1e0 8926 . . . . . . . . . 10  |-  ( 1  -  1 )  =  0
6463fveq2i 5489 . . . . . . . . 9  |-  ( ZZ>= `  ( 1  -  1 ) )  =  (
ZZ>= `  0 )
6552, 64eqtr4i 2189 . . . . . . . 8  |-  NN0  =  ( ZZ>= `  ( 1  -  1 ) )
6665eleq2i 2233 . . . . . . 7  |-  ( m  e.  NN0  <->  m  e.  ( ZZ>=
`  ( 1  -  1 ) ) )
6766biimpi 119 . . . . . 6  |-  ( m  e.  NN0  ->  m  e.  ( ZZ>= `  ( 1  -  1 ) ) )
68 fzsuc2 10014 . . . . . 6  |-  ( ( 1  e.  ZZ  /\  m  e.  ( ZZ>= `  ( 1  -  1 ) ) )  -> 
( 1 ... (
m  +  1 ) )  =  ( ( 1 ... m )  u.  { ( m  +  1 ) } ) )
6962, 67, 68sylancr 411 . . . . 5  |-  ( m  e.  NN0  ->  ( 1 ... ( m  + 
1 ) )  =  ( ( 1 ... m )  u.  {
( m  +  1 ) } ) )
7069adantr 274 . . . 4  |-  ( ( m  e.  NN0  /\  ( 1 ... m
)  ~~  ( `' G `  m )
)  ->  ( 1 ... ( m  + 
1 ) )  =  ( ( 1 ... m )  u.  {
( m  +  1 ) } ) )
71 peano2 4572 . . . . . . . . 9  |-  ( ( `' G `  m )  e.  om  ->  suc  ( `' G `  m )  e.  om )
7253, 71syl 14 . . . . . . . 8  |-  ( m  e.  NN0  ->  suc  ( `' G `  m )  e.  om )
7372, 19jctil 310 . . . . . . 7  |-  ( m  e.  NN0  ->  ( G : om -1-1-onto-> ( ZZ>= `  0 )  /\  suc  ( `' G `  m )  e.  om ) )
74 0zd 9203 . . . . . . . . . 10  |-  ( ( `' G `  m )  e.  om  ->  0  e.  ZZ )
75 id 19 . . . . . . . . . 10  |-  ( ( `' G `  m )  e.  om  ->  ( `' G `  m )  e.  om )
7674, 17, 75frec2uzsucd 10336 . . . . . . . . 9  |-  ( ( `' G `  m )  e.  om  ->  ( G `  suc  ( `' G `  m ) )  =  ( ( G `  ( `' G `  m ) )  +  1 ) )
7753, 76syl 14 . . . . . . . 8  |-  ( m  e.  NN0  ->  ( G `
 suc  ( `' G `  m )
)  =  ( ( G `  ( `' G `  m ) )  +  1 ) )
7852eleq2i 2233 . . . . . . . . . . 11  |-  ( m  e.  NN0  <->  m  e.  ( ZZ>=
`  0 ) )
7978biimpi 119 . . . . . . . . . 10  |-  ( m  e.  NN0  ->  m  e.  ( ZZ>= `  0 )
)
80 f1ocnvfv2 5746 . . . . . . . . . 10  |-  ( ( G : om -1-1-onto-> ( ZZ>= `  0 )  /\  m  e.  ( ZZ>=
`  0 ) )  ->  ( G `  ( `' G `  m ) )  =  m )
8119, 79, 80sylancr 411 . . . . . . . . 9  |-  ( m  e.  NN0  ->  ( G `
 ( `' G `  m ) )  =  m )
8281oveq1d 5857 . . . . . . . 8  |-  ( m  e.  NN0  ->  ( ( G `  ( `' G `  m ) )  +  1 )  =  ( m  + 
1 ) )
8377, 82eqtrd 2198 . . . . . . 7  |-  ( m  e.  NN0  ->  ( G `
 suc  ( `' G `  m )
)  =  ( m  +  1 ) )
84 f1ocnvfv 5747 . . . . . . 7  |-  ( ( G : om -1-1-onto-> ( ZZ>= `  0 )  /\  suc  ( `' G `  m )  e.  om )  ->  ( ( G `
 suc  ( `' G `  m )
)  =  ( m  +  1 )  -> 
( `' G `  ( m  +  1
) )  =  suc  ( `' G `  m ) ) )
8573, 83, 84sylc 62 . . . . . 6  |-  ( m  e.  NN0  ->  ( `' G `  ( m  +  1 ) )  =  suc  ( `' G `  m ) )
8685adantr 274 . . . . 5  |-  ( ( m  e.  NN0  /\  ( 1 ... m
)  ~~  ( `' G `  m )
)  ->  ( `' G `  ( m  +  1 ) )  =  suc  ( `' G `  m ) )
87 df-suc 4349 . . . . 5  |-  suc  ( `' G `  m )  =  ( ( `' G `  m )  u.  { ( `' G `  m ) } )
8886, 87eqtrdi 2215 . . . 4  |-  ( ( m  e.  NN0  /\  ( 1 ... m
)  ~~  ( `' G `  m )
)  ->  ( `' G `  ( m  +  1 ) )  =  ( ( `' G `  m )  u.  { ( `' G `  m ) } ) )
8961, 70, 883brtr4d 4014 . . 3  |-  ( ( m  e.  NN0  /\  ( 1 ... m
)  ~~  ( `' G `  m )
)  ->  ( 1 ... ( m  + 
1 ) )  ~~  ( `' G `  ( m  +  1 ) ) )
9089ex 114 . 2  |-  ( m  e.  NN0  ->  ( ( 1 ... m ) 
~~  ( `' G `  m )  ->  (
1 ... ( m  + 
1 ) )  ~~  ( `' G `  ( m  +  1 ) ) ) )
913, 6, 9, 12, 26, 90nn0ind 9305 1  |-  ( N  e.  NN0  ->  ( 1 ... N )  ~~  ( `' G `  N ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    /\ wa 103   A.wal 1341    = wceq 1343   T. wtru 1344    e. wcel 2136   _Vcvv 2726    u. cun 3114    i^i cin 3115   (/)c0 3409   {csn 3576   class class class wbr 3982    |-> cmpt 4043   Ord word 4340   suc csuc 4343   omcom 4567   `'ccnv 4603    Fn wfn 5183   -1-1-onto->wf1o 5187   ` cfv 5188  (class class class)co 5842  freccfrec 6358    ~~ cen 6704   0cc0 7753   1c1 7754    + caddc 7756    - cmin 8069   NN0cn0 9114   ZZcz 9191   ZZ>=cuz 9466   ...cfz 9944
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 604  ax-in2 605  ax-io 699  ax-5 1435  ax-7 1436  ax-gen 1437  ax-ie1 1481  ax-ie2 1482  ax-8 1492  ax-10 1493  ax-11 1494  ax-i12 1495  ax-bndl 1497  ax-4 1498  ax-17 1514  ax-i9 1518  ax-ial 1522  ax-i5r 1523  ax-13 2138  ax-14 2139  ax-ext 2147  ax-coll 4097  ax-sep 4100  ax-nul 4108  ax-pow 4153  ax-pr 4187  ax-un 4411  ax-setind 4514  ax-iinf 4565  ax-cnex 7844  ax-resscn 7845  ax-1cn 7846  ax-1re 7847  ax-icn 7848  ax-addcl 7849  ax-addrcl 7850  ax-mulcl 7851  ax-addcom 7853  ax-addass 7855  ax-distr 7857  ax-i2m1 7858  ax-0lt1 7859  ax-0id 7861  ax-rnegex 7862  ax-cnre 7864  ax-pre-ltirr 7865  ax-pre-ltwlin 7866  ax-pre-lttrn 7867  ax-pre-apti 7868  ax-pre-ltadd 7869
This theorem depends on definitions:  df-bi 116  df-3or 969  df-3an 970  df-tru 1346  df-fal 1349  df-nf 1449  df-sb 1751  df-eu 2017  df-mo 2018  df-clab 2152  df-cleq 2158  df-clel 2161  df-nfc 2297  df-ne 2337  df-nel 2432  df-ral 2449  df-rex 2450  df-reu 2451  df-rab 2453  df-v 2728  df-sbc 2952  df-csb 3046  df-dif 3118  df-un 3120  df-in 3122  df-ss 3129  df-nul 3410  df-pw 3561  df-sn 3582  df-pr 3583  df-op 3585  df-uni 3790  df-int 3825  df-iun 3868  df-br 3983  df-opab 4044  df-mpt 4045  df-tr 4081  df-id 4271  df-iord 4344  df-on 4346  df-ilim 4347  df-suc 4349  df-iom 4568  df-xp 4610  df-rel 4611  df-cnv 4612  df-co 4613  df-dm 4614  df-rn 4615  df-res 4616  df-ima 4617  df-iota 5153  df-fun 5190  df-fn 5191  df-f 5192  df-f1 5193  df-fo 5194  df-f1o 5195  df-fv 5196  df-riota 5798  df-ov 5845  df-oprab 5846  df-mpo 5847  df-recs 6273  df-frec 6359  df-1o 6384  df-er 6501  df-en 6707  df-pnf 7935  df-mnf 7936  df-xr 7937  df-ltxr 7938  df-le 7939  df-sub 8071  df-neg 8072  df-inn 8858  df-n0 9115  df-z 9192  df-uz 9467  df-fz 9945
This theorem is referenced by:  frecfzen2  10362  hashfz1  10696
  Copyright terms: Public domain W3C validator