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

Theorem subfzo0 10177
Description: The difference between two elements in a half-open range of nonnegative integers is greater than the negation of the upper bound and less than the upper bound of the range. (Contributed by AV, 20-Mar-2021.)
Assertion
Ref Expression
subfzo0  |-  ( ( I  e.  ( 0..^ N )  /\  J  e.  ( 0..^ N ) )  ->  ( -u N  <  ( I  -  J
)  /\  ( I  -  J )  <  N
) )

Proof of Theorem subfzo0
StepHypRef Expression
1 elfzo0 10117 . . 3  |-  ( I  e.  ( 0..^ N )  <->  ( I  e. 
NN0  /\  N  e.  NN  /\  I  <  N
) )
2 elfzo0 10117 . . . . 5  |-  ( J  e.  ( 0..^ N )  <->  ( J  e. 
NN0  /\  N  e.  NN  /\  J  <  N
) )
3 nn0re 9123 . . . . . . . . . . . 12  |-  ( I  e.  NN0  ->  I  e.  RR )
43adantr 274 . . . . . . . . . . 11  |-  ( ( I  e.  NN0  /\  I  <  N )  ->  I  e.  RR )
5 nnre 8864 . . . . . . . . . . . . . 14  |-  ( N  e.  NN  ->  N  e.  RR )
6 nn0re 9123 . . . . . . . . . . . . . 14  |-  ( J  e.  NN0  ->  J  e.  RR )
7 resubcl 8162 . . . . . . . . . . . . . 14  |-  ( ( N  e.  RR  /\  J  e.  RR )  ->  ( N  -  J
)  e.  RR )
85, 6, 7syl2an 287 . . . . . . . . . . . . 13  |-  ( ( N  e.  NN  /\  J  e.  NN0 )  -> 
( N  -  J
)  e.  RR )
98ancoms 266 . . . . . . . . . . . 12  |-  ( ( J  e.  NN0  /\  N  e.  NN )  ->  ( N  -  J
)  e.  RR )
1093adant3 1007 . . . . . . . . . . 11  |-  ( ( J  e.  NN0  /\  N  e.  NN  /\  J  <  N )  ->  ( N  -  J )  e.  RR )
114, 10anim12i 336 . . . . . . . . . 10  |-  ( ( ( I  e.  NN0  /\  I  <  N )  /\  ( J  e. 
NN0  /\  N  e.  NN  /\  J  <  N
) )  ->  (
I  e.  RR  /\  ( N  -  J
)  e.  RR ) )
12 nn0ge0 9139 . . . . . . . . . . . 12  |-  ( I  e.  NN0  ->  0  <_  I )
1312adantr 274 . . . . . . . . . . 11  |-  ( ( I  e.  NN0  /\  I  <  N )  -> 
0  <_  I )
14 posdif 8353 . . . . . . . . . . . . 13  |-  ( ( J  e.  RR  /\  N  e.  RR )  ->  ( J  <  N  <->  0  <  ( N  -  J ) ) )
156, 5, 14syl2an 287 . . . . . . . . . . . 12  |-  ( ( J  e.  NN0  /\  N  e.  NN )  ->  ( J  <  N  <->  0  <  ( N  -  J ) ) )
1615biimp3a 1335 . . . . . . . . . . 11  |-  ( ( J  e.  NN0  /\  N  e.  NN  /\  J  <  N )  ->  0  <  ( N  -  J
) )
1713, 16anim12i 336 . . . . . . . . . 10  |-  ( ( ( I  e.  NN0  /\  I  <  N )  /\  ( J  e. 
NN0  /\  N  e.  NN  /\  J  <  N
) )  ->  (
0  <_  I  /\  0  <  ( N  -  J ) ) )
18 addgegt0 8347 . . . . . . . . . 10  |-  ( ( ( I  e.  RR  /\  ( N  -  J
)  e.  RR )  /\  ( 0  <_  I  /\  0  <  ( N  -  J )
) )  ->  0  <  ( I  +  ( N  -  J ) ) )
1911, 17, 18syl2anc 409 . . . . . . . . 9  |-  ( ( ( I  e.  NN0  /\  I  <  N )  /\  ( J  e. 
NN0  /\  N  e.  NN  /\  J  <  N
) )  ->  0  <  ( I  +  ( N  -  J ) ) )
20 nn0cn 9124 . . . . . . . . . . . 12  |-  ( I  e.  NN0  ->  I  e.  CC )
2120adantr 274 . . . . . . . . . . 11  |-  ( ( I  e.  NN0  /\  I  <  N )  ->  I  e.  CC )
2221adantr 274 . . . . . . . . . 10  |-  ( ( ( I  e.  NN0  /\  I  <  N )  /\  ( J  e. 
NN0  /\  N  e.  NN  /\  J  <  N
) )  ->  I  e.  CC )
23 nn0cn 9124 . . . . . . . . . . . 12  |-  ( J  e.  NN0  ->  J  e.  CC )
24233ad2ant1 1008 . . . . . . . . . . 11  |-  ( ( J  e.  NN0  /\  N  e.  NN  /\  J  <  N )  ->  J  e.  CC )
2524adantl 275 . . . . . . . . . 10  |-  ( ( ( I  e.  NN0  /\  I  <  N )  /\  ( J  e. 
NN0  /\  N  e.  NN  /\  J  <  N
) )  ->  J  e.  CC )
26 nncn 8865 . . . . . . . . . . . 12  |-  ( N  e.  NN  ->  N  e.  CC )
27263ad2ant2 1009 . . . . . . . . . . 11  |-  ( ( J  e.  NN0  /\  N  e.  NN  /\  J  <  N )  ->  N  e.  CC )
2827adantl 275 . . . . . . . . . 10  |-  ( ( ( I  e.  NN0  /\  I  <  N )  /\  ( J  e. 
NN0  /\  N  e.  NN  /\  J  <  N
) )  ->  N  e.  CC )
2922, 25, 28subadd23d 8231 . . . . . . . . 9  |-  ( ( ( I  e.  NN0  /\  I  <  N )  /\  ( J  e. 
NN0  /\  N  e.  NN  /\  J  <  N
) )  ->  (
( I  -  J
)  +  N )  =  ( I  +  ( N  -  J
) ) )
3019, 29breqtrrd 4010 . . . . . . . 8  |-  ( ( ( I  e.  NN0  /\  I  <  N )  /\  ( J  e. 
NN0  /\  N  e.  NN  /\  J  <  N
) )  ->  0  <  ( ( I  -  J )  +  N
) )
3163ad2ant1 1008 . . . . . . . . . 10  |-  ( ( J  e.  NN0  /\  N  e.  NN  /\  J  <  N )  ->  J  e.  RR )
32 resubcl 8162 . . . . . . . . . 10  |-  ( ( I  e.  RR  /\  J  e.  RR )  ->  ( I  -  J
)  e.  RR )
334, 31, 32syl2an 287 . . . . . . . . 9  |-  ( ( ( I  e.  NN0  /\  I  <  N )  /\  ( J  e. 
NN0  /\  N  e.  NN  /\  J  <  N
) )  ->  (
I  -  J )  e.  RR )
3453ad2ant2 1009 . . . . . . . . . 10  |-  ( ( J  e.  NN0  /\  N  e.  NN  /\  J  <  N )  ->  N  e.  RR )
3534adantl 275 . . . . . . . . 9  |-  ( ( ( I  e.  NN0  /\  I  <  N )  /\  ( J  e. 
NN0  /\  N  e.  NN  /\  J  <  N
) )  ->  N  e.  RR )
3633, 35possumd 8467 . . . . . . . 8  |-  ( ( ( I  e.  NN0  /\  I  <  N )  /\  ( J  e. 
NN0  /\  N  e.  NN  /\  J  <  N
) )  ->  (
0  <  ( (
I  -  J )  +  N )  <->  -u N  < 
( I  -  J
) ) )
3730, 36mpbid 146 . . . . . . 7  |-  ( ( ( I  e.  NN0  /\  I  <  N )  /\  ( J  e. 
NN0  /\  N  e.  NN  /\  J  <  N
) )  ->  -u N  <  ( I  -  J
) )
383adantr 274 . . . . . . . . . . . 12  |-  ( ( I  e.  NN0  /\  ( J  e.  NN0  /\  N  e.  NN  /\  J  <  N ) )  ->  I  e.  RR )
3934adantl 275 . . . . . . . . . . . 12  |-  ( ( I  e.  NN0  /\  ( J  e.  NN0  /\  N  e.  NN  /\  J  <  N ) )  ->  N  e.  RR )
40 readdcl 7879 . . . . . . . . . . . . . . 15  |-  ( ( J  e.  RR  /\  N  e.  RR )  ->  ( J  +  N
)  e.  RR )
416, 5, 40syl2an 287 . . . . . . . . . . . . . 14  |-  ( ( J  e.  NN0  /\  N  e.  NN )  ->  ( J  +  N
)  e.  RR )
42413adant3 1007 . . . . . . . . . . . . 13  |-  ( ( J  e.  NN0  /\  N  e.  NN  /\  J  <  N )  ->  ( J  +  N )  e.  RR )
4342adantl 275 . . . . . . . . . . . 12  |-  ( ( I  e.  NN0  /\  ( J  e.  NN0  /\  N  e.  NN  /\  J  <  N ) )  ->  ( J  +  N )  e.  RR )
4438, 39, 433jca 1167 . . . . . . . . . . 11  |-  ( ( I  e.  NN0  /\  ( J  e.  NN0  /\  N  e.  NN  /\  J  <  N ) )  ->  ( I  e.  RR  /\  N  e.  RR  /\  ( J  +  N )  e.  RR ) )
45 nn0ge0 9139 . . . . . . . . . . . . . 14  |-  ( J  e.  NN0  ->  0  <_  J )
46453ad2ant1 1008 . . . . . . . . . . . . 13  |-  ( ( J  e.  NN0  /\  N  e.  NN  /\  J  <  N )  ->  0  <_  J )
4746adantl 275 . . . . . . . . . . . 12  |-  ( ( I  e.  NN0  /\  ( J  e.  NN0  /\  N  e.  NN  /\  J  <  N ) )  ->  0  <_  J
)
485, 6anim12i 336 . . . . . . . . . . . . . . . 16  |-  ( ( N  e.  NN  /\  J  e.  NN0 )  -> 
( N  e.  RR  /\  J  e.  RR ) )
4948ancoms 266 . . . . . . . . . . . . . . 15  |-  ( ( J  e.  NN0  /\  N  e.  NN )  ->  ( N  e.  RR  /\  J  e.  RR ) )
50493adant3 1007 . . . . . . . . . . . . . 14  |-  ( ( J  e.  NN0  /\  N  e.  NN  /\  J  <  N )  ->  ( N  e.  RR  /\  J  e.  RR ) )
5150adantl 275 . . . . . . . . . . . . 13  |-  ( ( I  e.  NN0  /\  ( J  e.  NN0  /\  N  e.  NN  /\  J  <  N ) )  ->  ( N  e.  RR  /\  J  e.  RR ) )
52 addge02 8371 . . . . . . . . . . . . 13  |-  ( ( N  e.  RR  /\  J  e.  RR )  ->  ( 0  <_  J  <->  N  <_  ( J  +  N ) ) )
5351, 52syl 14 . . . . . . . . . . . 12  |-  ( ( I  e.  NN0  /\  ( J  e.  NN0  /\  N  e.  NN  /\  J  <  N ) )  ->  ( 0  <_  J 
<->  N  <_  ( J  +  N ) ) )
5447, 53mpbid 146 . . . . . . . . . . 11  |-  ( ( I  e.  NN0  /\  ( J  e.  NN0  /\  N  e.  NN  /\  J  <  N ) )  ->  N  <_  ( J  +  N )
)
5544, 54lelttrdi 8324 . . . . . . . . . 10  |-  ( ( I  e.  NN0  /\  ( J  e.  NN0  /\  N  e.  NN  /\  J  <  N ) )  ->  ( I  < 
N  ->  I  <  ( J  +  N ) ) )
5655impancom 258 . . . . . . . . 9  |-  ( ( I  e.  NN0  /\  I  <  N )  -> 
( ( J  e. 
NN0  /\  N  e.  NN  /\  J  <  N
)  ->  I  <  ( J  +  N ) ) )
5756imp 123 . . . . . . . 8  |-  ( ( ( I  e.  NN0  /\  I  <  N )  /\  ( J  e. 
NN0  /\  N  e.  NN  /\  J  <  N
) )  ->  I  <  ( J  +  N
) )
584adantr 274 . . . . . . . . 9  |-  ( ( ( I  e.  NN0  /\  I  <  N )  /\  ( J  e. 
NN0  /\  N  e.  NN  /\  J  <  N
) )  ->  I  e.  RR )
5931adantl 275 . . . . . . . . 9  |-  ( ( ( I  e.  NN0  /\  I  <  N )  /\  ( J  e. 
NN0  /\  N  e.  NN  /\  J  <  N
) )  ->  J  e.  RR )
6058, 59, 35ltsubadd2d 8441 . . . . . . . 8  |-  ( ( ( I  e.  NN0  /\  I  <  N )  /\  ( J  e. 
NN0  /\  N  e.  NN  /\  J  <  N
) )  ->  (
( I  -  J
)  <  N  <->  I  <  ( J  +  N ) ) )
6157, 60mpbird 166 . . . . . . 7  |-  ( ( ( I  e.  NN0  /\  I  <  N )  /\  ( J  e. 
NN0  /\  N  e.  NN  /\  J  <  N
) )  ->  (
I  -  J )  <  N )
6237, 61jca 304 . . . . . 6  |-  ( ( ( I  e.  NN0  /\  I  <  N )  /\  ( J  e. 
NN0  /\  N  e.  NN  /\  J  <  N
) )  ->  ( -u N  <  ( I  -  J )  /\  ( I  -  J
)  <  N )
)
6362ex 114 . . . . 5  |-  ( ( I  e.  NN0  /\  I  <  N )  -> 
( ( J  e. 
NN0  /\  N  e.  NN  /\  J  <  N
)  ->  ( -u N  <  ( I  -  J
)  /\  ( I  -  J )  <  N
) ) )
642, 63syl5bi 151 . . . 4  |-  ( ( I  e.  NN0  /\  I  <  N )  -> 
( J  e.  ( 0..^ N )  -> 
( -u N  <  (
I  -  J )  /\  ( I  -  J )  <  N
) ) )
65643adant2 1006 . . 3  |-  ( ( I  e.  NN0  /\  N  e.  NN  /\  I  <  N )  ->  ( J  e.  ( 0..^ N )  ->  ( -u N  <  ( I  -  J )  /\  ( I  -  J
)  <  N )
) )
661, 65sylbi 120 . 2  |-  ( I  e.  ( 0..^ N )  ->  ( J  e.  ( 0..^ N )  ->  ( -u N  <  ( I  -  J
)  /\  ( I  -  J )  <  N
) ) )
6766imp 123 1  |-  ( ( I  e.  ( 0..^ N )  /\  J  e.  ( 0..^ N ) )  ->  ( -u N  <  ( I  -  J
)  /\  ( I  -  J )  <  N
) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 103    <-> wb 104    /\ w3a 968    e. wcel 2136   class class class wbr 3982  (class class class)co 5842   CCcc 7751   RRcr 7752   0cc0 7753    + caddc 7756    < clt 7933    <_ cle 7934    - cmin 8069   -ucneg 8070   NNcn 8857   NN0cn0 9114  ..^cfzo 10077
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-sep 4100  ax-pow 4153  ax-pr 4187  ax-un 4411  ax-setind 4514  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-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-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-id 4271  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-fv 5196  df-riota 5798  df-ov 5845  df-oprab 5846  df-mpo 5847  df-1st 6108  df-2nd 6109  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  df-fzo 10078
This theorem is referenced by:  addmodlteq  10333
  Copyright terms: Public domain W3C validator