Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Program: Measure based on more than one argument.

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Program: Measure based on more than one argument.


chronological Thread 
  • From: Matthieu Sozeau <mattam AT mattam.org>
  • To: Adam Koprowski <adam.koprowski AT gmail.com>
  • Cc: Coq Club <coq-club AT pauillac.inria.fr>
  • Subject: Re: [Coq-Club] Program: Measure based on more than one argument.
  • Date: Tue, 15 Sep 2009 11:51:06 -0400
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>


Le 15 sept. 09 à 11:12, Adam Koprowski a écrit :

   Dear all,

Dear Adam,

  Apologies for a silly question but I spent quite some time trying to figure it out on my own with no luck...
  How can I provide a measure annotation for a Fixpoint built using Program, if the measure depends on more than one argument? The following snippet worked just fine in the trunk (one day) but now I did not manage to achieve a similar effect with 8.2pl1 (not for the lack of trying):
Program Fixpoint test (e : exp | correct e) (s : string) { measure (build_pcx (e, s)) (pcx_lt) } : ...

You have to manually decurryfy so that test takes a pair. Program does it for you in the trunk.
The measure annotation is somewhat different too.

-- Matthieu



Archive powered by MhonArc 2.6.16.

Top of Page