Split out much more structure (#37)

This commit is contained in:
Patrick Stevens
2019-08-18 14:57:41 +01:00
committed by GitHub
parent 69389bb889
commit 1f26064502
52 changed files with 2137 additions and 2014 deletions

13
Monoids/Definition.agda Normal file
View File

@@ -0,0 +1,13 @@
{-# OPTIONS --safe --warning=error --without-K #-}
open import LogicalFormulae
open import Functions
open import Agda.Primitive using (Level; lzero; lsuc; _⊔_)
module Monoids.Definition where
record Monoid {a : _} {A : Set a} (Zero : A) (_+_ : A A A) : Set a where
field
associative : (a b c : A) a + (b + c) (a + b) + c
idLeft : (a : A) Zero + a a
idRight : (a : A) a + Zero a