MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  tsrlemax Structured version   Unicode version

Theorem tsrlemax 15707
Description: Two ways of saying a number is less than or equal to the maximum of two others. (Contributed by Mario Carneiro, 9-Sep-2015.)
Hypothesis
Ref Expression
istsr.1  |-  X  =  dom  R
Assertion
Ref Expression
tsrlemax  |-  ( ( R  e.  TosetRel  /\  ( A  e.  X  /\  B  e.  X  /\  C  e.  X )
)  ->  ( A R if ( B R C ,  C ,  B )  <->  ( A R B  \/  A R C ) ) )

Proof of Theorem tsrlemax
StepHypRef Expression
1 breq2 4451 . . 3  |-  ( C  =  if ( B R C ,  C ,  B )  ->  ( A R C  <->  A R if ( B R C ,  C ,  B
) ) )
21bibi1d 319 . 2  |-  ( C  =  if ( B R C ,  C ,  B )  ->  (
( A R C  <-> 
( A R B  \/  A R C ) )  <->  ( A R if ( B R C ,  C ,  B )  <->  ( A R B  \/  A R C ) ) ) )
3 breq2 4451 . . 3  |-  ( B  =  if ( B R C ,  C ,  B )  ->  ( A R B  <->  A R if ( B R C ,  C ,  B
) ) )
43bibi1d 319 . 2  |-  ( B  =  if ( B R C ,  C ,  B )  ->  (
( A R B  <-> 
( A R B  \/  A R C ) )  <->  ( A R if ( B R C ,  C ,  B )  <->  ( A R B  \/  A R C ) ) ) )
5 olc 384 . . 3  |-  ( A R C  ->  ( A R B  \/  A R C ) )
6 eqid 2467 . . . . . . . . . 10  |-  dom  R  =  dom  R
76istsr 15704 . . . . . . . . 9  |-  ( R  e.  TosetRel 
<->  ( R  e.  PosetRel  /\  ( dom  R  X.  dom  R )  C_  ( R  u.  `' R ) ) )
87simplbi 460 . . . . . . . 8  |-  ( R  e.  TosetRel  ->  R  e.  PosetRel )
9 pstr 15698 . . . . . . . . 9  |-  ( ( R  e.  PosetRel  /\  A R B  /\  B R C )  ->  A R C )
1093expib 1199 . . . . . . . 8  |-  ( R  e.  PosetRel  ->  ( ( A R B  /\  B R C )  ->  A R C ) )
118, 10syl 16 . . . . . . 7  |-  ( R  e.  TosetRel  ->  ( ( A R B  /\  B R C )  ->  A R C ) )
1211adantr 465 . . . . . 6  |-  ( ( R  e.  TosetRel  /\  ( A  e.  X  /\  B  e.  X  /\  C  e.  X )
)  ->  ( ( A R B  /\  B R C )  ->  A R C ) )
1312expdimp 437 . . . . 5  |-  ( ( ( R  e.  TosetRel  /\  ( A  e.  X  /\  B  e.  X  /\  C  e.  X
) )  /\  A R B )  ->  ( B R C  ->  A R C ) )
1413impancom 440 . . . 4  |-  ( ( ( R  e.  TosetRel  /\  ( A  e.  X  /\  B  e.  X  /\  C  e.  X
) )  /\  B R C )  ->  ( A R B  ->  A R C ) )
15 idd 24 . . . 4  |-  ( ( ( R  e.  TosetRel  /\  ( A  e.  X  /\  B  e.  X  /\  C  e.  X
) )  /\  B R C )  ->  ( A R C  ->  A R C ) )
1614, 15jaod 380 . . 3  |-  ( ( ( R  e.  TosetRel  /\  ( A  e.  X  /\  B  e.  X  /\  C  e.  X
) )  /\  B R C )  ->  (
( A R B  \/  A R C )  ->  A R C ) )
175, 16impbid2 204 . 2  |-  ( ( ( R  e.  TosetRel  /\  ( A  e.  X  /\  B  e.  X  /\  C  e.  X
) )  /\  B R C )  ->  ( A R C  <->  ( A R B  \/  A R C ) ) )
18 orc 385 . . 3  |-  ( A R B  ->  ( A R B  \/  A R C ) )
19 idd 24 . . . 4  |-  ( ( ( R  e.  TosetRel  /\  ( A  e.  X  /\  B  e.  X  /\  C  e.  X
) )  /\  -.  B R C )  -> 
( A R B  ->  A R B ) )
20 istsr.1 . . . . . . . 8  |-  X  =  dom  R
2120tsrlin 15706 . . . . . . 7  |-  ( ( R  e.  TosetRel  /\  B  e.  X  /\  C  e.  X )  ->  ( B R C  \/  C R B ) )
22213adant3r1 1205 . . . . . 6  |-  ( ( R  e.  TosetRel  /\  ( A  e.  X  /\  B  e.  X  /\  C  e.  X )
)  ->  ( B R C  \/  C R B ) )
2322orcanai 911 . . . . 5  |-  ( ( ( R  e.  TosetRel  /\  ( A  e.  X  /\  B  e.  X  /\  C  e.  X
) )  /\  -.  B R C )  ->  C R B )
24 pstr 15698 . . . . . . . . . 10  |-  ( ( R  e.  PosetRel  /\  A R C  /\  C R B )  ->  A R B )
25243expib 1199 . . . . . . . . 9  |-  ( R  e.  PosetRel  ->  ( ( A R C  /\  C R B )  ->  A R B ) )
268, 25syl 16 . . . . . . . 8  |-  ( R  e.  TosetRel  ->  ( ( A R C  /\  C R B )  ->  A R B ) )
2726adantr 465 . . . . . . 7  |-  ( ( R  e.  TosetRel  /\  ( A  e.  X  /\  B  e.  X  /\  C  e.  X )
)  ->  ( ( A R C  /\  C R B )  ->  A R B ) )
2827expdimp 437 . . . . . 6  |-  ( ( ( R  e.  TosetRel  /\  ( A  e.  X  /\  B  e.  X  /\  C  e.  X
) )  /\  A R C )  ->  ( C R B  ->  A R B ) )
2928impancom 440 . . . . 5  |-  ( ( ( R  e.  TosetRel  /\  ( A  e.  X  /\  B  e.  X  /\  C  e.  X
) )  /\  C R B )  ->  ( A R C  ->  A R B ) )
3023, 29syldan 470 . . . 4  |-  ( ( ( R  e.  TosetRel  /\  ( A  e.  X  /\  B  e.  X  /\  C  e.  X
) )  /\  -.  B R C )  -> 
( A R C  ->  A R B ) )
3119, 30jaod 380 . . 3  |-  ( ( ( R  e.  TosetRel  /\  ( A  e.  X  /\  B  e.  X  /\  C  e.  X
) )  /\  -.  B R C )  -> 
( ( A R B  \/  A R C )  ->  A R B ) )
3218, 31impbid2 204 . 2  |-  ( ( ( R  e.  TosetRel  /\  ( A  e.  X  /\  B  e.  X  /\  C  e.  X
) )  /\  -.  B R C )  -> 
( A R B  <-> 
( A R B  \/  A R C ) ) )
332, 4, 17, 32ifbothda 3974 1  |-  ( ( R  e.  TosetRel  /\  ( A  e.  X  /\  B  e.  X  /\  C  e.  X )
)  ->  ( A R if ( B R C ,  C ,  B )  <->  ( A R B  \/  A R C ) ) )
Colors of variables: wff setvar class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 184    \/ wo 368    /\ wa 369    /\ w3a 973    = wceq 1379    e. wcel 1767    u. cun 3474    C_ wss 3476   ifcif 3939   class class class wbr 4447    X. cxp 4997   `'ccnv 4998   dom cdm 4999   PosetRelcps 15685    TosetRel ctsr 15686
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1601  ax-4 1612  ax-5 1680  ax-6 1719  ax-7 1739  ax-9 1771  ax-10 1786  ax-11 1791  ax-12 1803  ax-13 1968  ax-ext 2445  ax-sep 4568  ax-nul 4576  ax-pr 4686
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3an 975  df-tru 1382  df-ex 1597  df-nf 1600  df-sb 1712  df-eu 2279  df-mo 2280  df-clab 2453  df-cleq 2459  df-clel 2462  df-nfc 2617  df-ne 2664  df-ral 2819  df-rex 2820  df-rab 2823  df-v 3115  df-dif 3479  df-un 3481  df-in 3483  df-ss 3490  df-nul 3786  df-if 3940  df-sn 4028  df-pr 4030  df-op 4034  df-uni 4246  df-br 4448  df-opab 4506  df-id 4795  df-xp 5005  df-rel 5006  df-cnv 5007  df-co 5008  df-dm 5009  df-res 5011  df-ps 15687  df-tsr 15688
This theorem is referenced by:  ordtbaslem  19483
  Copyright terms: Public domain W3C validator