-
Notifications
You must be signed in to change notification settings - Fork 90
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
ProofGeneral does not handle "Proof term." directives #681
Comments
Thanks @RalfJung ! I know the Thanks again! |
Hi. |
No I think this is not just a stale goal buffer issue. If I step all the way to the end of the file, I get an error: "Attempt to save an incomplete proof", even though the script completes when run via coqc. I also get warnings about nested proofs. So it does seem like PG is actually confused and got Coq into a wrong state. It seems as if only |
I can't reproduce. Can you check your pg version and also if the coqtop pg is using is the one you think? It seems to work with coq-8.15. |
This is with PG 8416875, Coq 8.16.1. To reproduce:
Then it prints two warnings:
(the first warning disappears when I repeat this; I had quite a few such warnings the last weeks but they all seem to show up only once)
My custom settings are
|
OK. I can reproduce. This is rather strange. The following coqtop text session produces the error.
Is this a coq bug? Why would Set Silent change the semantics?
|
Or is it that the |
Yeah that's what it looks like to me. |
Mmh that is a strange semantics. How is it even checked by Coq? |
Ho this is a known problem, even in Coq documentation. See #498. This coq feature is deprecated in coq's documentation. |
For reference to the deprecation of |
Consider the following proof script:
ProofGeneral seems to be confused by these (very rarely used)
Proof term.
statements: when I step after thatProof sth_all 0.
(directly giving the proof term instead of using tactics), it still shows an open goal. When I step to the end of the file it complains about nested proofs, but there are no nested proofs here. It then also shows an error, "Attempt to save an incomplete proof".The same script works fine when being fed directly to coqc.
The text was updated successfully, but these errors were encountered: