Metamath Proof Explorer


Theorem volicore

Description: The Lebesgue measure of a left-closed right-open interval is a real number. (Contributed by Glauco Siliprandi, 21-Nov-2020)

Ref Expression
Assertion volicore ⊢ A ∈ ℝ ∧ B ∈ ℝ → vol ⁡ A B ∈ ℝ

Proof

Step Hyp Ref Expression
1 volico ⊢ A ∈ ℝ ∧ B ∈ ℝ → vol ⁡ A B = if A < B B − A 0
2 simpr ⊢ A ∈ ℝ ∧ B ∈ ℝ → B ∈ ℝ
3 simpl ⊢ A ∈ ℝ ∧ B ∈ ℝ → A ∈ ℝ
4 2 3 resubcld ⊢ A ∈ ℝ ∧ B ∈ ℝ → B − A ∈ ℝ
5 0red ⊢ A ∈ ℝ ∧ B ∈ ℝ → 0 ∈ ℝ
6 4 5 ifcld ⊢ A ∈ ℝ ∧ B ∈ ℝ → if A < B B − A 0 ∈ ℝ
7 1 6 eqeltrd ⊢ A ∈ ℝ ∧ B ∈ ℝ → vol ⁡ A B ∈ ℝ