Metamath Proof Explorer


Theorem maxlt

Description: Two ways of saying the maximum of two numbers is less than a third. (Contributed by NM, 3-Aug-2007)

Ref Expression
Assertion maxlt
|- ( ( A e. RR /\ B e. RR /\ C e. RR ) -> ( if ( A <_ B , B , A ) < C <-> ( A < C /\ B < C ) ) )

Proof

Step Hyp Ref Expression
1 rexr
 |-  ( A e. RR -> A e. RR* )
2 rexr
 |-  ( B e. RR -> B e. RR* )
3 rexr
 |-  ( C e. RR -> C e. RR* )
4 xrmaxlt
 |-  ( ( A e. RR* /\ B e. RR* /\ C e. RR* ) -> ( if ( A <_ B , B , A ) < C <-> ( A < C /\ B < C ) ) )
5 1 2 3 4 syl3an
 |-  ( ( A e. RR /\ B e. RR /\ C e. RR ) -> ( if ( A <_ B , B , A ) < C <-> ( A < C /\ B < C ) ) )