Shorten definition

This commit is contained in:
Frederik Hanghøj Iversen 2018-02-25 19:03:30 +01:00
parent 9c8bc1b1f4
commit 7cddba97a8

View file

@ -35,19 +35,13 @@ module Monoidal {a b : Level} ( : Category a b) where
private
module R = Functor R
module RR = Functor F[ R R ]
module _ {X : Object} where
IsAssociative' : Set _
IsAssociative' = μ X R.func→ (μ X) μ X μ (R.func* X)
IsInverse' : Set _
IsInverse'
= μ X η (R.func* X) 𝟙
× μ X R.func→ (η X) 𝟙
-- We don't want the objects to be indexes of the type, but rather just
-- universally quantify over *all* objects of the category.
IsAssociative = {X : Object} IsAssociative' {X}
IsInverse = {X : Object} IsInverse' {X}
IsAssociative : Set _
IsAssociative = {X : Object}
μ X R.func→ (μ X) μ X μ (R.func* X)
IsInverse : Set _
IsInverse = {X : Object}
μ X η (R.func* X) 𝟙
× μ X R.func→ (η X) 𝟙
record IsMonad (raw : RawMonad) : Set where
open RawMonad raw public