Skip to Content.
Sympa Menu

coq-club - [Coq-Club] No matching clauses for match

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] No matching clauses for match


Chronological Thread 
  • 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



Archive powered by MHonArc 2.6.18.

Top of Page