-
Notifications
You must be signed in to change notification settings - Fork 298
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/opposites): more scalar action instances #8672
Conversation
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.
bors d+
@@ -241,6 +241,12 @@ instance semiring.to_module [semiring R] : module R R := | |||
zero_smul := zero_mul, | |||
smul_zero := mul_zero } | |||
|
|||
@[priority 910] -- see Note [lower instance priority] |
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 motivation for this very specific value?
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've no idea, I just copied it from the analogous instance for left-multiplication.
✌️ eric-wieser can now approve this pull request. To approve and merge a pull request, simply reply with |
bors r+ |
This adds weaker and stronger versions of `monoid.to_opposite_mul_action` for `has_mul`, `monoid_with_zero`, and `semiring`. It also adds an `smul_comm_class` instance.
Pull request successfully merged into master. Build succeeded: |
This adds weaker and stronger versions of
monoid.to_opposite_mul_action
forhas_mul
,monoid_with_zero
, andsemiring
. It also adds ansmul_comm_class
instance.The motivation here was to help provide the instance in this Zulip thread