Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club]Lifting dependent types to option types

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club]Lifting dependent types to option types


chronological Thread 
  • From: roconnor AT theorem.ca
  • To: Fabrice Lemercier <nouvid-coq AT yahoo.fr>
  • Cc: coq-club AT pauillac.inria.fr
  • Subject: Re: [Coq-Club]Lifting dependent types to option types
  • Date: Mon, 23 Jan 2006 03:26:17 -0500 (EST)
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

On Mon, 23 Jan 2006, Fabrice Lemercier wrote:

>   Parameters (A:Set)(B:A->Set)(f:forall a, B
> a)(a:option A).
>
> And then I try
>
>   Check (match a with None => None | Some a' => Some
> (f a') end).

This doesn't work because the type of Some (f a') is option (B a'), so the
type of the entire match expression ought to be option (B a'), but this is
impossible because the a' would escape its scope of the second case of
the match clause.

-- 
Russell O'Connor                                      <http://r6.ca/>
``All talk about `theft,''' the general counsel of the American Graphophone
Company wrote, ``is the merest claptrap, for there exists no property in
ideas musical, literary or artistic, except as defined by statute.''




Archive powered by MhonArc 2.6.16.

Top of Page