Metamath Proof Explorer


Theorem max1

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

Ref Expression
Assertion max1 ⊢ A ∈ ℝ ∧ B ∈ ℝ → A ≤ if A ≤ B B A

Proof

Step Hyp Ref Expression
1 rexr ⊢ A ∈ ℝ → A ∈ ℝ *
2 rexr ⊢ B ∈ ℝ → B ∈ ℝ *
3 xrmax1 ⊢ A ∈ ℝ * ∧ B ∈ ℝ * → A ≤ if A ≤ B B A
4 1 2 3 syl2an ⊢ A ∈ ℝ ∧ B ∈ ℝ → A ≤ if A ≤ B B A