-
Notifications
You must be signed in to change notification settings - Fork 141
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
Introduce Semiring and refactor finite sums #1042
Conversation
@mzeuner can you review this changes? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only had a tiny remark, which is related to an old issue #598.
Since that issue was never closed, I think we can leave it to your conscience, whether you want to keep makeCommSemiRing
or whether you want define UpperNat.asCommSemiRing
using copatterns.
Otherwise it should be ready to be merged.
So far, we only have CommSemiring. I don't have a Semiring that is not commutative, but I want to move the definition of sum from Ring to a place where it can also be used for Nat.