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
I stumbled onto the following while attempting to port CoqEAL to param2:
From elpi Require Import elpi. Definition myType := Type. Variant indd : myType := Indd : indd. Definition myType_R u v := u -> v -> Type. (* the following works *) (* Inductive indd_R : myType_R indd indd := *) (* Indd_R : indd_R Indd Indd. *) Elpi Command foo. Elpi Accumulate " main _ :- std.assert-ok! (coq.typecheck-indt-decl (inductive ""indt_R"" tt (arity {{ myType_R indd indd }}) c1 \ [ constructor ""Indd_R"" (arity {{ lp:c1 Indd Indd }}) ])) ""error"". ". (* this fails *) Fail Elpi foo. (* but the following works *) Elpi Command bar. Elpi Accumulate " main _ :- std.assert-ok! (coq.typecheck-indt-decl (inductive ""indt_R"" tt (arity {{ indd -> indd -> Type }}) % same with this beta-reduced c1 \ [ constructor ""Indd_R"" (arity {{ lp:c1 Indd Indd }}) ])) ""error"". ". Elpi bar.
The text was updated successfully, but these errors were encountered:
The problem seems to be here:
coq-elpi/elpi/coq-lib.elpi
Lines 356 to 360 in c40e913
whd1
Sorry, something went wrong.
I mean, it is probably count-prods that should reduce.
count-prods
No branches or pull requests
I stumbled onto the following while attempting to port CoqEAL to param2:
The text was updated successfully, but these errors were encountered: