Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Re: Extraction into GADT

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Re: Extraction into GADT


chronological Thread 
  • From: "Lukasz Stafiniak" <lukstafi AT gmail.com>
  • To: "Pierre Letouzey" <Pierre.Letouzey AT pps.jussieu.fr>
  • Cc: coq-club AT pauillac.inria.fr
  • Subject: Re: [Coq-Club] Re: Extraction into GADT
  • Date: Wed, 17 Oct 2007 23:07:21 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=PB9OI3cOWnXZdlDc7DG9J76nbTkzamh8oEOI7iTUoWhA6FyRs0YiNHwAQLGkgWAzoO7UbDnPsdBYE0peB4mFqkKvKCX72b7HWyM9J7Vsw7iGiH8CQpxTdigZB9lBIJ7Nt279Zl7lIKxT5k5vT586+iwm0+cCVF2Zutqck6TuSJo=
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

On 10/15/07, Pierre Letouzey 
<Pierre.Letouzey AT pps.jussieu.fr>
 wrote:
> On Sun, Oct 14, 2007 at 06:18:39PM +0200, Lukasz Stafiniak wrote:
> > OK, it seems it would defy type erasure, so not much sense in thinking 
> > about it.
> >
> By the way, could you commment more on your point concerning
> "defy type erasure" ?
>
I was too quick and a bit provocative. Types seem still (always?) to
be computationally relevant when they are needed for nonparametric
polymorphism (e.g. (forall A) A -> A translates into typerepr('a) ->
'a -> 'a; the type argument cannot be erased).

Does someone have a simple example, where "Obj.magic" cannot be
removed by translating into a GADT type "relaxed" w.r.t. original?
(Translation doesn't introduce new computations compared to generic
translation, and types ensure only "type preservation" and "progress",
not logical invariants).

Thanks,
£ukasz





Archive powered by MhonArc 2.6.16.

Top of Page