coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Gregory Malecha <gmalecha AT eecs.harvard.edu>
- To: Coq Club <coq-club AT inria.fr>
- Subject: [Coq-Club] Ltac Determine if a variable is an existential
- Date: Fri, 5 Nov 2010 23:55:29 -0400
Hello,
Is there a way to determine if an Ltac variable binds a meta variable, i.e. a ?nn variable? In 8.2 and prior I had this Ltac definition:
Ltac meta X :=
match X with
| _ _ => fail 1
| _ _ _ => fail 1
| _ _ _ _ => fail 1
| _ _ _ _ _ => fail 1
| _ _ _ _ _ _ => fail 1
| _ _ _ _ _ _ _ => fail 1
| _ _ _ _ _ _ _ _ => fail 1
| _ * _ => fail 1
| X => fail 1
| _ => idtac
end.
Interestingly enough, terms with meta variables did not match themselves so all of the guards would fail until the end and the result would be a success. This behavior doesn't seem to work in 8.3 (possibly rightfully so), but is there another tactic that I can run?
Any pointers greatly appreciated. Thanks.
--
gregory malecha
- [Coq-Club] Ltac Determine if a variable is an existential, Gregory Malecha
- Re: [Coq-Club] Ltac Determine if a variable is an existential, Stéphane Glondu
Archive powered by MhonArc 2.6.16.