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

Adapt to https://github.com/math-comp/math-comp/pull/1046 #84

Merged
merged 1 commit into from
Nov 27, 2023
Merged

Conversation

proux01
Copy link
Collaborator

@proux01 proux01 commented Nov 27, 2023

@proux01 proux01 merged commit b50844a into master Nov 27, 2023
4 checks passed
@proux01 proux01 deleted the mc_1046 branch November 27, 2023 16:06
Comment on lines -121 to +125
HB.instance Definition _ (R : dvdRingType) := Ring_hasDiv.Build {poly R}
Definition poly_of (R : semiRingType) := {poly R}.

HB.instance Definition _ (R : dvdRingType) :=
GRing.IntegralDomain.on (poly_of R).
HB.instance Definition _ (R : dvdRingType) := Ring_hasDiv.Build (poly_of R)
Copy link
Collaborator

Choose a reason for hiding this comment

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

@proux01 I do not understand what happens here...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

IIRC, the dvdRing instance was created on poly_of (with phantom) so there was no instance on polynomial (without phantom). This was important because later in that polydvd.v file, another factory creates a conflicting instance of dvdRing on polynomial.
So I just reproduced the previous hack but, IMHO, the correct fix would be to integrate dvdRing in between unitRing and Field in ssralg.v.

@proux01 proux01 changed the title Adapt to https://github.com/coq/coq/pull/18349 Adapt to https://github.com/math-comp/math-comp/pull/1046 Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants