Skip to content

Adapt to coq/coq#15789#1469

Merged
benediktahrens merged 5 commits intoUniMath:masterfrom
proux01:adapt_coq_15789
Mar 11, 2022
Merged

Adapt to coq/coq#15789#1469
benediktahrens merged 5 commits intoUniMath:masterfrom
proux01:adapt_coq_15789

Conversation

@proux01
Copy link
Copy Markdown
Contributor

@proux01 proux01 commented Mar 11, 2022

Adapt to rocq-prover/rocq#15789

The upstream PR generalizes coercions by removing the uniform inheritance conditions.
Unimath has ambiguous coercion paths that were inocuous before because some of them did not satisfy the uniform inheritance condition, hence were never applied. Now that they do, a few conflict appear. I make here a quick fix, It's probably possible to get a nicer fix, but not knowing the library, I'm unable to do it. Anyway, the change is backward compatible and appart a few more not nice looking lines, it doesn't change anything.

@benediktahrens
Copy link
Copy Markdown
Member

Dear @proux01 , thanks a lot for providing this fix.

It seems that the right course of action would be to

  1. merge your PR as is right now, to not impede on the merging and testing of the changes to Coq, and
  2. make a more readable modification to UniMath later, when UniMath will adopt the version of Coq with the relaxed coercion.

@proux01
Copy link
Copy Markdown
Contributor Author

proux01 commented Mar 11, 2022

Thanks @benediktahrens for your quick answer, that looks good to me.

Copy link
Copy Markdown
Member

@benediktahrens benediktahrens left a comment

Choose a reason for hiding this comment

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

I just suggest to add pointers to the PR (better: the issue about the PR) in the modified places.

@proux01
Copy link
Copy Markdown
Contributor Author

proux01 commented Mar 11, 2022

Thanks

@proux01
Copy link
Copy Markdown
Contributor Author

proux01 commented Mar 11, 2022

CI green

@benediktahrens benediktahrens merged commit 59a11fb into UniMath:master Mar 11, 2022
@proux01 proux01 deleted the adapt_coq_15789 branch March 11, 2022 16:22
@proux01
Copy link
Copy Markdown
Contributor Author

proux01 commented Mar 11, 2022

Thanks!

@benediktahrens
Copy link
Copy Markdown
Member

@proux01 : Thanks to you! We very much appreciate the efforts by you and the whole Coq Development Team to keep UniMath compatible with Coq.

Skantz pushed a commit to Skantz/UniMath that referenced this pull request Nov 12, 2022
Skantz pushed a commit to Skantz/UniMath that referenced this pull request Nov 12, 2022
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