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

Anomaly with universes for reverse_coercion symbol #350

Draft
wants to merge 84 commits into
base: master
Choose a base branch
from

Conversation

CohenCyril
Copy link
Member

@CohenCyril CohenCyril commented Apr 18, 2023

Exhibiting an anomaly related to universe polymorphisms and reverse coercions (cf discussion from coq/coq#17484 (comment))

test with

nix-shell
make examples/cat/cat.vo

@gares @proux01

gares and others added 30 commits May 6, 2020 23:04
This reverts commit 31289c8.
# Conflicts:
#	coq-hierarchy-builder.opam
….7.0+elpi-1.12

Coq master+coq elpi 1.7.0+elpi 1.12
…96-show-all-names-about

Adapt to coq PR #14596 which let Arguments displaying all names in About/Print
# Conflicts:
#	tests/about.v.out
@CohenCyril CohenCyril changed the title Exhibiting an anomaly related to https://github.com/coq/coq/pull/17484#issuecomment-1503011209 Anomaly with universes for reverse_coercion symbol Apr 18, 2023
@CohenCyril CohenCyril marked this pull request as draft April 18, 2023 22:53
@proux01
Copy link
Contributor

proux01 commented Apr 19, 2023

@CohenCyril it might be the same issue as this (minimized) example: proux01@4491d95

@CohenCyril
Copy link
Member Author

CohenCyril commented Apr 19, 2023

@CohenCyril it might be the same issue as this (minimized) example: proux01@4491d95

I don't think so, because the error message is different:

Error: Anomaly "Unable to handle arbitrary u+k <= v constraints."
Please report at http://coq.inria.fr/bugs/.

but it could still be the same error in a different disguise.

I'll try to minimize later...

@gares
Copy link
Member

gares commented Apr 19, 2023

Do you get the anomaly while running HB, or it is plain Coq?
Coq's elaborator has some invariant that it won't generate such constraints...

@proux01
Copy link
Contributor

proux01 commented Apr 26, 2023

If I replace the failing line

HB.instance Definition _ (C : ConcretePreCat.type) := PreFunctor_IsFunctor.Build C U concrete (@concrete1 _) (@concrete_comp _).

with

Definition mixin (C : ConcretePreCat.type) := PreFunctor_IsFunctor.Build C U concrete (@concrete1 _) (@concrete_comp _).
HB.instance Definition _ (C : ConcretePreCat.type) := mixin C.

the error is on the first line, so in plain Coq but using a HB generated constant?

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.

None yet

6 participants