Module Algebra

module Bool : sig ... end

Boolean semiring: ({false, true}, โˆจ, โˆง, false, true).

module Bottleneck : sig ... end

Bottleneck semiring: ({-โˆž} โˆช โ„ค โˆช {+โˆž}, max, min, -โˆž, +โˆž).

module Matrix : sig ... end

Dense matrix algebra parameterized over a semiring.

module Nat : sig ... end

Natural-number semiring: (โ„•, +, ร—, 0, 1), optionally bounded.

module Prob : sig ... end

Probabilistic semiring: (0,1 โˆฉ โ„š, min(ยท+ยท, 1), ร—, 0, 1).

module Rat : sig ... end

Rational-number semiring: (โ„š, +, ร—, 0, 1).

module Semiring : sig ... end

Semiring interface: the module type T that every semiring implementation must satisfy.

module Tropical_bv : sig ... end

Bounded tropical semiring โ€” bitvector encoding.

module Tropical_lia : sig ... end

Tropical semiring โ€” integer-arithmetic encoding, bounded or unbounded.