Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] mtac formulation of dictionary

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] mtac formulation of dictionary


Chronological Thread 
  • From: t x <txrev319 AT gmail.com>
  • To: coq-club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] mtac formulation of dictionary
  • Date: Sun, 15 Sep 2013 04:41:39 +0000

n/m, sorry for the spam --- got it working, apparently "raise NotFound" is a perfectly acceptable M V.

PS: mtac is awesome.


On Sun, Sep 15, 2013 at 4:24 AM, t x <txrev319 AT gmail.com> wrote:
Hi,

  I'm trying to learn Mtac.

  Please consider the following piece of code:

https://gist.github.com/anonymous/6ce40832829aebc2e28b

  This is what I'm happing problem with: In mtac, what is even the statement of the lemma?

  In plain Coq, (with return of option V) I can say: if I do a get after a delete, and the keys are different, I get the old value; otherwise, I get nil.

  In mtac, with return of (M V) -- what is the equivalent statement to make?

  In particular, I'm stuck on the following point: in plain Coq, the key not being in the list genrates a None. In Mtac, it generates an exception Not Found. I'm not sure how "=" is defined in this case.

Thanks!





Archive powered by MHonArc 2.6.18.

Top of Page