Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Problems with monads

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Problems with monads


Chronological Thread 
  • From: Casteran Pierre <pierre.casteran AT labri.fr>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Problems with monads
  • Date: Fri, 21 Jun 2013 11:19:56 +0200
  • Organization: LaBRI - Université Bordeaux 1 - France

Le 21/06/2013 11:03, Casteran Pierre a écrit :
Hi,

I met some problems with the "join" function.
using Cédric définitions (taken from Cocorico),
everything seems OK until I try to apply join to
an instance of an inductive family of types.

Happily, bind, return are OK, but a simple application
of join gives me a universe inconsistency.

Perhaps it's the definition of the MM family that is wrong ?
Is there some standard way to solve this issue ?

Pierre



It works better if the definition of the Monad class
takes bind and return_ as parameters:

Class Monad' (m : Type -> Type) (return_ : forall A, A -> m A)
(bind : forall A, m A -> forall B, (A -> m B) -> m B): Prop :=
{
(* some place for laws *)}.

Sorry for the spam.

Pierre






Archive powered by MHonArc 2.6.18.

Top of Page