coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Eduardo Gimenez <Eduardo.Gimenez AT trusted-logic.fr>
- To: Keiko Nakata <keiko AT kurims.kyoto-u.ac.jp>
- Cc: aspiwack AT lix.polytechnique.fr, coq-club AT pauillac.inria.fr
- Subject: Re: [Coq-Club] Add Relation sequence bisimilar
- Date: Sun, 10 May 2009 11:24:50 -0300
- List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
- Organization: Trusted Logic
Hello,
Keiko Nakata escribió:
> Hello,
>
> Thank you for the explanations.
>
>> My suggestion would be as follows :
>>
>> - Streams (and generally coinductive types) should be defined something
>> along the lines of :
>> CoInductive Stream (A:Type) := { hd : A ; tl : Stream A }
>
> I am specifically interested in colists, i.e., potentially infinite lists
> with Nil and Cons constructors; records seem to me a less natural
> representation for colists. What I imagine is something like:
>
> CoInductive Colists (A:Type) := { hd : A ; tl : Option (Colists A) }
Please notice that in this representation you only obtain non empty,
potentially infinite lists. You do not have the Nil constructor. If you
would like to consider the Nil constructor, you should rather define the
type as follows:
CoInductive Colists (A:Type) := Nil | Cons : (hd : A)(tl: Colists A).
>> - Do not use destruct or case or intros [ ] or whatever similar on a string
>> object
>
> When I deduce a coinductive property by coinduction,
> I case analyze a coinductive object to get a constructor,
> therefore to get a guarded coinduction. If I cannot move to records,
> the absence of case and the likes sounds restrictive. Am I correct?
You can use destruct and case elimination on the representation I
propose you above, and your proof will still respect the guardedness
condition.
Kind regards,
Eduardo.
> Kind regards,
> Keiko
>
>
>
>
>
>
> --------------------------------------------------------
> Bug reports: http://logical.saclay.inria.fr/coq-bugs
> Archives: http://pauillac.inria.fr/pipermail/coq-club
> http://pauillac.inria.fr/bin/wilma/coq-club
> Info: http://pauillac.inria.fr/mailman/listinfo/coq-club
>
- Re: [Coq-Club] Add Relation sequence bisimilar, Arnaud Spiwack
- Re: [Coq-Club] Add Relation sequence bisimilar,
Keiko Nakata
- Re: [Coq-Club] Add Relation sequence bisimilar, Arnaud Spiwack
- Re: [Coq-Club] Add Relation sequence bisimilar, Eduardo Gimenez
- Re: [Coq-Club] Add Relation sequence bisimilar,
Eduardo Gimenez
- RE: [Coq-Club] Add Relation sequence bisimilar,
Georges Gonthier
- Re: [Coq-Club] Add Relation sequence bisimilar,
Keiko Nakata
- Re: [Coq-Club] Add Relation sequence bisimilar, Keiko Nakata
- Re: [Coq-Club] Add Relation sequence bisimilar,
Keiko Nakata
- RE: [Coq-Club] Add Relation sequence bisimilar,
Georges Gonthier
- Re: [Coq-Club] Add Relation sequence bisimilar,
Keiko Nakata
Archive powered by MhonArc 2.6.16.