coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Bruno Woltzenlogel Paleo <bruno.wp AT gmail.com>
- To: coq-club AT inria.fr
- Subject: [Coq-Club] No matching clauses for match
- Date: Wed, 30 Oct 2013 16:01:12 +0100
Hi,
Could someone tell me why tac1 defined below succeeds in matching while tac2
throws a "no matching clauses" error:
Parameter I: Type.
Parameter b: I.
Parameter f: (I -> Prop) -> (I -> Prop).
Ltac tac1 H := let P := match type of H with
((f ?p) _) => p
end in cut (P b).
Ltac tac2 H := let F := match type of H with
((f ?p) ?a) => (p a)
end in cut F.
Theorem t1: forall x q, (f q x) -> False.
Proof.
intros x q H.
tac1 H.
Admitted.
Theorem t2: forall x q, (f q x) -> False.
Proof.
intros x q H.
tac2 H. (* No matching clause error here*)
Admitted.
Best regards,
Bruno
- [Coq-Club] No matching clauses for match, Bruno Woltzenlogel Paleo, 10/30/2013
- Re: [Coq-Club] No matching clauses for match, Laurent Théry, 10/30/2013
Archive powered by MHonArc 2.6.18.