coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Alexandre Pilkiewicz <alexandre.pilkiewicz AT polytechnique.org>
- To: Adam Megacz <megacz AT cs.berkeley.edu>
- Cc: coq-club AT inria.fr
- Subject: Re: [Coq-Club] apply to all subgoals?
- Date: Sun, 26 Sep 2010 21:49:12 +0200
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=eQBVLI286rdy8c7FUD5G+RMKOXZuAY8YGuPgiL0osHWVWojTrUvKECL/CkaAH8yQfd XRlUgtyfVUSssaj62Dorsl+vJh/ErE7ETEyW2tRmYs3QDEPw+jW0K5J2wZkqpXGTYk+a yLCrZeDTGF2iZqf3BnUr0/+7v9DWzfnWCkT+o=
Dear Adam
I'm not sure I understood your problem exactly, but maybe one of the
things here might help you:
http://coq.inria.fr/refman/Reference-Manual028.html#toc143
Cheers
2010/9/20 Adam Megacz
<megacz AT cs.berkeley.edu>:
>
> The "<num>:<tactic>" syntax makes it possible to apply a tactic to a
> specific subgoal; for example:
>
> 3:simpl.
>
> Is there a version of this which applies a tactic to all subgoals? I
> tried the obvious
>
> *:simpl.
>
> But that's not valid syntax.
>
> The case where this matters most (to me, at least) is when an [Instance]
> declaration using the { ; ; } syntax generates a large number of
> subgoals which can all be discharged with the same tactic; for example
>
> Instance foo : bar :=
> { baz := blah
> }.
> (* many obligations remain here *)
>
> In the past I've rewritten this sort of thing as
>
> Instance foo : bar.
> apply Build_bar with (baz:=blah)
> ; magical_tactic.
> Defined.
>
> But that's probably not the ideal way to go about this and is a bit less
> pleasant for people reading the proof.
>
> I suppose I could also use [Program Instance] and [Solve All Obligations
> using]; I'm just wondering if there's another solution.
>
> Thanks,
>
> - a
>
>
- [Coq-Club] apply to all subgoals?, Adam Megacz
- Re: [Coq-Club] apply to all subgoals?, Alexandre Pilkiewicz
- [Coq-Club] Re: apply to all subgoals?, Adam Megacz
- Re: [Coq-Club] apply to all subgoals?, Alexandre Pilkiewicz
Archive powered by MhonArc 2.6.16.