-
Notifications
You must be signed in to change notification settings - Fork 35
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
Typeclass resolution can lock coq-lsp responsiveness when looping #484
Comments
Can you provide a test case? |
Here is a test case: From Coq Require Import Prelude.
Axiom Loop : Type.
Existing Class Loop.
Axiom loop : Loop -> Loop.
#[export] Existing Instance loop.
Global Instance foo : Loop.
Proof. Admitted.
Goal Loop.
exact _. Try commenting out |
Thanks a lot Ali, I have opened a file collecting uninterruptible cases, I hope to resolve them soon. |
@Alizter note this example doesn't loop anymore, what'd be the suggested fix? |
I did
for example, and that seems to work, but I don't know how TC work. |
If you give |
It is a common occurrence to tweak a typeclass definition causing later lemmas to loop when searching. When this happens, it causes coq-lsp to become unresponsive.
The text was updated successfully, but these errors were encountered: