coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jonathan <jonikelee AT gmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Ltac and constr arguments with holes
- Date: Sun, 09 Nov 2014 19:21:07 -0500
On 11/09/2014 06:54 PM, Robbert Krebbers wrote:
Arnoud, Jonathon: thanks for the replies.
Inspired by Jason's message on splitting evars, I ended up with
Tactic Notation "my_destruct" open_constr(z) :=
match goal with
| _ : context [?z'] |- _ => unify z z'; destruct z
end.
Goal forall x, 1 + 2 = x -> True.
intros.
my_destruct (_ + _).
Restart.
intros.
my_destruct (1 + _).
auto.
auto.
Qed.
This seems to work, even on Coq 8.4.
So that undocumented open_constr has been around at least since 8.4? Sigh.
-- Jonathan
- [Coq-Club] Ltac and constr arguments with holes, Robbert Krebbers, 11/06/2014
- Re: [Coq-Club] Ltac and constr arguments with holes, Arnaud Spiwack, 11/06/2014
- Re: [Coq-Club] Ltac and constr arguments with holes, Jonathan, 11/06/2014
- Re: [Coq-Club] Ltac and constr arguments with holes, Jonathan, 11/06/2014
- Re: [Coq-Club] Ltac and constr arguments with holes, Jonathan, 11/07/2014
- Re: [Coq-Club] Ltac and constr arguments with holes, Jonathan, 11/07/2014
- Re: [Coq-Club] Ltac and constr arguments with holes, Jonathan, 11/07/2014
- Re: [Coq-Club] Ltac and constr arguments with holes, Jonathan, 11/06/2014
- Re: [Coq-Club] Ltac and constr arguments with holes, Jonathan, 11/06/2014
- Re: [Coq-Club] Ltac and constr arguments with holes, Robbert Krebbers, 11/10/2014
- Re: [Coq-Club] Ltac and constr arguments with holes, Jonathan, 11/10/2014
- Re: [Coq-Club] Ltac and constr arguments with holes, Jason Gross, 11/10/2014
- Re: [Coq-Club] Ltac and constr arguments with holes, Jonathan, 11/10/2014
- Re: [Coq-Club] Ltac and constr arguments with holes, Arnaud Spiwack, 11/06/2014
Archive powered by MHonArc 2.6.18.