coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Adam Chlipala <adamc AT hcoop.net>
- To: Jacques Garrigue <garrigue AT math.nagoya-u.ac.jp>
- Cc: coq-club AT pauillac.inria.fr
- Subject: Re: [Coq-Club] rewrite and instantiation of existential variables
- Date: Mon, 27 Jul 2009 09:03:26 -0400
- List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
Jacques Garrigue wrote:
I really wish there were a version of rewrite that would not
match on existentials.
I'm with you on this one, and I know Matthieu Sozeau is aware of the problem and will probably address it somehow in a future Coq release.
Alternatively, is there any way to detect whether the current goal
contains existentials? I've written a tactic to do that, but it seems
rather ad-hoc (it just tries to instantiate, and fails when succeeding).
Not the the following leads to a more elegant solution, but it may be useful: I've found that existentials are the only terms that don't match against themselves. That is, here is code to test if a term is an existential:
Ltac isNotEx e := match e with e => idtac end.
- [Coq-Club] rewrite and instantiation of existential variables, Jacques Garrigue
- Re: [Coq-Club] rewrite and instantiation of existential variables, Adam Chlipala
Archive powered by MhonArc 2.6.16.