Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] eval change

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] eval change


Chronological Thread 
  • From: Jason Gross <jasongross9 AT gmail.com>
  • To: Gregory Malecha <gmalecha AT eecs.harvard.edu>
  • Cc: Coq Club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] eval change
  • Date: Fri, 22 Mar 2013 15:07:26 -0400

Can do something like (untested):

Ltac do_change x A B tac :=
let H := fresh in
pose x as H;
change A with B in x;
let x' := eval unfold H in H;
clear H;
tac x'.

?

-Jason

On Mar 22, 2013 2:18 PM, "Gregory Malecha" <gmalecha AT eecs.harvard.edu> wrote:
Hello --

Is there a way in Ltac to run [change] on a term? For example, I'd like to do:

let x := eval change A with B in x in ....

in order to change all of the uses of A with B.

Ideally I would be able to do this without a [match ... with context [ A ] => ... end].




Archive powered by MHonArc 2.6.18.

Top of Page