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:19:03 -0400

Gyesik Lee wrote:
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.
Does this mean that

   match goal with
      | |- context [ match ?T with | _ =>   _ end ] =>   idtac
   end
can be used only in a proof, and not as a standing-alone tactic with a name?

That Ltac code is not legal anywhere, with or without a name. Try it and you'll see.



Archive powered by MhonArc 2.6.16.

Top of Page