coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: xiang sen <xiangsen AT ustc.edu>
- To: coq-club AT pauillac.inria.fr
- Subject: [Coq-Club] How to match a hypo?
- Date: Fri, 01 Jul 2005 09:58:19 +0800
- List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
Hi, all
I want to apply my customized tactic to a specified hypo.
So I do this:
Ltac reverse H :=
match goal with
| [ H : ? a < ?b |- _ ] => assert ( b > a); [ omega | clear H]
end.
I works well when there is only one hypo matching some x < y,
but if there are several hypo such as H1 : a < b, H2 : x < y,
"reverse H1" doesn't work as expected.
Why and how? Thanks
Best,
Xiang Sen
- [Coq-Club] How to match a hypo?, xiang sen
- Re: [Coq-Club] How to match a hypo?, Pierre Casteran
Archive powered by MhonArc 2.6.16.