-
Notifications
You must be signed in to change notification settings - Fork 299
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] - feat(algebra/*/basic): add trivial lemmas #13416
Conversation
@@ -855,6 +860,11 @@ protected def function.surjective.non_assoc_ring | |||
{ .. hf.add_comm_group f zero add neg sub nsmul gsmul, .. hf.mul_zero_class f zero mul, | |||
.. hf.distrib f add mul, .. hf.mul_one_class f one mul } | |||
|
|||
lemma sub_one_mul (a b : α) : (a - 1) * b = a * b - b := |
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.
Probably worth having one_sub_mul
too
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.
should I go full ham and go for one_add_mul
as well? or is that too much
Thanks! bors d+ |
✌️ ericrbg can now approve this pull request. To approve and merge a pull request, simply reply with |
bors r+ |
These save you from having to fiddle with `mul_one` when you want to rewrite them the other way, or allow easier commutativity rewrites. Co-authored-by: Eric Rodriguez <37984851+ericrbg@users.noreply.github.com>
Pull request successfully merged into master. Build succeeded: |
These save you from having to fiddle with
mul_one
when you want to rewrite them the other way, or allow easier commutativity rewrites.