coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Christopher Ernest Sally <christopherernestsally AT gmail.com>
- To: coq-club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] Incompatible Module Types
- Date: Fri, 13 Jun 2014 07:16:14 +0800
Hi Cedric
Oh, you mean like forall (x y : nat) etc etc? Then both x and y are nats?
I don't quite understand how Import works, but if I run this script
"Import" as a module doesn't seem to show up in C. And while one can "Check" T.a in both B & C, you can only use it in C.
What I meant in the previous email is that the import would allow us to have the variables, k v and m, which would serve as abstract types for Interface', but still allow us to make them concrete later in Interface. (but _how_ that works, I'm not sure)Oh, you mean like forall (x y : nat) etc etc? Then both x and y are nats?
I don't quite understand how Import works, but if I run this script
Module Type A.
Parameter a : Type.
End A.
Module Type B (T: A).
Check T.a.
(*Check Import.a. *) (* Error: The reference Import.a was not found in the current environment. *)
(*Parameter x : a.*)(*Error: The reference a was not found in the current environment.*)
End B. Print Module Type B.
Module Type C (Import T: A).
Parameter x : a.
End C. Print Module Type C.
Module Type D (Import : A). (*Gives an error. Seems "Import" is reserved *)
"Import" as a module doesn't seem to show up in C. And while one can "Check" T.a in both B & C, you can only use it in C.
Warm regards
Chris
- [Coq-Club] Incompatible Module Types, Christopher Ernest Sally, 06/04/2014
- Re: [Coq-Club] Incompatible Module Types, Beta Ziliani, 06/04/2014
- Re: [Coq-Club] Incompatible Module Types, Christopher Ernest Sally, 06/11/2014
- Re: [Coq-Club] Incompatible Module Types, Cedric Auger, 06/11/2014
- Re: [Coq-Club] Incompatible Module Types, Christopher Ernest Sally, 06/13/2014
- Re: [Coq-Club] Incompatible Module Types, Cedric Auger, 06/13/2014
- Re: [Coq-Club] Incompatible Module Types, Christopher Ernest Sally, 06/13/2014
- Re: [Coq-Club] Incompatible Module Types, Cedric Auger, 06/13/2014
- Re: [Coq-Club] Incompatible Module Types, Christopher Ernest Sally, 06/13/2014
- Re: [Coq-Club] Incompatible Module Types, Cedric Auger, 06/11/2014
- Re: [Coq-Club] Incompatible Module Types, Christopher Ernest Sally, 06/11/2014
- Re: [Coq-Club] Incompatible Module Types, Beta Ziliani, 06/04/2014
Archive powered by MHonArc 2.6.18.