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

Theorem elfzonlteqm1 9873
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 8962 . . . 4  |-  0  e.  ZZ
2 elfzo0 9845 . . . . 5  |-  ( A  e.  ( 0..^ B )  <->  ( A  e. 
NN0  /\  B  e.  NN  /\  A  <  B
) )
3 elnnuz 9257 . . . . . . . 8  |-  ( B  e.  NN  <->  B  e.  ( ZZ>= `  1 )
)
43biimpi 119 . . . . . . 7  |-  ( B  e.  NN  ->  B  e.  ( ZZ>= `  1 )
)
5 0p1e1 8737 . . . . . . . . 9  |-  ( 0  +  1 )  =  1
65a1i 9 . . . . . . . 8  |-  ( B  e.  NN  ->  (
0  +  1 )  =  1 )
76fveq2d 5377 . . . . . . 7  |-  ( B  e.  NN  ->  ( ZZ>=
`  ( 0  +  1 ) )  =  ( ZZ>= `  1 )
)
84, 7eleqtrrd 2192 . . . . . 6  |-  ( B  e.  NN  ->  B  e.  ( ZZ>= `  ( 0  +  1 ) ) )
983ad2ant2 984 . . . . 5  |-  ( ( A  e.  NN0  /\  B  e.  NN  /\  A  <  B )  ->  B  e.  ( ZZ>= `  ( 0  +  1 ) ) )
102, 9sylbi 120 . . . 4  |-  ( A  e.  ( 0..^ B )  ->  B  e.  ( ZZ>= `  ( 0  +  1 ) ) )
11 fzosplitsnm1 9872 . . . 4  |-  ( ( 0  e.  ZZ  /\  B  e.  ( ZZ>= `  ( 0  +  1 ) ) )  -> 
( 0..^ B )  =  ( ( 0..^ ( B  -  1 ) )  u.  {
( B  -  1 ) } ) )
121, 10, 11sylancr 408 . . 3  |-  ( A  e.  ( 0..^ B )  ->  ( 0..^ B )  =  ( ( 0..^ ( B  -  1 ) )  u.  { ( B  -  1 ) } ) )
13 eleq2 2176 . . . 4  |-  ( ( 0..^ B )  =  ( ( 0..^ ( B  -  1 ) )  u.  { ( B  -  1 ) } )  ->  ( A  e.  ( 0..^ B )  <->  A  e.  ( ( 0..^ ( B  -  1 ) )  u.  { ( B  -  1 ) } ) ) )
14 elun 3181 . . . . 5  |-  ( A  e.  ( ( 0..^ ( B  -  1 ) )  u.  {
( B  -  1 ) } )  <->  ( A  e.  ( 0..^ ( B  -  1 ) )  \/  A  e.  {
( B  -  1 ) } ) )
15 elfzo0 9845 . . . . . . 7  |-  ( A  e.  ( 0..^ ( B  -  1 ) )  <->  ( A  e. 
NN0  /\  ( B  -  1 )  e.  NN  /\  A  < 
( B  -  1 ) ) )
16 pm2.24 593 . . . . . . . 8  |-  ( A  <  ( B  - 
1 )  ->  ( -.  A  <  ( B  -  1 )  ->  A  =  ( B  -  1 ) ) )
17163ad2ant3 985 . . . . . . 7  |-  ( ( A  e.  NN0  /\  ( B  -  1
)  e.  NN  /\  A  <  ( B  - 
1 ) )  -> 
( -.  A  < 
( B  -  1 )  ->  A  =  ( B  -  1
) ) )
1815, 17sylbi 120 . . . . . 6  |-  ( A  e.  ( 0..^ ( B  -  1 ) )  ->  ( -.  A  <  ( B  - 
1 )  ->  A  =  ( B  - 
1 ) ) )
19 elsni 3509 . . . . . . 7  |-  ( A  e.  { ( B  -  1 ) }  ->  A  =  ( B  -  1 ) )
2019a1d 22 . . . . . 6  |-  ( A  e.  { ( B  -  1 ) }  ->  ( -.  A  <  ( B  -  1 )  ->  A  =  ( B  -  1
) ) )
2118, 20jaoi 688 . . . . 5  |-  ( ( A  e.  ( 0..^ ( B  -  1 ) )  \/  A  e.  { ( B  - 
1 ) } )  ->  ( -.  A  <  ( B  -  1 )  ->  A  =  ( B  -  1
) ) )
2214, 21sylbi 120 . . . 4  |-  ( A  e.  ( ( 0..^ ( B  -  1 ) )  u.  {
( B  -  1 ) } )  -> 
( -.  A  < 
( B  -  1 )  ->  A  =  ( B  -  1
) ) )
2313, 22syl6bi 162 . . 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 123 1  |-  ( ( A  e.  ( 0..^ B )  /\  -.  A  <  ( B  - 
1 ) )  ->  A  =  ( B  -  1 ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    /\ wa 103    \/ wo 680    /\ w3a 943    = wceq 1312    e. wcel 1461    u. cun 3033   {csn 3491   class class class wbr 3893   ` cfv 5079  (class class class)co 5726   0cc0 7540   1c1 7541    + caddc 7543    < clt 7717    - cmin 7849   NNcn 8623   NN0cn0 8874   ZZcz 8951   ZZ>=cuz 9221  ..^cfzo 9805
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 586  ax-in2 587  ax-io 681  ax-5 1404  ax-7 1405  ax-gen 1406  ax-ie1 1450  ax-ie2 1451  ax-8 1463  ax-10 1464  ax-11 1465  ax-i12 1466  ax-bndl 1467  ax-4 1468  ax-13 1472  ax-14 1473  ax-17 1487  ax-i9 1491  ax-ial 1495  ax-i5r 1496  ax-ext 2095  ax-sep 4004  ax-pow 4056  ax-pr 4089  ax-un 4313  ax-setind 4410  ax-cnex 7629  ax-resscn 7630  ax-1cn 7631  ax-1re 7632  ax-icn 7633  ax-addcl 7634  ax-addrcl 7635  ax-mulcl 7636  ax-addcom 7638  ax-addass 7640  ax-distr 7642  ax-i2m1 7643  ax-0lt1 7644  ax-0id 7646  ax-rnegex 7647  ax-cnre 7649  ax-pre-ltirr 7650  ax-pre-ltwlin 7651  ax-pre-lttrn 7652  ax-pre-apti 7653  ax-pre-ltadd 7654
This theorem depends on definitions:  df-bi 116  df-3or 944  df-3an 945  df-tru 1315  df-fal 1318  df-nf 1418  df-sb 1717  df-eu 1976  df-mo 1977  df-clab 2100  df-cleq 2106  df-clel 2109  df-nfc 2242  df-ne 2281  df-nel 2376  df-ral 2393  df-rex 2394  df-reu 2395  df-rab 2397  df-v 2657  df-sbc 2877  df-csb 2970  df-dif 3037  df-un 3039  df-in 3041  df-ss 3048  df-pw 3476  df-sn 3497  df-pr 3498  df-op 3500  df-uni 3701  df-int 3736  df-iun 3779  df-br 3894  df-opab 3948  df-mpt 3949  df-id 4173  df-xp 4503  df-rel 4504  df-cnv 4505  df-co 4506  df-dm 4507  df-rn 4508  df-res 4509  df-ima 4510  df-iota 5044  df-fun 5081  df-fn 5082  df-f 5083  df-fv 5087  df-riota 5682  df-ov 5729  df-oprab 5730  df-mpo 5731  df-1st 5989  df-2nd 5990  df-pnf 7719  df-mnf 7720  df-xr 7721  df-ltxr 7722  df-le 7723  df-sub 7851  df-neg 7852  df-inn 8624  df-n0 8875  df-z 8952  df-uz 9222  df-fz 9677  df-fzo 9806
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator