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: Paolo Herms <paolo.herms AT inria.fr>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] records
  • Date: Wed, 30 Nov 2011 14:15:53 +0100

Try this:

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

-- 
Paolo Herms
PhD Student - CEA Software Safety Lab. / INRIA ProVal Project
Paris, France


On Wednesday 30 November 2011 14:09:39 Nuno Gaspar wrote:
> Hello.
> 
> From what I saw, recursive records are not allowed in Coq. So one cannot do
> something like:
> 
> Record X: Type :=
> Con {
>     foo    : list Stuff;
>     bar    : list X
>     }.
> 
> Is there any way to go around this restriction? I mean what is the standard
> approach for a coq user to follow whenever faced with this situation?
> 
> Thank you!



Archive powered by MhonArc 2.6.16.

Top of Page