Metamath Proof Explorer


Theorem ltsubnn0

Description: Subtracting a nonnegative integer from a nonnegative integer which is greater than the first one results in a nonnegative integer. (Contributed by Alexander van der Vekens, 6-Apr-2018)

Ref Expression
Assertion ltsubnn0 ⊢ A ∈ ℕ 0 ∧ B ∈ ℕ 0 → B < A → A − B ∈ ℕ 0

Proof

Step Hyp Ref Expression
1 nn0re ⊢ B ∈ ℕ 0 → B ∈ ℝ
2 nn0re ⊢ A ∈ ℕ 0 → A ∈ ℝ
3 ltle ⊢ B ∈ ℝ ∧ A ∈ ℝ → B < A → B ≤ A
4 1 2 3 syl2anr ⊢ A ∈ ℕ 0 ∧ B ∈ ℕ 0 → B < A → B ≤ A
5 nn0sub ⊢ B ∈ ℕ 0 ∧ A ∈ ℕ 0 → B ≤ A ↔ A − B ∈ ℕ 0
6 5 ancoms ⊢ A ∈ ℕ 0 ∧ B ∈ ℕ 0 → B ≤ A ↔ A − B ∈ ℕ 0
7 4 6 sylibd ⊢ A ∈ ℕ 0 ∧ B ∈ ℕ 0 → B < A → A − B ∈ ℕ 0