coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: "Samuel E. Moelius III" <moelius AT cis.udel.edu>
- To: Yves Bertot <Yves.Bertot AT sophia.inria.fr>
- Cc: Taral <taralx AT gmail.com>, "coq-club AT pauillac.inria.fr" <coq-club AT pauillac.inria.fr>
- Subject: Re: [Coq-Club] Instantiating existential variables
- Date: Wed, 11 Mar 2009 08:11:15 -0400
- List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
Yves Bertot wrote:
That's a nice suggestion. One could have a "Extential to goal" command. This would start a fresh proof.
(all the other goals of the current proofs disappearing). Now, there should exist a corresponding
"commit existential" command, that would take the proof as it is, consider all open subgoals as
new existentials, and instantiate with this existential.
Would that fit the need?
I also think this sounds like a nice idea. :)
I would like to suggest something in addition to the above. It would be less general, but I think it would be nice-to-have in many situations.
I often find that I have to instantiate existential variables when refine tries to infer a term that I had intended to build interactively. It would be nice if refine offered more fine-grained control over which placeholders it tried to infer terms for, versus which it asked you to build.
For example, there could be two kinds of placeholders: ``_'' which would mean ``infer this term if you can; force me to build it if you can't'' (like now), and (perhaps) ``#'', which would mean ``never infer this term; always force me to build it''.
So, for example, one might write:
refine (f (exist _ x #) #).
meaning: ``infer the first argument of exist; force me to build the second argument of exist; force me to build the second argument of f''.
Anyway, it's just an idea. :) I have no idea how difficult it would be to implement. Also, more experienced users may see problems with it.
Sam
- [Coq-Club] Instantiating existential variables, Samuel E. Moelius III
- Re: [Coq-Club] Instantiating existential variables, Adam Chlipala
- Re: [Coq-Club] Instantiating existential variables,
Taral
- Re: [Coq-Club] Instantiating existential variables,
Adam Chlipala
- Re: [Coq-Club] Instantiating existential variables,
muad
- Re: [Coq-Club] Instantiating existential variables,
Samuel E. Moelius III
- Re: [Coq-Club] Instantiating existential variables, Adam Chlipala
- Re: [Coq-Club] Instantiating existential variables,
Samuel E. Moelius III
- Re: [Coq-Club] Instantiating existential variables,
muad
- Re: [Coq-Club] Instantiating existential variables,
Yves Bertot
- Re: [Coq-Club] Instantiating existential variables, Taral
- Re: [Coq-Club] Instantiating existential variables, Samuel E. Moelius III
- Re: [Coq-Club] Instantiating existential variables,
muad
- Re: [Coq-Club] Instantiating existential variables, Samuel E. Moelius III
- Re: [Coq-Club] Instantiating existential variables,
muad
- Re: [Coq-Club] Instantiating existential variables,
Adam Chlipala
- Re: [Coq-Club] Instantiating existential variables, Arnaud Spiwack
Archive powered by MhonArc 2.6.16.