Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] records

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] records


chronological Thread 
  • From: Alexandre Pilkiewicz <alexandre.pilkiewicz AT polytechnique.org>
  • To: Nuno Gaspar <nmpgaspar AT gmail.com>
  • Cc: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] records
  • Date: Wed, 30 Nov 2011 14:14:57 +0100

Inductive X: Type :=
Con {
    foo    : list nat;
    bar    : list X
    }.

will work.

I let someone else explain why it's not always the case, because I
don't really understand.

And also, I vote for a line or two about that in the documentation :-)

Alexandre


On Wed, Nov 30, 2011 at 2:09 PM, Nuno Gaspar 
<nmpgaspar AT gmail.com>
 wrote:
> X: Type :=
> Con {
>     foo    : list Stuff;
>     bar    : list X
>     }.




Archive powered by MhonArc 2.6.16.

Top of Page