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

Theorem frecfzen2 10230
Description: The cardinality of a finite set of sequential integers with arbitrary endpoints. (Contributed by Jim Kingdon, 18-May-2020.)
Hypothesis
Ref Expression
frecfzennn.1  |-  G  = frec ( ( x  e.  ZZ  |->  ( x  + 
1 ) ) ,  0 )
Assertion
Ref Expression
frecfzen2  |-  ( N  e.  ( ZZ>= `  M
)  ->  ( M ... N )  ~~  ( `' G `  ( ( N  +  1 )  -  M ) ) )

Proof of Theorem frecfzen2
StepHypRef Expression
1 eluzel2 9354 . . . 4  |-  ( N  e.  ( ZZ>= `  M
)  ->  M  e.  ZZ )
2 eluzelz 9358 . . . 4  |-  ( N  e.  ( ZZ>= `  M
)  ->  N  e.  ZZ )
3 1z 9103 . . . . 5  |-  1  e.  ZZ
4 zsubcl 9118 . . . . 5  |-  ( ( 1  e.  ZZ  /\  M  e.  ZZ )  ->  ( 1  -  M
)  e.  ZZ )
53, 1, 4sylancr 411 . . . 4  |-  ( N  e.  ( ZZ>= `  M
)  ->  ( 1  -  M )  e.  ZZ )
6 fzen 9853 . . . 4  |-  ( ( M  e.  ZZ  /\  N  e.  ZZ  /\  (
1  -  M )  e.  ZZ )  -> 
( M ... N
)  ~~  ( ( M  +  ( 1  -  M ) ) ... ( N  +  ( 1  -  M
) ) ) )
71, 2, 5, 6syl3anc 1217 . . 3  |-  ( N  e.  ( ZZ>= `  M
)  ->  ( M ... N )  ~~  (
( M  +  ( 1  -  M ) ) ... ( N  +  ( 1  -  M ) ) ) )
81zcnd 9197 . . . . 5  |-  ( N  e.  ( ZZ>= `  M
)  ->  M  e.  CC )
9 ax-1cn 7736 . . . . 5  |-  1  e.  CC
10 pncan3 7993 . . . . 5  |-  ( ( M  e.  CC  /\  1  e.  CC )  ->  ( M  +  ( 1  -  M ) )  =  1 )
118, 9, 10sylancl 410 . . . 4  |-  ( N  e.  ( ZZ>= `  M
)  ->  ( M  +  ( 1  -  M ) )  =  1 )
12 zcn 9082 . . . . . . 7  |-  ( N  e.  ZZ  ->  N  e.  CC )
13 zcn 9082 . . . . . . 7  |-  ( M  e.  ZZ  ->  M  e.  CC )
14 addsubass 7995 . . . . . . . 8  |-  ( ( N  e.  CC  /\  1  e.  CC  /\  M  e.  CC )  ->  (
( N  +  1 )  -  M )  =  ( N  +  ( 1  -  M
) ) )
159, 14mp3an2 1304 . . . . . . 7  |-  ( ( N  e.  CC  /\  M  e.  CC )  ->  ( ( N  + 
1 )  -  M
)  =  ( N  +  ( 1  -  M ) ) )
1612, 13, 15syl2an 287 . . . . . 6  |-  ( ( N  e.  ZZ  /\  M  e.  ZZ )  ->  ( ( N  + 
1 )  -  M
)  =  ( N  +  ( 1  -  M ) ) )
172, 1, 16syl2anc 409 . . . . 5  |-  ( N  e.  ( ZZ>= `  M
)  ->  ( ( N  +  1 )  -  M )  =  ( N  +  ( 1  -  M ) ) )
1817eqcomd 2146 . . . 4  |-  ( N  e.  ( ZZ>= `  M
)  ->  ( N  +  ( 1  -  M ) )  =  ( ( N  + 
1 )  -  M
) )
1911, 18oveq12d 5799 . . 3  |-  ( N  e.  ( ZZ>= `  M
)  ->  ( ( M  +  ( 1  -  M ) ) ... ( N  +  ( 1  -  M
) ) )  =  ( 1 ... (
( N  +  1 )  -  M ) ) )
207, 19breqtrd 3961 . 2  |-  ( N  e.  ( ZZ>= `  M
)  ->  ( M ... N )  ~~  (
1 ... ( ( N  +  1 )  -  M ) ) )
21 peano2uz 9404 . . 3  |-  ( N  e.  ( ZZ>= `  M
)  ->  ( N  +  1 )  e.  ( ZZ>= `  M )
)
22 uznn0sub 9380 . . 3  |-  ( ( N  +  1 )  e.  ( ZZ>= `  M
)  ->  ( ( N  +  1 )  -  M )  e. 
NN0 )
23 frecfzennn.1 . . . 4  |-  G  = frec ( ( x  e.  ZZ  |->  ( x  + 
1 ) ) ,  0 )
2423frecfzennn 10229 . . 3  |-  ( ( ( N  +  1 )  -  M )  e.  NN0  ->  ( 1 ... ( ( N  +  1 )  -  M ) )  ~~  ( `' G `  ( ( N  +  1 )  -  M ) ) )
2521, 22, 243syl 17 . 2  |-  ( N  e.  ( ZZ>= `  M
)  ->  ( 1 ... ( ( N  +  1 )  -  M ) )  ~~  ( `' G `  ( ( N  +  1 )  -  M ) ) )
26 entr 6685 . 2  |-  ( ( ( M ... N
)  ~~  ( 1 ... ( ( N  +  1 )  -  M ) )  /\  ( 1 ... (
( N  +  1 )  -  M ) )  ~~  ( `' G `  ( ( N  +  1 )  -  M ) ) )  ->  ( M ... N )  ~~  ( `' G `  ( ( N  +  1 )  -  M ) ) )
2720, 25, 26syl2anc 409 1  |-  ( N  e.  ( ZZ>= `  M
)  ->  ( M ... N )  ~~  ( `' G `  ( ( N  +  1 )  -  M ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    = wceq 1332    e. wcel 1481   class class class wbr 3936    |-> cmpt 3996   `'ccnv 4545   ` cfv 5130  (class class class)co 5781  freccfrec 6294    ~~ cen 6639   CCcc 7641   0cc0 7643   1c1 7644    + caddc 7646    - cmin 7956   NN0cn0 9000   ZZcz 9077   ZZ>=cuz 9349   ...cfz 9820
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 1424  ax-7 1425  ax-gen 1426  ax-ie1 1470  ax-ie2 1471  ax-8 1483  ax-10 1484  ax-11 1485  ax-i12 1486  ax-bndl 1487  ax-4 1488  ax-13 1492  ax-14 1493  ax-17 1507  ax-i9 1511  ax-ial 1515  ax-i5r 1516  ax-ext 2122  ax-coll 4050  ax-sep 4053  ax-nul 4061  ax-pow 4105  ax-pr 4138  ax-un 4362  ax-setind 4459  ax-iinf 4509  ax-cnex 7734  ax-resscn 7735  ax-1cn 7736  ax-1re 7737  ax-icn 7738  ax-addcl 7739  ax-addrcl 7740  ax-mulcl 7741  ax-addcom 7743  ax-addass 7745  ax-distr 7747  ax-i2m1 7748  ax-0lt1 7749  ax-0id 7751  ax-rnegex 7752  ax-cnre 7754  ax-pre-ltirr 7755  ax-pre-ltwlin 7756  ax-pre-lttrn 7757  ax-pre-apti 7758  ax-pre-ltadd 7759
This theorem depends on definitions:  df-bi 116  df-3or 964  df-3an 965  df-tru 1335  df-fal 1338  df-nf 1438  df-sb 1737  df-eu 2003  df-mo 2004  df-clab 2127  df-cleq 2133  df-clel 2136  df-nfc 2271  df-ne 2310  df-nel 2405  df-ral 2422  df-rex 2423  df-reu 2424  df-rab 2426  df-v 2691  df-sbc 2913  df-csb 3007  df-dif 3077  df-un 3079  df-in 3081  df-ss 3088  df-nul 3368  df-pw 3516  df-sn 3537  df-pr 3538  df-op 3540  df-uni 3744  df-int 3779  df-iun 3822  df-br 3937  df-opab 3997  df-mpt 3998  df-tr 4034  df-id 4222  df-iord 4295  df-on 4297  df-ilim 4298  df-suc 4300  df-iom 4512  df-xp 4552  df-rel 4553  df-cnv 4554  df-co 4555  df-dm 4556  df-rn 4557  df-res 4558  df-ima 4559  df-iota 5095  df-fun 5132  df-fn 5133  df-f 5134  df-f1 5135  df-fo 5136  df-f1o 5137  df-fv 5138  df-riota 5737  df-ov 5784  df-oprab 5785  df-mpo 5786  df-1st 6045  df-2nd 6046  df-recs 6209  df-frec 6295  df-1o 6320  df-er 6436  df-en 6642  df-pnf 7825  df-mnf 7826  df-xr 7827  df-ltxr 7828  df-le 7829  df-sub 7958  df-neg 7959  df-inn 8744  df-n0 9001  df-z 9078  df-uz 9350  df-fz 9821
This theorem is referenced by:  fzfig  10233
  Copyright terms: Public domain W3C validator