|
Dedekind 0.0.0
A structuralist C++23 Module Library
|
A Semiring without Negatives (Addition is a Monoid). More...
A Semiring without Negatives (Addition is a Monoid).
A Rig ("Ring without negatives") provides two monoidal operations that distribute over each other. bool with (OR, AND) and unsigned int with (+, *) are both Rigs. Neither has an additive inverse, so they stop short of a Ring.
Textbook note: In standard algebra literature, semiring is often used for this structure, while rig is the explicit mnemonic "ring without negatives".