coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: "John Wiegley" <johnw AT newartisans.com>
- To: coq-club AT inria.fr
- Subject: [Coq-Club] Free monads and strict positivity
- Date: Mon, 06 Oct 2014 15:20:47 -0500
- Organization: New Artisans LLC
Hello,
I'm working on formalizing the contents of "Kleisli arrows of outrageous
fortune" (https://github.com/jwiegley/coq-haskell/blob/master/Conor.v), and
while I'm most of the way through, I'm having difficulty attempting to encode
the free monad using a modified W-type. Following an example of something
Conor posted in Coq-club long ago, I've tried this:
Inductive Kleene {I} (F : (I → Type) → I → Type) (p : I → Type) (i : I) :=
| Ret : p i → Kleene F p i
| Do : (forall q, F q i) → Kleene F p i.
This is around line 970.
However, I have a strong suspicion this can't be right. Can anyone help me to
find a better direction?
Thanks,
John
- [Coq-Club] Free monads and strict positivity, John Wiegley, 10/06/2014
- Re: [Coq-Club] Free monads and strict positivity, Pierre-Evariste Dagand, 10/06/2014
- Re: [Coq-Club] Free monads and strict positivity, John Wiegley, 10/08/2014
- Re: [Coq-Club] Free monads and strict positivity, Pierre-Evariste Dagand, 10/08/2014
- [Coq-Club] Fwd: Free monads and strict positivity, Pierre-Evariste Dagand, 10/08/2014
- Re: [Coq-Club] Free monads and strict positivity, Pierre-Evariste Dagand, 10/08/2014
- Re: [Coq-Club] Free monads and strict positivity, John Wiegley, 10/08/2014
- Re: [Coq-Club] Free monads and strict positivity, Daniel Schepler, 10/07/2014
- Re: [Coq-Club] Free monads and strict positivity, Casteran Pierre, 10/07/2014
- Re: [Coq-Club] Free monads and strict positivity, Pierre-Evariste Dagand, 10/06/2014
Archive powered by MHonArc 2.6.18.