Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Macro for Ltac

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Macro for Ltac


Chronological Thread 
  • From: Dominique Larchey-Wendling <dominique.larchey-wendling AT loria.fr>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] Macro for Ltac
  • Date: Mon, 30 Oct 2017 10:26:02 +0100
  • Organization: LORIA

Dear all,

I am wondering if there is a way to define macros within the
tactic language.

For instance, consider that I have already defined
tactic notations such as:

wcbv step
wcbv iter <integer>
wcbv hyp
wcbv trans <uconstr>

Then I would like to be able to write

wcbv step, hyp, hyp, trans (t @ a), iter 2.

instead of

wcbv step; do 2 wcbv hyp; wcbv trans (t @ a); wcbv iter 2.

Can I do this using Ltac and Tactic Notation ?
Because it seems neither can input <text> as an
argument (like latex or metapost macros would do)

Thanks very much in advance for any hint

Dominique




Archive powered by MHonArc 2.6.18.

Top of Page