Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Module in Coq : what about include ?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Module in Coq : what about include ?


chronological Thread 
  • From: David Pichardie <david.pichardie AT irisa.fr>
  • To: coq-club AT pauillac.inria.fr
  • Subject: [Coq-Club] Module in Coq : what about include ?
  • Date: Wed, 01 Dec 2004 16:09:47 +0100
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

Hi,

Is there a simple way in Coq to simulate the ocaml include command ?

The only solution, I found for the moment is to copy all definitions.

Example :

Module Type SIG.

Parameter A : Set.
Parameter a1 a2 : A.

End SIG.

Module F (M:SIG) <: SIG.

Definition A := M.A.    (************************)
Definition a1 := M.a1.  (*     instead of include M      *)
Definition a2 := M.a2.  (************************)

(* ... *)

End F.






Archive powered by MhonArc 2.6.16.

Top of Page