Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Rewritinig *one* occurrence using setoid rewriting

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Rewritinig *one* occurrence using setoid rewriting


chronological Thread 
  • From: Brian Aydemir <baydemir AT cis.upenn.edu>
  • To: Edsko de Vries <devriese AT cs.tcd.ie>
  • Cc: coq-club AT pauillac.inria.fr
  • Subject: Re: [Coq-Club] Rewritinig *one* occurrence using setoid rewriting
  • Date: Fri, 15 Feb 2008 10:36:03 -0500
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

On Feb 15, 2008, at 10:26 AM, Edsko de Vries wrote:

On Fri, Feb 15, 2008 at 04:09:40PM +0100, Stephane Glondu wrote:
What about:

Tactic Notation "rewrite_at" constr(t) constr(t') integer(pos) :=
    let H := fresh in
    set (H := t) in |- * at pos ;
    rewrite t' ;
    subst H.

Perfect! Thanks for that. Is that syntax (constr, integer) documented anywhere? I can't find it in the chapter on tactics in the Coq manual.

Take a look at Section 11.4 of the reference manual (at least for Coq 8.1). The documentation for Tactic Notation is in there with the documentation for Notation.

Cheers,
Brian





Archive powered by MhonArc 2.6.16.

Top of Page