Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] match goal with "match ... with"

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] match goal with "match ... with"


chronological Thread 
  • From: Adam Chlipala <adam AT chlipala.net>
  • To: Gyesik Lee <gslee AT ropas.snu.ac.kr>
  • Cc: Coq Club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] match goal with "match ... with"
  • Date: Fri, 02 Jul 2010 09:08:48 -0400

Gyesik Lee wrote:
Then I tried with

Ltac toto :=
   match goal with
      | |- context [ match ?T with | _ =>  _ end ] =>  idtac
   end

The error message now:

Error: Non supported pattern.

For now, you need to supply every pattern-match case, in enough detail to make clear which type you're matching on. It gets bothersomely verbose and prevents genericity, but it makes some sense if you look at the internal representation of Gallina terms.



Archive powered by MhonArc 2.6.16.

Top of Page