Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] about Tactic Notation: a variant of apply ... with ...

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] about Tactic Notation: a variant of apply ... with ...


chronological Thread 
  • From: Gyesik Lee <gslee AT ropas.snu.ac.kr>
  • To: Marthe Bonamy <marthe.bonamy AT ens-lyon.fr>
  • Cc: Coq Club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] about Tactic Notation: a variant of apply ... with ...
  • Date: Tue, 20 Jul 2010 13:18:12 +0900
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=FER5wMB8u7j+WvOt0MN+y2w+1S0mdYvoW/bwhcZQ8W9iRkCNpZ/GAkrGlAjNHd40KP bNoxcOLdJo5WgBYATYs3jMrVAWCGd8r11YhqAgpPkYr4dE9Z/srabpfjAYDqMSSV6fUH /usHXFO7yy5E3D6m6dtFx1nWdmHiEi44qpKRs=

Hi Marthe,

sorry for being not so exact with my question.

My problem is to write a (personal) tactic which behaves like "apply
... with..."
Assume that I would like to always perform the "simpl" tactic before "apply":

Ltac sapply H := simpl; apply H.

But how can I am wondering if it is also possible to combine "simpl"
with "apply ... with ...".
If possible, I would like to know what to write in the "?(some binding
list" part below:

Tactic Notation "sapply" constr(H) "with" ?(some binding list) :=
simpl; apply  H with ?(some binding list)

I hope my problem is clear now.

Gyesik



2010/7/20 Marthe Bonamy 
<marthe.bonamy AT ens-lyon.fr>:
> Hi Gyesik,
>
> I'm not quite sure of what you're trying to do exactly?
>
> What troubles you here?
>
> The fact that you don't know how to tell Coq "I know, a is not in the
> environment, but it's okay", or the fact that you don't know how to tell him
> to parse things of the pattern "a := x", or something else entirely?
>
> Could you please for example give an example of the kind of thing you try to
> put into a tactic?
>
> Thanks,
>
> Marthe
>
> On 19 July 2010 07:50, Gyesik Lee 
> <gslee AT ropas.snu.ac.kr>
>  wrote:
>>
>> Hi,
>>
>> How can I write a tactic with a binding list as in the case of "apply
>> ... with ..." ?
>>
>> I am wondering which tactic argument can be used in the following example
>> case:
>>
>> Tactic Notation "papply" constr(H) "with" ???(a:=x)
>> Â := simpl; apply H with (a:=x)
>>
>> Any help will be greatly appreciated.
>>
>> Gyesik
>
>




Archive powered by MhonArc 2.6.16.

Top of Page