We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Trying to add a Box record through Coq-Elpi fails if the field is a coercion. This issue is in the context of PR #400.
Box
From elpi Require Import elpi. Set Universe Polymorphism. Elpi Command x. Elpi Accumulate lp:{{ gen :- coq.univ.new U, coq.univ.variable U I, RDecl = record "Box" (sort (typ {coq.univ.super U})) "MkBox" ( field [coercion regular] "unbox" (sort (typ U)) (_\ end-record)), coq.say "RDecl =" RDecl, @udecl! [I] tt [] tt => coq.env.add-indt RDecl _. }}. Elpi Typecheck. Fail Elpi Query lp:{{ gen. }}. Record Box@{i} : Type@{i+1} := MkBox { unbox :> Type@{i} }.
Changing coercion regular to coercion off works, but coercion reversible fails too.
coercion regular
coercion off
coercion reversible
cc @CohenCyril
The text was updated successfully, but these errors were encountered:
Cc @gares
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Trying to add a
Box
record through Coq-Elpi fails if the field is a coercion. This issue is in the context of PR #400.Changing
coercion regular
tocoercion off
works, butcoercion reversible
fails too.cc @CohenCyril
The text was updated successfully, but these errors were encountered: