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] - feat: Add a DecidableEq instance for Polynomial #5942

Closed
wants to merge 11 commits into from

Conversation

AntoineChambert-Loir
Copy link
Collaborator

@AntoineChambert-Loir AntoineChambert-Loir commented Jul 16, 2023

Add a DecidableEq instance for Polynomial (in the presence of DecidableEq for coefficients).

This instance is the companion of an analogue instance for MvPolynomial, and it allows to use if… then… else for Polynomial without having to open Classical.

This also makes Polynomial.instNormalizationMonoid computable, by defining it in terms of this new instance.


Open in Gitpod

@AntoineChambert-Loir AntoineChambert-Loir added the WIP Work in progress label Jul 16, 2023
@AntoineChambert-Loir
Copy link
Collaborator Author

(mathlib does not compile anymore, because at some point, it needs to equate this axiom with the classically added one…)

@AntoineChambert-Loir AntoineChambert-Loir added awaiting-review The author would like community review of the PR and removed WIP Work in progress labels Jul 23, 2023
@Ruben-VandeVelde Ruben-VandeVelde changed the title feat(Data.Polynomial.Basic) : add decidable inst. feat: Add a DecidableEq instance for Polynomial Jul 23, 2023
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. label Aug 2, 2023
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. label Aug 2, 2023
@semorrison semorrison added the t-algebra Algebra (groups, rings, fields etc) label Aug 6, 2023
@eric-wieser
Copy link
Member

No one replied to

Is anyone opposed to me merging the titular PR based on these messages? it solves a concrete painpoint, and the fallout (aside from forcing us to have this discussion again) is pretty small? I'll merge in 48 hours if no one expresses any opinions.

on Zulip, so

bors merge

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review The author would like community review of the PR labels Aug 10, 2023
bors bot pushed a commit that referenced this pull request Aug 10, 2023
Add a `DecidableEq` instance for `Polynomial` (in the presence of `DecidableEq` for coefficients).

This instance is the companion of an analogue instance for `MvPolynomial`, and it allows to use if… then… else for `Polynomial` without having to `open Classical`.

This also makes `Polynomial.instNormalizationMonoid` computable, by defining it in terms of this new instance.



Co-authored-by: Antoine Chambert-Loir <antoine.chambert-loir@math.univ-paris-diderot.fr>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
@bors
Copy link

bors bot commented Aug 10, 2023

Pull request successfully merged into master.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title feat: Add a DecidableEq instance for Polynomial [Merged by Bors] - feat: Add a DecidableEq instance for Polynomial Aug 10, 2023
@bors bors bot closed this Aug 10, 2023
@bors bors bot deleted the Polynomial_DecEq branch August 10, 2023 23:22
semorrison pushed a commit that referenced this pull request Aug 14, 2023
Add a `DecidableEq` instance for `Polynomial` (in the presence of `DecidableEq` for coefficients).

This instance is the companion of an analogue instance for `MvPolynomial`, and it allows to use if… then… else for `Polynomial` without having to `open Classical`.

This also makes `Polynomial.instNormalizationMonoid` computable, by defining it in terms of this new instance.



Co-authored-by: Antoine Chambert-Loir <antoine.chambert-loir@math.univ-paris-diderot.fr>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
semorrison pushed a commit that referenced this pull request Aug 15, 2023
Add a `DecidableEq` instance for `Polynomial` (in the presence of `DecidableEq` for coefficients).

This instance is the companion of an analogue instance for `MvPolynomial`, and it allows to use if… then… else for `Polynomial` without having to `open Classical`.

This also makes `Polynomial.instNormalizationMonoid` computable, by defining it in terms of this new instance.



Co-authored-by: Antoine Chambert-Loir <antoine.chambert-loir@math.univ-paris-diderot.fr>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has been sent to bors. t-algebra Algebra (groups, rings, fields etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants