Skip to Content.
Sympa Menu

coq-club - [Coq-Club] relevance of evaluating accessibility arguments

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] relevance of evaluating accessibility arguments


chronological Thread 
  • From: Jean-Francois Monin <jeanfrancois.monin AT rd.francetelecom.com>
  • To: coq-club AT pauillac.inria.fr
  • Subject: [Coq-Club] relevance of evaluating accessibility arguments
  • Date: Mon, 18 Nov 2002 11:53:46 +0100
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

Hello,

Consider the following context:

A, B : Set.
Inductive accessible : A -> Prop := ...
Fixpoint f [x:A; a:(accessible x)] : B := ...

Now, given a closed value x:A and a non canonical proof a:(accessible x),
I would expect that a lazy evaluation of (f x a) reduces to its normal
form without evaluating a.
But it does not seem to be the case. For example, if the following
is an opaque theorem:
   Theorem all_acc : (x:A)(accessible x),
you can observe that (f x (all_acc x)) is not computed in Coq V3.1,
though the value of the second argument is not used the result
(only its existence is important).

On the other hand, it works if a is not the decreasing argument
of the fixpoint f. 

What is happening ?

  Jean-Francois





Archive powered by MhonArc 2.6.16.

Top of Page