coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Adam Koprowski <adam.koprowski AT gmail.com>
- To: Christian Doczkal <doczkal AT ps.uni-sb.de>
- Cc: coq-club AT pauillac.inria.fr
- Subject: Re: [Coq-Club] Modules and Inductive types
- Date: Wed, 9 Dec 2009 16:47:58 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=AWKMjRJrZBVKGwphHiJsxG8JScHg4V1VNXb2QO+X5QD8+0hw6sjB097jY+qgM/WCG7 K8tecyhkwIkg2uvBB8Gw7/9gAf7hCDY9MRNZA+zcZzU8sqs0XE1fqCjtAPr+0KlGzQ2p xIWtVBx0/cu8csFA7TevBJdp/KoCZGLgXXtnU=
- List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
Hi Christian,
Try:
Module Type S.Parameter X : Type.End S.Module False : S.Inductive XX := .Definition X := XX.End False.
That's what the hint was trying to tell you, I think.
Cheers,
Adam
On Wed, Dec 9, 2009 at 16:36, Christian Doczkal <doczkal AT ps.uni-sb.de> wrote:
I just stumbled across the following:
Module Type S.
Parameter X : Type.
End S.
Module False : S.
Inductive X := .
End False.
(* Error: The kernel does not recognize yet that a parameter can be
instantiated by an inductive type. Hint: you can rename the inductive
type and give a definition to map the old name to the new name. *)
(* Of course one can circumvent the problem like this, but it removes a
lot of the structuring effect one would like Modules to have ...
Inductive FalseT : Type := .
Module FT : S.
Definition X := FalseT.
Definition R := @eq FalseT.
End FT.
Is there any work being done on the subject?
Are there any theoretical issues?
--
Regards
Christian Doczkal
--------------------------------------------------------
Bug reports: http://logical.saclay.inria.fr/coq-bugs
Archives: http://pauillac.inria.fr/pipermail/coq-club
http://pauillac.inria.fr/bin/wilma/coq-club
Info: http://pauillac.inria.fr/mailman/listinfo/coq-club
--
Adam Koprowski [http://www.cs.ru.nl/~Adam.Koprowski]
R&D @ MLstate [15 rue Berlier, 75013 Paris, France]
- [Coq-Club] Modules and Inductive types, Christian Doczkal
- Re: [Coq-Club] Modules and Inductive types, Adam Koprowski
- Re: [Coq-Club] Modules and Inductive types, AUGER
Archive powered by MhonArc 2.6.16.