coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Pierre Courtieu <pierre.courtieu AT gmail.com>
- To: Coq Club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] Printing a structured representation of a Prop?
- Date: Wed, 1 Jul 2015 12:12:31 +0200
Hi Emilio, Could you please be more precise?
The coq team just spent some time in the last two years making an xml protocol in order to de-correlate coq from its ide. The idea being that
1) ide can run in a different thread, ide can even talk with different forks (workers) of the same coq.
2) the codes are well separated and a bug in coq leaves the interface alive
3) protocols are essentially APIs that one cannot easily shunt, so it forces good practice.
So any argument in favor of going back to a linked interface should be looked at very carefully. I think a lot of things can be done via a well designed protocol.
P.
2015-07-01 11:25 GMT+02:00 Emilio Jesús Gallego Arias <gallego AT cri.ensmp.fr>:
Hi Clément,
Clément Pit--Claudel <clement.pit AT gmail.com> writes:
> Is there a way to print a structured representation of a lemma's
> statement in Coq? Ideally I'd like to get something like (forall ((A
> type) (x A) (y A)) (impl (eq x y) (eq y x))) given the lemma [forall A
> (x y: A), x = y -> y = x].
>
> * Basic extracting to JSON doesn't do, because Props are erased before extraction.
> * The PrintAst XML command looks promising, but I'm not sure what its syntax is. [1]
> * The code in texmacspp.ml also looks promising, but I have no idea how to call into it.
That's very interesting, please let us know if you make any progress.
In our case, we resorted to linking directly to Coq (I happen to be in
Ocaml-land).
I just can't see how to do some of the more advances interaction/display
features we have in mind just using the protocol.
Best,
E.
- Re: [Coq-Club] Printing a structured representation of a Prop?, Valentin Robert, 06/30/2015
- Re: [Coq-Club] Printing a structured representation of a Prop?, Jason Gross, 07/01/2015
- Re: [Coq-Club] Printing a structured representation of a Prop?, Clément Pit--Claudel, 07/01/2015
- <Possible follow-up(s)>
- Re: [Coq-Club] Printing a structured representation of a Prop?, Clément Pit--Claudel, 07/01/2015
- Re: [Coq-Club] Printing a structured representation of a Prop?, Emilio Jesús Gallego Arias, 07/01/2015
- Re: [Coq-Club] Printing a structured representation of a Prop?, Pierre Courtieu, 07/01/2015
- Re: [Coq-Club] Printing a structured representation of a Prop?, Emilio Jesús Gallego Arias, 07/01/2015
- Re: [Coq-Club] Printing a structured representation of a Prop?, Clément Pit--Claudel, 07/02/2015
- Re: [Coq-Club] Printing a structured representation of a Prop?, Emilio Jesús Gallego Arias, 07/08/2015
- Re: [Coq-Club] Printing a structured representation of a Prop?, Clément Pit--Claudel, 07/09/2015
- Re: [Coq-Club] Printing a structured representation of a Prop?, Emilio Jesús Gallego Arias, 07/08/2015
- Re: [Coq-Club] Printing a structured representation of a Prop?, Clément Pit--Claudel, 07/02/2015
- Re: [Coq-Club] Printing a structured representation of a Prop?, Emilio Jesús Gallego Arias, 07/01/2015
- Re: [Coq-Club] Printing a structured representation of a Prop?, Pierre Courtieu, 07/01/2015
- Re: [Coq-Club] Printing a structured representation of a Prop?, Enrico Tassi, 07/01/2015
- Re: [Coq-Club] Printing a structured representation of a Prop?, Clément Pit--Claudel, 07/02/2015
- Re: [Coq-Club] Printing a structured representation of a Prop?, Valentin Robert, 07/02/2015
- Re: [Coq-Club] Printing a structured representation of a Prop?, Clément Pit--Claudel, 07/02/2015
- Re: [Coq-Club] Printing a structured representation of a Prop?, Enrico Tassi, 07/02/2015
- Re: [Coq-Club] Printing a structured representation of a Prop?, Valentin Robert, 07/02/2015
- Re: [Coq-Club] Printing a structured representation of a Prop?, Clément Pit--Claudel, 07/02/2015
- Re: [Coq-Club] Printing a structured representation of a Prop?, Clément Pit--Claudel, 07/02/2015
- Re: [Coq-Club] Printing a structured representation of a Prop?, Jason Gross, 07/01/2015
Archive powered by MHonArc 2.6.18.