coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Claudio Sacerdoti Coen <sacerdot AT cs.unibo.it>
- To: roconnor AT theorem.ca
- Cc: Coq Club <coq-club AT pauillac.inria.fr>
- Subject: Re: [Coq-Club] Impredicate Set requirement.
- Date: Wed, 9 Mar 2005 18:07:50 +0100
- List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
> I really want to define
>
> Inductive Lambda : Set -> Set :=
> | var : forall A:Set, A -> Lambda A
> | app : forall A:Set, Lambda A -> Lambda A -> Lambda A
> | lambda : forall A:Set, Lambda (option A) -> Lambda A.
>
> which is almost uniformly parametric polymorpic. This definition strikes
> me as just as safe as polymorphic lists.
>
> I cannot fix this my changing Set to Type because then the statement of
> the join function:
>
> Definition joinStatement :=
> forall (T:Type)(l:Lambda (Lambda T)),(Lambda T).
>
> causes a universe inconsistency.
The inductive definition Lambda you give above obtained replacing Set with
Type and the joinStatement above does not cause a universe inconsistency.
The universe inconsistency must be generated by something else you are
doing, and it may be possible to avoid it.
Regards,
C.S.C.
--
----------------------------------------------------------------
Real name: Claudio Sacerdoti Coen
Doctor in Computer Science, University of Bologna
E-mail:
sacerdot AT cs.unibo.it
http://www.cs.unibo.it/~sacerdot
----------------------------------------------------------------
- [Coq-Club] non-uniform parametric types challenge, roconnor
- Re: [Coq-Club] non-uniform parametric types challenge, roconnor
- [Coq-Club] Re: non-uniform parametric types challenge,
roconnor
- Re: [Coq-Club] Re: non-uniform parametric types challenge, roconnor
- [Coq-Club] Impredicate Set requirement.,
roconnor
- [Coq-Club] Non-uniform parametric inductive types,
roconnor
- Re: [Coq-Club] Non-uniform parametric inductive types, Christine Paulin
- Re: [Coq-Club] Non-uniform parametric inductive types,
Hugo Herbelin
- Re: [Coq-Club] Non-uniform parametric inductive types, Bas Spitters
- Re: [Coq-Club] Impredicate Set requirement., Claudio Sacerdoti Coen
- [Coq-Club] Non-uniform parametric inductive types,
roconnor
Archive powered by MhonArc 2.6.16.