Skip to Content.
Sympa Menu

coq-club - [Coq-Club] matching a function application?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] matching a function application?


chronological Thread 
  • From: Michael Shulman <mshulman AT ucsd.edu>
  • To: Coq Club <coq-club AT inria.fr>
  • Subject: [Coq-Club] matching a function application?
  • Date: Sun, 27 Nov 2011 21:48:37 -0800

Why does the following match fail?

Theorem test A (f:A -> A -> Type) (a b :A) :  f a b.
  match goal with
    |- context cxt [ ?g ?x ] => idtac g
  end.

It looks to me as though the goal contains two subterms of the form (g
x), one where g = f and x = a, and another where g = (f a) and x = b.

Thanks!
Mike



Archive powered by MhonArc 2.6.16.

Top of Page