Open AndreasLoow opened 6 months ago
This seems to be a Proof General issue, which is a separate project. Neither CoqHammer nor Coq communicate with Proof General directly.
Thanks, I opened an issue in the Proof General issue tracker! (Also, thanks for the quick response and thanks for your work on CoqHammer -- it's an amazing tool.)
Hi, there seems to be some problems with aborting some of the tactics provided by CoqHammer.
To exemplify, consider this proof script (just some function and a theorem from the Coq standard library to have a non-empty script):
I am using Proof General in Emacs and if I invoke and abort (using C-c C-c) the
best
tactics a few times (it seems to happen nondeterministically), the UI and the kernel seem to end up out of sync with each other. E.g. if you C-c Enter just before theFixpoint
definition and then try to move beyond it (e.g. doing C-c Enter just after it), Coq now complains:So somehow although according to the Proof General UI (specifically, the blue marked part of the script file)
nth_ok
is not defined the kernel seems to say it is.I have seen this happen with various CoqHammer tactics, such as
sauto
and other auto variants.It might be some race condition thing happening in the communication between the UI and the kernel since it seems to be somewhat nondeterministic?