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

Guard failure at Qed time crashes the server #736

Open
YaZko opened this issue Feb 18, 2024 · 0 comments
Open

Guard failure at Qed time crashes the server #736

YaZko opened this issue Feb 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@YaZko
Copy link

YaZko commented Feb 18, 2024

It seems like the Guarded command is properly handled. Trying to Defined an ill-guarded interactive cofix is properly rejected, with the right error message. But for some reason trying to Qed an ill-guarded interactive cofix seems to crash the whole server.

See the following self-contained example, on 2.1.0+coq8.19:

Set Primitive Projections.

CoInductive t : Set := mk { pred : option t }.

CoInductive equal : t -> t -> Prop  :=
| equal_zero : equal (mk None) (mk None)
| equal_succ x y : equal x y -> equal (mk (Some x)) (mk (Some y)).

Lemma equal_refl : forall x, equal x x.
Proof.
	cofix cih.
	intros x.
	destruct (pred x) as [x' | ] eqn:eq; auto.
	(* correct error reported *)
	Guarded.
	(* correct error reported *)
	Defined.
	(* But switching to Qed. crashes everything instead of reporting the error *)

It crashes with the attached trace on my machine.
trace.json

Best,
Yannick

@rtetley rtetley added the bug Something isn't working label Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants