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 when using CoInductive types #490

Open
euisuny opened this issue Apr 11, 2022 · 0 comments
Open

Anomaly when using CoInductive types #490

euisuny opened this issue Apr 11, 2022 · 0 comments

Comments

@euisuny
Copy link

euisuny commented Apr 11, 2022

Hello,

From Equations Require Import Equations.

CoInductive foo : Type := FOO1.

Equations ex (x: foo) : nat :=
  ex FOO1 := 2.
Error: Anomaly "Uncaught exception Not_found." Please report at http://coq.inria.fr/bugs/.

The above simple snippet throws an anomaly.
A normal Coq definition would work fine for the above example (as shown below), but it would be very nice if Equations had support for CoInductive types.

Definition ex (x: foo) : nat :=
  match x with FOO1 => 2 end.

Coq 8.14.1, coq-equations 1.3+8.14

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

No branches or pull requests

1 participant