Semirings with monus #
This file defines semirings with monus and introduces their main properties.
Many semirings relevant for provenance can be equipped with a monus - operator, resulting in what is called a semiring with monus, or m-semiring. This is standard in semiring theory [Ame84] and was introduced in the setting of provenance semirings by Geerts and Poggi [GP10].
References #
Definition of a SemiringWithMonus #
A SemiringWithMonus is a naturally ordered semiring
with a monus operation that is compatible with the natural order.
We do not require the semiring to be necessarily commutative.
Instances
Main properties #
In a SemiringWithMonus, a - b is the smallest element c
satisfying a ≤ b + c.
In a SemiringWithMonus, a - a = 0.
In a SemiringWithMonus, 0 - a = 0.
In a SemiringWithMonus, a + (b -a) = b + (a - b).
In a SemiringWithMonus, monus is left-distributive over plus.
Additional properties #
The following properties do not always hold in an arbitrary m-semiring.
A Semiring is idempotent if a + a = a.
Equations
- idempotent α = ∀ (a : α), a + a = a
Instances For
A Semiring is absorptive (also called 0-closed or 0-bounded) if 1 + a = a.
Equations
- absorptive α = ∀ (a : α), 1 + a = 1
Instances For
We define left-distributivity of times over monus in a SemiringWithMonus.
Instances For
Absorptivity implies idempotence
In an idempotent SemiringWithMonus, a ≤ b iff a + b = b.
In an idempotent SemiringWithMonus, plus is the join of the
semilattice
In a SemiringWithMonus, right-distributivity of monus
over plus implies idempotence.
In a SemiringWithMonus, idempotence implies right-distributivity of monus
over plus.
A SemiringWithMonus is idempotent iff monus is right-distributive
over plus.
Homomorphisms of SemiringWithMonuss #
Definition of a homomorphism of SemiringWithMonuss
- toFun : α → β
Instances
Equations
- instCoeFunSemiringWithMonusHomForall α β = { coe := fun (f : SemiringWithMonusHom α β) (x : α) => f.toRingHom x }
If ν is an injective m-semiring homomorphism from α to β, and β is idempotent, so is α.
If ν is an m-semiring homomorphism from α onto β, and α is idempotent, so is β.
If ν is an injective m-semiring homomorphism from α to β, and β has left-distributivity of times over monus, so has α.
If ν is an m-semiring homomorphism from α onto β, and α has left-distributivity of times over monus, so has β.