Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Feature request

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Feature request


Chronological Thread 
  • From: Cedric Auger <sedrikov AT gmail.com>
  • To: "coq-club AT inria.fr" <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] Feature request
  • Date: Thu, 24 Apr 2014 13:48:46 +0200

I don’t know if that would help you, but you should be able to do:

change (x^2) with ((fun x => x^2) x).

With Ltac and tactic Notations, there may be a way to implement your "pattern2" with that.


2014-04-23 12:30 GMT+02:00 Kate and James Candy <jacinabox AT hotmail.com>:
Lately I've been wishing for a smarter pattern tactic, that can be made to do its work in a subterm of the goal. For example, if the goal is (P (x ^ 2 * exp x)), I could do pattern2 (x ^ 2) x and get the goal (P ((fun x => x ^ 2) x * exp x)).

--jacinabox



--
.../Sedrikov\...



Archive powered by MHonArc 2.6.18.

Top of Page