Skip to content

Split Semiring into Semiring and Dioid #305

Description

@JordanMartinez

From @mikesol in Discord:

Would it make sense to revamp Semiring so that it had only the operators add and mul and then use Dioid for zero and one? There is some precedent for that: https://en.m.wikipedia.org/wiki/Semiring. It would create a nice symmetry between semigroup/monoid/group and semiring/dioid/ring. It'd be a breaking change for folks using zero and one, but otherwise I think it wouldn't be too disruptive. Also, it would allow for the generalization of semiring to an analogous biproduct class, which now isn't possible because zero and one necessarily leave out all but one of the types in the biproduct or biCCC class. Thoughts?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions