Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club]Mutually dependent types

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club]Mutually dependent types


chronological Thread 
  • From: Lionel Elie Mamane <lionel AT mamane.lu>
  • To: Alex Suzuki <as AT cynox.ch>
  • Cc: coq-club AT pauillac.inria.fr
  • Subject: Re: [Coq-Club]Mutually dependent types
  • Date: Tue, 6 Jun 2006 13:49:53 +0200
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

On Tue, Jun 06, 2006 at 11:54:52AM +0200, Alex Suzuki wrote:

> When a situation arises where we have types that depend on each
> other, how do you do write this in Coq?

These are mutually inductive types and get written as

Inductive A: Set :=
  | A1
  | A2 (x: B)
with B: Set :=
  | B1
  | B2 (x: A).

-- 
Lionel





Archive powered by MhonArc 2.6.16.

Top of Page