Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Accessing Class members

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Accessing Class members


Chronological Thread 
  • From: Durward McDonell <Durward.McDonell AT jhuapl.edu>
  • To: <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] Accessing Class members
  • Date: Wed, 13 Jan 2016 10:28:44 -0500
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=Durward.McDonell AT jhuapl.edu; spf=Pass smtp.mailfrom=Durward.McDonell AT jhuapl.edu; spf=Pass smtp.helo=postmaster AT piper.jhuapl.edu
  • Ironport-phdr: 9a23:QK5fRB29A8V1kRknsmDT+DRfVm0co7zxezQtwd8ZsegSI/ad9pjvdHbS+e9qxAeQG96LtbQU1KGI4ujJYi8p39WoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6kO74TNaIBjjLw09fr2zQd6MyZTonL7js7ToICx2xxOFKYtoKxu3qQiD/uI3uqBFbpgL9x3Sv3FTcP5Xz247bXianhL7+9vitMU7q3cY6Lod8JsUWqLjOq88ULZwDTI8Mmlz6te95jfZSg7aymYGTWwMnlJtCCTC6hz+Wt+lnjbgqeNn1G+/NuHxS70wXRyg77piUBuuhSsaYW1quFrLg9B92foI6CmqoAZyltbZ


Thank you. I actually figured this out, mostly through random
thrashing, but it makes sense now.

On 01/13/2016 01:29 AM, Arnaud Spiwack wrote:
> ZnZ.compare ZMCT.ops
>
> should do the trick: class projections are in the module that defined
> the class.
>
> On 12 January 2016 at 17:58, Durward McDonell
> <Durward.McDonell AT jhuapl.edu
>
> <mailto:Durward.McDonell AT jhuapl.edu>>
> wrote:
>
>
> I should have posted a working foo.v. Here it is:
>
> Require Import ZModulo.
> Require Import ZArith.
> Require Import DoubleType.
> Require Import CyclicAxioms.
>
> Set Implicit Arguments.
>
> Open Scope positive_scope.
>
> Module PNO : PositiveNotOne.
> Definition p := 3.
> Lemma not_one : p <> 1%positive.
> Proof.
> unfold p.
> discriminate.
> Qed.
> End PNO.
>
> Close Scope positive_scope.
> Open Scope Z_scope.
>
> Module ZMCT <: CyclicType := ZModuloCyclicType PNO.
>
> At this point, ZMCT.t, ZMCT.ops, and ZMCT.specs will all happily let
> you Print their types, but you cannot access any of the members of
> ZMCT.ops or ZMCT.specs, as far as I can tell.
>
> --
> Durward McDonell
>
> durward.mcdonell AT jhuapl.edu
>
> <mailto:durward.mcdonell AT jhuapl.edu>
> 240-228-2690 <tel:240-228-2690> (DC)
> 443-778-2690 <tel:443-778-2690> (Balt.)
>
>


--
Durward McDonell
durward.mcdonell AT jhuapl.edu
240-228-2690 (DC)
443-778-2690 (Balt.)

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature




Archive powered by MHonArc 2.6.18.

Top of Page