Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Defining data types.

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Defining data types.


chronological Thread 
  • From: dimitrisg7 <dvekris AT hotmail.com>
  • To: coq-club AT pauillac.inria.fr
  • Subject: [Coq-Club] Defining data types.
  • Date: Mon, 30 Mar 2009 08:25:37 -0700 (PDT)
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

Hello!

I have the following inductive definition:

Inductive test : Type :=
| test1 : nat -> Type
| test2 : nat -> nat -> Type

and I want to define a data type, which is a list of "test" objects. Some
first X items of that list have "test1" as their constructor and the rest
have "test2" as their constructor. Is there a flexible way to define this? I
would rather not break the inductive definition "test" into two pieces.

Thanks everyone!
-- 
View this message in context: 
http://www.nabble.com/Defining-data-types.-tp22785725p22785725.html
Sent from the Coq mailing list archive at Nabble.com.





Archive powered by MhonArc 2.6.16.

Top of Page