module Algebra.Monoid.Instances.Transformation where
Full transformation monoidsπ
If is a set, then so too is its type of endomaps Moreover, is a monoid under composition, called the full transformation monoid on with the associativity and identity laws holding definitionally:
End : β {β} (X : Set β) β Monoid-on (β£ X β£ β β£ X β£) End X = to-monoid-on M where open make-monoid M : make-monoid (β£ X β£ β β£ X β£) M .monoid-is-set = hlevel 2 M ._β_ f g = f β g M .1M = id M .β-assoc f g h = refl M .β-idl f = refl M .β-idr f = refl
In the case is a standard finite set, there is a more convenient isomorphic construction.