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

Derive EqDec fails in the HoTT version #389

Closed
co-dan opened this issue May 6, 2021 · 1 comment · Fixed by #405
Closed

Derive EqDec fails in the HoTT version #389

co-dan opened this issue May 6, 2021 · 1 comment · Fixed by #405

Comments

@co-dan
Copy link

co-dan commented May 6, 2021

I am using the newly released version for 8.13, and Derive EqDec fails for me on this example:

Require Import Equations.HoTT.All.

Inductive A : Type :=
| foo : A
| bar : A -> A -> A.

Derive NoConfusion for A.
Derive EqDec for A.

When I compile it from the command line (with -noinit and -indices-matter) I get the following error:

File "./test.v", line 8, characters 0-19:
Error:
The term "A_eqdec" has type "forall x y : A, dec_eq x y"
while it is expected to have type "EqDec A".

However, in coqtop the error message is less comprehensible:

Toplevel input, characters 0-19:
> Derive EqDec for A.
> ^^^^^^^^^^^^^^^^^^^
Error:
<in exception printer>:<original exception:Anomaly
                                           "Uncaught exception Not_found."
Please report at http://coq.inria.fr/bugs/.
@mattam82
Copy link
Owner

Thanks for the report! Probably a mismatch with the Prop setup that is easy to fix.

mattam82 added a commit that referenced this issue Jun 21, 2021
@mattam82 mattam82 mentioned this issue Jun 21, 2021
mattam82 added a commit that referenced this issue Jun 21, 2021
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 a pull request may close this issue.

2 participants