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.