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 private
module R = Functor R module R = Functor R
module RR = Functor F[ R R ] IsAssociative : Set _
module _ {X : Object} where IsAssociative = {X : Object}
IsAssociative' : Set _ μ X R.func→ (μ X) μ X μ (R.func* X)
IsAssociative' = μ X R.func→ (μ X) μ X μ (R.func* X) IsInverse : Set _
IsInverse' : Set _ IsInverse = {X : Object}
IsInverse' μ X η (R.func* X) 𝟙
= μ X η (R.func* X) 𝟙 × μ 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}
record IsMonad (raw : RawMonad) : Set where record IsMonad (raw : RawMonad) : Set where
open RawMonad raw public open RawMonad raw public