Skip to content

Commit

Permalink
fix more
Browse files Browse the repository at this point in the history
  • Loading branch information
liyishuai committed Nov 26, 2024
1 parent ab04edb commit d4b1fcc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion theories/Structures/CoMonadLaws.v
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Section CoMonadLaws.
Variable m : Type -> Type.
Variable C : CoMonad m.

Class CoMonadLaws : Type :=
Class CoMonadLaws :=
{
extend_extract: forall (A B:Type),
extend (B:=A) extract = id ;
Expand Down
2 changes: 1 addition & 1 deletion theories/Structures/Foldable.v
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Section foldable.

Variable Add : A -> T -> T -> Prop.

Class FoldableOk : Type :=
Class FoldableOk :=
{ fold_ind : forall m (M : Monoid m) (ML : MonoidLaws M) (P : m -> Prop) f u,
P (monoid_unit M) ->
(forall x y z,
Expand Down
6 changes: 3 additions & 3 deletions theories/Structures/MonadLaws.v
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Section MonadLaws.
Section with_state.
Context {S : Type}.

Class MonadStateLaws (MS : MonadState S m) : Type :=
Class MonadStateLaws (MS : MonadState S m) :=
{ get_put : bind get put = ret tt :> m unit
; put_get : forall x : S,
bind (put x) (fun _ => get) = bind (put x) (fun _ => ret x) :> m S
Expand All @@ -51,7 +51,7 @@ Section MonadLaws.
bind get (fun _ => aM) = aM
}.

Class MonadReaderLaws (MR : MonadReader S m) : Type :=
Class MonadReaderLaws (MR : MonadReader S m) :=
{ ask_local : forall f : S -> S,
local f ask = bind ask (fun x => ret (f x))
; local_bind : forall {A B} (aM : m A) (f : S -> S) (g : A -> m B),
Expand All @@ -64,7 +64,7 @@ Section MonadLaws.

End with_state.

Class MonadZeroLaws (MZ : MonadZero m) : Type :=
Class MonadZeroLaws (MZ : MonadZero m) :=
{ bind_zero : forall {A B} (f : A -> m B),
bind mzero f = mzero
}.
Expand Down

0 comments on commit d4b1fcc

Please sign in to comment.