-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Merged by Bors] - chore(Algebra/Order/GroupWithZero/Unbundled): resolving name inconsistencies #9904
Conversation
I appreciate the effort. However your new names seem unnecessarily long (I know it gives more consistency, but the length really is unwieldy). Here are some guidelines:
This makes your table look like this
There are still a few lines that are not great (eg |
Could you keep |
Thanks. This is now definitely an improvement. maintainer merge |
🚀 Pull request has been placed on the maintainer queue by YaelDillies. |
Thanks! bors merge |
…tencies (#9904) This PR allows the names to be clearly distinguished from versions that do not require positivity assumptions, but also become too long. Due to name conflicts, some similar lemmas have dissimilar names before this PR: ``` lean theorem mul_lt_mul_of_nonneg_of_pos [PosMulMono α] [MulPosStrictMono α] (h₁ : a < b) (h₂ : c ≤ d) (a0 : 0 ≤ a) (d0 : 0 < d) : a * c < b * d theorem mul_lt_mul_of_le_of_lt' [PosMulMono α] [MulPosStrictMono α] (h₁ : a < b) (h₂ : c ≤ d) (b0 : 0 ≤ b) (c0 : 0 < c) : a * c < b * d ``` | Statement | New name | Old name | | Co-authored-by: negiizhao <[email protected]> Co-authored-by: FR <[email protected]>
Pull request successfully merged into master. Build succeeded: |
This PR allows the names to be clearly distinguished from versions that do not require positivity assumptions, but also become too long.
Due to name conflicts, some similar lemmas have dissimilar names before this PR:
a * c ≤ b * d
mul_le_mul_of_nonneg
mul_le_mul_of_le_of_le
mul_le_mul_of_nonneg'
mul_le_mul
(still there)a * c < b * d
mul_lt_mul_of_le_of_lt_of_pos_of_nonneg
mul_lt_mul_of_pos_of_nonneg
(still there)mul_lt_mul_of_le_of_lt_of_nonneg_of_pos
/mul_lt_mul_of_nonneg_of_pos'
mul_lt_mul_of_le_of_le'
/mul_lt_mul'
(still there)mul_lt_mul_of_lt_of_le_of_nonneg_of_pos
mul_lt_mul_of_nonneg_of_pos
(still there)mul_lt_mul_of_lt_of_le_of_pos_of_nonneg
/mul_lt_mul_of_pos_of_nonneg'
mul_lt_mul_of_le_of_lt'
/mul_lt_mul
(still there)mul_lt_mul_of_pos
mul_lt_mul_of_pos_of_pos
mul_lt_mul_of_pos'
mul_lt_mul_of_lt_of_lt'
(Left.)mul_lt_mul_of_nonneg
mul_lt_mul''
(still there)Right.mul_lt_mul_of_nonneg
a * b < 0 → 0 ≤ b → a < 0
(Left.)neg_of_mul_neg_left
neg_of_mul_neg_left
/Left.neg_of_mul_neg_right
Right.neg_of_mul_neg_left
Right.neg_of_mul_neg_right
a * b < 0 → 0 ≤ a → b < 0
(Left.)neg_of_mul_neg_right
neg_of_mul_neg_right
/Left.neg_of_mul_neg_left
Right.neg_of_mul_neg_right
Right.neg_of_mul_neg_left
Lines 304 - 321 and 476 - 495 were just moved together.
Some variable names are changed to be consistent with the rest of the file.
If there is a better way to resolve name conflicts, please feel free to comment.
Split from #9249
Zulip