We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aeb71ca commit 6fdc358Copy full SHA for 6fdc358
theories/Structures/MonadLaws.v
@@ -22,6 +22,8 @@ Section MonadLaws.
22
Class MonadLaws :=
23
{ bind_of_return : forall {A B} (a : A) (f : A -> m B),
24
bind (ret a) f = f a
25
+ ; return_of_bind : forall {A} (aM: m A),
26
+ bind aM ret = aM
27
; bind_associativity :
28
forall {A B C} (aM:m A) (f:A -> m B) (g:B -> m C),
29
bind (bind aM f) g = bind aM (fun a => bind (f a) g)
0 commit comments