coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Randy Pollack <rpollack AT inf.ed.ac.uk>
- To: julien forest <forest AT ensiie.fr>
- Cc: coq-club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] Function command
- Date: Mon, 25 Apr 2011 08:59:50 -0400
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=awEoLJ77+MUZ/qwZR8r3rYojWz3aZFVWnCfbiz67wTwhu3fZ51zuDDLJJfKsvBT7KQ SKqXznmk2DARFn7tdLQ+TA6xzT195oZrlYqY7EniP2jIXlV8jtpRbQ11UTjBJBodolfK xB1/f3JUd20cVTKLJmt4jmltIzdYJXbU8GOQc=
Julien is right:
> You probably have saved your obligation proof by Qed. Try to end it
> with Defined instead.
That was the problem. Perhaps the Reference Manual could mention this.
Thanks.
Randy
--
On Mon, Apr 25, 2011 at 5:50 AM, julien forest
<forest AT ensiie.fr>
wrote:
> Hi Randy,
>
>
> On Sun, 24 Apr 2011 12:10:01 -0400
> Randy Pollack
>Â <rpollack AT seas.harvard.edu>
> wrote:
>
>> I tried the "Function" command for the first time, with a simple
>> nat-valued measure.
>>
>> Function psub (P:bbS) (X:PP) (M:bbS) {measure bbS_size M} : bbS :=
>> match M with
>> | par Y => (if PPeq Y X then P else M)
>> | var _ => M
>> | app Q N => app (psub P X Q) (psub P X N)
>> | lam n N => lam n (psub P X (rename n X N))
>> end.
>>
>> (The point is that [bbS_size (rename n X N)] is the same as [bbS_size
>> N].)
>>
>> I proved the generated goals without any problem (using "omega").
>>
>> I want psub to evaluate by computation as if I had defined it by
>> Fixpoint, but this doesn't seem to work; blocked by "psub_terminate".
>
> You probably have saved your obligation proof by Qed. Try to end it
> with Defined instead.
>
>> By playing around, I found that "psub_F psub" evaluates, but how can I
>> use this?
>>
>> I guess there are also propositional equations proved somewhere; is
>> that how the defined function psub is intended to be used?
>
> Indeed, Function generates psub_F (the functionnal of psub),
> psub_terminate (its proof obligations), psub itself, psub_equation (an
> equation lemma), three induction lemma (one for each sort) and two
> lemmas allowing you to use functional inversion.
>
> Best regards,
> Julien Forest
>
>
- [Coq-Club] Function command, Randy Pollack
- Re: [Coq-Club] Function command,
julien forest
- Re: [Coq-Club] Function command, Randy Pollack
- [Coq-Club] Universal quantified hypothesis,
Marko Malikoviæ
- Re: [Coq-Club] Universal quantified hypothesis,
AUGER Cedric
- Re: [Coq-Club] Universal quantified hypothesis, Marko Malikoviæ
- Re: [Coq-Club] Universal quantified hypothesis,
AUGER Cedric
- [Coq-Club] Universal quantified hypothesis,
Marko Malikoviæ
- Re: [Coq-Club] Function command, Randy Pollack
- Re: [Coq-Club] Function command,
julien forest
Archive powered by MhonArc 2.6.16.