Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Proof General with XML protocol, available for testing

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Proof General with XML protocol, available for testing


Chronological Thread 
  • From: "Paul A. Steckler" <steck AT stecksoft.com>
  • To: coq-club <coq-club AT inria.fr>
  • Subject: [Coq-Club] Proof General with XML protocol, available for testing
  • Date: Wed, 7 Sep 2016 13:21:58 -0400
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=stecksoft AT gmail.com; spf=Pass smtp.mailfrom=stecksoft AT gmail.com; spf=None smtp.helo=postmaster AT mail-vk0-f47.google.com
  • Ironport-phdr: 9a23:yRGarxajZr299Ygph3pKb6X/LSx+4OfEezUN459isYplN5qZpcu4bnLW6fgltlLVR4KTs6sC0LuP9f65EjVZud7B6ClEK80UEUddyI0/pE8JOIa9E0r1LfrnPWQRPf9pcxtbxUy9KlVfA83kZlff8TWY5D8WHQjjZ0IufrymUrDbg8n/7e2u4ZqbO1wO32vkJ+0rZ0zv9U2R7pBQ2to6bP5pi1PgmThhQ6xu32RmJFaezV7Xx/yb29pdyRlWoO8r7MVaUK/3LOwSRL1cCyk6YShuvJW4/UqLcQza7XwFF24SjxAAVwPC9VTxWor7mir8rOt0nieAa57YV7cxDH6a5rpvADauwBwbOjU69GzNwIQkl75WqxGJvAByyI3PZ4+JcvF5e/WOLpshWWNdU5MJBGR6CYSmYt5XAg==

I've created a fork of Proof General that uses the XML protocol in Coq
8.5 (and later, if you're using development versions). The main
advantage of the XML protocol is that it allows coqtop to process
proofs asynchronously, which is how CoqIDE is able to use that
feature.

We hope to release the code around the time 8.6 is released, or soon
thereafter. I'd like your help in testing out the code.

This is alpha-level code, so there will be bugs. There's been only
limited testing so far. I'm announcing the availability of this fork
here in order to get some more people trying out the code.

I mentioned this fork on the coq-dev mailing list a few weeks ago.
Since then, we've fixed a few significant bugs and also folded in the
latest fixes from the main PG repo.

Instructions on how to use the code appear below.

-- Paul

-------------------------------------------------------------------------------

How to try out Proof General with the coqtop XML protocol
-----------------------------------------------------------------------

1) Get the code from Github

The repo is at:

https://github.com/psteckler/ProofGeneral

You should clone the repo via ssh or https.

2) Switch to the branch that supports the XML protocol

$ git checkout server-protocol

3) In the ProofGeneral directory that was created via cloning:

$ make

-----------------------------------------------------------------------------

You're probably already a Proof General user, so you'll want a way to
switch between the current distribution, and this experimental
version. Here's one way to do that on Linux, assuming you're running
bash as your shell.

In your .emacs file, add something like:

(defun pg-xml ()
(load-file "<path-to>/ProofGeneral/generic/proof-site.el")
'(defun message (&rest s) nil))

And in your ~/.bashrc, add a line like:

alias emacs-pg-xml="<path-to>/emacs -eval \"(pg-xml)\""

Run:

$ source ~/.bashrc

Then, to run a Coq script foo.v:

$ emacs-pg-xml foo.v

To run the current Proof General distribution, you can setup another
.emacs load function and bash alias:

(defun pg ()
(load-file "<path-to>/ProofGeneral/generic/proof-site.el"))

alias emacs-pg="<path-to>/emacs -eval \"(pg)\""

The Proof General code is still experimental, and prints a lot of
debug messages, which may be annoying. To get rid of those, you can
remove the quote from the "defun" above (although you'll lose the
information provided by those messages).

Please note, this code is of alpha quality.

If you discover a bug, please work out the steps to reproduce
it. There's a transcript of the traffic between Emacs and coqtop in
the buffer *coq-log*, which may be helpful. Please create a new
issue in the Github repo above (not in the standard PG repo).

Thanks for trying out the code!


  • [Coq-Club] Proof General with XML protocol, available for testing, Paul A. Steckler, 09/07/2016

Archive powered by MHonArc 2.6.18.

Top of Page