Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Co-inductive Streams vs. Functions

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Co-inductive Streams vs. Functions


Chronological Thread 
  • From: Gregory Malecha <gmalecha AT gmail.com>
  • To: Coq Club <coq-club AT inria.fr>
  • Subject: [Coq-Club] Co-inductive Streams vs. Functions
  • Date: Mon, 7 Dec 2015 10:11:28 -0800
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=gmalecha AT gmail.com; spf=Pass smtp.mailfrom=gmalecha AT gmail.com; spf=None smtp.helo=postmaster AT mail-yk0-f177.google.com
  • Ironport-phdr: 9a23:UsDerhx8uRKXvgvXCy+O+j09IxM/srCxBDY+r6Qd0e0UIJqq85mqBkHD//Il1AaPBtWFrasdwLOO7ujJYi8p39WoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6kO74TNaIBjjLw09fr2zQd6MyZ3unLnqptX6WEZhunmUWftKNhK4rAHc5IE9oLBJDeIP8CbPuWZCYO9MxGlldhq5lhf44dqsrtY4q3wD89pozcNLUL37cqIkVvQYSW1+ayFmrPHs4DLEVEOk4mYWGjEdlQMNCAzY5jn7WI3wu230rLwu9jOdOJjZV707Xi6zp4JiTBLjiC5PYzE8+WXagcx5pK1eqROl4Rd4xtiHM8muKPNic/aFLpshTm1bU5MUDnQZDw==

Hello --

I'm wondering if someone can summarize the *theoretical* differences between the two definitions:

CoInductive trace (state : Type) : Type :=
| Cons : state -> trace state -> trace state.

and

Definition trace (state : Type) : Type := nat -> state.

To reason about the first I use co-induction and I do not need functional extensionality. The second definition requires functional extensionality in most cases. Other than this, are there reasons to prefer one over the other from a theoretical point of view?

Thanks.

--
gregory malecha



Archive powered by MHonArc 2.6.18.

Top of Page