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

Fix #17852 (universe issue with reverse coercions) #17853

Merged
merged 1 commit into from
Jul 15, 2023

Conversation

proux01
Copy link
Contributor

@proux01 proux01 commented Jul 13, 2023

Fixes #17852

  • Added / updated test-suite.
  • Added changelog. (bug shouldn't appear in any released version)
  • Added / updated documentation.
    • Documented any new / changed user messages.
    • Updated documented syntax by running make doc_gram_rsts.
  • Opened overlay pull requests.

@coqbot-app coqbot-app bot added the needs: full CI The latest GitLab pipeline that ran was a light CI. Say "@coqbot run full ci" to get a full CI. label Jul 13, 2023
@proux01 proux01 added kind: fix This fixes a bug or incorrect documentation. part: coercions The coercion mechanism. part: universes The universe system. labels Jul 13, 2023
@proux01 proux01 force-pushed the fix_rev_coerce_univ branch 2 times, most recently from 543979a to 3201bd0 Compare July 13, 2023 17:31
@gares gares added this to the 8.18+rc1 milestone Jul 13, 2023
@gares
Copy link
Member

gares commented Jul 13, 2023

Dear @coq/universes-maintainers we would like to tag 8.18rc in 10 days. If you can review this bugfix by then I would be very happy.

Copy link
Contributor

@SkySkimmer SkySkimmer left a comment

Choose a reason for hiding this comment

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

Still fails on

Record type : Type := Pack { sort :> nat -> Type }.

Definition set := fun _ : nat => Set.

Canonical UnitProp := Pack set.

Check set : type.

you should use refresh_universes ~onlyalg:true ~status:Evd.univ_flexible (Some false) on the types not some adhoc if issort then new_type hack

@gares
Copy link
Member

gares commented Jul 13, 2023

Thanks both for acting quickly!

@proux01
Copy link
Contributor Author

proux01 commented Jul 14, 2023

Thanks @SkySkimmer it's indeed much better than my horrible hack.

@SkySkimmer SkySkimmer self-requested a review July 14, 2023 09:06
@SkySkimmer
Copy link
Contributor

You should undraft and run full ci if this is ready

@proux01 proux01 marked this pull request as ready for review July 14, 2023 09:18
@proux01 proux01 requested a review from a team as a code owner July 14, 2023 09:18
@proux01
Copy link
Contributor Author

proux01 commented Jul 14, 2023

@coqbot run full ci

@coqbot-app coqbot-app bot removed the needs: full CI The latest GitLab pipeline that ran was a light CI. Say "@coqbot run full ci" to get a full CI. label Jul 14, 2023
@SkySkimmer SkySkimmer self-assigned this Jul 14, 2023
@proux01
Copy link
Contributor Author

proux01 commented Jul 14, 2023

The windows failure seems unrelated, otherwise CI is green.

@gares
Copy link
Member

gares commented Jul 15, 2023

@coqbot merge now

@coqbot-app
Copy link
Contributor

coqbot-app bot commented Jul 15, 2023

@gares: You cannot merge this PR because:

  • You are not among the assignees.

@gares gares self-assigned this Jul 15, 2023
@gares
Copy link
Member

gares commented Jul 15, 2023

@coqbot merge now

@coqbot-app coqbot-app bot merged commit 9066520 into coq:master Jul 15, 2023
6 of 7 checks passed
@coqbot-app coqbot-app bot added this to Request 8.18+rc1 inclusion in Coq 8.18 Jul 15, 2023
@gares
Copy link
Member

gares commented Jul 15, 2023

It would be nice to revert the change to HB and confirm MCA has no problems

@proux01 proux01 deleted the fix_rev_coerce_univ branch July 15, 2023 15:47
gares added a commit to gares/coq that referenced this pull request Jul 24, 2023
@coqbot-app coqbot-app bot moved this from Request 8.18+rc1 inclusion to Shipped in 8.18+rc1 in Coq 8.18 Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: fix This fixes a bug or incorrect documentation. part: coercions The coercion mechanism. part: universes The universe system.
Projects
Coq 8.18
Shipped in 8.18+rc1
Development

Successfully merging this pull request may close these issues.

Universe issue with reverse coercions
3 participants