Skip to content
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

Closed
wants to merge 3 commits into from

Conversation

eric-wieser
Copy link
Member

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.


@jcommelin
Copy link
Member

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 😉
But I'm still not sure if this is a good idea. @ChrisHughes24 @kckennylau what do you think?

@eric-wieser
Copy link
Member Author

I agree, but I figured those arguments apply to semiring.to_semimodule too, and it seems that we ended up with that as an instance.

@jcommelin
Copy link
Member

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.

@eric-wieser
Copy link
Member Author

eric-wieser commented Feb 17, 2021

I'm not aware of other ways to turn a ring into a module over itself that are common in maths.

Sorry - my point was about ways to turn a ring into a mul_action over itself (not a semimodule), and semiring.to_semimodule provides that transitively. If R is a field, then both the "multiply" and "conjugation" actions would be a valid instance.

@Vierkantor
Copy link
Collaborator

@jcommelin
Copy link
Member

Thanks 🎉

bors merge

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels Mar 1, 2021
bors bot pushed a commit that referenced this pull request Mar 1, 2021
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`.
@bors
Copy link

bors bot commented Mar 1, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title fix(group_action/defs): make mul_action.regular an instance [Merged by Bors] - fix(group_action/defs): make mul_action.regular an instance Mar 1, 2021
@bors bors bot closed this Mar 1, 2021
@bors bors bot deleted the eric-wieser/mul_action.regular branch March 1, 2021 13:23
b-mehta pushed a commit that referenced this pull request Apr 2, 2021
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`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants