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: jean-francois.monin AT imag.fr
  • To: roconnor AT theorem.ca
  • Cc: nouvid-coq AT yahoo.fr, "Coq-club AT pauillac.inria.fr Club" <coq-club AT pauillac.inria.fr>
  • Subject: Re: [Coq-Club]Lifting dependent types to option types
  • Date: Mon, 23 Jan 2006 14:06:44 +0100
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

You're right, I meant:

Definition lift_T : Set :=
  match a with None => option empty | Some a' => option (B a') end.

Thanks,
  JF

roconnor AT theorem.ca
 a ecrit :
 > On Mon, 23 Jan 2006 
 > jean-francois.monin AT imag.fr
 >  wrote:
 > 
 > > Matter of taste, since option empty is isomorphic to unit.
 > > One may prefer to return option something in all cases.
 > 
 > Ah.  You omitted `option' and just wrote `empty' in your mail, so the code
 > didn't work for me.
 > 
 > -- 
 > 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