coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Keiko Nakata <keiko.nakata AT FireEye.com>
- To: "coq-club AT inria.fr" <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] "Extract Constant" inside a parameterised module
- Date: Thu, 19 Nov 2015 14:11:22 +0000
- Accept-language: en-GB, en-US
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=keiko.nakata AT FireEye.com; spf=Pass smtp.mailfrom=keiko.nakata AT fireeye.com; spf=None smtp.helo=postmaster AT esa2.fireeye.iphmx.com
- Domainkey-signature: s=corporate; d=fireeye.com; c=nofws; q=dns; h=X-IronPort-AV:Received:Received:From:To:Subject: Thread-Topic:Thread-Index:Date:Message-ID:Accept-Language: Content-Language:X-MS-Has-Attach:X-MS-TNEF-Correlator: x-originating-ip:Content-Type:Content-ID: Content-Transfer-Encoding:MIME-Version; b=VyD+qwhwzeNpD824ZwD6LEdfPh5AZj3EJJhvE9/0UovNU5/m0wp6H50o 60hqXUqRbX8flHqZasja+HycJ4GZSwKzoq0/aKDC6VzhaHdfEahsjldFR 6Hlf2y4Ns9089xW4k5lFEl2/RQm2qjgginwMrxPMGEnZIgWfy+qkzTmyU I=;
- Ironport-phdr: 9a23:p9t0nxD/CQD6mgnSzqG1UyQJP3N1i/DPJgcQr6AfoPdwSP79pcbcNUDSrc9gkEXOFd2CrakU1qyI6Ou9CCQp2tWojjMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpQAbFhi3DwdpPOO9QteU1JTqkb7psMCCKyxzxxODIppKZC2sqgvQssREyaBDEY0WjiXzn31TZu5NznlpL1/A1zz158O34YIxu38I46FppIZ8VvCwdKMhCLdcET4OMmYv5cStuwOJBV+E4WJZWWELmDJJBRLE5Vf0RMGinDH9s79e1SiZOoXQRLM9RT3qu6RmSRzvziEONDcl+Un5i9Z9obNW5hmmokoskMbvfIiJOa8mLevmdtQASD8ZUw==
Hi,
>I have a problem in realising axioms inside functors.
>"Extract Constant" is ignored when inside a functor.
>
>---
>
> Module N (X:A).
> Parameter n : bool.
> (* Does not work *)
> Extract Constant n => "true".
> End N.
>
> Module A_1.
> Definition a := true.
> End A_1.
>
> Module NA_1 := N A_1.
>
> (* Does not work either *)
> Extract Constant NA_1.n => "true".
>
>---
The definition of Module Type A was missing.
---
Module Type A.
Parameter a : bool.
End A.
---
The output of 'Extraction Library' gives
---
open Datatypes
module type A =
sig
val a : bool
end
module N =
functor (X:A) ->
struct
(** val n : bool **)
let n =
failwith "AXIOM TO BE REALIZED"
end
module A_1 =
struct
(** val a : bool **)
let a =
Coq_true
end
module NA_1 = N(A_1)
---
where 'Extract Constant' is simply ignored.
Best regards,
Keiko
This email and any attachments thereto may contain private, confidential,
and/or privileged material for the sole use of the intended recipient. Any
review, copying, or distribution of this email (or any attachments thereto)
by others is strictly prohibited. If you are not the intended recipient,
please contact the sender immediately and permanently delete the original and
any copies of this email and any attachments thereto.
- [Coq-Club] "Extract Constant" inside a parameterised module, Keiko Nakata, 11/19/2015
- <Possible follow-up(s)>
- Re: [Coq-Club] "Extract Constant" inside a parameterised module, Keiko Nakata, 11/19/2015
Archive powered by MHonArc 2.6.18.