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

Theorem maxleim 10091
Description: Value of maximum when we know which number is larger. (Contributed by Jim Kingdon, 21-Dec-2021.)
Assertion
Ref Expression
maxleim  |-  ( ( A  e.  RR  /\  B  e.  RR )  ->  ( A  <_  B  ->  sup ( { A ,  B } ,  RR ,  <  )  =  B ) )

Proof of Theorem maxleim
Dummy variables  f  g  y are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 lttri3 7191 . . . 4  |-  ( ( f  e.  RR  /\  g  e.  RR )  ->  ( f  =  g  <-> 
( -.  f  < 
g  /\  -.  g  <  f ) ) )
21adantl 271 . . 3  |-  ( ( ( ( A  e.  RR  /\  B  e.  RR )  /\  A  <_  B )  /\  (
f  e.  RR  /\  g  e.  RR )
)  ->  ( f  =  g  <->  ( -.  f  <  g  /\  -.  g  <  f ) ) )
3 simplr 496 . . 3  |-  ( ( ( A  e.  RR  /\  B  e.  RR )  /\  A  <_  B
)  ->  B  e.  RR )
4 prid2g 3497 . . . 4  |-  ( B  e.  RR  ->  B  e.  { A ,  B } )
53, 4syl 14 . . 3  |-  ( ( ( A  e.  RR  /\  B  e.  RR )  /\  A  <_  B
)  ->  B  e.  { A ,  B }
)
6 simpll 495 . . . . . . 7  |-  ( ( ( A  e.  RR  /\  B  e.  RR )  /\  A  <_  B
)  ->  A  e.  RR )
76ad2antrr 471 . . . . . 6  |-  ( ( ( ( ( A  e.  RR  /\  B  e.  RR )  /\  A  <_  B )  /\  y  e.  { A ,  B } )  /\  y  =  A )  ->  A  e.  RR )
83ad2antrr 471 . . . . . 6  |-  ( ( ( ( ( A  e.  RR  /\  B  e.  RR )  /\  A  <_  B )  /\  y  e.  { A ,  B } )  /\  y  =  A )  ->  B  e.  RR )
9 simpllr 500 . . . . . 6  |-  ( ( ( ( ( A  e.  RR  /\  B  e.  RR )  /\  A  <_  B )  /\  y  e.  { A ,  B } )  /\  y  =  A )  ->  A  <_  B )
107, 8, 9lensymd 7231 . . . . 5  |-  ( ( ( ( ( A  e.  RR  /\  B  e.  RR )  /\  A  <_  B )  /\  y  e.  { A ,  B } )  /\  y  =  A )  ->  -.  B  <  A )
11 breq2 3789 . . . . . . 7  |-  ( y  =  A  ->  ( B  <  y  <->  B  <  A ) )
1211notbid 624 . . . . . 6  |-  ( y  =  A  ->  ( -.  B  <  y  <->  -.  B  <  A ) )
1312adantl 271 . . . . 5  |-  ( ( ( ( ( A  e.  RR  /\  B  e.  RR )  /\  A  <_  B )  /\  y  e.  { A ,  B } )  /\  y  =  A )  ->  ( -.  B  <  y  <->  -.  B  <  A ) )
1410, 13mpbird 165 . . . 4  |-  ( ( ( ( ( A  e.  RR  /\  B  e.  RR )  /\  A  <_  B )  /\  y  e.  { A ,  B } )  /\  y  =  A )  ->  -.  B  <  y )
153ad2antrr 471 . . . . . 6  |-  ( ( ( ( ( A  e.  RR  /\  B  e.  RR )  /\  A  <_  B )  /\  y  e.  { A ,  B } )  /\  y  =  B )  ->  B  e.  RR )
1615ltnrd 7222 . . . . 5  |-  ( ( ( ( ( A  e.  RR  /\  B  e.  RR )  /\  A  <_  B )  /\  y  e.  { A ,  B } )  /\  y  =  B )  ->  -.  B  <  B )
17 breq2 3789 . . . . . . 7  |-  ( y  =  B  ->  ( B  <  y  <->  B  <  B ) )
1817notbid 624 . . . . . 6  |-  ( y  =  B  ->  ( -.  B  <  y  <->  -.  B  <  B ) )
1918adantl 271 . . . . 5  |-  ( ( ( ( ( A  e.  RR  /\  B  e.  RR )  /\  A  <_  B )  /\  y  e.  { A ,  B } )  /\  y  =  B )  ->  ( -.  B  <  y  <->  -.  B  <  B ) )
2016, 19mpbird 165 . . . 4  |-  ( ( ( ( ( A  e.  RR  /\  B  e.  RR )  /\  A  <_  B )  /\  y  e.  { A ,  B } )  /\  y  =  B )  ->  -.  B  <  y )
21 elpri 3421 . . . . 5  |-  ( y  e.  { A ,  B }  ->  ( y  =  A  \/  y  =  B ) )
2221adantl 271 . . . 4  |-  ( ( ( ( A  e.  RR  /\  B  e.  RR )  /\  A  <_  B )  /\  y  e.  { A ,  B } )  ->  (
y  =  A  \/  y  =  B )
)
2314, 20, 22mpjaodan 744 . . 3  |-  ( ( ( ( A  e.  RR  /\  B  e.  RR )  /\  A  <_  B )  /\  y  e.  { A ,  B } )  ->  -.  B  <  y )
242, 3, 5, 23supmaxti 6417 . 2  |-  ( ( ( A  e.  RR  /\  B  e.  RR )  /\  A  <_  B
)  ->  sup ( { A ,  B } ,  RR ,  <  )  =  B )
2524ex 113 1  |-  ( ( A  e.  RR  /\  B  e.  RR )  ->  ( A  <_  B  ->  sup ( { A ,  B } ,  RR ,  <  )  =  B ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    /\ wa 102    <-> wb 103    \/ wo 661    = wceq 1284    e. wcel 1433   {cpr 3399   class class class wbr 3785   supcsup 6395   RRcr 6980    < clt 7153    <_ cle 7154
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 104  ax-ia2 105  ax-ia3 106  ax-in1 576  ax-in2 577  ax-io 662  ax-5 1376  ax-7 1377  ax-gen 1378  ax-ie1 1422  ax-ie2 1423  ax-8 1435  ax-10 1436  ax-11 1437  ax-i12 1438  ax-bndl 1439  ax-4 1440  ax-13 1444  ax-14 1445  ax-17 1459  ax-i9 1463  ax-ial 1467  ax-i5r 1468  ax-ext 2063  ax-sep 3896  ax-pow 3948  ax-pr 3964  ax-un 4188  ax-setind 4280  ax-cnex 7067  ax-resscn 7068  ax-pre-ltirr 7088  ax-pre-apti 7091
This theorem depends on definitions:  df-bi 115  df-3an 921  df-tru 1287  df-fal 1290  df-nf 1390  df-sb 1686  df-eu 1944  df-mo 1945  df-clab 2068  df-cleq 2074  df-clel 2077  df-nfc 2208  df-ne 2246  df-nel 2340  df-ral 2353  df-rex 2354  df-reu 2355  df-rmo 2356  df-rab 2357  df-v 2603  df-sbc 2816  df-dif 2975  df-un 2977  df-in 2979  df-ss 2986  df-pw 3384  df-sn 3404  df-pr 3405  df-op 3407  df-uni 3602  df-br 3786  df-opab 3840  df-xp 4369  df-cnv 4371  df-iota 4887  df-riota 5488  df-sup 6397  df-pnf 7155  df-mnf 7156  df-xr 7157  df-ltxr 7158  df-le 7159
This theorem is referenced by:  maxleb  10102
  Copyright terms: Public domain W3C validator