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] - chore(ring_theory/ideal/basic): Make an argument to mul_mem_{left,right} explicit #5611

Closed
wants to merge 8 commits into from

Conversation

eric-wieser
Copy link
Member

@eric-wieser eric-wieser commented Jan 4, 2021

Before this change, the lemmas with result a * b ∈ I did not have enough explicit arguments to determine both a and b, such as I.mul_mem_left hb.

This resulted in callers using show, @, or sometimes ignoring the API and using smul_mem which does have appropriate argument explicitness. These callers have been cleaned up accordingly.


These arguments cannot be inferred from any of the other arguments, so it seems ssensible they should be implicit.
This allows many uses of `smul_mem` to be replaced with `mul_mem_left`, which is syntactically more convenient as it does not introduce an smul.
This also removes the need for some type annotations.
@eric-wieser eric-wieser added the awaiting-review The author would like community review of the PR label Jan 4, 2021
Copy link
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for doing this! 🎉

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 Jan 6, 2021
bors bot pushed a commit that referenced this pull request Jan 6, 2021
…ht} explicit (#5611)

Before this change, the lemmas with result `a * b ∈ I` did not have enough explicit arguments to determine both `a` and `b`, such as `I.mul_mem_left hb`.

This resulted in callers using `show`, `@`, or sometimes ignoring the API and using `smul_mem` which does have appropriate argument explicitness. These callers have been cleaned up accordingly.
@bors
Copy link

bors bot commented Jan 6, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title chore(ring_theory/ideal/basic): Make an argument to mul_mem_{left,right} explicit [Merged by Bors] - chore(ring_theory/ideal/basic): Make an argument to mul_mem_{left,right} explicit Jan 6, 2021
@bors bors bot closed this Jan 6, 2021
@bors bors bot deleted the eric-wieser/ideal-implicit branch January 6, 2021 18:41
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

2 participants