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(data/polynomial/basic): remove monomial_fun to remove diamonds #15778

Closed
wants to merge 4 commits into from

Conversation

ericrbg
Copy link
Collaborator

@ericrbg ericrbg commented Jul 31, 2022

This was previously irreducible to prevent any finsupp/add_monoid_algebra leakage, but it causes a non-defeq diamond in instances.


Open in Gitpod

@ericrbg ericrbg added awaiting-review The author would like community review of the PR awaiting-CI The author would like to see what CI has to say before doing more work. labels Jul 31, 2022
@eric-wieser eric-wieser changed the title feat(data/polynomial/basic): make monomial_fun semirreducible fix(data/polynomial/basic): make monomial_fun semirreducible Jul 31, 2022
@ericrbg ericrbg changed the title fix(data/polynomial/basic): make monomial_fun semirreducible fix(data/polynomial/basic): remove monomial_fun to remove diamonds Jul 31, 2022
@eric-wieser
Copy link
Member

irreducible also caused a similar diamond that was fixed in #8392, for some context.

Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
@github-actions github-actions bot removed the awaiting-CI The author would like to see what CI has to say before doing more work. label Jul 31, 2022
Copy link
Collaborator

@Vierkantor Vierkantor left a comment

Choose a reason for hiding this comment

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

Already when monomial_fun was defined there was a conversation on the dangers of having these irreducible definitions. Since there seem to be no weird slowdowns by bad unfolds, this change seems like a strict improvement. So:

bors r+

@leanprover-community-bot-assistant leanprover-community-bot-assistant 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 Aug 1, 2022
bors bot pushed a commit that referenced this pull request Aug 1, 2022
…15778)

This was previously irreducible to prevent any `finsupp/add_monoid_algebra` leakage, but it causes a non-defeq diamond in instances.



Co-authored-by: Eric Rodriguez <37984851+ericrbg@users.noreply.github.com>
@bors
Copy link

bors bot commented Aug 1, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title fix(data/polynomial/basic): remove monomial_fun to remove diamonds [Merged by Bors] - fix(data/polynomial/basic): remove monomial_fun to remove diamonds Aug 1, 2022
@bors bors bot closed this Aug 1, 2022
@bors bors bot deleted the ericrbg/poly_diamond branch August 1, 2022 10:42
robertylewis pushed a commit that referenced this pull request Aug 2, 2022
…15778)

This was previously irreducible to prevent any `finsupp/add_monoid_algebra` leakage, but it causes a non-defeq diamond in instances.



Co-authored-by: Eric Rodriguez <37984851+ericrbg@users.noreply.github.com>
khwilson pushed a commit that referenced this pull request Aug 2, 2022
…15778)

This was previously irreducible to prevent any `finsupp/add_monoid_algebra` leakage, but it causes a non-defeq diamond in instances.



Co-authored-by: Eric Rodriguez <37984851+ericrbg@users.noreply.github.com>
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

4 participants