feat({library,hott}/init/nat): add sub_le_succ
This commit is contained in:
parent
3b010b8c92
commit
6b36076ab5
2 changed files with 2 additions and 0 deletions
|
@ -287,4 +287,5 @@ namespace nat
|
||||||
(le.refl a)
|
(le.refl a)
|
||||||
(λ b₁ ih, le.trans !pred_le ih)
|
(λ b₁ ih, le.trans !pred_le ih)
|
||||||
|
|
||||||
|
lemma sub_lt_succ (a b : ℕ) : a - b < succ a := lt_succ_of_le (sub_le a b)
|
||||||
end nat
|
end nat
|
||||||
|
|
|
@ -286,4 +286,5 @@ namespace nat
|
||||||
(le.refl a)
|
(le.refl a)
|
||||||
(λ b₁ ih, le.trans !pred_le ih)
|
(λ b₁ ih, le.trans !pred_le ih)
|
||||||
|
|
||||||
|
lemma sub_lt_succ (a b : ℕ) : a - b < succ a := lt_succ_of_le (sub_le a b)
|
||||||
end nat
|
end nat
|
||||||
|
|
Loading…
Reference in a new issue