Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Modules and Inductive types

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Modules and Inductive types


chronological Thread 
  • From: Christian Doczkal <doczkal AT ps.uni-sb.de>
  • To: coq-club AT pauillac.inria.fr
  • Subject: [Coq-Club] Modules and Inductive types
  • Date: Wed, 09 Dec 2009 16:36:27 +0100
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

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





Archive powered by MhonArc 2.6.16.

Top of Page