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

Theorem frecfzennn 10369
Description: The cardinality of a finite set of sequential integers. (See frec2uz0d 10342 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 5858 . . 3  |-  ( n  =  0  ->  (
1 ... n )  =  ( 1 ... 0
) )
2 fveq2 5494 . . 3  |-  ( n  =  0  ->  ( `' G `  n )  =  ( `' G `  0 ) )
31, 2breq12d 4000 . 2  |-  ( n  =  0  ->  (
( 1 ... n
)  ~~  ( `' G `  n )  <->  ( 1 ... 0 ) 
~~  ( `' G `  0 ) ) )
4 oveq2 5858 . . 3  |-  ( n  =  m  ->  (
1 ... n )  =  ( 1 ... m
) )
5 fveq2 5494 . . 3  |-  ( n  =  m  ->  ( `' G `  n )  =  ( `' G `  m ) )
64, 5breq12d 4000 . 2  |-  ( n  =  m  ->  (
( 1 ... n
)  ~~  ( `' G `  n )  <->  ( 1 ... m ) 
~~  ( `' G `  m ) ) )
7 oveq2 5858 . . 3  |-  ( n  =  ( m  + 
1 )  ->  (
1 ... n )  =  ( 1 ... (
m  +  1 ) ) )
8 fveq2 5494 . . 3  |-  ( n  =  ( m  + 
1 )  ->  ( `' G `  n )  =  ( `' G `  ( m  +  1 ) ) )
97, 8breq12d 4000 . 2  |-  ( n  =  ( m  + 
1 )  ->  (
( 1 ... n
)  ~~  ( `' G `  n )  <->  ( 1 ... ( m  +  1 ) ) 
~~  ( `' G `  ( m  +  1 ) ) ) )
10 oveq2 5858 . . 3  |-  ( n  =  N  ->  (
1 ... n )  =  ( 1 ... N
) )
11 fveq2 5494 . . 3  |-  ( n  =  N  ->  ( `' G `  n )  =  ( `' G `  N ) )
1210, 11breq12d 4000 . 2  |-  ( n  =  N  ->  (
( 1 ... n
)  ~~  ( `' G `  n )  <->  ( 1 ... N ) 
~~  ( `' G `  N ) ) )
13 0ex 4114 . . . 4  |-  (/)  e.  _V
1413enref 6739 . . 3  |-  (/)  ~~  (/)
15 fz10 9989 . . 3  |-  ( 1 ... 0 )  =  (/)
16 0zd 9211 . . . . . . 7  |-  ( T. 
->  0  e.  ZZ )
17 frecfzennn.1 . . . . . . 7  |-  G  = frec ( ( x  e.  ZZ  |->  ( x  + 
1 ) ) ,  0 )
1816, 17frec2uzf1od 10349 . . . . . 6  |-  ( T. 
->  G : om -1-1-onto-> ( ZZ>= `  0 )
)
1918mptru 1357 . . . . 5  |-  G : om
-1-1-onto-> ( ZZ>= `  0 )
20 peano1 4576 . . . . 5  |-  (/)  e.  om
2119, 20pm3.2i 270 . . . 4  |-  ( G : om -1-1-onto-> ( ZZ>= `  0 )  /\  (/)  e.  om )
2216, 17frec2uz0d 10342 . . . . 5  |-  ( T. 
->  ( G `  (/) )  =  0 )
2322mptru 1357 . . . 4  |-  ( G `
 (/) )  =  0
24 f1ocnvfv 5755 . . . 4  |-  ( ( G : om -1-1-onto-> ( ZZ>= `  0 )  /\  (/)  e.  om )  ->  ( ( G `  (/) )  =  0  -> 
( `' G ` 
0 )  =  (/) ) )
2521, 23, 24mp2 16 . . 3  |-  ( `' G `  0 )  =  (/)
2614, 15, 253brtr4i 4017 . 2  |-  ( 1 ... 0 )  ~~  ( `' G `  0 )
27 simpr 109 . . . . 5  |-  ( ( m  e.  NN0  /\  ( 1 ... m
)  ~~  ( `' G `  m )
)  ->  ( 1 ... m )  ~~  ( `' G `  m ) )
28 peano2nn0 9162 . . . . . . 7  |-  ( m  e.  NN0  ->  ( m  +  1 )  e. 
NN0 )
29 zex 9208 . . . . . . . . . . . . . . 15  |-  ZZ  e.  _V
3029mptex 5719 . . . . . . . . . . . . . 14  |-  ( x  e.  ZZ  |->  ( x  +  1 ) )  e.  _V
31 vex 2733 . . . . . . . . . . . . . 14  |-  z  e. 
_V
3230, 31fvex 5514 . . . . . . . . . . . . 13  |-  ( ( x  e.  ZZ  |->  ( x  +  1 ) ) `  z )  e.  _V
3332ax-gen 1442 . . . . . . . . . . . 12  |-  A. z
( ( x  e.  ZZ  |->  ( x  + 
1 ) ) `  z )  e.  _V
34 0z 9210 . . . . . . . . . . . 12  |-  0  e.  ZZ
35 frecfnom 6377 . . . . . . . . . . . 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 424 . . . . . . . . . . 11  |- frec ( ( x  e.  ZZ  |->  ( x  +  1 ) ) ,  0 )  Fn  om
3717fneq1i 5290 . . . . . . . . . . 11  |-  ( G  Fn  om  <-> frec ( (
x  e.  ZZ  |->  ( x  +  1 ) ) ,  0 )  Fn  om )
3836, 37mpbir 145 . . . . . . . . . 10  |-  G  Fn  om
39 omex 4575 . . . . . . . . . 10  |-  om  e.  _V
40 fnex 5715 . . . . . . . . . 10  |-  ( ( G  Fn  om  /\  om  e.  _V )  ->  G  e.  _V )
4138, 39, 40mp2an 424 . . . . . . . . 9  |-  G  e. 
_V
4241cnvex 5147 . . . . . . . 8  |-  `' G  e.  _V
43 vex 2733 . . . . . . . 8  |-  m  e. 
_V
4442, 43fvex 5514 . . . . . . 7  |-  ( `' G `  m )  e.  _V
45 en2sn 6787 . . . . . . 7  |-  ( ( ( m  +  1 )  e.  NN0  /\  ( `' G `  m )  e.  _V )  ->  { ( m  + 
1 ) }  ~~  { ( `' G `  m ) } )
4628, 44, 45sylancl 411 . . . . . 6  |-  ( m  e.  NN0  ->  { ( m  +  1 ) }  ~~  { ( `' G `  m ) } )
4746adantr 274 . . . . 5  |-  ( ( m  e.  NN0  /\  ( 1 ... m
)  ~~  ( `' G `  m )
)  ->  { (
m  +  1 ) }  ~~  { ( `' G `  m ) } )
48 fzp1disj 10023 . . . . . 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 5757 . . . . . . . . . 10  |-  ( ( G : om -1-1-onto-> ( ZZ>= `  0 )  /\  m  e.  ( ZZ>=
`  0 ) )  ->  ( `' G `  m )  e.  om )
5119, 50mpan 422 . . . . . . . . 9  |-  ( m  e.  ( ZZ>= `  0
)  ->  ( `' G `  m )  e.  om )
52 nn0uz 9508 . . . . . . . . 9  |-  NN0  =  ( ZZ>= `  0 )
5351, 52eleq2s 2265 . . . . . . . 8  |-  ( m  e.  NN0  ->  ( `' G `  m )  e.  om )
54 nnord 4594 . . . . . . . 8  |-  ( ( `' G `  m )  e.  om  ->  Ord  ( `' G `  m ) )
55 ordirr 4524 . . . . . . . 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 3643 . . . . . 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 6790 . . . . 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 1234 . . . 4  |-  ( ( m  e.  NN0  /\  ( 1 ... m
)  ~~  ( `' G `  m )
)  ->  ( (
1 ... m )  u. 
{ ( m  + 
1 ) } ) 
~~  ( ( `' G `  m )  u.  { ( `' G `  m ) } ) )
62 1z 9225 . . . . . 6  |-  1  e.  ZZ
63 1m1e0 8934 . . . . . . . . . 10  |-  ( 1  -  1 )  =  0
6463fveq2i 5497 . . . . . . . . 9  |-  ( ZZ>= `  ( 1  -  1 ) )  =  (
ZZ>= `  0 )
6552, 64eqtr4i 2194 . . . . . . . 8  |-  NN0  =  ( ZZ>= `  ( 1  -  1 ) )
6665eleq2i 2237 . . . . . . 7  |-  ( m  e.  NN0  <->  m  e.  ( ZZ>=
`  ( 1  -  1 ) ) )
6766biimpi 119 . . . . . 6  |-  ( m  e.  NN0  ->  m  e.  ( ZZ>= `  ( 1  -  1 ) ) )
68 fzsuc2 10022 . . . . . 6  |-  ( ( 1  e.  ZZ  /\  m  e.  ( ZZ>= `  ( 1  -  1 ) ) )  -> 
( 1 ... (
m  +  1 ) )  =  ( ( 1 ... m )  u.  { ( m  +  1 ) } ) )
6962, 67, 68sylancr 412 . . . . 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 4577 . . . . . . . . 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 9211 . . . . . . . . . 10  |-  ( ( `' G `  m )  e.  om  ->  0  e.  ZZ )
75 id 19 . . . . . . . . . 10  |-  ( ( `' G `  m )  e.  om  ->  ( `' G `  m )  e.  om )
7674, 17, 75frec2uzsucd 10344 . . . . . . . . 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 2237 . . . . . . . . . . 11  |-  ( m  e.  NN0  <->  m  e.  ( ZZ>=
`  0 ) )
7978biimpi 119 . . . . . . . . . 10  |-  ( m  e.  NN0  ->  m  e.  ( ZZ>= `  0 )
)
80 f1ocnvfv2 5754 . . . . . . . . . 10  |-  ( ( G : om -1-1-onto-> ( ZZ>= `  0 )  /\  m  e.  ( ZZ>=
`  0 ) )  ->  ( G `  ( `' G `  m ) )  =  m )
8119, 79, 80sylancr 412 . . . . . . . . 9  |-  ( m  e.  NN0  ->  ( G `
 ( `' G `  m ) )  =  m )
8281oveq1d 5865 . . . . . . . 8  |-  ( m  e.  NN0  ->  ( ( G `  ( `' G `  m ) )  +  1 )  =  ( m  + 
1 ) )
8377, 82eqtrd 2203 . . . . . . 7  |-  ( m  e.  NN0  ->  ( G `
 suc  ( `' G `  m )
)  =  ( m  +  1 ) )
84 f1ocnvfv 5755 . . . . . . 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 4354 . . . . 5  |-  suc  ( `' G `  m )  =  ( ( `' G `  m )  u.  { ( `' G `  m ) } )
8886, 87eqtrdi 2219 . . . 4  |-  ( ( m  e.  NN0  /\  ( 1 ... m
)  ~~  ( `' G `  m )
)  ->  ( `' G `  ( m  +  1 ) )  =  ( ( `' G `  m )  u.  { ( `' G `  m ) } ) )
8961, 70, 883brtr4d 4019 . . 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 9313 1  |-  ( N  e.  NN0  ->  ( 1 ... N )  ~~  ( `' G `  N ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    /\ wa 103   A.wal 1346    = wceq 1348   T. wtru 1349    e. wcel 2141   _Vcvv 2730    u. cun 3119    i^i cin 3120   (/)c0 3414   {csn 3581   class class class wbr 3987    |-> cmpt 4048   Ord word 4345   suc csuc 4348   omcom 4572   `'ccnv 4608    Fn wfn 5191   -1-1-onto->wf1o 5195   ` cfv 5196  (class class class)co 5850  freccfrec 6366    ~~ cen 6712   0cc0 7761   1c1 7762    + caddc 7764    - cmin 8077   NN0cn0 9122   ZZcz 9199   ZZ>=cuz 9474   ...cfz 9952
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 7852  ax-resscn 7853  ax-1cn 7854  ax-1re 7855  ax-icn 7856  ax-addcl 7857  ax-addrcl 7858  ax-mulcl 7859  ax-addcom 7861  ax-addass 7863  ax-distr 7865  ax-i2m1 7866  ax-0lt1 7867  ax-0id 7869  ax-rnegex 7870  ax-cnre 7872  ax-pre-ltirr 7873  ax-pre-ltwlin 7874  ax-pre-lttrn 7875  ax-pre-apti 7876  ax-pre-ltadd 7877
This theorem depends on definitions:  df-bi 116  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-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 5806  df-ov 5853  df-oprab 5854  df-mpo 5855  df-recs 6281  df-frec 6367  df-1o 6392  df-er 6509  df-en 6715  df-pnf 7943  df-mnf 7944  df-xr 7945  df-ltxr 7946  df-le 7947  df-sub 8079  df-neg 8080  df-inn 8866  df-n0 9123  df-z 9200  df-uz 9475  df-fz 9953
This theorem is referenced by:  frecfzen2  10370  hashfz1  10704
  Copyright terms: Public domain W3C validator