Sets as a semiring under union #
This file defines SetSemiring α, an alias of Set α, which we endow with ∪ as addition and
pointwise * as multiplication. If α is a (commutative) monoid, SetSemiring α is a
(commutative) semiring.
An alias for Set α, which has a semiring structure given by ∪ as "addition" and pointwise
multiplication * as "multiplication".
Instances For
The identity function Set α → SetSemiring α.
Instances For
The identity function SetSemiring α → Set α.
Instances For
Since addition on SetSemiring is commutative (it is set union), there is no need
to also have the instance AddRightMono (SetSemiring α).
If α is a monoid, the map that sends a : α to
the singleton set {a} is a monoid homomorphism.
Instances For
The image of a set under a multiplicative homomorphism is a ring homomorphism with respect to the pointwise operations on sets.