coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Chris Casinghino <chris.casinghino AT gmail.com>
- To: Yves Bertot <Yves.Bertot AT sophia.inria.fr>
- Cc: coq-club AT inria.fr, Ralph Matthes <Ralph.Matthes AT irit.fr>
- Subject: Re: [Coq-Club] recursively non-uniform parameters in inductive types
- Date: Thu, 20 May 2010 11:43:14 -0400
- 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=WE2QPUQLxWX9Z/L/j79Pxm83fhyLbpRv7pJnqsF+mcTApyujxkkP2XtmiPQxFzRFgm dI1NWVXQiKJIJkHZ6ZVCR7ILjoQXlfngQwD6RNeU2mJJ9h87h5OAJufXqVeVa0eTXNC0 T2avV3UDkx+6h7KMzm1l+64Ix7R7RM5l2cAWI=
Hello Yves,
> You should look at the pattern-matching constructs (for instance the value
> of hlist_rect), the fact that the parameter does not occur among the
> constructors' arguments plays a role.
I am confused. Before sending my initial email, I observed that
hlist_rect doesn't change if I make A an index and an argument to each
constructor. That is, this alternate version of hlist is given
an identical hlist_rect (up to alpha-conversion):
Inductive hlist : Type -> Type :=
| HNil : forall A : Type, hlist A
| HCons : forall A : Type, forall B, A -> hlist B -> hlist A.
This was the source of my confusion, since I thought the point of
parameters was to get the nicer hlist_rect, as you suggest. Am I
missing something?
> The only example using this feature that I know of is in a paper by
> Ralph Matthes.
Thank you for this reference and for the quick response. I will have
a look
--Chris
- [Coq-Club] recursively non-uniform parameters in inductive types, Chris Casinghino
- <Possible follow-ups>
- [Coq-Club] recursively non-uniform parameters in inductive types,
Chris Casinghino
- Re: [Coq-Club] recursively non-uniform parameters in inductive types,
Yves Bertot
- Re: [Coq-Club] recursively non-uniform parameters in inductive types, Chris Casinghino
- Re: [Coq-Club] recursively non-uniform parameters in inductive types,
Matthieu Sozeau
- Re: [Coq-Club] recursively non-uniform parameters in inductive types, Chris Casinghino
- Re: [Coq-Club] recursively non-uniform parameters in inductive types, Chris Casinghino
- Re: [Coq-Club] recursively non-uniform parameters in inductive types,
Matthieu Sozeau
- Re: [Coq-Club] recursively non-uniform parameters in inductive types, Chris Casinghino
- Re: [Coq-Club] recursively non-uniform parameters in inductive types, Hugo Herbelin
- Re: [Coq-Club] recursively non-uniform parameters in inductive types,
Yves Bertot
Archive powered by MhonArc 2.6.16.