coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Bruno Barras <bruno.barras AT inria.fr>
- To: anoun AT labri.fr
- Cc: coq-club AT pauillac.inria.fr
- Subject: Re: [Coq-Club] another pb with tactics
- Date: Thu, 30 Sep 2004 13:49:57 +0200
- List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
Houda Anoun wrote:
Ltac elimTac0 lem:= match goal with H : ?n>0 |- _ =>elim (lem n H) end.
How can we solve this problem by defining a generic tactic that can infer the arguments of the lemma which appear in the premiss H??
You can try
Ltac elimTac lem:= match goal with H : ?n>0 |- _ => elim lem with (1:=H) end.
It will set the first non-dependent argument of lem to H and in your second example it will find the correct instantation for n and m.
Bruno.
- [Coq-Club] another pb with tactics, Houda Anoun
- Re: [Coq-Club] another pb with tactics, Bruno Barras
Archive powered by MhonArc 2.6.16.