![]() |
ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
|
Counting semiring (ℕ, +, ×, 0, 1). More...


Go to the source code of this file.
Classes | |
| class | semiring::Counting |
The counting semiring over unsigned. More... | |
Namespaces | |
| namespace | semiring |
Counting semiring (ℕ, +, ×, 0, 1).
The counting semiring ( \(\mathbb{N}\), \(+\), \(\times\), 0, 1) counts the number of distinct derivations (proof witnesses) of each query result tuple.
Operations:
zero() → 0one() → 1plus() → sum of all operandstimes() → product of all operandsmonus() → truncated subtraction: max(0, x − y)delta() → 1 if x ≠ 0, else 0This semiring is not absorptive.
Definition in file Counting.h.