Skip to Content.
Sympa Menu

coq-club - [Coq-Club] matching variables in Ltac

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] matching variables in Ltac


chronological Thread 
  • From: Loic Pottier <loic.pottier AT sophia.inria.fr>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] matching variables in Ltac
  • Date: Wed, 05 May 2010 11:49:30 +0200

Hi,

with Ltac, can we match names of variables in a pattern, to use them in right-hand side? e.g:

Ltac tac:=
 match goal with
  |- forall ?x:?E, ?P => idtac x
end.

(but this does not work :-(  )

or, if not, associate a character to a type so that intro will use it by default?

Loïc




Archive powered by MhonArc 2.6.16.

Top of Page