mirror of
https://github.com/Smaug123/agdaproofs
synced 2025-10-12 15:18:40 +00:00
Split out much more structure (#37)
This commit is contained in:
13
Monoids/Definition.agda
Normal file
13
Monoids/Definition.agda
Normal 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
|
Reference in New Issue
Block a user