coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: roconnor AT theorem.ca
- To: Coq Club <coq-club AT pauillac.inria.fr>
- Subject: [Coq-Club] Question about Modules.
- Date: Sat, 12 Mar 2005 12:58:20 -0500 (EST)
- List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
I am trying to understand Coq's Module system. I want to do something
analogous to having a Module Type for fields. Having a Module Type for
vector spaces with a field parameter, and having a Fuctor taking a vector
space to the dual vector space.
Module Type Field.
Parameter K:Set.
Parameter plus: K -> K -> K.
(*...*)
End Field.
Module Type VectorSpace (F:Field).
Parameter V:Set.
Parameter plus: V -> V -> V.
Parameter scale: F.K -> V -> V.
(*...*)
End VectorSpace.
Module DualSpace (F:Field) (V:VectorSpace F) : VectorSpace F.
Definition V := {f:V.V->F.K | linear f}
(*...*)
End DualSpace.
Coq complains at my definition of DualSpace. It is entirely possible I
have no idea what I am doing.
--
Russell O'Connor <http://r6.ca/>
``All talk about `theft,''' the general counsel of the American Graphophone
Company wrote, ``is the merest claptrap, for there exists no property in
ideas musical, literary or artistic, except as defined by statute.''
- [Coq-Club] Question about Modules., roconnor
- Re: [Coq-Club] Question about Modules.,
anoun
- Re: [Coq-Club] Question about Modules.,
Robert Dockins
- Re: [Coq-Club] Question about Modules., Pierre Casteran
- Re: [Coq-Club] Question about Modules.,
Robert Dockins
- Re: [Coq-Club] Question about Modules., Stefan Karrmann
- Re: [Coq-Club] Question about Modules.,
Carlos.SIMPSON
- Re: [Coq-Club] Question about Modules., Hugo Herbelin
- Re: [Coq-Club] Question about Modules.,
anoun
Archive powered by MhonArc 2.6.16.