Skip to content

Commit

Permalink
chore(algebra/order/ring): add a few aliases (#11911)
Browse files Browse the repository at this point in the history
Add aliases `one_pos`, `two_pos`, `three_pos`, and `four_pos`.

We used to have (some of) these lemmas. They were removed during one of cleanups but it doesn't hurt to have aliases.
  • Loading branch information
urkud committed Feb 8, 2022
1 parent 85d9f21 commit b1269b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/algebra/order/ring.lean
Expand Up @@ -138,6 +138,11 @@ lemma zero_lt_three : 0 < (3:α) := add_pos zero_lt_two zero_lt_one

lemma zero_lt_four : 0 < (4:α) := add_pos zero_lt_two zero_lt_two

alias zero_lt_one ← one_pos
alias zero_lt_two ← two_pos
alias zero_lt_three ← three_pos
alias zero_lt_four ← four_pos

end nontrivial

lemma mul_lt_mul_of_pos_left (h₁ : a < b) (h₂ : 0 < c) : c * a < c * b :=
Expand Down
2 changes: 1 addition & 1 deletion src/data/list/basic.lean
Expand Up @@ -9,7 +9,7 @@ import data.nat.basic
# Basic properties of lists
-/

open function nat
open function nat (hiding one_pos)

namespace list
universes u v w x
Expand Down

0 comments on commit b1269b0

Please sign in to comment.