-
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] - fix(group_action/defs): make mul_action.regular an instance #6241
Conversation
The reason this wasn't an instance, is that there are other natural actions that one might want to make into an instance locally, such as the conjugation action. Apparently your patch doesn't break mathlib, which surprises me a bit 😉 |
I agree, but I figured those arguments apply to |
No, I don't think those arguments apply to the semiring situation. I'm not aware of other ways to turn a ring into a module over itself that are common in maths. But groups acting on themselves in various ways are quite common. |
Sorry - my point was about ways to turn a ring into a |
I started a discussion on Zulip to get this PR going again: https://leanprover.zulipchat.com/#narrow/stream/144837-PR-reviews/topic/.236241.20make.20mul_action.2Eregular.20an.20instance |
Thanks 🎉 bors merge |
This is essentially already an instance via `semiring.to_semimodule.to_distrib_mul_action.to_mul_action`, but with an unecessary `semiring R` constraint. I can't remember the details, but I've run into multiple instance resolution issues in the past that were resolved with `local attribute [instance] mul_action.regular`. This also renames the instance to `monoid.to_mul_action` for consistency with `semiring.to_semimodule`.
Pull request successfully merged into master. Build succeeded: |
This is essentially already an instance via `semiring.to_semimodule.to_distrib_mul_action.to_mul_action`, but with an unecessary `semiring R` constraint. I can't remember the details, but I've run into multiple instance resolution issues in the past that were resolved with `local attribute [instance] mul_action.regular`. This also renames the instance to `monoid.to_mul_action` for consistency with `semiring.to_semimodule`.
This is essentially already an instance via
semiring.to_semimodule.to_distrib_mul_action.to_mul_action
, but with an unecessarysemiring R
constraint.I can't remember the details, but I've run into multiple instance resolution issues in the past that were resolved with
local attribute [instance] mul_action.regular
.This also renames the instance to
monoid.to_mul_action
for consistency withsemiring.to_semimodule
.