Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Performing tactics on each of the matched hypothesis

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Performing tactics on each of the matched hypothesis


Chronological Thread 
  • From: Yucheng Zhang <yczhang89 AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] Performing tactics on each of the matched hypothesis
  • Date: Tue, 27 Nov 2012 20:18:48 +0800

Hello,

Suppose I have a goal:

H1 : P x
H2 : P y
H3 : P z
-------------
Q

where P is an inductive predicate. I want to do 'inversion' on each of the
hypothesis automatically.
I know I can do like this:

do 3 match goal with
| [ H : P _ |- _ ] => inversion H; move H at top
end

But is there a 'better' way?

Thanks


Yucheng Zhang


Archive powered by MHonArc 2.6.18.

Top of Page