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