Metamath Proof Explorer


Theorem max2

Description: A number is less than or equal to the maximum of it and another. (Contributed by NM, 3-Apr-2005)

Ref Expression
Assertion max2 A B B if A B B A

Proof

Step Hyp Ref Expression
1 rexr A A *
2 rexr B B *
3 xrmax2 A * B * B if A B B A
4 1 2 3 syl2an A B B if A B B A