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/Group): change simp lemmas #7867
Conversation
negiizhao
commented
Oct 23, 2023
!bench |
Here are the benchmark results for commit c95afd7. |
!bench |
Here are the benchmark results for commit 01e08d8. Benchmark Metric Change
================================================================================
+ ~Mathlib.RepresentationTheory.GroupCohomology.Resolution instructions -1.4% |
@[simp] | ||
theorem tsub_le_iff_right : a - b ≤ c ↔ a ≤ c + b := | ||
theorem tsub_le_iff_right [LE α] [Add α] [Sub α] [OrderedSub α] {a b c : α} : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any actual reason to use [LE α]
here instead of [Preorder α]
? This seems like needless generalization. (I know it means we don't need the extra conditions, but I'm just wondering if we ever have an OrderedSub
instance where we don't have a Preorder
instance. It seems rather unlikely.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know but some lemmas in Algebra.Order.Group.Defs
use LE
. After using LE
here, simpNF
linter asks to delete some @[simp]
there.
I think this is fine, but I would like someone else to see it: maintainer merge |
🚀 Pull request has been placed on the maintainer queue by j-loreaux. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 🎉
bors merge
Pull request successfully merged into master. Build succeeded: |