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

Theorem fztri3or 9948
Description: Trichotomy in terms of a finite interval of integers. (Contributed by Jim Kingdon, 1-Jun-2020.)
Assertion
Ref Expression
fztri3or  |-  ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  ->  ( K  <  M  \/  K  e.  ( M ... N
)  \/  N  < 
K ) )

Proof of Theorem fztri3or
StepHypRef Expression
1 3mix1 1151 . . 3  |-  ( K  <  M  ->  ( K  <  M  \/  K  e.  ( M ... N
)  \/  N  < 
K ) )
21adantl 275 . 2  |-  ( ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  K  <  M )  ->  ( K  < 
M  \/  K  e.  ( M ... N
)  \/  N  < 
K ) )
3 3mix3 1153 . . . 4  |-  ( N  <  K  ->  ( K  <  M  \/  K  e.  ( M ... N
)  \/  N  < 
K ) )
43adantl 275 . . 3  |-  ( ( ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  -.  K  <  M )  /\  N  <  K )  -> 
( K  <  M  \/  K  e.  ( M ... N )  \/  N  <  K ) )
5 simpr 109 . . . . . . 7  |-  ( ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  -.  K  <  M
)  ->  -.  K  <  M )
6 simpl2 986 . . . . . . . . 9  |-  ( ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  -.  K  <  M
)  ->  M  e.  ZZ )
76zred 9292 . . . . . . . 8  |-  ( ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  -.  K  <  M
)  ->  M  e.  RR )
8 simpl1 985 . . . . . . . . 9  |-  ( ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  -.  K  <  M
)  ->  K  e.  ZZ )
98zred 9292 . . . . . . . 8  |-  ( ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  -.  K  <  M
)  ->  K  e.  RR )
107, 9lenltd 7998 . . . . . . 7  |-  ( ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  -.  K  <  M
)  ->  ( M  <_  K  <->  -.  K  <  M ) )
115, 10mpbird 166 . . . . . 6  |-  ( ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  -.  K  <  M
)  ->  M  <_  K )
1211adantr 274 . . . . 5  |-  ( ( ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  -.  K  <  M )  /\  -.  N  <  K )  ->  M  <_  K
)
13 simpr 109 . . . . . 6  |-  ( ( ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  -.  K  <  M )  /\  -.  N  <  K )  ->  -.  N  <  K )
149adantr 274 . . . . . . 7  |-  ( ( ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  -.  K  <  M )  /\  -.  N  <  K )  ->  K  e.  RR )
15 simpll3 1023 . . . . . . . 8  |-  ( ( ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  -.  K  <  M )  /\  -.  N  <  K )  ->  N  e.  ZZ )
1615zred 9292 . . . . . . 7  |-  ( ( ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  -.  K  <  M )  /\  -.  N  <  K )  ->  N  e.  RR )
1714, 16lenltd 7998 . . . . . 6  |-  ( ( ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  -.  K  <  M )  /\  -.  N  <  K )  ->  ( K  <_  N 
<->  -.  N  <  K
) )
1813, 17mpbird 166 . . . . 5  |-  ( ( ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  -.  K  <  M )  /\  -.  N  <  K )  ->  K  <_  N
)
19 elfz 9925 . . . . . . 7  |-  ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  ->  ( K  e.  ( M ... N )  <->  ( M  <_  K  /\  K  <_  N ) ) )
2019adantr 274 . . . . . 6  |-  ( ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  -.  K  <  M
)  ->  ( K  e.  ( M ... N
)  <->  ( M  <_  K  /\  K  <_  N
) ) )
2120adantr 274 . . . . 5  |-  ( ( ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  -.  K  <  M )  /\  -.  N  <  K )  ->  ( K  e.  ( M ... N
)  <->  ( M  <_  K  /\  K  <_  N
) ) )
2212, 18, 21mpbir2and 929 . . . 4  |-  ( ( ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  -.  K  <  M )  /\  -.  N  <  K )  ->  K  e.  ( M ... N ) )
23223mix2d 1158 . . 3  |-  ( ( ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  -.  K  <  M )  /\  -.  N  <  K )  ->  ( K  < 
M  \/  K  e.  ( M ... N
)  \/  N  < 
K ) )
24 zdclt 9247 . . . . . . 7  |-  ( ( N  e.  ZZ  /\  K  e.  ZZ )  -> DECID  N  <  K )
2524ancoms 266 . . . . . 6  |-  ( ( K  e.  ZZ  /\  N  e.  ZZ )  -> DECID  N  <  K )
26253adant2 1001 . . . . 5  |-  ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  -> DECID  N  <  K )
2726adantr 274 . . . 4  |-  ( ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  -.  K  <  M
)  -> DECID  N  <  K )
28 df-dc 821 . . . 4  |-  (DECID  N  < 
K  <->  ( N  < 
K  \/  -.  N  <  K ) )
2927, 28sylib 121 . . 3  |-  ( ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  -.  K  <  M
)  ->  ( N  <  K  \/  -.  N  <  K ) )
304, 23, 29mpjaodan 788 . 2  |-  ( ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  -.  K  <  M
)  ->  ( K  <  M  \/  K  e.  ( M ... N
)  \/  N  < 
K ) )
31 zdclt 9247 . . . 4  |-  ( ( K  e.  ZZ  /\  M  e.  ZZ )  -> DECID  K  <  M )
32313adant3 1002 . . 3  |-  ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  -> DECID  K  <  M )
33 df-dc 821 . . 3  |-  (DECID  K  < 
M  <->  ( K  < 
M  \/  -.  K  <  M ) )
3432, 33sylib 121 . 2  |-  ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  ->  ( K  <  M  \/  -.  K  <  M ) )
352, 30, 34mpjaodan 788 1  |-  ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  ->  ( K  <  M  \/  K  e.  ( M ... N
)  \/  N  < 
K ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    /\ wa 103    <-> wb 104    \/ wo 698  DECID wdc 820    \/ w3o 962    /\ w3a 963    e. wcel 2128   class class class wbr 3967  (class class class)co 5827   RRcr 7734    < clt 7915    <_ cle 7916   ZZcz 9173   ...cfz 9919
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 1427  ax-7 1428  ax-gen 1429  ax-ie1 1473  ax-ie2 1474  ax-8 1484  ax-10 1485  ax-11 1486  ax-i12 1487  ax-bndl 1489  ax-4 1490  ax-17 1506  ax-i9 1510  ax-ial 1514  ax-i5r 1515  ax-13 2130  ax-14 2131  ax-ext 2139  ax-sep 4085  ax-pow 4138  ax-pr 4172  ax-un 4396  ax-setind 4499  ax-cnex 7826  ax-resscn 7827  ax-1cn 7828  ax-1re 7829  ax-icn 7830  ax-addcl 7831  ax-addrcl 7832  ax-mulcl 7833  ax-addcom 7835  ax-addass 7837  ax-distr 7839  ax-i2m1 7840  ax-0lt1 7841  ax-0id 7843  ax-rnegex 7844  ax-cnre 7846  ax-pre-ltirr 7847  ax-pre-ltwlin 7848  ax-pre-lttrn 7849  ax-pre-ltadd 7851
This theorem depends on definitions:  df-bi 116  df-dc 821  df-3or 964  df-3an 965  df-tru 1338  df-fal 1341  df-nf 1441  df-sb 1743  df-eu 2009  df-mo 2010  df-clab 2144  df-cleq 2150  df-clel 2153  df-nfc 2288  df-ne 2328  df-nel 2423  df-ral 2440  df-rex 2441  df-reu 2442  df-rab 2444  df-v 2714  df-sbc 2938  df-dif 3104  df-un 3106  df-in 3108  df-ss 3115  df-pw 3546  df-sn 3567  df-pr 3568  df-op 3570  df-uni 3775  df-int 3810  df-br 3968  df-opab 4029  df-id 4256  df-xp 4595  df-rel 4596  df-cnv 4597  df-co 4598  df-dm 4599  df-iota 5138  df-fun 5175  df-fv 5181  df-riota 5783  df-ov 5830  df-oprab 5831  df-mpo 5832  df-pnf 7917  df-mnf 7918  df-xr 7919  df-ltxr 7920  df-le 7921  df-sub 8053  df-neg 8054  df-inn 8840  df-n0 9097  df-z 9174  df-fz 9920
This theorem is referenced by:  fzdcel  9949  hashfiv01gt1  10668
  Copyright terms: Public domain W3C validator