Skip to Content.
Sympa Menu

coq-club - [Coq-Club] CoFixpoint guard condition

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] CoFixpoint guard condition


Chronological Thread 
  • 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



Archive powered by MHonArc 2.6.18.

Top of Page