Skip to content
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

Merged
merged 13 commits into from
Sep 11, 2023
Merged

Conversation

felixwellen
Copy link
Collaborator

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.

@felixwellen felixwellen changed the title Introduce Semiring and refactor Introduce Semiring and refactor finite sums Sep 10, 2023
@felixwellen felixwellen marked this pull request as ready for review September 10, 2023 15:49
@felixwellen felixwellen mentioned this pull request Sep 10, 2023
@felixwellen
Copy link
Collaborator Author

@mzeuner can you review this changes?

Copy link
Contributor

@mzeuner mzeuner left a 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.

Cubical/Algebra/CommSemiring/Base.agda Outdated Show resolved Hide resolved
Cubical/Algebra/CommSemiring/Instances/UpperNat.agda Outdated Show resolved Hide resolved
@felixwellen felixwellen merged commit 3d94e5b into master Sep 11, 2023
1 check passed
@felixwellen felixwellen deleted the fwellen/semiring branch September 12, 2023 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants