coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Chung-Kil Hur <gil.hur AT gmail.com>
- To: Michael Shulman <mshulman AT ucsd.edu>
- Cc: Coq Club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] matching a function application?
- Date: Mon, 28 Nov 2011 16:15:43 +0100
Use appcontext.
Theorem test A (f:A -> A -> Type) (a b :A) : f a b.
match goal with
|- appcontext cxt [ ?g ?x ] => idtac g
end.
Best,
Gil
On Mon, Nov 28, 2011 at 6:48 AM, Michael Shulman
<mshulman AT ucsd.edu>
wrote:
> 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
>
- [Coq-Club] matching a function application?, Michael Shulman
- Re: [Coq-Club] matching a function application?, Adam Chlipala
- Re: [Coq-Club] matching a function application?, Chung-Kil Hur
- Re: [Coq-Club] matching a function application?,
Alexandre Pilkiewicz
- Re: [Coq-Club] matching a function application?,
Michael Shulman
- Re: [Coq-Club] matching a function application?, Chung-Kil Hur
- Re: [Coq-Club] matching a function application?, Pierre Letouzey
- Re: [Coq-Club] matching a function application?,
Michael Shulman
- Re: [Coq-Club] matching a function application?,
Alexandre Pilkiewicz
Archive powered by MhonArc 2.6.16.