-
Notifications
You must be signed in to change notification settings - Fork 247
IsCommutativeMonoid
should use IsMonoid
not IsSemigroup
#239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Likewise with |
I think the point of this is that an That being said, I'm not sure how useful the subtyping aspect is. |
Ooh I hadn't considered that. Apologies for my too hasty comment. Hang on, does that mean |
I could imagine the reason is that in the presence of commutativity, left identity implies right identity, thus, there is less proof obligations to build a commutative monoid. Unless there are strong reasons for change, I'd advise to leave it as-is. (Maybe add documentation to not fall into the same trap again.) |
Agreed. |
ObviouslyMaybe a case of mis-subclassing. It leads to unobvious requirements and also makes the record much longer than it needs to be.agda-stdlib/src/Algebra/Structures.agda
Lines 45 to 51 in a0bdb8e
The text was updated successfully, but these errors were encountered: