Skip to content

Commit

Permalink
feat(category_theory/monad): mark monad lemmas as reassoc (#5190)
Browse files Browse the repository at this point in the history
  • Loading branch information
b-mehta committed Dec 2, 2020
1 parent a84d7a7 commit 3f61e54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/category_theory/monad/basic.lean
Expand Up @@ -29,7 +29,7 @@ class monad (T : C ⥤ C) :=
restate_axiom monad.assoc'
restate_axiom monad.left_unit'
restate_axiom monad.right_unit'
attribute [simp] monad.left_unit monad.right_unit
attribute [simp, reassoc] monad.left_unit monad.right_unit

notation `η_` := monad.η
notation `μ_` := monad.μ
Expand All @@ -51,7 +51,7 @@ class comonad (G : C ⥤ C) :=
restate_axiom comonad.coassoc'
restate_axiom comonad.left_counit'
restate_axiom comonad.right_counit'
attribute [simp] comonad.left_counit comonad.right_counit
attribute [simp, reassoc] comonad.left_counit comonad.right_counit

notation `ε_` := comonad.ε
notation `δ_` := comonad.δ
Expand Down

0 comments on commit 3f61e54

Please sign in to comment.