coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Adam Koprowski <adam.koprowski AT gmail.com>
- To: dimitrisg7 <dvekris AT hotmail.com>, Edsko de Vries <devriese AT cs.tcd.ie>
- Cc: coq-club AT pauillac.inria.fr
- Subject: Re: [Coq-Club] Data Structures
- Date: Tue, 17 Mar 2009 12:02:48 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=CLu5LCIvWxtZn/52Ep8LEEX9mBNbeM3Uuv43aW7mcs84VI+ZLcQP5ZqQJsA+EAXM1A b6V0HVWFSYDHJ3YU6rUzT43UxtM1Ppu6pEpG3NFTthF3McwewFqFHNdzJUj/YfsW12h2 CntEuUEdY1a+e6i2tR22ebsKyliY5FwbsxH1g=
- List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
On Mon, Mar 16, 2009 at 17:28, dimitrisg7 <dvekris AT hotmail.com> wrote:
On Mon, Mar 16, 2009 at 17:41, Edsko de Vries <devriese AT cs.tcd.ie> wrote:[...] I would be happy if I could have something like:
Inductive data_prop ...
...
...
with Fixpoint func (data_prop).
That's a very good question indeed. I was wondering about that myself. In my work I'll also need an inductively defined tree-like data-structure whose component's type depends on the subtree, hence I'd like to compute it with a (mutually recursive) Fixpoint function.
Are there any theoretical concerns when combining Inductive and Fixpoint definitions or is it not possible to do that in Coq for technical reasons only? Any neat way to side-step this limitation? The obvious one is to turn the Fixpoint function into a relation and define it inductively, but that makes instantiating and working with such data-types much less pleasent...
Are there any theoretical concerns when combining Inductive and Fixpoint definitions or is it not possible to do that in Coq for technical reasons only? Any neat way to side-step this limitation? The obvious one is to turn the Fixpoint function into a relation and define it inductively, but that makes instantiating and working with such data-types much less pleasent...
It has been my experience that giving such definitions as separate hypothesis leads to much simpler proofs; but perhaps others will disagree with me completely :)
I don't understand what you mean by separating hypothesis. How would you separate the definitions if they are mutually recursive??
Cheers,
Adam
--
=====================================================
Adam.Koprowski AT gmail.com, http://www.cs.ru.nl/~Adam.Koprowski
The difference between impossible and possible
lies in determination (Tommy Lasorda)
=====================================================
- [Coq-Club] Data Structures, Dimitris Vekris
- Re: [Coq-Club] Data Structures, Edsko de Vries
- Re: [Coq-Club] Data Structures,
Adam Koprowski
- Re: [Coq-Club] Data Structures,
dimitrisg7
- Re: [Coq-Club] Data Structures,
muad
- Re: [Coq-Club] Data Structures,
dimitrisg7
- Re: [Coq-Club] Data Structures, Edsko de Vries
- Re: [Coq-Club] Data Structures, Adam Koprowski
- Re: [Coq-Club] Data Structures, Edsko de Vries
- Re: [Coq-Club] Data Structures, Adam Chlipala
- Re: [Coq-Club] Data Structures,
muad
- Re: [Coq-Club] Data Structures, dimitrisg7
- Re: [Coq-Club] Data Structures, Frederic Blanqui
- Re: [Coq-Club] Data Structures,
dimitrisg7
- Re: [Coq-Club] Data Structures,
muad
- Re: [Coq-Club] Data Structures,
dimitrisg7
- <Possible follow-ups>
- [Coq-Club] Data structures, dimitrisg7
Archive powered by MhonArc 2.6.16.