coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jim Fehrle <jim.fehrle AT gmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Show Goal "<goal-id>" in Coq 8.7 or later?
- Date: Wed, 5 Jun 2019 07:23:39 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=jim.fehrle AT gmail.com; spf=Pass smtp.mailfrom=jim.fehrle AT gmail.com; spf=None smtp.helo=postmaster AT mail-ed1-f45.google.com
- Ironport-phdr: 9a23:ZIwOaBVdAqJb+ZFj3N7Nxxn7137V8LGtZVwlr6E/grcLSJyIuqrYYxeAt8tkgFKBZ4jH8fUM07OQ7/m5HzVcuN3Q7DgrS99lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUhrwOhBoKevrB4Xck9q41/yo+53Ufg5EmCexbal9IRmrsAndrNQajIR/Jqo+zhbErWZDdvhLy29vOV+dhQv36N2q/J5k/SRQuvYh+NBFXK7nYak2TqFWASo/PWwt68LlqRfMTQ2U5nsBSWoWiQZHAxLE7B7hQJj8tDbxu/dn1ymbOc32Sq00WSin4qx2RhLklDsLOjgk+2zRl8d+jr9UoAi5qhNwzY7bYoGbOvR9cK3AY90VWXFMUdxNWyFbGI6wc5cDAugHMO1Fr4f9vVwOrR6mCAeoBePvzyJDiH/o0q06yeQhFR/J1xEnEtIMsXTUqc/5NKkMXuC11qnIySvMYuhZ2Tf48ofIcxQhreuQUrJ3dMrc0E8iHB7LgFWXrIzqJTKV1uIVvmiU7upgSeKvi3M8pA1rvjevwcIsh4/UjYwW0lDJ7Tt1zJoxKNGiS0N2YcSoHIVMuyyZLYd7TcMvTmd1sygg0LIGo4S0fC0SxZQn2RHfb/uHfpCN4h35VeaRJS50i2x4d76inhqy/0etx+3mWsm711ZKqSVFkt3SuXwXyxPT7c2HRuN8/kenxzmPyxje5v9YLU0wj6bWKJ4szqQumpYPsknPBCD7lUXugK+TbEok++yo6+r9YrXho5+RL410igD7Mqg0lMywH+Q4MhIKX2eF4um827jj8lf4QLVOlPE5jq7ZsJXCKcQBuqG5GxNV0pok6xunEzim180YkWAbI1JBZRKIlJPkO0rOIfD9FfewmU6gkDZtx/DcP73uGI/BLnbZkOSpQbEo4ElFjQE30Np35pROC7hHLuigdFX2sYn6DxpxHQG02eLqQIF/14ZYV2+PGKuUGKzXuF6MoOkoJr/fN8cupD/hJq19tLbVhngjlApFJPT77d4scHm9W89eDQCZbH7r2IpTFG4Luk8zQLWvhgHfFzFUYHm2UuQ34TRpUNv3X7eGfZikhfm65An+G5RXYm5cDVXVSCXncoyFX7EHbyfAe5Y9wAxBbqCoTsoa7T/rrBXzkuM1Ie/d+ylevpXmhoB4
Hendrik, I'd be happy to investigate what's needed to make prooftree work again and look at providing more useful information as you suggest. If there is a reasonable solution that needs only a small effort, I will implement it, too. Would you open an issue for this in GitHub and send me the link? That would be a better place to discuss it.
Regards,
Jim
First questions to answer in the issue: You want to use goal numbers, such as the 41 in this output (From: coqtop -emacs <test3.v)? Or the 9 (not sure what to call it)? Maybe provide a short example proof showing what you want. What info do you want to get back if there are multiple open goals--just the usual output from Coq or more or less?
<prompt>ev_even_firsttry < 9 |ev_even_firsttry| 0 < </prompt><infomsg>This subproof is complete, but there are some unfocused goals.Focus next goal with bullet -.</infomsg>1 subgoal (ID 41)subgoal 1 (ID 41) is:exists k : nat, S (S n') = double k
On Tue, Jun 4, 2019 at 10:06 PM Hendrik Tews <hendrik AT askra.de> wrote:
Emilio,
thanks for your quick answer.
Emilio Jesús Gallego Arias <e AT x80.org> writes:
> I'm not sure there's a new syntax, see the removal PR
> https://github.com/coq/coq/pull/765
I was afraid of that. Proof General was using Show Goal "id"
since the proof tree branch was merged in 2012. When the removal
PR was discussed, I did unfortunately not have the time to follow
any discussions around Coq or Proof General in 2017.
> I guess that command could be re-instantiated, or you could use
I find prooftree really useful. It helps to maintain the overview
in mid-size or bigger proofs. I would therefore really appreciate
if the command would be supported again.
If it is not too difficult, a command that prints a goal in a
certain state, would even be more useful. That would permit to
print a goal in the state before certain existential variables
have been instantiated. In turn, this would permit to move more
of the proof tree logic and data from Proof General to prooftree
and to decouple both application even more, with benefits for
performance. Proof General tries to parallelise Coq and the
command queue handling by sending the next command to Coq before
the output from the previous has been fully processed. Because
one cannot print a goal at a previous state, all the code that
decides about what goals need to be printed must be located in
Proof General, must run before Proof General sends the next
command to Coq and does therefore run sequentially with Coq.
> Goal identifiers,
Could somebody point me to the documentation of goal identifiers?
I cannot find them with google.
> however, I am not sure if using the toplevel protocol to
> implement proof tree display will be robust enough as to
> survive for long.
What would you suggest instead?
Thanks,
Hendrik
- [Coq-Club] Show Goal "<goal-id>" in Coq 8.7 or later?, Hendrik Tews, 06/03/2019
- Re: [Coq-Club] Show Goal "<goal-id>" in Coq 8.7 or later?, Emilio Jesús Gallego Arias, 06/03/2019
- Re: [Coq-Club] Show Goal "<goal-id>" in Coq 8.7 or later?, Hendrik Tews, 06/04/2019
- Re: [Coq-Club] Show Goal "<goal-id>" in Coq 8.7 or later?, Jim Fehrle, 06/05/2019
- Re: [Coq-Club] Show Goal "<goal-id>" in Coq 8.7 or later?, Hendrik Tews, 06/05/2019
- Re: [Coq-Club] Show Goal "<goal-id>" in Coq 8.7 or later?, Emilio Jesús Gallego Arias, 06/05/2019
- Re: [Coq-Club] Show Goal "<goal-id>" in Coq 8.7 or later?, Jim Fehrle, 06/05/2019
- Re: [Coq-Club] Show Goal "<goal-id>" in Coq 8.7 or later?, Hendrik Tews, 06/04/2019
- Re: [Coq-Club] Show Goal "<goal-id>" in Coq 8.7 or later?, Emilio Jesús Gallego Arias, 06/03/2019
Archive powered by MHonArc 2.6.18.