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

Theorem elfzonlteqm1 10230
Description: If an element of a half-open integer range is not less than the upper bound of the range decreased by 1, it must be equal to the upper bound of the range decreased by 1. (Contributed by AV, 3-Nov-2018.)
Assertion
Ref Expression
elfzonlteqm1  |-  ( ( A  e.  ( 0..^ B )  /\  -.  A  <  ( B  - 
1 ) )  ->  A  =  ( B  -  1 ) )

Proof of Theorem elfzonlteqm1
StepHypRef Expression
1 0z 9284 . . . 4  |-  0  e.  ZZ
2 elfzo0 10202 . . . . 5  |-  ( A  e.  ( 0..^ B )  <->  ( A  e. 
NN0  /\  B  e.  NN  /\  A  <  B
) )
3 elnnuz 9584 . . . . . . . 8  |-  ( B  e.  NN  <->  B  e.  ( ZZ>= `  1 )
)
43biimpi 120 . . . . . . 7  |-  ( B  e.  NN  ->  B  e.  ( ZZ>= `  1 )
)
5 0p1e1 9053 . . . . . . . . 9  |-  ( 0  +  1 )  =  1
65a1i 9 . . . . . . . 8  |-  ( B  e.  NN  ->  (
0  +  1 )  =  1 )
76fveq2d 5535 . . . . . . 7  |-  ( B  e.  NN  ->  ( ZZ>=
`  ( 0  +  1 ) )  =  ( ZZ>= `  1 )
)
84, 7eleqtrrd 2269 . . . . . 6  |-  ( B  e.  NN  ->  B  e.  ( ZZ>= `  ( 0  +  1 ) ) )
983ad2ant2 1021 . . . . 5  |-  ( ( A  e.  NN0  /\  B  e.  NN  /\  A  <  B )  ->  B  e.  ( ZZ>= `  ( 0  +  1 ) ) )
102, 9sylbi 121 . . . 4  |-  ( A  e.  ( 0..^ B )  ->  B  e.  ( ZZ>= `  ( 0  +  1 ) ) )
11 fzosplitsnm1 10229 . . . 4  |-  ( ( 0  e.  ZZ  /\  B  e.  ( ZZ>= `  ( 0  +  1 ) ) )  -> 
( 0..^ B )  =  ( ( 0..^ ( B  -  1 ) )  u.  {
( B  -  1 ) } ) )
121, 10, 11sylancr 414 . . 3  |-  ( A  e.  ( 0..^ B )  ->  ( 0..^ B )  =  ( ( 0..^ ( B  -  1 ) )  u.  { ( B  -  1 ) } ) )
13 eleq2 2253 . . . 4  |-  ( ( 0..^ B )  =  ( ( 0..^ ( B  -  1 ) )  u.  { ( B  -  1 ) } )  ->  ( A  e.  ( 0..^ B )  <->  A  e.  ( ( 0..^ ( B  -  1 ) )  u.  { ( B  -  1 ) } ) ) )
14 elun 3291 . . . . 5  |-  ( A  e.  ( ( 0..^ ( B  -  1 ) )  u.  {
( B  -  1 ) } )  <->  ( A  e.  ( 0..^ ( B  -  1 ) )  \/  A  e.  {
( B  -  1 ) } ) )
15 elfzo0 10202 . . . . . . 7  |-  ( A  e.  ( 0..^ ( B  -  1 ) )  <->  ( A  e. 
NN0  /\  ( B  -  1 )  e.  NN  /\  A  < 
( B  -  1 ) ) )
16 pm2.24 622 . . . . . . . 8  |-  ( A  <  ( B  - 
1 )  ->  ( -.  A  <  ( B  -  1 )  ->  A  =  ( B  -  1 ) ) )
17163ad2ant3 1022 . . . . . . 7  |-  ( ( A  e.  NN0  /\  ( B  -  1
)  e.  NN  /\  A  <  ( B  - 
1 ) )  -> 
( -.  A  < 
( B  -  1 )  ->  A  =  ( B  -  1
) ) )
1815, 17sylbi 121 . . . . . 6  |-  ( A  e.  ( 0..^ ( B  -  1 ) )  ->  ( -.  A  <  ( B  - 
1 )  ->  A  =  ( B  - 
1 ) ) )
19 elsni 3625 . . . . . . 7  |-  ( A  e.  { ( B  -  1 ) }  ->  A  =  ( B  -  1 ) )
2019a1d 22 . . . . . 6  |-  ( A  e.  { ( B  -  1 ) }  ->  ( -.  A  <  ( B  -  1 )  ->  A  =  ( B  -  1
) ) )
2118, 20jaoi 717 . . . . 5  |-  ( ( A  e.  ( 0..^ ( B  -  1 ) )  \/  A  e.  { ( B  - 
1 ) } )  ->  ( -.  A  <  ( B  -  1 )  ->  A  =  ( B  -  1
) ) )
2214, 21sylbi 121 . . . 4  |-  ( A  e.  ( ( 0..^ ( B  -  1 ) )  u.  {
( B  -  1 ) } )  -> 
( -.  A  < 
( B  -  1 )  ->  A  =  ( B  -  1
) ) )
2313, 22biimtrdi 163 . . 3  |-  ( ( 0..^ B )  =  ( ( 0..^ ( B  -  1 ) )  u.  { ( B  -  1 ) } )  ->  ( A  e.  ( 0..^ B )  ->  ( -.  A  <  ( B  -  1 )  ->  A  =  ( B  -  1 ) ) ) )
2412, 23mpcom 36 . 2  |-  ( A  e.  ( 0..^ B )  ->  ( -.  A  <  ( B  - 
1 )  ->  A  =  ( B  - 
1 ) ) )
2524imp 124 1  |-  ( ( A  e.  ( 0..^ B )  /\  -.  A  <  ( B  - 
1 ) )  ->  A  =  ( B  -  1 ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    /\ wa 104    \/ wo 709    /\ w3a 980    = wceq 1364    e. wcel 2160    u. cun 3142   {csn 3607   class class class wbr 4018   ` cfv 5232  (class class class)co 5892   0cc0 7831   1c1 7832    + caddc 7834    < clt 8012    - cmin 8148   NNcn 8939   NN0cn0 9196   ZZcz 9273   ZZ>=cuz 9548  ..^cfzo 10162
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 615  ax-in2 616  ax-io 710  ax-5 1458  ax-7 1459  ax-gen 1460  ax-ie1 1504  ax-ie2 1505  ax-8 1515  ax-10 1516  ax-11 1517  ax-i12 1518  ax-bndl 1520  ax-4 1521  ax-17 1537  ax-i9 1541  ax-ial 1545  ax-i5r 1546  ax-13 2162  ax-14 2163  ax-ext 2171  ax-sep 4136  ax-pow 4189  ax-pr 4224  ax-un 4448  ax-setind 4551  ax-cnex 7922  ax-resscn 7923  ax-1cn 7924  ax-1re 7925  ax-icn 7926  ax-addcl 7927  ax-addrcl 7928  ax-mulcl 7929  ax-addcom 7931  ax-addass 7933  ax-distr 7935  ax-i2m1 7936  ax-0lt1 7937  ax-0id 7939  ax-rnegex 7940  ax-cnre 7942  ax-pre-ltirr 7943  ax-pre-ltwlin 7944  ax-pre-lttrn 7945  ax-pre-apti 7946  ax-pre-ltadd 7947
This theorem depends on definitions:  df-bi 117  df-3or 981  df-3an 982  df-tru 1367  df-fal 1370  df-nf 1472  df-sb 1774  df-eu 2041  df-mo 2042  df-clab 2176  df-cleq 2182  df-clel 2185  df-nfc 2321  df-ne 2361  df-nel 2456  df-ral 2473  df-rex 2474  df-reu 2475  df-rab 2477  df-v 2754  df-sbc 2978  df-csb 3073  df-dif 3146  df-un 3148  df-in 3150  df-ss 3157  df-pw 3592  df-sn 3613  df-pr 3614  df-op 3616  df-uni 3825  df-int 3860  df-iun 3903  df-br 4019  df-opab 4080  df-mpt 4081  df-id 4308  df-xp 4647  df-rel 4648  df-cnv 4649  df-co 4650  df-dm 4651  df-rn 4652  df-res 4653  df-ima 4654  df-iota 5193  df-fun 5234  df-fn 5235  df-f 5236  df-fv 5240  df-riota 5848  df-ov 5895  df-oprab 5896  df-mpo 5897  df-1st 6160  df-2nd 6161  df-pnf 8014  df-mnf 8015  df-xr 8016  df-ltxr 8017  df-le 8018  df-sub 8150  df-neg 8151  df-inn 8940  df-n0 9197  df-z 9274  df-uz 9549  df-fz 10029  df-fzo 10163
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator