coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jonathan Leivent <jonikelee AT gmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Some questions on interface with coqtop
- Date: Thu, 10 Dec 2015 19:26:16 -0500
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=jonikelee AT gmail.com; spf=Pass smtp.mailfrom=jonikelee AT gmail.com; spf=None smtp.helo=postmaster AT mail-qg0-f42.google.com
- Ironport-phdr: 9a23:yltIxBQt9K8UrrPa6wMlQ3mOqdpsv+yvbD5Q0YIujvd0So/mwa64YBON2/xhgRfzUJnB7Loc0qyN4/6mATRIyK3CmU5BWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYsExnyfTB4Ov7yUtaLyZ/niabqo9X6WEZhunmUWftKNhK4rAHc5IE9oLBJDeIP8CbPuWZCYO9MxGlldhq5lhf44dqsrtY4q3wD88QIrJEbFP2mN+RlFf0LRAghZmsy/YjgsQTJZQqJ/HoVFGsMwTRSBA2Qzhb8V4vxuy2ykud8xiScIYWiT7cyWDev66pmYBDtgSYDcTU+9TeE2YRLkKtHrUf59FREyInObdTIbPc=
On 12/10/2015 06:54 PM, Epiphanie wrote:
...
Finally, I have questions about LTac. This language seems powerful enough
to perform interesting automation, however as a post on Galinium showed,
there seems to be some heavy restriction on it.
For instance, I cannot find a way to use the Search mechanic (vernacular
command) inside a tactic, or even to know the number of subgoal there is.
See: https://coq.inria.fr/bugs/show_bug.cgi?id=3945
I skimmed through the code of SSReflect and they do it through caml plugin,
just like the said post suggested.
However, I found nothing in the documentation about how to write your own
Coq extension just like SSReflect does, and its consacred section on the
FAQ is left blank.
This is a source of continuous frustration and debate.
Ltac is actually quite a bit more powerful than one might expect - than even its developers anticipated. For example, it is possible to write an Ltac tactic that can know the number of subgoals. It is even possible to write an Ltac tactic that can label the subgoals with their relative numbers.
Still, for many purposes, there seems to be little alternative but to write an OCaml plugin. This appears to be because Ltac's ability to automate procedures is treated as very secondary to its direct interactive usage. Even though the ability to easily automate complex procedures would of course improve that direct interactive usage.
-- Jonathan
- [Coq-Club] Some questions on interface with coqtop, Epiphanie, 12/11/2015
- Re: [Coq-Club] Some questions on interface with coqtop, Jonathan Leivent, 12/11/2015
- Re: [Coq-Club] Some questions on interface with coqtop, Gregory Malecha, 12/11/2015
- Re: [Coq-Club] Some questions on interface with coqtop, Jonathan Leivent, 12/12/2015
- Re: [Coq-Club] Some questions on interface with coqtop, Gregory Malecha, 12/12/2015
- Re: [Coq-Club] Some questions on interface with coqtop, Épiphanie, 12/13/2015
- Re: [Coq-Club] Some questions on interface with coqtop, Jonathan Leivent, 12/13/2015
- Re: [Coq-Club] Some questions on interface with coqtop, Épiphanie, 12/13/2015
- Re: [Coq-Club] Some questions on interface with coqtop, Gregory Malecha, 12/12/2015
- Re: [Coq-Club] Some questions on interface with coqtop, Jonathan Leivent, 12/12/2015
- Re: [Coq-Club] Some questions on interface with coqtop, Gregory Malecha, 12/11/2015
- Re: [Coq-Club] Some questions on interface with coqtop, Jonathan Leivent, 12/11/2015
Archive powered by MHonArc 2.6.18.