coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jacques-Henri Jourdan <jacques-henri.jourdan AT inria.fr>
- To: coq-club <coq-club AT inria.fr>
- Subject: [Coq-Club] CoFixpoint guard condition
- Date: Sun, 5 Jan 2014 13:01:48 +0100 (CET)
Hi Coq-Club !
I face a case where the cofixpoint guard condition seems too strong to me. Here is a simplified version:
Require Import Streams.
CoInductive Tr :=
| L : nat -> Tr
| N : nat -> Tr -> Tr -> Tr.
CoFixpoint cfp (tr:Tr) (st:Stream nat) :=
match tr with
| L n => Cons n st
| N n l r =>
Cons n (cfp l (cfp r st))
end.
How can I make this definition accepted by Coq?
Thank you all,
--
JH Jourdan
I face a case where the cofixpoint guard condition seems too strong to me. Here is a simplified version:
Require Import Streams.
CoInductive Tr :=
| L : nat -> Tr
| N : nat -> Tr -> Tr -> Tr.
CoFixpoint cfp (tr:Tr) (st:Stream nat) :=
match tr with
| L n => Cons n st
| N n l r =>
Cons n (cfp l (cfp r st))
end.
How can I make this definition accepted by Coq?
Thank you all,
--
JH Jourdan
- [Coq-Club] CoFixpoint guard condition, Jacques-Henri Jourdan, 01/05/2014
- Re: [Coq-Club] CoFixpoint guard condition, Daniel Schepler, 01/05/2014
- Re: [Coq-Club] CoFixpoint guard condition, Daniel Schepler, 01/05/2014
- Re: [Coq-Club] CoFixpoint guard condition, Gabriel Scherer, 01/08/2014
- Re: [Coq-Club] CoFixpoint guard condition, Daniel Schepler, 01/05/2014
Archive powered by MHonArc 2.6.18.