functional-programming icon indicating copy to clipboard operation
functional-programming copied to clipboard

Improving "Given a type A, all endomorphisms defined on A are a monoid" sentence?

Open SHND opened this issue 3 years ago • 1 comments
trafficstars

Instead of sentence:

Given a type A, all endomorphisms defined on A are a monoid

isn't it more correct to say:

Given a type A, all endomorphisms defined on A under function composition operation are a monoid

Because semigroups are defined on pair of type A and operation on type A.

SHND avatar Aug 06 '22 23:08 SHND

@SHND I think this is correct.

You've got:

  • a type A

  • a function A => A, our endomorphism

  • the identity function as the empty element

Maybe a better phrasing would be:

"Given a type A, all endomorphims defined on A form (define?) a monoid.

enricopolanski avatar Jan 14 '23 15:01 enricopolanski