Idris2Doc : Algebra.Monoid

Algebra.Monoid

(source)

Definitions

interfaceLMonoid : Type->Type
  This interface is a witness that for a
type `a` the axioms of a monoid hold: `(<+>)` is associative
with `neutral` being the neutral element.

Parameters: a
Constraints: Monoid a
Methods:
0appendAssociative : x<+> (y<+>z) = (x<+>y) <+>z
0appendLeftNeutral : neutral<+>x=x
0appendRightNeutral : x<+>neutral=x

Implementations:
LMonoid (Lista)
LMonoidString
0appendAssociative : {auto__con : LMonoida} ->x<+> (y<+>z) = (x<+>y) <+>z
Totality: total
Visibility: public export
0appendLeftNeutral : {auto__con : LMonoida} ->neutral<+>x=x
Totality: total
Visibility: public export
0appendRightNeutral : {auto__con : LMonoida} ->x<+>neutral=x
Totality: total
Visibility: public export
interfaceCommutativeMonoid : Type->Type
  This interface is a witness that for a
type `a` the axioms of a commutative monoid hold:
`(<+>)` is commutative.

Parameters: a
Constraints: LMonoid a
Methods:
0appendCommutative : x<+>y=y<+>x
0appendCommutative : {auto__con : CommutativeMonoida} ->x<+>y=y<+>x
Totality: total
Visibility: public export