Metamath Proof Explorer


Theorem xrmaxeq

Description: The maximum of two extended reals is equal to the first if the first is bigger. (Contributed by Mario Carneiro, 25-Mar-2015)

Ref Expression
Assertion xrmaxeq A * B * B A if A B B A = A

Proof

Step Hyp Ref Expression
1 xrletri3 B * A * B = A B A A B
2 1 ancoms A * B * B = A B A A B
3 2 biimpar A * B * B A A B B = A
4 3 anassrs A * B * B A A B B = A
5 4 ifeq1da A * B * B A if A B B A = if A B A A
6 5 3impa A * B * B A if A B B A = if A B A A
7 ifid if A B A A = A
8 6 7 eqtrdi A * B * B A if A B B A = A